@minimalcorp/tsunagi 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. package/.next/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/.next/standalone/apps/web/.next/app-path-routes-manifest.json +0 -28
  3. package/.next/standalone/apps/web/.next/build-manifest.json +3 -3
  4. package/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/apps/web/.next/required-server-files.json +1 -15
  6. package/.next/standalone/apps/web/.next/routes-manifest.json +1 -200
  7. package/.next/standalone/apps/web/.next/server/app/_global-error/page.js +1 -1
  8. package/.next/standalone/apps/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next/standalone/apps/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
  11. package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
  12. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  13. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/standalone/apps/web/.next/server/app/_not-found/page.js +1 -1
  18. package/.next/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  21. package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +13 -13
  22. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
  23. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  24. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
  25. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  26. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  27. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  28. package/.next/standalone/apps/web/.next/server/app/icon.png/route.js +1 -2
  29. package/.next/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -1
  30. package/.next/standalone/apps/web/.next/server/app/index.html +1 -1
  31. package/.next/standalone/apps/web/.next/server/app/index.rsc +15 -15
  32. package/.next/standalone/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  33. package/.next/standalone/apps/web/.next/server/app/index.segments/_full.segment.rsc +15 -15
  34. package/.next/standalone/apps/web/.next/server/app/index.segments/_head.segment.rsc +4 -4
  35. package/.next/standalone/apps/web/.next/server/app/index.segments/_index.segment.rsc +8 -8
  36. package/.next/standalone/apps/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  37. package/.next/standalone/apps/web/.next/server/app/page.js +1 -1
  38. package/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  39. package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/apps/web/.next/server/app/settings/page.js +1 -1
  41. package/.next/standalone/apps/web/.next/server/app/settings/page.js.nft.json +1 -1
  42. package/.next/standalone/apps/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/apps/web/.next/server/app/settings.html +1 -1
  44. package/.next/standalone/apps/web/.next/server/app/settings.rsc +15 -15
  45. package/.next/standalone/apps/web/.next/server/app/settings.segments/_full.segment.rsc +15 -15
  46. package/.next/standalone/apps/web/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  47. package/.next/standalone/apps/web/.next/server/app/settings.segments/_index.segment.rsc +8 -8
  48. package/.next/standalone/apps/web/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  49. package/.next/standalone/apps/web/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  50. package/.next/standalone/apps/web/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  51. package/.next/standalone/apps/web/.next/server/app/tasks/[id]/page.js +1 -1
  52. package/.next/standalone/apps/web/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  53. package/.next/standalone/apps/web/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  54. package/.next/standalone/apps/web/.next/server/app-paths-manifest.json +0 -28
  55. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0jam776._.js +13 -0
  56. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_icon_png_route_actions_01922jn.js +1 -1
  57. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0.df2qi._.js +3 -0
  58. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0a8.h72._.js +3 -0
  59. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0cl-0al._.js +3 -0
  60. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0e2_bho._.js +3 -0
  61. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ff1foz._.js +3 -0
  62. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__01cqrhy._.js → [root-of-the-server]__0h4wzcb._.js} +2 -2
  63. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0hhfi7s._.js +3 -0
  64. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ji00ks._.js +3 -0
  65. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0n2qong._.js +3 -0
  66. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__098q4~4._.js → [root-of-the-server]__0ome304._.js} +2 -2
  67. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0qtqq5d._.js +3 -0
  68. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__03mpod.._.js → [root-of-the-server]__0qw6wy3._.js} +4 -4
  69. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0sha5xx._.js +3 -0
  70. package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__00pql9~._.js → [root-of-the-server]__12yece_._.js} +4 -4
  71. package/.next/standalone/apps/web/.next/server/chunks/ssr/_00wnq9i._.js +2 -2
  72. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_0ol3g7m._.js → _075y~8w._.js} +2 -2
  73. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0g.cd6a._.js +1 -1
  74. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0mjd2fj._.js +2 -2
  75. package/.next/standalone/apps/web/.next/server/chunks/ssr/_10np2kf._.js +2 -2
  76. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js +1 -1
  77. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js +1 -1
  78. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js +1 -1
  79. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_settings_page_actions_0f6epye.js +1 -1
  80. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_tasks_[id]_page_actions_0.6kbe~.js +1 -1
  81. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web_src_app_settings_page_tsx_0i6itlb._.js +2 -2
  82. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web_src_app_tasks_[id]_page_tsx_0jshsm2._.js +2 -2
  83. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0.o~~kw._.js +31 -0
  84. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0236txg._.js +26 -0
  85. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_064q4aj._.js +3 -0
  86. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_07maurq._.js +3 -0
  87. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_07pr0y_._.js +3 -0
  88. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0_9vx8p._.js +45 -0
  89. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0d3g-x9._.js +3 -0
  90. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0hisk_6._.js +26 -0
  91. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0imu_yh._.js +45 -0
  92. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0j_6wlf._.js +31 -0
  93. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0llt_c0._.js +11 -0
  94. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0p7i50i._.js +11 -0
  95. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0tba1-p._.js +3 -0
  96. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0xodfy.._.js +3 -0
  97. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0yd1acw._.js +3 -0
  98. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0yvlzfi._.js +3 -0
  99. package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +3 -3
  100. package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
  101. package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
  102. package/.next/standalone/apps/web/.next/server/server-reference-manifest.js +1 -1
  103. package/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  104. package/.next/standalone/apps/web/.next/static/{JoYqGRe1NI9K8yLxCSu7g → bSPSUH1nA_0wClz0cgylZ}/_buildManifest.js +1 -5
  105. package/.next/standalone/apps/web/.next/static/chunks/{0k7r2.t3p~iwm.js → 066xfipi1ub8l.js} +2 -2
  106. package/.next/standalone/apps/web/.next/static/chunks/0b8.3al6nvw3d.css +4 -0
  107. package/.next/standalone/apps/web/.next/static/chunks/0lx0y8ph~faus.js +3 -0
  108. package/.next/standalone/apps/web/.next/static/chunks/{0p63tiak1b6s-.js → 0qyu6t8~exdxl.js} +2 -2
  109. package/.next/standalone/apps/web/.next/static/chunks/0rqog09uuknxq.js +5 -0
  110. package/.next/standalone/apps/web/.next/static/chunks/{0g.j9ko1tr-q0.js → 0xn4aezxw~.je.js} +1 -1
  111. package/.next/standalone/apps/web/.next/static/chunks/{0kxp1btclqdj7.js → 11_tr0pr9kxkl.js} +7 -7
  112. package/.next/standalone/apps/web/.next/static/chunks/{0whqmdgrwdcvt.js → 13nnuqjd3vrm1.js} +2 -2
  113. package/.next/standalone/apps/web/package.json +11 -78
  114. package/.next/standalone/apps/web/server.js +8 -2
  115. package/dist/auto-migrate.d.ts +1 -0
  116. package/dist/auto-migrate.js +30 -0
  117. package/dist/cli.d.ts +2 -0
  118. package/dist/cli.js +100 -0
  119. package/dist/plugin-lifecycle.d.ts +11 -0
  120. package/dist/plugin-lifecycle.js +86 -0
  121. package/dist/server/editor-session-store.d.ts +8 -0
  122. package/dist/server/editor-session-store.js +3 -6
  123. package/dist/server/generated/prisma/browser.d.ts +29 -0
  124. package/dist/server/generated/prisma/browser.js +17 -0
  125. package/dist/server/generated/prisma/client.d.ts +48 -0
  126. package/dist/server/generated/prisma/client.js +34 -0
  127. package/dist/server/generated/prisma/commonInputTypes.d.ts +355 -0
  128. package/dist/{generated → server/generated}/prisma/commonInputTypes.js +1 -2
  129. package/dist/server/generated/prisma/enums.d.ts +1 -0
  130. package/dist/{generated → server/generated}/prisma/enums.js +1 -2
  131. package/dist/server/generated/prisma/internal/class.d.ts +174 -0
  132. package/dist/{generated → server/generated}/prisma/internal/class.js +6 -42
  133. package/dist/server/generated/prisma/internal/prismaNamespace.d.ts +874 -0
  134. package/dist/server/generated/prisma/internal/prismaNamespace.js +146 -0
  135. package/dist/server/generated/prisma/internal/prismaNamespaceBrowser.d.ts +110 -0
  136. package/dist/{generated → server/generated}/prisma/internal/prismaNamespaceBrowser.js +15 -51
  137. package/dist/server/generated/prisma/models/EnvironmentVariable.d.ts +1331 -0
  138. package/dist/server/generated/prisma/models/EnvironmentVariable.js +1 -0
  139. package/dist/server/generated/prisma/models/PlannerTab.d.ts +1089 -0
  140. package/dist/server/generated/prisma/models/PlannerTab.js +1 -0
  141. package/dist/server/generated/prisma/models/Repository.d.ts +1277 -0
  142. package/dist/server/generated/prisma/models/Repository.js +1 -0
  143. package/dist/server/generated/prisma/models/Tab.d.ts +1357 -0
  144. package/dist/server/generated/prisma/models/Tab.js +1 -0
  145. package/dist/server/generated/prisma/models/Task.d.ts +1779 -0
  146. package/dist/server/generated/prisma/models/Task.js +1 -0
  147. package/dist/server/generated/prisma/models.d.ts +6 -0
  148. package/dist/server/generated/prisma/models.js +1 -0
  149. package/dist/server/index.d.ts +1 -0
  150. package/dist/server/index.js +40 -22
  151. package/dist/server/lib/branch-utils.d.ts +1 -0
  152. package/dist/server/lib/branch-utils.js +4 -0
  153. package/dist/server/lib/data-path.d.ts +15 -0
  154. package/dist/server/lib/data-path.js +23 -0
  155. package/dist/server/lib/db.d.ts +2 -0
  156. package/dist/server/lib/db.js +13 -0
  157. package/dist/server/lib/repositories/environment.d.ts +6 -0
  158. package/dist/{src → server}/lib/repositories/environment.js +14 -21
  159. package/dist/server/lib/repositories/repository.d.ts +6 -0
  160. package/dist/{src → server}/lib/repositories/repository.js +13 -20
  161. package/dist/server/lib/repositories/task.d.ts +27 -0
  162. package/dist/{src → server}/lib/repositories/task.js +27 -41
  163. package/dist/server/lib/services/task-service.d.ts +69 -0
  164. package/dist/{src → server}/lib/services/task-service.js +22 -70
  165. package/dist/server/lib/worktree-manager.d.ts +25 -0
  166. package/dist/{src → server}/lib/worktree-manager.js +37 -89
  167. package/dist/server/pty-manager.d.ts +40 -0
  168. package/dist/server/pty-manager.js +3 -39
  169. package/dist/server/routes/commands.d.ts +2 -0
  170. package/dist/server/routes/commands.js +46 -0
  171. package/dist/server/routes/editor.d.ts +2 -0
  172. package/dist/server/routes/editor.js +15 -18
  173. package/dist/server/routes/env.d.ts +2 -0
  174. package/dist/server/routes/env.js +144 -0
  175. package/dist/server/routes/hooks.d.ts +25 -0
  176. package/dist/server/routes/hooks.js +15 -29
  177. package/dist/server/routes/internal.d.ts +2 -0
  178. package/dist/server/routes/internal.js +52 -0
  179. package/dist/server/routes/mcp.d.ts +2 -0
  180. package/dist/server/routes/mcp.js +65 -42
  181. package/dist/server/routes/onboarding.d.ts +2 -0
  182. package/dist/server/routes/onboarding.js +15 -0
  183. package/dist/server/routes/planner.d.ts +2 -0
  184. package/dist/server/routes/planner.js +86 -0
  185. package/dist/server/routes/repos.d.ts +2 -0
  186. package/dist/server/routes/repos.js +187 -0
  187. package/dist/server/routes/tasks.d.ts +2 -0
  188. package/dist/server/routes/tasks.js +322 -59
  189. package/dist/server/routes/terminal.d.ts +2 -0
  190. package/dist/server/routes/terminal.js +32 -67
  191. package/dist/server/routes/worktrees.d.ts +2 -0
  192. package/dist/server/routes/worktrees.js +82 -0
  193. package/dist/single-instance-lock.d.ts +6 -0
  194. package/dist/{scripts/single-instance-lock.js → single-instance-lock.js} +4 -40
  195. package/dist/with-plugin.d.ts +2 -0
  196. package/dist/with-plugin.js +66 -0
  197. package/package.json +10 -49
  198. package/prisma/schema.prisma +1 -1
  199. package/tsunagi-marketplace/plugins/tsunagi-plugin/.claude-plugin/plugin.json +24 -24
  200. package/.next/standalone/apps/web/.next/server/app/api/clone/route/app-paths-manifest.json +0 -3
  201. package/.next/standalone/apps/web/.next/server/app/api/clone/route/build-manifest.json +0 -9
  202. package/.next/standalone/apps/web/.next/server/app/api/clone/route/server-reference-manifest.json +0 -4
  203. package/.next/standalone/apps/web/.next/server/app/api/clone/route.js +0 -8
  204. package/.next/standalone/apps/web/.next/server/app/api/clone/route.js.map +0 -5
  205. package/.next/standalone/apps/web/.next/server/app/api/clone/route.js.nft.json +0 -1
  206. package/.next/standalone/apps/web/.next/server/app/api/clone/route_client-reference-manifest.js +0 -3
  207. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route/app-paths-manifest.json +0 -3
  208. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route/build-manifest.json +0 -9
  209. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route/server-reference-manifest.json +0 -4
  210. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route.js +0 -6
  211. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route.js.map +0 -5
  212. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route.js.nft.json +0 -1
  213. package/.next/standalone/apps/web/.next/server/app/api/commands/open/route_client-reference-manifest.js +0 -3
  214. package/.next/standalone/apps/web/.next/server/app/api/env/list/route/app-paths-manifest.json +0 -3
  215. package/.next/standalone/apps/web/.next/server/app/api/env/list/route/build-manifest.json +0 -9
  216. package/.next/standalone/apps/web/.next/server/app/api/env/list/route/server-reference-manifest.json +0 -4
  217. package/.next/standalone/apps/web/.next/server/app/api/env/list/route.js +0 -7
  218. package/.next/standalone/apps/web/.next/server/app/api/env/list/route.js.map +0 -5
  219. package/.next/standalone/apps/web/.next/server/app/api/env/list/route.js.nft.json +0 -1
  220. package/.next/standalone/apps/web/.next/server/app/api/env/list/route_client-reference-manifest.js +0 -3
  221. package/.next/standalone/apps/web/.next/server/app/api/env/route/app-paths-manifest.json +0 -3
  222. package/.next/standalone/apps/web/.next/server/app/api/env/route/build-manifest.json +0 -9
  223. package/.next/standalone/apps/web/.next/server/app/api/env/route/server-reference-manifest.json +0 -4
  224. package/.next/standalone/apps/web/.next/server/app/api/env/route.js +0 -7
  225. package/.next/standalone/apps/web/.next/server/app/api/env/route.js.map +0 -5
  226. package/.next/standalone/apps/web/.next/server/app/api/env/route.js.nft.json +0 -1
  227. package/.next/standalone/apps/web/.next/server/app/api/env/route_client-reference-manifest.js +0 -3
  228. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route/app-paths-manifest.json +0 -3
  229. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route/build-manifest.json +0 -9
  230. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route/server-reference-manifest.json +0 -4
  231. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route.js +0 -7
  232. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route.js.map +0 -5
  233. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route.js.nft.json +0 -1
  234. package/.next/standalone/apps/web/.next/server/app/api/env/toggle/route_client-reference-manifest.js +0 -3
  235. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route/app-paths-manifest.json +0 -3
  236. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route/build-manifest.json +0 -9
  237. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route/server-reference-manifest.json +0 -4
  238. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route.js +0 -7
  239. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route.js.map +0 -5
  240. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route.js.nft.json +0 -1
  241. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/status/route_client-reference-manifest.js +0 -3
  242. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route/app-paths-manifest.json +0 -3
  243. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route/build-manifest.json +0 -9
  244. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route/server-reference-manifest.json +0 -4
  245. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route.js +0 -7
  246. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route.js.map +0 -5
  247. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route.js.nft.json +0 -1
  248. package/.next/standalone/apps/web/.next/server/app/api/internal/tabs/[tab_id]/todos/route_client-reference-manifest.js +0 -3
  249. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route/app-paths-manifest.json +0 -3
  250. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route/build-manifest.json +0 -9
  251. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route/server-reference-manifest.json +0 -4
  252. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route.js +0 -7
  253. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route.js.map +0 -5
  254. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route.js.nft.json +0 -1
  255. package/.next/standalone/apps/web/.next/server/app/api/onboarding/status/route_client-reference-manifest.js +0 -3
  256. package/.next/standalone/apps/web/.next/server/app/api/owners/route/app-paths-manifest.json +0 -3
  257. package/.next/standalone/apps/web/.next/server/app/api/owners/route/build-manifest.json +0 -9
  258. package/.next/standalone/apps/web/.next/server/app/api/owners/route/server-reference-manifest.json +0 -4
  259. package/.next/standalone/apps/web/.next/server/app/api/owners/route.js +0 -7
  260. package/.next/standalone/apps/web/.next/server/app/api/owners/route.js.map +0 -5
  261. package/.next/standalone/apps/web/.next/server/app/api/owners/route.js.nft.json +0 -1
  262. package/.next/standalone/apps/web/.next/server/app/api/owners/route_client-reference-manifest.js +0 -3
  263. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route/app-paths-manifest.json +0 -3
  264. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route/build-manifest.json +0 -9
  265. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route/server-reference-manifest.json +0 -4
  266. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route.js +0 -6
  267. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route.js.map +0 -5
  268. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route.js.nft.json +0 -1
  269. package/.next/standalone/apps/web/.next/server/app/api/planner/config/route_client-reference-manifest.js +0 -3
  270. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route/app-paths-manifest.json +0 -3
  271. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route/build-manifest.json +0 -9
  272. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route/server-reference-manifest.json +0 -4
  273. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route.js +0 -7
  274. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route.js.map +0 -5
  275. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route.js.nft.json +0 -1
  276. package/.next/standalone/apps/web/.next/server/app/api/planner/tabs/route_client-reference-manifest.js +0 -3
  277. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route/app-paths-manifest.json +0 -3
  278. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route/build-manifest.json +0 -9
  279. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route/server-reference-manifest.json +0 -4
  280. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route.js +0 -7
  281. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route.js.map +0 -5
  282. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route.js.nft.json +0 -1
  283. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/branches/route_client-reference-manifest.js +0 -3
  284. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route/app-paths-manifest.json +0 -3
  285. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route/build-manifest.json +0 -9
  286. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route/server-reference-manifest.json +0 -4
  287. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route.js +0 -7
  288. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route.js.map +0 -5
  289. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route.js.nft.json +0 -1
  290. package/.next/standalone/apps/web/.next/server/app/api/repos/[owner]/[repo]/route_client-reference-manifest.js +0 -3
  291. package/.next/standalone/apps/web/.next/server/app/api/repos/route/app-paths-manifest.json +0 -3
  292. package/.next/standalone/apps/web/.next/server/app/api/repos/route/build-manifest.json +0 -9
  293. package/.next/standalone/apps/web/.next/server/app/api/repos/route/server-reference-manifest.json +0 -4
  294. package/.next/standalone/apps/web/.next/server/app/api/repos/route.js +0 -7
  295. package/.next/standalone/apps/web/.next/server/app/api/repos/route.js.map +0 -5
  296. package/.next/standalone/apps/web/.next/server/app/api/repos/route.js.nft.json +0 -1
  297. package/.next/standalone/apps/web/.next/server/app/api/repos/route_client-reference-manifest.js +0 -3
  298. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route/app-paths-manifest.json +0 -3
  299. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route/build-manifest.json +0 -9
  300. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route/server-reference-manifest.json +0 -4
  301. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route.js +0 -7
  302. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route.js.map +0 -5
  303. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route.js.nft.json +0 -1
  304. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/complete/route_client-reference-manifest.js +0 -3
  305. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route/app-paths-manifest.json +0 -3
  306. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route/build-manifest.json +0 -9
  307. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route/server-reference-manifest.json +0 -4
  308. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route.js +0 -8
  309. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route.js.map +0 -5
  310. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route.js.nft.json +0 -1
  311. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/needs-rebase/route_client-reference-manifest.js +0 -3
  312. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route/app-paths-manifest.json +0 -3
  313. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route/build-manifest.json +0 -9
  314. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route/server-reference-manifest.json +0 -4
  315. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route.js +0 -8
  316. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route.js.map +0 -5
  317. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route.js.nft.json +0 -1
  318. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/rebase/route_client-reference-manifest.js +0 -3
  319. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route/app-paths-manifest.json +0 -3
  320. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route/build-manifest.json +0 -9
  321. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route/server-reference-manifest.json +0 -4
  322. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route.js +0 -8
  323. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route.js.map +0 -5
  324. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route.js.nft.json +0 -1
  325. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +0 -3
  326. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route/app-paths-manifest.json +0 -3
  327. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route/build-manifest.json +0 -9
  328. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route/server-reference-manifest.json +0 -4
  329. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route.js +0 -7
  330. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route.js.map +0 -5
  331. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route.js.nft.json +0 -1
  332. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/status/route_client-reference-manifest.js +0 -3
  333. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route/app-paths-manifest.json +0 -3
  334. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route/build-manifest.json +0 -9
  335. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route/server-reference-manifest.json +0 -4
  336. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route.js +0 -7
  337. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route.js.map +0 -5
  338. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route.js.nft.json +0 -1
  339. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/[tab_id]/route_client-reference-manifest.js +0 -3
  340. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route/app-paths-manifest.json +0 -3
  341. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route/build-manifest.json +0 -9
  342. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route/server-reference-manifest.json +0 -4
  343. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route.js +0 -7
  344. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route.js.map +0 -5
  345. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route.js.nft.json +0 -1
  346. package/.next/standalone/apps/web/.next/server/app/api/tasks/[id]/tabs/route_client-reference-manifest.js +0 -3
  347. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route/app-paths-manifest.json +0 -3
  348. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route/build-manifest.json +0 -9
  349. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route/server-reference-manifest.json +0 -4
  350. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route.js +0 -8
  351. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route.js.map +0 -5
  352. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route.js.nft.json +0 -1
  353. package/.next/standalone/apps/web/.next/server/app/api/tasks/batch-delete/route_client-reference-manifest.js +0 -3
  354. package/.next/standalone/apps/web/.next/server/app/api/tasks/route/app-paths-manifest.json +0 -3
  355. package/.next/standalone/apps/web/.next/server/app/api/tasks/route/build-manifest.json +0 -9
  356. package/.next/standalone/apps/web/.next/server/app/api/tasks/route/server-reference-manifest.json +0 -4
  357. package/.next/standalone/apps/web/.next/server/app/api/tasks/route.js +0 -8
  358. package/.next/standalone/apps/web/.next/server/app/api/tasks/route.js.map +0 -5
  359. package/.next/standalone/apps/web/.next/server/app/api/tasks/route.js.nft.json +0 -1
  360. package/.next/standalone/apps/web/.next/server/app/api/tasks/route_client-reference-manifest.js +0 -3
  361. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route/app-paths-manifest.json +0 -3
  362. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route/build-manifest.json +0 -9
  363. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route/server-reference-manifest.json +0 -4
  364. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route.js +0 -7
  365. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route.js.map +0 -5
  366. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route.js.nft.json +0 -1
  367. package/.next/standalone/apps/web/.next/server/app/api/tasks/validate/route_client-reference-manifest.js +0 -3
  368. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route/app-paths-manifest.json +0 -3
  369. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route/build-manifest.json +0 -9
  370. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route/server-reference-manifest.json +0 -4
  371. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route.js +0 -7
  372. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route.js.map +0 -5
  373. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route.js.nft.json +0 -1
  374. package/.next/standalone/apps/web/.next/server/app/api/worktrees/create/route_client-reference-manifest.js +0 -3
  375. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route/app-paths-manifest.json +0 -3
  376. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route/build-manifest.json +0 -9
  377. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route/server-reference-manifest.json +0 -4
  378. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route.js +0 -7
  379. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route.js.map +0 -5
  380. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route.js.nft.json +0 -1
  381. package/.next/standalone/apps/web/.next/server/app/api/worktrees/delete/route_client-reference-manifest.js +0 -3
  382. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route/app-paths-manifest.json +0 -3
  383. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route/build-manifest.json +0 -9
  384. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route/server-reference-manifest.json +0 -4
  385. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route.js +0 -8
  386. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route.js.map +0 -5
  387. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route.js.nft.json +0 -1
  388. package/.next/standalone/apps/web/.next/server/app/api/worktrees/init/route_client-reference-manifest.js +0 -3
  389. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route/app-paths-manifest.json +0 -3
  390. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route/build-manifest.json +0 -9
  391. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route/server-reference-manifest.json +0 -4
  392. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route.js +0 -7
  393. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route.js.map +0 -5
  394. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route.js.nft.json +0 -1
  395. package/.next/standalone/apps/web/.next/server/app/api/worktrees/list/route_client-reference-manifest.js +0 -3
  396. package/.next/standalone/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_repos_[owner]_[repo]_route_actions_0y.unn4.js +0 -3
  397. package/.next/standalone/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_tasks_[id]_needs-rebase_route_actions_0y9hgye.js +0 -3
  398. package/.next/standalone/apps/web/.next/server/chunks/07~4_@prisma_client_runtime_query_compiler_fast_bg_sqlite_wasm-base64_mjs_0wnnza3._.js +0 -3
  399. package/.next/standalone/apps/web/.next/server/chunks/09og__next-internal_server_app_api_tasks_[id]_tabs_[tab_id]_route_actions_0m796s4.js +0 -3
  400. package/.next/standalone/apps/web/.next/server/chunks/0nf3_next-internal_server_app_api_internal_tabs_[tab_id]_todos_route_actions_02z31m7.js +0 -3
  401. package/.next/standalone/apps/web/.next/server/chunks/0z2a_server_app_api_internal_tabs_[tab_id]_status_route_actions_0ilq1cc.js +0 -3
  402. package/.next/standalone/apps/web/.next/server/chunks/0z2a_server_app_api_repos_[owner]_[repo]_branches_route_actions_0kw~i.m.js +0 -3
  403. package/.next/standalone/apps/web/.next/server/chunks/[externals]_@prisma_client_runtime_query_compiler_fast_bg_sqlite_mjs_0ov7..a._.js +0 -3
  404. package/.next/standalone/apps/web/.next/server/chunks/[externals]_node_buffer_0063pbu._.js +0 -3
  405. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0.7m5hr._.js +0 -3
  406. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0._xutx._.js +0 -3
  407. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0.dvtyz._.js +0 -3
  408. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__00esaoi._.js +0 -3
  409. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__00yawse._.js +0 -3
  410. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0153q01._.js +0 -3
  411. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__054zsor._.js +0 -3
  412. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__07kmv.l._.js +0 -3
  413. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__08s5l~m._.js +0 -3
  414. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0_o7jmk._.js +0 -3
  415. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0a-_dt5._.js +0 -3
  416. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0a7x-4o._.js +0 -3
  417. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0a_fd8w._.js +0 -3
  418. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0b0ufhx._.js +0 -3
  419. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0dvf7qr._.js +0 -3
  420. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0iyjaeq._.js +0 -3
  421. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0jbiea4._.js +0 -3
  422. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0kh_uy7._.js +0 -3
  423. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0kw0mqq._.js +0 -3
  424. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0p84cpj._.js +0 -3
  425. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0qmft~f._.js +0 -3
  426. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0u78gov._.js +0 -3
  427. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0u9--cs._.js +0 -3
  428. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0v8bdq7._.js +0 -13
  429. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0wr1n.-._.js +0 -3
  430. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0y44m9i._.js +0 -3
  431. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0y~0muj._.js +0 -3
  432. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__10omlcu._.js +0 -3
  433. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__10twj-0._.js +0 -3
  434. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__122yu-6._.js +0 -3
  435. package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__13qyx58._.js +0 -3
  436. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_clone_route_actions_0i2usjl.js +0 -3
  437. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_commands_open_route_actions_0nr.lf~.js +0 -3
  438. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_env_list_route_actions_03ou9qy.js +0 -3
  439. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_env_route_actions_0j.l7e1.js +0 -3
  440. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_env_toggle_route_actions_0yul8q5.js +0 -3
  441. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_onboarding_status_route_actions_0-p50l9.js +0 -3
  442. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_owners_route_actions_0sf6d-s.js +0 -3
  443. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_planner_config_route_actions_0.2kv.b.js +0 -3
  444. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_planner_tabs_route_actions_00fsht3.js +0 -3
  445. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_repos_route_actions_08hf6lh.js +0 -3
  446. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_[id]_complete_route_actions_0955tfc.js +0 -3
  447. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_[id]_rebase_route_actions_0ltqhj..js +0 -3
  448. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_[id]_route_actions_0514yxk.js +0 -3
  449. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_[id]_status_route_actions_117cpp9.js +0 -3
  450. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_[id]_tabs_route_actions_0ex3~xn.js +0 -3
  451. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_batch-delete_route_actions_0ww_i~d.js +0 -3
  452. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_route_actions_0ff_.5_.js +0 -3
  453. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_tasks_validate_route_actions_0l5uu.c.js +0 -3
  454. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_worktrees_create_route_actions_0~lsdsh.js +0 -3
  455. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_worktrees_delete_route_actions_06nfkez.js +0 -3
  456. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_worktrees_init_route_actions_09tfs9b.js +0 -3
  457. package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_worktrees_list_route_actions_0_-udvz.js +0 -3
  458. package/.next/standalone/apps/web/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0kdit-s.js +0 -3
  459. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0-9rd88._.js +0 -3
  460. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__022775m._.js +0 -11
  461. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__033jtpd._.js +0 -3
  462. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05s9qb9._.js +0 -3
  463. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__07bkjd6._.js +0 -26
  464. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__089qidr._.js +0 -45
  465. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0_.vrpf._.js +0 -3
  466. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0b3x4kh._.js +0 -11
  467. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0en9qbe._.js +0 -31
  468. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ezg31n._.js +0 -3
  469. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0k~0jgm._.js +0 -3
  470. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0qk3s0-._.js +0 -45
  471. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0v5tqy.._.js +0 -3
  472. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0vnxm6a._.js +0 -3
  473. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0zqz-u3._.js +0 -3
  474. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0~5jgy1._.js +0 -26
  475. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10.ql0_._.js +0 -3
  476. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__13m~gd4._.js +0 -3
  477. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__13qfjv1._.js +0 -31
  478. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0_q14j_._.js +0 -3
  479. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0fn7k5m._.js +0 -3
  480. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0h0q2lx._.js +0 -3
  481. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0hraodu._.js +0 -3
  482. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0i.0.fq._.js +0 -3
  483. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0orz5ju._.js +0 -3
  484. package/.next/standalone/apps/web/.next/server/chunks/ssr/node_modules_0pr8ov_._.js +0 -3
  485. package/.next/standalone/apps/web/.next/static/chunks/0i_guf4-4_p5..css +0 -4
  486. package/.next/standalone/apps/web/.next/static/chunks/0o_q.90~v1nxx.js +0 -3
  487. package/.next/standalone/apps/web/.next/static/chunks/0x48ir_5my2vr.js +0 -5
  488. package/.next/standalone/node_modules/@libsql/client/package.json +0 -123
  489. package/.next/standalone/node_modules/@libsql/core/package.json +0 -89
  490. package/.next/standalone/node_modules/@libsql/hrana-client/package.json +0 -60
  491. package/.next/standalone/node_modules/@libsql/isomorphic-fetch/node.cjs +0 -23
  492. package/.next/standalone/node_modules/@libsql/isomorphic-fetch/node.js +0 -21
  493. package/.next/standalone/node_modules/@libsql/isomorphic-fetch/package.json +0 -51
  494. package/.next/standalone/node_modules/@libsql/isomorphic-fetch/web.cjs +0 -4
  495. package/.next/standalone/node_modules/@libsql/isomorphic-fetch/web.js +0 -8
  496. package/.next/standalone/node_modules/@libsql/isomorphic-ws/node.cjs +0 -3
  497. package/.next/standalone/node_modules/@libsql/isomorphic-ws/node.mjs +0 -2
  498. package/.next/standalone/node_modules/@libsql/isomorphic-ws/package.json +0 -43
  499. package/.next/standalone/node_modules/@libsql/isomorphic-ws/web.cjs +0 -12
  500. package/.next/standalone/node_modules/@libsql/isomorphic-ws/web.mjs +0 -11
  501. package/.next/standalone/node_modules/@libsql/linux-x64-gnu/package.json +0 -36
  502. package/.next/standalone/node_modules/@libsql/linux-x64-musl/package.json +0 -36
  503. package/.next/standalone/node_modules/@neon-rs/load/dist/index.js +0 -102
  504. package/.next/standalone/node_modules/@neon-rs/load/package.json +0 -37
  505. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/hrana.js +0 -372
  506. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/http.js +0 -268
  507. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/node.js +0 -41
  508. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/package.json +0 -3
  509. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/sql_cache.js +0 -91
  510. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/sqlite3.js +0 -500
  511. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/web.js +0 -41
  512. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-cjs/ws.js +0 -395
  513. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/hrana.js +0 -341
  514. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/http.js +0 -232
  515. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/node.js +0 -23
  516. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/sql_cache.js +0 -87
  517. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/sqlite3.js +0 -476
  518. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/web.js +0 -22
  519. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/lib-esm/ws.js +0 -359
  520. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/client/package.json +0 -123
  521. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-cjs/api.js +0 -34
  522. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-cjs/config.js +0 -143
  523. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-cjs/package.json +0 -3
  524. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-cjs/uri.js +0 -125
  525. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-cjs/util.js +0 -60
  526. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-esm/api.js +0 -29
  527. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-esm/config.js +0 -138
  528. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-esm/uri.js +0 -120
  529. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/lib-esm/util.js +0 -55
  530. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/core/package.json +0 -91
  531. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/LICENSE +0 -20
  532. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/batch.js +0 -277
  533. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/byte_queue.js +0 -49
  534. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/client.js +0 -17
  535. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/cursor.js +0 -6
  536. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/describe.js +0 -12
  537. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/index.js +0 -11
  538. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/json/decode.js +0 -70
  539. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/json/encode.js +0 -77
  540. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/decode.js +0 -155
  541. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/encode.js +0 -100
  542. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/util.js +0 -9
  543. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/errors.js +0 -116
  544. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/client.js +0 -130
  545. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/cursor.js +0 -165
  546. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/json_decode.js +0 -90
  547. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/json_encode.js +0 -60
  548. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/proto.js +0 -18
  549. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_decode.js +0 -47
  550. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_encode.js +0 -83
  551. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/http/stream.js +0 -372
  552. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/id_alloc.js +0 -51
  553. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/index.js +0 -77
  554. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/libsql_url.js +0 -79
  555. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/package.json +0 -3
  556. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/queue.js +0 -30
  557. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/queue_microtask.js +0 -15
  558. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/result.js +0 -56
  559. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/shared/json_decode.js +0 -138
  560. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/shared/json_encode.js +0 -76
  561. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/shared/proto.js +0 -3
  562. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_decode.js +0 -118
  563. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_encode.js +0 -90
  564. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/sql.js +0 -51
  565. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/stmt.js +0 -81
  566. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/stream.js +0 -61
  567. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/util.js +0 -8
  568. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/value.js +0 -88
  569. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/client.js +0 -322
  570. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/cursor.js +0 -84
  571. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/json_decode.js +0 -101
  572. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/json_encode.js +0 -81
  573. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/proto.js +0 -18
  574. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_decode.js +0 -63
  575. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_encode.js +0 -119
  576. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-cjs/ws/stream.js +0 -215
  577. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/batch.js +0 -271
  578. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +0 -45
  579. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/client.js +0 -13
  580. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/cursor.js +0 -2
  581. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/describe.js +0 -8
  582. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +0 -4
  583. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +0 -59
  584. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +0 -72
  585. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +0 -150
  586. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +0 -95
  587. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +0 -6
  588. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/errors.js +0 -102
  589. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/client.js +0 -126
  590. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +0 -138
  591. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +0 -62
  592. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +0 -55
  593. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/proto.js +0 -2
  594. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +0 -44
  595. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +0 -78
  596. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +0 -368
  597. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +0 -47
  598. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/index.js +0 -42
  599. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +0 -75
  600. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/queue.js +0 -26
  601. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +0 -13
  602. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/result.js +0 -48
  603. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +0 -106
  604. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +0 -71
  605. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/shared/proto.js +0 -2
  606. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +0 -115
  607. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +0 -85
  608. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/sql.js +0 -46
  609. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/stmt.js +0 -76
  610. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/stream.js +0 -57
  611. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/util.js +0 -4
  612. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/value.js +0 -83
  613. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +0 -318
  614. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +0 -80
  615. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +0 -74
  616. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +0 -77
  617. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/proto.js +0 -2
  618. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +0 -60
  619. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +0 -115
  620. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +0 -211
  621. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/hrana-client/package.json +0 -60
  622. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/linux-x64-gnu/index.node +0 -0
  623. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/linux-x64-gnu/package.json +0 -36
  624. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/linux-x64-musl/index.node +0 -0
  625. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/@libsql/linux-x64-musl/package.json +0 -36
  626. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/libsql/auth.js +0 -22
  627. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/libsql/index.js +0 -441
  628. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/libsql/package.json +0 -90
  629. package/.next/standalone/node_modules/@prisma/adapter-libsql/node_modules/libsql/sqlite-error.js +0 -21
  630. package/.next/standalone/node_modules/@prisma/client/package.json +0 -282
  631. package/.next/standalone/node_modules/@prisma/client/runtime/client.js +0 -82
  632. package/.next/standalone/node_modules/@prisma/client/runtime/query_compiler_fast_bg.sqlite.mjs +0 -2
  633. package/.next/standalone/node_modules/@prisma/client/runtime/query_compiler_fast_bg.sqlite.wasm-base64.mjs +0 -2
  634. package/.next/standalone/node_modules/@prisma/client-runtime-utils/dist/index.js +0 -2559
  635. package/.next/standalone/node_modules/@prisma/client-runtime-utils/package.json +0 -39
  636. package/.next/standalone/node_modules/cross-fetch/dist/node-ponyfill.js +0 -22
  637. package/.next/standalone/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js +0 -1787
  638. package/.next/standalone/node_modules/cross-fetch/node_modules/node-fetch/package.json +0 -89
  639. package/.next/standalone/node_modules/cross-fetch/package.json +0 -129
  640. package/.next/standalone/node_modules/detect-libc/lib/detect-libc.js +0 -279
  641. package/.next/standalone/node_modules/detect-libc/lib/filesystem.js +0 -41
  642. package/.next/standalone/node_modules/detect-libc/lib/process.js +0 -19
  643. package/.next/standalone/node_modules/js-base64/base64.js +0 -321
  644. package/.next/standalone/node_modules/js-base64/base64.mjs +0 -301
  645. package/.next/standalone/node_modules/js-base64/package.json +0 -43
  646. package/.next/standalone/node_modules/libsql/package.json +0 -84
  647. package/.next/standalone/node_modules/node-fetch/package.json +0 -131
  648. package/.next/standalone/node_modules/promise-limit/index.js +0 -88
  649. package/.next/standalone/node_modules/promise-limit/package.json +0 -39
  650. package/.next/standalone/node_modules/tr46/index.js +0 -193
  651. package/.next/standalone/node_modules/tr46/lib/mappingTable.json +0 -1
  652. package/.next/standalone/node_modules/tr46/package.json +0 -31
  653. package/.next/standalone/node_modules/webidl-conversions/lib/index.js +0 -189
  654. package/.next/standalone/node_modules/webidl-conversions/package.json +0 -23
  655. package/.next/standalone/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  656. package/.next/standalone/node_modules/whatwg-url/lib/URL.js +0 -196
  657. package/.next/standalone/node_modules/whatwg-url/lib/public-api.js +0 -11
  658. package/.next/standalone/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  659. package/.next/standalone/node_modules/whatwg-url/lib/utils.js +0 -20
  660. package/.next/standalone/node_modules/whatwg-url/package.json +0 -32
  661. package/.next/standalone/node_modules/ws/index.js +0 -22
  662. package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
  663. package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
  664. package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
  665. package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
  666. package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
  667. package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
  668. package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
  669. package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
  670. package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
  671. package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
  672. package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
  673. package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
  674. package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
  675. package/.next/standalone/node_modules/ws/package.json +0 -70
  676. package/.next/standalone/node_modules/ws/wrapper.mjs +0 -21
  677. package/README.md +0 -381
  678. package/dist/generated/prisma/browser.js +0 -56
  679. package/dist/generated/prisma/client.js +0 -73
  680. package/dist/generated/prisma/internal/prismaNamespace.js +0 -182
  681. package/dist/generated/prisma/models/EnvironmentVariable.js +0 -2
  682. package/dist/generated/prisma/models/PlannerTab.js +0 -2
  683. package/dist/generated/prisma/models/Repository.js +0 -2
  684. package/dist/generated/prisma/models/Tab.js +0 -2
  685. package/dist/generated/prisma/models/Task.js +0 -2
  686. package/dist/generated/prisma/models.js +0 -2
  687. package/dist/scripts/auto-migrate.js +0 -82
  688. package/dist/scripts/cli.js +0 -152
  689. package/dist/scripts/db-backup.js +0 -93
  690. package/dist/scripts/db-restore.js +0 -114
  691. package/dist/scripts/migrate-to-sqlite.js +0 -164
  692. package/dist/scripts/plugin-lifecycle.js +0 -130
  693. package/dist/scripts/with-plugin.js +0 -60
  694. package/dist/src/lib/branch-utils.js +0 -7
  695. package/dist/src/lib/data-path.js +0 -61
  696. package/dist/src/lib/db.js +0 -16
  697. package/dist/src/lib/types.js +0 -2
  698. /package/.next/standalone/apps/web/.next/static/{JoYqGRe1NI9K8yLxCSu7g → bSPSUH1nA_0wClz0cgylZ}/_clientMiddlewareManifest.js +0 -0
  699. /package/.next/standalone/apps/web/.next/static/{JoYqGRe1NI9K8yLxCSu7g → bSPSUH1nA_0wClz0cgylZ}/_ssgManifest.js +0 -0
@@ -1,2559 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- AnyNull: () => AnyNull,
24
- AnyNullClass: () => AnyNullClass,
25
- DbNull: () => DbNull,
26
- DbNullClass: () => DbNullClass,
27
- Decimal: () => Decimal,
28
- JsonNull: () => JsonNull,
29
- JsonNullClass: () => JsonNullClass,
30
- NullTypes: () => NullTypes,
31
- ObjectEnumValue: () => ObjectEnumValue,
32
- PrismaClientInitializationError: () => PrismaClientInitializationError,
33
- PrismaClientKnownRequestError: () => PrismaClientKnownRequestError,
34
- PrismaClientRustError: () => PrismaClientRustError,
35
- PrismaClientRustPanicError: () => PrismaClientRustPanicError,
36
- PrismaClientUnknownRequestError: () => PrismaClientUnknownRequestError,
37
- PrismaClientValidationError: () => PrismaClientValidationError,
38
- Sql: () => Sql,
39
- empty: () => empty,
40
- hasBatchIndex: () => hasBatchIndex,
41
- isAnyNull: () => isAnyNull,
42
- isDbNull: () => isDbNull,
43
- isJsonNull: () => isJsonNull,
44
- isObjectEnumValue: () => isObjectEnumValue,
45
- join: () => join,
46
- raw: () => raw,
47
- sql: () => sql
48
- });
49
- module.exports = __toCommonJS(index_exports);
50
-
51
- // src/errors/ErrorWithBatchIndex.ts
52
- function hasBatchIndex(value) {
53
- return typeof value["batchRequestIdx"] === "number";
54
- }
55
-
56
- // src/errors/setClassName.ts
57
- function setClassName(classObject, name) {
58
- Object.defineProperty(classObject, "name", {
59
- value: name,
60
- configurable: true
61
- });
62
- }
63
-
64
- // src/errors/PrismaClientInitializationError.ts
65
- var PrismaClientInitializationError = class _PrismaClientInitializationError extends Error {
66
- clientVersion;
67
- errorCode;
68
- retryable;
69
- constructor(message, clientVersion, errorCode) {
70
- super(message);
71
- this.name = "PrismaClientInitializationError";
72
- this.clientVersion = clientVersion;
73
- this.errorCode = errorCode;
74
- Error.captureStackTrace(_PrismaClientInitializationError);
75
- }
76
- get [Symbol.toStringTag]() {
77
- return "PrismaClientInitializationError";
78
- }
79
- };
80
- setClassName(PrismaClientInitializationError, "PrismaClientInitializationError");
81
-
82
- // src/errors/PrismaClientKnownRequestError.ts
83
- var PrismaClientKnownRequestError = class extends Error {
84
- code;
85
- meta;
86
- clientVersion;
87
- batchRequestIdx;
88
- constructor(message, { code, clientVersion, meta, batchRequestIdx }) {
89
- super(message);
90
- this.name = "PrismaClientKnownRequestError";
91
- this.code = code;
92
- this.clientVersion = clientVersion;
93
- this.meta = meta;
94
- Object.defineProperty(this, "batchRequestIdx", {
95
- value: batchRequestIdx,
96
- enumerable: false,
97
- writable: true
98
- });
99
- }
100
- get [Symbol.toStringTag]() {
101
- return "PrismaClientKnownRequestError";
102
- }
103
- };
104
- setClassName(PrismaClientKnownRequestError, "PrismaClientKnownRequestError");
105
-
106
- // src/errors/log.ts
107
- function getBacktrace(log3) {
108
- if (log3.fields?.message) {
109
- let str = log3.fields?.message;
110
- if (log3.fields?.file) {
111
- str += ` in ${log3.fields.file}`;
112
- if (log3.fields?.line) {
113
- str += `:${log3.fields.line}`;
114
- }
115
- if (log3.fields?.column) {
116
- str += `:${log3.fields.column}`;
117
- }
118
- }
119
- if (log3.fields?.reason) {
120
- str += `
121
- ${log3.fields?.reason}`;
122
- }
123
- return str;
124
- }
125
- return "Unknown error";
126
- }
127
- function isPanic(err) {
128
- return err.fields?.message === "PANIC";
129
- }
130
-
131
- // src/errors/PrismaClientRustError.ts
132
- var PrismaClientRustError = class extends Error {
133
- clientVersion;
134
- _isPanic;
135
- constructor({ clientVersion, error }) {
136
- const backtrace = getBacktrace(error);
137
- super(backtrace ?? "Unknown error");
138
- this._isPanic = isPanic(error);
139
- this.clientVersion = clientVersion;
140
- }
141
- get [Symbol.toStringTag]() {
142
- return "PrismaClientRustError";
143
- }
144
- isPanic() {
145
- return this._isPanic;
146
- }
147
- };
148
- setClassName(PrismaClientRustError, "PrismaClientRustError");
149
-
150
- // src/errors/PrismaClientRustPanicError.ts
151
- var PrismaClientRustPanicError = class extends Error {
152
- clientVersion;
153
- constructor(message, clientVersion) {
154
- super(message);
155
- this.name = "PrismaClientRustPanicError";
156
- this.clientVersion = clientVersion;
157
- }
158
- get [Symbol.toStringTag]() {
159
- return "PrismaClientRustPanicError";
160
- }
161
- };
162
- setClassName(PrismaClientRustPanicError, "PrismaClientRustPanicError");
163
-
164
- // src/errors/PrismaClientUnknownRequestError.ts
165
- var PrismaClientUnknownRequestError = class extends Error {
166
- clientVersion;
167
- batchRequestIdx;
168
- constructor(message, { clientVersion, batchRequestIdx }) {
169
- super(message);
170
- this.name = "PrismaClientUnknownRequestError";
171
- this.clientVersion = clientVersion;
172
- Object.defineProperty(this, "batchRequestIdx", {
173
- value: batchRequestIdx,
174
- writable: true,
175
- enumerable: false
176
- });
177
- }
178
- get [Symbol.toStringTag]() {
179
- return "PrismaClientUnknownRequestError";
180
- }
181
- };
182
- setClassName(PrismaClientUnknownRequestError, "PrismaClientUnknownRequestError");
183
-
184
- // src/errors/PrismaClientValidationError.ts
185
- var PrismaClientValidationError = class extends Error {
186
- name = "PrismaClientValidationError";
187
- clientVersion;
188
- constructor(message, { clientVersion }) {
189
- super(message);
190
- this.clientVersion = clientVersion;
191
- }
192
- get [Symbol.toStringTag]() {
193
- return "PrismaClientValidationError";
194
- }
195
- };
196
- setClassName(PrismaClientValidationError, "PrismaClientValidationError");
197
-
198
- // src/nullTypes.ts
199
- var secret = Symbol();
200
- var PRISMA_OBJECT_ENUM_VALUE = Symbol.for("prisma.objectEnumValue");
201
- var ObjectEnumValue = class {
202
- [PRISMA_OBJECT_ENUM_VALUE] = true;
203
- #representation;
204
- constructor(arg) {
205
- if (arg === secret) {
206
- this.#representation = `Prisma.${this._getName()}`;
207
- } else {
208
- this.#representation = `new Prisma.${this._getNamespace()}.${this._getName()}()`;
209
- }
210
- }
211
- _getName() {
212
- return this.constructor.name;
213
- }
214
- toString() {
215
- return this.#representation;
216
- }
217
- };
218
- function setClassName2(classObject, name) {
219
- Object.defineProperty(classObject, "name", {
220
- value: name,
221
- configurable: true
222
- });
223
- }
224
- var NullTypesEnumValue = class extends ObjectEnumValue {
225
- _getNamespace() {
226
- return "NullTypes";
227
- }
228
- };
229
- var DbNullClass = class extends NullTypesEnumValue {
230
- // Phantom private property to prevent structural type equality
231
- // eslint-disable-next-line no-unused-private-class-members
232
- #_brand_DbNull;
233
- };
234
- setClassName2(DbNullClass, "DbNull");
235
- var JsonNullClass = class extends NullTypesEnumValue {
236
- // Phantom private property to prevent structural type equality
237
- // eslint-disable-next-line no-unused-private-class-members
238
- #_brand_JsonNull;
239
- };
240
- setClassName2(JsonNullClass, "JsonNull");
241
- var AnyNullClass = class extends NullTypesEnumValue {
242
- // Phantom private property to prevent structural type equality
243
- // eslint-disable-next-line no-unused-private-class-members
244
- #_brand_AnyNull;
245
- };
246
- setClassName2(AnyNullClass, "AnyNull");
247
- var NullTypes = {
248
- DbNull: DbNullClass,
249
- JsonNull: JsonNullClass,
250
- AnyNull: AnyNullClass
251
- };
252
- var DbNull = new DbNullClass(secret);
253
- var JsonNull = new JsonNullClass(secret);
254
- var AnyNull = new AnyNullClass(secret);
255
- function isObjectEnumValue(value) {
256
- return typeof value === "object" && value !== null && value[PRISMA_OBJECT_ENUM_VALUE] === true;
257
- }
258
- function isDbNull(value) {
259
- return value === DbNull;
260
- }
261
- function isJsonNull(value) {
262
- return value === JsonNull;
263
- }
264
- function isAnyNull(value) {
265
- return value === AnyNull;
266
- }
267
-
268
- // ../../node_modules/.pnpm/decimal.js@10.5.0/node_modules/decimal.js/decimal.mjs
269
- var EXP_LIMIT = 9e15;
270
- var MAX_DIGITS = 1e9;
271
- var NUMERALS = "0123456789abcdef";
272
- var LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058";
273
- var PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789";
274
- var DEFAULTS = {
275
- // These values must be integers within the stated ranges (inclusive).
276
- // Most of these values can be changed at run-time using the `Decimal.config` method.
277
- // The maximum number of significant digits of the result of a calculation or base conversion.
278
- // E.g. `Decimal.config({ precision: 20 });`
279
- precision: 20,
280
- // 1 to MAX_DIGITS
281
- // The rounding mode used when rounding to `precision`.
282
- //
283
- // ROUND_UP 0 Away from zero.
284
- // ROUND_DOWN 1 Towards zero.
285
- // ROUND_CEIL 2 Towards +Infinity.
286
- // ROUND_FLOOR 3 Towards -Infinity.
287
- // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
288
- // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
289
- // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
290
- // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
291
- // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
292
- //
293
- // E.g.
294
- // `Decimal.rounding = 4;`
295
- // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
296
- rounding: 4,
297
- // 0 to 8
298
- // The modulo mode used when calculating the modulus: a mod n.
299
- // The quotient (q = a / n) is calculated according to the corresponding rounding mode.
300
- // The remainder (r) is calculated as: r = a - n * q.
301
- //
302
- // UP 0 The remainder is positive if the dividend is negative, else is negative.
303
- // DOWN 1 The remainder has the same sign as the dividend (JavaScript %).
304
- // FLOOR 3 The remainder has the same sign as the divisor (Python %).
305
- // HALF_EVEN 6 The IEEE 754 remainder function.
306
- // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive.
307
- //
308
- // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian
309
- // division (9) are commonly used for the modulus operation. The other rounding modes can also
310
- // be used, but they may not give useful results.
311
- modulo: 1,
312
- // 0 to 9
313
- // The exponent value at and beneath which `toString` returns exponential notation.
314
- // JavaScript numbers: -7
315
- toExpNeg: -7,
316
- // 0 to -EXP_LIMIT
317
- // The exponent value at and above which `toString` returns exponential notation.
318
- // JavaScript numbers: 21
319
- toExpPos: 21,
320
- // 0 to EXP_LIMIT
321
- // The minimum exponent value, beneath which underflow to zero occurs.
322
- // JavaScript numbers: -324 (5e-324)
323
- minE: -EXP_LIMIT,
324
- // -1 to -EXP_LIMIT
325
- // The maximum exponent value, above which overflow to Infinity occurs.
326
- // JavaScript numbers: 308 (1.7976931348623157e+308)
327
- maxE: EXP_LIMIT,
328
- // 1 to EXP_LIMIT
329
- // Whether to use cryptographically-secure random number generation, if available.
330
- crypto: false
331
- // true/false
332
- };
333
- var inexact;
334
- var quadrant;
335
- var external = true;
336
- var decimalError = "[DecimalError] ";
337
- var invalidArgument = decimalError + "Invalid argument: ";
338
- var precisionLimitExceeded = decimalError + "Precision limit exceeded";
339
- var cryptoUnavailable = decimalError + "crypto unavailable";
340
- var tag = "[object Decimal]";
341
- var mathfloor = Math.floor;
342
- var mathpow = Math.pow;
343
- var isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i;
344
- var isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i;
345
- var isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i;
346
- var isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
347
- var BASE = 1e7;
348
- var LOG_BASE = 7;
349
- var MAX_SAFE_INTEGER = 9007199254740991;
350
- var LN10_PRECISION = LN10.length - 1;
351
- var PI_PRECISION = PI.length - 1;
352
- var P = { toStringTag: tag };
353
- P.absoluteValue = P.abs = function() {
354
- var x = new this.constructor(this);
355
- if (x.s < 0) x.s = 1;
356
- return finalise(x);
357
- };
358
- P.ceil = function() {
359
- return finalise(new this.constructor(this), this.e + 1, 2);
360
- };
361
- P.clampedTo = P.clamp = function(min2, max2) {
362
- var k, x = this, Ctor = x.constructor;
363
- min2 = new Ctor(min2);
364
- max2 = new Ctor(max2);
365
- if (!min2.s || !max2.s) return new Ctor(NaN);
366
- if (min2.gt(max2)) throw Error(invalidArgument + max2);
367
- k = x.cmp(min2);
368
- return k < 0 ? min2 : x.cmp(max2) > 0 ? max2 : new Ctor(x);
369
- };
370
- P.comparedTo = P.cmp = function(y) {
371
- var i, j, xdL, ydL, x = this, xd = x.d, yd = (y = new x.constructor(y)).d, xs = x.s, ys = y.s;
372
- if (!xd || !yd) {
373
- return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1;
374
- }
375
- if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0;
376
- if (xs !== ys) return xs;
377
- if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1;
378
- xdL = xd.length;
379
- ydL = yd.length;
380
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
381
- if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1;
382
- }
383
- return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1;
384
- };
385
- P.cosine = P.cos = function() {
386
- var pr, rm, x = this, Ctor = x.constructor;
387
- if (!x.d) return new Ctor(NaN);
388
- if (!x.d[0]) return new Ctor(1);
389
- pr = Ctor.precision;
390
- rm = Ctor.rounding;
391
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
392
- Ctor.rounding = 1;
393
- x = cosine(Ctor, toLessThanHalfPi(Ctor, x));
394
- Ctor.precision = pr;
395
- Ctor.rounding = rm;
396
- return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true);
397
- };
398
- P.cubeRoot = P.cbrt = function() {
399
- var e, m, n, r, rep, s, sd, t, t3, t3plusx, x = this, Ctor = x.constructor;
400
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
401
- external = false;
402
- s = x.s * mathpow(x.s * x, 1 / 3);
403
- if (!s || Math.abs(s) == 1 / 0) {
404
- n = digitsToString(x.d);
405
- e = x.e;
406
- if (s = (e - n.length + 1) % 3) n += s == 1 || s == -2 ? "0" : "00";
407
- s = mathpow(n, 1 / 3);
408
- e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));
409
- if (s == 1 / 0) {
410
- n = "5e" + e;
411
- } else {
412
- n = s.toExponential();
413
- n = n.slice(0, n.indexOf("e") + 1) + e;
414
- }
415
- r = new Ctor(n);
416
- r.s = x.s;
417
- } else {
418
- r = new Ctor(s.toString());
419
- }
420
- sd = (e = Ctor.precision) + 3;
421
- for (; ; ) {
422
- t = r;
423
- t3 = t.times(t).times(t);
424
- t3plusx = t3.plus(x);
425
- r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1);
426
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
427
- n = n.slice(sd - 3, sd + 1);
428
- if (n == "9999" || !rep && n == "4999") {
429
- if (!rep) {
430
- finalise(t, e + 1, 0);
431
- if (t.times(t).times(t).eq(x)) {
432
- r = t;
433
- break;
434
- }
435
- }
436
- sd += 4;
437
- rep = 1;
438
- } else {
439
- if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
440
- finalise(r, e + 1, 1);
441
- m = !r.times(r).times(r).eq(x);
442
- }
443
- break;
444
- }
445
- }
446
- }
447
- external = true;
448
- return finalise(r, e, Ctor.rounding, m);
449
- };
450
- P.decimalPlaces = P.dp = function() {
451
- var w, d = this.d, n = NaN;
452
- if (d) {
453
- w = d.length - 1;
454
- n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE;
455
- w = d[w];
456
- if (w) for (; w % 10 == 0; w /= 10) n--;
457
- if (n < 0) n = 0;
458
- }
459
- return n;
460
- };
461
- P.dividedBy = P.div = function(y) {
462
- return divide(this, new this.constructor(y));
463
- };
464
- P.dividedToIntegerBy = P.divToInt = function(y) {
465
- var x = this, Ctor = x.constructor;
466
- return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding);
467
- };
468
- P.equals = P.eq = function(y) {
469
- return this.cmp(y) === 0;
470
- };
471
- P.floor = function() {
472
- return finalise(new this.constructor(this), this.e + 1, 3);
473
- };
474
- P.greaterThan = P.gt = function(y) {
475
- return this.cmp(y) > 0;
476
- };
477
- P.greaterThanOrEqualTo = P.gte = function(y) {
478
- var k = this.cmp(y);
479
- return k == 1 || k === 0;
480
- };
481
- P.hyperbolicCosine = P.cosh = function() {
482
- var k, n, pr, rm, len, x = this, Ctor = x.constructor, one = new Ctor(1);
483
- if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);
484
- if (x.isZero()) return one;
485
- pr = Ctor.precision;
486
- rm = Ctor.rounding;
487
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
488
- Ctor.rounding = 1;
489
- len = x.d.length;
490
- if (len < 32) {
491
- k = Math.ceil(len / 3);
492
- n = (1 / tinyPow(4, k)).toString();
493
- } else {
494
- k = 16;
495
- n = "2.3283064365386962890625e-10";
496
- }
497
- x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true);
498
- var cosh2_x, i = k, d8 = new Ctor(8);
499
- for (; i--; ) {
500
- cosh2_x = x.times(x);
501
- x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));
502
- }
503
- return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true);
504
- };
505
- P.hyperbolicSine = P.sinh = function() {
506
- var k, pr, rm, len, x = this, Ctor = x.constructor;
507
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
508
- pr = Ctor.precision;
509
- rm = Ctor.rounding;
510
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
511
- Ctor.rounding = 1;
512
- len = x.d.length;
513
- if (len < 3) {
514
- x = taylorSeries(Ctor, 2, x, x, true);
515
- } else {
516
- k = 1.4 * Math.sqrt(len);
517
- k = k > 16 ? 16 : k | 0;
518
- x = x.times(1 / tinyPow(5, k));
519
- x = taylorSeries(Ctor, 2, x, x, true);
520
- var sinh2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20);
521
- for (; k--; ) {
522
- sinh2_x = x.times(x);
523
- x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))));
524
- }
525
- }
526
- Ctor.precision = pr;
527
- Ctor.rounding = rm;
528
- return finalise(x, pr, rm, true);
529
- };
530
- P.hyperbolicTangent = P.tanh = function() {
531
- var pr, rm, x = this, Ctor = x.constructor;
532
- if (!x.isFinite()) return new Ctor(x.s);
533
- if (x.isZero()) return new Ctor(x);
534
- pr = Ctor.precision;
535
- rm = Ctor.rounding;
536
- Ctor.precision = pr + 7;
537
- Ctor.rounding = 1;
538
- return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
539
- };
540
- P.inverseCosine = P.acos = function() {
541
- var x = this, Ctor = x.constructor, k = x.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
542
- if (k !== -1) {
543
- return k === 0 ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
544
- }
545
- if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5);
546
- Ctor.precision = pr + 6;
547
- Ctor.rounding = 1;
548
- x = new Ctor(1).minus(x).div(x.plus(1)).sqrt().atan();
549
- Ctor.precision = pr;
550
- Ctor.rounding = rm;
551
- return x.times(2);
552
- };
553
- P.inverseHyperbolicCosine = P.acosh = function() {
554
- var pr, rm, x = this, Ctor = x.constructor;
555
- if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN);
556
- if (!x.isFinite()) return new Ctor(x);
557
- pr = Ctor.precision;
558
- rm = Ctor.rounding;
559
- Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4;
560
- Ctor.rounding = 1;
561
- external = false;
562
- x = x.times(x).minus(1).sqrt().plus(x);
563
- external = true;
564
- Ctor.precision = pr;
565
- Ctor.rounding = rm;
566
- return x.ln();
567
- };
568
- P.inverseHyperbolicSine = P.asinh = function() {
569
- var pr, rm, x = this, Ctor = x.constructor;
570
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
571
- pr = Ctor.precision;
572
- rm = Ctor.rounding;
573
- Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6;
574
- Ctor.rounding = 1;
575
- external = false;
576
- x = x.times(x).plus(1).sqrt().plus(x);
577
- external = true;
578
- Ctor.precision = pr;
579
- Ctor.rounding = rm;
580
- return x.ln();
581
- };
582
- P.inverseHyperbolicTangent = P.atanh = function() {
583
- var pr, rm, wpr, xsd, x = this, Ctor = x.constructor;
584
- if (!x.isFinite()) return new Ctor(NaN);
585
- if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN);
586
- pr = Ctor.precision;
587
- rm = Ctor.rounding;
588
- xsd = x.sd();
589
- if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true);
590
- Ctor.precision = wpr = xsd - x.e;
591
- x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1);
592
- Ctor.precision = pr + 4;
593
- Ctor.rounding = 1;
594
- x = x.ln();
595
- Ctor.precision = pr;
596
- Ctor.rounding = rm;
597
- return x.times(0.5);
598
- };
599
- P.inverseSine = P.asin = function() {
600
- var halfPi, k, pr, rm, x = this, Ctor = x.constructor;
601
- if (x.isZero()) return new Ctor(x);
602
- k = x.abs().cmp(1);
603
- pr = Ctor.precision;
604
- rm = Ctor.rounding;
605
- if (k !== -1) {
606
- if (k === 0) {
607
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
608
- halfPi.s = x.s;
609
- return halfPi;
610
- }
611
- return new Ctor(NaN);
612
- }
613
- Ctor.precision = pr + 6;
614
- Ctor.rounding = 1;
615
- x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan();
616
- Ctor.precision = pr;
617
- Ctor.rounding = rm;
618
- return x.times(2);
619
- };
620
- P.inverseTangent = P.atan = function() {
621
- var i, j, k, n, px, t, r, wpr, x2, x = this, Ctor = x.constructor, pr = Ctor.precision, rm = Ctor.rounding;
622
- if (!x.isFinite()) {
623
- if (!x.s) return new Ctor(NaN);
624
- if (pr + 4 <= PI_PRECISION) {
625
- r = getPi(Ctor, pr + 4, rm).times(0.5);
626
- r.s = x.s;
627
- return r;
628
- }
629
- } else if (x.isZero()) {
630
- return new Ctor(x);
631
- } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) {
632
- r = getPi(Ctor, pr + 4, rm).times(0.25);
633
- r.s = x.s;
634
- return r;
635
- }
636
- Ctor.precision = wpr = pr + 10;
637
- Ctor.rounding = 1;
638
- k = Math.min(28, wpr / LOG_BASE + 2 | 0);
639
- for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1));
640
- external = false;
641
- j = Math.ceil(wpr / LOG_BASE);
642
- n = 1;
643
- x2 = x.times(x);
644
- r = new Ctor(x);
645
- px = x;
646
- for (; i !== -1; ) {
647
- px = px.times(x2);
648
- t = r.minus(px.div(n += 2));
649
- px = px.times(x2);
650
- r = t.plus(px.div(n += 2));
651
- if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--; ) ;
652
- }
653
- if (k) r = r.times(2 << k - 1);
654
- external = true;
655
- return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true);
656
- };
657
- P.isFinite = function() {
658
- return !!this.d;
659
- };
660
- P.isInteger = P.isInt = function() {
661
- return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2;
662
- };
663
- P.isNaN = function() {
664
- return !this.s;
665
- };
666
- P.isNegative = P.isNeg = function() {
667
- return this.s < 0;
668
- };
669
- P.isPositive = P.isPos = function() {
670
- return this.s > 0;
671
- };
672
- P.isZero = function() {
673
- return !!this.d && this.d[0] === 0;
674
- };
675
- P.lessThan = P.lt = function(y) {
676
- return this.cmp(y) < 0;
677
- };
678
- P.lessThanOrEqualTo = P.lte = function(y) {
679
- return this.cmp(y) < 1;
680
- };
681
- P.logarithm = P.log = function(base) {
682
- var isBase10, d, denominator, k, inf, num, sd, r, arg = this, Ctor = arg.constructor, pr = Ctor.precision, rm = Ctor.rounding, guard = 5;
683
- if (base == null) {
684
- base = new Ctor(10);
685
- isBase10 = true;
686
- } else {
687
- base = new Ctor(base);
688
- d = base.d;
689
- if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN);
690
- isBase10 = base.eq(10);
691
- }
692
- d = arg.d;
693
- if (arg.s < 0 || !d || !d[0] || arg.eq(1)) {
694
- return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);
695
- }
696
- if (isBase10) {
697
- if (d.length > 1) {
698
- inf = true;
699
- } else {
700
- for (k = d[0]; k % 10 === 0; ) k /= 10;
701
- inf = k !== 1;
702
- }
703
- }
704
- external = false;
705
- sd = pr + guard;
706
- num = naturalLogarithm(arg, sd);
707
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
708
- r = divide(num, denominator, sd, 1);
709
- if (checkRoundingDigits(r.d, k = pr, rm)) {
710
- do {
711
- sd += 10;
712
- num = naturalLogarithm(arg, sd);
713
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
714
- r = divide(num, denominator, sd, 1);
715
- if (!inf) {
716
- if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 1e14) {
717
- r = finalise(r, pr + 1, 0);
718
- }
719
- break;
720
- }
721
- } while (checkRoundingDigits(r.d, k += 10, rm));
722
- }
723
- external = true;
724
- return finalise(r, pr, rm);
725
- };
726
- P.minus = P.sub = function(y) {
727
- var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd, x = this, Ctor = x.constructor;
728
- y = new Ctor(y);
729
- if (!x.d || !y.d) {
730
- if (!x.s || !y.s) y = new Ctor(NaN);
731
- else if (x.d) y.s = -y.s;
732
- else y = new Ctor(y.d || x.s !== y.s ? x : NaN);
733
- return y;
734
- }
735
- if (x.s != y.s) {
736
- y.s = -y.s;
737
- return x.plus(y);
738
- }
739
- xd = x.d;
740
- yd = y.d;
741
- pr = Ctor.precision;
742
- rm = Ctor.rounding;
743
- if (!xd[0] || !yd[0]) {
744
- if (yd[0]) y.s = -y.s;
745
- else if (xd[0]) y = new Ctor(x);
746
- else return new Ctor(rm === 3 ? -0 : 0);
747
- return external ? finalise(y, pr, rm) : y;
748
- }
749
- e = mathfloor(y.e / LOG_BASE);
750
- xe = mathfloor(x.e / LOG_BASE);
751
- xd = xd.slice();
752
- k = xe - e;
753
- if (k) {
754
- xLTy = k < 0;
755
- if (xLTy) {
756
- d = xd;
757
- k = -k;
758
- len = yd.length;
759
- } else {
760
- d = yd;
761
- e = xe;
762
- len = xd.length;
763
- }
764
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
765
- if (k > i) {
766
- k = i;
767
- d.length = 1;
768
- }
769
- d.reverse();
770
- for (i = k; i--; ) d.push(0);
771
- d.reverse();
772
- } else {
773
- i = xd.length;
774
- len = yd.length;
775
- xLTy = i < len;
776
- if (xLTy) len = i;
777
- for (i = 0; i < len; i++) {
778
- if (xd[i] != yd[i]) {
779
- xLTy = xd[i] < yd[i];
780
- break;
781
- }
782
- }
783
- k = 0;
784
- }
785
- if (xLTy) {
786
- d = xd;
787
- xd = yd;
788
- yd = d;
789
- y.s = -y.s;
790
- }
791
- len = xd.length;
792
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
793
- for (i = yd.length; i > k; ) {
794
- if (xd[--i] < yd[i]) {
795
- for (j = i; j && xd[--j] === 0; ) xd[j] = BASE - 1;
796
- --xd[j];
797
- xd[i] += BASE;
798
- }
799
- xd[i] -= yd[i];
800
- }
801
- for (; xd[--len] === 0; ) xd.pop();
802
- for (; xd[0] === 0; xd.shift()) --e;
803
- if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0);
804
- y.d = xd;
805
- y.e = getBase10Exponent(xd, e);
806
- return external ? finalise(y, pr, rm) : y;
807
- };
808
- P.modulo = P.mod = function(y) {
809
- var q, x = this, Ctor = x.constructor;
810
- y = new Ctor(y);
811
- if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN);
812
- if (!y.d || x.d && !x.d[0]) {
813
- return finalise(new Ctor(x), Ctor.precision, Ctor.rounding);
814
- }
815
- external = false;
816
- if (Ctor.modulo == 9) {
817
- q = divide(x, y.abs(), 0, 3, 1);
818
- q.s *= y.s;
819
- } else {
820
- q = divide(x, y, 0, Ctor.modulo, 1);
821
- }
822
- q = q.times(y);
823
- external = true;
824
- return x.minus(q);
825
- };
826
- P.naturalExponential = P.exp = function() {
827
- return naturalExponential(this);
828
- };
829
- P.naturalLogarithm = P.ln = function() {
830
- return naturalLogarithm(this);
831
- };
832
- P.negated = P.neg = function() {
833
- var x = new this.constructor(this);
834
- x.s = -x.s;
835
- return finalise(x);
836
- };
837
- P.plus = P.add = function(y) {
838
- var carry, d, e, i, k, len, pr, rm, xd, yd, x = this, Ctor = x.constructor;
839
- y = new Ctor(y);
840
- if (!x.d || !y.d) {
841
- if (!x.s || !y.s) y = new Ctor(NaN);
842
- else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN);
843
- return y;
844
- }
845
- if (x.s != y.s) {
846
- y.s = -y.s;
847
- return x.minus(y);
848
- }
849
- xd = x.d;
850
- yd = y.d;
851
- pr = Ctor.precision;
852
- rm = Ctor.rounding;
853
- if (!xd[0] || !yd[0]) {
854
- if (!yd[0]) y = new Ctor(x);
855
- return external ? finalise(y, pr, rm) : y;
856
- }
857
- k = mathfloor(x.e / LOG_BASE);
858
- e = mathfloor(y.e / LOG_BASE);
859
- xd = xd.slice();
860
- i = k - e;
861
- if (i) {
862
- if (i < 0) {
863
- d = xd;
864
- i = -i;
865
- len = yd.length;
866
- } else {
867
- d = yd;
868
- e = k;
869
- len = xd.length;
870
- }
871
- k = Math.ceil(pr / LOG_BASE);
872
- len = k > len ? k + 1 : len + 1;
873
- if (i > len) {
874
- i = len;
875
- d.length = 1;
876
- }
877
- d.reverse();
878
- for (; i--; ) d.push(0);
879
- d.reverse();
880
- }
881
- len = xd.length;
882
- i = yd.length;
883
- if (len - i < 0) {
884
- i = len;
885
- d = yd;
886
- yd = xd;
887
- xd = d;
888
- }
889
- for (carry = 0; i; ) {
890
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
891
- xd[i] %= BASE;
892
- }
893
- if (carry) {
894
- xd.unshift(carry);
895
- ++e;
896
- }
897
- for (len = xd.length; xd[--len] == 0; ) xd.pop();
898
- y.d = xd;
899
- y.e = getBase10Exponent(xd, e);
900
- return external ? finalise(y, pr, rm) : y;
901
- };
902
- P.precision = P.sd = function(z) {
903
- var k, x = this;
904
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
905
- if (x.d) {
906
- k = getPrecision(x.d);
907
- if (z && x.e + 1 > k) k = x.e + 1;
908
- } else {
909
- k = NaN;
910
- }
911
- return k;
912
- };
913
- P.round = function() {
914
- var x = this, Ctor = x.constructor;
915
- return finalise(new Ctor(x), x.e + 1, Ctor.rounding);
916
- };
917
- P.sine = P.sin = function() {
918
- var pr, rm, x = this, Ctor = x.constructor;
919
- if (!x.isFinite()) return new Ctor(NaN);
920
- if (x.isZero()) return new Ctor(x);
921
- pr = Ctor.precision;
922
- rm = Ctor.rounding;
923
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
924
- Ctor.rounding = 1;
925
- x = sine(Ctor, toLessThanHalfPi(Ctor, x));
926
- Ctor.precision = pr;
927
- Ctor.rounding = rm;
928
- return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true);
929
- };
930
- P.squareRoot = P.sqrt = function() {
931
- var m, n, sd, r, rep, t, x = this, d = x.d, e = x.e, s = x.s, Ctor = x.constructor;
932
- if (s !== 1 || !d || !d[0]) {
933
- return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);
934
- }
935
- external = false;
936
- s = Math.sqrt(+x);
937
- if (s == 0 || s == 1 / 0) {
938
- n = digitsToString(d);
939
- if ((n.length + e) % 2 == 0) n += "0";
940
- s = Math.sqrt(n);
941
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
942
- if (s == 1 / 0) {
943
- n = "5e" + e;
944
- } else {
945
- n = s.toExponential();
946
- n = n.slice(0, n.indexOf("e") + 1) + e;
947
- }
948
- r = new Ctor(n);
949
- } else {
950
- r = new Ctor(s.toString());
951
- }
952
- sd = (e = Ctor.precision) + 3;
953
- for (; ; ) {
954
- t = r;
955
- r = t.plus(divide(x, t, sd + 2, 1)).times(0.5);
956
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
957
- n = n.slice(sd - 3, sd + 1);
958
- if (n == "9999" || !rep && n == "4999") {
959
- if (!rep) {
960
- finalise(t, e + 1, 0);
961
- if (t.times(t).eq(x)) {
962
- r = t;
963
- break;
964
- }
965
- }
966
- sd += 4;
967
- rep = 1;
968
- } else {
969
- if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
970
- finalise(r, e + 1, 1);
971
- m = !r.times(r).eq(x);
972
- }
973
- break;
974
- }
975
- }
976
- }
977
- external = true;
978
- return finalise(r, e, Ctor.rounding, m);
979
- };
980
- P.tangent = P.tan = function() {
981
- var pr, rm, x = this, Ctor = x.constructor;
982
- if (!x.isFinite()) return new Ctor(NaN);
983
- if (x.isZero()) return new Ctor(x);
984
- pr = Ctor.precision;
985
- rm = Ctor.rounding;
986
- Ctor.precision = pr + 10;
987
- Ctor.rounding = 1;
988
- x = x.sin();
989
- x.s = 1;
990
- x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0);
991
- Ctor.precision = pr;
992
- Ctor.rounding = rm;
993
- return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true);
994
- };
995
- P.times = P.mul = function(y) {
996
- var carry, e, i, k, r, rL, t, xdL, ydL, x = this, Ctor = x.constructor, xd = x.d, yd = (y = new Ctor(y)).d;
997
- y.s *= x.s;
998
- if (!xd || !xd[0] || !yd || !yd[0]) {
999
- return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd ? NaN : !xd || !yd ? y.s / 0 : y.s * 0);
1000
- }
1001
- e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE);
1002
- xdL = xd.length;
1003
- ydL = yd.length;
1004
- if (xdL < ydL) {
1005
- r = xd;
1006
- xd = yd;
1007
- yd = r;
1008
- rL = xdL;
1009
- xdL = ydL;
1010
- ydL = rL;
1011
- }
1012
- r = [];
1013
- rL = xdL + ydL;
1014
- for (i = rL; i--; ) r.push(0);
1015
- for (i = ydL; --i >= 0; ) {
1016
- carry = 0;
1017
- for (k = xdL + i; k > i; ) {
1018
- t = r[k] + yd[i] * xd[k - i - 1] + carry;
1019
- r[k--] = t % BASE | 0;
1020
- carry = t / BASE | 0;
1021
- }
1022
- r[k] = (r[k] + carry) % BASE | 0;
1023
- }
1024
- for (; !r[--rL]; ) r.pop();
1025
- if (carry) ++e;
1026
- else r.shift();
1027
- y.d = r;
1028
- y.e = getBase10Exponent(r, e);
1029
- return external ? finalise(y, Ctor.precision, Ctor.rounding) : y;
1030
- };
1031
- P.toBinary = function(sd, rm) {
1032
- return toStringBinary(this, 2, sd, rm);
1033
- };
1034
- P.toDecimalPlaces = P.toDP = function(dp, rm) {
1035
- var x = this, Ctor = x.constructor;
1036
- x = new Ctor(x);
1037
- if (dp === void 0) return x;
1038
- checkInt32(dp, 0, MAX_DIGITS);
1039
- if (rm === void 0) rm = Ctor.rounding;
1040
- else checkInt32(rm, 0, 8);
1041
- return finalise(x, dp + x.e + 1, rm);
1042
- };
1043
- P.toExponential = function(dp, rm) {
1044
- var str, x = this, Ctor = x.constructor;
1045
- if (dp === void 0) {
1046
- str = finiteToString(x, true);
1047
- } else {
1048
- checkInt32(dp, 0, MAX_DIGITS);
1049
- if (rm === void 0) rm = Ctor.rounding;
1050
- else checkInt32(rm, 0, 8);
1051
- x = finalise(new Ctor(x), dp + 1, rm);
1052
- str = finiteToString(x, true, dp + 1);
1053
- }
1054
- return x.isNeg() && !x.isZero() ? "-" + str : str;
1055
- };
1056
- P.toFixed = function(dp, rm) {
1057
- var str, y, x = this, Ctor = x.constructor;
1058
- if (dp === void 0) {
1059
- str = finiteToString(x);
1060
- } else {
1061
- checkInt32(dp, 0, MAX_DIGITS);
1062
- if (rm === void 0) rm = Ctor.rounding;
1063
- else checkInt32(rm, 0, 8);
1064
- y = finalise(new Ctor(x), dp + x.e + 1, rm);
1065
- str = finiteToString(y, false, dp + y.e + 1);
1066
- }
1067
- return x.isNeg() && !x.isZero() ? "-" + str : str;
1068
- };
1069
- P.toFraction = function(maxD) {
1070
- var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r, x = this, xd = x.d, Ctor = x.constructor;
1071
- if (!xd) return new Ctor(x);
1072
- n1 = d0 = new Ctor(1);
1073
- d1 = n0 = new Ctor(0);
1074
- d = new Ctor(d1);
1075
- e = d.e = getPrecision(xd) - x.e - 1;
1076
- k = e % LOG_BASE;
1077
- d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k);
1078
- if (maxD == null) {
1079
- maxD = e > 0 ? d : n1;
1080
- } else {
1081
- n = new Ctor(maxD);
1082
- if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n);
1083
- maxD = n.gt(d) ? e > 0 ? d : n1 : n;
1084
- }
1085
- external = false;
1086
- n = new Ctor(digitsToString(xd));
1087
- pr = Ctor.precision;
1088
- Ctor.precision = e = xd.length * LOG_BASE * 2;
1089
- for (; ; ) {
1090
- q = divide(n, d, 0, 1, 1);
1091
- d2 = d0.plus(q.times(d1));
1092
- if (d2.cmp(maxD) == 1) break;
1093
- d0 = d1;
1094
- d1 = d2;
1095
- d2 = n1;
1096
- n1 = n0.plus(q.times(d2));
1097
- n0 = d2;
1098
- d2 = d;
1099
- d = n.minus(q.times(d2));
1100
- n = d2;
1101
- }
1102
- d2 = divide(maxD.minus(d0), d1, 0, 1, 1);
1103
- n0 = n0.plus(d2.times(n1));
1104
- d0 = d0.plus(d2.times(d1));
1105
- n0.s = n1.s = x.s;
1106
- r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0];
1107
- Ctor.precision = pr;
1108
- external = true;
1109
- return r;
1110
- };
1111
- P.toHexadecimal = P.toHex = function(sd, rm) {
1112
- return toStringBinary(this, 16, sd, rm);
1113
- };
1114
- P.toNearest = function(y, rm) {
1115
- var x = this, Ctor = x.constructor;
1116
- x = new Ctor(x);
1117
- if (y == null) {
1118
- if (!x.d) return x;
1119
- y = new Ctor(1);
1120
- rm = Ctor.rounding;
1121
- } else {
1122
- y = new Ctor(y);
1123
- if (rm === void 0) {
1124
- rm = Ctor.rounding;
1125
- } else {
1126
- checkInt32(rm, 0, 8);
1127
- }
1128
- if (!x.d) return y.s ? x : y;
1129
- if (!y.d) {
1130
- if (y.s) y.s = x.s;
1131
- return y;
1132
- }
1133
- }
1134
- if (y.d[0]) {
1135
- external = false;
1136
- x = divide(x, y, 0, rm, 1).times(y);
1137
- external = true;
1138
- finalise(x);
1139
- } else {
1140
- y.s = x.s;
1141
- x = y;
1142
- }
1143
- return x;
1144
- };
1145
- P.toNumber = function() {
1146
- return +this;
1147
- };
1148
- P.toOctal = function(sd, rm) {
1149
- return toStringBinary(this, 8, sd, rm);
1150
- };
1151
- P.toPower = P.pow = function(y) {
1152
- var e, k, pr, r, rm, s, x = this, Ctor = x.constructor, yn = +(y = new Ctor(y));
1153
- if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn));
1154
- x = new Ctor(x);
1155
- if (x.eq(1)) return x;
1156
- pr = Ctor.precision;
1157
- rm = Ctor.rounding;
1158
- if (y.eq(1)) return finalise(x, pr, rm);
1159
- e = mathfloor(y.e / LOG_BASE);
1160
- if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
1161
- r = intPow(Ctor, x, k, pr);
1162
- return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm);
1163
- }
1164
- s = x.s;
1165
- if (s < 0) {
1166
- if (e < y.d.length - 1) return new Ctor(NaN);
1167
- if ((y.d[e] & 1) == 0) s = 1;
1168
- if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) {
1169
- x.s = s;
1170
- return x;
1171
- }
1172
- }
1173
- k = mathpow(+x, yn);
1174
- e = k == 0 || !isFinite(k) ? mathfloor(yn * (Math.log("0." + digitsToString(x.d)) / Math.LN10 + x.e + 1)) : new Ctor(k + "").e;
1175
- if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0);
1176
- external = false;
1177
- Ctor.rounding = x.s = 1;
1178
- k = Math.min(12, (e + "").length);
1179
- r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr);
1180
- if (r.d) {
1181
- r = finalise(r, pr + 5, 1);
1182
- if (checkRoundingDigits(r.d, pr, rm)) {
1183
- e = pr + 10;
1184
- r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1);
1185
- if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 1e14) {
1186
- r = finalise(r, pr + 1, 0);
1187
- }
1188
- }
1189
- }
1190
- r.s = s;
1191
- external = true;
1192
- Ctor.rounding = rm;
1193
- return finalise(r, pr, rm);
1194
- };
1195
- P.toPrecision = function(sd, rm) {
1196
- var str, x = this, Ctor = x.constructor;
1197
- if (sd === void 0) {
1198
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
1199
- } else {
1200
- checkInt32(sd, 1, MAX_DIGITS);
1201
- if (rm === void 0) rm = Ctor.rounding;
1202
- else checkInt32(rm, 0, 8);
1203
- x = finalise(new Ctor(x), sd, rm);
1204
- str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd);
1205
- }
1206
- return x.isNeg() && !x.isZero() ? "-" + str : str;
1207
- };
1208
- P.toSignificantDigits = P.toSD = function(sd, rm) {
1209
- var x = this, Ctor = x.constructor;
1210
- if (sd === void 0) {
1211
- sd = Ctor.precision;
1212
- rm = Ctor.rounding;
1213
- } else {
1214
- checkInt32(sd, 1, MAX_DIGITS);
1215
- if (rm === void 0) rm = Ctor.rounding;
1216
- else checkInt32(rm, 0, 8);
1217
- }
1218
- return finalise(new Ctor(x), sd, rm);
1219
- };
1220
- P.toString = function() {
1221
- var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
1222
- return x.isNeg() && !x.isZero() ? "-" + str : str;
1223
- };
1224
- P.truncated = P.trunc = function() {
1225
- return finalise(new this.constructor(this), this.e + 1, 1);
1226
- };
1227
- P.valueOf = P.toJSON = function() {
1228
- var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
1229
- return x.isNeg() ? "-" + str : str;
1230
- };
1231
- function digitsToString(d) {
1232
- var i, k, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
1233
- if (indexOfLastWord > 0) {
1234
- str += w;
1235
- for (i = 1; i < indexOfLastWord; i++) {
1236
- ws = d[i] + "";
1237
- k = LOG_BASE - ws.length;
1238
- if (k) str += getZeroString(k);
1239
- str += ws;
1240
- }
1241
- w = d[i];
1242
- ws = w + "";
1243
- k = LOG_BASE - ws.length;
1244
- if (k) str += getZeroString(k);
1245
- } else if (w === 0) {
1246
- return "0";
1247
- }
1248
- for (; w % 10 === 0; ) w /= 10;
1249
- return str + w;
1250
- }
1251
- function checkInt32(i, min2, max2) {
1252
- if (i !== ~~i || i < min2 || i > max2) {
1253
- throw Error(invalidArgument + i);
1254
- }
1255
- }
1256
- function checkRoundingDigits(d, i, rm, repeating) {
1257
- var di, k, r, rd;
1258
- for (k = d[0]; k >= 10; k /= 10) --i;
1259
- if (--i < 0) {
1260
- i += LOG_BASE;
1261
- di = 0;
1262
- } else {
1263
- di = Math.ceil((i + 1) / LOG_BASE);
1264
- i %= LOG_BASE;
1265
- }
1266
- k = mathpow(10, LOG_BASE - i);
1267
- rd = d[di] % k | 0;
1268
- if (repeating == null) {
1269
- if (i < 3) {
1270
- if (i == 0) rd = rd / 100 | 0;
1271
- else if (i == 1) rd = rd / 10 | 0;
1272
- r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 5e4 || rd == 0;
1273
- } else {
1274
- r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) && (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 || (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;
1275
- }
1276
- } else {
1277
- if (i < 4) {
1278
- if (i == 0) rd = rd / 1e3 | 0;
1279
- else if (i == 1) rd = rd / 100 | 0;
1280
- else if (i == 2) rd = rd / 10 | 0;
1281
- r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999;
1282
- } else {
1283
- r = ((repeating || rm < 4) && rd + 1 == k || !repeating && rm > 3 && rd + 1 == k / 2) && (d[di + 1] / k / 1e3 | 0) == mathpow(10, i - 3) - 1;
1284
- }
1285
- }
1286
- return r;
1287
- }
1288
- function convertBase(str, baseIn, baseOut) {
1289
- var j, arr = [0], arrL, i = 0, strL = str.length;
1290
- for (; i < strL; ) {
1291
- for (arrL = arr.length; arrL--; ) arr[arrL] *= baseIn;
1292
- arr[0] += NUMERALS.indexOf(str.charAt(i++));
1293
- for (j = 0; j < arr.length; j++) {
1294
- if (arr[j] > baseOut - 1) {
1295
- if (arr[j + 1] === void 0) arr[j + 1] = 0;
1296
- arr[j + 1] += arr[j] / baseOut | 0;
1297
- arr[j] %= baseOut;
1298
- }
1299
- }
1300
- }
1301
- return arr.reverse();
1302
- }
1303
- function cosine(Ctor, x) {
1304
- var k, len, y;
1305
- if (x.isZero()) return x;
1306
- len = x.d.length;
1307
- if (len < 32) {
1308
- k = Math.ceil(len / 3);
1309
- y = (1 / tinyPow(4, k)).toString();
1310
- } else {
1311
- k = 16;
1312
- y = "2.3283064365386962890625e-10";
1313
- }
1314
- Ctor.precision += k;
1315
- x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1));
1316
- for (var i = k; i--; ) {
1317
- var cos2x = x.times(x);
1318
- x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1);
1319
- }
1320
- Ctor.precision -= k;
1321
- return x;
1322
- }
1323
- var divide = /* @__PURE__ */ function() {
1324
- function multiplyInteger(x, k, base) {
1325
- var temp, carry = 0, i = x.length;
1326
- for (x = x.slice(); i--; ) {
1327
- temp = x[i] * k + carry;
1328
- x[i] = temp % base | 0;
1329
- carry = temp / base | 0;
1330
- }
1331
- if (carry) x.unshift(carry);
1332
- return x;
1333
- }
1334
- function compare(a, b, aL, bL) {
1335
- var i, r;
1336
- if (aL != bL) {
1337
- r = aL > bL ? 1 : -1;
1338
- } else {
1339
- for (i = r = 0; i < aL; i++) {
1340
- if (a[i] != b[i]) {
1341
- r = a[i] > b[i] ? 1 : -1;
1342
- break;
1343
- }
1344
- }
1345
- }
1346
- return r;
1347
- }
1348
- function subtract(a, b, aL, base) {
1349
- var i = 0;
1350
- for (; aL--; ) {
1351
- a[aL] -= i;
1352
- i = a[aL] < b[aL] ? 1 : 0;
1353
- a[aL] = i * base + a[aL] - b[aL];
1354
- }
1355
- for (; !a[0] && a.length > 1; ) a.shift();
1356
- }
1357
- return function(x, y, pr, rm, dp, base) {
1358
- var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x.constructor, sign2 = x.s == y.s ? 1 : -1, xd = x.d, yd = y.d;
1359
- if (!xd || !xd[0] || !yd || !yd[0]) {
1360
- return new Ctor(
1361
- // Return NaN if either NaN, or both Infinity or 0.
1362
- !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN : (
1363
- // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
1364
- xd && xd[0] == 0 || !yd ? sign2 * 0 : sign2 / 0
1365
- )
1366
- );
1367
- }
1368
- if (base) {
1369
- logBase = 1;
1370
- e = x.e - y.e;
1371
- } else {
1372
- base = BASE;
1373
- logBase = LOG_BASE;
1374
- e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
1375
- }
1376
- yL = yd.length;
1377
- xL = xd.length;
1378
- q = new Ctor(sign2);
1379
- qd = q.d = [];
1380
- for (i = 0; yd[i] == (xd[i] || 0); i++) ;
1381
- if (yd[i] > (xd[i] || 0)) e--;
1382
- if (pr == null) {
1383
- sd = pr = Ctor.precision;
1384
- rm = Ctor.rounding;
1385
- } else if (dp) {
1386
- sd = pr + (x.e - y.e) + 1;
1387
- } else {
1388
- sd = pr;
1389
- }
1390
- if (sd < 0) {
1391
- qd.push(1);
1392
- more = true;
1393
- } else {
1394
- sd = sd / logBase + 2 | 0;
1395
- i = 0;
1396
- if (yL == 1) {
1397
- k = 0;
1398
- yd = yd[0];
1399
- sd++;
1400
- for (; (i < xL || k) && sd--; i++) {
1401
- t = k * base + (xd[i] || 0);
1402
- qd[i] = t / yd | 0;
1403
- k = t % yd | 0;
1404
- }
1405
- more = k || i < xL;
1406
- } else {
1407
- k = base / (yd[0] + 1) | 0;
1408
- if (k > 1) {
1409
- yd = multiplyInteger(yd, k, base);
1410
- xd = multiplyInteger(xd, k, base);
1411
- yL = yd.length;
1412
- xL = xd.length;
1413
- }
1414
- xi = yL;
1415
- rem = xd.slice(0, yL);
1416
- remL = rem.length;
1417
- for (; remL < yL; ) rem[remL++] = 0;
1418
- yz = yd.slice();
1419
- yz.unshift(0);
1420
- yd0 = yd[0];
1421
- if (yd[1] >= base / 2) ++yd0;
1422
- do {
1423
- k = 0;
1424
- cmp = compare(yd, rem, yL, remL);
1425
- if (cmp < 0) {
1426
- rem0 = rem[0];
1427
- if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
1428
- k = rem0 / yd0 | 0;
1429
- if (k > 1) {
1430
- if (k >= base) k = base - 1;
1431
- prod = multiplyInteger(yd, k, base);
1432
- prodL = prod.length;
1433
- remL = rem.length;
1434
- cmp = compare(prod, rem, prodL, remL);
1435
- if (cmp == 1) {
1436
- k--;
1437
- subtract(prod, yL < prodL ? yz : yd, prodL, base);
1438
- }
1439
- } else {
1440
- if (k == 0) cmp = k = 1;
1441
- prod = yd.slice();
1442
- }
1443
- prodL = prod.length;
1444
- if (prodL < remL) prod.unshift(0);
1445
- subtract(rem, prod, remL, base);
1446
- if (cmp == -1) {
1447
- remL = rem.length;
1448
- cmp = compare(yd, rem, yL, remL);
1449
- if (cmp < 1) {
1450
- k++;
1451
- subtract(rem, yL < remL ? yz : yd, remL, base);
1452
- }
1453
- }
1454
- remL = rem.length;
1455
- } else if (cmp === 0) {
1456
- k++;
1457
- rem = [0];
1458
- }
1459
- qd[i++] = k;
1460
- if (cmp && rem[0]) {
1461
- rem[remL++] = xd[xi] || 0;
1462
- } else {
1463
- rem = [xd[xi]];
1464
- remL = 1;
1465
- }
1466
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
1467
- more = rem[0] !== void 0;
1468
- }
1469
- if (!qd[0]) qd.shift();
1470
- }
1471
- if (logBase == 1) {
1472
- q.e = e;
1473
- inexact = more;
1474
- } else {
1475
- for (i = 1, k = qd[0]; k >= 10; k /= 10) i++;
1476
- q.e = i + e * logBase - 1;
1477
- finalise(q, dp ? pr + q.e + 1 : pr, rm, more);
1478
- }
1479
- return q;
1480
- };
1481
- }();
1482
- function finalise(x, sd, rm, isTruncated) {
1483
- var digits, i, j, k, rd, roundUp, w, xd, xdi, Ctor = x.constructor;
1484
- out: if (sd != null) {
1485
- xd = x.d;
1486
- if (!xd) return x;
1487
- for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++;
1488
- i = sd - digits;
1489
- if (i < 0) {
1490
- i += LOG_BASE;
1491
- j = sd;
1492
- w = xd[xdi = 0];
1493
- rd = w / mathpow(10, digits - j - 1) % 10 | 0;
1494
- } else {
1495
- xdi = Math.ceil((i + 1) / LOG_BASE);
1496
- k = xd.length;
1497
- if (xdi >= k) {
1498
- if (isTruncated) {
1499
- for (; k++ <= xdi; ) xd.push(0);
1500
- w = rd = 0;
1501
- digits = 1;
1502
- i %= LOG_BASE;
1503
- j = i - LOG_BASE + 1;
1504
- } else {
1505
- break out;
1506
- }
1507
- } else {
1508
- w = k = xd[xdi];
1509
- for (digits = 1; k >= 10; k /= 10) digits++;
1510
- i %= LOG_BASE;
1511
- j = i - LOG_BASE + digits;
1512
- rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;
1513
- }
1514
- }
1515
- isTruncated = isTruncated || sd < 0 || xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1));
1516
- roundUp = rm < 4 ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
1517
- (i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7));
1518
- if (sd < 1 || !xd[0]) {
1519
- xd.length = 0;
1520
- if (roundUp) {
1521
- sd -= x.e + 1;
1522
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
1523
- x.e = -sd || 0;
1524
- } else {
1525
- xd[0] = x.e = 0;
1526
- }
1527
- return x;
1528
- }
1529
- if (i == 0) {
1530
- xd.length = xdi;
1531
- k = 1;
1532
- xdi--;
1533
- } else {
1534
- xd.length = xdi + 1;
1535
- k = mathpow(10, LOG_BASE - i);
1536
- xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0;
1537
- }
1538
- if (roundUp) {
1539
- for (; ; ) {
1540
- if (xdi == 0) {
1541
- for (i = 1, j = xd[0]; j >= 10; j /= 10) i++;
1542
- j = xd[0] += k;
1543
- for (k = 1; j >= 10; j /= 10) k++;
1544
- if (i != k) {
1545
- x.e++;
1546
- if (xd[0] == BASE) xd[0] = 1;
1547
- }
1548
- break;
1549
- } else {
1550
- xd[xdi] += k;
1551
- if (xd[xdi] != BASE) break;
1552
- xd[xdi--] = 0;
1553
- k = 1;
1554
- }
1555
- }
1556
- }
1557
- for (i = xd.length; xd[--i] === 0; ) xd.pop();
1558
- }
1559
- if (external) {
1560
- if (x.e > Ctor.maxE) {
1561
- x.d = null;
1562
- x.e = NaN;
1563
- } else if (x.e < Ctor.minE) {
1564
- x.e = 0;
1565
- x.d = [0];
1566
- }
1567
- }
1568
- return x;
1569
- }
1570
- function finiteToString(x, isExp, sd) {
1571
- if (!x.isFinite()) return nonFiniteToString(x);
1572
- var k, e = x.e, str = digitsToString(x.d), len = str.length;
1573
- if (isExp) {
1574
- if (sd && (k = sd - len) > 0) {
1575
- str = str.charAt(0) + "." + str.slice(1) + getZeroString(k);
1576
- } else if (len > 1) {
1577
- str = str.charAt(0) + "." + str.slice(1);
1578
- }
1579
- str = str + (x.e < 0 ? "e" : "e+") + x.e;
1580
- } else if (e < 0) {
1581
- str = "0." + getZeroString(-e - 1) + str;
1582
- if (sd && (k = sd - len) > 0) str += getZeroString(k);
1583
- } else if (e >= len) {
1584
- str += getZeroString(e + 1 - len);
1585
- if (sd && (k = sd - e - 1) > 0) str = str + "." + getZeroString(k);
1586
- } else {
1587
- if ((k = e + 1) < len) str = str.slice(0, k) + "." + str.slice(k);
1588
- if (sd && (k = sd - len) > 0) {
1589
- if (e + 1 === len) str += ".";
1590
- str += getZeroString(k);
1591
- }
1592
- }
1593
- return str;
1594
- }
1595
- function getBase10Exponent(digits, e) {
1596
- var w = digits[0];
1597
- for (e *= LOG_BASE; w >= 10; w /= 10) e++;
1598
- return e;
1599
- }
1600
- function getLn10(Ctor, sd, pr) {
1601
- if (sd > LN10_PRECISION) {
1602
- external = true;
1603
- if (pr) Ctor.precision = pr;
1604
- throw Error(precisionLimitExceeded);
1605
- }
1606
- return finalise(new Ctor(LN10), sd, 1, true);
1607
- }
1608
- function getPi(Ctor, sd, rm) {
1609
- if (sd > PI_PRECISION) throw Error(precisionLimitExceeded);
1610
- return finalise(new Ctor(PI), sd, rm, true);
1611
- }
1612
- function getPrecision(digits) {
1613
- var w = digits.length - 1, len = w * LOG_BASE + 1;
1614
- w = digits[w];
1615
- if (w) {
1616
- for (; w % 10 == 0; w /= 10) len--;
1617
- for (w = digits[0]; w >= 10; w /= 10) len++;
1618
- }
1619
- return len;
1620
- }
1621
- function getZeroString(k) {
1622
- var zs = "";
1623
- for (; k--; ) zs += "0";
1624
- return zs;
1625
- }
1626
- function intPow(Ctor, x, n, pr) {
1627
- var isTruncated, r = new Ctor(1), k = Math.ceil(pr / LOG_BASE + 4);
1628
- external = false;
1629
- for (; ; ) {
1630
- if (n % 2) {
1631
- r = r.times(x);
1632
- if (truncate(r.d, k)) isTruncated = true;
1633
- }
1634
- n = mathfloor(n / 2);
1635
- if (n === 0) {
1636
- n = r.d.length - 1;
1637
- if (isTruncated && r.d[n] === 0) ++r.d[n];
1638
- break;
1639
- }
1640
- x = x.times(x);
1641
- truncate(x.d, k);
1642
- }
1643
- external = true;
1644
- return r;
1645
- }
1646
- function isOdd(n) {
1647
- return n.d[n.d.length - 1] & 1;
1648
- }
1649
- function maxOrMin(Ctor, args, n) {
1650
- var k, y, x = new Ctor(args[0]), i = 0;
1651
- for (; ++i < args.length; ) {
1652
- y = new Ctor(args[i]);
1653
- if (!y.s) {
1654
- x = y;
1655
- break;
1656
- }
1657
- k = x.cmp(y);
1658
- if (k === n || k === 0 && x.s === n) {
1659
- x = y;
1660
- }
1661
- }
1662
- return x;
1663
- }
1664
- function naturalExponential(x, sd) {
1665
- var denominator, guard, j, pow2, sum2, t, wpr, rep = 0, i = 0, k = 0, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
1666
- if (!x.d || !x.d[0] || x.e > 17) {
1667
- return new Ctor(x.d ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0 : x.s ? x.s < 0 ? 0 : x : 0 / 0);
1668
- }
1669
- if (sd == null) {
1670
- external = false;
1671
- wpr = pr;
1672
- } else {
1673
- wpr = sd;
1674
- }
1675
- t = new Ctor(0.03125);
1676
- while (x.e > -2) {
1677
- x = x.times(t);
1678
- k += 5;
1679
- }
1680
- guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
1681
- wpr += guard;
1682
- denominator = pow2 = sum2 = new Ctor(1);
1683
- Ctor.precision = wpr;
1684
- for (; ; ) {
1685
- pow2 = finalise(pow2.times(x), wpr, 1);
1686
- denominator = denominator.times(++i);
1687
- t = sum2.plus(divide(pow2, denominator, wpr, 1));
1688
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum2.d).slice(0, wpr)) {
1689
- j = k;
1690
- while (j--) sum2 = finalise(sum2.times(sum2), wpr, 1);
1691
- if (sd == null) {
1692
- if (rep < 3 && checkRoundingDigits(sum2.d, wpr - guard, rm, rep)) {
1693
- Ctor.precision = wpr += 10;
1694
- denominator = pow2 = t = new Ctor(1);
1695
- i = 0;
1696
- rep++;
1697
- } else {
1698
- return finalise(sum2, Ctor.precision = pr, rm, external = true);
1699
- }
1700
- } else {
1701
- Ctor.precision = pr;
1702
- return sum2;
1703
- }
1704
- }
1705
- sum2 = t;
1706
- }
1707
- }
1708
- function naturalLogarithm(y, sd) {
1709
- var c, c0, denominator, e, numerator, rep, sum2, t, wpr, x1, x2, n = 1, guard = 10, x = y, xd = x.d, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
1710
- if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) {
1711
- return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);
1712
- }
1713
- if (sd == null) {
1714
- external = false;
1715
- wpr = pr;
1716
- } else {
1717
- wpr = sd;
1718
- }
1719
- Ctor.precision = wpr += guard;
1720
- c = digitsToString(xd);
1721
- c0 = c.charAt(0);
1722
- if (Math.abs(e = x.e) < 15e14) {
1723
- while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
1724
- x = x.times(y);
1725
- c = digitsToString(x.d);
1726
- c0 = c.charAt(0);
1727
- n++;
1728
- }
1729
- e = x.e;
1730
- if (c0 > 1) {
1731
- x = new Ctor("0." + c);
1732
- e++;
1733
- } else {
1734
- x = new Ctor(c0 + "." + c.slice(1));
1735
- }
1736
- } else {
1737
- t = getLn10(Ctor, wpr + 2, pr).times(e + "");
1738
- x = naturalLogarithm(new Ctor(c0 + "." + c.slice(1)), wpr - guard).plus(t);
1739
- Ctor.precision = pr;
1740
- return sd == null ? finalise(x, pr, rm, external = true) : x;
1741
- }
1742
- x1 = x;
1743
- sum2 = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1);
1744
- x2 = finalise(x.times(x), wpr, 1);
1745
- denominator = 3;
1746
- for (; ; ) {
1747
- numerator = finalise(numerator.times(x2), wpr, 1);
1748
- t = sum2.plus(divide(numerator, new Ctor(denominator), wpr, 1));
1749
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum2.d).slice(0, wpr)) {
1750
- sum2 = sum2.times(2);
1751
- if (e !== 0) sum2 = sum2.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
1752
- sum2 = divide(sum2, new Ctor(n), wpr, 1);
1753
- if (sd == null) {
1754
- if (checkRoundingDigits(sum2.d, wpr - guard, rm, rep)) {
1755
- Ctor.precision = wpr += guard;
1756
- t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);
1757
- x2 = finalise(x.times(x), wpr, 1);
1758
- denominator = rep = 1;
1759
- } else {
1760
- return finalise(sum2, Ctor.precision = pr, rm, external = true);
1761
- }
1762
- } else {
1763
- Ctor.precision = pr;
1764
- return sum2;
1765
- }
1766
- }
1767
- sum2 = t;
1768
- denominator += 2;
1769
- }
1770
- }
1771
- function nonFiniteToString(x) {
1772
- return String(x.s * x.s / 0);
1773
- }
1774
- function parseDecimal(x, str) {
1775
- var e, i, len;
1776
- if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
1777
- if ((i = str.search(/e/i)) > 0) {
1778
- if (e < 0) e = i;
1779
- e += +str.slice(i + 1);
1780
- str = str.substring(0, i);
1781
- } else if (e < 0) {
1782
- e = str.length;
1783
- }
1784
- for (i = 0; str.charCodeAt(i) === 48; i++) ;
1785
- for (len = str.length; str.charCodeAt(len - 1) === 48; --len) ;
1786
- str = str.slice(i, len);
1787
- if (str) {
1788
- len -= i;
1789
- x.e = e = e - i - 1;
1790
- x.d = [];
1791
- i = (e + 1) % LOG_BASE;
1792
- if (e < 0) i += LOG_BASE;
1793
- if (i < len) {
1794
- if (i) x.d.push(+str.slice(0, i));
1795
- for (len -= LOG_BASE; i < len; ) x.d.push(+str.slice(i, i += LOG_BASE));
1796
- str = str.slice(i);
1797
- i = LOG_BASE - str.length;
1798
- } else {
1799
- i -= len;
1800
- }
1801
- for (; i--; ) str += "0";
1802
- x.d.push(+str);
1803
- if (external) {
1804
- if (x.e > x.constructor.maxE) {
1805
- x.d = null;
1806
- x.e = NaN;
1807
- } else if (x.e < x.constructor.minE) {
1808
- x.e = 0;
1809
- x.d = [0];
1810
- }
1811
- }
1812
- } else {
1813
- x.e = 0;
1814
- x.d = [0];
1815
- }
1816
- return x;
1817
- }
1818
- function parseOther(x, str) {
1819
- var base, Ctor, divisor, i, isFloat, len, p, xd, xe;
1820
- if (str.indexOf("_") > -1) {
1821
- str = str.replace(/(\d)_(?=\d)/g, "$1");
1822
- if (isDecimal.test(str)) return parseDecimal(x, str);
1823
- } else if (str === "Infinity" || str === "NaN") {
1824
- if (!+str) x.s = NaN;
1825
- x.e = NaN;
1826
- x.d = null;
1827
- return x;
1828
- }
1829
- if (isHex.test(str)) {
1830
- base = 16;
1831
- str = str.toLowerCase();
1832
- } else if (isBinary.test(str)) {
1833
- base = 2;
1834
- } else if (isOctal.test(str)) {
1835
- base = 8;
1836
- } else {
1837
- throw Error(invalidArgument + str);
1838
- }
1839
- i = str.search(/p/i);
1840
- if (i > 0) {
1841
- p = +str.slice(i + 1);
1842
- str = str.substring(2, i);
1843
- } else {
1844
- str = str.slice(2);
1845
- }
1846
- i = str.indexOf(".");
1847
- isFloat = i >= 0;
1848
- Ctor = x.constructor;
1849
- if (isFloat) {
1850
- str = str.replace(".", "");
1851
- len = str.length;
1852
- i = len - i;
1853
- divisor = intPow(Ctor, new Ctor(base), i, i * 2);
1854
- }
1855
- xd = convertBase(str, base, BASE);
1856
- xe = xd.length - 1;
1857
- for (i = xe; xd[i] === 0; --i) xd.pop();
1858
- if (i < 0) return new Ctor(x.s * 0);
1859
- x.e = getBase10Exponent(xd, xe);
1860
- x.d = xd;
1861
- external = false;
1862
- if (isFloat) x = divide(x, divisor, len * 4);
1863
- if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p));
1864
- external = true;
1865
- return x;
1866
- }
1867
- function sine(Ctor, x) {
1868
- var k, len = x.d.length;
1869
- if (len < 3) {
1870
- return x.isZero() ? x : taylorSeries(Ctor, 2, x, x);
1871
- }
1872
- k = 1.4 * Math.sqrt(len);
1873
- k = k > 16 ? 16 : k | 0;
1874
- x = x.times(1 / tinyPow(5, k));
1875
- x = taylorSeries(Ctor, 2, x, x);
1876
- var sin2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20);
1877
- for (; k--; ) {
1878
- sin2_x = x.times(x);
1879
- x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));
1880
- }
1881
- return x;
1882
- }
1883
- function taylorSeries(Ctor, n, x, y, isHyperbolic) {
1884
- var j, t, u, x2, i = 1, pr = Ctor.precision, k = Math.ceil(pr / LOG_BASE);
1885
- external = false;
1886
- x2 = x.times(x);
1887
- u = new Ctor(y);
1888
- for (; ; ) {
1889
- t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1);
1890
- u = isHyperbolic ? y.plus(t) : y.minus(t);
1891
- y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1);
1892
- t = u.plus(y);
1893
- if (t.d[k] !== void 0) {
1894
- for (j = k; t.d[j] === u.d[j] && j--; ) ;
1895
- if (j == -1) break;
1896
- }
1897
- j = u;
1898
- u = y;
1899
- y = t;
1900
- t = j;
1901
- i++;
1902
- }
1903
- external = true;
1904
- t.d.length = k + 1;
1905
- return t;
1906
- }
1907
- function tinyPow(b, e) {
1908
- var n = b;
1909
- while (--e) n *= b;
1910
- return n;
1911
- }
1912
- function toLessThanHalfPi(Ctor, x) {
1913
- var t, isNeg = x.s < 0, pi = getPi(Ctor, Ctor.precision, 1), halfPi = pi.times(0.5);
1914
- x = x.abs();
1915
- if (x.lte(halfPi)) {
1916
- quadrant = isNeg ? 4 : 1;
1917
- return x;
1918
- }
1919
- t = x.divToInt(pi);
1920
- if (t.isZero()) {
1921
- quadrant = isNeg ? 3 : 2;
1922
- } else {
1923
- x = x.minus(t.times(pi));
1924
- if (x.lte(halfPi)) {
1925
- quadrant = isOdd(t) ? isNeg ? 2 : 3 : isNeg ? 4 : 1;
1926
- return x;
1927
- }
1928
- quadrant = isOdd(t) ? isNeg ? 1 : 4 : isNeg ? 3 : 2;
1929
- }
1930
- return x.minus(pi).abs();
1931
- }
1932
- function toStringBinary(x, baseOut, sd, rm) {
1933
- var base, e, i, k, len, roundUp, str, xd, y, Ctor = x.constructor, isExp = sd !== void 0;
1934
- if (isExp) {
1935
- checkInt32(sd, 1, MAX_DIGITS);
1936
- if (rm === void 0) rm = Ctor.rounding;
1937
- else checkInt32(rm, 0, 8);
1938
- } else {
1939
- sd = Ctor.precision;
1940
- rm = Ctor.rounding;
1941
- }
1942
- if (!x.isFinite()) {
1943
- str = nonFiniteToString(x);
1944
- } else {
1945
- str = finiteToString(x);
1946
- i = str.indexOf(".");
1947
- if (isExp) {
1948
- base = 2;
1949
- if (baseOut == 16) {
1950
- sd = sd * 4 - 3;
1951
- } else if (baseOut == 8) {
1952
- sd = sd * 3 - 2;
1953
- }
1954
- } else {
1955
- base = baseOut;
1956
- }
1957
- if (i >= 0) {
1958
- str = str.replace(".", "");
1959
- y = new Ctor(1);
1960
- y.e = str.length - i;
1961
- y.d = convertBase(finiteToString(y), 10, base);
1962
- y.e = y.d.length;
1963
- }
1964
- xd = convertBase(str, 10, base);
1965
- e = len = xd.length;
1966
- for (; xd[--len] == 0; ) xd.pop();
1967
- if (!xd[0]) {
1968
- str = isExp ? "0p+0" : "0";
1969
- } else {
1970
- if (i < 0) {
1971
- e--;
1972
- } else {
1973
- x = new Ctor(x);
1974
- x.d = xd;
1975
- x.e = e;
1976
- x = divide(x, y, sd, rm, 0, base);
1977
- xd = x.d;
1978
- e = x.e;
1979
- roundUp = inexact;
1980
- }
1981
- i = xd[sd];
1982
- k = base / 2;
1983
- roundUp = roundUp || xd[sd + 1] !== void 0;
1984
- roundUp = rm < 4 ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2)) : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 || rm === (x.s < 0 ? 8 : 7));
1985
- xd.length = sd;
1986
- if (roundUp) {
1987
- for (; ++xd[--sd] > base - 1; ) {
1988
- xd[sd] = 0;
1989
- if (!sd) {
1990
- ++e;
1991
- xd.unshift(1);
1992
- }
1993
- }
1994
- }
1995
- for (len = xd.length; !xd[len - 1]; --len) ;
1996
- for (i = 0, str = ""; i < len; i++) str += NUMERALS.charAt(xd[i]);
1997
- if (isExp) {
1998
- if (len > 1) {
1999
- if (baseOut == 16 || baseOut == 8) {
2000
- i = baseOut == 16 ? 4 : 3;
2001
- for (--len; len % i; len++) str += "0";
2002
- xd = convertBase(str, base, baseOut);
2003
- for (len = xd.length; !xd[len - 1]; --len) ;
2004
- for (i = 1, str = "1."; i < len; i++) str += NUMERALS.charAt(xd[i]);
2005
- } else {
2006
- str = str.charAt(0) + "." + str.slice(1);
2007
- }
2008
- }
2009
- str = str + (e < 0 ? "p" : "p+") + e;
2010
- } else if (e < 0) {
2011
- for (; ++e; ) str = "0" + str;
2012
- str = "0." + str;
2013
- } else {
2014
- if (++e > len) for (e -= len; e--; ) str += "0";
2015
- else if (e < len) str = str.slice(0, e) + "." + str.slice(e);
2016
- }
2017
- }
2018
- str = (baseOut == 16 ? "0x" : baseOut == 2 ? "0b" : baseOut == 8 ? "0o" : "") + str;
2019
- }
2020
- return x.s < 0 ? "-" + str : str;
2021
- }
2022
- function truncate(arr, len) {
2023
- if (arr.length > len) {
2024
- arr.length = len;
2025
- return true;
2026
- }
2027
- }
2028
- function abs(x) {
2029
- return new this(x).abs();
2030
- }
2031
- function acos(x) {
2032
- return new this(x).acos();
2033
- }
2034
- function acosh(x) {
2035
- return new this(x).acosh();
2036
- }
2037
- function add(x, y) {
2038
- return new this(x).plus(y);
2039
- }
2040
- function asin(x) {
2041
- return new this(x).asin();
2042
- }
2043
- function asinh(x) {
2044
- return new this(x).asinh();
2045
- }
2046
- function atan(x) {
2047
- return new this(x).atan();
2048
- }
2049
- function atanh(x) {
2050
- return new this(x).atanh();
2051
- }
2052
- function atan2(y, x) {
2053
- y = new this(y);
2054
- x = new this(x);
2055
- var r, pr = this.precision, rm = this.rounding, wpr = pr + 4;
2056
- if (!y.s || !x.s) {
2057
- r = new this(NaN);
2058
- } else if (!y.d && !x.d) {
2059
- r = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75);
2060
- r.s = y.s;
2061
- } else if (!x.d || y.isZero()) {
2062
- r = x.s < 0 ? getPi(this, pr, rm) : new this(0);
2063
- r.s = y.s;
2064
- } else if (!y.d || x.isZero()) {
2065
- r = getPi(this, wpr, 1).times(0.5);
2066
- r.s = y.s;
2067
- } else if (x.s < 0) {
2068
- this.precision = wpr;
2069
- this.rounding = 1;
2070
- r = this.atan(divide(y, x, wpr, 1));
2071
- x = getPi(this, wpr, 1);
2072
- this.precision = pr;
2073
- this.rounding = rm;
2074
- r = y.s < 0 ? r.minus(x) : r.plus(x);
2075
- } else {
2076
- r = this.atan(divide(y, x, wpr, 1));
2077
- }
2078
- return r;
2079
- }
2080
- function cbrt(x) {
2081
- return new this(x).cbrt();
2082
- }
2083
- function ceil(x) {
2084
- return finalise(x = new this(x), x.e + 1, 2);
2085
- }
2086
- function clamp(x, min2, max2) {
2087
- return new this(x).clamp(min2, max2);
2088
- }
2089
- function config(obj) {
2090
- if (!obj || typeof obj !== "object") throw Error(decimalError + "Object expected");
2091
- var i, p, v, useDefaults = obj.defaults === true, ps = [
2092
- "precision",
2093
- 1,
2094
- MAX_DIGITS,
2095
- "rounding",
2096
- 0,
2097
- 8,
2098
- "toExpNeg",
2099
- -EXP_LIMIT,
2100
- 0,
2101
- "toExpPos",
2102
- 0,
2103
- EXP_LIMIT,
2104
- "maxE",
2105
- 0,
2106
- EXP_LIMIT,
2107
- "minE",
2108
- -EXP_LIMIT,
2109
- 0,
2110
- "modulo",
2111
- 0,
2112
- 9
2113
- ];
2114
- for (i = 0; i < ps.length; i += 3) {
2115
- if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];
2116
- if ((v = obj[p]) !== void 0) {
2117
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
2118
- else throw Error(invalidArgument + p + ": " + v);
2119
- }
2120
- }
2121
- if (p = "crypto", useDefaults) this[p] = DEFAULTS[p];
2122
- if ((v = obj[p]) !== void 0) {
2123
- if (v === true || v === false || v === 0 || v === 1) {
2124
- if (v) {
2125
- if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
2126
- this[p] = true;
2127
- } else {
2128
- throw Error(cryptoUnavailable);
2129
- }
2130
- } else {
2131
- this[p] = false;
2132
- }
2133
- } else {
2134
- throw Error(invalidArgument + p + ": " + v);
2135
- }
2136
- }
2137
- return this;
2138
- }
2139
- function cos(x) {
2140
- return new this(x).cos();
2141
- }
2142
- function cosh(x) {
2143
- return new this(x).cosh();
2144
- }
2145
- function clone(obj) {
2146
- var i, p, ps;
2147
- function Decimal2(v) {
2148
- var e, i2, t, x = this;
2149
- if (!(x instanceof Decimal2)) return new Decimal2(v);
2150
- x.constructor = Decimal2;
2151
- if (isDecimalInstance(v)) {
2152
- x.s = v.s;
2153
- if (external) {
2154
- if (!v.d || v.e > Decimal2.maxE) {
2155
- x.e = NaN;
2156
- x.d = null;
2157
- } else if (v.e < Decimal2.minE) {
2158
- x.e = 0;
2159
- x.d = [0];
2160
- } else {
2161
- x.e = v.e;
2162
- x.d = v.d.slice();
2163
- }
2164
- } else {
2165
- x.e = v.e;
2166
- x.d = v.d ? v.d.slice() : v.d;
2167
- }
2168
- return;
2169
- }
2170
- t = typeof v;
2171
- if (t === "number") {
2172
- if (v === 0) {
2173
- x.s = 1 / v < 0 ? -1 : 1;
2174
- x.e = 0;
2175
- x.d = [0];
2176
- return;
2177
- }
2178
- if (v < 0) {
2179
- v = -v;
2180
- x.s = -1;
2181
- } else {
2182
- x.s = 1;
2183
- }
2184
- if (v === ~~v && v < 1e7) {
2185
- for (e = 0, i2 = v; i2 >= 10; i2 /= 10) e++;
2186
- if (external) {
2187
- if (e > Decimal2.maxE) {
2188
- x.e = NaN;
2189
- x.d = null;
2190
- } else if (e < Decimal2.minE) {
2191
- x.e = 0;
2192
- x.d = [0];
2193
- } else {
2194
- x.e = e;
2195
- x.d = [v];
2196
- }
2197
- } else {
2198
- x.e = e;
2199
- x.d = [v];
2200
- }
2201
- return;
2202
- }
2203
- if (v * 0 !== 0) {
2204
- if (!v) x.s = NaN;
2205
- x.e = NaN;
2206
- x.d = null;
2207
- return;
2208
- }
2209
- return parseDecimal(x, v.toString());
2210
- }
2211
- if (t === "string") {
2212
- if ((i2 = v.charCodeAt(0)) === 45) {
2213
- v = v.slice(1);
2214
- x.s = -1;
2215
- } else {
2216
- if (i2 === 43) v = v.slice(1);
2217
- x.s = 1;
2218
- }
2219
- return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
2220
- }
2221
- if (t === "bigint") {
2222
- if (v < 0) {
2223
- v = -v;
2224
- x.s = -1;
2225
- } else {
2226
- x.s = 1;
2227
- }
2228
- return parseDecimal(x, v.toString());
2229
- }
2230
- throw Error(invalidArgument + v);
2231
- }
2232
- Decimal2.prototype = P;
2233
- Decimal2.ROUND_UP = 0;
2234
- Decimal2.ROUND_DOWN = 1;
2235
- Decimal2.ROUND_CEIL = 2;
2236
- Decimal2.ROUND_FLOOR = 3;
2237
- Decimal2.ROUND_HALF_UP = 4;
2238
- Decimal2.ROUND_HALF_DOWN = 5;
2239
- Decimal2.ROUND_HALF_EVEN = 6;
2240
- Decimal2.ROUND_HALF_CEIL = 7;
2241
- Decimal2.ROUND_HALF_FLOOR = 8;
2242
- Decimal2.EUCLID = 9;
2243
- Decimal2.config = Decimal2.set = config;
2244
- Decimal2.clone = clone;
2245
- Decimal2.isDecimal = isDecimalInstance;
2246
- Decimal2.abs = abs;
2247
- Decimal2.acos = acos;
2248
- Decimal2.acosh = acosh;
2249
- Decimal2.add = add;
2250
- Decimal2.asin = asin;
2251
- Decimal2.asinh = asinh;
2252
- Decimal2.atan = atan;
2253
- Decimal2.atanh = atanh;
2254
- Decimal2.atan2 = atan2;
2255
- Decimal2.cbrt = cbrt;
2256
- Decimal2.ceil = ceil;
2257
- Decimal2.clamp = clamp;
2258
- Decimal2.cos = cos;
2259
- Decimal2.cosh = cosh;
2260
- Decimal2.div = div;
2261
- Decimal2.exp = exp;
2262
- Decimal2.floor = floor;
2263
- Decimal2.hypot = hypot;
2264
- Decimal2.ln = ln;
2265
- Decimal2.log = log;
2266
- Decimal2.log10 = log10;
2267
- Decimal2.log2 = log2;
2268
- Decimal2.max = max;
2269
- Decimal2.min = min;
2270
- Decimal2.mod = mod;
2271
- Decimal2.mul = mul;
2272
- Decimal2.pow = pow;
2273
- Decimal2.random = random;
2274
- Decimal2.round = round;
2275
- Decimal2.sign = sign;
2276
- Decimal2.sin = sin;
2277
- Decimal2.sinh = sinh;
2278
- Decimal2.sqrt = sqrt;
2279
- Decimal2.sub = sub;
2280
- Decimal2.sum = sum;
2281
- Decimal2.tan = tan;
2282
- Decimal2.tanh = tanh;
2283
- Decimal2.trunc = trunc;
2284
- if (obj === void 0) obj = {};
2285
- if (obj) {
2286
- if (obj.defaults !== true) {
2287
- ps = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"];
2288
- for (i = 0; i < ps.length; ) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
2289
- }
2290
- }
2291
- Decimal2.config(obj);
2292
- return Decimal2;
2293
- }
2294
- function div(x, y) {
2295
- return new this(x).div(y);
2296
- }
2297
- function exp(x) {
2298
- return new this(x).exp();
2299
- }
2300
- function floor(x) {
2301
- return finalise(x = new this(x), x.e + 1, 3);
2302
- }
2303
- function hypot() {
2304
- var i, n, t = new this(0);
2305
- external = false;
2306
- for (i = 0; i < arguments.length; ) {
2307
- n = new this(arguments[i++]);
2308
- if (!n.d) {
2309
- if (n.s) {
2310
- external = true;
2311
- return new this(1 / 0);
2312
- }
2313
- t = n;
2314
- } else if (t.d) {
2315
- t = t.plus(n.times(n));
2316
- }
2317
- }
2318
- external = true;
2319
- return t.sqrt();
2320
- }
2321
- function isDecimalInstance(obj) {
2322
- return obj instanceof Decimal || obj && obj.toStringTag === tag || false;
2323
- }
2324
- function ln(x) {
2325
- return new this(x).ln();
2326
- }
2327
- function log(x, y) {
2328
- return new this(x).log(y);
2329
- }
2330
- function log2(x) {
2331
- return new this(x).log(2);
2332
- }
2333
- function log10(x) {
2334
- return new this(x).log(10);
2335
- }
2336
- function max() {
2337
- return maxOrMin(this, arguments, -1);
2338
- }
2339
- function min() {
2340
- return maxOrMin(this, arguments, 1);
2341
- }
2342
- function mod(x, y) {
2343
- return new this(x).mod(y);
2344
- }
2345
- function mul(x, y) {
2346
- return new this(x).mul(y);
2347
- }
2348
- function pow(x, y) {
2349
- return new this(x).pow(y);
2350
- }
2351
- function random(sd) {
2352
- var d, e, k, n, i = 0, r = new this(1), rd = [];
2353
- if (sd === void 0) sd = this.precision;
2354
- else checkInt32(sd, 1, MAX_DIGITS);
2355
- k = Math.ceil(sd / LOG_BASE);
2356
- if (!this.crypto) {
2357
- for (; i < k; ) rd[i++] = Math.random() * 1e7 | 0;
2358
- } else if (crypto.getRandomValues) {
2359
- d = crypto.getRandomValues(new Uint32Array(k));
2360
- for (; i < k; ) {
2361
- n = d[i];
2362
- if (n >= 429e7) {
2363
- d[i] = crypto.getRandomValues(new Uint32Array(1))[0];
2364
- } else {
2365
- rd[i++] = n % 1e7;
2366
- }
2367
- }
2368
- } else if (crypto.randomBytes) {
2369
- d = crypto.randomBytes(k *= 4);
2370
- for (; i < k; ) {
2371
- n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 127) << 24);
2372
- if (n >= 214e7) {
2373
- crypto.randomBytes(4).copy(d, i);
2374
- } else {
2375
- rd.push(n % 1e7);
2376
- i += 4;
2377
- }
2378
- }
2379
- i = k / 4;
2380
- } else {
2381
- throw Error(cryptoUnavailable);
2382
- }
2383
- k = rd[--i];
2384
- sd %= LOG_BASE;
2385
- if (k && sd) {
2386
- n = mathpow(10, LOG_BASE - sd);
2387
- rd[i] = (k / n | 0) * n;
2388
- }
2389
- for (; rd[i] === 0; i--) rd.pop();
2390
- if (i < 0) {
2391
- e = 0;
2392
- rd = [0];
2393
- } else {
2394
- e = -1;
2395
- for (; rd[0] === 0; e -= LOG_BASE) rd.shift();
2396
- for (k = 1, n = rd[0]; n >= 10; n /= 10) k++;
2397
- if (k < LOG_BASE) e -= LOG_BASE - k;
2398
- }
2399
- r.e = e;
2400
- r.d = rd;
2401
- return r;
2402
- }
2403
- function round(x) {
2404
- return finalise(x = new this(x), x.e + 1, this.rounding);
2405
- }
2406
- function sign(x) {
2407
- x = new this(x);
2408
- return x.d ? x.d[0] ? x.s : 0 * x.s : x.s || NaN;
2409
- }
2410
- function sin(x) {
2411
- return new this(x).sin();
2412
- }
2413
- function sinh(x) {
2414
- return new this(x).sinh();
2415
- }
2416
- function sqrt(x) {
2417
- return new this(x).sqrt();
2418
- }
2419
- function sub(x, y) {
2420
- return new this(x).sub(y);
2421
- }
2422
- function sum() {
2423
- var i = 0, args = arguments, x = new this(args[i]);
2424
- external = false;
2425
- for (; x.s && ++i < args.length; ) x = x.plus(args[i]);
2426
- external = true;
2427
- return finalise(x, this.precision, this.rounding);
2428
- }
2429
- function tan(x) {
2430
- return new this(x).tan();
2431
- }
2432
- function tanh(x) {
2433
- return new this(x).tanh();
2434
- }
2435
- function trunc(x) {
2436
- return finalise(x = new this(x), x.e + 1, 1);
2437
- }
2438
- P[Symbol.for("nodejs.util.inspect.custom")] = P.toString;
2439
- P[Symbol.toStringTag] = "Decimal";
2440
- var Decimal = P.constructor = clone(DEFAULTS);
2441
- LN10 = new Decimal(LN10);
2442
- PI = new Decimal(PI);
2443
-
2444
- // ../../node_modules/.pnpm/sql-template-tag@5.2.1/node_modules/sql-template-tag/dist/index.js
2445
- var Sql = class _Sql {
2446
- constructor(rawStrings, rawValues) {
2447
- if (rawStrings.length - 1 !== rawValues.length) {
2448
- if (rawStrings.length === 0) {
2449
- throw new TypeError("Expected at least 1 string");
2450
- }
2451
- throw new TypeError(`Expected ${rawStrings.length} strings to have ${rawStrings.length - 1} values`);
2452
- }
2453
- const valuesLength = rawValues.reduce((len, value) => len + (value instanceof _Sql ? value.values.length : 1), 0);
2454
- this.values = new Array(valuesLength);
2455
- this.strings = new Array(valuesLength + 1);
2456
- this.strings[0] = rawStrings[0];
2457
- let i = 0, pos = 0;
2458
- while (i < rawValues.length) {
2459
- const child = rawValues[i++];
2460
- const rawString = rawStrings[i];
2461
- if (child instanceof _Sql) {
2462
- this.strings[pos] += child.strings[0];
2463
- let childIndex = 0;
2464
- while (childIndex < child.values.length) {
2465
- this.values[pos++] = child.values[childIndex++];
2466
- this.strings[pos] = child.strings[childIndex];
2467
- }
2468
- this.strings[pos] += rawString;
2469
- } else {
2470
- this.values[pos++] = child;
2471
- this.strings[pos] = rawString;
2472
- }
2473
- }
2474
- }
2475
- get sql() {
2476
- const len = this.strings.length;
2477
- let i = 1;
2478
- let value = this.strings[0];
2479
- while (i < len)
2480
- value += `?${this.strings[i++]}`;
2481
- return value;
2482
- }
2483
- get statement() {
2484
- const len = this.strings.length;
2485
- let i = 1;
2486
- let value = this.strings[0];
2487
- while (i < len)
2488
- value += `:${i}${this.strings[i++]}`;
2489
- return value;
2490
- }
2491
- get text() {
2492
- const len = this.strings.length;
2493
- let i = 1;
2494
- let value = this.strings[0];
2495
- while (i < len)
2496
- value += `$${i}${this.strings[i++]}`;
2497
- return value;
2498
- }
2499
- inspect() {
2500
- return {
2501
- sql: this.sql,
2502
- statement: this.statement,
2503
- text: this.text,
2504
- values: this.values
2505
- };
2506
- }
2507
- };
2508
- function join(values, separator = ",", prefix = "", suffix = "") {
2509
- if (values.length === 0) {
2510
- throw new TypeError("Expected `join([])` to be called with an array of multiple elements, but got an empty array");
2511
- }
2512
- return new Sql([prefix, ...Array(values.length - 1).fill(separator), suffix], values);
2513
- }
2514
- function raw(value) {
2515
- return new Sql([value], []);
2516
- }
2517
- var empty = raw("");
2518
- function sql(strings, ...values) {
2519
- return new Sql(strings, values);
2520
- }
2521
- // Annotate the CommonJS export names for ESM import in node:
2522
- 0 && (module.exports = {
2523
- AnyNull,
2524
- AnyNullClass,
2525
- DbNull,
2526
- DbNullClass,
2527
- Decimal,
2528
- JsonNull,
2529
- JsonNullClass,
2530
- NullTypes,
2531
- ObjectEnumValue,
2532
- PrismaClientInitializationError,
2533
- PrismaClientKnownRequestError,
2534
- PrismaClientRustError,
2535
- PrismaClientRustPanicError,
2536
- PrismaClientUnknownRequestError,
2537
- PrismaClientValidationError,
2538
- Sql,
2539
- empty,
2540
- hasBatchIndex,
2541
- isAnyNull,
2542
- isDbNull,
2543
- isJsonNull,
2544
- isObjectEnumValue,
2545
- join,
2546
- raw,
2547
- sql
2548
- });
2549
- /*! Bundled license information:
2550
-
2551
- decimal.js/decimal.mjs:
2552
- (*!
2553
- * decimal.js v10.5.0
2554
- * An arbitrary-precision Decimal type for JavaScript.
2555
- * https://github.com/MikeMcl/decimal.js
2556
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
2557
- * MIT Licence
2558
- *)
2559
- */