@redscope-ai/redscope 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (619) hide show
  1. package/README.md +224 -0
  2. package/dist/chunk-090920rk.js +288 -0
  3. package/dist/chunk-0afb2r78.js +141 -0
  4. package/dist/chunk-0d4ekx1g.js +73 -0
  5. package/dist/chunk-0g6nwbhq.js +15 -0
  6. package/dist/chunk-0qj905nt.js +18 -0
  7. package/dist/chunk-0s5btnn1.js +186 -0
  8. package/dist/chunk-0s8fars0.js +91 -0
  9. package/dist/chunk-10ev3dvh.js +312 -0
  10. package/dist/chunk-10k5jfc5.js +1295 -0
  11. package/dist/chunk-12tspwqa.js +240 -0
  12. package/dist/chunk-13qesvnw.js +17 -0
  13. package/dist/chunk-143eh1e0.js +121 -0
  14. package/dist/chunk-14p6wvsq.js +39 -0
  15. package/dist/chunk-19f3zb1m.js +342 -0
  16. package/dist/chunk-1a5cep8h.js +145 -0
  17. package/dist/chunk-1abw9kkn.js +34 -0
  18. package/dist/chunk-1aer7c78.js +118 -0
  19. package/dist/chunk-1dazz4g6.js +154 -0
  20. package/dist/chunk-1fcf4ty1.js +142 -0
  21. package/dist/chunk-1gnxhyf8.js +62 -0
  22. package/dist/chunk-1he3944e.js +8124 -0
  23. package/dist/chunk-1jpayz7y.js +952 -0
  24. package/dist/chunk-1qd6f6vk.js +269 -0
  25. package/dist/chunk-1v0kpe62.js +2547 -0
  26. package/dist/chunk-1w20m7gw.js +445 -0
  27. package/dist/chunk-1y7kp51j.js +72 -0
  28. package/dist/chunk-1ycb5sxt.js +247 -0
  29. package/dist/chunk-1zbwhcbt.js +1124 -0
  30. package/dist/chunk-20psem54.js +116 -0
  31. package/dist/chunk-23h69r5b.js +30 -0
  32. package/dist/chunk-23x86ptv.js +473 -0
  33. package/dist/chunk-24fyv3jz.js +378 -0
  34. package/dist/chunk-24kv69g3.js +97 -0
  35. package/dist/chunk-2azx8zsc.js +125 -0
  36. package/dist/chunk-2d1gwzz9.js +524 -0
  37. package/dist/chunk-2g0ytd9d.js +29058 -0
  38. package/dist/chunk-2hfp9kat.js +21 -0
  39. package/dist/chunk-2j875eq6.js +37 -0
  40. package/dist/chunk-2kcgxnvp.js +39 -0
  41. package/dist/chunk-2kz09j2s.js +23 -0
  42. package/dist/chunk-2mwnwp0n.js +17 -0
  43. package/dist/chunk-2p1cqhcn.js +921 -0
  44. package/dist/chunk-2p369q9z.js +61 -0
  45. package/dist/chunk-2rf6asgf.js +151 -0
  46. package/dist/chunk-2vr7mqx1.js +384 -0
  47. package/dist/chunk-2xcg933e.js +205 -0
  48. package/dist/chunk-2ypwckbz.js +40310 -0
  49. package/dist/chunk-30wnahyg.js +626 -0
  50. package/dist/chunk-326zehp8.js +204 -0
  51. package/dist/chunk-32s6jzgw.js +183 -0
  52. package/dist/chunk-35yzt1a7.js +202 -0
  53. package/dist/chunk-38frkej6.js +62 -0
  54. package/dist/chunk-3abaq08g.js +34 -0
  55. package/dist/chunk-3h59ttr5.js +32 -0
  56. package/dist/chunk-3nk9q8dr.js +154 -0
  57. package/dist/chunk-3prrxevm.js +224 -0
  58. package/dist/chunk-3tv8p9xw.js +127 -0
  59. package/dist/chunk-3txyekes.js +19 -0
  60. package/dist/chunk-3vfxjn7g.js +19 -0
  61. package/dist/chunk-3w9sye8h.js +81 -0
  62. package/dist/chunk-3y69j7y8.js +24 -0
  63. package/dist/chunk-3zwjpkjh.js +1603 -0
  64. package/dist/chunk-40t1d75v.js +3442 -0
  65. package/dist/chunk-470kmby4.js +318 -0
  66. package/dist/chunk-47jc141z.js +335 -0
  67. package/dist/chunk-48rz50ct.js +868 -0
  68. package/dist/chunk-49wv03ts.js +232 -0
  69. package/dist/chunk-4a189mn2.js +103 -0
  70. package/dist/chunk-4c4fmh7a.js +15 -0
  71. package/dist/chunk-4ct8dsj5.js +49 -0
  72. package/dist/chunk-4kqt1pm1.js +100 -0
  73. package/dist/chunk-4ng0xy0e.js +802 -0
  74. package/dist/chunk-4spgkgr3.js +43 -0
  75. package/dist/chunk-4tjdwtyy.js +19 -0
  76. package/dist/chunk-4tr60273.js +370 -0
  77. package/dist/chunk-4vnaeng5.js +29 -0
  78. package/dist/chunk-4wbqpeaw.js +871 -0
  79. package/dist/chunk-4wgkv3fv.js +1140 -0
  80. package/dist/chunk-4yjskjb6.js +40 -0
  81. package/dist/chunk-50m3a23z.js +35 -0
  82. package/dist/chunk-511f79az.js +182 -0
  83. package/dist/chunk-51sgztvv.js +161 -0
  84. package/dist/chunk-563fcpv1.js +290 -0
  85. package/dist/chunk-564cnq6v.js +735 -0
  86. package/dist/chunk-569r8cxc.js +31 -0
  87. package/dist/chunk-570x55d4.js +12 -0
  88. package/dist/chunk-571556cm.js +80 -0
  89. package/dist/chunk-59t4c56e.js +63 -0
  90. package/dist/chunk-5axjhkma.js +36 -0
  91. package/dist/chunk-5b188q5e.js +157 -0
  92. package/dist/chunk-5dmn1865.js +439 -0
  93. package/dist/chunk-5ks4829r.js +267 -0
  94. package/dist/chunk-5mmhfbxb.js +1078 -0
  95. package/dist/chunk-5rdt14hy.js +742 -0
  96. package/dist/chunk-5ssryexj.js +121 -0
  97. package/dist/chunk-5v95pnq4.js +15 -0
  98. package/dist/chunk-5xvjt2t9.js +68 -0
  99. package/dist/chunk-5zyq6t1q.js +118 -0
  100. package/dist/chunk-60fkafk2.js +15 -0
  101. package/dist/chunk-62fjkf5q.js +46 -0
  102. package/dist/chunk-64gazrrb.js +8067 -0
  103. package/dist/chunk-65tq2yjx.js +126 -0
  104. package/dist/chunk-65zbgg1n.js +14 -0
  105. package/dist/chunk-66v8mty3.js +264 -0
  106. package/dist/chunk-6acx5heq.js +292 -0
  107. package/dist/chunk-6hr7742d.js +61 -0
  108. package/dist/chunk-6hygvrhn.js +143 -0
  109. package/dist/chunk-6kjh280m.js +128 -0
  110. package/dist/chunk-6s0q1s5r.js +66 -0
  111. package/dist/chunk-6x35ffpx.js +690 -0
  112. package/dist/chunk-71jfy1hh.js +570 -0
  113. package/dist/chunk-71sdcaq6.js +15 -0
  114. package/dist/chunk-754qdxs5.js +92 -0
  115. package/dist/chunk-79v5bkj4.js +1176 -0
  116. package/dist/chunk-7br0w7j5.js +151 -0
  117. package/dist/chunk-7cjgrzz1.js +298 -0
  118. package/dist/chunk-7d41ks0y.js +133 -0
  119. package/dist/chunk-7f40pmtr.js +71 -0
  120. package/dist/chunk-7g15x8hm.js +131 -0
  121. package/dist/chunk-7gtnzdet.js +120 -0
  122. package/dist/chunk-7h0z4aqx.js +702 -0
  123. package/dist/chunk-7h7e5a7d.js +25 -0
  124. package/dist/chunk-7m2cznwr.js +40 -0
  125. package/dist/chunk-7nvday0n.js +252 -0
  126. package/dist/chunk-7qey87th.js +145 -0
  127. package/dist/chunk-7qx3xhv3.js +9076 -0
  128. package/dist/chunk-7tfdhkpy.js +61 -0
  129. package/dist/chunk-80m511j6.js +121 -0
  130. package/dist/chunk-80ysxfe9.js +784 -0
  131. package/dist/chunk-8375zk8t.js +17200 -0
  132. package/dist/chunk-85bpkyy9.js +412 -0
  133. package/dist/chunk-85tcn547.js +876 -0
  134. package/dist/chunk-85vqgbc8.js +13 -0
  135. package/dist/chunk-86626jb4.js +49 -0
  136. package/dist/chunk-87ms17f6.js +444 -0
  137. package/dist/chunk-87mz239c.js +118 -0
  138. package/dist/chunk-89vdzt4e.js +254 -0
  139. package/dist/chunk-89z3e99z.js +159 -0
  140. package/dist/chunk-8cwrz1dd.js +1806 -0
  141. package/dist/chunk-8gv2pjby.js +21 -0
  142. package/dist/chunk-8hdevr3s.js +140 -0
  143. package/dist/chunk-8hdsk6qc.js +710 -0
  144. package/dist/chunk-8kct9arg.js +724 -0
  145. package/dist/chunk-8kf8h7xf.js +23 -0
  146. package/dist/chunk-8qed8ymj.js +605 -0
  147. package/dist/chunk-8sdgr592.js +101 -0
  148. package/dist/chunk-8we9w8pw.js +111 -0
  149. package/dist/chunk-8xnm5637.js +72 -0
  150. package/dist/chunk-8y3q0eqy.js +67 -0
  151. package/dist/chunk-8yvsnrkr.js +3449 -0
  152. package/dist/chunk-8zz4z1q3.js +42 -0
  153. package/dist/chunk-90eyff3k.js +119 -0
  154. package/dist/chunk-92bjkrf2.js +121 -0
  155. package/dist/chunk-92zrc7c6.js +327 -0
  156. package/dist/chunk-935nrvdb.js +13 -0
  157. package/dist/chunk-94pfyv6a.js +48 -0
  158. package/dist/chunk-9568p8se.js +115 -0
  159. package/dist/chunk-96km1ywr.js +37 -0
  160. package/dist/chunk-980bg4w4.js +163 -0
  161. package/dist/chunk-9a9g5hbj.js +205 -0
  162. package/dist/chunk-9cm4725d.js +4395 -0
  163. package/dist/chunk-9ds3vzq8.js +847 -0
  164. package/dist/chunk-9ffc9n60.js +618 -0
  165. package/dist/chunk-9fstrwv2.js +184 -0
  166. package/dist/chunk-9gt0g0qe.js +153 -0
  167. package/dist/chunk-9h9k5vz3.js +2761 -0
  168. package/dist/chunk-9he8bmhy.js +17 -0
  169. package/dist/chunk-9hn8e6h1.js +12 -0
  170. package/dist/chunk-9j0n3g8e.js +179 -0
  171. package/dist/chunk-9j6pa3ft.js +251 -0
  172. package/dist/chunk-9jpg9dn7.js +122 -0
  173. package/dist/chunk-9mycnwj5.js +46 -0
  174. package/dist/chunk-9npy2c17.js +517 -0
  175. package/dist/chunk-9p6sec8n.js +34 -0
  176. package/dist/chunk-9pnym83h.js +4584 -0
  177. package/dist/chunk-9skwrnd2.js +25 -0
  178. package/dist/chunk-9tsfaqr8.js +459 -0
  179. package/dist/chunk-9tsw3cqv.js +5924 -0
  180. package/dist/chunk-9w6ckyk4.js +49 -0
  181. package/dist/chunk-a15bwzv6.js +147 -0
  182. package/dist/chunk-a9t6cp69.js +28 -0
  183. package/dist/chunk-ad2yk19p.js +102 -0
  184. package/dist/chunk-ad4cw4nw.js +336 -0
  185. package/dist/chunk-ad69fbsk.js +347 -0
  186. package/dist/chunk-ae76ded0.js +30 -0
  187. package/dist/chunk-aeysytks.js +216 -0
  188. package/dist/chunk-ag81m9bq.js +61 -0
  189. package/dist/chunk-ahx7gp6r.js +4448 -0
  190. package/dist/chunk-aj4tk4tk.js +23 -0
  191. package/dist/chunk-an82t9jc.js +104 -0
  192. package/dist/chunk-apg95qd7.js +1393 -0
  193. package/dist/chunk-aq5n2adz.js +27 -0
  194. package/dist/chunk-aw4s3a99.js +208 -0
  195. package/dist/chunk-awgdfggg.js +14 -0
  196. package/dist/chunk-ayymxgn1.js +164 -0
  197. package/dist/chunk-azbab59e.js +637 -0
  198. package/dist/chunk-azdxq2a3.js +293 -0
  199. package/dist/chunk-b0tjx3k1.js +523 -0
  200. package/dist/chunk-b5pp4g2g.js +371 -0
  201. package/dist/chunk-b5zm8dt6.js +26 -0
  202. package/dist/chunk-bcnye5a0.js +109 -0
  203. package/dist/chunk-beqz3k49.js +190 -0
  204. package/dist/chunk-bf906wpw.js +147 -0
  205. package/dist/chunk-bgan4cpf.js +13 -0
  206. package/dist/chunk-bhzp13h7.js +1178 -0
  207. package/dist/chunk-bk403kpw.js +142 -0
  208. package/dist/chunk-bmq4c135.js +489 -0
  209. package/dist/chunk-bprbeda7.js +35 -0
  210. package/dist/chunk-bst7czdd.js +888 -0
  211. package/dist/chunk-bths4xgn.js +111 -0
  212. package/dist/chunk-btjn3qby.js +13 -0
  213. package/dist/chunk-bwb1vxnt.js +120 -0
  214. package/dist/chunk-bxa6tw4m.js +643 -0
  215. package/dist/chunk-bxfjr8qb.js +27 -0
  216. package/dist/chunk-bxpzhrej.js +73 -0
  217. package/dist/chunk-bzyzrq0k.js +51 -0
  218. package/dist/chunk-c0k7b0jw.js +4265 -0
  219. package/dist/chunk-c17f0h2s.js +16 -0
  220. package/dist/chunk-c1yc761e.js +6748 -0
  221. package/dist/chunk-c5g9shkw.js +298 -0
  222. package/dist/chunk-c696122m.js +69 -0
  223. package/dist/chunk-c92b3yxx.js +109 -0
  224. package/dist/chunk-c9aqz56y.js +143 -0
  225. package/dist/chunk-cba7c5w3.js +345 -0
  226. package/dist/chunk-cbcxbbe6.js +6543 -0
  227. package/dist/chunk-cdfjb87h.js +11 -0
  228. package/dist/chunk-ce8zjt1y.js +136 -0
  229. package/dist/chunk-cep7e37k.js +22740 -0
  230. package/dist/chunk-chs5qm8d.js +258 -0
  231. package/dist/chunk-ckydq33g.js +144 -0
  232. package/dist/chunk-cnge6wpj.js +514 -0
  233. package/dist/chunk-cpnsvqf1.js +13 -0
  234. package/dist/chunk-cqqebkv4.js +32 -0
  235. package/dist/chunk-cvqpp7dk.js +627 -0
  236. package/dist/chunk-cwc33j40.js +65 -0
  237. package/dist/chunk-cypvrq2a.js +155 -0
  238. package/dist/chunk-d1ha0swn.js +475 -0
  239. package/dist/chunk-d2an0138.js +35 -0
  240. package/dist/chunk-d2tt72ck.js +343 -0
  241. package/dist/chunk-d6wvcqrw.js +9507 -0
  242. package/dist/chunk-d7ys2kka.js +991 -0
  243. package/dist/chunk-dbts5q5p.js +122 -0
  244. package/dist/chunk-dct29ggs.js +295 -0
  245. package/dist/chunk-de0qnnf7.js +1059 -0
  246. package/dist/chunk-dep72ce4.js +513 -0
  247. package/dist/chunk-dgpvgy8x.js +47 -0
  248. package/dist/chunk-dhhd7dtc.js +20 -0
  249. package/dist/chunk-dhzpmxv6.js +594 -0
  250. package/dist/chunk-djes4da7.js +413 -0
  251. package/dist/chunk-dnhv3vx7.js +166 -0
  252. package/dist/chunk-dqtvafan.js +2365 -0
  253. package/dist/chunk-dr4a3tcp.js +60 -0
  254. package/dist/chunk-dz2xk9kb.js +100 -0
  255. package/dist/chunk-dz7nc6rf.js +15 -0
  256. package/dist/chunk-e3abfxpy.js +1486 -0
  257. package/dist/chunk-e3cq9z89.js +85 -0
  258. package/dist/chunk-e3j7m7k2.js +642 -0
  259. package/dist/chunk-e4dsy4g1.js +9951 -0
  260. package/dist/chunk-e5592pnn.js +197 -0
  261. package/dist/chunk-e55hdegh.js +129 -0
  262. package/dist/chunk-e5r5r04e.js +1030 -0
  263. package/dist/chunk-e60zztbt.js +442 -0
  264. package/dist/chunk-e7qq6vn0.js +372 -0
  265. package/dist/chunk-e9aat7xw.js +80 -0
  266. package/dist/chunk-e9d5v3zs.js +143 -0
  267. package/dist/chunk-eax32zk4.js +87 -0
  268. package/dist/chunk-ebfwmbx1.js +117 -0
  269. package/dist/chunk-ec71pb8t.js +971 -0
  270. package/dist/chunk-eemjb825.js +17252 -0
  271. package/dist/chunk-ees8xdhd.js +256 -0
  272. package/dist/chunk-eewg66y1.js +112 -0
  273. package/dist/chunk-eg22v12d.js +266 -0
  274. package/dist/chunk-enzzk67f.js +313 -0
  275. package/dist/chunk-eskhp70f.js +117 -0
  276. package/dist/chunk-ewx6z4g8.js +55 -0
  277. package/dist/chunk-eyvx461k.js +76 -0
  278. package/dist/chunk-eztq2b5f.js +94 -0
  279. package/dist/chunk-f0ffwzdd.js +321 -0
  280. package/dist/chunk-f80n68mf.js +119 -0
  281. package/dist/chunk-fae2hjxp.js +99 -0
  282. package/dist/chunk-fbtfp370.js +60 -0
  283. package/dist/chunk-fc6ndtgf.js +94 -0
  284. package/dist/chunk-fdwabr8p.js +13870 -0
  285. package/dist/chunk-fejeqe61.js +785 -0
  286. package/dist/chunk-fh0d6mvk.js +168 -0
  287. package/dist/chunk-fh19zcaf.js +304 -0
  288. package/dist/chunk-fh8bd39r.js +186 -0
  289. package/dist/chunk-fj2ebbpn.js +33 -0
  290. package/dist/chunk-fjn632v7.js +194 -0
  291. package/dist/chunk-fncpkzs5.js +1389 -0
  292. package/dist/chunk-fpd1gpt8.js +332 -0
  293. package/dist/chunk-fq9snrnh.js +295 -0
  294. package/dist/chunk-fqcfzg3j.js +207 -0
  295. package/dist/chunk-ftt3vqj2.js +1919 -0
  296. package/dist/chunk-g06pm4n9.js +395 -0
  297. package/dist/chunk-g4m5pf4g.js +8 -0
  298. package/dist/chunk-g72h52y6.js +36 -0
  299. package/dist/chunk-g79ej71s.js +1627 -0
  300. package/dist/chunk-g7fwk59d.js +19 -0
  301. package/dist/chunk-g9jnkrtm.js +663 -0
  302. package/dist/chunk-g9vg5d7t.js +38 -0
  303. package/dist/chunk-ga1jkyqy.js +1636 -0
  304. package/dist/chunk-gaaap2nk.js +676 -0
  305. package/dist/chunk-gc6erq5q.js +483 -0
  306. package/dist/chunk-gjrcmf0a.js +752 -0
  307. package/dist/chunk-gmdy2w3z.js +238999 -0
  308. package/dist/chunk-gsz4yrrk.js +81 -0
  309. package/dist/chunk-gy47rjy8.js +3830 -0
  310. package/dist/chunk-h12a4f4x.js +11 -0
  311. package/dist/chunk-h1yratmg.js +725 -0
  312. package/dist/chunk-h9y0jnsy.js +155 -0
  313. package/dist/chunk-hbhs3mwy.js +133 -0
  314. package/dist/chunk-hbs8cmb4.js +8 -0
  315. package/dist/chunk-hdk0t1ht.js +940 -0
  316. package/dist/chunk-hef8dx4s.js +178 -0
  317. package/dist/chunk-hgsca8mt.js +381 -0
  318. package/dist/chunk-hhsxm2yr.js +67 -0
  319. package/dist/chunk-hj5tzzpd.js +39 -0
  320. package/dist/chunk-hjxqmtg5.js +94 -0
  321. package/dist/chunk-hn4w9pkj.js +68 -0
  322. package/dist/chunk-hnprkjgp.js +25 -0
  323. package/dist/chunk-hq3n5ex7.js +183 -0
  324. package/dist/chunk-hqjspfma.js +158 -0
  325. package/dist/chunk-hqxp6b72.js +1198 -0
  326. package/dist/chunk-hs6nrmq6.js +94 -0
  327. package/dist/chunk-hwba5xdc.js +267 -0
  328. package/dist/chunk-hy566ev3.js +430 -0
  329. package/dist/chunk-hzmzwte2.js +153 -0
  330. package/dist/chunk-hzxzvzw8.js +274 -0
  331. package/dist/chunk-j139fzgs.js +114 -0
  332. package/dist/chunk-j1mep9ck.js +62 -0
  333. package/dist/chunk-j3xveeg4.js +273 -0
  334. package/dist/chunk-j5y1s11j.js +100 -0
  335. package/dist/chunk-j9475b46.js +26 -0
  336. package/dist/chunk-j9rgqs8m.js +1192 -0
  337. package/dist/chunk-jccjaddz.js +74 -0
  338. package/dist/chunk-jdkwfy9e.js +35 -0
  339. package/dist/chunk-jdqp0r4h.js +6157 -0
  340. package/dist/chunk-jdzk4zwn.js +587 -0
  341. package/dist/chunk-jfafmkte.js +49 -0
  342. package/dist/chunk-jg3r989b.js +16 -0
  343. package/dist/chunk-jhtccjc9.js +54 -0
  344. package/dist/chunk-jj2ff1pr.js +688 -0
  345. package/dist/chunk-jmv7k0jn.js +37 -0
  346. package/dist/chunk-jmxzmwpw.js +65 -0
  347. package/dist/chunk-jnjxdqyr.js +353 -0
  348. package/dist/chunk-jsbbez9j.js +138 -0
  349. package/dist/chunk-jvpt2dc0.js +424 -0
  350. package/dist/chunk-jwd7cka0.js +34 -0
  351. package/dist/chunk-jy5er3st.js +15 -0
  352. package/dist/chunk-jyby79z5.js +121 -0
  353. package/dist/chunk-jzyr6j5n.js +332 -0
  354. package/dist/chunk-k49xc781.js +63 -0
  355. package/dist/chunk-k7dt2g4a.js +41 -0
  356. package/dist/chunk-k7hexw3v.js +969 -0
  357. package/dist/chunk-k7wwkraa.js +117 -0
  358. package/dist/chunk-kb3758f7.js +51 -0
  359. package/dist/chunk-kc67kt75.js +3119 -0
  360. package/dist/chunk-kdhmfxmh.js +3149 -0
  361. package/dist/chunk-kejdd6zc.js +51 -0
  362. package/dist/chunk-kekrjeem.js +402 -0
  363. package/dist/chunk-kez5r0zz.js +280 -0
  364. package/dist/chunk-kfsvcs5t.js +75 -0
  365. package/dist/chunk-khtvffc4.js +285 -0
  366. package/dist/chunk-kkz4w1tv.js +64 -0
  367. package/dist/chunk-kmywng0j.js +272 -0
  368. package/dist/chunk-kq6vcpdr.js +224 -0
  369. package/dist/chunk-kqzdszcc.js +37 -0
  370. package/dist/chunk-ktxpp02w.js +435 -0
  371. package/dist/chunk-kwcvhbtz.js +26 -0
  372. package/dist/chunk-kx0cm9qr.js +128 -0
  373. package/dist/chunk-kxcmqz10.js +120 -0
  374. package/dist/chunk-kxwava1g.js +14 -0
  375. package/dist/chunk-kywtr3jg.js +825 -0
  376. package/dist/chunk-kzwg923p.js +8 -0
  377. package/dist/chunk-m1eq3sgv.js +255 -0
  378. package/dist/chunk-m21h5zb4.js +119 -0
  379. package/dist/chunk-m2c3bjv1.js +111 -0
  380. package/dist/chunk-m41e19ms.js +42 -0
  381. package/dist/chunk-m7ka36ex.js +97 -0
  382. package/dist/chunk-m81w8tbm.js +259 -0
  383. package/dist/chunk-m95ggkax.js +281 -0
  384. package/dist/chunk-manx26xa.js +145 -0
  385. package/dist/chunk-mdxh3pk2.js +298 -0
  386. package/dist/chunk-mhbfkcja.js +311 -0
  387. package/dist/chunk-mjnr5erm.js +173 -0
  388. package/dist/chunk-mngvnmwp.js +135 -0
  389. package/dist/chunk-mvfqanv5.js +63 -0
  390. package/dist/chunk-mw1nesq1.js +140 -0
  391. package/dist/chunk-mx168925.js +661 -0
  392. package/dist/chunk-mxwvj18g.js +795 -0
  393. package/dist/chunk-my7r5mba.js +257 -0
  394. package/dist/chunk-myaa1kkf.js +17 -0
  395. package/dist/chunk-myypc3tn.js +46 -0
  396. package/dist/chunk-mzcnmnpq.js +3379 -0
  397. package/dist/chunk-mznav6d1.js +194 -0
  398. package/dist/chunk-n0qxskpr.js +24 -0
  399. package/dist/chunk-n6a6hgtp.js +394 -0
  400. package/dist/chunk-n6d5fgx0.js +254 -0
  401. package/dist/chunk-n6ym3n03.js +120 -0
  402. package/dist/chunk-n9g24mwe.js +104 -0
  403. package/dist/chunk-naamqdf9.js +185 -0
  404. package/dist/chunk-nb2jk7zj.js +15 -0
  405. package/dist/chunk-nbkbq9en.js +67 -0
  406. package/dist/chunk-ndttd6es.js +38 -0
  407. package/dist/chunk-nfygaaxg.js +133 -0
  408. package/dist/chunk-ngdzpszd.js +454 -0
  409. package/dist/chunk-nmfwksa4.js +1297 -0
  410. package/dist/chunk-nt837qt9.js +21 -0
  411. package/dist/chunk-nwc3v0vp.js +691 -0
  412. package/dist/chunk-nz8ha95p.js +3610 -0
  413. package/dist/chunk-nzxfj0gq.js +2007 -0
  414. package/dist/chunk-p0r8887g.js +6932 -0
  415. package/dist/chunk-p1seyqdm.js +120 -0
  416. package/dist/chunk-p425zbgw.js +726 -0
  417. package/dist/chunk-p7hamd2c.js +146 -0
  418. package/dist/chunk-pdvg91cg.js +32 -0
  419. package/dist/chunk-pecy49yr.js +14649 -0
  420. package/dist/chunk-pfxrg89f.js +547 -0
  421. package/dist/chunk-pfyw3155.js +2750 -0
  422. package/dist/chunk-pr8m11pm.js +1192 -0
  423. package/dist/chunk-ptxteaeh.js +1591 -0
  424. package/dist/chunk-pv164mac.js +394 -0
  425. package/dist/chunk-pxxhtxf5.js +10154 -0
  426. package/dist/chunk-q0e485mg.js +61 -0
  427. package/dist/chunk-q1vrhh0q.js +458 -0
  428. package/dist/chunk-q2h79ncs.js +370 -0
  429. package/dist/chunk-q3b4n194.js +56 -0
  430. package/dist/chunk-q44zc68f.js +4301 -0
  431. package/dist/chunk-q8gknbdx.js +352 -0
  432. package/dist/chunk-q8xk3kdj.js +11 -0
  433. package/dist/chunk-qak46xtp.js +119 -0
  434. package/dist/chunk-qfq7absv.js +95 -0
  435. package/dist/chunk-qfsn720k.js +151 -0
  436. package/dist/chunk-qg4811f6.js +228 -0
  437. package/dist/chunk-qgzn3qps.js +90 -0
  438. package/dist/chunk-qhaggqkt.js +113 -0
  439. package/dist/chunk-qjjp27z8.js +195 -0
  440. package/dist/chunk-qxp0nye6.js +34 -0
  441. package/dist/chunk-qy3nagaq.js +4957 -0
  442. package/dist/chunk-qz2meav1.js +1452 -0
  443. package/dist/chunk-r50hne7m.js +63 -0
  444. package/dist/chunk-r6m0vgnv.js +80 -0
  445. package/dist/chunk-r7yw38vf.js +22864 -0
  446. package/dist/chunk-r8xc618w.js +42 -0
  447. package/dist/chunk-r961r5kj.js +87 -0
  448. package/dist/chunk-r9b5xrh0.js +66 -0
  449. package/dist/chunk-rcn2pd6q.js +477 -0
  450. package/dist/chunk-rdeh8p3y.js +148 -0
  451. package/dist/chunk-rg9x1742.js +542 -0
  452. package/dist/chunk-rgyzsbs3.js +39 -0
  453. package/dist/chunk-rk2fsxtz.js +16 -0
  454. package/dist/chunk-rkchkwv9.js +40 -0
  455. package/dist/chunk-rp8whpb3.js +478 -0
  456. package/dist/chunk-rpkxdtgr.js +68 -0
  457. package/dist/chunk-rpmntgyh.js +394 -0
  458. package/dist/chunk-rpshz4dy.js +614 -0
  459. package/dist/chunk-rqd60ay5.js +133 -0
  460. package/dist/chunk-rrsjf2ea.js +229 -0
  461. package/dist/chunk-rtjk8c8e.js +173 -0
  462. package/dist/chunk-rw0y2wdf.js +1017 -0
  463. package/dist/chunk-rx5w7ess.js +663 -0
  464. package/dist/chunk-rx8t9d35.js +1947 -0
  465. package/dist/chunk-rxcazxgf.js +195 -0
  466. package/dist/chunk-rxg6q3bp.js +1413 -0
  467. package/dist/chunk-rxrb7xnd.js +71 -0
  468. package/dist/chunk-rxrzxff3.js +118 -0
  469. package/dist/chunk-ryqjc943.js +71 -0
  470. package/dist/chunk-rzk9k2rf.js +81 -0
  471. package/dist/chunk-s2qv0nht.js +119 -0
  472. package/dist/chunk-s3hafnk3.js +2285 -0
  473. package/dist/chunk-s4a496tt.js +226 -0
  474. package/dist/chunk-s4d1h3ka.js +35 -0
  475. package/dist/chunk-sm3k3ze4.js +16525 -0
  476. package/dist/chunk-sn0bja82.js +385 -0
  477. package/dist/chunk-sngjggw1.js +4227 -0
  478. package/dist/chunk-sq047n34.js +364 -0
  479. package/dist/chunk-sttwe2tw.js +8584 -0
  480. package/dist/chunk-sw8qx1r0.js +86 -0
  481. package/dist/chunk-swstah6a.js +240 -0
  482. package/dist/chunk-syrkr0mf.js +63 -0
  483. package/dist/chunk-sz206bd9.js +26 -0
  484. package/dist/chunk-t09669cj.js +333 -0
  485. package/dist/chunk-t5f8e30k.js +602 -0
  486. package/dist/chunk-t5m78mc8.js +432 -0
  487. package/dist/chunk-t5x1dqwn.js +143 -0
  488. package/dist/chunk-t877ea0w.js +168 -0
  489. package/dist/chunk-t91hb71c.js +17 -0
  490. package/dist/chunk-tb636bcf.js +942 -0
  491. package/dist/chunk-tb8sykbr.js +426 -0
  492. package/dist/chunk-tbdkekz3.js +125 -0
  493. package/dist/chunk-td2gsz7s.js +225 -0
  494. package/dist/chunk-tenvxbyh.js +20 -0
  495. package/dist/chunk-texg4qqt.js +317 -0
  496. package/dist/chunk-teymzz80.js +266 -0
  497. package/dist/chunk-tj26qpf7.js +153 -0
  498. package/dist/chunk-tk85ec4p.js +395 -0
  499. package/dist/chunk-tq205h01.js +164 -0
  500. package/dist/chunk-tqzddjzg.js +61 -0
  501. package/dist/chunk-trqrj23e.js +134 -0
  502. package/dist/chunk-tw1hfsxv.js +2477 -0
  503. package/dist/chunk-txxdfq83.js +122 -0
  504. package/dist/chunk-v0yhe582.js +31 -0
  505. package/dist/chunk-v14184xm.js +15 -0
  506. package/dist/chunk-v1h9z4hw.js +138 -0
  507. package/dist/chunk-v3ey5j7f.js +329 -0
  508. package/dist/chunk-v3nh1sfn.js +208 -0
  509. package/dist/chunk-v3x8tcc0.js +45 -0
  510. package/dist/chunk-v4nqnvqq.js +3984 -0
  511. package/dist/chunk-v4ypszbb.js +15 -0
  512. package/dist/chunk-v7wbqcx9.js +63 -0
  513. package/dist/chunk-v8r5fev3.js +341 -0
  514. package/dist/chunk-v9zg5kzx.js +2810 -0
  515. package/dist/chunk-va1wh5ss.js +24 -0
  516. package/dist/chunk-vbfswhht.js +42 -0
  517. package/dist/chunk-ve7x2tfq.js +124 -0
  518. package/dist/chunk-vfz8k89y.js +485 -0
  519. package/dist/chunk-vgm5k14x.js +35678 -0
  520. package/dist/chunk-vh9pej3c.js +247 -0
  521. package/dist/chunk-vjxqyt6f.js +3820 -0
  522. package/dist/chunk-vpb1xstn.js +178 -0
  523. package/dist/chunk-vqt79tj8.js +110 -0
  524. package/dist/chunk-vr0n9pv9.js +152 -0
  525. package/dist/chunk-vrejmja5.js +90 -0
  526. package/dist/chunk-vrxasmdw.js +449 -0
  527. package/dist/chunk-vrxb946v.js +125 -0
  528. package/dist/chunk-vv4kj0q8.js +98 -0
  529. package/dist/chunk-vvpfng7w.js +8 -0
  530. package/dist/chunk-vw6ybyew.js +2007 -0
  531. package/dist/chunk-vwenx8ke.js +17 -0
  532. package/dist/chunk-vwfa0s5a.js +155 -0
  533. package/dist/chunk-vx71j8xe.js +63 -0
  534. package/dist/chunk-vxbjzggp.js +43 -0
  535. package/dist/chunk-vxjxtz8w.js +440 -0
  536. package/dist/chunk-vy0c1bwp.js +9 -0
  537. package/dist/chunk-w3zczyse.js +14 -0
  538. package/dist/chunk-w4p5t920.js +655 -0
  539. package/dist/chunk-w68wc625.js +287 -0
  540. package/dist/chunk-w9ddp3yf.js +96 -0
  541. package/dist/chunk-wcggm5ja.js +125 -0
  542. package/dist/chunk-wgnyph3q.js +1306 -0
  543. package/dist/chunk-wjm5pc1e.js +134 -0
  544. package/dist/chunk-wnve0drm.js +131 -0
  545. package/dist/chunk-wp27ev2k.js +135 -0
  546. package/dist/chunk-wyvy8a4x.js +131 -0
  547. package/dist/chunk-x671y4dk.js +129 -0
  548. package/dist/chunk-xbj5keyy.js +22 -0
  549. package/dist/chunk-xf4fzms8.js +39 -0
  550. package/dist/chunk-xf59k3zg.js +65 -0
  551. package/dist/chunk-xgzc4w49.js +204 -0
  552. package/dist/chunk-xhj7g13b.js +2149 -0
  553. package/dist/chunk-xjp0cd00.js +56 -0
  554. package/dist/chunk-xkhnmhqs.js +74 -0
  555. package/dist/chunk-xkrkqx61.js +55 -0
  556. package/dist/chunk-xmpgmeb8.js +114 -0
  557. package/dist/chunk-xrw80zgd.js +4249 -0
  558. package/dist/chunk-xrzc96g0.js +202 -0
  559. package/dist/chunk-xt76sm44.js +318 -0
  560. package/dist/chunk-xwet3awb.js +20 -0
  561. package/dist/chunk-xyg1sk2w.js +78 -0
  562. package/dist/chunk-y0jpkqb0.js +180 -0
  563. package/dist/chunk-y1q7rt9n.js +102 -0
  564. package/dist/chunk-y67ntyek.js +258 -0
  565. package/dist/chunk-ybk37qp9.js +37 -0
  566. package/dist/chunk-yc1stfve.js +5386 -0
  567. package/dist/chunk-ychjpjef.js +62 -0
  568. package/dist/chunk-yez8fa9g.js +276 -0
  569. package/dist/chunk-ygm7xszr.js +90 -0
  570. package/dist/chunk-ym11azkj.js +37 -0
  571. package/dist/chunk-ympz2h15.js +578 -0
  572. package/dist/chunk-yqx3az3n.js +129 -0
  573. package/dist/chunk-yt3nfhcc.js +152 -0
  574. package/dist/chunk-yy8q0n8s.js +120 -0
  575. package/dist/chunk-yzb92zxv.js +8 -0
  576. package/dist/chunk-yzet6xyr.js +119 -0
  577. package/dist/chunk-yzm97qp1.js +226 -0
  578. package/dist/chunk-z0jgeax8.js +35 -0
  579. package/dist/chunk-z1r3z6w6.js +29 -0
  580. package/dist/chunk-z2dp53wn.js +17 -0
  581. package/dist/chunk-z79355gz.js +308 -0
  582. package/dist/chunk-z7e94hxz.js +251 -0
  583. package/dist/chunk-z8cqdcec.js +173 -0
  584. package/dist/chunk-z99tbg45.js +148 -0
  585. package/dist/chunk-z9nsjcht.js +37 -0
  586. package/dist/chunk-za3k6h2h.js +470 -0
  587. package/dist/chunk-zacynq5p.js +265 -0
  588. package/dist/chunk-zb0x40az.js +1785 -0
  589. package/dist/chunk-zbxtzycc.js +274 -0
  590. package/dist/chunk-zga50181.js +342 -0
  591. package/dist/chunk-zhb2pns1.js +44 -0
  592. package/dist/chunk-zkch6trx.js +231 -0
  593. package/dist/chunk-znf3z4qt.js +954 -0
  594. package/dist/chunk-zp8zwdgq.js +72 -0
  595. package/dist/chunk-ztjd8pyf.js +120 -0
  596. package/dist/chunk-ztmb7geg.js +173 -0
  597. package/dist/chunk-zvr4snzv.js +887 -0
  598. package/dist/chunk-zw62m6n3.js +34858 -0
  599. package/dist/chunk-zwwdebd0.js +65 -0
  600. package/dist/chunk-zxc6x9w8.js +340 -0
  601. package/dist/chunk-zy2e7sz0.js +8 -0
  602. package/dist/chunk-zzf074w3.js +196 -0
  603. package/dist/chunk-zzz0nwb5.js +310 -0
  604. package/dist/cli-bun.js +2 -0
  605. package/dist/cli-node.js +2 -0
  606. package/dist/cli.js +218 -0
  607. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  608. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  609. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  610. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  611. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  612. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  613. package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
  614. package/package.json +243 -0
  615. package/scripts/chrome-mcp-bridge-resolver.mjs +43 -0
  616. package/scripts/chrome-mcp-env.mjs +19 -0
  617. package/scripts/postinstall.cjs +339 -0
  618. package/scripts/run-parallel.mjs +10 -0
  619. package/scripts/setup-chrome-mcp.mjs +69 -0
@@ -0,0 +1,1947 @@
1
+ // @bun
2
+ import {
3
+ __commonJS
4
+ } from "./chunk-hhsxm2yr.js";
5
+
6
+ // node_modules/.bun/bignumber.js@9.3.1/node_modules/bignumber.js/bignumber.js
7
+ var require_bignumber = __commonJS((exports, module) => {
8
+ (function(globalObject) {
9
+ var BigNumber, isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 100000000000000, LOG_BASE = 14, MAX_SAFE_INTEGER = 9007199254740991, POWS_TEN = [1, 10, 100, 1000, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 10000000000, 100000000000, 1000000000000, 10000000000000], SQRT_BASE = 1e7, MAX = 1e9;
10
+ function clone(configObject) {
11
+ var div, convertBase, parseNumeric, P = BigNumber2.prototype = { constructor: BigNumber2, toString: null, valueOf: null }, ONE = new BigNumber2(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT = {
12
+ prefix: "",
13
+ groupSize: 3,
14
+ secondaryGroupSize: 0,
15
+ groupSeparator: ",",
16
+ decimalSeparator: ".",
17
+ fractionGroupSize: 0,
18
+ fractionGroupSeparator: "\xA0",
19
+ suffix: ""
20
+ }, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
21
+ function BigNumber2(v, b) {
22
+ var alphabet, c, caseChanged, e, i, isNum, len, str, x = this;
23
+ if (!(x instanceof BigNumber2))
24
+ return new BigNumber2(v, b);
25
+ if (b == null) {
26
+ if (v && v._isBigNumber === true) {
27
+ x.s = v.s;
28
+ if (!v.c || v.e > MAX_EXP) {
29
+ x.c = x.e = null;
30
+ } else if (v.e < MIN_EXP) {
31
+ x.c = [x.e = 0];
32
+ } else {
33
+ x.e = v.e;
34
+ x.c = v.c.slice();
35
+ }
36
+ return;
37
+ }
38
+ if ((isNum = typeof v == "number") && v * 0 == 0) {
39
+ x.s = 1 / v < 0 ? (v = -v, -1) : 1;
40
+ if (v === ~~v) {
41
+ for (e = 0, i = v;i >= 10; i /= 10, e++)
42
+ ;
43
+ if (e > MAX_EXP) {
44
+ x.c = x.e = null;
45
+ } else {
46
+ x.e = e;
47
+ x.c = [v];
48
+ }
49
+ return;
50
+ }
51
+ str = String(v);
52
+ } else {
53
+ if (!isNumeric.test(str = String(v)))
54
+ return parseNumeric(x, str, isNum);
55
+ x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;
56
+ }
57
+ if ((e = str.indexOf(".")) > -1)
58
+ str = str.replace(".", "");
59
+ if ((i = str.search(/e/i)) > 0) {
60
+ if (e < 0)
61
+ e = i;
62
+ e += +str.slice(i + 1);
63
+ str = str.substring(0, i);
64
+ } else if (e < 0) {
65
+ e = str.length;
66
+ }
67
+ } else {
68
+ intCheck(b, 2, ALPHABET.length, "Base");
69
+ if (b == 10 && alphabetHasNormalDecimalDigits) {
70
+ x = new BigNumber2(v);
71
+ return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);
72
+ }
73
+ str = String(v);
74
+ if (isNum = typeof v == "number") {
75
+ if (v * 0 != 0)
76
+ return parseNumeric(x, str, isNum, b);
77
+ x.s = 1 / v < 0 ? (str = str.slice(1), -1) : 1;
78
+ if (BigNumber2.DEBUG && str.replace(/^0\.0*|\./, "").length > 15) {
79
+ throw Error(tooManyDigits + v);
80
+ }
81
+ } else {
82
+ x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
83
+ }
84
+ alphabet = ALPHABET.slice(0, b);
85
+ e = i = 0;
86
+ for (len = str.length;i < len; i++) {
87
+ if (alphabet.indexOf(c = str.charAt(i)) < 0) {
88
+ if (c == ".") {
89
+ if (i > e) {
90
+ e = len;
91
+ continue;
92
+ }
93
+ } else if (!caseChanged) {
94
+ if (str == str.toUpperCase() && (str = str.toLowerCase()) || str == str.toLowerCase() && (str = str.toUpperCase())) {
95
+ caseChanged = true;
96
+ i = -1;
97
+ e = 0;
98
+ continue;
99
+ }
100
+ }
101
+ return parseNumeric(x, String(v), isNum, b);
102
+ }
103
+ }
104
+ isNum = false;
105
+ str = convertBase(str, b, 10, x.s);
106
+ if ((e = str.indexOf(".")) > -1)
107
+ str = str.replace(".", "");
108
+ else
109
+ e = str.length;
110
+ }
111
+ for (i = 0;str.charCodeAt(i) === 48; i++)
112
+ ;
113
+ for (len = str.length;str.charCodeAt(--len) === 48; )
114
+ ;
115
+ if (str = str.slice(i, ++len)) {
116
+ len -= i;
117
+ if (isNum && BigNumber2.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER || v !== mathfloor(v))) {
118
+ throw Error(tooManyDigits + x.s * v);
119
+ }
120
+ if ((e = e - i - 1) > MAX_EXP) {
121
+ x.c = x.e = null;
122
+ } else if (e < MIN_EXP) {
123
+ x.c = [x.e = 0];
124
+ } else {
125
+ x.e = e;
126
+ x.c = [];
127
+ i = (e + 1) % LOG_BASE;
128
+ if (e < 0)
129
+ i += LOG_BASE;
130
+ if (i < len) {
131
+ if (i)
132
+ x.c.push(+str.slice(0, i));
133
+ for (len -= LOG_BASE;i < len; ) {
134
+ x.c.push(+str.slice(i, i += LOG_BASE));
135
+ }
136
+ i = LOG_BASE - (str = str.slice(i)).length;
137
+ } else {
138
+ i -= len;
139
+ }
140
+ for (;i--; str += "0")
141
+ ;
142
+ x.c.push(+str);
143
+ }
144
+ } else {
145
+ x.c = [x.e = 0];
146
+ }
147
+ }
148
+ BigNumber2.clone = clone;
149
+ BigNumber2.ROUND_UP = 0;
150
+ BigNumber2.ROUND_DOWN = 1;
151
+ BigNumber2.ROUND_CEIL = 2;
152
+ BigNumber2.ROUND_FLOOR = 3;
153
+ BigNumber2.ROUND_HALF_UP = 4;
154
+ BigNumber2.ROUND_HALF_DOWN = 5;
155
+ BigNumber2.ROUND_HALF_EVEN = 6;
156
+ BigNumber2.ROUND_HALF_CEIL = 7;
157
+ BigNumber2.ROUND_HALF_FLOOR = 8;
158
+ BigNumber2.EUCLID = 9;
159
+ BigNumber2.config = BigNumber2.set = function(obj) {
160
+ var p, v;
161
+ if (obj != null) {
162
+ if (typeof obj == "object") {
163
+ if (obj.hasOwnProperty(p = "DECIMAL_PLACES")) {
164
+ v = obj[p];
165
+ intCheck(v, 0, MAX, p);
166
+ DECIMAL_PLACES = v;
167
+ }
168
+ if (obj.hasOwnProperty(p = "ROUNDING_MODE")) {
169
+ v = obj[p];
170
+ intCheck(v, 0, 8, p);
171
+ ROUNDING_MODE = v;
172
+ }
173
+ if (obj.hasOwnProperty(p = "EXPONENTIAL_AT")) {
174
+ v = obj[p];
175
+ if (v && v.pop) {
176
+ intCheck(v[0], -MAX, 0, p);
177
+ intCheck(v[1], 0, MAX, p);
178
+ TO_EXP_NEG = v[0];
179
+ TO_EXP_POS = v[1];
180
+ } else {
181
+ intCheck(v, -MAX, MAX, p);
182
+ TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
183
+ }
184
+ }
185
+ if (obj.hasOwnProperty(p = "RANGE")) {
186
+ v = obj[p];
187
+ if (v && v.pop) {
188
+ intCheck(v[0], -MAX, -1, p);
189
+ intCheck(v[1], 1, MAX, p);
190
+ MIN_EXP = v[0];
191
+ MAX_EXP = v[1];
192
+ } else {
193
+ intCheck(v, -MAX, MAX, p);
194
+ if (v) {
195
+ MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
196
+ } else {
197
+ throw Error(bignumberError + p + " cannot be zero: " + v);
198
+ }
199
+ }
200
+ }
201
+ if (obj.hasOwnProperty(p = "CRYPTO")) {
202
+ v = obj[p];
203
+ if (v === !!v) {
204
+ if (v) {
205
+ if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
206
+ CRYPTO = v;
207
+ } else {
208
+ CRYPTO = !v;
209
+ throw Error(bignumberError + "crypto unavailable");
210
+ }
211
+ } else {
212
+ CRYPTO = v;
213
+ }
214
+ } else {
215
+ throw Error(bignumberError + p + " not true or false: " + v);
216
+ }
217
+ }
218
+ if (obj.hasOwnProperty(p = "MODULO_MODE")) {
219
+ v = obj[p];
220
+ intCheck(v, 0, 9, p);
221
+ MODULO_MODE = v;
222
+ }
223
+ if (obj.hasOwnProperty(p = "POW_PRECISION")) {
224
+ v = obj[p];
225
+ intCheck(v, 0, MAX, p);
226
+ POW_PRECISION = v;
227
+ }
228
+ if (obj.hasOwnProperty(p = "FORMAT")) {
229
+ v = obj[p];
230
+ if (typeof v == "object")
231
+ FORMAT = v;
232
+ else
233
+ throw Error(bignumberError + p + " not an object: " + v);
234
+ }
235
+ if (obj.hasOwnProperty(p = "ALPHABET")) {
236
+ v = obj[p];
237
+ if (typeof v == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(v)) {
238
+ alphabetHasNormalDecimalDigits = v.slice(0, 10) == "0123456789";
239
+ ALPHABET = v;
240
+ } else {
241
+ throw Error(bignumberError + p + " invalid: " + v);
242
+ }
243
+ }
244
+ } else {
245
+ throw Error(bignumberError + "Object expected: " + obj);
246
+ }
247
+ }
248
+ return {
249
+ DECIMAL_PLACES,
250
+ ROUNDING_MODE,
251
+ EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],
252
+ RANGE: [MIN_EXP, MAX_EXP],
253
+ CRYPTO,
254
+ MODULO_MODE,
255
+ POW_PRECISION,
256
+ FORMAT,
257
+ ALPHABET
258
+ };
259
+ };
260
+ BigNumber2.isBigNumber = function(v) {
261
+ if (!v || v._isBigNumber !== true)
262
+ return false;
263
+ if (!BigNumber2.DEBUG)
264
+ return true;
265
+ var i, n, c = v.c, e = v.e, s = v.s;
266
+ out:
267
+ if ({}.toString.call(c) == "[object Array]") {
268
+ if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
269
+ if (c[0] === 0) {
270
+ if (e === 0 && c.length === 1)
271
+ return true;
272
+ break out;
273
+ }
274
+ i = (e + 1) % LOG_BASE;
275
+ if (i < 1)
276
+ i += LOG_BASE;
277
+ if (String(c[0]).length == i) {
278
+ for (i = 0;i < c.length; i++) {
279
+ n = c[i];
280
+ if (n < 0 || n >= BASE || n !== mathfloor(n))
281
+ break out;
282
+ }
283
+ if (n !== 0)
284
+ return true;
285
+ }
286
+ }
287
+ } else if (c === null && e === null && (s === null || s === 1 || s === -1)) {
288
+ return true;
289
+ }
290
+ throw Error(bignumberError + "Invalid BigNumber: " + v);
291
+ };
292
+ BigNumber2.maximum = BigNumber2.max = function() {
293
+ return maxOrMin(arguments, -1);
294
+ };
295
+ BigNumber2.minimum = BigNumber2.min = function() {
296
+ return maxOrMin(arguments, 1);
297
+ };
298
+ BigNumber2.random = function() {
299
+ var pow2_53 = 9007199254740992;
300
+ var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() {
301
+ return mathfloor(Math.random() * pow2_53);
302
+ } : function() {
303
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
304
+ };
305
+ return function(dp) {
306
+ var a, b, e, k, v, i = 0, c = [], rand = new BigNumber2(ONE);
307
+ if (dp == null)
308
+ dp = DECIMAL_PLACES;
309
+ else
310
+ intCheck(dp, 0, MAX);
311
+ k = mathceil(dp / LOG_BASE);
312
+ if (CRYPTO) {
313
+ if (crypto.getRandomValues) {
314
+ a = crypto.getRandomValues(new Uint32Array(k *= 2));
315
+ for (;i < k; ) {
316
+ v = a[i] * 131072 + (a[i + 1] >>> 11);
317
+ if (v >= 9000000000000000) {
318
+ b = crypto.getRandomValues(new Uint32Array(2));
319
+ a[i] = b[0];
320
+ a[i + 1] = b[1];
321
+ } else {
322
+ c.push(v % 100000000000000);
323
+ i += 2;
324
+ }
325
+ }
326
+ i = k / 2;
327
+ } else if (crypto.randomBytes) {
328
+ a = crypto.randomBytes(k *= 7);
329
+ for (;i < k; ) {
330
+ v = (a[i] & 31) * 281474976710656 + a[i + 1] * 1099511627776 + a[i + 2] * 4294967296 + a[i + 3] * 16777216 + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];
331
+ if (v >= 9000000000000000) {
332
+ crypto.randomBytes(7).copy(a, i);
333
+ } else {
334
+ c.push(v % 100000000000000);
335
+ i += 7;
336
+ }
337
+ }
338
+ i = k / 7;
339
+ } else {
340
+ CRYPTO = false;
341
+ throw Error(bignumberError + "crypto unavailable");
342
+ }
343
+ }
344
+ if (!CRYPTO) {
345
+ for (;i < k; ) {
346
+ v = random53bitInt();
347
+ if (v < 9000000000000000)
348
+ c[i++] = v % 100000000000000;
349
+ }
350
+ }
351
+ k = c[--i];
352
+ dp %= LOG_BASE;
353
+ if (k && dp) {
354
+ v = POWS_TEN[LOG_BASE - dp];
355
+ c[i] = mathfloor(k / v) * v;
356
+ }
357
+ for (;c[i] === 0; c.pop(), i--)
358
+ ;
359
+ if (i < 0) {
360
+ c = [e = 0];
361
+ } else {
362
+ for (e = -1;c[0] === 0; c.splice(0, 1), e -= LOG_BASE)
363
+ ;
364
+ for (i = 1, v = c[0];v >= 10; v /= 10, i++)
365
+ ;
366
+ if (i < LOG_BASE)
367
+ e -= LOG_BASE - i;
368
+ }
369
+ rand.e = e;
370
+ rand.c = c;
371
+ return rand;
372
+ };
373
+ }();
374
+ BigNumber2.sum = function() {
375
+ var i = 1, args = arguments, sum = new BigNumber2(args[0]);
376
+ for (;i < args.length; )
377
+ sum = sum.plus(args[i++]);
378
+ return sum;
379
+ };
380
+ convertBase = function() {
381
+ var decimal = "0123456789";
382
+ function toBaseOut(str, baseIn, baseOut, alphabet) {
383
+ var j, arr = [0], arrL, i = 0, len = str.length;
384
+ for (;i < len; ) {
385
+ for (arrL = arr.length;arrL--; arr[arrL] *= baseIn)
386
+ ;
387
+ arr[0] += alphabet.indexOf(str.charAt(i++));
388
+ for (j = 0;j < arr.length; j++) {
389
+ if (arr[j] > baseOut - 1) {
390
+ if (arr[j + 1] == null)
391
+ arr[j + 1] = 0;
392
+ arr[j + 1] += arr[j] / baseOut | 0;
393
+ arr[j] %= baseOut;
394
+ }
395
+ }
396
+ }
397
+ return arr.reverse();
398
+ }
399
+ return function(str, baseIn, baseOut, sign, callerIsToString) {
400
+ var alphabet, d, e, k, r, x, xc, y, i = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
401
+ if (i >= 0) {
402
+ k = POW_PRECISION;
403
+ POW_PRECISION = 0;
404
+ str = str.replace(".", "");
405
+ y = new BigNumber2(baseIn);
406
+ x = y.pow(str.length - i);
407
+ POW_PRECISION = k;
408
+ y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, "0"), 10, baseOut, decimal);
409
+ y.e = y.c.length;
410
+ }
411
+ xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet = ALPHABET, decimal) : (alphabet = decimal, ALPHABET));
412
+ e = k = xc.length;
413
+ for (;xc[--k] == 0; xc.pop())
414
+ ;
415
+ if (!xc[0])
416
+ return alphabet.charAt(0);
417
+ if (i < 0) {
418
+ --e;
419
+ } else {
420
+ x.c = xc;
421
+ x.e = e;
422
+ x.s = sign;
423
+ x = div(x, y, dp, rm, baseOut);
424
+ xc = x.c;
425
+ r = x.r;
426
+ e = x.e;
427
+ }
428
+ d = e + dp + 1;
429
+ i = xc[d];
430
+ k = baseOut / 2;
431
+ r = r || d < 0 || xc[d + 1] != null;
432
+ r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : i > k || i == k && (rm == 4 || r || rm == 6 && xc[d - 1] & 1 || rm == (x.s < 0 ? 8 : 7));
433
+ if (d < 1 || !xc[0]) {
434
+ str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0);
435
+ } else {
436
+ xc.length = d;
437
+ if (r) {
438
+ for (--baseOut;++xc[--d] > baseOut; ) {
439
+ xc[d] = 0;
440
+ if (!d) {
441
+ ++e;
442
+ xc = [1].concat(xc);
443
+ }
444
+ }
445
+ }
446
+ for (k = xc.length;!xc[--k]; )
447
+ ;
448
+ for (i = 0, str = "";i <= k; str += alphabet.charAt(xc[i++]))
449
+ ;
450
+ str = toFixedPoint(str, e, alphabet.charAt(0));
451
+ }
452
+ return str;
453
+ };
454
+ }();
455
+ div = function() {
456
+ function multiply(x, k, base) {
457
+ var m, temp, xlo, xhi, carry = 0, i = x.length, klo = k % SQRT_BASE, khi = k / SQRT_BASE | 0;
458
+ for (x = x.slice();i--; ) {
459
+ xlo = x[i] % SQRT_BASE;
460
+ xhi = x[i] / SQRT_BASE | 0;
461
+ m = khi * xlo + xhi * klo;
462
+ temp = klo * xlo + m % SQRT_BASE * SQRT_BASE + carry;
463
+ carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;
464
+ x[i] = temp % base;
465
+ }
466
+ if (carry)
467
+ x = [carry].concat(x);
468
+ return x;
469
+ }
470
+ function compare2(a, b, aL, bL) {
471
+ var i, cmp;
472
+ if (aL != bL) {
473
+ cmp = aL > bL ? 1 : -1;
474
+ } else {
475
+ for (i = cmp = 0;i < aL; i++) {
476
+ if (a[i] != b[i]) {
477
+ cmp = a[i] > b[i] ? 1 : -1;
478
+ break;
479
+ }
480
+ }
481
+ }
482
+ return cmp;
483
+ }
484
+ function subtract(a, b, aL, base) {
485
+ var i = 0;
486
+ for (;aL--; ) {
487
+ a[aL] -= i;
488
+ i = a[aL] < b[aL] ? 1 : 0;
489
+ a[aL] = i * base + a[aL] - b[aL];
490
+ }
491
+ for (;!a[0] && a.length > 1; a.splice(0, 1))
492
+ ;
493
+ }
494
+ return function(x, y, dp, rm, base) {
495
+ var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, yL, yz, s = x.s == y.s ? 1 : -1, xc = x.c, yc = y.c;
496
+ if (!xc || !xc[0] || !yc || !yc[0]) {
497
+ return new BigNumber2(!x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : xc && xc[0] == 0 || !yc ? s * 0 : s / 0);
498
+ }
499
+ q = new BigNumber2(s);
500
+ qc = q.c = [];
501
+ e = x.e - y.e;
502
+ s = dp + e + 1;
503
+ if (!base) {
504
+ base = BASE;
505
+ e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);
506
+ s = s / LOG_BASE | 0;
507
+ }
508
+ for (i = 0;yc[i] == (xc[i] || 0); i++)
509
+ ;
510
+ if (yc[i] > (xc[i] || 0))
511
+ e--;
512
+ if (s < 0) {
513
+ qc.push(1);
514
+ more = true;
515
+ } else {
516
+ xL = xc.length;
517
+ yL = yc.length;
518
+ i = 0;
519
+ s += 2;
520
+ n = mathfloor(base / (yc[0] + 1));
521
+ if (n > 1) {
522
+ yc = multiply(yc, n, base);
523
+ xc = multiply(xc, n, base);
524
+ yL = yc.length;
525
+ xL = xc.length;
526
+ }
527
+ xi = yL;
528
+ rem = xc.slice(0, yL);
529
+ remL = rem.length;
530
+ for (;remL < yL; rem[remL++] = 0)
531
+ ;
532
+ yz = yc.slice();
533
+ yz = [0].concat(yz);
534
+ yc0 = yc[0];
535
+ if (yc[1] >= base / 2)
536
+ yc0++;
537
+ do {
538
+ n = 0;
539
+ cmp = compare2(yc, rem, yL, remL);
540
+ if (cmp < 0) {
541
+ rem0 = rem[0];
542
+ if (yL != remL)
543
+ rem0 = rem0 * base + (rem[1] || 0);
544
+ n = mathfloor(rem0 / yc0);
545
+ if (n > 1) {
546
+ if (n >= base)
547
+ n = base - 1;
548
+ prod = multiply(yc, n, base);
549
+ prodL = prod.length;
550
+ remL = rem.length;
551
+ while (compare2(prod, rem, prodL, remL) == 1) {
552
+ n--;
553
+ subtract(prod, yL < prodL ? yz : yc, prodL, base);
554
+ prodL = prod.length;
555
+ cmp = 1;
556
+ }
557
+ } else {
558
+ if (n == 0) {
559
+ cmp = n = 1;
560
+ }
561
+ prod = yc.slice();
562
+ prodL = prod.length;
563
+ }
564
+ if (prodL < remL)
565
+ prod = [0].concat(prod);
566
+ subtract(rem, prod, remL, base);
567
+ remL = rem.length;
568
+ if (cmp == -1) {
569
+ while (compare2(yc, rem, yL, remL) < 1) {
570
+ n++;
571
+ subtract(rem, yL < remL ? yz : yc, remL, base);
572
+ remL = rem.length;
573
+ }
574
+ }
575
+ } else if (cmp === 0) {
576
+ n++;
577
+ rem = [0];
578
+ }
579
+ qc[i++] = n;
580
+ if (rem[0]) {
581
+ rem[remL++] = xc[xi] || 0;
582
+ } else {
583
+ rem = [xc[xi]];
584
+ remL = 1;
585
+ }
586
+ } while ((xi++ < xL || rem[0] != null) && s--);
587
+ more = rem[0] != null;
588
+ if (!qc[0])
589
+ qc.splice(0, 1);
590
+ }
591
+ if (base == BASE) {
592
+ for (i = 1, s = qc[0];s >= 10; s /= 10, i++)
593
+ ;
594
+ round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);
595
+ } else {
596
+ q.e = e;
597
+ q.r = +more;
598
+ }
599
+ return q;
600
+ };
601
+ }();
602
+ function format(n, i, rm, id) {
603
+ var c0, e, ne, len, str;
604
+ if (rm == null)
605
+ rm = ROUNDING_MODE;
606
+ else
607
+ intCheck(rm, 0, 8);
608
+ if (!n.c)
609
+ return n.toString();
610
+ c0 = n.c[0];
611
+ ne = n.e;
612
+ if (i == null) {
613
+ str = coeffToString(n.c);
614
+ str = id == 1 || id == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) ? toExponential(str, ne) : toFixedPoint(str, ne, "0");
615
+ } else {
616
+ n = round(new BigNumber2(n), i, rm);
617
+ e = n.e;
618
+ str = coeffToString(n.c);
619
+ len = str.length;
620
+ if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {
621
+ for (;len < i; str += "0", len++)
622
+ ;
623
+ str = toExponential(str, e);
624
+ } else {
625
+ i -= ne + (id === 2 && e > ne);
626
+ str = toFixedPoint(str, e, "0");
627
+ if (e + 1 > len) {
628
+ if (--i > 0)
629
+ for (str += ".";i--; str += "0")
630
+ ;
631
+ } else {
632
+ i += e - len;
633
+ if (i > 0) {
634
+ if (e + 1 == len)
635
+ str += ".";
636
+ for (;i--; str += "0")
637
+ ;
638
+ }
639
+ }
640
+ }
641
+ }
642
+ return n.s < 0 && c0 ? "-" + str : str;
643
+ }
644
+ function maxOrMin(args, n) {
645
+ var k, y, i = 1, x = new BigNumber2(args[0]);
646
+ for (;i < args.length; i++) {
647
+ y = new BigNumber2(args[i]);
648
+ if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) {
649
+ x = y;
650
+ }
651
+ }
652
+ return x;
653
+ }
654
+ function normalise(n, c, e) {
655
+ var i = 1, j = c.length;
656
+ for (;!c[--j]; c.pop())
657
+ ;
658
+ for (j = c[0];j >= 10; j /= 10, i++)
659
+ ;
660
+ if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {
661
+ n.c = n.e = null;
662
+ } else if (e < MIN_EXP) {
663
+ n.c = [n.e = 0];
664
+ } else {
665
+ n.e = e;
666
+ n.c = c;
667
+ }
668
+ return n;
669
+ }
670
+ parseNumeric = function() {
671
+ var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
672
+ return function(x, str, isNum, b) {
673
+ var base, s = isNum ? str : str.replace(whitespaceOrPlus, "");
674
+ if (isInfinityOrNaN.test(s)) {
675
+ x.s = isNaN(s) ? null : s < 0 ? -1 : 1;
676
+ } else {
677
+ if (!isNum) {
678
+ s = s.replace(basePrefix, function(m, p1, p2) {
679
+ base = (p2 = p2.toLowerCase()) == "x" ? 16 : p2 == "b" ? 2 : 8;
680
+ return !b || b == base ? p1 : m;
681
+ });
682
+ if (b) {
683
+ base = b;
684
+ s = s.replace(dotAfter, "$1").replace(dotBefore, "0.$1");
685
+ }
686
+ if (str != s)
687
+ return new BigNumber2(s, base);
688
+ }
689
+ if (BigNumber2.DEBUG) {
690
+ throw Error(bignumberError + "Not a" + (b ? " base " + b : "") + " number: " + str);
691
+ }
692
+ x.s = null;
693
+ }
694
+ x.c = x.e = null;
695
+ };
696
+ }();
697
+ function round(x, sd, rm, r) {
698
+ var d, i, j, k, n, ni, rd, xc = x.c, pows10 = POWS_TEN;
699
+ if (xc) {
700
+ out: {
701
+ for (d = 1, k = xc[0];k >= 10; k /= 10, d++)
702
+ ;
703
+ i = sd - d;
704
+ if (i < 0) {
705
+ i += LOG_BASE;
706
+ j = sd;
707
+ n = xc[ni = 0];
708
+ rd = mathfloor(n / pows10[d - j - 1] % 10);
709
+ } else {
710
+ ni = mathceil((i + 1) / LOG_BASE);
711
+ if (ni >= xc.length) {
712
+ if (r) {
713
+ for (;xc.length <= ni; xc.push(0))
714
+ ;
715
+ n = rd = 0;
716
+ d = 1;
717
+ i %= LOG_BASE;
718
+ j = i - LOG_BASE + 1;
719
+ } else {
720
+ break out;
721
+ }
722
+ } else {
723
+ n = k = xc[ni];
724
+ for (d = 1;k >= 10; k /= 10, d++)
725
+ ;
726
+ i %= LOG_BASE;
727
+ j = i - LOG_BASE + d;
728
+ rd = j < 0 ? 0 : mathfloor(n / pows10[d - j - 1] % 10);
729
+ }
730
+ }
731
+ r = r || sd < 0 || xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);
732
+ r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && (i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7));
733
+ if (sd < 1 || !xc[0]) {
734
+ xc.length = 0;
735
+ if (r) {
736
+ sd -= x.e + 1;
737
+ xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];
738
+ x.e = -sd || 0;
739
+ } else {
740
+ xc[0] = x.e = 0;
741
+ }
742
+ return x;
743
+ }
744
+ if (i == 0) {
745
+ xc.length = ni;
746
+ k = 1;
747
+ ni--;
748
+ } else {
749
+ xc.length = ni + 1;
750
+ k = pows10[LOG_BASE - i];
751
+ xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;
752
+ }
753
+ if (r) {
754
+ for (;; ) {
755
+ if (ni == 0) {
756
+ for (i = 1, j = xc[0];j >= 10; j /= 10, i++)
757
+ ;
758
+ j = xc[0] += k;
759
+ for (k = 1;j >= 10; j /= 10, k++)
760
+ ;
761
+ if (i != k) {
762
+ x.e++;
763
+ if (xc[0] == BASE)
764
+ xc[0] = 1;
765
+ }
766
+ break;
767
+ } else {
768
+ xc[ni] += k;
769
+ if (xc[ni] != BASE)
770
+ break;
771
+ xc[ni--] = 0;
772
+ k = 1;
773
+ }
774
+ }
775
+ }
776
+ for (i = xc.length;xc[--i] === 0; xc.pop())
777
+ ;
778
+ }
779
+ if (x.e > MAX_EXP) {
780
+ x.c = x.e = null;
781
+ } else if (x.e < MIN_EXP) {
782
+ x.c = [x.e = 0];
783
+ }
784
+ }
785
+ return x;
786
+ }
787
+ function valueOf(n) {
788
+ var str, e = n.e;
789
+ if (e === null)
790
+ return n.toString();
791
+ str = coeffToString(n.c);
792
+ str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(str, e) : toFixedPoint(str, e, "0");
793
+ return n.s < 0 ? "-" + str : str;
794
+ }
795
+ P.absoluteValue = P.abs = function() {
796
+ var x = new BigNumber2(this);
797
+ if (x.s < 0)
798
+ x.s = 1;
799
+ return x;
800
+ };
801
+ P.comparedTo = function(y, b) {
802
+ return compare(this, new BigNumber2(y, b));
803
+ };
804
+ P.decimalPlaces = P.dp = function(dp, rm) {
805
+ var c, n, v, x = this;
806
+ if (dp != null) {
807
+ intCheck(dp, 0, MAX);
808
+ if (rm == null)
809
+ rm = ROUNDING_MODE;
810
+ else
811
+ intCheck(rm, 0, 8);
812
+ return round(new BigNumber2(x), dp + x.e + 1, rm);
813
+ }
814
+ if (!(c = x.c))
815
+ return null;
816
+ n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;
817
+ if (v = c[v])
818
+ for (;v % 10 == 0; v /= 10, n--)
819
+ ;
820
+ if (n < 0)
821
+ n = 0;
822
+ return n;
823
+ };
824
+ P.dividedBy = P.div = function(y, b) {
825
+ return div(this, new BigNumber2(y, b), DECIMAL_PLACES, ROUNDING_MODE);
826
+ };
827
+ P.dividedToIntegerBy = P.idiv = function(y, b) {
828
+ return div(this, new BigNumber2(y, b), 0, 1);
829
+ };
830
+ P.exponentiatedBy = P.pow = function(n, m) {
831
+ var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y, x = this;
832
+ n = new BigNumber2(n);
833
+ if (n.c && !n.isInteger()) {
834
+ throw Error(bignumberError + "Exponent not an integer: " + valueOf(n));
835
+ }
836
+ if (m != null)
837
+ m = new BigNumber2(m);
838
+ nIsBig = n.e > 14;
839
+ if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {
840
+ y = new BigNumber2(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n)));
841
+ return m ? y.mod(m) : y;
842
+ }
843
+ nIsNeg = n.s < 0;
844
+ if (m) {
845
+ if (m.c ? !m.c[0] : !m.s)
846
+ return new BigNumber2(NaN);
847
+ isModExp = !nIsNeg && x.isInteger() && m.isInteger();
848
+ if (isModExp)
849
+ x = x.mod(m);
850
+ } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 ? x.c[0] > 1 || nIsBig && x.c[1] >= 240000000 : x.c[0] < 80000000000000 || nIsBig && x.c[0] <= 99999750000000))) {
851
+ k = x.s < 0 && isOdd(n) ? -0 : 0;
852
+ if (x.e > -1)
853
+ k = 1 / k;
854
+ return new BigNumber2(nIsNeg ? 1 / k : k);
855
+ } else if (POW_PRECISION) {
856
+ k = mathceil(POW_PRECISION / LOG_BASE + 2);
857
+ }
858
+ if (nIsBig) {
859
+ half = new BigNumber2(0.5);
860
+ if (nIsNeg)
861
+ n.s = 1;
862
+ nIsOdd = isOdd(n);
863
+ } else {
864
+ i = Math.abs(+valueOf(n));
865
+ nIsOdd = i % 2;
866
+ }
867
+ y = new BigNumber2(ONE);
868
+ for (;; ) {
869
+ if (nIsOdd) {
870
+ y = y.times(x);
871
+ if (!y.c)
872
+ break;
873
+ if (k) {
874
+ if (y.c.length > k)
875
+ y.c.length = k;
876
+ } else if (isModExp) {
877
+ y = y.mod(m);
878
+ }
879
+ }
880
+ if (i) {
881
+ i = mathfloor(i / 2);
882
+ if (i === 0)
883
+ break;
884
+ nIsOdd = i % 2;
885
+ } else {
886
+ n = n.times(half);
887
+ round(n, n.e + 1, 1);
888
+ if (n.e > 14) {
889
+ nIsOdd = isOdd(n);
890
+ } else {
891
+ i = +valueOf(n);
892
+ if (i === 0)
893
+ break;
894
+ nIsOdd = i % 2;
895
+ }
896
+ }
897
+ x = x.times(x);
898
+ if (k) {
899
+ if (x.c && x.c.length > k)
900
+ x.c.length = k;
901
+ } else if (isModExp) {
902
+ x = x.mod(m);
903
+ }
904
+ }
905
+ if (isModExp)
906
+ return y;
907
+ if (nIsNeg)
908
+ y = ONE.div(y);
909
+ return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;
910
+ };
911
+ P.integerValue = function(rm) {
912
+ var n = new BigNumber2(this);
913
+ if (rm == null)
914
+ rm = ROUNDING_MODE;
915
+ else
916
+ intCheck(rm, 0, 8);
917
+ return round(n, n.e + 1, rm);
918
+ };
919
+ P.isEqualTo = P.eq = function(y, b) {
920
+ return compare(this, new BigNumber2(y, b)) === 0;
921
+ };
922
+ P.isFinite = function() {
923
+ return !!this.c;
924
+ };
925
+ P.isGreaterThan = P.gt = function(y, b) {
926
+ return compare(this, new BigNumber2(y, b)) > 0;
927
+ };
928
+ P.isGreaterThanOrEqualTo = P.gte = function(y, b) {
929
+ return (b = compare(this, new BigNumber2(y, b))) === 1 || b === 0;
930
+ };
931
+ P.isInteger = function() {
932
+ return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;
933
+ };
934
+ P.isLessThan = P.lt = function(y, b) {
935
+ return compare(this, new BigNumber2(y, b)) < 0;
936
+ };
937
+ P.isLessThanOrEqualTo = P.lte = function(y, b) {
938
+ return (b = compare(this, new BigNumber2(y, b))) === -1 || b === 0;
939
+ };
940
+ P.isNaN = function() {
941
+ return !this.s;
942
+ };
943
+ P.isNegative = function() {
944
+ return this.s < 0;
945
+ };
946
+ P.isPositive = function() {
947
+ return this.s > 0;
948
+ };
949
+ P.isZero = function() {
950
+ return !!this.c && this.c[0] == 0;
951
+ };
952
+ P.minus = function(y, b) {
953
+ var i, j, t, xLTy, x = this, a = x.s;
954
+ y = new BigNumber2(y, b);
955
+ b = y.s;
956
+ if (!a || !b)
957
+ return new BigNumber2(NaN);
958
+ if (a != b) {
959
+ y.s = -b;
960
+ return x.plus(y);
961
+ }
962
+ var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc = x.c, yc = y.c;
963
+ if (!xe || !ye) {
964
+ if (!xc || !yc)
965
+ return xc ? (y.s = -b, y) : new BigNumber2(yc ? x : NaN);
966
+ if (!xc[0] || !yc[0]) {
967
+ return yc[0] ? (y.s = -b, y) : new BigNumber2(xc[0] ? x : ROUNDING_MODE == 3 ? -0 : 0);
968
+ }
969
+ }
970
+ xe = bitFloor(xe);
971
+ ye = bitFloor(ye);
972
+ xc = xc.slice();
973
+ if (a = xe - ye) {
974
+ if (xLTy = a < 0) {
975
+ a = -a;
976
+ t = xc;
977
+ } else {
978
+ ye = xe;
979
+ t = yc;
980
+ }
981
+ t.reverse();
982
+ for (b = a;b--; t.push(0))
983
+ ;
984
+ t.reverse();
985
+ } else {
986
+ j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;
987
+ for (a = b = 0;b < j; b++) {
988
+ if (xc[b] != yc[b]) {
989
+ xLTy = xc[b] < yc[b];
990
+ break;
991
+ }
992
+ }
993
+ }
994
+ if (xLTy) {
995
+ t = xc;
996
+ xc = yc;
997
+ yc = t;
998
+ y.s = -y.s;
999
+ }
1000
+ b = (j = yc.length) - (i = xc.length);
1001
+ if (b > 0)
1002
+ for (;b--; xc[i++] = 0)
1003
+ ;
1004
+ b = BASE - 1;
1005
+ for (;j > a; ) {
1006
+ if (xc[--j] < yc[j]) {
1007
+ for (i = j;i && !xc[--i]; xc[i] = b)
1008
+ ;
1009
+ --xc[i];
1010
+ xc[j] += BASE;
1011
+ }
1012
+ xc[j] -= yc[j];
1013
+ }
1014
+ for (;xc[0] == 0; xc.splice(0, 1), --ye)
1015
+ ;
1016
+ if (!xc[0]) {
1017
+ y.s = ROUNDING_MODE == 3 ? -1 : 1;
1018
+ y.c = [y.e = 0];
1019
+ return y;
1020
+ }
1021
+ return normalise(y, xc, ye);
1022
+ };
1023
+ P.modulo = P.mod = function(y, b) {
1024
+ var q, s, x = this;
1025
+ y = new BigNumber2(y, b);
1026
+ if (!x.c || !y.s || y.c && !y.c[0]) {
1027
+ return new BigNumber2(NaN);
1028
+ } else if (!y.c || x.c && !x.c[0]) {
1029
+ return new BigNumber2(x);
1030
+ }
1031
+ if (MODULO_MODE == 9) {
1032
+ s = y.s;
1033
+ y.s = 1;
1034
+ q = div(x, y, 0, 3);
1035
+ y.s = s;
1036
+ q.s *= s;
1037
+ } else {
1038
+ q = div(x, y, 0, MODULO_MODE);
1039
+ }
1040
+ y = x.minus(q.times(y));
1041
+ if (!y.c[0] && MODULO_MODE == 1)
1042
+ y.s = x.s;
1043
+ return y;
1044
+ };
1045
+ P.multipliedBy = P.times = function(y, b) {
1046
+ var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, base, sqrtBase, x = this, xc = x.c, yc = (y = new BigNumber2(y, b)).c;
1047
+ if (!xc || !yc || !xc[0] || !yc[0]) {
1048
+ if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {
1049
+ y.c = y.e = y.s = null;
1050
+ } else {
1051
+ y.s *= x.s;
1052
+ if (!xc || !yc) {
1053
+ y.c = y.e = null;
1054
+ } else {
1055
+ y.c = [0];
1056
+ y.e = 0;
1057
+ }
1058
+ }
1059
+ return y;
1060
+ }
1061
+ e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);
1062
+ y.s *= x.s;
1063
+ xcL = xc.length;
1064
+ ycL = yc.length;
1065
+ if (xcL < ycL) {
1066
+ zc = xc;
1067
+ xc = yc;
1068
+ yc = zc;
1069
+ i = xcL;
1070
+ xcL = ycL;
1071
+ ycL = i;
1072
+ }
1073
+ for (i = xcL + ycL, zc = [];i--; zc.push(0))
1074
+ ;
1075
+ base = BASE;
1076
+ sqrtBase = SQRT_BASE;
1077
+ for (i = ycL;--i >= 0; ) {
1078
+ c = 0;
1079
+ ylo = yc[i] % sqrtBase;
1080
+ yhi = yc[i] / sqrtBase | 0;
1081
+ for (k = xcL, j = i + k;j > i; ) {
1082
+ xlo = xc[--k] % sqrtBase;
1083
+ xhi = xc[k] / sqrtBase | 0;
1084
+ m = yhi * xlo + xhi * ylo;
1085
+ xlo = ylo * xlo + m % sqrtBase * sqrtBase + zc[j] + c;
1086
+ c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;
1087
+ zc[j--] = xlo % base;
1088
+ }
1089
+ zc[j] = c;
1090
+ }
1091
+ if (c) {
1092
+ ++e;
1093
+ } else {
1094
+ zc.splice(0, 1);
1095
+ }
1096
+ return normalise(y, zc, e);
1097
+ };
1098
+ P.negated = function() {
1099
+ var x = new BigNumber2(this);
1100
+ x.s = -x.s || null;
1101
+ return x;
1102
+ };
1103
+ P.plus = function(y, b) {
1104
+ var t, x = this, a = x.s;
1105
+ y = new BigNumber2(y, b);
1106
+ b = y.s;
1107
+ if (!a || !b)
1108
+ return new BigNumber2(NaN);
1109
+ if (a != b) {
1110
+ y.s = -b;
1111
+ return x.minus(y);
1112
+ }
1113
+ var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc = x.c, yc = y.c;
1114
+ if (!xe || !ye) {
1115
+ if (!xc || !yc)
1116
+ return new BigNumber2(a / 0);
1117
+ if (!xc[0] || !yc[0])
1118
+ return yc[0] ? y : new BigNumber2(xc[0] ? x : a * 0);
1119
+ }
1120
+ xe = bitFloor(xe);
1121
+ ye = bitFloor(ye);
1122
+ xc = xc.slice();
1123
+ if (a = xe - ye) {
1124
+ if (a > 0) {
1125
+ ye = xe;
1126
+ t = yc;
1127
+ } else {
1128
+ a = -a;
1129
+ t = xc;
1130
+ }
1131
+ t.reverse();
1132
+ for (;a--; t.push(0))
1133
+ ;
1134
+ t.reverse();
1135
+ }
1136
+ a = xc.length;
1137
+ b = yc.length;
1138
+ if (a - b < 0) {
1139
+ t = yc;
1140
+ yc = xc;
1141
+ xc = t;
1142
+ b = a;
1143
+ }
1144
+ for (a = 0;b; ) {
1145
+ a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
1146
+ xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
1147
+ }
1148
+ if (a) {
1149
+ xc = [a].concat(xc);
1150
+ ++ye;
1151
+ }
1152
+ return normalise(y, xc, ye);
1153
+ };
1154
+ P.precision = P.sd = function(sd, rm) {
1155
+ var c, n, v, x = this;
1156
+ if (sd != null && sd !== !!sd) {
1157
+ intCheck(sd, 1, MAX);
1158
+ if (rm == null)
1159
+ rm = ROUNDING_MODE;
1160
+ else
1161
+ intCheck(rm, 0, 8);
1162
+ return round(new BigNumber2(x), sd, rm);
1163
+ }
1164
+ if (!(c = x.c))
1165
+ return null;
1166
+ v = c.length - 1;
1167
+ n = v * LOG_BASE + 1;
1168
+ if (v = c[v]) {
1169
+ for (;v % 10 == 0; v /= 10, n--)
1170
+ ;
1171
+ for (v = c[0];v >= 10; v /= 10, n++)
1172
+ ;
1173
+ }
1174
+ if (sd && x.e + 1 > n)
1175
+ n = x.e + 1;
1176
+ return n;
1177
+ };
1178
+ P.shiftedBy = function(k) {
1179
+ intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
1180
+ return this.times("1e" + k);
1181
+ };
1182
+ P.squareRoot = P.sqrt = function() {
1183
+ var m, n, r, rep, t, x = this, c = x.c, s = x.s, e = x.e, dp = DECIMAL_PLACES + 4, half = new BigNumber2("0.5");
1184
+ if (s !== 1 || !c || !c[0]) {
1185
+ return new BigNumber2(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);
1186
+ }
1187
+ s = Math.sqrt(+valueOf(x));
1188
+ if (s == 0 || s == 1 / 0) {
1189
+ n = coeffToString(c);
1190
+ if ((n.length + e) % 2 == 0)
1191
+ n += "0";
1192
+ s = Math.sqrt(+n);
1193
+ e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);
1194
+ if (s == 1 / 0) {
1195
+ n = "5e" + e;
1196
+ } else {
1197
+ n = s.toExponential();
1198
+ n = n.slice(0, n.indexOf("e") + 1) + e;
1199
+ }
1200
+ r = new BigNumber2(n);
1201
+ } else {
1202
+ r = new BigNumber2(s + "");
1203
+ }
1204
+ if (r.c[0]) {
1205
+ e = r.e;
1206
+ s = e + dp;
1207
+ if (s < 3)
1208
+ s = 0;
1209
+ for (;; ) {
1210
+ t = r;
1211
+ r = half.times(t.plus(div(x, t, dp, 1)));
1212
+ if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) {
1213
+ if (r.e < e)
1214
+ --s;
1215
+ n = n.slice(s - 3, s + 1);
1216
+ if (n == "9999" || !rep && n == "4999") {
1217
+ if (!rep) {
1218
+ round(t, t.e + DECIMAL_PLACES + 2, 0);
1219
+ if (t.times(t).eq(x)) {
1220
+ r = t;
1221
+ break;
1222
+ }
1223
+ }
1224
+ dp += 4;
1225
+ s += 4;
1226
+ rep = 1;
1227
+ } else {
1228
+ if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
1229
+ round(r, r.e + DECIMAL_PLACES + 2, 1);
1230
+ m = !r.times(r).eq(x);
1231
+ }
1232
+ break;
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);
1238
+ };
1239
+ P.toExponential = function(dp, rm) {
1240
+ if (dp != null) {
1241
+ intCheck(dp, 0, MAX);
1242
+ dp++;
1243
+ }
1244
+ return format(this, dp, rm, 1);
1245
+ };
1246
+ P.toFixed = function(dp, rm) {
1247
+ if (dp != null) {
1248
+ intCheck(dp, 0, MAX);
1249
+ dp = dp + this.e + 1;
1250
+ }
1251
+ return format(this, dp, rm);
1252
+ };
1253
+ P.toFormat = function(dp, rm, format2) {
1254
+ var str, x = this;
1255
+ if (format2 == null) {
1256
+ if (dp != null && rm && typeof rm == "object") {
1257
+ format2 = rm;
1258
+ rm = null;
1259
+ } else if (dp && typeof dp == "object") {
1260
+ format2 = dp;
1261
+ dp = rm = null;
1262
+ } else {
1263
+ format2 = FORMAT;
1264
+ }
1265
+ } else if (typeof format2 != "object") {
1266
+ throw Error(bignumberError + "Argument not an object: " + format2);
1267
+ }
1268
+ str = x.toFixed(dp, rm);
1269
+ if (x.c) {
1270
+ var i, arr = str.split("."), g1 = +format2.groupSize, g2 = +format2.secondaryGroupSize, groupSeparator = format2.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
1271
+ if (g2) {
1272
+ i = g1;
1273
+ g1 = g2;
1274
+ g2 = i;
1275
+ len -= i;
1276
+ }
1277
+ if (g1 > 0 && len > 0) {
1278
+ i = len % g1 || g1;
1279
+ intPart = intDigits.substr(0, i);
1280
+ for (;i < len; i += g1)
1281
+ intPart += groupSeparator + intDigits.substr(i, g1);
1282
+ if (g2 > 0)
1283
+ intPart += groupSeparator + intDigits.slice(i);
1284
+ if (isNeg)
1285
+ intPart = "-" + intPart;
1286
+ }
1287
+ str = fractionPart ? intPart + (format2.decimalSeparator || "") + ((g2 = +format2.fractionGroupSize) ? fractionPart.replace(new RegExp("\\d{" + g2 + "}\\B", "g"), "$&" + (format2.fractionGroupSeparator || "")) : fractionPart) : intPart;
1288
+ }
1289
+ return (format2.prefix || "") + str + (format2.suffix || "");
1290
+ };
1291
+ P.toFraction = function(md) {
1292
+ var d, d0, d1, d2, e, exp, n, n0, n1, q, r, s, x = this, xc = x.c;
1293
+ if (md != null) {
1294
+ n = new BigNumber2(md);
1295
+ if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {
1296
+ throw Error(bignumberError + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n));
1297
+ }
1298
+ }
1299
+ if (!xc)
1300
+ return new BigNumber2(x);
1301
+ d = new BigNumber2(ONE);
1302
+ n1 = d0 = new BigNumber2(ONE);
1303
+ d1 = n0 = new BigNumber2(ONE);
1304
+ s = coeffToString(xc);
1305
+ e = d.e = s.length - x.e - 1;
1306
+ d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];
1307
+ md = !md || n.comparedTo(d) > 0 ? e > 0 ? d : n1 : n;
1308
+ exp = MAX_EXP;
1309
+ MAX_EXP = 1 / 0;
1310
+ n = new BigNumber2(s);
1311
+ n0.c[0] = 0;
1312
+ for (;; ) {
1313
+ q = div(n, d, 0, 1);
1314
+ d2 = d0.plus(q.times(d1));
1315
+ if (d2.comparedTo(md) == 1)
1316
+ break;
1317
+ d0 = d1;
1318
+ d1 = d2;
1319
+ n1 = n0.plus(q.times(d2 = n1));
1320
+ n0 = d2;
1321
+ d = n.minus(q.times(d2 = d));
1322
+ n = d2;
1323
+ }
1324
+ d2 = div(md.minus(d0), d1, 0, 1);
1325
+ n0 = n0.plus(d2.times(n1));
1326
+ d0 = d0.plus(d2.times(d1));
1327
+ n0.s = n1.s = x.s;
1328
+ e = e * 2;
1329
+ r = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0];
1330
+ MAX_EXP = exp;
1331
+ return r;
1332
+ };
1333
+ P.toNumber = function() {
1334
+ return +valueOf(this);
1335
+ };
1336
+ P.toPrecision = function(sd, rm) {
1337
+ if (sd != null)
1338
+ intCheck(sd, 1, MAX);
1339
+ return format(this, sd, rm, 2);
1340
+ };
1341
+ P.toString = function(b) {
1342
+ var str, n = this, s = n.s, e = n.e;
1343
+ if (e === null) {
1344
+ if (s) {
1345
+ str = "Infinity";
1346
+ if (s < 0)
1347
+ str = "-" + str;
1348
+ } else {
1349
+ str = "NaN";
1350
+ }
1351
+ } else {
1352
+ if (b == null) {
1353
+ str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(coeffToString(n.c), e) : toFixedPoint(coeffToString(n.c), e, "0");
1354
+ } else if (b === 10 && alphabetHasNormalDecimalDigits) {
1355
+ n = round(new BigNumber2(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE);
1356
+ str = toFixedPoint(coeffToString(n.c), n.e, "0");
1357
+ } else {
1358
+ intCheck(b, 2, ALPHABET.length, "Base");
1359
+ str = convertBase(toFixedPoint(coeffToString(n.c), e, "0"), 10, b, s, true);
1360
+ }
1361
+ if (s < 0 && n.c[0])
1362
+ str = "-" + str;
1363
+ }
1364
+ return str;
1365
+ };
1366
+ P.valueOf = P.toJSON = function() {
1367
+ return valueOf(this);
1368
+ };
1369
+ P._isBigNumber = true;
1370
+ if (configObject != null)
1371
+ BigNumber2.set(configObject);
1372
+ return BigNumber2;
1373
+ }
1374
+ function bitFloor(n) {
1375
+ var i = n | 0;
1376
+ return n > 0 || n === i ? i : i - 1;
1377
+ }
1378
+ function coeffToString(a) {
1379
+ var s, z, i = 1, j = a.length, r = a[0] + "";
1380
+ for (;i < j; ) {
1381
+ s = a[i++] + "";
1382
+ z = LOG_BASE - s.length;
1383
+ for (;z--; s = "0" + s)
1384
+ ;
1385
+ r += s;
1386
+ }
1387
+ for (j = r.length;r.charCodeAt(--j) === 48; )
1388
+ ;
1389
+ return r.slice(0, j + 1 || 1);
1390
+ }
1391
+ function compare(x, y) {
1392
+ var a, b, xc = x.c, yc = y.c, i = x.s, j = y.s, k = x.e, l = y.e;
1393
+ if (!i || !j)
1394
+ return null;
1395
+ a = xc && !xc[0];
1396
+ b = yc && !yc[0];
1397
+ if (a || b)
1398
+ return a ? b ? 0 : -j : i;
1399
+ if (i != j)
1400
+ return i;
1401
+ a = i < 0;
1402
+ b = k == l;
1403
+ if (!xc || !yc)
1404
+ return b ? 0 : !xc ^ a ? 1 : -1;
1405
+ if (!b)
1406
+ return k > l ^ a ? 1 : -1;
1407
+ j = (k = xc.length) < (l = yc.length) ? k : l;
1408
+ for (i = 0;i < j; i++)
1409
+ if (xc[i] != yc[i])
1410
+ return xc[i] > yc[i] ^ a ? 1 : -1;
1411
+ return k == l ? 0 : k > l ^ a ? 1 : -1;
1412
+ }
1413
+ function intCheck(n, min, max, name) {
1414
+ if (n < min || n > max || n !== mathfloor(n)) {
1415
+ throw Error(bignumberError + (name || "Argument") + (typeof n == "number" ? n < min || n > max ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n));
1416
+ }
1417
+ }
1418
+ function isOdd(n) {
1419
+ var k = n.c.length - 1;
1420
+ return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;
1421
+ }
1422
+ function toExponential(str, e) {
1423
+ return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e < 0 ? "e" : "e+") + e;
1424
+ }
1425
+ function toFixedPoint(str, e, z) {
1426
+ var len, zs;
1427
+ if (e < 0) {
1428
+ for (zs = z + ".";++e; zs += z)
1429
+ ;
1430
+ str = zs + str;
1431
+ } else {
1432
+ len = str.length;
1433
+ if (++e > len) {
1434
+ for (zs = z, e -= len;--e; zs += z)
1435
+ ;
1436
+ str += zs;
1437
+ } else if (e < len) {
1438
+ str = str.slice(0, e) + "." + str.slice(e);
1439
+ }
1440
+ }
1441
+ return str;
1442
+ }
1443
+ BigNumber = clone();
1444
+ BigNumber["default"] = BigNumber.BigNumber = BigNumber;
1445
+ if (typeof define == "function" && define.amd) {
1446
+ define(function() {
1447
+ return BigNumber;
1448
+ });
1449
+ } else if (typeof module != "undefined" && module.exports) {
1450
+ module.exports = BigNumber;
1451
+ } else {
1452
+ if (!globalObject) {
1453
+ globalObject = typeof self != "undefined" && self ? self : window;
1454
+ }
1455
+ globalObject.BigNumber = BigNumber;
1456
+ }
1457
+ })(exports);
1458
+ });
1459
+
1460
+ // node_modules/.bun/json-bigint@1.0.0/node_modules/json-bigint/lib/stringify.js
1461
+ var require_stringify = __commonJS((exports, module) => {
1462
+ var BigNumber = require_bignumber();
1463
+ var JSON = exports;
1464
+ (function() {
1465
+ function f(n) {
1466
+ return n < 10 ? "0" + n : n;
1467
+ }
1468
+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = {
1469
+ "\b": "\\b",
1470
+ "\t": "\\t",
1471
+ "\n": "\\n",
1472
+ "\f": "\\f",
1473
+ "\r": "\\r",
1474
+ '"': "\\\"",
1475
+ "\\": "\\\\"
1476
+ }, rep;
1477
+ function quote(string) {
1478
+ escapable.lastIndex = 0;
1479
+ return escapable.test(string) ? '"' + string.replace(escapable, function(a) {
1480
+ var c = meta[a];
1481
+ return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
1482
+ }) + '"' : '"' + string + '"';
1483
+ }
1484
+ function str(key, holder) {
1485
+ var i, k, v, length, mind = gap, partial, value = holder[key], isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value));
1486
+ if (value && typeof value === "object" && typeof value.toJSON === "function") {
1487
+ value = value.toJSON(key);
1488
+ }
1489
+ if (typeof rep === "function") {
1490
+ value = rep.call(holder, key, value);
1491
+ }
1492
+ switch (typeof value) {
1493
+ case "string":
1494
+ if (isBigNumber) {
1495
+ return value;
1496
+ } else {
1497
+ return quote(value);
1498
+ }
1499
+ case "number":
1500
+ return isFinite(value) ? String(value) : "null";
1501
+ case "boolean":
1502
+ case "null":
1503
+ case "bigint":
1504
+ return String(value);
1505
+ case "object":
1506
+ if (!value) {
1507
+ return "null";
1508
+ }
1509
+ gap += indent;
1510
+ partial = [];
1511
+ if (Object.prototype.toString.apply(value) === "[object Array]") {
1512
+ length = value.length;
1513
+ for (i = 0;i < length; i += 1) {
1514
+ partial[i] = str(i, value) || "null";
1515
+ }
1516
+ v = partial.length === 0 ? "[]" : gap ? `[
1517
+ ` + gap + partial.join(`,
1518
+ ` + gap) + `
1519
+ ` + mind + "]" : "[" + partial.join(",") + "]";
1520
+ gap = mind;
1521
+ return v;
1522
+ }
1523
+ if (rep && typeof rep === "object") {
1524
+ length = rep.length;
1525
+ for (i = 0;i < length; i += 1) {
1526
+ if (typeof rep[i] === "string") {
1527
+ k = rep[i];
1528
+ v = str(k, value);
1529
+ if (v) {
1530
+ partial.push(quote(k) + (gap ? ": " : ":") + v);
1531
+ }
1532
+ }
1533
+ }
1534
+ } else {
1535
+ Object.keys(value).forEach(function(k2) {
1536
+ var v2 = str(k2, value);
1537
+ if (v2) {
1538
+ partial.push(quote(k2) + (gap ? ": " : ":") + v2);
1539
+ }
1540
+ });
1541
+ }
1542
+ v = partial.length === 0 ? "{}" : gap ? `{
1543
+ ` + gap + partial.join(`,
1544
+ ` + gap) + `
1545
+ ` + mind + "}" : "{" + partial.join(",") + "}";
1546
+ gap = mind;
1547
+ return v;
1548
+ }
1549
+ }
1550
+ if (typeof JSON.stringify !== "function") {
1551
+ JSON.stringify = function(value, replacer, space) {
1552
+ var i;
1553
+ gap = "";
1554
+ indent = "";
1555
+ if (typeof space === "number") {
1556
+ for (i = 0;i < space; i += 1) {
1557
+ indent += " ";
1558
+ }
1559
+ } else if (typeof space === "string") {
1560
+ indent = space;
1561
+ }
1562
+ rep = replacer;
1563
+ if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer.length !== "number")) {
1564
+ throw new Error("JSON.stringify");
1565
+ }
1566
+ return str("", { "": value });
1567
+ };
1568
+ }
1569
+ })();
1570
+ });
1571
+
1572
+ // node_modules/.bun/json-bigint@1.0.0/node_modules/json-bigint/lib/parse.js
1573
+ var require_parse = __commonJS((exports, module) => {
1574
+ var BigNumber = null;
1575
+ var suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/;
1576
+ var suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
1577
+ var json_parse = function(options) {
1578
+ var _options = {
1579
+ strict: false,
1580
+ storeAsString: false,
1581
+ alwaysParseAsBig: false,
1582
+ useNativeBigInt: false,
1583
+ protoAction: "error",
1584
+ constructorAction: "error"
1585
+ };
1586
+ if (options !== undefined && options !== null) {
1587
+ if (options.strict === true) {
1588
+ _options.strict = true;
1589
+ }
1590
+ if (options.storeAsString === true) {
1591
+ _options.storeAsString = true;
1592
+ }
1593
+ _options.alwaysParseAsBig = options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false;
1594
+ _options.useNativeBigInt = options.useNativeBigInt === true ? options.useNativeBigInt : false;
1595
+ if (typeof options.constructorAction !== "undefined") {
1596
+ if (options.constructorAction === "error" || options.constructorAction === "ignore" || options.constructorAction === "preserve") {
1597
+ _options.constructorAction = options.constructorAction;
1598
+ } else {
1599
+ throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}`);
1600
+ }
1601
+ }
1602
+ if (typeof options.protoAction !== "undefined") {
1603
+ if (options.protoAction === "error" || options.protoAction === "ignore" || options.protoAction === "preserve") {
1604
+ _options.protoAction = options.protoAction;
1605
+ } else {
1606
+ throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}`);
1607
+ }
1608
+ }
1609
+ }
1610
+ var at, ch, escapee = {
1611
+ '"': '"',
1612
+ "\\": "\\",
1613
+ "/": "/",
1614
+ b: "\b",
1615
+ f: "\f",
1616
+ n: `
1617
+ `,
1618
+ r: "\r",
1619
+ t: "\t"
1620
+ }, text, error = function(m) {
1621
+ throw {
1622
+ name: "SyntaxError",
1623
+ message: m,
1624
+ at,
1625
+ text
1626
+ };
1627
+ }, next = function(c) {
1628
+ if (c && c !== ch) {
1629
+ error("Expected '" + c + "' instead of '" + ch + "'");
1630
+ }
1631
+ ch = text.charAt(at);
1632
+ at += 1;
1633
+ return ch;
1634
+ }, number = function() {
1635
+ var number2, string2 = "";
1636
+ if (ch === "-") {
1637
+ string2 = "-";
1638
+ next("-");
1639
+ }
1640
+ while (ch >= "0" && ch <= "9") {
1641
+ string2 += ch;
1642
+ next();
1643
+ }
1644
+ if (ch === ".") {
1645
+ string2 += ".";
1646
+ while (next() && ch >= "0" && ch <= "9") {
1647
+ string2 += ch;
1648
+ }
1649
+ }
1650
+ if (ch === "e" || ch === "E") {
1651
+ string2 += ch;
1652
+ next();
1653
+ if (ch === "-" || ch === "+") {
1654
+ string2 += ch;
1655
+ next();
1656
+ }
1657
+ while (ch >= "0" && ch <= "9") {
1658
+ string2 += ch;
1659
+ next();
1660
+ }
1661
+ }
1662
+ number2 = +string2;
1663
+ if (!isFinite(number2)) {
1664
+ error("Bad number");
1665
+ } else {
1666
+ if (BigNumber == null)
1667
+ BigNumber = require_bignumber();
1668
+ if (string2.length > 15)
1669
+ return _options.storeAsString ? string2 : _options.useNativeBigInt ? BigInt(string2) : new BigNumber(string2);
1670
+ else
1671
+ return !_options.alwaysParseAsBig ? number2 : _options.useNativeBigInt ? BigInt(number2) : new BigNumber(number2);
1672
+ }
1673
+ }, string = function() {
1674
+ var hex, i, string2 = "", uffff;
1675
+ if (ch === '"') {
1676
+ var startAt = at;
1677
+ while (next()) {
1678
+ if (ch === '"') {
1679
+ if (at - 1 > startAt)
1680
+ string2 += text.substring(startAt, at - 1);
1681
+ next();
1682
+ return string2;
1683
+ }
1684
+ if (ch === "\\") {
1685
+ if (at - 1 > startAt)
1686
+ string2 += text.substring(startAt, at - 1);
1687
+ next();
1688
+ if (ch === "u") {
1689
+ uffff = 0;
1690
+ for (i = 0;i < 4; i += 1) {
1691
+ hex = parseInt(next(), 16);
1692
+ if (!isFinite(hex)) {
1693
+ break;
1694
+ }
1695
+ uffff = uffff * 16 + hex;
1696
+ }
1697
+ string2 += String.fromCharCode(uffff);
1698
+ } else if (typeof escapee[ch] === "string") {
1699
+ string2 += escapee[ch];
1700
+ } else {
1701
+ break;
1702
+ }
1703
+ startAt = at;
1704
+ }
1705
+ }
1706
+ }
1707
+ error("Bad string");
1708
+ }, white = function() {
1709
+ while (ch && ch <= " ") {
1710
+ next();
1711
+ }
1712
+ }, word = function() {
1713
+ switch (ch) {
1714
+ case "t":
1715
+ next("t");
1716
+ next("r");
1717
+ next("u");
1718
+ next("e");
1719
+ return true;
1720
+ case "f":
1721
+ next("f");
1722
+ next("a");
1723
+ next("l");
1724
+ next("s");
1725
+ next("e");
1726
+ return false;
1727
+ case "n":
1728
+ next("n");
1729
+ next("u");
1730
+ next("l");
1731
+ next("l");
1732
+ return null;
1733
+ }
1734
+ error("Unexpected '" + ch + "'");
1735
+ }, value, array = function() {
1736
+ var array2 = [];
1737
+ if (ch === "[") {
1738
+ next("[");
1739
+ white();
1740
+ if (ch === "]") {
1741
+ next("]");
1742
+ return array2;
1743
+ }
1744
+ while (ch) {
1745
+ array2.push(value());
1746
+ white();
1747
+ if (ch === "]") {
1748
+ next("]");
1749
+ return array2;
1750
+ }
1751
+ next(",");
1752
+ white();
1753
+ }
1754
+ }
1755
+ error("Bad array");
1756
+ }, object = function() {
1757
+ var key, object2 = Object.create(null);
1758
+ if (ch === "{") {
1759
+ next("{");
1760
+ white();
1761
+ if (ch === "}") {
1762
+ next("}");
1763
+ return object2;
1764
+ }
1765
+ while (ch) {
1766
+ key = string();
1767
+ white();
1768
+ next(":");
1769
+ if (_options.strict === true && Object.hasOwnProperty.call(object2, key)) {
1770
+ error('Duplicate key "' + key + '"');
1771
+ }
1772
+ if (suspectProtoRx.test(key) === true) {
1773
+ if (_options.protoAction === "error") {
1774
+ error("Object contains forbidden prototype property");
1775
+ } else if (_options.protoAction === "ignore") {
1776
+ value();
1777
+ } else {
1778
+ object2[key] = value();
1779
+ }
1780
+ } else if (suspectConstructorRx.test(key) === true) {
1781
+ if (_options.constructorAction === "error") {
1782
+ error("Object contains forbidden constructor property");
1783
+ } else if (_options.constructorAction === "ignore") {
1784
+ value();
1785
+ } else {
1786
+ object2[key] = value();
1787
+ }
1788
+ } else {
1789
+ object2[key] = value();
1790
+ }
1791
+ white();
1792
+ if (ch === "}") {
1793
+ next("}");
1794
+ return object2;
1795
+ }
1796
+ next(",");
1797
+ white();
1798
+ }
1799
+ }
1800
+ error("Bad object");
1801
+ };
1802
+ value = function() {
1803
+ white();
1804
+ switch (ch) {
1805
+ case "{":
1806
+ return object();
1807
+ case "[":
1808
+ return array();
1809
+ case '"':
1810
+ return string();
1811
+ case "-":
1812
+ return number();
1813
+ default:
1814
+ return ch >= "0" && ch <= "9" ? number() : word();
1815
+ }
1816
+ };
1817
+ return function(source, reviver) {
1818
+ var result;
1819
+ text = source + "";
1820
+ at = 0;
1821
+ ch = " ";
1822
+ result = value();
1823
+ white();
1824
+ if (ch) {
1825
+ error("Syntax error");
1826
+ }
1827
+ return typeof reviver === "function" ? function walk(holder, key) {
1828
+ var k, v, value2 = holder[key];
1829
+ if (value2 && typeof value2 === "object") {
1830
+ Object.keys(value2).forEach(function(k2) {
1831
+ v = walk(value2, k2);
1832
+ if (v !== undefined) {
1833
+ value2[k2] = v;
1834
+ } else {
1835
+ delete value2[k2];
1836
+ }
1837
+ });
1838
+ }
1839
+ return reviver.call(holder, key, value2);
1840
+ }({ "": result }, "") : result;
1841
+ };
1842
+ };
1843
+ module.exports = json_parse;
1844
+ });
1845
+
1846
+ // node_modules/.bun/json-bigint@1.0.0/node_modules/json-bigint/index.js
1847
+ var require_json_bigint = __commonJS((exports, module) => {
1848
+ var json_stringify = require_stringify().stringify;
1849
+ var json_parse = require_parse();
1850
+ module.exports = function(options) {
1851
+ return {
1852
+ parse: json_parse(options),
1853
+ stringify: json_stringify
1854
+ };
1855
+ };
1856
+ module.exports.parse = json_parse();
1857
+ module.exports.stringify = json_stringify;
1858
+ });
1859
+
1860
+ // node_modules/.bun/extend@3.0.2/node_modules/extend/index.js
1861
+ var require_extend = __commonJS((exports, module) => {
1862
+ var hasOwn = Object.prototype.hasOwnProperty;
1863
+ var toStr = Object.prototype.toString;
1864
+ var defineProperty = Object.defineProperty;
1865
+ var gOPD = Object.getOwnPropertyDescriptor;
1866
+ var isArray = function isArray2(arr) {
1867
+ if (typeof Array.isArray === "function") {
1868
+ return Array.isArray(arr);
1869
+ }
1870
+ return toStr.call(arr) === "[object Array]";
1871
+ };
1872
+ var isPlainObject = function isPlainObject2(obj) {
1873
+ if (!obj || toStr.call(obj) !== "[object Object]") {
1874
+ return false;
1875
+ }
1876
+ var hasOwnConstructor = hasOwn.call(obj, "constructor");
1877
+ var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, "isPrototypeOf");
1878
+ if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
1879
+ return false;
1880
+ }
1881
+ var key;
1882
+ for (key in obj) {}
1883
+ return typeof key === "undefined" || hasOwn.call(obj, key);
1884
+ };
1885
+ var setProperty = function setProperty2(target, options) {
1886
+ if (defineProperty && options.name === "__proto__") {
1887
+ defineProperty(target, options.name, {
1888
+ enumerable: true,
1889
+ configurable: true,
1890
+ value: options.newValue,
1891
+ writable: true
1892
+ });
1893
+ } else {
1894
+ target[options.name] = options.newValue;
1895
+ }
1896
+ };
1897
+ var getProperty = function getProperty2(obj, name) {
1898
+ if (name === "__proto__") {
1899
+ if (!hasOwn.call(obj, name)) {
1900
+ return;
1901
+ } else if (gOPD) {
1902
+ return gOPD(obj, name).value;
1903
+ }
1904
+ }
1905
+ return obj[name];
1906
+ };
1907
+ module.exports = function extend() {
1908
+ var options, name, src, copy, copyIsArray, clone;
1909
+ var target = arguments[0];
1910
+ var i = 1;
1911
+ var length = arguments.length;
1912
+ var deep = false;
1913
+ if (typeof target === "boolean") {
1914
+ deep = target;
1915
+ target = arguments[1] || {};
1916
+ i = 2;
1917
+ }
1918
+ if (target == null || typeof target !== "object" && typeof target !== "function") {
1919
+ target = {};
1920
+ }
1921
+ for (;i < length; ++i) {
1922
+ options = arguments[i];
1923
+ if (options != null) {
1924
+ for (name in options) {
1925
+ src = getProperty(target, name);
1926
+ copy = getProperty(options, name);
1927
+ if (target !== copy) {
1928
+ if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
1929
+ if (copyIsArray) {
1930
+ copyIsArray = false;
1931
+ clone = src && isArray(src) ? src : [];
1932
+ } else {
1933
+ clone = src && isPlainObject(src) ? src : {};
1934
+ }
1935
+ setProperty(target, { name, newValue: extend(deep, clone, copy) });
1936
+ } else if (typeof copy !== "undefined") {
1937
+ setProperty(target, { name, newValue: copy });
1938
+ }
1939
+ }
1940
+ }
1941
+ }
1942
+ }
1943
+ return target;
1944
+ };
1945
+ });
1946
+
1947
+ export { require_extend, require_json_bigint };