@unicom-cloud/utils 0.1.42 → 0.1.44

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 (976) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +343 -305
  3. package/array/index.js +5 -4
  4. package/assert/index.js +10 -10
  5. package/case-name/index.js +1 -1
  6. package/class-name/index.js +1 -1
  7. package/clipboard-copy/index.js +1 -1
  8. package/constant/address.js +1 -1
  9. package/constant/chineseCharacters.js +1 -1
  10. package/constant/constellations.js +1 -1
  11. package/constant/domain.js +1 -1
  12. package/constant/identity.js +1 -1
  13. package/constant/index.js +1 -1
  14. package/constant/keyboardCode.d.ts +1 -1
  15. package/constant/keyboardCode.js +39 -39
  16. package/constant/licensePlate.js +1 -1
  17. package/constant/name.js +1 -1
  18. package/constant/platform.d.ts +10 -3
  19. package/constant/platform.js +24 -18
  20. package/constant/protocol.js +1 -1
  21. package/constant/string.js +1 -1
  22. package/constant/ui.js +1 -1
  23. package/content-disposition/index.js +1 -1
  24. package/cookie/api.js +1 -1
  25. package/cookie/assign.js +1 -1
  26. package/cookie/converter.js +1 -1
  27. package/cookie/index.js +1 -1
  28. package/date/convertTime.js +1 -1
  29. package/date/convertToDuration.js +1 -1
  30. package/date/index.js +1 -1
  31. package/decimal/decimal.js +357 -356
  32. package/decimal/index.js +1 -1
  33. package/dom-helpers/activeElement.js +1 -1
  34. package/dom-helpers/addClass.js +1 -1
  35. package/dom-helpers/addEventListener.js +1 -1
  36. package/dom-helpers/animate.js +1 -1
  37. package/dom-helpers/animationFrame.js +1 -1
  38. package/dom-helpers/attribute.js +1 -1
  39. package/dom-helpers/camelize.js +1 -1
  40. package/dom-helpers/camelizeStyle.js +1 -1
  41. package/dom-helpers/canUseDOM.js +1 -1
  42. package/dom-helpers/childElements.js +1 -1
  43. package/dom-helpers/childNodes.js +1 -1
  44. package/dom-helpers/clear.js +1 -1
  45. package/dom-helpers/closest.js +1 -1
  46. package/dom-helpers/collectElements.js +1 -1
  47. package/dom-helpers/collectSiblings.js +1 -1
  48. package/dom-helpers/contains.js +1 -1
  49. package/dom-helpers/css.js +1 -1
  50. package/dom-helpers/filterEventHandler.js +1 -1
  51. package/dom-helpers/getComputedStyle.js +1 -1
  52. package/dom-helpers/getElementCoordinates.js +1 -1
  53. package/dom-helpers/getScrollAccessor.js +1 -1
  54. package/dom-helpers/hasClass.js +1 -1
  55. package/dom-helpers/height.js +1 -1
  56. package/dom-helpers/hyphenate.js +1 -1
  57. package/dom-helpers/hyphenateStyle.js +1 -1
  58. package/dom-helpers/index.js +1 -1
  59. package/dom-helpers/insertAfter.js +1 -1
  60. package/dom-helpers/isDocument.js +1 -1
  61. package/dom-helpers/isInput.js +1 -1
  62. package/dom-helpers/isTransform.js +1 -1
  63. package/dom-helpers/isVisible.js +1 -1
  64. package/dom-helpers/isWindow.js +1 -1
  65. package/dom-helpers/listen.js +1 -1
  66. package/dom-helpers/matches.js +1 -1
  67. package/dom-helpers/nextUntil.js +1 -1
  68. package/dom-helpers/offset.js +1 -1
  69. package/dom-helpers/offsetParent.js +1 -1
  70. package/dom-helpers/ownerDocument.js +1 -1
  71. package/dom-helpers/ownerWindow.js +1 -1
  72. package/dom-helpers/parents.js +1 -1
  73. package/dom-helpers/position.js +1 -1
  74. package/dom-helpers/prepend.js +1 -1
  75. package/dom-helpers/querySelectorAll.js +1 -1
  76. package/dom-helpers/reflow.js +1 -1
  77. package/dom-helpers/remove.js +1 -1
  78. package/dom-helpers/removeClass.js +1 -1
  79. package/dom-helpers/removeEventListener.js +1 -1
  80. package/dom-helpers/scrollLeft.js +1 -1
  81. package/dom-helpers/scrollParent.js +1 -1
  82. package/dom-helpers/scrollTo.js +1 -1
  83. package/dom-helpers/scrollTop.js +1 -1
  84. package/dom-helpers/scrollbarSize.js +1 -1
  85. package/dom-helpers/siblings.js +1 -1
  86. package/dom-helpers/text.js +1 -1
  87. package/dom-helpers/toggleClass.js +1 -1
  88. package/dom-helpers/transitionEnd.js +1 -1
  89. package/dom-helpers/triggerEvent.js +1 -1
  90. package/dom-helpers/types.js +1 -1
  91. package/dom-helpers/width.js +1 -1
  92. package/emitter/index.js +1 -1
  93. package/emoji/emoji.js +1 -1
  94. package/emoji/emojis.js +1 -1
  95. package/emoji/index.js +1 -1
  96. package/escape/index.js +1 -1
  97. package/file/fileRead.js +6 -6
  98. package/file/fileToDataURL.js +1 -1
  99. package/file/img.d.ts +4 -0
  100. package/file/img.js +18 -0
  101. package/file/index.d.ts +2 -1
  102. package/file/index.js +4 -3
  103. package/file/saveAs.js +11 -11
  104. package/filesize/index.d.ts +4 -2
  105. package/filesize/index.js +5 -3
  106. package/filesize/{constants.js → src/constants.js} +2 -2
  107. package/filesize/{filesize.d.ts → src/filesize.d.ts} +1 -1
  108. package/filesize/src/filesize.js +52 -0
  109. package/filesize/src/helpers.d.ts +119 -0
  110. package/filesize/src/helpers.js +118 -0
  111. package/function/index.js +1 -1
  112. package/idb/async-iterators.js +1 -1
  113. package/idb/database-extras.js +1 -1
  114. package/idb/entry.js +1 -1
  115. package/idb/index-.js +1 -1
  116. package/idb/index.js +1 -1
  117. package/idb/util.js +1 -1
  118. package/idb/wrap-idb-value.js +1 -1
  119. package/index.js +1 -1
  120. package/invariant/index.js +1 -1
  121. package/is/index.d.ts +32 -29
  122. package/is/index.js +97 -90
  123. package/is/lib/isAscii.js +1 -1
  124. package/is/lib/isBase64.js +1 -1
  125. package/is/lib/isChinese.js +1 -1
  126. package/is/lib/isDataURI.js +1 -1
  127. package/is/lib/isEmail.js +12 -12
  128. package/is/lib/isFQDN.js +1 -1
  129. package/is/lib/isFullWidth.js +1 -1
  130. package/is/lib/isHSL.js +1 -1
  131. package/is/lib/isHalfWidth.js +1 -1
  132. package/is/lib/isHash.js +1 -1
  133. package/is/lib/isHexColor.js +1 -1
  134. package/is/lib/isIMEI.js +1 -1
  135. package/is/lib/isIP.js +1 -1
  136. package/is/lib/isIPRange.js +6 -6
  137. package/is/lib/isIdentityCard.js +9 -8
  138. package/is/lib/isJWT.js +5 -5
  139. package/is/lib/isMACAddress.js +1 -1
  140. package/is/lib/isMD5.js +1 -1
  141. package/is/lib/isMimeType.js +1 -1
  142. package/is/lib/isMobilePhone.js +14 -13
  143. package/is/lib/isPort.js +1 -1
  144. package/is/lib/isRgbColor.js +1 -1
  145. package/is/lib/isSemVer.js +1 -1
  146. package/is/lib/isSlug.js +1 -1
  147. package/is/lib/isStrongPassword.js +1 -1
  148. package/is/lib/isURL.js +6 -6
  149. package/is/lib/isUUID.js +1 -1
  150. package/is/lib/isVariableWidth.js +5 -5
  151. package/lodash/_DataView.js +1 -1
  152. package/lodash/_Hash.js +1 -1
  153. package/lodash/_LazyWrapper.js +1 -1
  154. package/lodash/_ListCache.js +1 -1
  155. package/lodash/_LodashWrapper.js +1 -1
  156. package/lodash/_Map.js +1 -1
  157. package/lodash/_MapCache.js +1 -1
  158. package/lodash/_Promise.js +1 -1
  159. package/lodash/_Set.js +1 -1
  160. package/lodash/_SetCache.js +1 -1
  161. package/lodash/_Stack.js +1 -1
  162. package/lodash/_Symbol.js +1 -1
  163. package/lodash/_Uint8Array.js +1 -1
  164. package/lodash/_WeakMap.js +1 -1
  165. package/lodash/_addMapEntry.js +1 -1
  166. package/lodash/_addSetEntry.js +1 -1
  167. package/lodash/_apply.js +1 -1
  168. package/lodash/_arrayAggregator.js +1 -1
  169. package/lodash/_arrayEach.js +1 -1
  170. package/lodash/_arrayEachRight.js +1 -1
  171. package/lodash/_arrayEvery.js +1 -1
  172. package/lodash/_arrayFilter.js +1 -1
  173. package/lodash/_arrayIncludes.js +1 -1
  174. package/lodash/_arrayIncludesWith.js +1 -1
  175. package/lodash/_arrayLikeKeys.js +1 -1
  176. package/lodash/_arrayMap.js +1 -1
  177. package/lodash/_arrayPush.js +1 -1
  178. package/lodash/_arrayReduce.js +1 -1
  179. package/lodash/_arrayReduceRight.js +1 -1
  180. package/lodash/_arraySample.js +1 -1
  181. package/lodash/_arraySampleSize.js +1 -1
  182. package/lodash/_arrayShuffle.js +1 -1
  183. package/lodash/_arraySome.js +1 -1
  184. package/lodash/_asciiSize.js +1 -1
  185. package/lodash/_asciiToArray.js +1 -1
  186. package/lodash/_asciiWords.js +1 -1
  187. package/lodash/_assignMergeValue.js +1 -1
  188. package/lodash/_assignValue.js +1 -1
  189. package/lodash/_assocIndexOf.js +1 -1
  190. package/lodash/_baseAggregator.js +1 -1
  191. package/lodash/_baseAssign.js +1 -1
  192. package/lodash/_baseAssignIn.js +1 -1
  193. package/lodash/_baseAssignValue.js +1 -1
  194. package/lodash/_baseAt.js +1 -1
  195. package/lodash/_baseClamp.js +1 -1
  196. package/lodash/_baseClone.js +1 -1
  197. package/lodash/_baseConforms.js +1 -1
  198. package/lodash/_baseConformsTo.js +1 -1
  199. package/lodash/_baseCreate.js +1 -1
  200. package/lodash/_baseDelay.js +1 -1
  201. package/lodash/_baseDifference.js +1 -1
  202. package/lodash/_baseEach.js +1 -1
  203. package/lodash/_baseEachRight.js +1 -1
  204. package/lodash/_baseEvery.js +1 -1
  205. package/lodash/_baseExtremum.js +1 -1
  206. package/lodash/_baseFill.js +1 -1
  207. package/lodash/_baseFilter.js +1 -1
  208. package/lodash/_baseFindIndex.js +1 -1
  209. package/lodash/_baseFindKey.js +1 -1
  210. package/lodash/_baseFlatten.js +1 -1
  211. package/lodash/_baseFor.js +1 -1
  212. package/lodash/_baseForOwn.js +1 -1
  213. package/lodash/_baseForOwnRight.js +1 -1
  214. package/lodash/_baseForRight.js +1 -1
  215. package/lodash/_baseFunctions.js +1 -1
  216. package/lodash/_baseGet.js +1 -1
  217. package/lodash/_baseGetAllKeys.js +1 -1
  218. package/lodash/_baseGetTag.js +1 -1
  219. package/lodash/_baseGt.js +1 -1
  220. package/lodash/_baseHas.js +1 -1
  221. package/lodash/_baseHasIn.js +1 -1
  222. package/lodash/_baseInRange.js +1 -1
  223. package/lodash/_baseIndexOf.js +1 -1
  224. package/lodash/_baseIndexOfWith.js +1 -1
  225. package/lodash/_baseIntersection.js +1 -1
  226. package/lodash/_baseInverter.js +1 -1
  227. package/lodash/_baseInvoke.js +1 -1
  228. package/lodash/_baseIsArguments.js +1 -1
  229. package/lodash/_baseIsArrayBuffer.js +1 -1
  230. package/lodash/_baseIsDate.js +1 -1
  231. package/lodash/_baseIsEqual.js +1 -1
  232. package/lodash/_baseIsEqualDeep.js +1 -1
  233. package/lodash/_baseIsMap.js +1 -1
  234. package/lodash/_baseIsMatch.js +1 -1
  235. package/lodash/_baseIsNaN.js +1 -1
  236. package/lodash/_baseIsNative.js +1 -1
  237. package/lodash/_baseIsRegExp.js +1 -1
  238. package/lodash/_baseIsSet.js +1 -1
  239. package/lodash/_baseIsTypedArray.js +1 -1
  240. package/lodash/_baseIteratee.js +1 -1
  241. package/lodash/_baseKeys.js +1 -1
  242. package/lodash/_baseKeysIn.js +1 -1
  243. package/lodash/_baseLodash.js +1 -1
  244. package/lodash/_baseLt.js +1 -1
  245. package/lodash/_baseMap.js +1 -1
  246. package/lodash/_baseMatches.js +1 -1
  247. package/lodash/_baseMatchesProperty.js +1 -1
  248. package/lodash/_baseMean.js +1 -1
  249. package/lodash/_baseMerge.js +1 -1
  250. package/lodash/_baseMergeDeep.js +1 -1
  251. package/lodash/_baseNth.js +1 -1
  252. package/lodash/_baseOrderBy.js +1 -1
  253. package/lodash/_basePick.js +1 -1
  254. package/lodash/_basePickBy.js +1 -1
  255. package/lodash/_baseProperty.js +1 -1
  256. package/lodash/_basePropertyDeep.js +1 -1
  257. package/lodash/_basePropertyOf.js +1 -1
  258. package/lodash/_basePullAll.js +1 -1
  259. package/lodash/_basePullAt.js +1 -1
  260. package/lodash/_baseRandom.js +1 -1
  261. package/lodash/_baseRange.js +1 -1
  262. package/lodash/_baseReduce.js +1 -1
  263. package/lodash/_baseRepeat.js +1 -1
  264. package/lodash/_baseRest.js +1 -1
  265. package/lodash/_baseSample.js +1 -1
  266. package/lodash/_baseSampleSize.js +1 -1
  267. package/lodash/_baseSet.js +1 -1
  268. package/lodash/_baseSetData.js +1 -1
  269. package/lodash/_baseSetToString.js +1 -1
  270. package/lodash/_baseShuffle.js +1 -1
  271. package/lodash/_baseSlice.js +1 -1
  272. package/lodash/_baseSome.js +1 -1
  273. package/lodash/_baseSortBy.js +1 -1
  274. package/lodash/_baseSortedIndex.js +1 -1
  275. package/lodash/_baseSortedIndexBy.js +1 -1
  276. package/lodash/_baseSortedUniq.js +1 -1
  277. package/lodash/_baseSum.js +1 -1
  278. package/lodash/_baseTimes.js +1 -1
  279. package/lodash/_baseToNumber.js +1 -1
  280. package/lodash/_baseToPairs.js +1 -1
  281. package/lodash/_baseToString.js +1 -1
  282. package/lodash/_baseTrim.js +1 -1
  283. package/lodash/_baseUnary.js +1 -1
  284. package/lodash/_baseUniq.js +1 -1
  285. package/lodash/_baseUnset.js +1 -1
  286. package/lodash/_baseUpdate.js +1 -1
  287. package/lodash/_baseValues.js +1 -1
  288. package/lodash/_baseWhile.js +1 -1
  289. package/lodash/_baseWrapperValue.js +1 -1
  290. package/lodash/_baseXor.js +1 -1
  291. package/lodash/_baseZipObject.js +1 -1
  292. package/lodash/_cacheHas.js +1 -1
  293. package/lodash/_castArrayLikeObject.js +1 -1
  294. package/lodash/_castFunction.js +1 -1
  295. package/lodash/_castPath.js +1 -1
  296. package/lodash/_castRest.js +1 -1
  297. package/lodash/_castSlice.js +1 -1
  298. package/lodash/_charsEndIndex.js +1 -1
  299. package/lodash/_charsStartIndex.js +1 -1
  300. package/lodash/_cloneArrayBuffer.js +1 -1
  301. package/lodash/_cloneBuffer.js +1 -1
  302. package/lodash/_cloneDataView.js +1 -1
  303. package/lodash/_cloneMap.js +1 -1
  304. package/lodash/_cloneRegExp.js +1 -1
  305. package/lodash/_cloneSet.js +1 -1
  306. package/lodash/_cloneSymbol.js +1 -1
  307. package/lodash/_cloneTypedArray.js +1 -1
  308. package/lodash/_compareAscending.js +1 -1
  309. package/lodash/_compareMultiple.js +1 -1
  310. package/lodash/_composeArgs.js +1 -1
  311. package/lodash/_composeArgsRight.js +1 -1
  312. package/lodash/_copyArray.js +1 -1
  313. package/lodash/_copyObject.js +1 -1
  314. package/lodash/_copySymbols.js +1 -1
  315. package/lodash/_copySymbolsIn.js +1 -1
  316. package/lodash/_coreJsData.js +1 -1
  317. package/lodash/_countHolders.js +1 -1
  318. package/lodash/_createAggregator.js +1 -1
  319. package/lodash/_createAssigner.js +1 -1
  320. package/lodash/_createBaseEach.js +1 -1
  321. package/lodash/_createBaseFor.js +1 -1
  322. package/lodash/_createBind.js +1 -1
  323. package/lodash/_createCaseFirst.js +1 -1
  324. package/lodash/_createCompounder.js +1 -1
  325. package/lodash/_createCtor.js +1 -1
  326. package/lodash/_createCurry.js +1 -1
  327. package/lodash/_createFind.js +1 -1
  328. package/lodash/_createFlow.js +1 -1
  329. package/lodash/_createHybrid.js +1 -1
  330. package/lodash/_createInverter.js +1 -1
  331. package/lodash/_createMathOperation.js +1 -1
  332. package/lodash/_createOver.js +1 -1
  333. package/lodash/_createPadding.js +1 -1
  334. package/lodash/_createPartial.js +1 -1
  335. package/lodash/_createRange.js +1 -1
  336. package/lodash/_createRecurry.js +1 -1
  337. package/lodash/_createRelationalOperation.js +1 -1
  338. package/lodash/_createRound.js +1 -1
  339. package/lodash/_createSet.js +1 -1
  340. package/lodash/_createToPairs.js +1 -1
  341. package/lodash/_createWrap.js +1 -1
  342. package/lodash/_customDefaultsAssignIn.js +1 -1
  343. package/lodash/_customDefaultsMerge.js +1 -1
  344. package/lodash/_customOmitClone.js +1 -1
  345. package/lodash/_deburrLetter.js +1 -1
  346. package/lodash/_defineProperty.js +1 -1
  347. package/lodash/_equalArrays.js +1 -1
  348. package/lodash/_equalByTag.js +1 -1
  349. package/lodash/_equalObjects.js +1 -1
  350. package/lodash/_escapeHtmlChar.js +1 -1
  351. package/lodash/_escapeStringChar.js +1 -1
  352. package/lodash/_flatRest.js +1 -1
  353. package/lodash/_freeGlobal.js +1 -1
  354. package/lodash/_getAllKeys.js +1 -1
  355. package/lodash/_getAllKeysIn.js +1 -1
  356. package/lodash/_getData.js +1 -1
  357. package/lodash/_getFuncName.js +1 -1
  358. package/lodash/_getHolder.js +1 -1
  359. package/lodash/_getMapData.js +1 -1
  360. package/lodash/_getMatchData.js +1 -1
  361. package/lodash/_getNative.js +1 -1
  362. package/lodash/_getPrototype.js +1 -1
  363. package/lodash/_getRawTag.js +1 -1
  364. package/lodash/_getSymbols.js +1 -1
  365. package/lodash/_getSymbolsIn.js +1 -1
  366. package/lodash/_getTag.js +1 -1
  367. package/lodash/_getValue.js +1 -1
  368. package/lodash/_getView.js +1 -1
  369. package/lodash/_getWrapDetails.js +1 -1
  370. package/lodash/_hasPath.js +1 -1
  371. package/lodash/_hasUnicode.js +1 -1
  372. package/lodash/_hasUnicodeWord.js +1 -1
  373. package/lodash/_hashClear.js +1 -1
  374. package/lodash/_hashDelete.js +1 -1
  375. package/lodash/_hashGet.js +1 -1
  376. package/lodash/_hashHas.js +1 -1
  377. package/lodash/_hashSet.js +1 -1
  378. package/lodash/_initCloneArray.js +1 -1
  379. package/lodash/_initCloneByTag.js +1 -1
  380. package/lodash/_initCloneObject.js +1 -1
  381. package/lodash/_insertWrapDetails.js +1 -1
  382. package/lodash/_isFlattenable.js +1 -1
  383. package/lodash/_isIndex.js +1 -1
  384. package/lodash/_isIterateeCall.js +1 -1
  385. package/lodash/_isKey.js +1 -1
  386. package/lodash/_isKeyable.js +1 -1
  387. package/lodash/_isLaziable.js +1 -1
  388. package/lodash/_isMaskable.js +1 -1
  389. package/lodash/_isMasked.js +1 -1
  390. package/lodash/_isPrototype.js +1 -1
  391. package/lodash/_isStrictComparable.js +1 -1
  392. package/lodash/_iteratorToArray.js +1 -1
  393. package/lodash/_lazyClone.js +1 -1
  394. package/lodash/_lazyReverse.js +1 -1
  395. package/lodash/_lazyValue.js +1 -1
  396. package/lodash/_listCacheClear.js +1 -1
  397. package/lodash/_listCacheDelete.js +1 -1
  398. package/lodash/_listCacheGet.js +1 -1
  399. package/lodash/_listCacheHas.js +1 -1
  400. package/lodash/_listCacheSet.js +1 -1
  401. package/lodash/_mapCacheClear.js +1 -1
  402. package/lodash/_mapCacheDelete.js +1 -1
  403. package/lodash/_mapCacheGet.js +1 -1
  404. package/lodash/_mapCacheHas.js +1 -1
  405. package/lodash/_mapCacheSet.js +1 -1
  406. package/lodash/_mapToArray.js +1 -1
  407. package/lodash/_matchesStrictComparable.js +1 -1
  408. package/lodash/_memoizeCapped.js +1 -1
  409. package/lodash/_mergeData.js +1 -1
  410. package/lodash/_metaMap.js +1 -1
  411. package/lodash/_nativeCreate.js +1 -1
  412. package/lodash/_nativeKeys.js +1 -1
  413. package/lodash/_nativeKeysIn.js +1 -1
  414. package/lodash/_nodeUtil.js +1 -1
  415. package/lodash/_objectToString.js +1 -1
  416. package/lodash/_overArg.js +1 -1
  417. package/lodash/_overRest.js +1 -1
  418. package/lodash/_parent.js +1 -1
  419. package/lodash/_reEscape.js +1 -1
  420. package/lodash/_reEvaluate.js +1 -1
  421. package/lodash/_reInterpolate.js +1 -1
  422. package/lodash/_realNames.js +1 -1
  423. package/lodash/_reorder.js +1 -1
  424. package/lodash/_replaceHolders.js +1 -1
  425. package/lodash/_root.js +1 -1
  426. package/lodash/_safeGet.js +1 -1
  427. package/lodash/_setCacheAdd.js +1 -1
  428. package/lodash/_setCacheHas.js +1 -1
  429. package/lodash/_setData.js +1 -1
  430. package/lodash/_setToArray.js +1 -1
  431. package/lodash/_setToPairs.js +1 -1
  432. package/lodash/_setToString.js +1 -1
  433. package/lodash/_setWrapToString.js +1 -1
  434. package/lodash/_shortOut.js +1 -1
  435. package/lodash/_shuffleSelf.js +1 -1
  436. package/lodash/_stackClear.js +1 -1
  437. package/lodash/_stackDelete.js +1 -1
  438. package/lodash/_stackGet.js +1 -1
  439. package/lodash/_stackHas.js +1 -1
  440. package/lodash/_stackSet.js +1 -1
  441. package/lodash/_strictIndexOf.js +1 -1
  442. package/lodash/_strictLastIndexOf.js +1 -1
  443. package/lodash/_stringSize.js +1 -1
  444. package/lodash/_stringToArray.js +1 -1
  445. package/lodash/_stringToPath.js +1 -1
  446. package/lodash/_toKey.js +1 -1
  447. package/lodash/_toSource.js +1 -1
  448. package/lodash/_trimmedEndIndex.js +1 -1
  449. package/lodash/_unescapeHtmlChar.js +1 -1
  450. package/lodash/_unicodeSize.js +1 -1
  451. package/lodash/_unicodeToArray.js +1 -1
  452. package/lodash/_unicodeWords.js +1 -1
  453. package/lodash/_updateWrapDetails.js +1 -1
  454. package/lodash/_wrapperClone.js +1 -1
  455. package/lodash/add.js +1 -1
  456. package/lodash/after.js +1 -1
  457. package/lodash/array.default.js +1 -1
  458. package/lodash/array.js +1 -1
  459. package/lodash/ary.js +1 -1
  460. package/lodash/assign.js +1 -1
  461. package/lodash/assignIn.js +1 -1
  462. package/lodash/assignInWith.js +1 -1
  463. package/lodash/assignWith.js +1 -1
  464. package/lodash/at.js +1 -1
  465. package/lodash/attempt.js +1 -1
  466. package/lodash/before.js +1 -1
  467. package/lodash/bind.js +1 -1
  468. package/lodash/bindAll.js +1 -1
  469. package/lodash/bindKey.js +1 -1
  470. package/lodash/camelCase.js +1 -1
  471. package/lodash/capitalize.js +1 -1
  472. package/lodash/castArray.js +1 -1
  473. package/lodash/ceil.js +1 -1
  474. package/lodash/chain.js +1 -1
  475. package/lodash/chunk.js +1 -1
  476. package/lodash/clamp.js +1 -1
  477. package/lodash/clone.js +1 -1
  478. package/lodash/cloneDeep.js +1 -1
  479. package/lodash/cloneDeepWith.js +1 -1
  480. package/lodash/cloneWith.js +1 -1
  481. package/lodash/collection.default.js +1 -1
  482. package/lodash/collection.js +1 -1
  483. package/lodash/commit.js +1 -1
  484. package/lodash/compact.js +1 -1
  485. package/lodash/concat.js +1 -1
  486. package/lodash/cond.js +1 -1
  487. package/lodash/conforms.js +1 -1
  488. package/lodash/conformsTo.js +1 -1
  489. package/lodash/constant.js +1 -1
  490. package/lodash/countBy.js +1 -1
  491. package/lodash/create.js +1 -1
  492. package/lodash/curry.js +1 -1
  493. package/lodash/curryRight.js +1 -1
  494. package/lodash/date.default.js +1 -1
  495. package/lodash/date.js +1 -1
  496. package/lodash/debounce.js +1 -1
  497. package/lodash/deburr.js +1 -1
  498. package/lodash/defaultTo.js +1 -1
  499. package/lodash/defaults.js +1 -1
  500. package/lodash/defaultsDeep.js +1 -1
  501. package/lodash/defer.js +1 -1
  502. package/lodash/delay.js +1 -1
  503. package/lodash/difference.js +1 -1
  504. package/lodash/differenceBy.js +1 -1
  505. package/lodash/differenceWith.js +1 -1
  506. package/lodash/divide.js +1 -1
  507. package/lodash/drop.js +1 -1
  508. package/lodash/dropRight.js +1 -1
  509. package/lodash/dropRightWhile.js +1 -1
  510. package/lodash/dropWhile.js +1 -1
  511. package/lodash/each.js +1 -1
  512. package/lodash/eachRight.js +1 -1
  513. package/lodash/endsWith.js +1 -1
  514. package/lodash/entries.js +1 -1
  515. package/lodash/entriesIn.js +1 -1
  516. package/lodash/eq.js +1 -1
  517. package/lodash/escape.js +1 -1
  518. package/lodash/escapeRegExp.js +1 -1
  519. package/lodash/every.js +1 -1
  520. package/lodash/extend.js +1 -1
  521. package/lodash/extendWith.js +1 -1
  522. package/lodash/fill.js +1 -1
  523. package/lodash/filter.js +1 -1
  524. package/lodash/find.js +1 -1
  525. package/lodash/findIndex.js +1 -1
  526. package/lodash/findKey.js +1 -1
  527. package/lodash/findLast.js +1 -1
  528. package/lodash/findLastIndex.js +1 -1
  529. package/lodash/findLastKey.js +1 -1
  530. package/lodash/first.js +1 -1
  531. package/lodash/flatMap.js +1 -1
  532. package/lodash/flatMapDeep.js +1 -1
  533. package/lodash/flatMapDepth.js +1 -1
  534. package/lodash/flatten.js +1 -1
  535. package/lodash/flattenDeep.js +1 -1
  536. package/lodash/flattenDepth.js +1 -1
  537. package/lodash/flip.js +1 -1
  538. package/lodash/floor.js +1 -1
  539. package/lodash/flow.js +1 -1
  540. package/lodash/flowRight.js +1 -1
  541. package/lodash/forEach.js +1 -1
  542. package/lodash/forEachRight.js +1 -1
  543. package/lodash/forIn.js +1 -1
  544. package/lodash/forInRight.js +1 -1
  545. package/lodash/forOwn.js +1 -1
  546. package/lodash/forOwnRight.js +1 -1
  547. package/lodash/fromPairs.js +1 -1
  548. package/lodash/function.default.js +1 -1
  549. package/lodash/function.js +1 -1
  550. package/lodash/functions.js +1 -1
  551. package/lodash/functionsIn.js +1 -1
  552. package/lodash/get.js +1 -1
  553. package/lodash/groupBy.js +1 -1
  554. package/lodash/gt.js +1 -1
  555. package/lodash/gte.js +1 -1
  556. package/lodash/has.js +1 -1
  557. package/lodash/hasIn.js +1 -1
  558. package/lodash/head.js +1 -1
  559. package/lodash/identity.js +1 -1
  560. package/lodash/inRange.js +1 -1
  561. package/lodash/includes.js +1 -1
  562. package/lodash/index.js +1 -1
  563. package/lodash/indexOf.js +1 -1
  564. package/lodash/initial.js +1 -1
  565. package/lodash/intersection.js +1 -1
  566. package/lodash/intersectionBy.js +1 -1
  567. package/lodash/intersectionWith.js +1 -1
  568. package/lodash/invert.js +1 -1
  569. package/lodash/invertBy.js +1 -1
  570. package/lodash/invoke.js +1 -1
  571. package/lodash/invokeMap.js +1 -1
  572. package/lodash/isArguments.js +1 -1
  573. package/lodash/isArray.js +1 -1
  574. package/lodash/isArrayBuffer.js +1 -1
  575. package/lodash/isArrayLike.js +1 -1
  576. package/lodash/isArrayLikeObject.js +1 -1
  577. package/lodash/isBoolean.js +1 -1
  578. package/lodash/isBuffer.js +1 -1
  579. package/lodash/isDate.js +1 -1
  580. package/lodash/isElement.js +1 -1
  581. package/lodash/isEmpty.js +1 -1
  582. package/lodash/isEqual.js +1 -1
  583. package/lodash/isEqualWith.js +1 -1
  584. package/lodash/isError.js +1 -1
  585. package/lodash/isFinite.js +1 -1
  586. package/lodash/isFunction.js +1 -1
  587. package/lodash/isInteger.js +1 -1
  588. package/lodash/isLength.js +1 -1
  589. package/lodash/isMap.js +1 -1
  590. package/lodash/isMatch.js +1 -1
  591. package/lodash/isMatchWith.js +1 -1
  592. package/lodash/isNaN.js +1 -1
  593. package/lodash/isNative.js +1 -1
  594. package/lodash/isNil.js +1 -1
  595. package/lodash/isNull.js +1 -1
  596. package/lodash/isNumber.js +1 -1
  597. package/lodash/isObject.js +1 -1
  598. package/lodash/isObjectLike.js +1 -1
  599. package/lodash/isPlainObject.js +1 -1
  600. package/lodash/isPromise.js +2 -2
  601. package/lodash/isRegExp.js +1 -1
  602. package/lodash/isSafeInteger.js +1 -1
  603. package/lodash/isSet.js +1 -1
  604. package/lodash/isString.js +1 -1
  605. package/lodash/isSymbol.js +1 -1
  606. package/lodash/isTypedArray.js +1 -1
  607. package/lodash/isUndefined.js +1 -1
  608. package/lodash/isWeakMap.js +1 -1
  609. package/lodash/isWeakSet.js +1 -1
  610. package/lodash/iteratee.js +1 -1
  611. package/lodash/join.js +1 -1
  612. package/lodash/kebabCase.js +1 -1
  613. package/lodash/keyBy.js +1 -1
  614. package/lodash/keys.js +1 -1
  615. package/lodash/keysIn.js +1 -1
  616. package/lodash/lang.default.js +1 -1
  617. package/lodash/lang.js +1 -1
  618. package/lodash/last.js +1 -1
  619. package/lodash/lastIndexOf.js +1 -1
  620. package/lodash/lodash.default.js +1 -1
  621. package/lodash/lodash.js +1 -1
  622. package/lodash/lowerCase.js +1 -1
  623. package/lodash/lowerFirst.js +1 -1
  624. package/lodash/lt.js +1 -1
  625. package/lodash/lte.js +1 -1
  626. package/lodash/map.js +1 -1
  627. package/lodash/mapKeys.js +1 -1
  628. package/lodash/mapValues.js +1 -1
  629. package/lodash/matches.js +1 -1
  630. package/lodash/matchesProperty.js +1 -1
  631. package/lodash/math.default.js +1 -1
  632. package/lodash/math.js +1 -1
  633. package/lodash/max.js +1 -1
  634. package/lodash/maxBy.js +1 -1
  635. package/lodash/mean.js +1 -1
  636. package/lodash/meanBy.js +1 -1
  637. package/lodash/memoize.js +1 -1
  638. package/lodash/merge.js +1 -1
  639. package/lodash/mergeWith.js +1 -1
  640. package/lodash/method.js +1 -1
  641. package/lodash/methodOf.js +1 -1
  642. package/lodash/min.js +1 -1
  643. package/lodash/minBy.js +1 -1
  644. package/lodash/mixin.js +1 -1
  645. package/lodash/multiply.js +1 -1
  646. package/lodash/negate.js +1 -1
  647. package/lodash/next.js +1 -1
  648. package/lodash/noop.js +1 -1
  649. package/lodash/now.js +1 -1
  650. package/lodash/nth.js +1 -1
  651. package/lodash/nthArg.js +1 -1
  652. package/lodash/number.default.js +1 -1
  653. package/lodash/number.js +1 -1
  654. package/lodash/object.default.js +1 -1
  655. package/lodash/object.js +1 -1
  656. package/lodash/omit.js +1 -1
  657. package/lodash/omitBy.js +1 -1
  658. package/lodash/once.js +1 -1
  659. package/lodash/orderBy.js +1 -1
  660. package/lodash/over.js +1 -1
  661. package/lodash/overArgs.js +1 -1
  662. package/lodash/overEvery.js +1 -1
  663. package/lodash/overSome.js +1 -1
  664. package/lodash/pad.js +1 -1
  665. package/lodash/padEnd.js +1 -1
  666. package/lodash/padStart.js +1 -1
  667. package/lodash/parseInt.js +1 -1
  668. package/lodash/partial.js +1 -1
  669. package/lodash/partialRight.js +1 -1
  670. package/lodash/partition.js +1 -1
  671. package/lodash/pick.js +1 -1
  672. package/lodash/pickBy.js +1 -1
  673. package/lodash/plant.js +1 -1
  674. package/lodash/property.js +1 -1
  675. package/lodash/propertyOf.js +1 -1
  676. package/lodash/pull.js +1 -1
  677. package/lodash/pullAll.js +1 -1
  678. package/lodash/pullAllBy.js +1 -1
  679. package/lodash/pullAllWith.js +1 -1
  680. package/lodash/pullAt.js +1 -1
  681. package/lodash/random.js +1 -1
  682. package/lodash/range.js +1 -1
  683. package/lodash/rangeRight.js +1 -1
  684. package/lodash/rearg.js +1 -1
  685. package/lodash/reduce.js +1 -1
  686. package/lodash/reduceRight.js +1 -1
  687. package/lodash/reject.js +1 -1
  688. package/lodash/remove.js +1 -1
  689. package/lodash/repeat.js +1 -1
  690. package/lodash/replace.js +1 -1
  691. package/lodash/rest.js +1 -1
  692. package/lodash/result.js +1 -1
  693. package/lodash/reverse.js +1 -1
  694. package/lodash/round.js +1 -1
  695. package/lodash/sample.js +1 -1
  696. package/lodash/sampleSize.js +1 -1
  697. package/lodash/seq.default.js +1 -1
  698. package/lodash/seq.js +1 -1
  699. package/lodash/set.js +1 -1
  700. package/lodash/setWith.js +1 -1
  701. package/lodash/shuffle.js +1 -1
  702. package/lodash/size.js +1 -1
  703. package/lodash/slice.js +1 -1
  704. package/lodash/snakeCase.js +1 -1
  705. package/lodash/some.js +1 -1
  706. package/lodash/sortBy.js +1 -1
  707. package/lodash/sortedIndex.js +1 -1
  708. package/lodash/sortedIndexBy.js +1 -1
  709. package/lodash/sortedIndexOf.js +1 -1
  710. package/lodash/sortedLastIndex.js +1 -1
  711. package/lodash/sortedLastIndexBy.js +1 -1
  712. package/lodash/sortedLastIndexOf.js +1 -1
  713. package/lodash/sortedUniq.js +1 -1
  714. package/lodash/sortedUniqBy.js +1 -1
  715. package/lodash/split.js +1 -1
  716. package/lodash/spread.js +1 -1
  717. package/lodash/startCase.js +1 -1
  718. package/lodash/startsWith.js +1 -1
  719. package/lodash/string.default.js +1 -1
  720. package/lodash/string.js +1 -1
  721. package/lodash/stubArray.js +1 -1
  722. package/lodash/stubFalse.js +1 -1
  723. package/lodash/stubObject.js +1 -1
  724. package/lodash/stubString.js +1 -1
  725. package/lodash/stubTrue.js +1 -1
  726. package/lodash/subtract.js +1 -1
  727. package/lodash/sum.js +1 -1
  728. package/lodash/sumBy.js +1 -1
  729. package/lodash/tail.js +1 -1
  730. package/lodash/take.js +1 -1
  731. package/lodash/takeRight.js +1 -1
  732. package/lodash/takeRightWhile.js +1 -1
  733. package/lodash/takeWhile.js +1 -1
  734. package/lodash/tap.js +1 -1
  735. package/lodash/template.js +1 -1
  736. package/lodash/templateSettings.js +1 -1
  737. package/lodash/throttle.js +1 -1
  738. package/lodash/thru.js +1 -1
  739. package/lodash/times.js +1 -1
  740. package/lodash/toArray.js +1 -1
  741. package/lodash/toFinite.js +1 -1
  742. package/lodash/toInteger.js +1 -1
  743. package/lodash/toIterator.js +1 -1
  744. package/lodash/toJSON.js +1 -1
  745. package/lodash/toLength.js +1 -1
  746. package/lodash/toLower.js +1 -1
  747. package/lodash/toNumber.js +1 -1
  748. package/lodash/toPairs.js +1 -1
  749. package/lodash/toPairsIn.js +1 -1
  750. package/lodash/toPath.js +1 -1
  751. package/lodash/toPlainObject.js +1 -1
  752. package/lodash/toSafeInteger.js +1 -1
  753. package/lodash/toString.js +1 -1
  754. package/lodash/toUpper.js +1 -1
  755. package/lodash/transform.js +1 -1
  756. package/lodash/trim.js +1 -1
  757. package/lodash/trimEnd.js +1 -1
  758. package/lodash/trimStart.js +1 -1
  759. package/lodash/truncate.js +1 -1
  760. package/lodash/unary.js +1 -1
  761. package/lodash/unescape.js +1 -1
  762. package/lodash/union.js +1 -1
  763. package/lodash/unionBy.js +1 -1
  764. package/lodash/unionWith.js +1 -1
  765. package/lodash/uniq.js +1 -1
  766. package/lodash/uniqBy.js +1 -1
  767. package/lodash/uniqWith.js +1 -1
  768. package/lodash/uniqueId.js +1 -1
  769. package/lodash/unset.js +1 -1
  770. package/lodash/unzip.js +1 -1
  771. package/lodash/unzipWith.js +1 -1
  772. package/lodash/update.js +1 -1
  773. package/lodash/updateWith.js +1 -1
  774. package/lodash/upperCase.js +1 -1
  775. package/lodash/upperFirst.js +1 -1
  776. package/lodash/util.default.js +1 -1
  777. package/lodash/util.js +1 -1
  778. package/lodash/value.js +1 -1
  779. package/lodash/valueOf.js +1 -1
  780. package/lodash/values.js +1 -1
  781. package/lodash/valuesIn.js +1 -1
  782. package/lodash/without.js +1 -1
  783. package/lodash/words.js +1 -1
  784. package/lodash/wrap.js +1 -1
  785. package/lodash/wrapperAt.js +1 -1
  786. package/lodash/wrapperChain.js +1 -1
  787. package/lodash/wrapperLodash.js +1 -1
  788. package/lodash/wrapperReverse.js +1 -1
  789. package/lodash/wrapperValue.js +1 -1
  790. package/lodash/xor.js +1 -1
  791. package/lodash/xorBy.js +1 -1
  792. package/lodash/xorWith.js +1 -1
  793. package/lodash/zip.js +1 -1
  794. package/lodash/zipObject.js +1 -1
  795. package/lodash/zipObjectDeep.js +1 -1
  796. package/lodash/zipWith.js +1 -1
  797. package/math/index.js +1 -1
  798. package/md5/index.js +1 -1
  799. package/mock/MockWebSocket.js +1 -1
  800. package/mock/MockXMLHttpRequest.js +1 -1
  801. package/mock/index.js +1 -1
  802. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  803. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  804. package/normalize-wheel/index.js +1 -1
  805. package/normalize-wheel/isEventSupported.js +1 -1
  806. package/number-to-chinese/index.js +1 -1
  807. package/nzh/cn.js +1 -1
  808. package/nzh/hk.js +1 -1
  809. package/nzh/index.js +1 -1
  810. package/nzh/nzh.js +1 -1
  811. package/nzh/src/autoGet.js +1 -1
  812. package/nzh/src/index.js +1 -1
  813. package/nzh/src/langs/cn_b.js +1 -1
  814. package/nzh/src/langs/cn_s.js +1 -1
  815. package/nzh/src/langs/hk_b.js +1 -1
  816. package/nzh/src/langs/hk_s.js +1 -1
  817. package/nzh/src/utils.js +21 -20
  818. package/object/index.d.ts +5 -1
  819. package/object/index.js +13 -7
  820. package/package.json +1 -1
  821. package/pinyin/core.js +1 -1
  822. package/pinyin/index.js +1 -1
  823. package/pinyin/simplified.js +1 -1
  824. package/pinyin/simplified_dict.js +1 -1
  825. package/pinyin/traditional.js +1 -1
  826. package/pinyin/traditional_dict.js +1 -1
  827. package/query-string/base.js +1 -1
  828. package/query-string/index.js +1 -1
  829. package/query-string/splitOnFirst.js +1 -1
  830. package/random/address.js +1 -1
  831. package/random/constellation.js +1 -1
  832. package/random/image.js +1 -1
  833. package/random/index.js +1 -1
  834. package/random/licensePlate.js +1 -1
  835. package/random/name.js +1 -1
  836. package/random/number.js +1 -1
  837. package/random/text.js +1 -1
  838. package/random/time.js +1 -1
  839. package/random/web.js +1 -1
  840. package/sanitize-url/index.js +1 -1
  841. package/screenfull/index.js +1 -1
  842. package/sleep/index.js +1 -1
  843. package/snapdom/index.browser.d.ts +1 -1
  844. package/snapdom/index.browser.js +2 -6
  845. package/snapdom/index.d.ts +1 -2
  846. package/snapdom/index.js +4 -3
  847. package/snapdom/{api → src/api}/preCache.js +2 -2
  848. package/snapdom/{api → src/api}/snapdom.js +3 -3
  849. package/snapdom/{core → src/core}/cache.js +2 -2
  850. package/snapdom/{core → src/core}/capture.js +3 -3
  851. package/snapdom/src/core/clone.js +266 -0
  852. package/snapdom/{core → src/core}/context.js +2 -2
  853. package/snapdom/{core → src/core}/plugins.js +2 -2
  854. package/snapdom/{core → src/core}/prepare.js +2 -2
  855. package/snapdom/{exporters → src/exporters}/download.js +2 -2
  856. package/snapdom/{exporters → src/exporters}/toBlob.js +2 -2
  857. package/snapdom/{exporters → src/exporters}/toCanvas.js +29 -20
  858. package/snapdom/{exporters → src/exporters}/toImg.js +2 -2
  859. package/snapdom/src/index.browser.d.ts +1 -0
  860. package/snapdom/src/index.browser.js +7 -0
  861. package/snapdom/src/index.d.ts +2 -0
  862. package/snapdom/src/index.js +4 -0
  863. package/snapdom/{modules → src/modules}/CSSVar.d.ts +1 -0
  864. package/snapdom/src/modules/CSSVar.js +101 -0
  865. package/snapdom/{modules → src/modules}/background.js +5 -2
  866. package/snapdom/{modules → src/modules}/changeCSS.js +2 -2
  867. package/snapdom/{modules → src/modules}/counter.d.ts +6 -2
  868. package/snapdom/{modules → src/modules}/counter.js +20 -23
  869. package/snapdom/{modules → src/modules}/fonts.js +2 -2
  870. package/snapdom/{modules → src/modules}/iconFonts.js +2 -2
  871. package/snapdom/{modules → src/modules}/images.js +6 -6
  872. package/snapdom/{modules → src/modules}/lineClamp.js +2 -2
  873. package/snapdom/{modules → src/modules}/pictureResolver.js +2 -2
  874. package/snapdom/{modules → src/modules}/pseudo.js +53 -47
  875. package/snapdom/{modules → src/modules}/rasterize.js +2 -2
  876. package/snapdom/{modules → src/modules}/snapFetch.js +2 -2
  877. package/snapdom/{modules → src/modules}/styles.js +9 -4
  878. package/snapdom/{modules → src/modules}/svgDefs.js +2 -2
  879. package/snapdom/{utils → src/utils}/browser.js +2 -2
  880. package/snapdom/{utils → src/utils}/capture.helpers.js +2 -2
  881. package/snapdom/{utils → src/utils}/clone.helpers.d.ts +14 -0
  882. package/snapdom/{utils → src/utils}/clone.helpers.js +8 -5
  883. package/snapdom/{utils → src/utils}/css.js +15 -5
  884. package/snapdom/{utils → src/utils}/debug.js +2 -2
  885. package/snapdom/{utils → src/utils}/helpers.js +2 -2
  886. package/snapdom/{utils → src/utils}/image.js +2 -2
  887. package/snapdom/{utils → src/utils}/index.js +1 -1
  888. package/snapdom/{utils → src/utils}/prepare.helpers.js +2 -2
  889. package/snapdom/{utils → src/utils}/transforms.helpers.js +2 -2
  890. package/string/chars.js +1 -1
  891. package/string/index.js +1 -1
  892. package/tinycolor/conversion.d.ts +1 -1
  893. package/tinycolor/conversion.js +1 -1
  894. package/tinycolor/css-color-names.js +1 -1
  895. package/tinycolor/format-input.js +54 -53
  896. package/tinycolor/from-ratio.js +1 -1
  897. package/tinycolor/index.js +1 -1
  898. package/tinycolor/interfaces.js +1 -1
  899. package/tinycolor/public_api.js +1 -1
  900. package/tinycolor/random.js +1 -1
  901. package/tinycolor/readability.js +1 -1
  902. package/tinycolor/to-ms-filter.js +1 -1
  903. package/tinycolor/umd_api.js +1 -1
  904. package/tinycolor/utils.d.ts +1 -1
  905. package/tinycolor/utils.js +1 -1
  906. package/tree/index.js +1 -1
  907. package/tree/searchTree.js +1 -1
  908. package/tween/easing.js +1 -1
  909. package/tween/index.js +1 -1
  910. package/tween/tween.js +1 -1
  911. package/ui-color/compareColorByRange.js +1 -1
  912. package/ui-color/index.js +1 -1
  913. package/url-toolkit/index.js +1 -1
  914. package/validate/index.js +1 -1
  915. package/validate/interface.js +1 -1
  916. package/validate/locale/en-US.js +1 -1
  917. package/validate/locale/index.js +1 -1
  918. package/validate/locale/zh-CN.js +1 -1
  919. package/validate/rules/array.js +1 -1
  920. package/validate/rules/base.js +1 -1
  921. package/validate/rules/boolean.js +1 -1
  922. package/validate/rules/custom.js +1 -1
  923. package/validate/rules/number.js +1 -1
  924. package/validate/rules/object.js +1 -1
  925. package/validate/rules/string.js +1 -1
  926. package/validate/rules/type.js +1 -1
  927. package/version/index.js +1 -1
  928. package/xlsx/crc32.js +1 -1
  929. package/xlsx/index.js +1 -1
  930. package/xlsx/xlsx.js +3868 -3867
  931. package/constant/isMobile.d.ts +0 -3
  932. package/constant/isMobile.js +0 -6
  933. package/filesize/filesize.js +0 -50
  934. package/filesize/helpers.d.ts +0 -58
  935. package/filesize/helpers.js +0 -70
  936. package/snapdom/core/clone.js +0 -266
  937. package/snapdom/modules/CSSVar.js +0 -82
  938. /package/filesize/{constants.d.ts → src/constants.d.ts} +0 -0
  939. /package/snapdom/{api → src/api}/preCache.d.ts +0 -0
  940. /package/snapdom/{api → src/api}/snapdom.d.ts +0 -0
  941. /package/snapdom/{core → src/core}/cache.d.ts +0 -0
  942. /package/snapdom/{core → src/core}/capture.d.ts +0 -0
  943. /package/snapdom/{core → src/core}/clone.d.ts +0 -0
  944. /package/snapdom/{core → src/core}/context.d.ts +0 -0
  945. /package/snapdom/{core → src/core}/exporters.d.ts +0 -0
  946. /package/snapdom/{core → src/core}/plugins.d.ts +0 -0
  947. /package/snapdom/{core → src/core}/prepare.d.ts +0 -0
  948. /package/snapdom/{exporters → src/exporters}/download.d.ts +0 -0
  949. /package/snapdom/{exporters → src/exporters}/toBlob.d.ts +0 -0
  950. /package/snapdom/{exporters → src/exporters}/toCanvas.d.ts +0 -0
  951. /package/snapdom/{exporters → src/exporters}/toImg.d.ts +0 -0
  952. /package/snapdom/{exporters → src/exporters}/toJpg.d.ts +0 -0
  953. /package/snapdom/{exporters → src/exporters}/toPng.d.ts +0 -0
  954. /package/snapdom/{exporters → src/exporters}/toSvg.d.ts +0 -0
  955. /package/snapdom/{exporters → src/exporters}/toWebp.d.ts +0 -0
  956. /package/snapdom/{modules → src/modules}/background.d.ts +0 -0
  957. /package/snapdom/{modules → src/modules}/changeCSS.d.ts +0 -0
  958. /package/snapdom/{modules → src/modules}/fonts.d.ts +0 -0
  959. /package/snapdom/{modules → src/modules}/iconFonts.d.ts +0 -0
  960. /package/snapdom/{modules → src/modules}/images.d.ts +0 -0
  961. /package/snapdom/{modules → src/modules}/lineClamp.d.ts +0 -0
  962. /package/snapdom/{modules → src/modules}/pictureResolver.d.ts +0 -0
  963. /package/snapdom/{modules → src/modules}/pseudo.d.ts +0 -0
  964. /package/snapdom/{modules → src/modules}/rasterize.d.ts +0 -0
  965. /package/snapdom/{modules → src/modules}/snapFetch.d.ts +0 -0
  966. /package/snapdom/{modules → src/modules}/styles.d.ts +0 -0
  967. /package/snapdom/{modules → src/modules}/svgDefs.d.ts +0 -0
  968. /package/snapdom/{utils → src/utils}/browser.d.ts +0 -0
  969. /package/snapdom/{utils → src/utils}/capture.helpers.d.ts +0 -0
  970. /package/snapdom/{utils → src/utils}/css.d.ts +0 -0
  971. /package/snapdom/{utils → src/utils}/debug.d.ts +0 -0
  972. /package/snapdom/{utils → src/utils}/helpers.d.ts +0 -0
  973. /package/snapdom/{utils → src/utils}/image.d.ts +0 -0
  974. /package/snapdom/{utils → src/utils}/index.d.ts +0 -0
  975. /package/snapdom/{utils → src/utils}/prepare.helpers.d.ts +0 -0
  976. /package/snapdom/{utils → src/utils}/transforms.helpers.d.ts +0 -0
@@ -1,27 +1,28 @@
1
- /* 潘启宝 2026-04-23 09:23:17 星期四 */
2
- import e from "lodash/isUndefined.js";
1
+ /* 潘启宝 2026-05-15 17:45:33 星期五 */
2
+ import { hasOwn as e } from "../object/index.js";
3
+ import t from "lodash/isUndefined.js";
3
4
  //#region utils/decimal/decimal.js
4
- var t = 9e15, n = 1e9, r = "0123456789abcdef", i = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", a = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", o = {
5
+ var n = 9e15, r = 1e9, i = "0123456789abcdef", a = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", o = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", s = {
5
6
  precision: 20,
6
7
  rounding: 4,
7
8
  modulo: 1,
8
9
  toExpNeg: -7,
9
10
  toExpPos: 21,
10
- minE: -t,
11
- maxE: t,
11
+ minE: -n,
12
+ maxE: n,
12
13
  crypto: !1
13
- }, s, c, l, u = !0, d = "[DecimalError] ", f = `${d}Invalid argument: `, p = `${d}Precision limit exceeded`, m = `${d}crypto unavailable`, h = "[object Decimal]", g = Math.floor, _ = Math.pow, v = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, y = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, b = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, x = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, S = 1e7, C = 7, w = 9007199254740991, T = i.length - 1, E = a.length - 1, D = { toStringTag: h };
14
- D.absoluteValue = D.abs = function() {
14
+ }, c, l, u, d = !0, f = "[DecimalError] ", p = `${f}Invalid argument: `, m = `${f}Precision limit exceeded`, h = `${f}crypto unavailable`, g = "[object Decimal]", _ = Math.floor, v = Math.pow, y = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, b = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, x = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, S = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, C = 1e7, w = 7, T = 9007199254740991, E = a.length - 1, D = o.length - 1, O = { toStringTag: g };
15
+ O.absoluteValue = O.abs = function() {
15
16
  var e = new this.constructor(this);
16
- return e.s < 0 && (e.s = 1), P(e);
17
- }, D.ceil = function() {
18
- return P(new this.constructor(this), this.e + 1, 2);
19
- }, D.clampedTo = D.clamp = function(e, t) {
17
+ return e.s < 0 && (e.s = 1), F(e);
18
+ }, O.ceil = function() {
19
+ return F(new this.constructor(this), this.e + 1, 2);
20
+ }, O.clampedTo = O.clamp = function(e, t) {
20
21
  var n, r = this, i = r.constructor;
21
22
  if (e = new i(e), t = new i(t), !e.s || !t.s) return new i(NaN);
22
- if (e.gt(t)) throw Error(f + t);
23
+ if (e.gt(t)) throw Error(p + t);
23
24
  return n = r.cmp(e), n < 0 ? e : r.cmp(t) > 0 ? t : new i(r);
24
- }, D.comparedTo = D.cmp = function(e) {
25
+ }, O.comparedTo = O.cmp = function(e) {
25
26
  var t, n, r, i, a = this, o = a.d, s = (e = new a.constructor(e)).d, c = a.s, l = e.s;
26
27
  if (!o || !s) return !c || !l ? NaN : c === l ? o === s ? 0 : !o ^ c < 0 ? 1 : -1 : c;
27
28
  if (!o[0] || !s[0]) return o[0] ? c : s[0] ? -l : 0;
@@ -29,136 +30,136 @@ D.absoluteValue = D.abs = function() {
29
30
  if (a.e !== e.e) return a.e > e.e ^ c < 0 ? 1 : -1;
30
31
  for (r = o.length, i = s.length, t = 0, n = r < i ? r : i; t < n; ++t) if (o[t] !== s[t]) return o[t] > s[t] ^ c < 0 ? 1 : -1;
31
32
  return r === i ? 0 : r > i ^ c < 0 ? 1 : -1;
32
- }, D.cosine = D.cos = function() {
33
+ }, O.cosine = O.cos = function() {
33
34
  var e, t, n = this, r = n.constructor;
34
- return n.d ? n.d[0] ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + C, r.rounding = 1, n = M(r, Y(r, n)), r.precision = e, r.rounding = t, P(l == 2 || l == 3 ? n.neg() : n, e, t, !0)) : new r(1) : new r(NaN);
35
- }, D.cubeRoot = D.cbrt = function() {
36
- var e, t, n, r, i, a, o, s, c, l, d = this, f = d.constructor;
37
- if (!d.isFinite() || d.isZero()) return new f(d);
38
- for (u = !1, a = d.s * _(d.s * d, 1 / 3), !a || Math.abs(a) == Infinity ? (n = O(d.d), e = d.e, (a = (e - n.length + 1) % 3) && (n += a == 1 || a == -2 ? "0" : "00"), a = _(n, 1 / 3), e = g((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == Infinity ? n = "5e" + e : (n = a.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + e), r = new f(n), r.s = d.s) : r = new f(a.toString()), o = (e = f.precision) + 3;;) if (s = r, c = s.times(s).times(s), l = c.plus(d), r = N(l.plus(d).times(s), l.plus(c), o + 2, 1), O(s.d).slice(0, o) === (n = O(r.d)).slice(0, o)) if (n = n.slice(o - 3, o + 1), n == "9999" || !i && n == "4999") {
39
- if (!i && (P(s, e + 1, 0), s.times(s).times(s).eq(d))) {
35
+ return n.d ? n.d[0] ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + w, r.rounding = 1, n = N(r, X(r, n)), r.precision = e, r.rounding = t, F(u == 2 || u == 3 ? n.neg() : n, e, t, !0)) : new r(1) : new r(NaN);
36
+ }, O.cubeRoot = O.cbrt = function() {
37
+ var e, t, n, r, i, a, o, s, c, l, u = this, f = u.constructor;
38
+ if (!u.isFinite() || u.isZero()) return new f(u);
39
+ for (d = !1, a = u.s * v(u.s * u, 1 / 3), !a || Math.abs(a) == Infinity ? (n = k(u.d), e = u.e, (a = (e - n.length + 1) % 3) && (n += a == 1 || a == -2 ? "0" : "00"), a = v(n, 1 / 3), e = _((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == Infinity ? n = "5e" + e : (n = a.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + e), r = new f(n), r.s = u.s) : r = new f(a.toString()), o = (e = f.precision) + 3;;) if (s = r, c = s.times(s).times(s), l = c.plus(u), r = P(l.plus(u).times(s), l.plus(c), o + 2, 1), k(s.d).slice(0, o) === (n = k(r.d)).slice(0, o)) if (n = n.slice(o - 3, o + 1), n == "9999" || !i && n == "4999") {
40
+ if (!i && (F(s, e + 1, 0), s.times(s).times(s).eq(u))) {
40
41
  r = s;
41
42
  break;
42
43
  }
43
44
  o += 4, i = 1;
44
45
  } else {
45
- (!+n || !+n.slice(1) && n.charAt(0) == "5") && (P(r, e + 1, 1), t = !r.times(r).times(r).eq(d));
46
+ (!+n || !+n.slice(1) && n.charAt(0) == "5") && (F(r, e + 1, 1), t = !r.times(r).times(r).eq(u));
46
47
  break;
47
48
  }
48
- return u = !0, P(r, e, f.rounding, t);
49
- }, D.decimalPlaces = D.dp = function() {
49
+ return d = !0, F(r, e, f.rounding, t);
50
+ }, O.decimalPlaces = O.dp = function() {
50
51
  var e, t = this.d, n = NaN;
51
52
  if (t) {
52
- if (e = t.length - 1, n = (e - g(this.e / C)) * C, e = t[e], e) for (; e % 10 == 0; e /= 10) n--;
53
+ if (e = t.length - 1, n = (e - _(this.e / w)) * w, e = t[e], e) for (; e % 10 == 0; e /= 10) n--;
53
54
  n < 0 && (n = 0);
54
55
  }
55
56
  return n;
56
- }, D.dividedBy = D.div = function(e) {
57
- return N(this, new this.constructor(e));
58
- }, D.dividedToIntegerBy = D.divToInt = function(e) {
57
+ }, O.dividedBy = O.div = function(e) {
58
+ return P(this, new this.constructor(e));
59
+ }, O.dividedToIntegerBy = O.divToInt = function(e) {
59
60
  var t = this, n = t.constructor;
60
- return P(N(t, new n(e), 0, 1, 1), n.precision, n.rounding);
61
- }, D.equals = D.eq = function(e) {
61
+ return F(P(t, new n(e), 0, 1, 1), n.precision, n.rounding);
62
+ }, O.equals = O.eq = function(e) {
62
63
  return this.cmp(e) === 0;
63
- }, D.floor = function() {
64
- return P(new this.constructor(this), this.e + 1, 3);
65
- }, D.greaterThan = D.gt = function(e) {
64
+ }, O.floor = function() {
65
+ return F(new this.constructor(this), this.e + 1, 3);
66
+ }, O.greaterThan = O.gt = function(e) {
66
67
  return this.cmp(e) > 0;
67
- }, D.greaterThanOrEqualTo = D.gte = function(e) {
68
+ }, O.greaterThanOrEqualTo = O.gte = function(e) {
68
69
  var t = this.cmp(e);
69
70
  return t == 1 || t === 0;
70
- }, D.hyperbolicCosine = D.cosh = function() {
71
+ }, O.hyperbolicCosine = O.cosh = function() {
71
72
  var e, t, n, r, i, a = this, o = a.constructor, s = new o(1);
72
73
  if (!a.isFinite()) return new o(a.s ? Infinity : NaN);
73
74
  if (a.isZero()) return s;
74
- n = o.precision, r = o.rounding, o.precision = n + Math.max(a.e, a.sd()) + 4, o.rounding = 1, i = a.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / J(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), a = q(o, 1, a.times(t), new o(1), !0);
75
+ n = o.precision, r = o.rounding, o.precision = n + Math.max(a.e, a.sd()) + 4, o.rounding = 1, i = a.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / Y(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), a = J(o, 1, a.times(t), new o(1), !0);
75
76
  for (var c, l = e, u = new o(8); l--;) c = a.times(a), a = s.minus(c.times(u.minus(c.times(u))));
76
- return P(a, o.precision = n, o.rounding = r, !0);
77
- }, D.hyperbolicSine = D.sinh = function() {
77
+ return F(a, o.precision = n, o.rounding = r, !0);
78
+ }, O.hyperbolicSine = O.sinh = function() {
78
79
  var e, t, n, r, i = this, a = i.constructor;
79
80
  if (!i.isFinite() || i.isZero()) return new a(i);
80
- if (t = a.precision, n = a.rounding, a.precision = t + Math.max(i.e, i.sd()) + 4, a.rounding = 1, r = i.d.length, r < 3) i = q(a, 2, i, i, !0);
81
+ if (t = a.precision, n = a.rounding, a.precision = t + Math.max(i.e, i.sd()) + 4, a.rounding = 1, r = i.d.length, r < 3) i = J(a, 2, i, i, !0);
81
82
  else {
82
- e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / J(5, e)), i = q(a, 2, i, i, !0);
83
+ e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / Y(5, e)), i = J(a, 2, i, i, !0);
83
84
  for (var o, s = new a(5), c = new a(16), l = new a(20); e--;) o = i.times(i), i = i.times(s.plus(o.times(c.times(o).plus(l))));
84
85
  }
85
- return a.precision = t, a.rounding = n, P(i, t, n, !0);
86
- }, D.hyperbolicTangent = D.tanh = function() {
86
+ return a.precision = t, a.rounding = n, F(i, t, n, !0);
87
+ }, O.hyperbolicTangent = O.tanh = function() {
87
88
  var e, t, n = this, r = n.constructor;
88
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 7, r.rounding = 1, N(n.sinh(), n.cosh(), r.precision = e, r.rounding = t)) : new r(n.s);
89
- }, D.inverseCosine = D.acos = function() {
89
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 7, r.rounding = 1, P(n.sinh(), n.cosh(), r.precision = e, r.rounding = t)) : new r(n.s);
90
+ }, O.inverseCosine = O.acos = function() {
90
91
  var e = this, t = e.constructor, n = e.abs().cmp(1), r = t.precision, i = t.rounding;
91
- return n === -1 ? e.isZero() ? R(t, r + 4, i).times(.5) : (t.precision = r + 6, t.rounding = 1, e = new t(1).minus(e).div(e.plus(1)).sqrt().atan(), t.precision = r, t.rounding = i, e.times(2)) : n === 0 ? e.isNeg() ? R(t, r, i) : new t(0) : new t(NaN);
92
- }, D.inverseHyperbolicCosine = D.acosh = function() {
92
+ return n === -1 ? e.isZero() ? z(t, r + 4, i).times(.5) : (t.precision = r + 6, t.rounding = 1, e = new t(1).minus(e).div(e.plus(1)).sqrt().atan(), t.precision = r, t.rounding = i, e.times(2)) : n === 0 ? e.isNeg() ? z(t, r, i) : new t(0) : new t(NaN);
93
+ }, O.inverseHyperbolicCosine = O.acosh = function() {
93
94
  var e, t, n = this, r = n.constructor;
94
- return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, u = !1, n = n.times(n).minus(1).sqrt().plus(n), u = !0, r.precision = e, r.rounding = t, n.ln()) : new r(n);
95
- }, D.inverseHyperbolicSine = D.asinh = function() {
95
+ return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, d = !1, n = n.times(n).minus(1).sqrt().plus(n), d = !0, r.precision = e, r.rounding = t, n.ln()) : new r(n);
96
+ }, O.inverseHyperbolicSine = O.asinh = function() {
96
97
  var e, t, n = this, r = n.constructor;
97
- return !n.isFinite() || n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, u = !1, n = n.times(n).plus(1).sqrt().plus(n), u = !0, r.precision = e, r.rounding = t, n.ln());
98
- }, D.inverseHyperbolicTangent = D.atanh = function() {
98
+ return !n.isFinite() || n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, d = !1, n = n.times(n).plus(1).sqrt().plus(n), d = !0, r.precision = e, r.rounding = t, n.ln());
99
+ }, O.inverseHyperbolicTangent = O.atanh = function() {
99
100
  var e, t, n, r, i = this, a = i.constructor;
100
- return i.isFinite() ? i.e >= 0 ? new a(i.abs().eq(1) ? i.s / 0 : i.isZero() ? i : NaN) : (e = a.precision, t = a.rounding, r = i.sd(), Math.max(r, e) < 2 * -i.e - 1 ? P(new a(i), e, t, !0) : (a.precision = n = r - i.e, i = N(i.plus(1), new a(1).minus(i), n + e, 1), a.precision = e + 4, a.rounding = 1, i = i.ln(), a.precision = e, a.rounding = t, i.times(.5))) : new a(NaN);
101
- }, D.inverseSine = D.asin = function() {
101
+ return i.isFinite() ? i.e >= 0 ? new a(i.abs().eq(1) ? i.s / 0 : i.isZero() ? i : NaN) : (e = a.precision, t = a.rounding, r = i.sd(), Math.max(r, e) < 2 * -i.e - 1 ? F(new a(i), e, t, !0) : (a.precision = n = r - i.e, i = P(i.plus(1), new a(1).minus(i), n + e, 1), a.precision = e + 4, a.rounding = 1, i = i.ln(), a.precision = e, a.rounding = t, i.times(.5))) : new a(NaN);
102
+ }, O.inverseSine = O.asin = function() {
102
103
  var e, t, n, r, i = this, a = i.constructor;
103
- return i.isZero() ? new a(i) : (t = i.abs().cmp(1), n = a.precision, r = a.rounding, t === -1 ? (a.precision = n + 6, a.rounding = 1, i = i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(), a.precision = n, a.rounding = r, i.times(2)) : t === 0 ? (e = R(a, n + 4, r).times(.5), e.s = i.s, e) : new a(NaN));
104
- }, D.inverseTangent = D.atan = function() {
105
- var e, t, n, r, i, a, o, s, c, l = this, d = l.constructor, f = d.precision, p = d.rounding;
104
+ return i.isZero() ? new a(i) : (t = i.abs().cmp(1), n = a.precision, r = a.rounding, t === -1 ? (a.precision = n + 6, a.rounding = 1, i = i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(), a.precision = n, a.rounding = r, i.times(2)) : t === 0 ? (e = z(a, n + 4, r).times(.5), e.s = i.s, e) : new a(NaN));
105
+ }, O.inverseTangent = O.atan = function() {
106
+ var e, t, n, r, i, a, o, s, c, l = this, u = l.constructor, f = u.precision, p = u.rounding;
106
107
  if (!l.isFinite()) {
107
- if (!l.s) return new d(NaN);
108
- if (f + 4 <= E) return o = R(d, f + 4, p).times(.5), o.s = l.s, o;
109
- } else if (l.isZero()) return new d(l);
110
- else if (l.abs().eq(1) && f + 4 <= E) return o = R(d, f + 4, p).times(.25), o.s = l.s, o;
111
- for (d.precision = s = f + 10, d.rounding = 1, n = Math.min(28, s / C + 2 | 0), e = n; e; --e) l = l.div(l.times(l).plus(1).sqrt().plus(1));
112
- for (u = !1, t = Math.ceil(s / C), r = 1, c = l.times(l), o = new d(l), i = l; e !== -1;) if (i = i.times(c), a = o.minus(i.div(r += 2)), i = i.times(c), o = a.plus(i.div(r += 2)), o.d[t] !== void 0) for (e = t; o.d[e] === a.d[e] && e--;);
113
- return n && (o = o.times(2 << n - 1)), u = !0, P(o, d.precision = f, d.rounding = p, !0);
114
- }, D.isFinite = function() {
108
+ if (!l.s) return new u(NaN);
109
+ if (f + 4 <= D) return o = z(u, f + 4, p).times(.5), o.s = l.s, o;
110
+ } else if (l.isZero()) return new u(l);
111
+ else if (l.abs().eq(1) && f + 4 <= D) return o = z(u, f + 4, p).times(.25), o.s = l.s, o;
112
+ for (u.precision = s = f + 10, u.rounding = 1, n = Math.min(28, s / w + 2 | 0), e = n; e; --e) l = l.div(l.times(l).plus(1).sqrt().plus(1));
113
+ for (d = !1, t = Math.ceil(s / w), r = 1, c = l.times(l), o = new u(l), i = l; e !== -1;) if (i = i.times(c), a = o.minus(i.div(r += 2)), i = i.times(c), o = a.plus(i.div(r += 2)), o.d[t] !== void 0) for (e = t; o.d[e] === a.d[e] && e--;);
114
+ return n && (o = o.times(2 << n - 1)), d = !0, F(o, u.precision = f, u.rounding = p, !0);
115
+ }, O.isFinite = function() {
115
116
  return !!this.d;
116
- }, D.isInteger = D.isInt = function() {
117
- return !!this.d && g(this.e / C) > this.d.length - 2;
118
- }, D.isNaN = function() {
117
+ }, O.isInteger = O.isInt = function() {
118
+ return !!this.d && _(this.e / w) > this.d.length - 2;
119
+ }, O.isNaN = function() {
119
120
  return !this.s;
120
- }, D.isNegative = D.isNeg = function() {
121
+ }, O.isNegative = O.isNeg = function() {
121
122
  return this.s < 0;
122
- }, D.isPositive = D.isPos = function() {
123
+ }, O.isPositive = O.isPos = function() {
123
124
  return this.s > 0;
124
- }, D.isZero = function() {
125
+ }, O.isZero = function() {
125
126
  return !!this.d && this.d[0] === 0;
126
- }, D.lessThan = D.lt = function(e) {
127
+ }, O.lessThan = O.lt = function(e) {
127
128
  return this.cmp(e) < 0;
128
- }, D.lessThanOrEqualTo = D.lte = function(e) {
129
+ }, O.lessThanOrEqualTo = O.lte = function(e) {
129
130
  return this.cmp(e) < 1;
130
- }, D.logarithm = D.log = function(e) {
131
- var t, n, r, i, a, o, s, c, l = this, d = l.constructor, f = d.precision, p = d.rounding, m = 5;
132
- if (e == null) e = new d(10), t = !0;
131
+ }, O.logarithm = O.log = function(e) {
132
+ var t, n, r, i, a, o, s, c, l = this, u = l.constructor, f = u.precision, p = u.rounding, m = 5;
133
+ if (e == null) e = new u(10), t = !0;
133
134
  else {
134
- if (e = new d(e), n = e.d, e.s < 0 || !n || !n[0] || e.eq(1)) return new d(NaN);
135
+ if (e = new u(e), n = e.d, e.s < 0 || !n || !n[0] || e.eq(1)) return new u(NaN);
135
136
  t = e.eq(10);
136
137
  }
137
- if (n = l.d, l.s < 0 || !n || !n[0] || l.eq(1)) return new d(n && !n[0] ? -Infinity : l.s == 1 ? n ? 0 : Infinity : NaN);
138
+ if (n = l.d, l.s < 0 || !n || !n[0] || l.eq(1)) return new u(n && !n[0] ? -Infinity : l.s == 1 ? n ? 0 : Infinity : NaN);
138
139
  if (t) if (n.length > 1) a = !0;
139
140
  else {
140
141
  for (i = n[0]; i % 10 == 0;) i /= 10;
141
142
  a = i !== 1;
142
143
  }
143
- if (u = !1, s = f + m, o = W(l, s), r = t ? L(d, s + 10) : W(e, s), c = N(o, r, s, 1), A(c.d, i = f, p)) do
144
- if (s += 10, o = W(l, s), r = t ? L(d, s + 10) : W(e, s), c = N(o, r, s, 1), !a) {
145
- +O(c.d).slice(i + 1, i + 15) + 1 == 0x5af3107a4000 && (c = P(c, f + 1, 0));
144
+ if (d = !1, s = f + m, o = G(l, s), r = t ? R(u, s + 10) : G(e, s), c = P(o, r, s, 1), j(c.d, i = f, p)) do
145
+ if (s += 10, o = G(l, s), r = t ? R(u, s + 10) : G(e, s), c = P(o, r, s, 1), !a) {
146
+ +k(c.d).slice(i + 1, i + 15) + 1 == 0x5af3107a4000 && (c = F(c, f + 1, 0));
146
147
  break;
147
148
  }
148
- while (A(c.d, i += 10, p));
149
- return u = !0, P(c, f, p);
150
- }, D.minus = D.sub = function(e) {
151
- var t, n, r, i, a, o, s, c, l, d, f, p, m = this, h = m.constructor;
149
+ while (j(c.d, i += 10, p));
150
+ return d = !0, F(c, f, p);
151
+ }, O.minus = O.sub = function(e) {
152
+ var t, n, r, i, a, o, s, c, l, u, f, p, m = this, h = m.constructor;
152
153
  if (e = new h(e), !m.d || !e.d) return !m.s || !e.s ? e = new h(NaN) : m.d ? e.s = -e.s : e = new h(e.d || m.s !== e.s ? m : NaN), e;
153
154
  if (m.s != e.s) return e.s = -e.s, m.plus(e);
154
155
  if (l = m.d, p = e.d, s = h.precision, c = h.rounding, !l[0] || !p[0]) {
155
156
  if (p[0]) e.s = -e.s;
156
157
  else if (l[0]) e = new h(m);
157
158
  else return new h(c === 3 ? -0 : 0);
158
- return u ? P(e, s, c) : e;
159
+ return d ? F(e, s, c) : e;
159
160
  }
160
- if (n = g(e.e / C), d = g(m.e / C), l = l.slice(), a = d - n, a) {
161
- for (f = a < 0, f ? (t = l, a = -a, o = p.length) : (t = p, n = d, o = l.length), r = Math.max(Math.ceil(s / C), o) + 2, a > r && (a = r, t.length = 1), t.reverse(), r = a; r--;) t.push(0);
161
+ if (n = _(e.e / w), u = _(m.e / w), l = l.slice(), a = u - n, a) {
162
+ for (f = a < 0, f ? (t = l, a = -a, o = p.length) : (t = p, n = u, o = l.length), r = Math.max(Math.ceil(s / w), o) + 2, a > r && (a = r, t.length = 1), t.reverse(), r = a; r--;) t.push(0);
162
163
  t.reverse();
163
164
  } else {
164
165
  for (r = l.length, o = p.length, f = r < o, f && (o = r), r = 0; r < o; r++) if (l[r] != p[r]) {
@@ -170,171 +171,171 @@ D.absoluteValue = D.abs = function() {
170
171
  for (f && (t = l, l = p, p = t, e.s = -e.s), o = l.length, r = p.length - o; r > 0; --r) l[o++] = 0;
171
172
  for (r = p.length; r > a;) {
172
173
  if (l[--r] < p[r]) {
173
- for (i = r; i && l[--i] === 0;) l[i] = S - 1;
174
- --l[i], l[r] += S;
174
+ for (i = r; i && l[--i] === 0;) l[i] = C - 1;
175
+ --l[i], l[r] += C;
175
176
  }
176
177
  l[r] -= p[r];
177
178
  }
178
179
  for (; l[--o] === 0;) l.pop();
179
180
  for (; l[0] === 0; l.shift()) --n;
180
- return l[0] ? (e.d = l, e.e = I(l, n), u ? P(e, s, c) : e) : new h(c === 3 ? -0 : 0);
181
- }, D.modulo = D.mod = function(e) {
181
+ return l[0] ? (e.d = l, e.e = L(l, n), d ? F(e, s, c) : e) : new h(c === 3 ? -0 : 0);
182
+ }, O.modulo = O.mod = function(e) {
182
183
  var t, n = this, r = n.constructor;
183
- return e = new r(e), !n.d || !e.s || e.d && !e.d[0] ? new r(NaN) : !e.d || n.d && !n.d[0] ? P(new r(n), r.precision, r.rounding) : (u = !1, r.modulo == 9 ? (t = N(n, e.abs(), 0, 3, 1), t.s *= e.s) : t = N(n, e, 0, r.modulo, 1), t = t.times(e), u = !0, n.minus(t));
184
- }, D.naturalExponential = D.exp = function() {
185
- return U(this);
186
- }, D.naturalLogarithm = D.ln = function() {
184
+ return e = new r(e), !n.d || !e.s || e.d && !e.d[0] ? new r(NaN) : !e.d || n.d && !n.d[0] ? F(new r(n), r.precision, r.rounding) : (d = !1, r.modulo == 9 ? (t = P(n, e.abs(), 0, 3, 1), t.s *= e.s) : t = P(n, e, 0, r.modulo, 1), t = t.times(e), d = !0, n.minus(t));
185
+ }, O.naturalExponential = O.exp = function() {
187
186
  return W(this);
188
- }, D.negated = D.neg = function() {
187
+ }, O.naturalLogarithm = O.ln = function() {
188
+ return G(this);
189
+ }, O.negated = O.neg = function() {
189
190
  var e = new this.constructor(this);
190
- return e.s = -e.s, P(e);
191
- }, D.plus = D.add = function(e) {
192
- var t, n, r, i, a, o, s, c, l, d, f = this, p = f.constructor;
191
+ return e.s = -e.s, F(e);
192
+ }, O.plus = O.add = function(e) {
193
+ var t, n, r, i, a, o, s, c, l, u, f = this, p = f.constructor;
193
194
  if (e = new p(e), !f.d || !e.d) return !f.s || !e.s ? e = new p(NaN) : f.d || (e = new p(e.d || f.s === e.s ? f : NaN)), e;
194
195
  if (f.s != e.s) return e.s = -e.s, f.minus(e);
195
- if (l = f.d, d = e.d, s = p.precision, c = p.rounding, !l[0] || !d[0]) return d[0] || (e = new p(f)), u ? P(e, s, c) : e;
196
- if (a = g(f.e / C), r = g(e.e / C), l = l.slice(), i = a - r, i) {
197
- for (i < 0 ? (n = l, i = -i, o = d.length) : (n = d, r = a, o = l.length), a = Math.ceil(s / C), o = a > o ? a + 1 : o + 1, i > o && (i = o, n.length = 1), n.reverse(); i--;) n.push(0);
196
+ if (l = f.d, u = e.d, s = p.precision, c = p.rounding, !l[0] || !u[0]) return u[0] || (e = new p(f)), d ? F(e, s, c) : e;
197
+ if (a = _(f.e / w), r = _(e.e / w), l = l.slice(), i = a - r, i) {
198
+ for (i < 0 ? (n = l, i = -i, o = u.length) : (n = u, r = a, o = l.length), a = Math.ceil(s / w), o = a > o ? a + 1 : o + 1, i > o && (i = o, n.length = 1), n.reverse(); i--;) n.push(0);
198
199
  n.reverse();
199
200
  }
200
- for (o = l.length, i = d.length, o - i < 0 && (i = o, n = d, d = l, l = n), t = 0; i;) t = (l[--i] = l[i] + d[i] + t) / S | 0, l[i] %= S;
201
+ for (o = l.length, i = u.length, o - i < 0 && (i = o, n = u, u = l, l = n), t = 0; i;) t = (l[--i] = l[i] + u[i] + t) / C | 0, l[i] %= C;
201
202
  for (t && (l.unshift(t), ++r), o = l.length; l[--o] == 0;) l.pop();
202
- return e.d = l, e.e = I(l, r), u ? P(e, s, c) : e;
203
- }, D.precision = D.sd = function(e) {
203
+ return e.d = l, e.e = L(l, r), d ? F(e, s, c) : e;
204
+ }, O.precision = O.sd = function(e) {
204
205
  var t, n = this;
205
- if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(f + e);
206
- return n.d ? (t = z(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
207
- }, D.round = function() {
206
+ if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(p + e);
207
+ return n.d ? (t = B(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
208
+ }, O.round = function() {
208
209
  var e = this, t = e.constructor;
209
- return P(new t(e), e.e + 1, t.rounding);
210
- }, D.sine = D.sin = function() {
210
+ return F(new t(e), e.e + 1, t.rounding);
211
+ }, O.sine = O.sin = function() {
211
212
  var e, t, n = this, r = n.constructor;
212
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + C, r.rounding = 1, n = ne(r, Y(r, n)), r.precision = e, r.rounding = t, P(l > 2 ? n.neg() : n, e, t, !0)) : new r(NaN);
213
- }, D.squareRoot = D.sqrt = function() {
214
- var e, t, n, r, i, a, o = this, s = o.d, c = o.e, l = o.s, d = o.constructor;
215
- if (l !== 1 || !s || !s[0]) return new d(!l || l < 0 && (!s || s[0]) ? NaN : s ? o : Infinity);
216
- for (u = !1, l = Math.sqrt(+o), l == 0 || l == Infinity ? (t = O(s), (t.length + c) % 2 == 0 && (t += "0"), l = Math.sqrt(t), c = g((c + 1) / 2) - (c < 0 || c % 2), l == Infinity ? t = "5e" + c : (t = l.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), r = new d(t)) : r = new d(l.toString()), n = (c = d.precision) + 3;;) if (a = r, r = a.plus(N(o, a, n + 2, 1)).times(.5), O(a.d).slice(0, n) === (t = O(r.d)).slice(0, n)) if (t = t.slice(n - 3, n + 1), t == "9999" || !i && t == "4999") {
217
- if (!i && (P(a, c + 1, 0), a.times(a).eq(o))) {
213
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + w, r.rounding = 1, n = ne(r, X(r, n)), r.precision = e, r.rounding = t, F(u > 2 ? n.neg() : n, e, t, !0)) : new r(NaN);
214
+ }, O.squareRoot = O.sqrt = function() {
215
+ var e, t, n, r, i, a, o = this, s = o.d, c = o.e, l = o.s, u = o.constructor;
216
+ if (l !== 1 || !s || !s[0]) return new u(!l || l < 0 && (!s || s[0]) ? NaN : s ? o : Infinity);
217
+ for (d = !1, l = Math.sqrt(+o), l == 0 || l == Infinity ? (t = k(s), (t.length + c) % 2 == 0 && (t += "0"), l = Math.sqrt(t), c = _((c + 1) / 2) - (c < 0 || c % 2), l == Infinity ? t = "5e" + c : (t = l.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), r = new u(t)) : r = new u(l.toString()), n = (c = u.precision) + 3;;) if (a = r, r = a.plus(P(o, a, n + 2, 1)).times(.5), k(a.d).slice(0, n) === (t = k(r.d)).slice(0, n)) if (t = t.slice(n - 3, n + 1), t == "9999" || !i && t == "4999") {
218
+ if (!i && (F(a, c + 1, 0), a.times(a).eq(o))) {
218
219
  r = a;
219
220
  break;
220
221
  }
221
222
  n += 4, i = 1;
222
223
  } else {
223
- (!+t || !+t.slice(1) && t.charAt(0) == "5") && (P(r, c + 1, 1), e = !r.times(r).eq(o));
224
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (F(r, c + 1, 1), e = !r.times(r).eq(o));
224
225
  break;
225
226
  }
226
- return u = !0, P(r, c, d.rounding, e);
227
- }, D.tangent = D.tan = function() {
227
+ return d = !0, F(r, c, u.rounding, e);
228
+ }, O.tangent = O.tan = function() {
228
229
  var e, t, n = this, r = n.constructor;
229
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 10, r.rounding = 1, n = n.sin(), n.s = 1, n = N(n, new r(1).minus(n.times(n)).sqrt(), e + 10, 0), r.precision = e, r.rounding = t, P(l == 2 || l == 4 ? n.neg() : n, e, t, !0)) : new r(NaN);
230
- }, D.times = D.mul = function(e) {
231
- var t, n, r, i, a, o, s, c, l, d = this, f = d.constructor, p = d.d, m = (e = new f(e)).d;
232
- if (e.s *= d.s, !p || !p[0] || !m || !m[0]) return new f(!e.s || p && !p[0] && !m || m && !m[0] && !p ? NaN : !p || !m ? e.s / 0 : e.s * 0);
233
- for (n = g(d.e / C) + g(e.e / C), c = p.length, l = m.length, c < l && (a = p, p = m, m = a, o = c, c = l, l = o), a = [], o = c + l, r = o; r--;) a.push(0);
230
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 10, r.rounding = 1, n = n.sin(), n.s = 1, n = P(n, new r(1).minus(n.times(n)).sqrt(), e + 10, 0), r.precision = e, r.rounding = t, F(u == 2 || u == 4 ? n.neg() : n, e, t, !0)) : new r(NaN);
231
+ }, O.times = O.mul = function(e) {
232
+ var t, n, r, i, a, o, s, c, l, u = this, f = u.constructor, p = u.d, m = (e = new f(e)).d;
233
+ if (e.s *= u.s, !p || !p[0] || !m || !m[0]) return new f(!e.s || p && !p[0] && !m || m && !m[0] && !p ? NaN : !p || !m ? e.s / 0 : e.s * 0);
234
+ for (n = _(u.e / w) + _(e.e / w), c = p.length, l = m.length, c < l && (a = p, p = m, m = a, o = c, c = l, l = o), a = [], o = c + l, r = o; r--;) a.push(0);
234
235
  for (r = l; --r >= 0;) {
235
- for (t = 0, i = c + r; i > r;) s = a[i] + m[r] * p[i - r - 1] + t, a[i--] = s % S | 0, t = s / S | 0;
236
- a[i] = (a[i] + t) % S | 0;
236
+ for (t = 0, i = c + r; i > r;) s = a[i] + m[r] * p[i - r - 1] + t, a[i--] = s % C | 0, t = s / C | 0;
237
+ a[i] = (a[i] + t) % C | 0;
237
238
  }
238
239
  for (; !a[--o];) a.pop();
239
- return t ? ++n : a.shift(), e.d = a, e.e = I(a, n), u ? P(e, f.precision, f.rounding) : e;
240
- }, D.toBinary = function(e, t) {
241
- return X(this, 2, e, t);
242
- }, D.toDecimalPlaces = D.toDP = function(e, t) {
243
- var r = this, i = r.constructor;
244
- return r = new i(r), e === void 0 ? r : (k(e, 0, n), t === void 0 ? t = i.rounding : k(t, 0, 8), P(r, e + r.e + 1, t));
245
- }, D.toExponential = function(e, t) {
246
- var r, i = this, a = i.constructor;
247
- return e === void 0 ? r = F(i, !0) : (k(e, 0, n), t === void 0 ? t = a.rounding : k(t, 0, 8), i = P(new a(i), e + 1, t), r = F(i, !0, e + 1)), i.isNeg() && !i.isZero() ? "-" + r : r;
248
- }, D.toFixed = function(e, t) {
249
- var r, i, a = this, o = a.constructor;
250
- return e === void 0 ? r = F(a) : (k(e, 0, n), t === void 0 ? t = o.rounding : k(t, 0, 8), i = P(new o(a), e + a.e + 1, t), r = F(i, !1, e + i.e + 1)), a.isNeg() && !a.isZero() ? "-" + r : r;
251
- }, D.toFraction = function(e) {
252
- var t, n, r, i, a, o, s, c, l, d, p, m, h = this, g = h.d, v = h.constructor;
253
- if (!g) return new v(h);
254
- if (l = n = new v(1), r = c = new v(0), t = new v(r), a = t.e = z(g) - h.e - 1, o = a % C, t.d[0] = _(10, o < 0 ? C + o : o), e == null) e = a > 0 ? t : l;
240
+ return t ? ++n : a.shift(), e.d = a, e.e = L(a, n), d ? F(e, f.precision, f.rounding) : e;
241
+ }, O.toBinary = function(e, t) {
242
+ return Z(this, 2, e, t);
243
+ }, O.toDecimalPlaces = O.toDP = function(e, t) {
244
+ var n = this, i = n.constructor;
245
+ return n = new i(n), e === void 0 ? n : (A(e, 0, r), t === void 0 ? t = i.rounding : A(t, 0, 8), F(n, e + n.e + 1, t));
246
+ }, O.toExponential = function(e, t) {
247
+ var n, i = this, a = i.constructor;
248
+ return e === void 0 ? n = I(i, !0) : (A(e, 0, r), t === void 0 ? t = a.rounding : A(t, 0, 8), i = F(new a(i), e + 1, t), n = I(i, !0, e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
249
+ }, O.toFixed = function(e, t) {
250
+ var n, i, a = this, o = a.constructor;
251
+ return e === void 0 ? n = I(a) : (A(e, 0, r), t === void 0 ? t = o.rounding : A(t, 0, 8), i = F(new o(a), e + a.e + 1, t), n = I(i, !1, e + i.e + 1)), a.isNeg() && !a.isZero() ? "-" + n : n;
252
+ }, O.toFraction = function(e) {
253
+ var t, n, r, i, a, o, s, c, l, u, f, m, h = this, g = h.d, _ = h.constructor;
254
+ if (!g) return new _(h);
255
+ if (l = n = new _(1), r = c = new _(0), t = new _(r), a = t.e = B(g) - h.e - 1, o = a % w, t.d[0] = v(10, o < 0 ? w + o : o), e == null) e = a > 0 ? t : l;
255
256
  else {
256
- if (s = new v(e), !s.isInt() || s.lt(l)) throw Error(f + s);
257
+ if (s = new _(e), !s.isInt() || s.lt(l)) throw Error(p + s);
257
258
  e = s.gt(t) ? a > 0 ? t : l : s;
258
259
  }
259
- for (u = !1, s = new v(O(g)), d = v.precision, v.precision = a = g.length * C * 2; p = N(s, t, 0, 1, 1), i = n.plus(p.times(r)), i.cmp(e) != 1;) n = r, r = i, i = l, l = c.plus(p.times(i)), c = i, i = t, t = s.minus(p.times(i)), s = i;
260
- return i = N(e.minus(n), r, 0, 1, 1), c = c.plus(i.times(l)), n = n.plus(i.times(r)), c.s = l.s = h.s, m = N(l, r, a, 1).minus(h).abs().cmp(N(c, n, a, 1).minus(h).abs()) < 1 ? [l, r] : [c, n], v.precision = d, u = !0, m;
261
- }, D.toHexadecimal = D.toHex = function(e, t) {
262
- return X(this, 16, e, t);
263
- }, D.toNearest = function(e, t) {
260
+ for (d = !1, s = new _(k(g)), u = _.precision, _.precision = a = g.length * w * 2; f = P(s, t, 0, 1, 1), i = n.plus(f.times(r)), i.cmp(e) != 1;) n = r, r = i, i = l, l = c.plus(f.times(i)), c = i, i = t, t = s.minus(f.times(i)), s = i;
261
+ return i = P(e.minus(n), r, 0, 1, 1), c = c.plus(i.times(l)), n = n.plus(i.times(r)), c.s = l.s = h.s, m = P(l, r, a, 1).minus(h).abs().cmp(P(c, n, a, 1).minus(h).abs()) < 1 ? [l, r] : [c, n], _.precision = u, d = !0, m;
262
+ }, O.toHexadecimal = O.toHex = function(e, t) {
263
+ return Z(this, 16, e, t);
264
+ }, O.toNearest = function(e, t) {
264
265
  var n = this, r = n.constructor;
265
266
  if (n = new r(n), e == null) {
266
267
  if (!n.d) return n;
267
268
  e = new r(1), t = r.rounding;
268
269
  } else {
269
- if (e = new r(e), t === void 0 ? t = r.rounding : k(t, 0, 8), !n.d) return e.s ? n : e;
270
+ if (e = new r(e), t === void 0 ? t = r.rounding : A(t, 0, 8), !n.d) return e.s ? n : e;
270
271
  if (!e.d) return e.s &&= n.s, e;
271
272
  }
272
- return e.d[0] ? (u = !1, n = N(n, e, 0, t, 1).times(e), u = !0, P(n)) : (e.s = n.s, n = e), n;
273
- }, D.toNumber = function() {
273
+ return e.d[0] ? (d = !1, n = P(n, e, 0, t, 1).times(e), d = !0, F(n)) : (e.s = n.s, n = e), n;
274
+ }, O.toNumber = function() {
274
275
  return +this;
275
- }, D.toOctal = function(e, t) {
276
- return X(this, 8, e, t);
277
- }, D.toPower = D.pow = function(e) {
276
+ }, O.toOctal = function(e, t) {
277
+ return Z(this, 8, e, t);
278
+ }, O.toPower = O.pow = function(e) {
278
279
  var t, n, r, i, a, o, s = this, c = s.constructor, l = +(e = new c(e));
279
- if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new c(_(+s, l));
280
+ if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new c(v(+s, l));
280
281
  if (s = new c(s), s.eq(1)) return s;
281
- if (r = c.precision, a = c.rounding, e.eq(1)) return P(s, r, a);
282
- if (t = g(e.e / C), t >= e.d.length - 1 && (n = l < 0 ? -l : l) <= w) return i = ee(c, s, n, r), e.s < 0 ? new c(1).div(i) : P(i, r, a);
282
+ if (r = c.precision, a = c.rounding, e.eq(1)) return F(s, r, a);
283
+ if (t = _(e.e / w), t >= e.d.length - 1 && (n = l < 0 ? -l : l) <= T) return i = H(c, s, n, r), e.s < 0 ? new c(1).div(i) : F(i, r, a);
283
284
  if (o = s.s, o < 0) {
284
285
  if (t < e.d.length - 1) return new c(NaN);
285
286
  if (e.d[t] & 1 || (o = 1), s.e == 0 && s.d[0] == 1 && s.d.length == 1) return s.s = o, s;
286
287
  }
287
- return n = _(+s, l), t = n == 0 || !isFinite(n) ? g(l * (Math.log("0." + O(s.d)) / Math.LN10 + s.e + 1)) : new c(n + "").e, t > c.maxE + 1 || t < c.minE - 1 ? new c(t > 0 ? o / 0 : 0) : (u = !1, c.rounding = s.s = 1, n = Math.min(12, (t + "").length), i = U(e.times(W(s, r + n)), r), i.d && (i = P(i, r + 5, 1), A(i.d, r, a) && (t = r + 10, i = P(U(e.times(W(s, t + n)), t), t + 5, 1), +O(i.d).slice(r + 1, r + 15) + 1 == 0x5af3107a4000 && (i = P(i, r + 1, 0)))), i.s = o, u = !0, c.rounding = a, P(i, r, a));
288
- }, D.toPrecision = function(e, t) {
289
- var r, i = this, a = i.constructor;
290
- return e === void 0 ? r = F(i, i.e <= a.toExpNeg || i.e >= a.toExpPos) : (k(e, 1, n), t === void 0 ? t = a.rounding : k(t, 0, 8), i = P(new a(i), e, t), r = F(i, e <= i.e || i.e <= a.toExpNeg, e)), i.isNeg() && !i.isZero() ? "-" + r : r;
291
- }, D.toSignificantDigits = D.toSD = function(e, t) {
292
- var r = this, i = r.constructor;
293
- return e === void 0 ? (e = i.precision, t = i.rounding) : (k(e, 1, n), t === void 0 ? t = i.rounding : k(t, 0, 8)), P(new i(r), e, t);
294
- }, D.toString = function() {
295
- var e = this, t = e.constructor, n = F(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
288
+ return n = v(+s, l), t = n == 0 || !isFinite(n) ? _(l * (Math.log("0." + k(s.d)) / Math.LN10 + s.e + 1)) : new c(n + "").e, t > c.maxE + 1 || t < c.minE - 1 ? new c(t > 0 ? o / 0 : 0) : (d = !1, c.rounding = s.s = 1, n = Math.min(12, (t + "").length), i = W(e.times(G(s, r + n)), r), i.d && (i = F(i, r + 5, 1), j(i.d, r, a) && (t = r + 10, i = F(W(e.times(G(s, t + n)), t), t + 5, 1), +k(i.d).slice(r + 1, r + 15) + 1 == 0x5af3107a4000 && (i = F(i, r + 1, 0)))), i.s = o, d = !0, c.rounding = a, F(i, r, a));
289
+ }, O.toPrecision = function(e, t) {
290
+ var n, i = this, a = i.constructor;
291
+ return e === void 0 ? n = I(i, i.e <= a.toExpNeg || i.e >= a.toExpPos) : (A(e, 1, r), t === void 0 ? t = a.rounding : A(t, 0, 8), i = F(new a(i), e, t), n = I(i, e <= i.e || i.e <= a.toExpNeg, e)), i.isNeg() && !i.isZero() ? "-" + n : n;
292
+ }, O.toSignificantDigits = O.toSD = function(e, t) {
293
+ var n = this, i = n.constructor;
294
+ return e === void 0 ? (e = i.precision, t = i.rounding) : (A(e, 1, r), t === void 0 ? t = i.rounding : A(t, 0, 8)), F(new i(n), e, t);
295
+ }, O.toString = function() {
296
+ var e = this, t = e.constructor, n = I(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
296
297
  return e.isNeg() && !e.isZero() ? "-" + n : n;
297
- }, D.truncated = D.trunc = function() {
298
- return P(new this.constructor(this), this.e + 1, 1);
299
- }, D.valueOf = D.toJSON = function() {
300
- var e = this, t = e.constructor, n = F(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
298
+ }, O.truncated = O.trunc = function() {
299
+ return F(new this.constructor(this), this.e + 1, 1);
300
+ }, O.valueOf = O.toJSON = function() {
301
+ var e = this, t = e.constructor, n = I(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
301
302
  return e.isNeg() ? "-" + n : n;
302
303
  };
303
- function O(e) {
304
+ function k(e) {
304
305
  var t, n, r, i = e.length - 1, a = "", o = e[0];
305
306
  if (i > 0) {
306
- for (a += o, t = 1; t < i; t++) r = e[t] + "", n = C - r.length, n && (a += B(n)), a += r;
307
- o = e[t], r = o + "", n = C - r.length, n && (a += B(n));
307
+ for (a += o, t = 1; t < i; t++) r = e[t] + "", n = w - r.length, n && (a += V(n)), a += r;
308
+ o = e[t], r = o + "", n = w - r.length, n && (a += V(n));
308
309
  } else if (o === 0) return "0";
309
310
  for (; o % 10 == 0;) o /= 10;
310
311
  return a + o;
311
312
  }
312
- function k(e, t, n) {
313
- if (e !== ~~e || e < t || e > n) throw Error(f + e);
313
+ function A(e, t, n) {
314
+ if (e !== ~~e || e < t || e > n) throw Error(p + e);
314
315
  }
315
- function A(e, t, n, r) {
316
+ function j(e, t, n, r) {
316
317
  var i, a, o, s;
317
318
  for (a = e[0]; a >= 10; a /= 10) --t;
318
- return --t < 0 ? (t += C, i = 0) : (i = Math.ceil((t + 1) / C), t %= C), a = _(10, C - t), s = e[i] % a | 0, r == null ? t < 3 ? (t == 0 ? s = s / 100 | 0 : t == 1 && (s = s / 10 | 0), o = n < 4 && s == 99999 || n > 3 && s == 49999 || s == 5e4 || s == 0) : o = (n < 4 && s + 1 == a || n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 100 | 0) == _(10, t - 2) - 1 || (s == a / 2 || s == 0) && (e[i + 1] / a / 100 | 0) == 0 : t < 4 ? (t == 0 ? s = s / 1e3 | 0 : t == 1 ? s = s / 100 | 0 : t == 2 && (s = s / 10 | 0), o = (r || n < 4) && s == 9999 || !r && n > 3 && s == 4999) : o = ((r || n < 4) && s + 1 == a || !r && n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 1e3 | 0) == _(10, t - 3) - 1, o;
319
+ return --t < 0 ? (t += w, i = 0) : (i = Math.ceil((t + 1) / w), t %= w), a = v(10, w - t), s = e[i] % a | 0, r == null ? t < 3 ? (t == 0 ? s = s / 100 | 0 : t == 1 && (s = s / 10 | 0), o = n < 4 && s == 99999 || n > 3 && s == 49999 || s == 5e4 || s == 0) : o = (n < 4 && s + 1 == a || n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 100 | 0) == v(10, t - 2) - 1 || (s == a / 2 || s == 0) && (e[i + 1] / a / 100 | 0) == 0 : t < 4 ? (t == 0 ? s = s / 1e3 | 0 : t == 1 ? s = s / 100 | 0 : t == 2 && (s = s / 10 | 0), o = (r || n < 4) && s == 9999 || !r && n > 3 && s == 4999) : o = ((r || n < 4) && s + 1 == a || !r && n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 1e3 | 0) == v(10, t - 3) - 1, o;
319
320
  }
320
- function j(e, t, n) {
321
- for (var i, a = [0], o, s = 0, c = e.length; s < c;) {
321
+ function M(e, t, n) {
322
+ for (var r, a = [0], o, s = 0, c = e.length; s < c;) {
322
323
  for (o = a.length; o--;) a[o] *= t;
323
- for (a[0] += r.indexOf(e.charAt(s++)), i = 0; i < a.length; i++) a[i] > n - 1 && (a[i + 1] === void 0 && (a[i + 1] = 0), a[i + 1] += a[i] / n | 0, a[i] %= n);
324
+ for (a[0] += i.indexOf(e.charAt(s++)), r = 0; r < a.length; r++) a[r] > n - 1 && (a[r + 1] === void 0 && (a[r + 1] = 0), a[r + 1] += a[r] / n | 0, a[r] %= n);
324
325
  }
325
326
  return a.reverse();
326
327
  }
327
- function M(e, t) {
328
+ function N(e, t) {
328
329
  var n, r, i;
329
330
  if (t.isZero()) return t;
330
- r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / J(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = q(e, 1, t.times(i), new e(1));
331
+ r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Y(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = J(e, 1, t.times(i), new e(1));
331
332
  for (var a = n; a--;) {
332
333
  var o = t.times(t);
333
334
  t = o.times(o).minus(o).times(8).plus(1);
334
335
  }
335
336
  return e.precision -= n, t;
336
337
  }
337
- var N = (function() {
338
+ var P = (function() {
338
339
  function e(e, t, n) {
339
340
  var r, i = 0, a = e.length;
340
341
  for (e = e.slice(); a--;) r = e[a] * t + i, e[a] = r % n | 0, i = r / n | 0;
@@ -353,106 +354,106 @@ var N = (function() {
353
354
  for (var i = 0; n--;) e[n] -= i, i = +(e[n] < t[n]), e[n] = i * r + e[n] - t[n];
354
355
  for (; !e[0] && e.length > 1;) e.shift();
355
356
  }
356
- return function(r, i, a, o, s, l) {
357
- var u, d, f, p, m, h, _, v, y, b, x, w, T, E, D, O, k, A, j, M, N = r.constructor, F = r.s == i.s ? 1 : -1, I = r.d, L = i.d;
358
- if (!I || !I[0] || !L || !L[0]) return new N(!r.s || !i.s || (I ? L && I[0] == L[0] : !L) ? NaN : I && I[0] == 0 || !L ? F * 0 : F / 0);
359
- for (l ? (m = 1, d = r.e - i.e) : (l = S, m = C, d = g(r.e / m) - g(i.e / m)), j = L.length, k = I.length, y = new N(F), b = y.d = [], f = 0; L[f] == (I[f] || 0); f++);
357
+ return function(r, i, a, o, s, c) {
358
+ var u, d, f, p, m, h, g, v, y, b, x, S, T, E, D, O, k, A, j, M, N = r.constructor, P = r.s == i.s ? 1 : -1, I = r.d, L = i.d;
359
+ if (!I || !I[0] || !L || !L[0]) return new N(!r.s || !i.s || (I ? L && I[0] == L[0] : !L) ? NaN : I && I[0] == 0 || !L ? P * 0 : P / 0);
360
+ for (c ? (m = 1, d = r.e - i.e) : (c = C, m = w, d = _(r.e / m) - _(i.e / m)), j = L.length, k = I.length, y = new N(P), b = y.d = [], f = 0; L[f] == (I[f] || 0); f++);
360
361
  if (L[f] > (I[f] || 0) && d--, a == null ? (E = a = N.precision, o = N.rounding) : E = s ? a + (r.e - i.e) + 1 : a, E < 0) b.push(1), h = !0;
361
362
  else {
362
363
  if (E = E / m + 2 | 0, f = 0, j == 1) {
363
- for (p = 0, L = L[0], E++; (f < k || p) && E--; f++) D = p * l + (I[f] || 0), b[f] = D / L | 0, p = D % L | 0;
364
+ for (p = 0, L = L[0], E++; (f < k || p) && E--; f++) D = p * c + (I[f] || 0), b[f] = D / L | 0, p = D % L | 0;
364
365
  h = p || f < k;
365
366
  } else {
366
- for (p = l / (L[0] + 1) | 0, p > 1 && (L = e(L, p, l), I = e(I, p, l), j = L.length, k = I.length), O = j, x = I.slice(0, j), w = x.length; w < j;) x[w++] = 0;
367
- M = L.slice(), M.unshift(0), A = L[0], L[1] >= l / 2 && ++A;
367
+ for (p = c / (L[0] + 1) | 0, p > 1 && (L = e(L, p, c), I = e(I, p, c), j = L.length, k = I.length), O = j, x = I.slice(0, j), S = x.length; S < j;) x[S++] = 0;
368
+ M = L.slice(), M.unshift(0), A = L[0], L[1] >= c / 2 && ++A;
368
369
  do
369
- p = 0, u = t(L, x, j, w), u < 0 ? (T = x[0], j != w && (T = T * l + (x[1] || 0)), p = T / A | 0, p > 1 ? (p >= l && (p = l - 1), _ = e(L, p, l), v = _.length, w = x.length, u = t(_, x, v, w), u == 1 && (p--, n(_, j < v ? M : L, v, l))) : (p == 0 && (u = p = 1), _ = L.slice()), v = _.length, v < w && _.unshift(0), n(x, _, w, l), u == -1 && (w = x.length, u = t(L, x, j, w), u < 1 && (p++, n(x, j < w ? M : L, w, l))), w = x.length) : u === 0 && (p++, x = [0]), b[f++] = p, u && x[0] ? x[w++] = I[O] || 0 : (x = [I[O]], w = 1);
370
+ p = 0, u = t(L, x, j, S), u < 0 ? (T = x[0], j != S && (T = T * c + (x[1] || 0)), p = T / A | 0, p > 1 ? (p >= c && (p = c - 1), g = e(L, p, c), v = g.length, S = x.length, u = t(g, x, v, S), u == 1 && (p--, n(g, j < v ? M : L, v, c))) : (p == 0 && (u = p = 1), g = L.slice()), v = g.length, v < S && g.unshift(0), n(x, g, S, c), u == -1 && (S = x.length, u = t(L, x, j, S), u < 1 && (p++, n(x, j < S ? M : L, S, c))), S = x.length) : u === 0 && (p++, x = [0]), b[f++] = p, u && x[0] ? x[S++] = I[O] || 0 : (x = [I[O]], S = 1);
370
371
  while ((O++ < k || x[0] !== void 0) && E--);
371
372
  h = x[0] !== void 0;
372
373
  }
373
374
  b[0] || b.shift();
374
375
  }
375
- if (m == 1) y.e = d, c = h;
376
+ if (m == 1) y.e = d, l = h;
376
377
  else {
377
378
  for (f = 1, p = b[0]; p >= 10; p /= 10) f++;
378
- y.e = f + d * m - 1, P(y, s ? a + y.e + 1 : a, o, h);
379
+ y.e = f + d * m - 1, F(y, s ? a + y.e + 1 : a, o, h);
379
380
  }
380
381
  return y;
381
382
  };
382
383
  })();
383
- function P(e, t, n, r) {
384
- var i, a, o, s, c, l, d, f, p, m = e.constructor;
384
+ function F(e, t, n, r) {
385
+ var i, a, o, s, c, l, u, f, p, m = e.constructor;
385
386
  out: if (t != null) {
386
387
  if (f = e.d, !f) return e;
387
388
  for (i = 1, s = f[0]; s >= 10; s /= 10) i++;
388
- if (a = t - i, a < 0) a += C, o = t, d = f[p = 0], c = d / _(10, i - o - 1) % 10 | 0;
389
- else if (p = Math.ceil((a + 1) / C), s = f.length, p >= s) if (r) {
389
+ if (a = t - i, a < 0) a += w, o = t, u = f[p = 0], c = u / v(10, i - o - 1) % 10 | 0;
390
+ else if (p = Math.ceil((a + 1) / w), s = f.length, p >= s) if (r) {
390
391
  for (; s++ <= p;) f.push(0);
391
- d = c = 0, i = 1, a %= C, o = a - C + 1;
392
+ u = c = 0, i = 1, a %= w, o = a - w + 1;
392
393
  } else break out;
393
394
  else {
394
- for (d = s = f[p], i = 1; s >= 10; s /= 10) i++;
395
- a %= C, o = a - C + i, c = o < 0 ? 0 : d / _(10, i - o - 1) % 10 | 0;
395
+ for (u = s = f[p], i = 1; s >= 10; s /= 10) i++;
396
+ a %= w, o = a - w + i, c = o < 0 ? 0 : u / v(10, i - o - 1) % 10 | 0;
396
397
  }
397
- if (r = r || t < 0 || f[p + 1] !== void 0 || (o < 0 ? d : d % _(10, i - o - 1)), l = n < 4 ? (c || r) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && (a > 0 ? o > 0 ? d / _(10, i - o) : 0 : f[p - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7)), t < 1 || !f[0]) return f.length = 0, l ? (t -= e.e + 1, f[0] = _(10, (C - t % C) % C), e.e = -t || 0) : f[0] = e.e = 0, e;
398
- if (a == 0 ? (f.length = p, s = 1, p--) : (f.length = p + 1, s = _(10, C - a), f[p] = o > 0 ? (d / _(10, i - o) % _(10, o) | 0) * s : 0), l) for (;;) if (p == 0) {
398
+ if (r = r || t < 0 || f[p + 1] !== void 0 || (o < 0 ? u : u % v(10, i - o - 1)), l = n < 4 ? (c || r) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && (a > 0 ? o > 0 ? u / v(10, i - o) : 0 : f[p - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7)), t < 1 || !f[0]) return f.length = 0, l ? (t -= e.e + 1, f[0] = v(10, (w - t % w) % w), e.e = -t || 0) : f[0] = e.e = 0, e;
399
+ if (a == 0 ? (f.length = p, s = 1, p--) : (f.length = p + 1, s = v(10, w - a), f[p] = o > 0 ? (u / v(10, i - o) % v(10, o) | 0) * s : 0), l) for (;;) if (p == 0) {
399
400
  for (a = 1, o = f[0]; o >= 10; o /= 10) a++;
400
401
  for (o = f[0] += s, s = 1; o >= 10; o /= 10) s++;
401
- a != s && (e.e++, f[0] == S && (f[0] = 1));
402
+ a != s && (e.e++, f[0] == C && (f[0] = 1));
402
403
  break;
403
404
  } else {
404
- if (f[p] += s, f[p] != S) break;
405
+ if (f[p] += s, f[p] != C) break;
405
406
  f[p--] = 0, s = 1;
406
407
  }
407
408
  for (a = f.length; f[--a] === 0;) f.pop();
408
409
  }
409
- return u && (e.e > m.maxE ? (e.d = null, e.e = NaN) : e.e < m.minE && (e.e = 0, e.d = [0])), e;
410
+ return d && (e.e > m.maxE ? (e.d = null, e.e = NaN) : e.e < m.minE && (e.e = 0, e.d = [0])), e;
410
411
  }
411
- function F(e, t, n) {
412
- if (!e.isFinite()) return G(e);
413
- var r, i = e.e, a = O(e.d), o = a.length;
414
- return t ? (n && (r = n - o) > 0 ? a = a.charAt(0) + "." + a.slice(1) + B(r) : o > 1 && (a = a.charAt(0) + "." + a.slice(1)), a = a + (e.e < 0 ? "e" : "e+") + e.e) : i < 0 ? (a = "0." + B(-i - 1) + a, n && (r = n - o) > 0 && (a += B(r))) : i >= o ? (a += B(i + 1 - o), n && (r = n - i - 1) > 0 && (a = a + "." + B(r))) : ((r = i + 1) < o && (a = a.slice(0, r) + "." + a.slice(r)), n && (r = n - o) > 0 && (i + 1 === o && (a += "."), a += B(r))), a;
412
+ function I(e, t, n) {
413
+ if (!e.isFinite()) return K(e);
414
+ var r, i = e.e, a = k(e.d), o = a.length;
415
+ return t ? (n && (r = n - o) > 0 ? a = a.charAt(0) + "." + a.slice(1) + V(r) : o > 1 && (a = a.charAt(0) + "." + a.slice(1)), a = a + (e.e < 0 ? "e" : "e+") + e.e) : i < 0 ? (a = "0." + V(-i - 1) + a, n && (r = n - o) > 0 && (a += V(r))) : i >= o ? (a += V(i + 1 - o), n && (r = n - i - 1) > 0 && (a = a + "." + V(r))) : ((r = i + 1) < o && (a = a.slice(0, r) + "." + a.slice(r)), n && (r = n - o) > 0 && (i + 1 === o && (a += "."), a += V(r))), a;
415
416
  }
416
- function I(e, t) {
417
+ function L(e, t) {
417
418
  var n = e[0];
418
- for (t *= C; n >= 10; n /= 10) t++;
419
+ for (t *= w; n >= 10; n /= 10) t++;
419
420
  return t;
420
421
  }
421
- function L(e, t, n) {
422
- if (t > T) throw u = !0, n && (e.precision = n), Error(p);
423
- return P(new e(i), t, 1, !0);
424
- }
425
422
  function R(e, t, n) {
426
- if (t > E) throw Error(p);
427
- return P(new e(a), t, n, !0);
423
+ if (t > E) throw d = !0, n && (e.precision = n), Error(m);
424
+ return F(new e(a), t, 1, !0);
425
+ }
426
+ function z(e, t, n) {
427
+ if (t > D) throw Error(m);
428
+ return F(new e(o), t, n, !0);
428
429
  }
429
- function z(e) {
430
- var t = e.length - 1, n = t * C + 1;
430
+ function B(e) {
431
+ var t = e.length - 1, n = t * w + 1;
431
432
  if (t = e[t], t) {
432
433
  for (; t % 10 == 0; t /= 10) n--;
433
434
  for (t = e[0]; t >= 10; t /= 10) n++;
434
435
  }
435
436
  return n;
436
437
  }
437
- function B(e) {
438
+ function V(e) {
438
439
  for (var t = ""; e--;) t += "0";
439
440
  return t;
440
441
  }
441
- function ee(e, t, n, r) {
442
- var i, a = new e(1), o = Math.ceil(r / C + 4);
443
- for (u = !1;;) {
444
- if (n % 2 && (a = a.times(t), Z(a.d, o) && (i = !0)), n = g(n / 2), n === 0) {
442
+ function H(e, t, n, r) {
443
+ var i, a = new e(1), o = Math.ceil(r / w + 4);
444
+ for (d = !1;;) {
445
+ if (n % 2 && (a = a.times(t), Q(a.d, o) && (i = !0)), n = _(n / 2), n === 0) {
445
446
  n = a.d.length - 1, i && a.d[n] === 0 && ++a.d[n];
446
447
  break;
447
448
  }
448
- t = t.times(t), Z(t.d, o);
449
+ t = t.times(t), Q(t.d, o);
449
450
  }
450
- return u = !0, a;
451
+ return d = !0, a;
451
452
  }
452
- function V(e) {
453
+ function ee(e) {
453
454
  return e.d[e.d.length - 1] & 1;
454
455
  }
455
- function H(e, t, n) {
456
+ function U(e, t, n) {
456
457
  for (var r, i, a = new e(t[0]), o = 0; ++o < t.length;) {
457
458
  if (i = new e(t[o]), !i.s) {
458
459
  a = i;
@@ -462,110 +463,110 @@ function H(e, t, n) {
462
463
  }
463
464
  return a;
464
465
  }
465
- function U(e, t) {
466
- var n, r, i, a, o, s, c, l = 0, d = 0, f = 0, p = e.constructor, m = p.rounding, h = p.precision;
466
+ function W(e, t) {
467
+ var n, r, i, a, o, s, c, l = 0, u = 0, f = 0, p = e.constructor, m = p.rounding, h = p.precision;
467
468
  if (!e.d || !e.d[0] || e.e > 17) return new p(e.d ? e.d[0] ? e.s < 0 ? 0 : Infinity : 1 : e.s ? e.s < 0 ? 0 : e : NaN);
468
- for (t == null ? (u = !1, c = h) : c = t, s = new p(.03125); e.e > -2;) e = e.times(s), f += 5;
469
- for (r = Math.log(_(2, f)) / Math.LN10 * 2 + 5 | 0, c += r, n = a = o = new p(1), p.precision = c;;) {
470
- if (a = P(a.times(e), c, 1), n = n.times(++d), s = o.plus(N(a, n, c, 1)), O(s.d).slice(0, c) === O(o.d).slice(0, c)) {
471
- for (i = f; i--;) o = P(o.times(o), c, 1);
472
- if (t == null) if (l < 3 && A(o.d, c - r, m, l)) p.precision = c += 10, n = a = s = new p(1), d = 0, l++;
473
- else return P(o, p.precision = h, m, u = !0);
469
+ for (t == null ? (d = !1, c = h) : c = t, s = new p(.03125); e.e > -2;) e = e.times(s), f += 5;
470
+ for (r = Math.log(v(2, f)) / Math.LN10 * 2 + 5 | 0, c += r, n = a = o = new p(1), p.precision = c;;) {
471
+ if (a = F(a.times(e), c, 1), n = n.times(++u), s = o.plus(P(a, n, c, 1)), k(s.d).slice(0, c) === k(o.d).slice(0, c)) {
472
+ for (i = f; i--;) o = F(o.times(o), c, 1);
473
+ if (t == null) if (l < 3 && j(o.d, c - r, m, l)) p.precision = c += 10, n = a = s = new p(1), u = 0, l++;
474
+ else return F(o, p.precision = h, m, d = !0);
474
475
  else return p.precision = h, o;
475
476
  }
476
477
  o = s;
477
478
  }
478
479
  }
479
- function W(e, t) {
480
- var n, r, i, a, o, s, c, l, d, f, p, m = 1, h = 10, g = e, _ = g.d, v = g.constructor, y = v.rounding, b = v.precision;
480
+ function G(e, t) {
481
+ var n, r, i, a, o, s, c, l, u, f, p, m = 1, h = 10, g = e, _ = g.d, v = g.constructor, y = v.rounding, b = v.precision;
481
482
  if (g.s < 0 || !_ || !_[0] || !g.e && _[0] == 1 && _.length == 1) return new v(_ && !_[0] ? -Infinity : g.s == 1 ? _ ? 0 : g : NaN);
482
- if (t == null ? (u = !1, d = b) : d = t, v.precision = d += h, n = O(_), r = n.charAt(0), Math.abs(a = g.e) < 0x5543df729c000) {
483
- for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3;) g = g.times(e), n = O(g.d), r = n.charAt(0), m++;
483
+ if (t == null ? (d = !1, u = b) : u = t, v.precision = u += h, n = k(_), r = n.charAt(0), Math.abs(a = g.e) < 0x5543df729c000) {
484
+ for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3;) g = g.times(e), n = k(g.d), r = n.charAt(0), m++;
484
485
  a = g.e, r > 1 ? (g = new v("0." + n), a++) : g = new v(r + "." + n.slice(1));
485
- } else return l = L(v, d + 2, b).times(a + ""), g = W(new v(r + "." + n.slice(1)), d - h).plus(l), v.precision = b, t == null ? P(g, b, y, u = !0) : g;
486
- for (f = g, c = o = g = N(g.minus(1), g.plus(1), d, 1), p = P(g.times(g), d, 1), i = 3;;) {
487
- if (o = P(o.times(p), d, 1), l = c.plus(N(o, new v(i), d, 1)), O(l.d).slice(0, d) === O(c.d).slice(0, d)) if (c = c.times(2), a !== 0 && (c = c.plus(L(v, d + 2, b).times(a + ""))), c = N(c, new v(m), d, 1), t == null) if (A(c.d, d - h, y, s)) v.precision = d += h, l = o = g = N(f.minus(1), f.plus(1), d, 1), p = P(g.times(g), d, 1), i = s = 1;
488
- else return P(c, v.precision = b, y, u = !0);
486
+ } else return l = R(v, u + 2, b).times(a + ""), g = G(new v(r + "." + n.slice(1)), u - h).plus(l), v.precision = b, t == null ? F(g, b, y, d = !0) : g;
487
+ for (f = g, c = o = g = P(g.minus(1), g.plus(1), u, 1), p = F(g.times(g), u, 1), i = 3;;) {
488
+ if (o = F(o.times(p), u, 1), l = c.plus(P(o, new v(i), u, 1)), k(l.d).slice(0, u) === k(c.d).slice(0, u)) if (c = c.times(2), a !== 0 && (c = c.plus(R(v, u + 2, b).times(a + ""))), c = P(c, new v(m), u, 1), t == null) if (j(c.d, u - h, y, s)) v.precision = u += h, l = o = g = P(f.minus(1), f.plus(1), u, 1), p = F(g.times(g), u, 1), i = s = 1;
489
+ else return F(c, v.precision = b, y, d = !0);
489
490
  else return v.precision = b, c;
490
491
  c = l, i += 2;
491
492
  }
492
493
  }
493
- function G(e) {
494
+ function K(e) {
494
495
  return String(e.s * e.s / 0);
495
496
  }
496
- function K(e, t) {
497
+ function q(e, t) {
497
498
  var n, r, i;
498
499
  for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +t.slice(r + 1), t = t.substring(0, r)) : n < 0 && (n = t.length), r = 0; t.charCodeAt(r) === 48; r++);
499
500
  for (i = t.length; t.charCodeAt(i - 1) === 48; --i);
500
501
  if (t = t.slice(r, i), t) {
501
- if (i -= r, e.e = n = n - r - 1, e.d = [], r = (n + 1) % C, n < 0 && (r += C), r < i) {
502
- for (r && e.d.push(+t.slice(0, r)), i -= C; r < i;) e.d.push(+t.slice(r, r += C));
503
- t = t.slice(r), r = C - t.length;
502
+ if (i -= r, e.e = n = n - r - 1, e.d = [], r = (n + 1) % w, n < 0 && (r += w), r < i) {
503
+ for (r && e.d.push(+t.slice(0, r)), i -= w; r < i;) e.d.push(+t.slice(r, r += w));
504
+ t = t.slice(r), r = w - t.length;
504
505
  } else r -= i;
505
506
  for (; r--;) t += "0";
506
- e.d.push(+t), u && (e.e > e.constructor.maxE ? (e.d = null, e.e = NaN) : e.e < e.constructor.minE && (e.e = 0, e.d = [0]));
507
+ e.d.push(+t), d && (e.e > e.constructor.maxE ? (e.d = null, e.e = NaN) : e.e < e.constructor.minE && (e.e = 0, e.d = [0]));
507
508
  } else e.e = 0, e.d = [0];
508
509
  return e;
509
510
  }
510
511
  function te(e, t) {
511
- var n, r, i, a, o, c, l, d, p;
512
+ var n, r, i, a, o, s, l, u, f;
512
513
  if (t.indexOf("_") > -1) {
513
- if (t = t.replace(/(\d)_(?=\d)/g, "$1"), x.test(t)) return K(e, t);
514
+ if (t = t.replace(/(\d)_(?=\d)/g, "$1"), S.test(t)) return q(e, t);
514
515
  } else if (t === "Infinity" || t === "NaN") return +t || (e.s = NaN), e.e = NaN, e.d = null, e;
515
- if (y.test(t)) n = 16, t = t.toLowerCase();
516
- else if (v.test(t)) n = 2;
517
- else if (b.test(t)) n = 8;
518
- else throw Error(f + t);
519
- for (a = t.search(/p/i), a > 0 ? (l = +t.slice(a + 1), t = t.substring(2, a)) : t = t.slice(2), a = t.indexOf("."), o = a >= 0, r = e.constructor, o && (t = t.replace(".", ""), c = t.length, a = c - a, i = ee(r, new r(n), a, a * 2)), d = j(t, n, S), p = d.length - 1, a = p; d[a] === 0; --a) d.pop();
520
- return a < 0 ? new r(e.s * 0) : (e.e = I(d, p), e.d = d, u = !1, o && (e = N(e, i, c * 4)), l && (e = e.times(Math.abs(l) < 54 ? _(2, l) : s.pow(2, l))), u = !0, e);
516
+ if (b.test(t)) n = 16, t = t.toLowerCase();
517
+ else if (y.test(t)) n = 2;
518
+ else if (x.test(t)) n = 8;
519
+ else throw Error(p + t);
520
+ for (a = t.search(/p/i), a > 0 ? (l = +t.slice(a + 1), t = t.substring(2, a)) : t = t.slice(2), a = t.indexOf("."), o = a >= 0, r = e.constructor, o && (t = t.replace(".", ""), s = t.length, a = s - a, i = H(r, new r(n), a, a * 2)), u = M(t, n, C), f = u.length - 1, a = f; u[a] === 0; --a) u.pop();
521
+ return a < 0 ? new r(e.s * 0) : (e.e = L(u, f), e.d = u, d = !1, o && (e = P(e, i, s * 4)), l && (e = e.times(Math.abs(l) < 54 ? v(2, l) : c.pow(2, l))), d = !0, e);
521
522
  }
522
523
  function ne(e, t) {
523
524
  var n, r = t.d.length;
524
- if (r < 3) return t.isZero() ? t : q(e, 2, t, t);
525
- n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / J(5, n)), t = q(e, 2, t, t);
525
+ if (r < 3) return t.isZero() ? t : J(e, 2, t, t);
526
+ n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / Y(5, n)), t = J(e, 2, t, t);
526
527
  for (var i, a = new e(5), o = new e(16), s = new e(20); n--;) i = t.times(t), t = t.times(a.plus(i.times(o.times(i).minus(s))));
527
528
  return t;
528
529
  }
529
- function q(e, t, n, r, i) {
530
- var a, o, s, c, l = 1, d = e.precision, f = Math.ceil(d / C);
531
- for (u = !1, c = n.times(n), s = new e(r);;) {
532
- if (o = N(s.times(c), new e(t++ * t++), d, 1), s = i ? r.plus(o) : r.minus(o), r = N(o.times(c), new e(t++ * t++), d, 1), o = s.plus(r), o.d[f] !== void 0) {
530
+ function J(e, t, n, r, i) {
531
+ var a, o, s, c, l = 1, u = e.precision, f = Math.ceil(u / w);
532
+ for (d = !1, c = n.times(n), s = new e(r);;) {
533
+ if (o = P(s.times(c), new e(t++ * t++), u, 1), s = i ? r.plus(o) : r.minus(o), r = P(o.times(c), new e(t++ * t++), u, 1), o = s.plus(r), o.d[f] !== void 0) {
533
534
  for (a = f; o.d[a] === s.d[a] && a--;);
534
535
  if (a == -1) break;
535
536
  }
536
537
  a = s, s = r, r = o, o = a, l++;
537
538
  }
538
- return u = !0, o.d.length = f + 1, o;
539
+ return d = !0, o.d.length = f + 1, o;
539
540
  }
540
- function J(e, t) {
541
+ function Y(e, t) {
541
542
  for (var n = e; --t;) n *= e;
542
543
  return n;
543
544
  }
544
- function Y(e, t) {
545
- var n, r = t.s < 0, i = R(e, e.precision, 1), a = i.times(.5);
546
- if (t = t.abs(), t.lte(a)) return l = r ? 4 : 1, t;
547
- if (n = t.divToInt(i), n.isZero()) l = r ? 3 : 2;
545
+ function X(e, t) {
546
+ var n, r = t.s < 0, i = z(e, e.precision, 1), a = i.times(.5);
547
+ if (t = t.abs(), t.lte(a)) return u = r ? 4 : 1, t;
548
+ if (n = t.divToInt(i), n.isZero()) u = r ? 3 : 2;
548
549
  else {
549
- if (t = t.minus(n.times(i)), t.lte(a)) return l = V(n) ? r ? 2 : 3 : r ? 4 : 1, t;
550
- l = V(n) ? r ? 1 : 4 : r ? 3 : 2;
550
+ if (t = t.minus(n.times(i)), t.lte(a)) return u = ee(n) ? r ? 2 : 3 : r ? 4 : 1, t;
551
+ u = ee(n) ? r ? 1 : 4 : r ? 3 : 2;
551
552
  }
552
553
  return t.minus(i).abs();
553
554
  }
554
- function X(e, t, i, a) {
555
- var o, s, l, u, d, f, p, m, h, g = e.constructor, _ = i !== void 0;
556
- if (_ ? (k(i, 1, n), a === void 0 ? a = g.rounding : k(a, 0, 8)) : (i = g.precision, a = g.rounding), !e.isFinite()) p = G(e);
555
+ function Z(e, t, n, a) {
556
+ var o, s, c, u, d, f, p, m, h, g = e.constructor, _ = n !== void 0;
557
+ if (_ ? (A(n, 1, r), a === void 0 ? a = g.rounding : A(a, 0, 8)) : (n = g.precision, a = g.rounding), !e.isFinite()) p = K(e);
557
558
  else {
558
- for (p = F(e), l = p.indexOf("."), _ ? (o = 2, t == 16 ? i = i * 4 - 3 : t == 8 && (i = i * 3 - 2)) : o = t, l >= 0 && (p = p.replace(".", ""), h = new g(1), h.e = p.length - l, h.d = j(F(h), 10, o), h.e = h.d.length), m = j(p, 10, o), s = d = m.length; m[--d] == 0;) m.pop();
559
+ for (p = I(e), c = p.indexOf("."), _ ? (o = 2, t == 16 ? n = n * 4 - 3 : t == 8 && (n = n * 3 - 2)) : o = t, c >= 0 && (p = p.replace(".", ""), h = new g(1), h.e = p.length - c, h.d = M(I(h), 10, o), h.e = h.d.length), m = M(p, 10, o), s = d = m.length; m[--d] == 0;) m.pop();
559
560
  if (!m[0]) p = _ ? "0p+0" : "0";
560
561
  else {
561
- if (l < 0 ? s-- : (e = new g(e), e.d = m, e.e = s, e = N(e, h, i, a, 0, o), m = e.d, s = e.e, f = c), l = m[i], u = o / 2, f ||= m[i + 1] !== void 0, f = a < 4 ? (l !== void 0 || f) && (a === 0 || a === (e.s < 0 ? 3 : 2)) : l > u || l === u && (a === 4 || f || a === 6 && m[i - 1] & 1 || a === (e.s < 0 ? 8 : 7)), m.length = i, f) for (; ++m[--i] > o - 1;) m[i] = 0, i || (++s, m.unshift(1));
562
+ if (c < 0 ? s-- : (e = new g(e), e.d = m, e.e = s, e = P(e, h, n, a, 0, o), m = e.d, s = e.e, f = l), c = m[n], u = o / 2, f ||= m[n + 1] !== void 0, f = a < 4 ? (c !== void 0 || f) && (a === 0 || a === (e.s < 0 ? 3 : 2)) : c > u || c === u && (a === 4 || f || a === 6 && m[n - 1] & 1 || a === (e.s < 0 ? 8 : 7)), m.length = n, f) for (; ++m[--n] > o - 1;) m[n] = 0, n || (++s, m.unshift(1));
562
563
  for (d = m.length; !m[d - 1]; --d);
563
- for (l = 0, p = ""; l < d; l++) p += r.charAt(m[l]);
564
+ for (c = 0, p = ""; c < d; c++) p += i.charAt(m[c]);
564
565
  if (_) {
565
566
  if (d > 1) if (t == 16 || t == 8) {
566
- for (l = t == 16 ? 4 : 3, --d; d % l; d++) p += "0";
567
- for (m = j(p, o, t), d = m.length; !m[d - 1]; --d);
568
- for (l = 1, p = "1."; l < d; l++) p += r.charAt(m[l]);
567
+ for (c = t == 16 ? 4 : 3, --d; d % c; d++) p += "0";
568
+ for (m = M(p, o, t), d = m.length; !m[d - 1]; --d);
569
+ for (c = 1, p = "1."; c < d; c++) p += i.charAt(m[c]);
569
570
  } else p = p.charAt(0) + "." + p.slice(1);
570
571
  p = p + (s < 0 ? "p" : "p+") + s;
571
572
  } else if (s < 0) {
@@ -578,7 +579,7 @@ function X(e, t, i, a) {
578
579
  }
579
580
  return e.s < 0 ? "-" + p : p;
580
581
  }
581
- function Z(e, t) {
582
+ function Q(e, t) {
582
583
  if (e.length > t) return e.length = t, !0;
583
584
  }
584
585
  function re(e) {
@@ -608,48 +609,48 @@ function ue(e) {
608
609
  function de(e, t) {
609
610
  e = new this(e), t = new this(t);
610
611
  var n, r = this.precision, i = this.rounding, a = r + 4;
611
- return !e.s || !t.s ? n = new this(NaN) : !e.d && !t.d ? (n = R(this, a, 1).times(t.s > 0 ? .25 : .75), n.s = e.s) : !t.d || e.isZero() ? (n = t.s < 0 ? R(this, r, i) : new this(0), n.s = e.s) : !e.d || t.isZero() ? (n = R(this, a, 1).times(.5), n.s = e.s) : t.s < 0 ? (this.precision = a, this.rounding = 1, n = this.atan(N(e, t, a, 1)), t = R(this, a, 1), this.precision = r, this.rounding = i, n = e.s < 0 ? n.minus(t) : n.plus(t)) : n = this.atan(N(e, t, a, 1)), n;
612
+ return !e.s || !t.s ? n = new this(NaN) : !e.d && !t.d ? (n = z(this, a, 1).times(t.s > 0 ? .25 : .75), n.s = e.s) : !t.d || e.isZero() ? (n = t.s < 0 ? z(this, r, i) : new this(0), n.s = e.s) : !e.d || t.isZero() ? (n = z(this, a, 1).times(.5), n.s = e.s) : t.s < 0 ? (this.precision = a, this.rounding = 1, n = this.atan(P(e, t, a, 1)), t = z(this, a, 1), this.precision = r, this.rounding = i, n = e.s < 0 ? n.minus(t) : n.plus(t)) : n = this.atan(P(e, t, a, 1)), n;
612
613
  }
613
614
  function fe(e) {
614
615
  return new this(e).cbrt();
615
616
  }
616
617
  function pe(e) {
617
- return P(e = new this(e), e.e + 1, 2);
618
+ return F(e = new this(e), e.e + 1, 2);
618
619
  }
619
620
  function me(e, t, n) {
620
621
  return new this(e).clamp(t, n);
621
622
  }
622
- function he(r) {
623
- if (!r || typeof r != "object") throw Error(d + "Object expected");
624
- var i, a, s, c = r.defaults === !0, l = [
623
+ function he(e) {
624
+ if (!e || typeof e != "object") throw Error(f + "Object expected");
625
+ var i, a, o, c = e.defaults === !0, l = [
625
626
  "precision",
626
627
  1,
627
- n,
628
+ r,
628
629
  "rounding",
629
630
  0,
630
631
  8,
631
632
  "toExpNeg",
632
- -t,
633
+ -n,
633
634
  0,
634
635
  "toExpPos",
635
636
  0,
636
- t,
637
+ n,
637
638
  "maxE",
638
639
  0,
639
- t,
640
+ n,
640
641
  "minE",
641
- -t,
642
+ -n,
642
643
  0,
643
644
  "modulo",
644
645
  0,
645
646
  9
646
647
  ];
647
- for (i = 0; i < l.length; i += 3) if (a = l[i], c && (this[a] = o[a]), (s = r[a]) !== void 0) if (g(s) === s && s >= l[i + 1] && s <= l[i + 2]) this[a] = s;
648
- else throw Error(f + a + ": " + s);
649
- if (a = "crypto", c && (this[a] = o[a]), (s = r[a]) !== void 0) if (s === !0 || s === !1 || s === 0 || s === 1) if (s) if (!e(crypto) && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[a] = !0;
650
- else throw Error(m);
648
+ for (i = 0; i < l.length; i += 3) if (a = l[i], c && (this[a] = s[a]), (o = e[a]) !== void 0) if (_(o) === o && o >= l[i + 1] && o <= l[i + 2]) this[a] = o;
649
+ else throw Error(p + a + ": " + o);
650
+ if (a = "crypto", c && (this[a] = s[a]), (o = e[a]) !== void 0) if (o === !0 || o === !1 || o === 0 || o === 1) if (o) if (!t(crypto) && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[a] = !0;
651
+ else throw Error(h);
651
652
  else this[a] = !1;
652
- else throw Error(f + a + ": " + s);
653
+ else throw Error(p + a + ": " + o);
653
654
  return this;
654
655
  }
655
656
  function ge(e) {
@@ -658,36 +659,36 @@ function ge(e) {
658
659
  function _e(e) {
659
660
  return new this(e).cosh();
660
661
  }
661
- function Q(e) {
662
- var t, n, r;
663
- function i(e) {
664
- var t, n, r, a = this;
665
- if (!(a instanceof i)) return new i(e);
666
- if (a.constructor = i, $(e)) {
667
- a.s = e.s, u ? !e.d || e.e > i.maxE ? (a.e = NaN, a.d = null) : e.e < i.minE ? (a.e = 0, a.d = [0]) : (a.e = e.e, a.d = e.d.slice()) : (a.e = e.e, a.d = e.d ? e.d.slice() : e.d);
662
+ function $(t) {
663
+ var n, r, i;
664
+ function a(e) {
665
+ var t, n, r, i = this;
666
+ if (!(i instanceof a)) return new a(e);
667
+ if (i.constructor = a, Se(e)) {
668
+ i.s = e.s, d ? !e.d || e.e > a.maxE ? (i.e = NaN, i.d = null) : e.e < a.minE ? (i.e = 0, i.d = [0]) : (i.e = e.e, i.d = e.d.slice()) : (i.e = e.e, i.d = e.d ? e.d.slice() : e.d);
668
669
  return;
669
670
  }
670
671
  if (r = typeof e, r === "number") {
671
672
  if (e === 0) {
672
- a.s = 1 / e < 0 ? -1 : 1, a.e = 0, a.d = [0];
673
+ i.s = 1 / e < 0 ? -1 : 1, i.e = 0, i.d = [0];
673
674
  return;
674
675
  }
675
- if (e < 0 ? (e = -e, a.s = -1) : a.s = 1, e === ~~e && e < 1e7) {
676
+ if (e < 0 ? (e = -e, i.s = -1) : i.s = 1, e === ~~e && e < 1e7) {
676
677
  for (t = 0, n = e; n >= 10; n /= 10) t++;
677
- u ? t > i.maxE ? (a.e = NaN, a.d = null) : t < i.minE ? (a.e = 0, a.d = [0]) : (a.e = t, a.d = [e]) : (a.e = t, a.d = [e]);
678
+ d ? t > a.maxE ? (i.e = NaN, i.d = null) : t < a.minE ? (i.e = 0, i.d = [0]) : (i.e = t, i.d = [e]) : (i.e = t, i.d = [e]);
678
679
  return;
679
680
  }
680
681
  if (e * 0 != 0) {
681
- e || (a.s = NaN), a.e = NaN, a.d = null;
682
+ e || (i.s = NaN), i.e = NaN, i.d = null;
682
683
  return;
683
684
  }
684
- return K(a, e.toString());
685
+ return q(i, e.toString());
685
686
  }
686
- if (r === "string") return (n = e.charCodeAt(0)) === 45 ? (e = e.slice(1), a.s = -1) : (n === 43 && (e = e.slice(1)), a.s = 1), x.test(e) ? K(a, e) : te(a, e);
687
- if (r === "bigint") return e < 0 ? (e = -e, a.s = -1) : a.s = 1, K(a, e.toString());
688
- throw Error(f + e);
687
+ if (r === "string") return (n = e.charCodeAt(0)) === 45 ? (e = e.slice(1), i.s = -1) : (n === 43 && (e = e.slice(1)), i.s = 1), S.test(e) ? q(i, e) : te(i, e);
688
+ if (r === "bigint") return e < 0 ? (e = -e, i.s = -1) : i.s = 1, q(i, e.toString());
689
+ throw Error(p + e);
689
690
  }
690
- if (i.prototype = D, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = he, i.clone = Q, i.isDecimal = $, i.abs = re, i.acos = ie, i.acosh = ae, i.add = oe, i.asin = se, i.asinh = ce, i.atan = le, i.atanh = ue, i.atan2 = de, i.cbrt = fe, i.ceil = pe, i.clamp = me, i.cos = ge, i.cosh = _e, i.div = ve, i.exp = ye, i.floor = be, i.hypot = xe, i.ln = Se, i.log = Ce, i.log10 = Te, i.log2 = we, i.max = Ee, i.min = De, i.mod = Oe, i.mul = ke, i.pow = Ae, i.random = je, i.round = Me, i.sign = Ne, i.sin = Pe, i.sinh = Fe, i.sqrt = Ie, i.sub = Le, i.sum = Re, i.tan = ze, i.tanh = Be, i.trunc = Ve, e === void 0 && (e = {}), e && e.defaults !== !0) for (r = [
691
+ if (a.prototype = O, a.ROUND_UP = 0, a.ROUND_DOWN = 1, a.ROUND_CEIL = 2, a.ROUND_FLOOR = 3, a.ROUND_HALF_UP = 4, a.ROUND_HALF_DOWN = 5, a.ROUND_HALF_EVEN = 6, a.ROUND_HALF_CEIL = 7, a.ROUND_HALF_FLOOR = 8, a.EUCLID = 9, a.config = a.set = he, a.clone = $, a.isDecimal = Se, a.abs = re, a.acos = ie, a.acosh = ae, a.add = oe, a.asin = se, a.asinh = ce, a.atan = le, a.atanh = ue, a.atan2 = de, a.cbrt = fe, a.ceil = pe, a.clamp = me, a.cos = ge, a.cosh = _e, a.div = ve, a.exp = ye, a.floor = be, a.hypot = xe, a.ln = Ce, a.log = we, a.log10 = Ee, a.log2 = Te, a.max = De, a.min = Oe, a.mod = ke, a.mul = Ae, a.pow = je, a.random = Me, a.round = Ne, a.sign = Pe, a.sin = Fe, a.sinh = Ie, a.sqrt = Le, a.sub = Re, a.sum = ze, a.tan = Be, a.tanh = Ve, a.trunc = He, t === void 0 && (t = {}), t && t.defaults !== !0) for (i = [
691
692
  "precision",
692
693
  "rounding",
693
694
  "toExpNeg",
@@ -696,8 +697,8 @@ function Q(e) {
696
697
  "minE",
697
698
  "modulo",
698
699
  "crypto"
699
- ], t = 0; t < r.length;) Object.prototype.hasOwnProperty.call(e, n = r[t++]) || (e[n] = this[n]);
700
- return i.config(e), i;
700
+ ], n = 0; n < i.length;) e(t, r = i[n++]) || (t[r] = this[r]);
701
+ return a.config(t), a;
701
702
  }
702
703
  function ve(e, t) {
703
704
  return new this(e).div(t);
@@ -706,98 +707,98 @@ function ye(e) {
706
707
  return new this(e).exp();
707
708
  }
708
709
  function be(e) {
709
- return P(e = new this(e), e.e + 1, 3);
710
+ return F(e = new this(e), e.e + 1, 3);
710
711
  }
711
712
  function xe() {
712
713
  var e, t, n = new this(0);
713
- for (u = !1, e = 0; e < arguments.length;) if (t = new this(arguments[e++]), t.d) n.d && (n = n.plus(t.times(t)));
714
+ for (d = !1, e = 0; e < arguments.length;) if (t = new this(arguments[e++]), t.d) n.d && (n = n.plus(t.times(t)));
714
715
  else {
715
- if (t.s) return u = !0, new this(Infinity);
716
+ if (t.s) return d = !0, new this(Infinity);
716
717
  n = t;
717
718
  }
718
- return u = !0, n.sqrt();
719
- }
720
- function $(e) {
721
- return e instanceof s || e?.toStringTag === h || !1;
719
+ return d = !0, n.sqrt();
722
720
  }
723
721
  function Se(e) {
722
+ return e instanceof c || e?.toStringTag === g || !1;
723
+ }
724
+ function Ce(e) {
724
725
  return new this(e).ln();
725
726
  }
726
- function Ce(e, t) {
727
+ function we(e, t) {
727
728
  return new this(e).log(t);
728
729
  }
729
- function we(e) {
730
+ function Te(e) {
730
731
  return new this(e).log(2);
731
732
  }
732
- function Te(e) {
733
+ function Ee(e) {
733
734
  return new this(e).log(10);
734
735
  }
735
- function Ee() {
736
- return H(this, arguments, -1);
737
- }
738
736
  function De() {
739
- return H(this, arguments, 1);
737
+ return U(this, arguments, -1);
740
738
  }
741
- function Oe(e, t) {
742
- return new this(e).mod(t);
739
+ function Oe() {
740
+ return U(this, arguments, 1);
743
741
  }
744
742
  function ke(e, t) {
745
- return new this(e).mul(t);
743
+ return new this(e).mod(t);
746
744
  }
747
745
  function Ae(e, t) {
746
+ return new this(e).mul(t);
747
+ }
748
+ function je(e, t) {
748
749
  return new this(e).pow(t);
749
750
  }
750
- function je(e) {
751
- var t, r, i, a, o = 0, s = new this(1), c = [];
752
- if (e === void 0 ? e = this.precision : k(e, 1, n), i = Math.ceil(e / C), !this.crypto) for (; o < i;) c[o++] = Math.random() * 1e7 | 0;
751
+ function Me(e) {
752
+ var t, n, i, a, o = 0, s = new this(1), c = [];
753
+ if (e === void 0 ? e = this.precision : A(e, 1, r), i = Math.ceil(e / w), !this.crypto) for (; o < i;) c[o++] = Math.random() * 1e7 | 0;
753
754
  else if (crypto.getRandomValues) for (t = crypto.getRandomValues(new Uint32Array(i)); o < i;) a = t[o], a >= 429e7 ? t[o] = crypto.getRandomValues(new Uint32Array(1))[0] : c[o++] = a % 1e7;
754
755
  else if (crypto.randomBytes) {
755
756
  for (t = crypto.randomBytes(i *= 4); o < i;) a = t[o] + (t[o + 1] << 8) + (t[o + 2] << 16) + ((t[o + 3] & 127) << 24), a >= 214e7 ? crypto.randomBytes(4).copy(t, o) : (c.push(a % 1e7), o += 4);
756
757
  o = i / 4;
757
- } else throw Error(m);
758
- for (i = c[--o], e %= C, i && e && (a = _(10, C - e), c[o] = (i / a | 0) * a); c[o] === 0; o--) c.pop();
759
- if (o < 0) r = 0, c = [0];
758
+ } else throw Error(h);
759
+ for (i = c[--o], e %= w, i && e && (a = v(10, w - e), c[o] = (i / a | 0) * a); c[o] === 0; o--) c.pop();
760
+ if (o < 0) n = 0, c = [0];
760
761
  else {
761
- for (r = -1; c[0] === 0; r -= C) c.shift();
762
+ for (n = -1; c[0] === 0; n -= w) c.shift();
762
763
  for (i = 1, a = c[0]; a >= 10; a /= 10) i++;
763
- i < C && (r -= C - i);
764
+ i < w && (n -= w - i);
764
765
  }
765
- return s.e = r, s.d = c, s;
766
- }
767
- function Me(e) {
768
- return P(e = new this(e), e.e + 1, this.rounding);
766
+ return s.e = n, s.d = c, s;
769
767
  }
770
768
  function Ne(e) {
771
- return e = new this(e), e.d ? e.d[0] ? e.s : 0 * e.s : e.s || NaN;
769
+ return F(e = new this(e), e.e + 1, this.rounding);
772
770
  }
773
771
  function Pe(e) {
774
- return new this(e).sin();
772
+ return e = new this(e), e.d ? e.d[0] ? e.s : 0 * e.s : e.s || NaN;
775
773
  }
776
774
  function Fe(e) {
777
- return new this(e).sinh();
775
+ return new this(e).sin();
778
776
  }
779
777
  function Ie(e) {
778
+ return new this(e).sinh();
779
+ }
780
+ function Le(e) {
780
781
  return new this(e).sqrt();
781
782
  }
782
- function Le(e, t) {
783
+ function Re(e, t) {
783
784
  return new this(e).sub(t);
784
785
  }
785
- function Re() {
786
+ function ze() {
786
787
  var e = 0, t = arguments, n = new this(t[e]);
787
- for (u = !1; n.s && ++e < t.length;) n = n.plus(t[e]);
788
- return u = !0, P(n, this.precision, this.rounding);
788
+ for (d = !1; n.s && ++e < t.length;) n = n.plus(t[e]);
789
+ return d = !0, F(n, this.precision, this.rounding);
789
790
  }
790
- function ze(e) {
791
+ function Be(e) {
791
792
  return new this(e).tan();
792
793
  }
793
- function Be(e) {
794
+ function Ve(e) {
794
795
  return new this(e).tanh();
795
796
  }
796
- function Ve(e) {
797
- return P(e = new this(e), e.e + 1, 1);
797
+ function He(e) {
798
+ return F(e = new this(e), e.e + 1, 1);
798
799
  }
799
- s = Q(o), s.prototype.constructor = s, s.default = s.Decimal = s, i = new s(i), a = new s(a);
800
- var He = s;
800
+ c = $(s), c.prototype.constructor = c, c.default = c.Decimal = c, a = new c(a), o = new c(o);
801
+ var Ue = c;
801
802
  //#endregion
802
- export { s as Decimal, He as default };
803
+ export { c as Decimal, Ue as default };
803
804
  /* 独立思考,明辨是非 */