zeed 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (575) hide show
  1. package/AGENTS.md +50 -211
  2. package/README.md +16 -0
  3. package/dist/_experiments/bitcask.cjs +243 -1
  4. package/dist/_experiments/bitcask.cjs.map +1 -1
  5. package/dist/_experiments/bitcask.mjs +230 -1
  6. package/dist/_experiments/bitcask.mjs.map +1 -1
  7. package/dist/bin-BAoS4qtm.mjs +593 -0
  8. package/dist/{bin-SPdenYkw.mjs.map → bin-BAoS4qtm.mjs.map} +1 -1
  9. package/dist/bin-Ddaz2lxM.cjs +862 -0
  10. package/dist/{bin-Ce3i6ABn.cjs.map → bin-Ddaz2lxM.cjs.map} +1 -1
  11. package/dist/browser/base64.cjs +14 -1
  12. package/dist/browser/base64.cjs.map +1 -1
  13. package/dist/browser/base64.mjs +12 -1
  14. package/dist/browser/base64.mjs.map +1 -1
  15. package/dist/browser/gravatar.cjs +186 -1
  16. package/dist/browser/gravatar.cjs.map +1 -1
  17. package/dist/browser/gravatar.mjs +184 -1
  18. package/dist/browser/gravatar.mjs.map +1 -1
  19. package/dist/browser/index.cjs +14 -1
  20. package/dist/browser/index.mjs +8 -1
  21. package/dist/browser/localstorage.cjs +46 -1
  22. package/dist/browser/localstorage.cjs.map +1 -1
  23. package/dist/browser/localstorage.mjs +45 -1
  24. package/dist/browser/localstorage.mjs.map +1 -1
  25. package/dist/browser/log/index.cjs +8 -1
  26. package/dist/browser/log/index.mjs +5 -1
  27. package/dist/browser/log/log-browser-factory.cjs +65 -1
  28. package/dist/browser/log/log-browser-factory.cjs.map +1 -1
  29. package/dist/browser/log/log-browser-factory.mjs +64 -1
  30. package/dist/browser/log/log-browser-factory.mjs.map +1 -1
  31. package/dist/browser/log/log-browser.cjs +72 -1
  32. package/dist/browser/log/log-browser.cjs.map +1 -1
  33. package/dist/browser/log/log-browser.mjs +71 -1
  34. package/dist/browser/log/log-browser.mjs.map +1 -1
  35. package/dist/browser/log/log-colors.cjs +11 -1
  36. package/dist/browser/log/log-colors.cjs.map +1 -1
  37. package/dist/browser/log/log-colors.mjs +9 -1
  38. package/dist/browser/log/log-colors.mjs.map +1 -1
  39. package/dist/browser/log/log-context-browser.cjs +25 -1
  40. package/dist/browser/log/log-context-browser.cjs.map +1 -1
  41. package/dist/browser/log/log-context-browser.mjs +23 -1
  42. package/dist/browser/log/log-context-browser.mjs.map +1 -1
  43. package/dist/chunk-DQk6qfdC.mjs +18 -0
  44. package/dist/chunk-uaV2rQ02.cjs +53 -0
  45. package/dist/common/assert.cjs +22 -1
  46. package/dist/common/assert.cjs.map +1 -1
  47. package/dist/common/assert.mjs +19 -1
  48. package/dist/common/assert.mjs.map +1 -1
  49. package/dist/common/bin/index.cjs +106 -1
  50. package/dist/common/bin/index.cjs.map +1 -1
  51. package/dist/common/bin/index.mjs +98 -1
  52. package/dist/common/bin/index.mjs.map +1 -1
  53. package/dist/common/bin/lib0/binary.cjs +146 -1
  54. package/dist/common/bin/lib0/binary.cjs.map +1 -1
  55. package/dist/common/bin/lib0/binary.mjs +80 -1
  56. package/dist/common/bin/lib0/binary.mjs.map +1 -1
  57. package/dist/common/bin/lib0/buffer.cjs +42 -1
  58. package/dist/common/bin/lib0/buffer.cjs.map +1 -1
  59. package/dist/common/bin/lib0/buffer.mjs +38 -1
  60. package/dist/common/bin/lib0/buffer.mjs.map +1 -1
  61. package/dist/common/bin/lib0/create.cjs +24 -1
  62. package/dist/common/bin/lib0/create.cjs.map +1 -1
  63. package/dist/common/bin/lib0/create.mjs +21 -1
  64. package/dist/common/bin/lib0/create.mjs.map +1 -1
  65. package/dist/common/bin/lib0/decoding.cjs +325 -1
  66. package/dist/common/bin/lib0/decoding.cjs.map +1 -1
  67. package/dist/common/bin/lib0/decoding.mjs +298 -1
  68. package/dist/common/bin/lib0/decoding.mjs.map +1 -1
  69. package/dist/common/bin/lib0/encoding.cjs +404 -1
  70. package/dist/common/bin/lib0/encoding.cjs.map +1 -1
  71. package/dist/common/bin/lib0/encoding.mjs +377 -1
  72. package/dist/common/bin/lib0/encoding.mjs.map +1 -1
  73. package/dist/common/bin/lib0/string.cjs +81 -1
  74. package/dist/common/bin/lib0/string.cjs.map +1 -1
  75. package/dist/common/bin/lib0/string.mjs +71 -1
  76. package/dist/common/bin/lib0/string.mjs.map +1 -1
  77. package/dist/common/crypto/aes-sealed.cjs +34 -1
  78. package/dist/common/crypto/aes-sealed.cjs.map +1 -1
  79. package/dist/common/crypto/aes-sealed.mjs +32 -1
  80. package/dist/common/crypto/aes-sealed.mjs.map +1 -1
  81. package/dist/common/crypto/crypto.cjs +91 -1
  82. package/dist/common/crypto/crypto.cjs.map +1 -1
  83. package/dist/common/crypto/crypto.mjs +80 -1
  84. package/dist/common/crypto/crypto.mjs.map +1 -1
  85. package/dist/common/crypto/index.cjs +23 -1
  86. package/dist/common/crypto/index.mjs +5 -1
  87. package/dist/common/crypto/xaes.cjs +128 -1
  88. package/dist/common/crypto/xaes.cjs.map +1 -1
  89. package/dist/common/crypto/xaes.mjs +123 -1
  90. package/dist/common/crypto/xaes.mjs.map +1 -1
  91. package/dist/common/csv.cjs +49 -4
  92. package/dist/common/csv.cjs.map +1 -1
  93. package/dist/common/csv.mjs +46 -4
  94. package/dist/common/csv.mjs.map +1 -1
  95. package/dist/common/data/array.cjs +299 -1
  96. package/dist/common/data/array.cjs.map +1 -1
  97. package/dist/common/data/array.mjs +274 -1
  98. package/dist/common/data/array.mjs.map +1 -1
  99. package/dist/common/data/basex-secure.cjs +30 -1
  100. package/dist/common/data/basex-secure.mjs +3 -1
  101. package/dist/common/data/basex.cjs +163 -1
  102. package/dist/common/data/basex.cjs.map +1 -1
  103. package/dist/common/data/basex.mjs +152 -1
  104. package/dist/common/data/basex.mjs.map +1 -1
  105. package/dist/common/data/bin-types.mjs +1 -1
  106. package/dist/common/data/bin.cjs +21 -1
  107. package/dist/common/data/bin.mjs +3 -1
  108. package/dist/common/data/camelcase.cjs +27 -1
  109. package/dist/common/data/camelcase.cjs.map +1 -1
  110. package/dist/common/data/camelcase.mjs +22 -1
  111. package/dist/common/data/camelcase.mjs.map +1 -1
  112. package/dist/common/data/convert.cjs +104 -1
  113. package/dist/common/data/convert.cjs.map +1 -1
  114. package/dist/common/data/convert.mjs +88 -1
  115. package/dist/common/data/convert.mjs.map +1 -1
  116. package/dist/common/data/datauri.cjs +32 -1
  117. package/dist/common/data/datauri.cjs.map +1 -1
  118. package/dist/common/data/datauri.mjs +27 -1
  119. package/dist/common/data/datauri.mjs.map +1 -1
  120. package/dist/common/data/day-legacy.cjs +148 -1
  121. package/dist/common/data/day-legacy.cjs.map +1 -1
  122. package/dist/common/data/day-legacy.mjs +143 -1
  123. package/dist/common/data/day-legacy.mjs.map +1 -1
  124. package/dist/common/data/day.cjs +335 -1
  125. package/dist/common/data/day.cjs.map +1 -1
  126. package/dist/common/data/day.mjs +305 -1
  127. package/dist/common/data/day.mjs.map +1 -1
  128. package/dist/common/data/decimal.cjs +28 -1
  129. package/dist/common/data/decimal.cjs.map +1 -1
  130. package/dist/common/data/decimal.mjs +23 -1
  131. package/dist/common/data/decimal.mjs.map +1 -1
  132. package/dist/common/data/deep.cjs +57 -1
  133. package/dist/common/data/deep.cjs.map +1 -1
  134. package/dist/common/data/deep.mjs +54 -1
  135. package/dist/common/data/deep.mjs.map +1 -1
  136. package/dist/common/data/diff.cjs +62 -1
  137. package/dist/common/data/diff.cjs.map +1 -1
  138. package/dist/common/data/diff.mjs +60 -1
  139. package/dist/common/data/diff.mjs.map +1 -1
  140. package/dist/common/data/distributed.cjs +24 -1
  141. package/dist/common/data/distributed.cjs.map +1 -1
  142. package/dist/common/data/distributed.mjs +22 -1
  143. package/dist/common/data/distributed.mjs.map +1 -1
  144. package/dist/common/data/format.cjs +63 -1
  145. package/dist/common/data/format.cjs.map +1 -1
  146. package/dist/common/data/format.mjs +59 -1
  147. package/dist/common/data/format.mjs.map +1 -1
  148. package/dist/common/data/html.cjs +13 -1
  149. package/dist/common/data/html.cjs.map +1 -1
  150. package/dist/common/data/html.mjs +10 -1
  151. package/dist/common/data/html.mjs.map +1 -1
  152. package/dist/common/data/index.cjs +296 -1
  153. package/dist/common/data/index.mjs +37 -1
  154. package/dist/common/data/is.cjs +106 -1
  155. package/dist/common/data/is.cjs.map +1 -1
  156. package/dist/common/data/is.mjs +85 -1
  157. package/dist/common/data/is.mjs.map +1 -1
  158. package/dist/common/data/json.cjs +70 -1
  159. package/dist/common/data/json.cjs.map +1 -1
  160. package/dist/common/data/json.mjs +65 -1
  161. package/dist/common/data/json.mjs.map +1 -1
  162. package/dist/common/data/list.cjs +32 -1
  163. package/dist/common/data/list.cjs.map +1 -1
  164. package/dist/common/data/list.mjs +27 -1
  165. package/dist/common/data/list.mjs.map +1 -1
  166. package/dist/common/data/lru.mjs +1 -1
  167. package/dist/common/data/math.cjs +79 -1
  168. package/dist/common/data/math.cjs.map +1 -1
  169. package/dist/common/data/math.mjs +65 -1
  170. package/dist/common/data/math.mjs.map +1 -1
  171. package/dist/common/data/message.cjs +30 -1
  172. package/dist/common/data/message.cjs.map +1 -1
  173. package/dist/common/data/message.mjs +28 -1
  174. package/dist/common/data/message.mjs.map +1 -1
  175. package/dist/common/data/object-changes.cjs +66 -1
  176. package/dist/common/data/object-changes.cjs.map +1 -1
  177. package/dist/common/data/object-changes.mjs +63 -1
  178. package/dist/common/data/object-changes.mjs.map +1 -1
  179. package/dist/common/data/object.cjs +112 -1
  180. package/dist/common/data/object.cjs.map +1 -1
  181. package/dist/common/data/object.mjs +104 -1
  182. package/dist/common/data/object.mjs.map +1 -1
  183. package/dist/common/data/orderby.cjs +42 -1
  184. package/dist/common/data/orderby.cjs.map +1 -1
  185. package/dist/common/data/orderby.mjs +37 -1
  186. package/dist/common/data/orderby.mjs.map +1 -1
  187. package/dist/common/data/path.cjs +26 -1
  188. package/dist/common/data/path.cjs.map +1 -1
  189. package/dist/common/data/path.mjs +25 -1
  190. package/dist/common/data/path.mjs.map +1 -1
  191. package/dist/common/data/regexp.cjs +12 -1
  192. package/dist/common/data/regexp.cjs.map +1 -1
  193. package/dist/common/data/regexp.mjs +10 -1
  194. package/dist/common/data/regexp.mjs.map +1 -1
  195. package/dist/common/data/rounding.cjs +107 -1
  196. package/dist/common/data/rounding.cjs.map +1 -1
  197. package/dist/common/data/rounding.mjs +95 -1
  198. package/dist/common/data/rounding.mjs.map +1 -1
  199. package/dist/common/data/signal.cjs +39 -1
  200. package/dist/common/data/signal.cjs.map +1 -1
  201. package/dist/common/data/signal.mjs +38 -1
  202. package/dist/common/data/signal.mjs.map +1 -1
  203. package/dist/common/data/sortable.cjs +35 -1
  204. package/dist/common/data/sortable.cjs.map +1 -1
  205. package/dist/common/data/sortable.mjs +31 -1
  206. package/dist/common/data/sortable.mjs.map +1 -1
  207. package/dist/common/data/sorted.cjs +54 -1
  208. package/dist/common/data/sorted.cjs.map +1 -1
  209. package/dist/common/data/sorted.mjs +53 -1
  210. package/dist/common/data/sorted.mjs.map +1 -1
  211. package/dist/common/data/string-deburr.cjs +240 -1
  212. package/dist/common/data/string-deburr.cjs.map +1 -1
  213. package/dist/common/data/string-deburr.mjs +238 -1
  214. package/dist/common/data/string-deburr.mjs.map +1 -1
  215. package/dist/common/data/string-hash-fnv.cjs +69 -1
  216. package/dist/common/data/string-hash-fnv.cjs.map +1 -1
  217. package/dist/common/data/string-hash-fnv.mjs +67 -1
  218. package/dist/common/data/string-hash-fnv.mjs.map +1 -1
  219. package/dist/common/data/string-hash-pool.cjs +28 -1
  220. package/dist/common/data/string-hash-pool.cjs.map +1 -1
  221. package/dist/common/data/string-hash-pool.mjs +27 -1
  222. package/dist/common/data/string-hash-pool.mjs.map +1 -1
  223. package/dist/common/data/url.cjs +98 -2
  224. package/dist/common/data/url.cjs.map +1 -1
  225. package/dist/common/data/url.mjs +91 -2
  226. package/dist/common/data/url.mjs.map +1 -1
  227. package/dist/common/data/utils.cjs +118 -1
  228. package/dist/common/data/utils.cjs.map +1 -1
  229. package/dist/common/data/utils.mjs +107 -1
  230. package/dist/common/data/utils.mjs.map +1 -1
  231. package/dist/common/data/wordlist.cjs +531 -1
  232. package/dist/common/data/wordlist.cjs.map +1 -1
  233. package/dist/common/data/wordlist.mjs +529 -1
  234. package/dist/common/data/wordlist.mjs.map +1 -1
  235. package/dist/common/data/xrx.cjs +96 -1
  236. package/dist/common/data/xrx.cjs.map +1 -1
  237. package/dist/common/data/xrx.mjs +92 -1
  238. package/dist/common/data/xrx.mjs.map +1 -1
  239. package/dist/common/dispose-defer.cjs +133 -1
  240. package/dist/common/dispose-defer.cjs.map +1 -1
  241. package/dist/common/dispose-defer.mjs +130 -1
  242. package/dist/common/dispose-defer.mjs.map +1 -1
  243. package/dist/common/dispose-types.mjs +1 -1
  244. package/dist/common/dispose-utils.cjs +113 -1
  245. package/dist/common/dispose-utils.cjs.map +1 -1
  246. package/dist/common/dispose-utils.mjs +106 -1
  247. package/dist/common/dispose-utils.mjs.map +1 -1
  248. package/dist/common/exec/index.cjs +24 -1
  249. package/dist/common/exec/index.d.cts +1 -1
  250. package/dist/common/exec/index.d.mts +1 -1
  251. package/dist/common/exec/index.mjs +8 -1
  252. package/dist/common/exec/mutex.cjs +44 -1
  253. package/dist/common/exec/mutex.cjs.map +1 -1
  254. package/dist/common/exec/mutex.mjs +42 -1
  255. package/dist/common/exec/mutex.mjs.map +1 -1
  256. package/dist/common/exec/pool.cjs +181 -1
  257. package/dist/common/exec/pool.cjs.map +1 -1
  258. package/dist/common/exec/pool.d.cts +1 -1
  259. package/dist/common/exec/pool.d.mts +1 -1
  260. package/dist/common/exec/pool.mjs +180 -1
  261. package/dist/common/exec/pool.mjs.map +1 -1
  262. package/dist/common/exec/progress.cjs +149 -1
  263. package/dist/common/exec/progress.cjs.map +1 -1
  264. package/dist/common/exec/progress.d.cts +1 -1
  265. package/dist/common/exec/progress.d.mts +1 -1
  266. package/dist/common/exec/progress.mjs +148 -1
  267. package/dist/common/exec/progress.mjs.map +1 -1
  268. package/dist/common/exec/promise.cjs +113 -1
  269. package/dist/common/exec/promise.cjs.map +1 -1
  270. package/dist/common/exec/promise.mjs +103 -1
  271. package/dist/common/exec/promise.mjs.map +1 -1
  272. package/dist/common/exec/queue.cjs +125 -1
  273. package/dist/common/exec/queue.cjs.map +1 -1
  274. package/dist/common/exec/queue.d.cts +1 -1
  275. package/dist/common/exec/queue.d.mts +1 -1
  276. package/dist/common/exec/queue.mjs +124 -1
  277. package/dist/common/exec/queue.mjs.map +1 -1
  278. package/dist/common/exec/throttle-debounce.cjs +114 -1
  279. package/dist/common/exec/throttle-debounce.cjs.map +1 -1
  280. package/dist/common/exec/throttle-debounce.mjs +112 -1
  281. package/dist/common/exec/throttle-debounce.mjs.map +1 -1
  282. package/dist/common/global.cjs +22 -1
  283. package/dist/common/global.cjs.map +1 -1
  284. package/dist/common/global.mjs +19 -1
  285. package/dist/common/global.mjs.map +1 -1
  286. package/dist/common/index.cjs +559 -1
  287. package/dist/common/index.d.cts +1 -1
  288. package/dist/common/index.d.mts +1 -1
  289. package/dist/common/index.mjs +89 -1
  290. package/dist/common/localhost.cjs +16 -1
  291. package/dist/common/localhost.cjs.map +1 -1
  292. package/dist/common/localhost.mjs +14 -1
  293. package/dist/common/localhost.mjs.map +1 -1
  294. package/dist/common/log/index.cjs +34 -1
  295. package/dist/common/log/index.mjs +11 -1
  296. package/dist/common/log/log-base.cjs +40 -1
  297. package/dist/common/log/log-base.cjs.map +1 -1
  298. package/dist/common/log/log-base.mjs +31 -1
  299. package/dist/common/log/log-base.mjs.map +1 -1
  300. package/dist/common/log/log-colors.cjs +92 -1
  301. package/dist/common/log/log-colors.cjs.map +1 -1
  302. package/dist/common/log/log-colors.mjs +90 -1
  303. package/dist/common/log/log-colors.mjs.map +1 -1
  304. package/dist/common/log/log-config.cjs +15 -1
  305. package/dist/common/log/log-config.cjs.map +1 -1
  306. package/dist/common/log/log-config.mjs +14 -1
  307. package/dist/common/log/log-config.mjs.map +1 -1
  308. package/dist/common/log/log-console-capture.cjs +33 -1
  309. package/dist/common/log/log-console-capture.cjs.map +1 -1
  310. package/dist/common/log/log-console-capture.mjs +32 -1
  311. package/dist/common/log/log-console-capture.mjs.map +1 -1
  312. package/dist/common/log/log-console-original.cjs +27 -1
  313. package/dist/common/log/log-console-original.cjs.map +1 -1
  314. package/dist/common/log/log-console-original.mjs +26 -1
  315. package/dist/common/log/log-console-original.mjs.map +1 -1
  316. package/dist/common/log/log-console.cjs +39 -1
  317. package/dist/common/log/log-console.cjs.map +1 -1
  318. package/dist/common/log/log-console.mjs +38 -1
  319. package/dist/common/log/log-console.mjs.map +1 -1
  320. package/dist/common/log/log-context.cjs +109 -1
  321. package/dist/common/log/log-context.cjs.map +1 -1
  322. package/dist/common/log/log-context.mjs +108 -1
  323. package/dist/common/log/log-context.mjs.map +1 -1
  324. package/dist/common/log/log-filter.cjs +80 -1
  325. package/dist/common/log/log-filter.cjs.map +1 -1
  326. package/dist/common/log/log-filter.mjs +75 -1
  327. package/dist/common/log/log-filter.mjs.map +1 -1
  328. package/dist/common/log/log-memory.cjs +45 -1
  329. package/dist/common/log/log-memory.cjs.map +1 -1
  330. package/dist/common/log/log-memory.mjs +43 -1
  331. package/dist/common/log/log-memory.mjs.map +1 -1
  332. package/dist/common/log/log-noop.cjs +17 -1
  333. package/dist/common/log/log-noop.cjs.map +1 -1
  334. package/dist/common/log/log-noop.mjs +15 -1
  335. package/dist/common/log/log-noop.mjs.map +1 -1
  336. package/dist/common/log/log.cjs +46 -1
  337. package/dist/common/log/log.cjs.map +1 -1
  338. package/dist/common/log/log.mjs +43 -1
  339. package/dist/common/log/log.mjs.map +1 -1
  340. package/dist/common/msg/channel-debug.cjs +17 -1
  341. package/dist/common/msg/channel-debug.cjs.map +1 -1
  342. package/dist/common/msg/channel-debug.d.cts +1 -1
  343. package/dist/common/msg/channel-debug.d.mts +1 -1
  344. package/dist/common/msg/channel-debug.mjs +16 -1
  345. package/dist/common/msg/channel-debug.mjs.map +1 -1
  346. package/dist/common/msg/channel-local.cjs +28 -1
  347. package/dist/common/msg/channel-local.cjs.map +1 -1
  348. package/dist/common/msg/channel-local.d.cts +1 -1
  349. package/dist/common/msg/channel-local.d.mts +1 -1
  350. package/dist/common/msg/channel-local.mjs +26 -1
  351. package/dist/common/msg/channel-local.mjs.map +1 -1
  352. package/dist/common/msg/channel-resilient.cjs +63 -1
  353. package/dist/common/msg/channel-resilient.cjs.map +1 -1
  354. package/dist/common/msg/channel-resilient.d.cts +1 -1
  355. package/dist/common/msg/channel-resilient.d.mts +1 -1
  356. package/dist/common/msg/channel-resilient.mjs +62 -1
  357. package/dist/common/msg/channel-resilient.mjs.map +1 -1
  358. package/dist/common/msg/channel-wkwebview.cjs +35 -1
  359. package/dist/common/msg/channel-wkwebview.cjs.map +1 -1
  360. package/dist/common/msg/channel-wkwebview.d.cts +2 -1
  361. package/dist/common/msg/channel-wkwebview.d.mts +2 -1
  362. package/dist/common/msg/channel-wkwebview.mjs +34 -1
  363. package/dist/common/msg/channel-wkwebview.mjs.map +1 -1
  364. package/dist/common/msg/channel.cjs +23 -1
  365. package/dist/common/msg/channel.cjs.map +1 -1
  366. package/dist/common/msg/channel.d.cts +1 -1
  367. package/dist/common/msg/channel.d.mts +1 -1
  368. package/dist/common/msg/channel.mjs +22 -1
  369. package/dist/common/msg/channel.mjs.map +1 -1
  370. package/dist/common/msg/emitter.cjs +141 -1
  371. package/dist/common/msg/emitter.cjs.map +1 -1
  372. package/dist/common/msg/emitter.d.cts +1 -1
  373. package/dist/common/msg/emitter.d.mts +1 -1
  374. package/dist/common/msg/emitter.mjs +139 -1
  375. package/dist/common/msg/emitter.mjs.map +1 -1
  376. package/dist/common/msg/encoder.cjs +38 -1
  377. package/dist/common/msg/encoder.cjs.map +1 -1
  378. package/dist/common/msg/encoder.mjs +35 -1
  379. package/dist/common/msg/encoder.mjs.map +1 -1
  380. package/dist/common/msg/index.cjs +28 -1
  381. package/dist/common/msg/index.d.cts +1 -1
  382. package/dist/common/msg/index.d.mts +1 -1
  383. package/dist/common/msg/index.mjs +11 -1
  384. package/dist/common/msg/messages.cjs +135 -1
  385. package/dist/common/msg/messages.cjs.map +1 -1
  386. package/dist/common/msg/messages.d.cts +1 -1
  387. package/dist/common/msg/messages.d.mts +1 -1
  388. package/dist/common/msg/messages.mjs +133 -1
  389. package/dist/common/msg/messages.mjs.map +1 -1
  390. package/dist/common/msg/pipe.mjs +1 -1
  391. package/dist/common/msg/pubsub.cjs +78 -1
  392. package/dist/common/msg/pubsub.cjs.map +1 -1
  393. package/dist/common/msg/pubsub.d.cts +1 -1
  394. package/dist/common/msg/pubsub.d.mts +1 -1
  395. package/dist/common/msg/pubsub.mjs +76 -1
  396. package/dist/common/msg/pubsub.mjs.map +1 -1
  397. package/dist/common/msg/rpc.cjs +142 -1
  398. package/dist/common/msg/rpc.cjs.map +1 -1
  399. package/dist/common/msg/rpc.mjs +139 -1
  400. package/dist/common/msg/rpc.mjs.map +1 -1
  401. package/dist/common/network.cjs +129 -1
  402. package/dist/common/network.cjs.map +1 -1
  403. package/dist/common/network.mjs +122 -1
  404. package/dist/common/network.mjs.map +1 -1
  405. package/dist/common/platform.cjs +92 -1
  406. package/dist/common/platform.cjs.map +1 -1
  407. package/dist/common/platform.mjs +84 -1
  408. package/dist/common/platform.mjs.map +1 -1
  409. package/dist/common/schema/_sandbox/sandbox-inherit.mjs +1 -1
  410. package/dist/common/schema/_sandbox/sandbox.mjs +1 -1
  411. package/dist/common/schema/_sandbox/sandbox.xspec.mjs +1 -1
  412. package/dist/common/schema/export-json-schema.cjs +54 -1
  413. package/dist/common/schema/export-json-schema.cjs.map +1 -1
  414. package/dist/common/schema/export-json-schema.mjs +52 -1
  415. package/dist/common/schema/export-json-schema.mjs.map +1 -1
  416. package/dist/common/schema/export-swift.cjs +30 -2
  417. package/dist/common/schema/export-swift.cjs.map +1 -1
  418. package/dist/common/schema/export-swift.mjs +29 -2
  419. package/dist/common/schema/export-swift.mjs.map +1 -1
  420. package/dist/common/schema/export-typescript.cjs +20 -2
  421. package/dist/common/schema/export-typescript.cjs.map +1 -1
  422. package/dist/common/schema/export-typescript.mjs +19 -2
  423. package/dist/common/schema/export-typescript.mjs.map +1 -1
  424. package/dist/common/schema/index.cjs +55 -1
  425. package/dist/common/schema/index.mjs +12 -1
  426. package/dist/common/schema/parse-args.cjs +62 -2
  427. package/dist/common/schema/parse-args.cjs.map +1 -1
  428. package/dist/common/schema/parse-args.mjs +60 -2
  429. package/dist/common/schema/parse-args.mjs.map +1 -1
  430. package/dist/common/schema/parse-env.cjs +48 -3
  431. package/dist/common/schema/parse-env.cjs.map +1 -1
  432. package/dist/common/schema/parse-env.mjs +46 -3
  433. package/dist/common/schema/parse-env.mjs.map +1 -1
  434. package/dist/common/schema/parse-object.cjs +122 -1
  435. package/dist/common/schema/parse-object.cjs.map +1 -1
  436. package/dist/common/schema/parse-object.mjs +119 -1
  437. package/dist/common/schema/parse-object.mjs.map +1 -1
  438. package/dist/common/schema/schema-standard.mjs +1 -1
  439. package/dist/common/schema/schema.cjs +423 -1
  440. package/dist/common/schema/schema.cjs.map +1 -1
  441. package/dist/common/schema/schema.mjs +404 -1
  442. package/dist/common/schema/schema.mjs.map +1 -1
  443. package/dist/common/schema/serialize.cjs +109 -1
  444. package/dist/common/schema/serialize.cjs.map +1 -1
  445. package/dist/common/schema/serialize.mjs +107 -1
  446. package/dist/common/schema/serialize.mjs.map +1 -1
  447. package/dist/common/schema/type-test.mjs +1 -1
  448. package/dist/common/schema/utils.cjs +25 -1
  449. package/dist/common/schema/utils.cjs.map +1 -1
  450. package/dist/common/schema/utils.mjs +19 -1
  451. package/dist/common/schema/utils.mjs.map +1 -1
  452. package/dist/common/schema/z-collection.cjs +51 -1
  453. package/dist/common/schema/z-collection.mjs +27 -1
  454. package/dist/common/schema/z.cjs +9 -1
  455. package/dist/common/schema/z.mjs +3 -1
  456. package/dist/common/storage/index.cjs +4 -1
  457. package/dist/common/storage/index.mjs +3 -1
  458. package/dist/common/storage/memstorage.cjs +26 -1
  459. package/dist/common/storage/memstorage.cjs.map +1 -1
  460. package/dist/common/storage/memstorage.mjs +25 -1
  461. package/dist/common/storage/memstorage.mjs.map +1 -1
  462. package/dist/common/test.cjs +14 -1
  463. package/dist/common/test.cjs.map +1 -1
  464. package/dist/common/test.mjs +13 -1
  465. package/dist/common/test.mjs.map +1 -1
  466. package/dist/common/time.cjs +220 -1
  467. package/dist/common/time.cjs.map +1 -1
  468. package/dist/common/time.mjs +194 -1
  469. package/dist/common/time.mjs.map +1 -1
  470. package/dist/common/timeout.cjs +27 -1
  471. package/dist/common/timeout.cjs.map +1 -1
  472. package/dist/common/timeout.mjs +25 -1
  473. package/dist/common/timeout.mjs.map +1 -1
  474. package/dist/common/types.mjs +1 -1
  475. package/dist/common/utils.cjs +7 -1
  476. package/dist/common/utils.cjs.map +1 -1
  477. package/dist/common/utils.mjs +5 -1
  478. package/dist/common/utils.mjs.map +1 -1
  479. package/dist/common/uuid.cjs +307 -1
  480. package/dist/common/uuid.cjs.map +1 -1
  481. package/dist/common/uuid.mjs +284 -1
  482. package/dist/common/uuid.mjs.map +1 -1
  483. package/dist/{index-DHXVOH8h.d.cts → index-CFkMqHvX.d.cts} +1 -2
  484. package/dist/{index-DMaPyx9O.d.mts → index-C_3Y_s6f.d.mts} +1 -2
  485. package/dist/index.all.cjs +641 -1
  486. package/dist/index.all.d.cts +1 -1
  487. package/dist/index.all.d.mts +1 -1
  488. package/dist/index.all.mjs +113 -1
  489. package/dist/index.browser.cjs +576 -1
  490. package/dist/index.browser.d.cts +1 -1
  491. package/dist/index.browser.d.mts +1 -1
  492. package/dist/index.browser.mjs +98 -1
  493. package/dist/index.jsr.cjs +57 -1
  494. package/dist/index.jsr.mjs +6 -1
  495. package/dist/index.node.cjs +628 -1
  496. package/dist/index.node.d.cts +1 -1
  497. package/dist/index.node.d.mts +1 -1
  498. package/dist/index.node.mjs +106 -1
  499. package/dist/node/args.cjs +56 -1
  500. package/dist/node/args.cjs.map +1 -1
  501. package/dist/node/args.mjs +53 -1
  502. package/dist/node/args.mjs.map +1 -1
  503. package/dist/node/clipboard.cjs +18 -1
  504. package/dist/node/clipboard.cjs.map +1 -1
  505. package/dist/node/clipboard.mjs +16 -1
  506. package/dist/node/clipboard.mjs.map +1 -1
  507. package/dist/node/crypto.cjs +28 -1
  508. package/dist/node/crypto.cjs.map +1 -1
  509. package/dist/node/crypto.mjs +24 -1
  510. package/dist/node/crypto.mjs.map +1 -1
  511. package/dist/node/env.cjs +100 -4
  512. package/dist/node/env.cjs.map +1 -1
  513. package/dist/node/env.mjs +90 -4
  514. package/dist/node/env.mjs.map +1 -1
  515. package/dist/node/files-async.cjs +66 -1
  516. package/dist/node/files-async.cjs.map +1 -1
  517. package/dist/node/files-async.mjs +60 -1
  518. package/dist/node/files-async.mjs.map +1 -1
  519. package/dist/node/files.cjs +52 -1
  520. package/dist/node/files.cjs.map +1 -1
  521. package/dist/node/files.mjs +46 -1
  522. package/dist/node/files.mjs.map +1 -1
  523. package/dist/node/filestorage.cjs +100 -1
  524. package/dist/node/filestorage.cjs.map +1 -1
  525. package/dist/node/filestorage.mjs +97 -1
  526. package/dist/node/filestorage.mjs.map +1 -1
  527. package/dist/node/fs.cjs +119 -1
  528. package/dist/node/fs.cjs.map +1 -1
  529. package/dist/node/fs.mjs +101 -1
  530. package/dist/node/fs.mjs.map +1 -1
  531. package/dist/node/glob.cjs +75 -1
  532. package/dist/node/glob.cjs.map +1 -1
  533. package/dist/node/glob.mjs +73 -1
  534. package/dist/node/glob.mjs.map +1 -1
  535. package/dist/node/index.cjs +66 -1
  536. package/dist/node/index.mjs +16 -1
  537. package/dist/node/log/index.cjs +20 -1
  538. package/dist/node/log/index.mjs +7 -1
  539. package/dist/node/log/log-context-node.cjs +39 -1
  540. package/dist/node/log/log-context-node.cjs.map +1 -1
  541. package/dist/node/log/log-context-node.mjs +35 -1
  542. package/dist/node/log/log-context-node.mjs.map +1 -1
  543. package/dist/node/log/log-file-rotation.cjs +71 -1
  544. package/dist/node/log/log-file-rotation.cjs.map +1 -1
  545. package/dist/node/log/log-file-rotation.mjs +68 -1
  546. package/dist/node/log/log-file-rotation.mjs.map +1 -1
  547. package/dist/node/log/log-file.cjs +57 -1
  548. package/dist/node/log/log-file.cjs.map +1 -1
  549. package/dist/node/log/log-file.mjs +54 -1
  550. package/dist/node/log/log-file.mjs.map +1 -1
  551. package/dist/node/log/log-node.cjs +162 -1
  552. package/dist/node/log/log-node.cjs.map +1 -1
  553. package/dist/node/log/log-node.mjs +155 -1
  554. package/dist/node/log/log-node.mjs.map +1 -1
  555. package/dist/node/log/log-rotation.cjs +543 -3
  556. package/dist/node/log/log-rotation.cjs.map +1 -1
  557. package/dist/node/log/log-rotation.mjs +538 -3
  558. package/dist/node/log/log-rotation.mjs.map +1 -1
  559. package/dist/node/log/log-util.cjs +69 -3
  560. package/dist/node/log/log-util.cjs.map +1 -1
  561. package/dist/node/log/log-util.mjs +63 -3
  562. package/dist/node/log/log-util.mjs.map +1 -1
  563. package/dist/node/open-browser.cjs +20 -1
  564. package/dist/node/open-browser.cjs.map +1 -1
  565. package/dist/node/open-browser.mjs +18 -1
  566. package/dist/node/open-browser.mjs.map +1 -1
  567. package/package.json +15 -15
  568. package/src/common/schema/README.md +247 -66
  569. package/src/eslint-defaults.js +4 -0
  570. package/src/index.spec.ts +6 -6
  571. package/dist/bin-Ce3i6ABn.cjs +0 -3
  572. package/dist/bin-SPdenYkw.mjs +0 -3
  573. package/dist/chunk-0Lt9GpW0.mjs +0 -1
  574. package/dist/chunk-D-qHiVGv.cjs +0 -1
  575. package/src/common/schema/README-SCHEMA.md +0 -0
@@ -1 +1,89 @@
1
- import{jsonParse as e,jsonStringify as t,jsonStringifySafe as n,jsonStringifySorted as r}from"./data/json.mjs";import{LogLevelAlias as i,LogLevelAll as a,LogLevelDebug as o,LogLevelError as s,LogLevelFatal as c,LogLevelInfo as l,LogLevelOff as u,LogLevelWarn as d}from"./log/log-base.mjs";import{browserSelectColorByName as f}from"./log/log-colors.mjs";import{getGlobalContext as p,globalAny as m}from"./global.mjs";import{getGlobalConsole as h}from"./log/log-console-original.mjs";import{cloneJsonObject as g,cloneObject as _,empty as v,ensureKey as y,ensureKeyAsync as b,first as x,forTimes as S,last as C,memoize as w,memoizeAsync as T,size as E}from"./data/utils.mjs";import{isArray as D,isBinaryArray as O,isBoolean as k,isEmpty as A,isFunction as j,isInteger as M,isNotEmpty as N,isNotNull as P,isNull as F,isNullOrUndefined as I,isNumber as L,isObject as R,isPrimitive as z,isRecord as B,isRecordPlain as V,isSafeInteger as H,isString as U,isSymbol as W,isTruthy as G,isUint8Array as K,isValue as q}from"./data/is.mjs";import{getNamespaceFilterString as J,joinLogStrings as Y,parseLogLevel as X,useLevelFilter as Z,useNamespaceFilter as Q}from"./log/log-filter.mjs";import{avg as $,base32ToNumber as ee,between as te,getSecureRandom as ne,getSecureRandomIfPossible as re,isPrime as ie,isPrimeRX as ae,numberToBase32 as oe,randomBoolean as se,randomFloat as ce,randomInt as le,seededRandom as ue,sum as de}from"./data/math.mjs";import{TIME_DAY_MS as fe,TIME_DAY_S as pe,TIME_HOUR_MS as me,TIME_HOUR_S as he,TIME_MINUTE_MS as ge,TIME_MINUTE_S as _e,TIME_MONTH_MS as ve,TIME_MONTH_S as ye,TIME_WEEK_MS as be,TIME_WEEK_S as xe,TIME_YEAR_MS as Se,TIME_YEAR_S as Ce,dateFromSeconds as we,datetimeToLocal as Te,datetimeToUTC as Ee,duration as De,formatMilliseconds as Oe,getBuildNumber as ke,getPerformanceTimestamp as Ae,getSecondsFromBuildNumber as je,getTimestamp as Me,getTimestampInSeconds as Ne,parseDate as Pe,setTimestampTest as Fe,timestampMillisecondsToSeconds as Ie,timestampSecondsToMilliseconds as Le}from"./time.mjs";import{LoggerConsoleHandler as Re}from"./log/log-console.mjs";import{LoggerContext as ze}from"./log/log-context.mjs";import{DefaultLogger as Be,getGlobalLogger as Ve,getGlobalLoggerIfExists as He}from"./log/log.mjs";import{detect as Ue,getGlobal as We,getLocalStorage as Ge,getNavigator as Ke,getWindow as qe,isBrowser as Je,useExitHandler as Ye}from"./platform.mjs";import{assert as Xe,assertCondition as Ze,fatal as Qe}from"./assert.mjs";import{A as $e,B as et,C as tt,D as nt,E as rt,F as it,G as at,H as ot,I as st,L as ct,M as lt,N as ut,O as dt,P as ft,R as pt,S as mt,T as ht,U as gt,V as _t,W as vt,_ as yt,a as bt,b as xt,c as St,d as Ct,f as wt,g as Tt,h as Et,i as Dt,j as Ot,k as kt,l as At,m as jt,n as Mt,o as Nt,p as Pt,r as Ft,s as It,t as Lt,u as Rt,v as zt,w as Bt,x as Vt,y as Ht,z as Ut}from"../bin-SPdenYkw.mjs";import{BinaryEncoder as Wt,bitfield as Gt,blobToArrayBuffer as Kt,blobToUint8Array as qt,createBinaryStreamDecoder as Jt,createBinaryStreamEncoder as Yt,decodeJson as Xt,encodeJson as Zt}from"./bin/index.mjs";import{decryptAesGcm as Qt,encryptAesGcm as $t}from"./crypto/aes-sealed.mjs";import{CRYPTO_DEFAULT_ALG as en,CRYPTO_DEFAULT_DERIVE_ALG as tn,CRYPTO_DEFAULT_DERIVE_ITERATIONS as nn,CRYPTO_DEFAULT_HASH_ALG as rn,CRYPTO_DEFAULT_IV_LENGTH as an,decrypt as on,deriveKeyPbkdf2 as sn,deriveKeyPbkdf2CBC as cn,digest as ln,encrypt as un,randomUint8Array as dn}from"./crypto/crypto.mjs";import{decryptXAES as fn,encryptXAES as pn,exportKeyXAES as mn,generateKeyXAES as hn,importKeyXAES as gn}from"./crypto/xaes.mjs";import{escapeRegExp as _n}from"./data/regexp.mjs";import{csvParse as vn,csvParseToObjects as yn,csvStringify as bn}from"./csv.mjs";import{cmp as xn,composeOrderby as Sn,parseOrderby as Cn,sortedOrderby as wn}from"./data/orderby.mjs";import{arrayAvg as Tn,arrayBatches as En,arrayEmptyInPlace as Dn,arrayFilterInPlace as On,arrayFlatten as kn,arrayIntersection as An,arrayIsEqual as jn,arrayMax as Mn,arrayMin as Nn,arrayMinus as Pn,arrayRandomElement as Fn,arrayRemoveElement as In,arraySetArrayInPlace as Ln,arraySetElement as Rn,arrayShuffle as zn,arrayShuffleForce as Bn,arrayShuffleInPlace as Vn,arraySorted as Hn,arraySortedNumbers as Un,arraySum as Wn,arraySymmetricDifference as Gn,arrayToggleInPlace as Kn,arrayUnion as qn,arrayUnique as Jn,createArray as Yn}from"./data/array.mjs";import{_useBase as Xn,decodeBase16 as Zn,decodeBase32 as Qn,decodeBase58 as $n,decodeBase62 as er,encodeBase16 as tr,encodeBase32 as nr,encodeBase58 as rr,encodeBase62 as ir,estimateSizeForBase as ar,useBase as or}from"./data/basex.mjs";import{fromCamelCase as sr,toCamelCase as cr,toCapitalize as lr,toCapitalizeWords as ur}from"./data/camelcase.mjs";import{fixBrokenUtf8String as dr,parseFloat as fr,parseInt as pr,stringToBoolean as mr,stringToFloat as hr,stringToInteger as gr,toBool as _r,toFloat as vr,toInt as yr,toString as br,valueToBoolean as xr,valueToBooleanNotFalse as Sr,valueToFloat as Cr,valueToInteger as wr,valueToString as Tr}from"./data/convert.mjs";import{Uint8ArrayToDataUri as Er,blobToDataUri as Dr,dataUriToBlob as Or,dataUriToMimeType as kr,dataUriToUint8Array as Ar}from"./data/datauri.mjs";import{createPromise as jr,immediate as Mr,isPromise as Nr,isTimeout as Pr,promisify as Fr,sleep as Ir,timeout as Lr,tryTimeout as Rr,waitOn as zr}from"./exec/promise.mjs";import{DAY_MS as Br,dayDay as Vr,dayDaysInMonth as Hr,dayDiff as Ur,dayFromAny as Wr,dayFromDate as Gr,dayFromDateGMT as Kr,dayFromDateUTC as qr,dayFromParts as Jr,dayFromString as Yr,dayFromTimestamp as Xr,dayFromTimestampSeconds as Zr,dayFromToday as Qr,dayIterator as $r,dayMonth as ei,dayMonthOffset as ti,dayMonthStart as ni,dayOffset as ri,dayRange as ii,dayToDate as ai,dayToDateGMT as oi,dayToDateUTC as si,dayToParts as ci,dayToString as li,dayToTimestamp as ui,dayToTimestampSeconds as di,dayYear as fi,dayYearOffset as pi,dayYearStart as mi,setDayTest as hi}from"./data/day.mjs";import{Day as gi,dateStringToDays as _i,day as vi,forEachDay as yi,today as bi}from"./data/day-legacy.mjs";import{decimal as xi,decimalCentsPart as Si,decimalFromCents as Ci,decimalToCents as wi}from"./data/decimal.mjs";import{deepEqual as Ti,deepMerge as Ei,deepStripUndefinedInPlace as Di}from"./data/deep.mjs";import{diffObjects as Oi}from"./data/diff.mjs";import{distributedFilePath as ki}from"./data/distributed.mjs";import{formatBytesToHumanBase1000 as Ai,formatBytesToHumanBase1024 as ji,formatSecondsToTime as Mi}from"./data/format.mjs";import{escapeHTML as Ni,unescapeHTML as Pi}from"./data/html.mjs";import{listDistinctUnion as Fi,listGroupBy as Ii,listOfKey as Li,listQuery as Ri}from"./data/list.mjs";import{objectFilter as zi,objectInclusivePick as Bi,objectIsEmpty as Vi,objectMap as Hi,objectMergeDisposable as Ui,objectOmit as Wi,objectPick as Gi,objectPlain as Ki}from"./data/object.mjs";import{formatMessages as qi,renderMessages as Ji}from"./data/message.mjs";import{objectAssignDeepInPlace as Yi,objectAssignDescriptionInPlace as Xi,objectDescribeChange as Zi}from"./data/object-changes.mjs";import{toValidFilename as Qi}from"./data/path.mjs";import{isEven as $i,isHalf as ea,roundArrayOfNumbersToMatchSum as ta,roundArrayOfObjectsToMatchSum as na,roundDown as ra,roundHalfAwayFromZero as ia,roundHalfDown as aa,roundHalfEven as oa,roundHalfOdd as sa,roundHalfTowardsZero as ca,roundHalfUp as la,roundUp as ua}from"./data/rounding.mjs";import{useSignal as da}from"./data/signal.mjs";import{endSortWeight as fa,moveSortWeight as pa,sortedItems as ma,startSortWeight as ha}from"./data/sortable.mjs";import{useSorted as ga}from"./data/sorted.mjs";import{deburr as _a}from"./data/string-deburr.mjs";import{stringHashFNV1a as va}from"./data/string-hash-fnv.mjs";import{useStringHashPool as ya}from"./data/string-hash-pool.mjs";import{RX_URL as ba,encodeQuery as xa,linkifyPlainText as Sa,linkifyPlainTextSimple as Ca,linkifyPlainTextWithLineBreaks as wa,parseQuery as Ta,toHumanReadableUrl as Ea}from"./data/url.mjs";import{Uint8ArrayToWords as Da,wordsToUint8Array as Oa}from"./data/wordlist.mjs";import{XRX as ka,regExpEscape as Aa,regExpString as ja}from"./data/xrx.mjs";import{polyfillUsing as Ma,useDefer as Na,useDispose as Pa}from"./dispose-defer.mjs";import{noopDisposer as Fa,useDisposeWithUtils as Ia,useEventListener as La,useEventListenerOnce as Ra,useInterval as za,useIntervalPause as Ba,useTimeout as Va}from"./dispose-utils.mjs";import{useAsyncMutex as Ha,useMutex as Ua}from"./exec/mutex.mjs";import{safeTimeout as Wa}from"./timeout.mjs";import{Emitter as Ga,getGlobalEmitter as Ka}from"./msg/emitter.mjs";import{qid as qa,setUuidDefaultEncoding as Ja,suid as Ya,suidBytes as Xa,suidBytesDate as Za,suidDate as Qa,uname as $a,unameReset as eo,uuid as to,uuid32bit as no,uuidB32 as ro,uuidB62 as io,uuidBytes as ao,uuidDecode as oo,uuidDecodeB32 as so,uuidDecodeB62 as co,uuidDecodeV4 as lo,uuidEncode as uo,uuidEncodeB32 as fo,uuidEncodeB62 as po,uuidEncodeV4 as mo,uuidIsValid as ho,uuidv4 as go}from"./uuid.mjs";import{Progress as _o}from"./exec/progress.mjs";import{usePool as vo}from"./exec/pool.mjs";import{SerialQueue as yo}from"./exec/queue.mjs";import{debounce as bo,throttle as xo}from"./exec/throttle-debounce.mjs";import{isLocalHost as So}from"./localhost.mjs";import{logCaptureConsole as Co}from"./log/log-console-capture.mjs";import{LoggerMemoryHandler as wo,logMessageFromCompact as To}from"./log/log-memory.mjs";import{Channel as Eo}from"./msg/channel.mjs";import{DebugChannel as Do}from"./msg/channel-debug.mjs";import{LocalChannel as Oo,createLocalChannelPair as ko}from"./msg/channel-local.mjs";import{ResillientChannel as Ao}from"./msg/channel-resilient.mjs";import{CryptoEncoder as jo,JsonEncoder as Mo,NoopEncoder as No}from"./msg/encoder.mjs";import{createPromiseProxy as Po,useMessageHub as Fo}from"./msg/messages.mjs";import{PubSub as Io,usePubSub as Lo}from"./msg/pubsub.mjs";import{RPCMode as Ro,useRPC as zo,useRPCHub as Bo}from"./msg/rpc.mjs";import{fetchBasic as Vo,fetchJson as Ho,fetchOptionsBasicAuth as Uo,fetchOptionsFormURLEncoded as Wo,fetchOptionsJson as Go,fetchText as Ko,parseBasicAuth as qo}from"./network.mjs";import{schemaExportJsonSchema as Jo,schemaExportJsonSchemaString as Yo}from"./schema/export-json-schema.mjs";import{isSchemaDefault as Xo,isSchemaObject as Zo,isSchemaObjectFlat as Qo,isSchemaOptional as $o,isSchemaPrimitive as es}from"./schema/utils.mjs";import{schemaExportSwiftStruct as ts}from"./schema/export-swift.mjs";import{schemaExportTypescriptInterface as ns}from"./schema/export-typescript.mjs";import{schemaCreateObject as rs,schemaParseObject as is,schemaValidateObject as as}from"./schema/parse-object.mjs";import{helpSchemaArgs as os,parseSchemaArgs as ss}from"./schema/parse-args.mjs";import{parseSchemaEnv as cs,stringFromSchemaEnv as ls}from"./schema/parse-env.mjs";import{Type as us,any as ds,array as fs,boolean as ps,double as ms,float as hs,func as gs,int as _s,literal as vs,none as ys,number as bs,object as xs,real as Ss,record as Cs,rpc as ws,string as Ts,stringLiterals as Es,tuple as Ds,union as Os}from"./schema/schema.mjs";import{deserializeSchema as ks,serializeSchema as As}from"./schema/serialize.mjs";import{t as js}from"./schema/z-collection.mjs";import{MemStorage as Ms}from"./storage/memstorage.mjs";import{setTestMode as Ns}from"./test.mjs";import{noop as Ps}from"./utils.mjs";export{Wt as BinaryEncoder,en as CRYPTO_DEFAULT_ALG,tn as CRYPTO_DEFAULT_DERIVE_ALG,nn as CRYPTO_DEFAULT_DERIVE_ITERATIONS,rn as CRYPTO_DEFAULT_HASH_ALG,an as CRYPTO_DEFAULT_IV_LENGTH,Eo as Channel,jo as CryptoEncoder,Br as DAY_MS,gi as Day,Do as DebugChannel,Be as DefaultLogger,Ga as Emitter,Mo as JsonEncoder,Oo as LocalChannel,i as LogLevelAlias,a as LogLevelAll,o as LogLevelDebug,s as LogLevelError,c as LogLevelFatal,l as LogLevelInfo,u as LogLevelOff,d as LogLevelWarn,Re as LoggerConsoleHandler,ze as LoggerContext,wo as LoggerMemoryHandler,Ms as MemStorage,No as NoopEncoder,_o as Progress,Io as PubSub,Ro as RPCMode,ba as RX_URL,Ao as ResillientChannel,yo as SerialQueue,fe as TIME_DAY_MS,pe as TIME_DAY_S,me as TIME_HOUR_MS,he as TIME_HOUR_S,ge as TIME_MINUTE_MS,_e as TIME_MINUTE_S,ve as TIME_MONTH_MS,ye as TIME_MONTH_S,be as TIME_WEEK_MS,xe as TIME_WEEK_S,Se as TIME_YEAR_MS,Ce as TIME_YEAR_S,us as Type,Er as Uint8ArrayToDataUri,Lt as Uint8ArrayToHexDump,Mt as Uint8ArrayToJson,Ft as Uint8ArrayToString,Da as Uint8ArrayToWords,ka as XRX,Dt as _decodeUtf8Polyfill,bt as _encodeUtf8Polyfill,Xn as _useBase,ds as any,fs as array,Tn as arrayAvg,En as arrayBatches,Dn as arrayEmptyInPlace,On as arrayFilterInPlace,kn as arrayFlatten,An as arrayIntersection,jn as arrayIsEqual,Mn as arrayMax,Nn as arrayMin,Pn as arrayMinus,Fn as arrayRandomElement,In as arrayRemoveElement,Ln as arraySetArrayInPlace,Rn as arraySetElement,zn as arrayShuffle,Bn as arrayShuffleForce,Vn as arrayShuffleInPlace,Hn as arraySorted,Un as arraySortedNumbers,Wn as arraySum,Gn as arraySymmetricDifference,Kn as arrayToggleInPlace,qn as arrayUnion,Jn as arrayUnique,Xe as assert,Ze as assertCondition,Ht as assertNumber,$ as avg,xt as base16,Vt as base32,ee as base32ToNumber,mt as base32agnoster,tt as base32crockford,Bt as base32hex,ht as base32hexnopad,rt as base32nopad,nt as base58,dt as base58check,kt as base58flickr,$e as base58xmr,Ot as base58xrp,lt as base64,ut as base64nopad,ft as base64url,it as base64urlnopad,st as bech32,ct as bech32m,te as between,Gt as bitfield,Kt as blobToArrayBuffer,Dr as blobToDataUri,qt as blobToUint8Array,ps as boolean,f as browserSelectColorByName,pt as bytes,Ut as bytesToString,g as cloneJsonObject,_ as cloneObject,xn as cmp,Sn as composeOrderby,Yn as createArray,et as createBase58check,Jt as createBinaryStreamDecoder,Yt as createBinaryStreamEncoder,ko as createLocalChannelPair,jr as createPromise,Po as createPromiseProxy,vn as csvParse,yn as csvParseToObjects,bn as csvStringify,Or as dataUriToBlob,kr as dataUriToMimeType,Ar as dataUriToUint8Array,we as dateFromSeconds,_i as dateStringToDays,Te as datetimeToLocal,Ee as datetimeToUTC,vi as day,Vr as dayDay,Hr as dayDaysInMonth,Ur as dayDiff,Wr as dayFromAny,Gr as dayFromDate,Kr as dayFromDateGMT,qr as dayFromDateUTC,Jr as dayFromParts,Yr as dayFromString,Xr as dayFromTimestamp,Zr as dayFromTimestampSeconds,Qr as dayFromToday,$r as dayIterator,ei as dayMonth,ti as dayMonthOffset,ni as dayMonthStart,ri as dayOffset,ii as dayRange,ai as dayToDate,oi as dayToDateGMT,si as dayToDateUTC,ci as dayToParts,li as dayToString,ui as dayToTimestamp,di as dayToTimestampSeconds,fi as dayYear,pi as dayYearOffset,mi as dayYearStart,bo as debounce,_a as deburr,xi as decimal,Si as decimalCentsPart,Ci as decimalFromCents,wi as decimalToCents,Zn as decodeBase16,Qn as decodeBase32,$n as decodeBase58,er as decodeBase62,Xt as decodeJson,on as decrypt,Qt as decryptAesGcm,fn as decryptXAES,Ti as deepEqual,Ei as deepMerge,Di as deepStripUndefinedInPlace,sn as deriveKeyPbkdf2,cn as deriveKeyPbkdf2CBC,ks as deserializeSchema,Ue as detect,Oi as diffObjects,ln as digest,ki as distributedFilePath,ms as double,De as duration,v as empty,tr as encodeBase16,nr as encodeBase32,rr as encodeBase58,ir as encodeBase62,Zt as encodeJson,xa as encodeQuery,un as encrypt,$t as encryptAesGcm,pn as encryptXAES,fa as endSortWeight,y as ensureKey,b as ensureKeyAsync,Nt as ensureUint8Array,It as equalBinary,Ni as escapeHTML,_n as escapeRegExp,ar as estimateSizeForBase,mn as exportKeyXAES,Qe as fatal,Vo as fetchBasic,Ho as fetchJson,Uo as fetchOptionsBasicAuth,Wo as fetchOptionsFormURLEncoded,Go as fetchOptionsJson,Ko as fetchText,x as first,dr as fixBrokenUtf8String,hs as float,yi as forEachDay,S as forTimes,Ai as formatBytesToHumanBase1000,ji as formatBytesToHumanBase1024,qi as formatMessages,Oe as formatMilliseconds,Mi as formatSecondsToTime,St as fromBase64,At as fromBase64String,sr as fromCamelCase,Rt as fromHex,gs as func,hn as generateKeyXAES,ke as getBuildNumber,We as getGlobal,h as getGlobalConsole,p as getGlobalContext,Ka as getGlobalEmitter,Ve as getGlobalLogger,He as getGlobalLoggerIfExists,Ge as getLocalStorage,J as getNamespaceFilterString,Ke as getNavigator,Ae as getPerformanceTimestamp,je as getSecondsFromBuildNumber,ne as getSecureRandom,re as getSecureRandomIfPossible,Me as getTimestamp,Ne as getTimestampInSeconds,qe as getWindow,m as globalAny,os as helpSchemaArgs,_t as hex,Mr as immediate,gn as importKeyXAES,_s as int,D as isArray,O as isBinaryArray,k as isBoolean,Je as isBrowser,A as isEmpty,$i as isEven,j as isFunction,ea as isHalf,M as isInteger,So as isLocalHost,N as isNotEmpty,P as isNotNull,F as isNull,I as isNullOrUndefined,L as isNumber,R as isObject,ie as isPrime,ae as isPrimeRX,z as isPrimitive,Nr as isPromise,B as isRecord,V as isRecordPlain,H as isSafeInteger,Xo as isSchemaDefault,Zo as isSchemaObject,Qo as isSchemaObjectFlat,$o as isSchemaOptional,es as isSchemaPrimitive,U as isString,W as isSymbol,Pr as isTimeout,G as isTruthy,K as isUint8Array,q as isValue,Y as joinLogStrings,Ct as joinToUint8Array,e as jsonParse,t as jsonStringify,n as jsonStringifySafe,r as jsonStringifySorted,wt as jsonToUint8Array,C as last,Sa as linkifyPlainText,Ca as linkifyPlainTextSimple,wa as linkifyPlainTextWithLineBreaks,Fi as listDistinctUnion,Ii as listGroupBy,Li as listOfKey,Ri as listQuery,vs as literal,Co as logCaptureConsole,To as logMessageFromCompact,w as memoize,T as memoizeAsync,pa as moveSortWeight,ys as none,Ps as noop,Fa as noopDisposer,bs as number,oe as numberToBase32,xs as object,Yi as objectAssignDeepInPlace,Xi as objectAssignDescriptionInPlace,Zi as objectDescribeChange,zi as objectFilter,Bi as objectInclusivePick,Vi as objectIsEmpty,Hi as objectMap,Ui as objectMergeDisposable,Wi as objectOmit,Gi as objectPick,Ki as objectPlain,qo as parseBasicAuth,Pe as parseDate,fr as parseFloat,pr as parseInt,X as parseLogLevel,Cn as parseOrderby,Ta as parseQuery,ss as parseSchemaArgs,cs as parseSchemaEnv,Ma as polyfillUsing,Fr as promisify,qa as qid,se as randomBoolean,ce as randomFloat,le as randomInt,dn as randomUint8Array,Ss as real,Cs as record,Aa as regExpEscape,ja as regExpString,Ji as renderMessages,ta as roundArrayOfNumbersToMatchSum,na as roundArrayOfObjectsToMatchSum,ra as roundDown,ia as roundHalfAwayFromZero,aa as roundHalfDown,oa as roundHalfEven,sa as roundHalfOdd,ca as roundHalfTowardsZero,la as roundHalfUp,ua as roundUp,ws as rpc,Wa as safeTimeout,rs as schemaCreateObject,Jo as schemaExportJsonSchema,Yo as schemaExportJsonSchemaString,ts as schemaExportSwiftStruct,ns as schemaExportTypescriptInterface,is as schemaParseObject,as as schemaValidateObject,ue as seededRandom,As as serializeSchema,hi as setDayTest,Ns as setTestMode,Fe as setTimestampTest,Ja as setUuidDefaultEncoding,E as size,Ir as sleep,ma as sortedItems,wn as sortedOrderby,ha as startSortWeight,ot as str,Ts as string,ls as stringFromSchemaEnv,va as stringHashFNV1a,Es as stringLiterals,mr as stringToBoolean,gt as stringToBytes,hr as stringToFloat,gr as stringToInteger,Pt as stringToUInt8Array,Ya as suid,Xa as suidBytes,Za as suidBytesDate,Qa as suidDate,de as sum,xo as throttle,Lr as timeout,Ie as timestampMillisecondsToSeconds,Le as timestampSecondsToMilliseconds,jt as toArrayBuffer,Et as toBase64,Tt as toBase64Url,_r as toBool,cr as toCamelCase,lr as toCapitalize,ur as toCapitalizeWords,vr as toFloat,yt as toHex,Ea as toHumanReadableUrl,yr as toInt,br as toString,zt as toUint8Array,Qi as toValidFilename,bi as today,Rr as tryTimeout,Ds as tuple,$a as uname,eo as unameReset,Pi as unescapeHTML,Os as union,Ha as useAsyncMutex,or as useBase,Na as useDefer,Pa as useDispose,Ia as useDisposeWithUtils,La as useEventListener,Ra as useEventListenerOnce,Ye as useExitHandler,za as useInterval,Ba as useIntervalPause,Z as useLevelFilter,Fo as useMessageHub,Ua as useMutex,Q as useNamespaceFilter,vo as usePool,Lo as usePubSub,zo as useRPC,Bo as useRPCHub,da as useSignal,ga as useSorted,ya as useStringHashPool,Va as useTimeout,vt as utf8,at as utils,to as uuid,no as uuid32bit,ro as uuidB32,io as uuidB62,ao as uuidBytes,oo as uuidDecode,so as uuidDecodeB32,co as uuidDecodeB62,lo as uuidDecodeV4,uo as uuidEncode,fo as uuidEncodeB32,po as uuidEncodeB62,mo as uuidEncodeV4,ho as uuidIsValid,go as uuidv4,xr as valueToBoolean,Sr as valueToBooleanNotFalse,Cr as valueToFloat,wr as valueToInteger,Tr as valueToString,zr as waitOn,Oa as wordsToUint8Array,js as z};
1
+ import { jsonParse, jsonStringify, jsonStringifySafe, jsonStringifySorted } from "./data/json.mjs";
2
+ import { LogLevelAlias, LogLevelAll, LogLevelDebug, LogLevelError, LogLevelFatal, LogLevelInfo, LogLevelOff, LogLevelWarn } from "./log/log-base.mjs";
3
+ import { browserSelectColorByName } from "./log/log-colors.mjs";
4
+ import { getGlobalContext, globalAny } from "./global.mjs";
5
+ import { getGlobalConsole } from "./log/log-console-original.mjs";
6
+ import { cloneJsonObject, cloneObject, empty, ensureKey, ensureKeyAsync, first, forTimes, last, memoize, memoizeAsync, size } from "./data/utils.mjs";
7
+ import { isArray, isBinaryArray, isBoolean, isEmpty, isFunction, isInteger, isNotEmpty, isNotNull, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRecord, isRecordPlain, isSafeInteger, isString, isSymbol, isTruthy, isUint8Array, isValue } from "./data/is.mjs";
8
+ import { getNamespaceFilterString, joinLogStrings, parseLogLevel, useLevelFilter, useNamespaceFilter } from "./log/log-filter.mjs";
9
+ import { avg, base32ToNumber, between, getSecureRandom, getSecureRandomIfPossible, isPrime, isPrimeRX, numberToBase32, randomBoolean, randomFloat, randomInt, seededRandom, sum } from "./data/math.mjs";
10
+ import { TIME_DAY_MS, TIME_DAY_S, TIME_HOUR_MS, TIME_HOUR_S, TIME_MINUTE_MS, TIME_MINUTE_S, TIME_MONTH_MS, TIME_MONTH_S, TIME_WEEK_MS, TIME_WEEK_S, TIME_YEAR_MS, TIME_YEAR_S, dateFromSeconds, datetimeToLocal, datetimeToUTC, duration, formatMilliseconds, getBuildNumber, getPerformanceTimestamp, getSecondsFromBuildNumber, getTimestamp, getTimestampInSeconds, parseDate, setTimestampTest, timestampMillisecondsToSeconds, timestampSecondsToMilliseconds } from "./time.mjs";
11
+ import { LoggerConsoleHandler } from "./log/log-console.mjs";
12
+ import { LoggerContext } from "./log/log-context.mjs";
13
+ import { DefaultLogger, getGlobalLogger, getGlobalLoggerIfExists } from "./log/log.mjs";
14
+ import { detect, getGlobal, getLocalStorage, getNavigator, getWindow, isBrowser, useExitHandler } from "./platform.mjs";
15
+ import { assert, assertCondition, fatal } from "./assert.mjs";
16
+ import { A as base58xmr, B as createBase58check, C as base32crockford, D as base58, E as base32nopad, F as base64urlnopad, G as utils, H as str, I as bech32, L as bech32m, M as base64, N as base64nopad, O as base58check, P as base64url, R as bytes, S as base32agnoster, T as base32hexnopad, U as stringToBytes, V as hex, W as utf8, _ as toHex, a as _encodeUtf8Polyfill, b as base16, c as fromBase64, d as joinToUint8Array, f as jsonToUint8Array, g as toBase64Url, h as toBase64, i as _decodeUtf8Polyfill, j as base58xrp, k as base58flickr, l as fromBase64String, m as toArrayBuffer, n as Uint8ArrayToJson, o as ensureUint8Array, p as stringToUInt8Array, r as Uint8ArrayToString, s as equalBinary, t as Uint8ArrayToHexDump, u as fromHex, v as toUint8Array, w as base32hex, x as base32, y as assertNumber, z as bytesToString } from "../bin-BAoS4qtm.mjs";
17
+ import { BinaryEncoder, bitfield, blobToArrayBuffer, blobToUint8Array, createBinaryStreamDecoder, createBinaryStreamEncoder, decodeJson, encodeJson } from "./bin/index.mjs";
18
+ import { decryptAesGcm, encryptAesGcm } from "./crypto/aes-sealed.mjs";
19
+ import { CRYPTO_DEFAULT_ALG, CRYPTO_DEFAULT_DERIVE_ALG, CRYPTO_DEFAULT_DERIVE_ITERATIONS, CRYPTO_DEFAULT_HASH_ALG, CRYPTO_DEFAULT_IV_LENGTH, decrypt, deriveKeyPbkdf2, deriveKeyPbkdf2CBC, digest, encrypt, randomUint8Array } from "./crypto/crypto.mjs";
20
+ import { decryptXAES, encryptXAES, exportKeyXAES, generateKeyXAES, importKeyXAES } from "./crypto/xaes.mjs";
21
+ import { escapeRegExp } from "./data/regexp.mjs";
22
+ import { csvParse, csvParseToObjects, csvStringify } from "./csv.mjs";
23
+ import { cmp, composeOrderby, parseOrderby, sortedOrderby } from "./data/orderby.mjs";
24
+ import { arrayAvg, arrayBatches, arrayEmptyInPlace, arrayFilterInPlace, arrayFlatten, arrayIntersection, arrayIsEqual, arrayMax, arrayMin, arrayMinus, arrayRandomElement, arrayRemoveElement, arraySetArrayInPlace, arraySetElement, arrayShuffle, arrayShuffleForce, arrayShuffleInPlace, arraySorted, arraySortedNumbers, arraySum, arraySymmetricDifference, arrayToggleInPlace, arrayUnion, arrayUnique, createArray } from "./data/array.mjs";
25
+ import { _useBase, decodeBase16, decodeBase32, decodeBase58, decodeBase62, encodeBase16, encodeBase32, encodeBase58, encodeBase62, estimateSizeForBase, useBase } from "./data/basex.mjs";
26
+ import { fromCamelCase, toCamelCase, toCapitalize, toCapitalizeWords } from "./data/camelcase.mjs";
27
+ import { fixBrokenUtf8String, parseFloat, parseInt, stringToBoolean, stringToFloat, stringToInteger, toBool, toFloat, toInt, toString, valueToBoolean, valueToBooleanNotFalse, valueToFloat, valueToInteger, valueToString } from "./data/convert.mjs";
28
+ import { Uint8ArrayToDataUri, blobToDataUri, dataUriToBlob, dataUriToMimeType, dataUriToUint8Array } from "./data/datauri.mjs";
29
+ import { createPromise, immediate, isPromise, isTimeout, promisify, sleep, timeout, tryTimeout, waitOn } from "./exec/promise.mjs";
30
+ import { DAY_MS, dayDay, dayDaysInMonth, dayDiff, dayFromAny, dayFromDate, dayFromDateGMT, dayFromDateUTC, dayFromParts, dayFromString, dayFromTimestamp, dayFromTimestampSeconds, dayFromToday, dayIterator, dayMonth, dayMonthOffset, dayMonthStart, dayOffset, dayRange, dayToDate, dayToDateGMT, dayToDateUTC, dayToParts, dayToString, dayToTimestamp, dayToTimestampSeconds, dayYear, dayYearOffset, dayYearStart, setDayTest } from "./data/day.mjs";
31
+ import { Day, dateStringToDays, day, forEachDay, today } from "./data/day-legacy.mjs";
32
+ import { decimal, decimalCentsPart, decimalFromCents, decimalToCents } from "./data/decimal.mjs";
33
+ import { deepEqual, deepMerge, deepStripUndefinedInPlace } from "./data/deep.mjs";
34
+ import { diffObjects } from "./data/diff.mjs";
35
+ import { distributedFilePath } from "./data/distributed.mjs";
36
+ import { formatBytesToHumanBase1000, formatBytesToHumanBase1024, formatSecondsToTime } from "./data/format.mjs";
37
+ import { escapeHTML, unescapeHTML } from "./data/html.mjs";
38
+ import { listDistinctUnion, listGroupBy, listOfKey, listQuery } from "./data/list.mjs";
39
+ import { objectFilter, objectInclusivePick, objectIsEmpty, objectMap, objectMergeDisposable, objectOmit, objectPick, objectPlain } from "./data/object.mjs";
40
+ import { formatMessages, renderMessages } from "./data/message.mjs";
41
+ import { objectAssignDeepInPlace, objectAssignDescriptionInPlace, objectDescribeChange } from "./data/object-changes.mjs";
42
+ import { toValidFilename } from "./data/path.mjs";
43
+ import { isEven, isHalf, roundArrayOfNumbersToMatchSum, roundArrayOfObjectsToMatchSum, roundDown, roundHalfAwayFromZero, roundHalfDown, roundHalfEven, roundHalfOdd, roundHalfTowardsZero, roundHalfUp, roundUp } from "./data/rounding.mjs";
44
+ import { useSignal } from "./data/signal.mjs";
45
+ import { endSortWeight, moveSortWeight, sortedItems, startSortWeight } from "./data/sortable.mjs";
46
+ import { useSorted } from "./data/sorted.mjs";
47
+ import { deburr } from "./data/string-deburr.mjs";
48
+ import { stringHashFNV1a } from "./data/string-hash-fnv.mjs";
49
+ import { useStringHashPool } from "./data/string-hash-pool.mjs";
50
+ import { RX_URL, encodeQuery, linkifyPlainText, linkifyPlainTextSimple, linkifyPlainTextWithLineBreaks, parseQuery, toHumanReadableUrl } from "./data/url.mjs";
51
+ import { Uint8ArrayToWords, wordsToUint8Array } from "./data/wordlist.mjs";
52
+ import { XRX, regExpEscape, regExpString } from "./data/xrx.mjs";
53
+ import { polyfillUsing, useDefer, useDispose } from "./dispose-defer.mjs";
54
+ import { noopDisposer, useDisposeWithUtils, useEventListener, useEventListenerOnce, useInterval, useIntervalPause, useTimeout } from "./dispose-utils.mjs";
55
+ import { useAsyncMutex, useMutex } from "./exec/mutex.mjs";
56
+ import { safeTimeout } from "./timeout.mjs";
57
+ import { Emitter, getGlobalEmitter } from "./msg/emitter.mjs";
58
+ import { qid, setUuidDefaultEncoding, suid, suidBytes, suidBytesDate, suidDate, uname, unameReset, uuid, uuid32bit, uuidB32, uuidB62, uuidBytes, uuidDecode, uuidDecodeB32, uuidDecodeB62, uuidDecodeV4, uuidEncode, uuidEncodeB32, uuidEncodeB62, uuidEncodeV4, uuidIsValid, uuidv4 } from "./uuid.mjs";
59
+ import { Progress } from "./exec/progress.mjs";
60
+ import { usePool } from "./exec/pool.mjs";
61
+ import { SerialQueue } from "./exec/queue.mjs";
62
+ import { debounce, throttle } from "./exec/throttle-debounce.mjs";
63
+ import { isLocalHost } from "./localhost.mjs";
64
+ import { logCaptureConsole } from "./log/log-console-capture.mjs";
65
+ import { LoggerMemoryHandler, logMessageFromCompact } from "./log/log-memory.mjs";
66
+ import { Channel } from "./msg/channel.mjs";
67
+ import { DebugChannel } from "./msg/channel-debug.mjs";
68
+ import { LocalChannel, createLocalChannelPair } from "./msg/channel-local.mjs";
69
+ import { ResillientChannel } from "./msg/channel-resilient.mjs";
70
+ import { CryptoEncoder, JsonEncoder, NoopEncoder } from "./msg/encoder.mjs";
71
+ import { createPromiseProxy, useMessageHub } from "./msg/messages.mjs";
72
+ import { PubSub, usePubSub } from "./msg/pubsub.mjs";
73
+ import { RPCMode, useRPC, useRPCHub } from "./msg/rpc.mjs";
74
+ import { fetchBasic, fetchJson, fetchOptionsBasicAuth, fetchOptionsFormURLEncoded, fetchOptionsJson, fetchText, parseBasicAuth } from "./network.mjs";
75
+ import { schemaExportJsonSchema, schemaExportJsonSchemaString } from "./schema/export-json-schema.mjs";
76
+ import { isSchemaDefault, isSchemaObject, isSchemaObjectFlat, isSchemaOptional, isSchemaPrimitive } from "./schema/utils.mjs";
77
+ import { schemaExportSwiftStruct } from "./schema/export-swift.mjs";
78
+ import { schemaExportTypescriptInterface } from "./schema/export-typescript.mjs";
79
+ import { schemaCreateObject, schemaParseObject, schemaValidateObject } from "./schema/parse-object.mjs";
80
+ import { helpSchemaArgs, parseSchemaArgs } from "./schema/parse-args.mjs";
81
+ import { parseSchemaEnv, stringFromSchemaEnv } from "./schema/parse-env.mjs";
82
+ import { Type, any, array, boolean, double, float, func, int, literal, none, number, object, real, record, rpc, string, stringLiterals, tuple, union } from "./schema/schema.mjs";
83
+ import { deserializeSchema, serializeSchema } from "./schema/serialize.mjs";
84
+ import { t as z_collection_exports } from "./schema/z-collection.mjs";
85
+ import { MemStorage } from "./storage/memstorage.mjs";
86
+ import { setTestMode } from "./test.mjs";
87
+ import { noop } from "./utils.mjs";
88
+
89
+ export { BinaryEncoder, CRYPTO_DEFAULT_ALG, CRYPTO_DEFAULT_DERIVE_ALG, CRYPTO_DEFAULT_DERIVE_ITERATIONS, CRYPTO_DEFAULT_HASH_ALG, CRYPTO_DEFAULT_IV_LENGTH, Channel, CryptoEncoder, DAY_MS, Day, DebugChannel, DefaultLogger, Emitter, JsonEncoder, LocalChannel, LogLevelAlias, LogLevelAll, LogLevelDebug, LogLevelError, LogLevelFatal, LogLevelInfo, LogLevelOff, LogLevelWarn, LoggerConsoleHandler, LoggerContext, LoggerMemoryHandler, MemStorage, NoopEncoder, Progress, PubSub, RPCMode, RX_URL, ResillientChannel, SerialQueue, TIME_DAY_MS, TIME_DAY_S, TIME_HOUR_MS, TIME_HOUR_S, TIME_MINUTE_MS, TIME_MINUTE_S, TIME_MONTH_MS, TIME_MONTH_S, TIME_WEEK_MS, TIME_WEEK_S, TIME_YEAR_MS, TIME_YEAR_S, Type, Uint8ArrayToDataUri, Uint8ArrayToHexDump, Uint8ArrayToJson, Uint8ArrayToString, Uint8ArrayToWords, XRX, _decodeUtf8Polyfill, _encodeUtf8Polyfill, _useBase, any, array, arrayAvg, arrayBatches, arrayEmptyInPlace, arrayFilterInPlace, arrayFlatten, arrayIntersection, arrayIsEqual, arrayMax, arrayMin, arrayMinus, arrayRandomElement, arrayRemoveElement, arraySetArrayInPlace, arraySetElement, arrayShuffle, arrayShuffleForce, arrayShuffleInPlace, arraySorted, arraySortedNumbers, arraySum, arraySymmetricDifference, arrayToggleInPlace, arrayUnion, arrayUnique, assert, assertCondition, assertNumber, avg, base16, base32, base32ToNumber, base32agnoster, base32crockford, base32hex, base32hexnopad, base32nopad, base58, base58check, base58flickr, base58xmr, base58xrp, base64, base64nopad, base64url, base64urlnopad, bech32, bech32m, between, bitfield, blobToArrayBuffer, blobToDataUri, blobToUint8Array, boolean, browserSelectColorByName, bytes, bytesToString, cloneJsonObject, cloneObject, cmp, composeOrderby, createArray, createBase58check, createBinaryStreamDecoder, createBinaryStreamEncoder, createLocalChannelPair, createPromise, createPromiseProxy, csvParse, csvParseToObjects, csvStringify, dataUriToBlob, dataUriToMimeType, dataUriToUint8Array, dateFromSeconds, dateStringToDays, datetimeToLocal, datetimeToUTC, day, dayDay, dayDaysInMonth, dayDiff, dayFromAny, dayFromDate, dayFromDateGMT, dayFromDateUTC, dayFromParts, dayFromString, dayFromTimestamp, dayFromTimestampSeconds, dayFromToday, dayIterator, dayMonth, dayMonthOffset, dayMonthStart, dayOffset, dayRange, dayToDate, dayToDateGMT, dayToDateUTC, dayToParts, dayToString, dayToTimestamp, dayToTimestampSeconds, dayYear, dayYearOffset, dayYearStart, debounce, deburr, decimal, decimalCentsPart, decimalFromCents, decimalToCents, decodeBase16, decodeBase32, decodeBase58, decodeBase62, decodeJson, decrypt, decryptAesGcm, decryptXAES, deepEqual, deepMerge, deepStripUndefinedInPlace, deriveKeyPbkdf2, deriveKeyPbkdf2CBC, deserializeSchema, detect, diffObjects, digest, distributedFilePath, double, duration, empty, encodeBase16, encodeBase32, encodeBase58, encodeBase62, encodeJson, encodeQuery, encrypt, encryptAesGcm, encryptXAES, endSortWeight, ensureKey, ensureKeyAsync, ensureUint8Array, equalBinary, escapeHTML, escapeRegExp, estimateSizeForBase, exportKeyXAES, fatal, fetchBasic, fetchJson, fetchOptionsBasicAuth, fetchOptionsFormURLEncoded, fetchOptionsJson, fetchText, first, fixBrokenUtf8String, float, forEachDay, forTimes, formatBytesToHumanBase1000, formatBytesToHumanBase1024, formatMessages, formatMilliseconds, formatSecondsToTime, fromBase64, fromBase64String, fromCamelCase, fromHex, func, generateKeyXAES, getBuildNumber, getGlobal, getGlobalConsole, getGlobalContext, getGlobalEmitter, getGlobalLogger, getGlobalLoggerIfExists, getLocalStorage, getNamespaceFilterString, getNavigator, getPerformanceTimestamp, getSecondsFromBuildNumber, getSecureRandom, getSecureRandomIfPossible, getTimestamp, getTimestampInSeconds, getWindow, globalAny, helpSchemaArgs, hex, immediate, importKeyXAES, int, isArray, isBinaryArray, isBoolean, isBrowser, isEmpty, isEven, isFunction, isHalf, isInteger, isLocalHost, isNotEmpty, isNotNull, isNull, isNullOrUndefined, isNumber, isObject, isPrime, isPrimeRX, isPrimitive, isPromise, isRecord, isRecordPlain, isSafeInteger, isSchemaDefault, isSchemaObject, isSchemaObjectFlat, isSchemaOptional, isSchemaPrimitive, isString, isSymbol, isTimeout, isTruthy, isUint8Array, isValue, joinLogStrings, joinToUint8Array, jsonParse, jsonStringify, jsonStringifySafe, jsonStringifySorted, jsonToUint8Array, last, linkifyPlainText, linkifyPlainTextSimple, linkifyPlainTextWithLineBreaks, listDistinctUnion, listGroupBy, listOfKey, listQuery, literal, logCaptureConsole, logMessageFromCompact, memoize, memoizeAsync, moveSortWeight, none, noop, noopDisposer, number, numberToBase32, object, objectAssignDeepInPlace, objectAssignDescriptionInPlace, objectDescribeChange, objectFilter, objectInclusivePick, objectIsEmpty, objectMap, objectMergeDisposable, objectOmit, objectPick, objectPlain, parseBasicAuth, parseDate, parseFloat, parseInt, parseLogLevel, parseOrderby, parseQuery, parseSchemaArgs, parseSchemaEnv, polyfillUsing, promisify, qid, randomBoolean, randomFloat, randomInt, randomUint8Array, real, record, regExpEscape, regExpString, renderMessages, roundArrayOfNumbersToMatchSum, roundArrayOfObjectsToMatchSum, roundDown, roundHalfAwayFromZero, roundHalfDown, roundHalfEven, roundHalfOdd, roundHalfTowardsZero, roundHalfUp, roundUp, rpc, safeTimeout, schemaCreateObject, schemaExportJsonSchema, schemaExportJsonSchemaString, schemaExportSwiftStruct, schemaExportTypescriptInterface, schemaParseObject, schemaValidateObject, seededRandom, serializeSchema, setDayTest, setTestMode, setTimestampTest, setUuidDefaultEncoding, size, sleep, sortedItems, sortedOrderby, startSortWeight, str, string, stringFromSchemaEnv, stringHashFNV1a, stringLiterals, stringToBoolean, stringToBytes, stringToFloat, stringToInteger, stringToUInt8Array, suid, suidBytes, suidBytesDate, suidDate, sum, throttle, timeout, timestampMillisecondsToSeconds, timestampSecondsToMilliseconds, toArrayBuffer, toBase64, toBase64Url, toBool, toCamelCase, toCapitalize, toCapitalizeWords, toFloat, toHex, toHumanReadableUrl, toInt, toString, toUint8Array, toValidFilename, today, tryTimeout, tuple, uname, unameReset, unescapeHTML, union, useAsyncMutex, useBase, useDefer, useDispose, useDisposeWithUtils, useEventListener, useEventListenerOnce, useExitHandler, useInterval, useIntervalPause, useLevelFilter, useMessageHub, useMutex, useNamespaceFilter, usePool, usePubSub, useRPC, useRPCHub, useSignal, useSorted, useStringHashPool, useTimeout, utf8, utils, uuid, uuid32bit, uuidB32, uuidB62, uuidBytes, uuidDecode, uuidDecodeB32, uuidDecodeB62, uuidDecodeV4, uuidEncode, uuidEncodeB32, uuidEncodeB62, uuidEncodeV4, uuidIsValid, uuidv4, valueToBoolean, valueToBooleanNotFalse, valueToFloat, valueToInteger, valueToString, waitOn, wordsToUint8Array, z_collection_exports as z };
@@ -1,2 +1,17 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e=globalThis?.location?.hostname??``){return[`::ffff:127.0.0.1`,`localhost`,`127.0.0.1`,``,`::1`,`::`].includes(e)||e.startsWith(`192.168.`)||e.startsWith(`10.0.`)||e.endsWith(`.local`)}exports.isLocalHost=e;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/common/localhost.ts
4
+ function isLocalHost(hostname = globalThis?.location?.hostname ?? "") {
5
+ return [
6
+ "::ffff:127.0.0.1",
7
+ "localhost",
8
+ "127.0.0.1",
9
+ "",
10
+ "::1",
11
+ "::"
12
+ ].includes(hostname) || hostname.startsWith("192.168.") || hostname.startsWith("10.0.") || hostname.endsWith(".local");
13
+ }
14
+
15
+ //#endregion
16
+ exports.isLocalHost = isLocalHost;
2
17
  //# sourceMappingURL=localhost.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"localhost.cjs","names":[],"sources":["../../src/common/localhost.ts"],"sourcesContent":["export function isLocalHost(\n hostname: string = globalThis?.location?.hostname ?? '',\n): boolean {\n return (\n ['::ffff:127.0.0.1', 'localhost', '127.0.0.1', '', '::1', '::'].includes(\n hostname,\n )\n || hostname.startsWith('192.168.')\n || hostname.startsWith('10.0.')\n || hostname.endsWith('.local')\n )\n}\n"],"mappings":"mEAAA,SAAgB,EACd,EAAmB,YAAY,UAAU,UAAY,GAC5C,CACT,MACE,CAAC,mBAAoB,YAAa,YAAa,GAAI,MAAO,KAAK,CAAC,SAC9D,EACD,EACE,EAAS,WAAW,WAAW,EAC/B,EAAS,WAAW,QAAQ,EAC5B,EAAS,SAAS,SAAS"}
1
+ {"version":3,"file":"localhost.cjs","names":[],"sources":["../../src/common/localhost.ts"],"sourcesContent":["export function isLocalHost(\n hostname: string = globalThis?.location?.hostname ?? '',\n): boolean {\n return (\n ['::ffff:127.0.0.1', 'localhost', '127.0.0.1', '', '::1', '::'].includes(\n hostname,\n )\n || hostname.startsWith('192.168.')\n || hostname.startsWith('10.0.')\n || hostname.endsWith('.local')\n )\n}\n"],"mappings":";;;AAAA,SAAgB,YACd,WAAmB,YAAY,UAAU,YAAY,IAC5C;AACT,QACE;EAAC;EAAoB;EAAa;EAAa;EAAI;EAAO;EAAK,CAAC,SAC9D,SACD,IACE,SAAS,WAAW,WAAW,IAC/B,SAAS,WAAW,QAAQ,IAC5B,SAAS,SAAS,SAAS"}
@@ -1,2 +1,15 @@
1
- function e(e=globalThis?.location?.hostname??``){return[`::ffff:127.0.0.1`,`localhost`,`127.0.0.1`,``,`::1`,`::`].includes(e)||e.startsWith(`192.168.`)||e.startsWith(`10.0.`)||e.endsWith(`.local`)}export{e as isLocalHost};
1
+ //#region src/common/localhost.ts
2
+ function isLocalHost(hostname = globalThis?.location?.hostname ?? "") {
3
+ return [
4
+ "::ffff:127.0.0.1",
5
+ "localhost",
6
+ "127.0.0.1",
7
+ "",
8
+ "::1",
9
+ "::"
10
+ ].includes(hostname) || hostname.startsWith("192.168.") || hostname.startsWith("10.0.") || hostname.endsWith(".local");
11
+ }
12
+
13
+ //#endregion
14
+ export { isLocalHost };
2
15
  //# sourceMappingURL=localhost.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"localhost.mjs","names":[],"sources":["../../src/common/localhost.ts"],"sourcesContent":["export function isLocalHost(\n hostname: string = globalThis?.location?.hostname ?? '',\n): boolean {\n return (\n ['::ffff:127.0.0.1', 'localhost', '127.0.0.1', '', '::1', '::'].includes(\n hostname,\n )\n || hostname.startsWith('192.168.')\n || hostname.startsWith('10.0.')\n || hostname.endsWith('.local')\n )\n}\n"],"mappings":"AAAA,SAAgB,EACd,EAAmB,YAAY,UAAU,UAAY,GAC5C,CACT,MACE,CAAC,mBAAoB,YAAa,YAAa,GAAI,MAAO,KAAK,CAAC,SAC9D,EACD,EACE,EAAS,WAAW,WAAW,EAC/B,EAAS,WAAW,QAAQ,EAC5B,EAAS,SAAS,SAAS"}
1
+ {"version":3,"file":"localhost.mjs","names":[],"sources":["../../src/common/localhost.ts"],"sourcesContent":["export function isLocalHost(\n hostname: string = globalThis?.location?.hostname ?? '',\n): boolean {\n return (\n ['::ffff:127.0.0.1', 'localhost', '127.0.0.1', '', '::1', '::'].includes(\n hostname,\n )\n || hostname.startsWith('192.168.')\n || hostname.startsWith('10.0.')\n || hostname.endsWith('.local')\n )\n}\n"],"mappings":";AAAA,SAAgB,YACd,WAAmB,YAAY,UAAU,YAAY,IAC5C;AACT,QACE;EAAC;EAAoB;EAAa;EAAa;EAAI;EAAO;EAAK,CAAC,SAC9D,SACD,IACE,SAAS,WAAW,WAAW,IAC/B,SAAS,WAAW,QAAQ,IAC5B,SAAS,SAAS,SAAS"}
@@ -1 +1,34 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./log-base.cjs`),t=require(`./log-colors.cjs`),n=require(`./log-console-original.cjs`),r=require(`./log-filter.cjs`),i=require(`./log-console.cjs`),a=require(`./log-context.cjs`),o=require(`./log.cjs`),s=require(`./log-console-capture.cjs`),c=require(`./log-memory.cjs`);exports.DefaultLogger=o.DefaultLogger,exports.LogLevelAlias=e.LogLevelAlias,exports.LogLevelAll=e.LogLevelAll,exports.LogLevelDebug=e.LogLevelDebug,exports.LogLevelError=e.LogLevelError,exports.LogLevelFatal=e.LogLevelFatal,exports.LogLevelInfo=e.LogLevelInfo,exports.LogLevelOff=e.LogLevelOff,exports.LogLevelWarn=e.LogLevelWarn,exports.LoggerConsoleHandler=i.LoggerConsoleHandler,exports.LoggerContext=a.LoggerContext,exports.LoggerMemoryHandler=c.LoggerMemoryHandler,exports.browserSelectColorByName=t.browserSelectColorByName,exports.getGlobalConsole=n.getGlobalConsole,exports.getGlobalLogger=o.getGlobalLogger,exports.getGlobalLoggerIfExists=o.getGlobalLoggerIfExists,exports.getNamespaceFilterString=r.getNamespaceFilterString,exports.joinLogStrings=r.joinLogStrings,exports.logCaptureConsole=s.logCaptureConsole,exports.logMessageFromCompact=c.logMessageFromCompact,exports.parseLogLevel=r.parseLogLevel,exports.useLevelFilter=r.useLevelFilter,exports.useNamespaceFilter=r.useNamespaceFilter;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_common_log_log_base = require('./log-base.cjs');
3
+ const require_common_log_log_colors = require('./log-colors.cjs');
4
+ const require_common_log_log_console_original = require('./log-console-original.cjs');
5
+ const require_common_log_log_filter = require('./log-filter.cjs');
6
+ const require_common_log_log_console = require('./log-console.cjs');
7
+ const require_common_log_log_context = require('./log-context.cjs');
8
+ const require_common_log_log = require('./log.cjs');
9
+ const require_common_log_log_console_capture = require('./log-console-capture.cjs');
10
+ const require_common_log_log_memory = require('./log-memory.cjs');
11
+
12
+ exports.DefaultLogger = require_common_log_log.DefaultLogger;
13
+ exports.LogLevelAlias = require_common_log_log_base.LogLevelAlias;
14
+ exports.LogLevelAll = require_common_log_log_base.LogLevelAll;
15
+ exports.LogLevelDebug = require_common_log_log_base.LogLevelDebug;
16
+ exports.LogLevelError = require_common_log_log_base.LogLevelError;
17
+ exports.LogLevelFatal = require_common_log_log_base.LogLevelFatal;
18
+ exports.LogLevelInfo = require_common_log_log_base.LogLevelInfo;
19
+ exports.LogLevelOff = require_common_log_log_base.LogLevelOff;
20
+ exports.LogLevelWarn = require_common_log_log_base.LogLevelWarn;
21
+ exports.LoggerConsoleHandler = require_common_log_log_console.LoggerConsoleHandler;
22
+ exports.LoggerContext = require_common_log_log_context.LoggerContext;
23
+ exports.LoggerMemoryHandler = require_common_log_log_memory.LoggerMemoryHandler;
24
+ exports.browserSelectColorByName = require_common_log_log_colors.browserSelectColorByName;
25
+ exports.getGlobalConsole = require_common_log_log_console_original.getGlobalConsole;
26
+ exports.getGlobalLogger = require_common_log_log.getGlobalLogger;
27
+ exports.getGlobalLoggerIfExists = require_common_log_log.getGlobalLoggerIfExists;
28
+ exports.getNamespaceFilterString = require_common_log_log_filter.getNamespaceFilterString;
29
+ exports.joinLogStrings = require_common_log_log_filter.joinLogStrings;
30
+ exports.logCaptureConsole = require_common_log_log_console_capture.logCaptureConsole;
31
+ exports.logMessageFromCompact = require_common_log_log_memory.logMessageFromCompact;
32
+ exports.parseLogLevel = require_common_log_log_filter.parseLogLevel;
33
+ exports.useLevelFilter = require_common_log_log_filter.useLevelFilter;
34
+ exports.useNamespaceFilter = require_common_log_log_filter.useNamespaceFilter;
@@ -1 +1,11 @@
1
- import{LogLevelAlias as e,LogLevelAll as t,LogLevelDebug as n,LogLevelError as r,LogLevelFatal as i,LogLevelInfo as a,LogLevelOff as o,LogLevelWarn as s}from"./log-base.mjs";import{browserSelectColorByName as c}from"./log-colors.mjs";import{getGlobalConsole as l}from"./log-console-original.mjs";import{getNamespaceFilterString as u,joinLogStrings as d,parseLogLevel as f,useLevelFilter as p,useNamespaceFilter as m}from"./log-filter.mjs";import{LoggerConsoleHandler as h}from"./log-console.mjs";import{LoggerContext as g}from"./log-context.mjs";import{DefaultLogger as _,getGlobalLogger as v,getGlobalLoggerIfExists as y}from"./log.mjs";import{logCaptureConsole as b}from"./log-console-capture.mjs";import{LoggerMemoryHandler as x,logMessageFromCompact as S}from"./log-memory.mjs";export{_ as DefaultLogger,e as LogLevelAlias,t as LogLevelAll,n as LogLevelDebug,r as LogLevelError,i as LogLevelFatal,a as LogLevelInfo,o as LogLevelOff,s as LogLevelWarn,h as LoggerConsoleHandler,g as LoggerContext,x as LoggerMemoryHandler,c as browserSelectColorByName,l as getGlobalConsole,v as getGlobalLogger,y as getGlobalLoggerIfExists,u as getNamespaceFilterString,d as joinLogStrings,b as logCaptureConsole,S as logMessageFromCompact,f as parseLogLevel,p as useLevelFilter,m as useNamespaceFilter};
1
+ import { LogLevelAlias, LogLevelAll, LogLevelDebug, LogLevelError, LogLevelFatal, LogLevelInfo, LogLevelOff, LogLevelWarn } from "./log-base.mjs";
2
+ import { browserSelectColorByName } from "./log-colors.mjs";
3
+ import { getGlobalConsole } from "./log-console-original.mjs";
4
+ import { getNamespaceFilterString, joinLogStrings, parseLogLevel, useLevelFilter, useNamespaceFilter } from "./log-filter.mjs";
5
+ import { LoggerConsoleHandler } from "./log-console.mjs";
6
+ import { LoggerContext } from "./log-context.mjs";
7
+ import { DefaultLogger, getGlobalLogger, getGlobalLoggerIfExists } from "./log.mjs";
8
+ import { logCaptureConsole } from "./log-console-capture.mjs";
9
+ import { LoggerMemoryHandler, logMessageFromCompact } from "./log-memory.mjs";
10
+
11
+ export { DefaultLogger, LogLevelAlias, LogLevelAll, LogLevelDebug, LogLevelError, LogLevelFatal, LogLevelInfo, LogLevelOff, LogLevelWarn, LoggerConsoleHandler, LoggerContext, LoggerMemoryHandler, browserSelectColorByName, getGlobalConsole, getGlobalLogger, getGlobalLoggerIfExists, getNamespaceFilterString, joinLogStrings, logCaptureConsole, logMessageFromCompact, parseLogLevel, useLevelFilter, useNamespaceFilter };
@@ -1,2 +1,41 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=9007199254740991,t={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:e,"-":e};exports.LogLevelAlias=t,exports.LogLevelAll=-1,exports.LogLevelDebug=0,exports.LogLevelError=3,exports.LogLevelFatal=4,exports.LogLevelInfo=1,exports.LogLevelOff=e,exports.LogLevelWarn=2;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/common/log/log-base.ts
4
+ const LogLevelAll = -1;
5
+ const LogLevelDebug = 0;
6
+ const LogLevelInfo = 1;
7
+ const LogLevelWarn = 2;
8
+ const LogLevelError = 3;
9
+ const LogLevelFatal = 4;
10
+ const LogLevelOff = 9007199254740991;
11
+ const LogLevelAlias = {
12
+ "*": -1,
13
+ "a": -1,
14
+ "all": -1,
15
+ "d": 0,
16
+ "dbg": 0,
17
+ "debug": 0,
18
+ "i": 1,
19
+ "inf": 1,
20
+ "info": 1,
21
+ "w": 2,
22
+ "warn": 2,
23
+ "warning": 2,
24
+ "e": 3,
25
+ "err": 3,
26
+ "error": 3,
27
+ "fatal": 4,
28
+ "off": LogLevelOff,
29
+ "-": LogLevelOff
30
+ };
31
+
32
+ //#endregion
33
+ exports.LogLevelAlias = LogLevelAlias;
34
+ exports.LogLevelAll = LogLevelAll;
35
+ exports.LogLevelDebug = LogLevelDebug;
36
+ exports.LogLevelError = LogLevelError;
37
+ exports.LogLevelFatal = LogLevelFatal;
38
+ exports.LogLevelInfo = LogLevelInfo;
39
+ exports.LogLevelOff = LogLevelOff;
40
+ exports.LogLevelWarn = LogLevelWarn;
2
41
  //# sourceMappingURL=log-base.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"log-base.cjs","names":[],"sources":["../../../src/common/log/log-base.ts"],"sourcesContent":["export type LogLevel = number\n\nexport const LogLevelAll = -1\nexport const LogLevelDebug = 0\nexport const LogLevelInfo = 1\nexport const LogLevelWarn = 2\nexport const LogLevelError = 3\nexport const LogLevelFatal = 4\nexport const LogLevelOff = 9007199254740991 // `Infinity` === `1 / 0`, but bad for sideEffects, therefore `Math.pow(2, 53) - 1`\n\nexport const LogLevelAlias: Record<string, LogLevel> = {\n '*': LogLevelAll,\n 'a': LogLevelAll,\n 'all': LogLevelAll,\n 'd': LogLevelDebug,\n 'dbg': LogLevelDebug,\n 'debug': LogLevelDebug,\n 'i': LogLevelInfo,\n 'inf': LogLevelInfo,\n 'info': LogLevelInfo,\n 'w': LogLevelWarn,\n 'warn': LogLevelWarn,\n 'warning': LogLevelWarn,\n 'e': LogLevelError,\n 'err': LogLevelError,\n 'error': LogLevelError,\n 'fatal': LogLevelFatal,\n 'off': LogLevelOff,\n '-': LogLevelOff,\n}\n\nexport type LogLevelAliasKey = keyof typeof LogLevelAlias\nexport type LogLevelAliasType = number | boolean | LogLevelAliasKey\n\nexport interface LogMessage {\n level: LogLevel\n name: string\n messages: any[]\n line?: number\n file?: string\n timestamp?: number\n}\n\nexport type LogMessageCompact = [\n timestamp: number,\n level: LogLevel,\n name: string,\n ...messages: any[],\n]\n\nexport type LogHandler = (msg: LogMessage) => void\n\nexport interface LoggerInterface {\n (...messages: any[]): void\n\n /** @deprecated use .level = LogLevel.off or LogLevel.all */\n active: boolean\n\n level: LogLevel\n\n generic: (level: LogLevel, ...messages: any[]) => void\n\n debug: (...messages: any[]) => void\n\n info: (...messages: any[]) => void\n\n warn: (...messages: any[]) => void\n\n error: (...messages: any[]) => void\n\n /**\n * Throws if condition is not truthy.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n assert: (condition: unknown, ...messages: any[]) => asserts condition\n\n /**\n * Always throws.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n fatal: (...messages: any[]) => never\n\n extend: (prefix: string) => LoggerInterface\n\n factory?: LoggerContextInterface\n\n label: string\n}\n\nexport interface LoggerContextInterface {\n (name?: string, level?: LogLevelAliasType): LoggerInterface\n\n registerHandler: (handler: LogHandler) => void\n\n setFilter: (namespaces: string) => void\n\n setHandlers: (handlers?: (LogHandler | undefined | null)[]) => void\n\n setLock: (lock: boolean) => void\n\n /** When true emits a short log message for each Logger when being set up first time. */\n setDebug: (debug: boolean) => void\n\n setLogLevel: (level?: LogLevel) => void\n\n setFactory: (factory: (name?: string) => LoggerInterface) => void\n}\n\nexport interface LogHandlerOptions {\n level?: LogLevel\n filter?: string\n colors?: boolean\n levelHelper?: boolean\n nameBrackets?: boolean\n padding?: number\n fill?: number\n stack?: boolean | number\n time?: boolean\n pretty?: boolean\n}\n"],"mappings":"mEAEA,MAMa,EAAc,iBAEd,EAA0C,CACrD,IAAA,GACA,EAAA,GACA,IAAA,GACA,EAAA,EACA,IAAA,EACA,MAAA,EACA,EAAA,EACA,IAAA,EACA,KAAA,EACA,EAAA,EACA,KAAA,EACA,QAAA,EACA,EAAA,EACA,IAAA,EACA,MAAA,EACA,MAAA,EACA,IAAO,EACP,IAAK,EACN"}
1
+ {"version":3,"file":"log-base.cjs","names":[],"sources":["../../../src/common/log/log-base.ts"],"sourcesContent":["export type LogLevel = number\n\nexport const LogLevelAll = -1\nexport const LogLevelDebug = 0\nexport const LogLevelInfo = 1\nexport const LogLevelWarn = 2\nexport const LogLevelError = 3\nexport const LogLevelFatal = 4\nexport const LogLevelOff = 9007199254740991 // `Infinity` === `1 / 0`, but bad for sideEffects, therefore `Math.pow(2, 53) - 1`\n\nexport const LogLevelAlias: Record<string, LogLevel> = {\n '*': LogLevelAll,\n 'a': LogLevelAll,\n 'all': LogLevelAll,\n 'd': LogLevelDebug,\n 'dbg': LogLevelDebug,\n 'debug': LogLevelDebug,\n 'i': LogLevelInfo,\n 'inf': LogLevelInfo,\n 'info': LogLevelInfo,\n 'w': LogLevelWarn,\n 'warn': LogLevelWarn,\n 'warning': LogLevelWarn,\n 'e': LogLevelError,\n 'err': LogLevelError,\n 'error': LogLevelError,\n 'fatal': LogLevelFatal,\n 'off': LogLevelOff,\n '-': LogLevelOff,\n}\n\nexport type LogLevelAliasKey = keyof typeof LogLevelAlias\nexport type LogLevelAliasType = number | boolean | LogLevelAliasKey\n\nexport interface LogMessage {\n level: LogLevel\n name: string\n messages: any[]\n line?: number\n file?: string\n timestamp?: number\n}\n\nexport type LogMessageCompact = [\n timestamp: number,\n level: LogLevel,\n name: string,\n ...messages: any[],\n]\n\nexport type LogHandler = (msg: LogMessage) => void\n\nexport interface LoggerInterface {\n (...messages: any[]): void\n\n /** @deprecated use .level = LogLevel.off or LogLevel.all */\n active: boolean\n\n level: LogLevel\n\n generic: (level: LogLevel, ...messages: any[]) => void\n\n debug: (...messages: any[]) => void\n\n info: (...messages: any[]) => void\n\n warn: (...messages: any[]) => void\n\n error: (...messages: any[]) => void\n\n /**\n * Throws if condition is not truthy.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n assert: (condition: unknown, ...messages: any[]) => asserts condition\n\n /**\n * Always throws.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n fatal: (...messages: any[]) => never\n\n extend: (prefix: string) => LoggerInterface\n\n factory?: LoggerContextInterface\n\n label: string\n}\n\nexport interface LoggerContextInterface {\n (name?: string, level?: LogLevelAliasType): LoggerInterface\n\n registerHandler: (handler: LogHandler) => void\n\n setFilter: (namespaces: string) => void\n\n setHandlers: (handlers?: (LogHandler | undefined | null)[]) => void\n\n setLock: (lock: boolean) => void\n\n /** When true emits a short log message for each Logger when being set up first time. */\n setDebug: (debug: boolean) => void\n\n setLogLevel: (level?: LogLevel) => void\n\n setFactory: (factory: (name?: string) => LoggerInterface) => void\n}\n\nexport interface LogHandlerOptions {\n level?: LogLevel\n filter?: string\n colors?: boolean\n levelHelper?: boolean\n nameBrackets?: boolean\n padding?: number\n fill?: number\n stack?: boolean | number\n time?: boolean\n pretty?: boolean\n}\n"],"mappings":";;;AAEA,MAAa,cAAc;AAC3B,MAAa,gBAAgB;AAC7B,MAAa,eAAe;AAC5B,MAAa,eAAe;AAC5B,MAAa,gBAAgB;AAC7B,MAAa,gBAAgB;AAC7B,MAAa,cAAc;AAE3B,MAAa,gBAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,OAAO;CACP,KAAK;CACN"}
@@ -1,2 +1,32 @@
1
- const e=-1,t=0,n=1,r=2,i=3,a=4,o=9007199254740991,s={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:o,"-":o};export{s as LogLevelAlias,e as LogLevelAll,t as LogLevelDebug,i as LogLevelError,a as LogLevelFatal,n as LogLevelInfo,o as LogLevelOff,r as LogLevelWarn};
1
+ //#region src/common/log/log-base.ts
2
+ const LogLevelAll = -1;
3
+ const LogLevelDebug = 0;
4
+ const LogLevelInfo = 1;
5
+ const LogLevelWarn = 2;
6
+ const LogLevelError = 3;
7
+ const LogLevelFatal = 4;
8
+ const LogLevelOff = 9007199254740991;
9
+ const LogLevelAlias = {
10
+ "*": -1,
11
+ "a": -1,
12
+ "all": -1,
13
+ "d": 0,
14
+ "dbg": 0,
15
+ "debug": 0,
16
+ "i": 1,
17
+ "inf": 1,
18
+ "info": 1,
19
+ "w": 2,
20
+ "warn": 2,
21
+ "warning": 2,
22
+ "e": 3,
23
+ "err": 3,
24
+ "error": 3,
25
+ "fatal": 4,
26
+ "off": LogLevelOff,
27
+ "-": LogLevelOff
28
+ };
29
+
30
+ //#endregion
31
+ export { LogLevelAlias, LogLevelAll, LogLevelDebug, LogLevelError, LogLevelFatal, LogLevelInfo, LogLevelOff, LogLevelWarn };
2
32
  //# sourceMappingURL=log-base.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"log-base.mjs","names":[],"sources":["../../../src/common/log/log-base.ts"],"sourcesContent":["export type LogLevel = number\n\nexport const LogLevelAll = -1\nexport const LogLevelDebug = 0\nexport const LogLevelInfo = 1\nexport const LogLevelWarn = 2\nexport const LogLevelError = 3\nexport const LogLevelFatal = 4\nexport const LogLevelOff = 9007199254740991 // `Infinity` === `1 / 0`, but bad for sideEffects, therefore `Math.pow(2, 53) - 1`\n\nexport const LogLevelAlias: Record<string, LogLevel> = {\n '*': LogLevelAll,\n 'a': LogLevelAll,\n 'all': LogLevelAll,\n 'd': LogLevelDebug,\n 'dbg': LogLevelDebug,\n 'debug': LogLevelDebug,\n 'i': LogLevelInfo,\n 'inf': LogLevelInfo,\n 'info': LogLevelInfo,\n 'w': LogLevelWarn,\n 'warn': LogLevelWarn,\n 'warning': LogLevelWarn,\n 'e': LogLevelError,\n 'err': LogLevelError,\n 'error': LogLevelError,\n 'fatal': LogLevelFatal,\n 'off': LogLevelOff,\n '-': LogLevelOff,\n}\n\nexport type LogLevelAliasKey = keyof typeof LogLevelAlias\nexport type LogLevelAliasType = number | boolean | LogLevelAliasKey\n\nexport interface LogMessage {\n level: LogLevel\n name: string\n messages: any[]\n line?: number\n file?: string\n timestamp?: number\n}\n\nexport type LogMessageCompact = [\n timestamp: number,\n level: LogLevel,\n name: string,\n ...messages: any[],\n]\n\nexport type LogHandler = (msg: LogMessage) => void\n\nexport interface LoggerInterface {\n (...messages: any[]): void\n\n /** @deprecated use .level = LogLevel.off or LogLevel.all */\n active: boolean\n\n level: LogLevel\n\n generic: (level: LogLevel, ...messages: any[]) => void\n\n debug: (...messages: any[]) => void\n\n info: (...messages: any[]) => void\n\n warn: (...messages: any[]) => void\n\n error: (...messages: any[]) => void\n\n /**\n * Throws if condition is not truthy.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n assert: (condition: unknown, ...messages: any[]) => asserts condition\n\n /**\n * Always throws.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n fatal: (...messages: any[]) => never\n\n extend: (prefix: string) => LoggerInterface\n\n factory?: LoggerContextInterface\n\n label: string\n}\n\nexport interface LoggerContextInterface {\n (name?: string, level?: LogLevelAliasType): LoggerInterface\n\n registerHandler: (handler: LogHandler) => void\n\n setFilter: (namespaces: string) => void\n\n setHandlers: (handlers?: (LogHandler | undefined | null)[]) => void\n\n setLock: (lock: boolean) => void\n\n /** When true emits a short log message for each Logger when being set up first time. */\n setDebug: (debug: boolean) => void\n\n setLogLevel: (level?: LogLevel) => void\n\n setFactory: (factory: (name?: string) => LoggerInterface) => void\n}\n\nexport interface LogHandlerOptions {\n level?: LogLevel\n filter?: string\n colors?: boolean\n levelHelper?: boolean\n nameBrackets?: boolean\n padding?: number\n fill?: number\n stack?: boolean | number\n time?: boolean\n pretty?: boolean\n}\n"],"mappings":"AAEA,MAAa,EAAc,GACd,EAAgB,EAChB,EAAe,EACf,EAAe,EACf,EAAgB,EAChB,EAAgB,EAChB,EAAc,iBAEd,EAA0C,CACrD,IAAA,GACA,EAAA,GACA,IAAA,GACA,EAAA,EACA,IAAA,EACA,MAAA,EACA,EAAA,EACA,IAAA,EACA,KAAA,EACA,EAAA,EACA,KAAA,EACA,QAAA,EACA,EAAA,EACA,IAAA,EACA,MAAA,EACA,MAAA,EACA,IAAO,EACP,IAAK,EACN"}
1
+ {"version":3,"file":"log-base.mjs","names":[],"sources":["../../../src/common/log/log-base.ts"],"sourcesContent":["export type LogLevel = number\n\nexport const LogLevelAll = -1\nexport const LogLevelDebug = 0\nexport const LogLevelInfo = 1\nexport const LogLevelWarn = 2\nexport const LogLevelError = 3\nexport const LogLevelFatal = 4\nexport const LogLevelOff = 9007199254740991 // `Infinity` === `1 / 0`, but bad for sideEffects, therefore `Math.pow(2, 53) - 1`\n\nexport const LogLevelAlias: Record<string, LogLevel> = {\n '*': LogLevelAll,\n 'a': LogLevelAll,\n 'all': LogLevelAll,\n 'd': LogLevelDebug,\n 'dbg': LogLevelDebug,\n 'debug': LogLevelDebug,\n 'i': LogLevelInfo,\n 'inf': LogLevelInfo,\n 'info': LogLevelInfo,\n 'w': LogLevelWarn,\n 'warn': LogLevelWarn,\n 'warning': LogLevelWarn,\n 'e': LogLevelError,\n 'err': LogLevelError,\n 'error': LogLevelError,\n 'fatal': LogLevelFatal,\n 'off': LogLevelOff,\n '-': LogLevelOff,\n}\n\nexport type LogLevelAliasKey = keyof typeof LogLevelAlias\nexport type LogLevelAliasType = number | boolean | LogLevelAliasKey\n\nexport interface LogMessage {\n level: LogLevel\n name: string\n messages: any[]\n line?: number\n file?: string\n timestamp?: number\n}\n\nexport type LogMessageCompact = [\n timestamp: number,\n level: LogLevel,\n name: string,\n ...messages: any[],\n]\n\nexport type LogHandler = (msg: LogMessage) => void\n\nexport interface LoggerInterface {\n (...messages: any[]): void\n\n /** @deprecated use .level = LogLevel.off or LogLevel.all */\n active: boolean\n\n level: LogLevel\n\n generic: (level: LogLevel, ...messages: any[]) => void\n\n debug: (...messages: any[]) => void\n\n info: (...messages: any[]) => void\n\n warn: (...messages: any[]) => void\n\n error: (...messages: any[]) => void\n\n /**\n * Throws if condition is not truthy.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n assert: (condition: unknown, ...messages: any[]) => asserts condition\n\n /**\n * Always throws.\n *\n * **Attention!** Due to a bug in typescript you will need to explicitly set the `LoggerInterface` type in\n * order to have the assertions having an effect on unreachable code. Example:\n *\n * ```\n * const log: LoggerInterface = Logger('xxx')\n * ```\n *\n * Bug https://github.com/microsoft/TypeScript/issues/50363#issuecomment-1219811447\n */\n fatal: (...messages: any[]) => never\n\n extend: (prefix: string) => LoggerInterface\n\n factory?: LoggerContextInterface\n\n label: string\n}\n\nexport interface LoggerContextInterface {\n (name?: string, level?: LogLevelAliasType): LoggerInterface\n\n registerHandler: (handler: LogHandler) => void\n\n setFilter: (namespaces: string) => void\n\n setHandlers: (handlers?: (LogHandler | undefined | null)[]) => void\n\n setLock: (lock: boolean) => void\n\n /** When true emits a short log message for each Logger when being set up first time. */\n setDebug: (debug: boolean) => void\n\n setLogLevel: (level?: LogLevel) => void\n\n setFactory: (factory: (name?: string) => LoggerInterface) => void\n}\n\nexport interface LogHandlerOptions {\n level?: LogLevel\n filter?: string\n colors?: boolean\n levelHelper?: boolean\n nameBrackets?: boolean\n padding?: number\n fill?: number\n stack?: boolean | number\n time?: boolean\n pretty?: boolean\n}\n"],"mappings":";AAEA,MAAa,cAAc;AAC3B,MAAa,gBAAgB;AAC7B,MAAa,eAAe;AAC5B,MAAa,eAAe;AAC5B,MAAa,gBAAgB;AAC7B,MAAa,gBAAgB;AAC7B,MAAa,cAAc;AAE3B,MAAa,gBAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,OAAO;CACP,KAAK;CACN"}
@@ -1,2 +1,93 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function t(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e[Math.abs(n)%e.length]}exports.browserSelectColorByName=t;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/common/log/log-colors.ts
4
+ const colors = [
5
+ "#0000CC",
6
+ "#0000FF",
7
+ "#0033CC",
8
+ "#0033FF",
9
+ "#0066CC",
10
+ "#0066FF",
11
+ "#0099CC",
12
+ "#0099FF",
13
+ "#00CC00",
14
+ "#00CC33",
15
+ "#00CC66",
16
+ "#00CC99",
17
+ "#00CCCC",
18
+ "#00CCFF",
19
+ "#3300CC",
20
+ "#3300FF",
21
+ "#3333CC",
22
+ "#3333FF",
23
+ "#3366CC",
24
+ "#3366FF",
25
+ "#3399CC",
26
+ "#3399FF",
27
+ "#33CC00",
28
+ "#33CC33",
29
+ "#33CC66",
30
+ "#33CC99",
31
+ "#33CCCC",
32
+ "#33CCFF",
33
+ "#6600CC",
34
+ "#6600FF",
35
+ "#6633CC",
36
+ "#6633FF",
37
+ "#66CC00",
38
+ "#66CC33",
39
+ "#9900CC",
40
+ "#9900FF",
41
+ "#9933CC",
42
+ "#9933FF",
43
+ "#99CC00",
44
+ "#99CC33",
45
+ "#CC0000",
46
+ "#CC0033",
47
+ "#CC0066",
48
+ "#CC0099",
49
+ "#CC00CC",
50
+ "#CC00FF",
51
+ "#CC3300",
52
+ "#CC3333",
53
+ "#CC3366",
54
+ "#CC3399",
55
+ "#CC33CC",
56
+ "#CC33FF",
57
+ "#CC6600",
58
+ "#CC6633",
59
+ "#CC9900",
60
+ "#CC9933",
61
+ "#CCCC00",
62
+ "#CCCC33",
63
+ "#FF0000",
64
+ "#FF0033",
65
+ "#FF0066",
66
+ "#FF0099",
67
+ "#FF00CC",
68
+ "#FF00FF",
69
+ "#FF3300",
70
+ "#FF3333",
71
+ "#FF3366",
72
+ "#FF3399",
73
+ "#FF33CC",
74
+ "#FF33FF",
75
+ "#FF6600",
76
+ "#FF6633",
77
+ "#FF9900",
78
+ "#FF9933",
79
+ "#FFCC00",
80
+ "#FFCC33"
81
+ ];
82
+ function browserSelectColorByName(namespace) {
83
+ let hash = 0;
84
+ for (let i = 0; i < namespace.length; i++) {
85
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
86
+ hash |= 0;
87
+ }
88
+ return colors[Math.abs(hash) % colors.length];
89
+ }
90
+
91
+ //#endregion
92
+ exports.browserSelectColorByName = browserSelectColorByName;
2
93
  //# sourceMappingURL=log-colors.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"log-colors.cjs","names":[],"sources":["../../../src/common/log/log-colors.ts"],"sourcesContent":["// Taken from https://github.com/visionmedia/debug/blob/master/src/browser.js#L27\n\nconst colors = [\n '#0000CC',\n '#0000FF',\n '#0033CC',\n '#0033FF',\n '#0066CC',\n '#0066FF',\n '#0099CC',\n '#0099FF',\n '#00CC00',\n '#00CC33',\n '#00CC66',\n '#00CC99',\n '#00CCCC',\n '#00CCFF',\n '#3300CC',\n '#3300FF',\n '#3333CC',\n '#3333FF',\n '#3366CC',\n '#3366FF',\n '#3399CC',\n '#3399FF',\n '#33CC00',\n '#33CC33',\n '#33CC66',\n '#33CC99',\n '#33CCCC',\n '#33CCFF',\n '#6600CC',\n '#6600FF',\n '#6633CC',\n '#6633FF',\n '#66CC00',\n '#66CC33',\n '#9900CC',\n '#9900FF',\n '#9933CC',\n '#9933FF',\n '#99CC00',\n '#99CC33',\n '#CC0000',\n '#CC0033',\n '#CC0066',\n '#CC0099',\n '#CC00CC',\n '#CC00FF',\n '#CC3300',\n '#CC3333',\n '#CC3366',\n '#CC3399',\n '#CC33CC',\n '#CC33FF',\n '#CC6600',\n '#CC6633',\n '#CC9900',\n '#CC9933',\n '#CCCC00',\n '#CCCC33',\n '#FF0000',\n '#FF0033',\n '#FF0066',\n '#FF0099',\n '#FF00CC',\n '#FF00FF',\n '#FF3300',\n '#FF3333',\n '#FF3366',\n '#FF3399',\n '#FF33CC',\n '#FF33FF',\n '#FF6600',\n '#FF6633',\n '#FF9900',\n '#FF9933',\n '#FFCC00',\n '#FFCC33',\n]\n\nexport function browserSelectColorByName(namespace: string) {\n let hash = 0\n for (let i = 0; i < namespace.length; i++) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i)\n hash |= 0 // Convert to 32bit integer\n }\n return colors[Math.abs(hash) % colors.length]\n}\n"],"mappings":"mEAEA,MAAM,EAAS,4mBA6Ed,CAED,SAAgB,EAAyB,EAAmB,CAC1D,IAAI,EAAO,EACX,IAAK,IAAI,EAAI,EAAG,EAAI,EAAU,OAAQ,IACpC,GAAQ,GAAQ,GAAK,EAAO,EAAU,WAAW,EAAE,CACnD,GAAQ,EAEV,OAAO,EAAO,KAAK,IAAI,EAAK,CAAG,EAAO"}
1
+ {"version":3,"file":"log-colors.cjs","names":[],"sources":["../../../src/common/log/log-colors.ts"],"sourcesContent":["// Taken from https://github.com/visionmedia/debug/blob/master/src/browser.js#L27\n\nconst colors = [\n '#0000CC',\n '#0000FF',\n '#0033CC',\n '#0033FF',\n '#0066CC',\n '#0066FF',\n '#0099CC',\n '#0099FF',\n '#00CC00',\n '#00CC33',\n '#00CC66',\n '#00CC99',\n '#00CCCC',\n '#00CCFF',\n '#3300CC',\n '#3300FF',\n '#3333CC',\n '#3333FF',\n '#3366CC',\n '#3366FF',\n '#3399CC',\n '#3399FF',\n '#33CC00',\n '#33CC33',\n '#33CC66',\n '#33CC99',\n '#33CCCC',\n '#33CCFF',\n '#6600CC',\n '#6600FF',\n '#6633CC',\n '#6633FF',\n '#66CC00',\n '#66CC33',\n '#9900CC',\n '#9900FF',\n '#9933CC',\n '#9933FF',\n '#99CC00',\n '#99CC33',\n '#CC0000',\n '#CC0033',\n '#CC0066',\n '#CC0099',\n '#CC00CC',\n '#CC00FF',\n '#CC3300',\n '#CC3333',\n '#CC3366',\n '#CC3399',\n '#CC33CC',\n '#CC33FF',\n '#CC6600',\n '#CC6633',\n '#CC9900',\n '#CC9933',\n '#CCCC00',\n '#CCCC33',\n '#FF0000',\n '#FF0033',\n '#FF0066',\n '#FF0099',\n '#FF00CC',\n '#FF00FF',\n '#FF3300',\n '#FF3333',\n '#FF3366',\n '#FF3399',\n '#FF33CC',\n '#FF33FF',\n '#FF6600',\n '#FF6633',\n '#FF9900',\n '#FF9933',\n '#FFCC00',\n '#FFCC33',\n]\n\nexport function browserSelectColorByName(namespace: string) {\n let hash = 0\n for (let i = 0; i < namespace.length; i++) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i)\n hash |= 0 // Convert to 32bit integer\n }\n return colors[Math.abs(hash) % colors.length]\n}\n"],"mappings":";;;AAEA,MAAM,SAAS;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,yBAAyB,WAAmB;CAC1D,IAAI,OAAO;AACX,MAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAQ,QAAQ,KAAK,OAAO,UAAU,WAAW,EAAE;AACnD,UAAQ;;AAEV,QAAO,OAAO,KAAK,IAAI,KAAK,GAAG,OAAO"}
@@ -1,2 +1,91 @@
1
- const e=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function t(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e[Math.abs(n)%e.length]}export{t as browserSelectColorByName};
1
+ //#region src/common/log/log-colors.ts
2
+ const colors = [
3
+ "#0000CC",
4
+ "#0000FF",
5
+ "#0033CC",
6
+ "#0033FF",
7
+ "#0066CC",
8
+ "#0066FF",
9
+ "#0099CC",
10
+ "#0099FF",
11
+ "#00CC00",
12
+ "#00CC33",
13
+ "#00CC66",
14
+ "#00CC99",
15
+ "#00CCCC",
16
+ "#00CCFF",
17
+ "#3300CC",
18
+ "#3300FF",
19
+ "#3333CC",
20
+ "#3333FF",
21
+ "#3366CC",
22
+ "#3366FF",
23
+ "#3399CC",
24
+ "#3399FF",
25
+ "#33CC00",
26
+ "#33CC33",
27
+ "#33CC66",
28
+ "#33CC99",
29
+ "#33CCCC",
30
+ "#33CCFF",
31
+ "#6600CC",
32
+ "#6600FF",
33
+ "#6633CC",
34
+ "#6633FF",
35
+ "#66CC00",
36
+ "#66CC33",
37
+ "#9900CC",
38
+ "#9900FF",
39
+ "#9933CC",
40
+ "#9933FF",
41
+ "#99CC00",
42
+ "#99CC33",
43
+ "#CC0000",
44
+ "#CC0033",
45
+ "#CC0066",
46
+ "#CC0099",
47
+ "#CC00CC",
48
+ "#CC00FF",
49
+ "#CC3300",
50
+ "#CC3333",
51
+ "#CC3366",
52
+ "#CC3399",
53
+ "#CC33CC",
54
+ "#CC33FF",
55
+ "#CC6600",
56
+ "#CC6633",
57
+ "#CC9900",
58
+ "#CC9933",
59
+ "#CCCC00",
60
+ "#CCCC33",
61
+ "#FF0000",
62
+ "#FF0033",
63
+ "#FF0066",
64
+ "#FF0099",
65
+ "#FF00CC",
66
+ "#FF00FF",
67
+ "#FF3300",
68
+ "#FF3333",
69
+ "#FF3366",
70
+ "#FF3399",
71
+ "#FF33CC",
72
+ "#FF33FF",
73
+ "#FF6600",
74
+ "#FF6633",
75
+ "#FF9900",
76
+ "#FF9933",
77
+ "#FFCC00",
78
+ "#FFCC33"
79
+ ];
80
+ function browserSelectColorByName(namespace) {
81
+ let hash = 0;
82
+ for (let i = 0; i < namespace.length; i++) {
83
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
84
+ hash |= 0;
85
+ }
86
+ return colors[Math.abs(hash) % colors.length];
87
+ }
88
+
89
+ //#endregion
90
+ export { browserSelectColorByName };
2
91
  //# sourceMappingURL=log-colors.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"log-colors.mjs","names":[],"sources":["../../../src/common/log/log-colors.ts"],"sourcesContent":["// Taken from https://github.com/visionmedia/debug/blob/master/src/browser.js#L27\n\nconst colors = [\n '#0000CC',\n '#0000FF',\n '#0033CC',\n '#0033FF',\n '#0066CC',\n '#0066FF',\n '#0099CC',\n '#0099FF',\n '#00CC00',\n '#00CC33',\n '#00CC66',\n '#00CC99',\n '#00CCCC',\n '#00CCFF',\n '#3300CC',\n '#3300FF',\n '#3333CC',\n '#3333FF',\n '#3366CC',\n '#3366FF',\n '#3399CC',\n '#3399FF',\n '#33CC00',\n '#33CC33',\n '#33CC66',\n '#33CC99',\n '#33CCCC',\n '#33CCFF',\n '#6600CC',\n '#6600FF',\n '#6633CC',\n '#6633FF',\n '#66CC00',\n '#66CC33',\n '#9900CC',\n '#9900FF',\n '#9933CC',\n '#9933FF',\n '#99CC00',\n '#99CC33',\n '#CC0000',\n '#CC0033',\n '#CC0066',\n '#CC0099',\n '#CC00CC',\n '#CC00FF',\n '#CC3300',\n '#CC3333',\n '#CC3366',\n '#CC3399',\n '#CC33CC',\n '#CC33FF',\n '#CC6600',\n '#CC6633',\n '#CC9900',\n '#CC9933',\n '#CCCC00',\n '#CCCC33',\n '#FF0000',\n '#FF0033',\n '#FF0066',\n '#FF0099',\n '#FF00CC',\n '#FF00FF',\n '#FF3300',\n '#FF3333',\n '#FF3366',\n '#FF3399',\n '#FF33CC',\n '#FF33FF',\n '#FF6600',\n '#FF6633',\n '#FF9900',\n '#FF9933',\n '#FFCC00',\n '#FFCC33',\n]\n\nexport function browserSelectColorByName(namespace: string) {\n let hash = 0\n for (let i = 0; i < namespace.length; i++) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i)\n hash |= 0 // Convert to 32bit integer\n }\n return colors[Math.abs(hash) % colors.length]\n}\n"],"mappings":"AAEA,MAAM,EAAS,4mBA6Ed,CAED,SAAgB,EAAyB,EAAmB,CAC1D,IAAI,EAAO,EACX,IAAK,IAAI,EAAI,EAAG,EAAI,EAAU,OAAQ,IACpC,GAAQ,GAAQ,GAAK,EAAO,EAAU,WAAW,EAAE,CACnD,GAAQ,EAEV,OAAO,EAAO,KAAK,IAAI,EAAK,CAAG,EAAO"}
1
+ {"version":3,"file":"log-colors.mjs","names":[],"sources":["../../../src/common/log/log-colors.ts"],"sourcesContent":["// Taken from https://github.com/visionmedia/debug/blob/master/src/browser.js#L27\n\nconst colors = [\n '#0000CC',\n '#0000FF',\n '#0033CC',\n '#0033FF',\n '#0066CC',\n '#0066FF',\n '#0099CC',\n '#0099FF',\n '#00CC00',\n '#00CC33',\n '#00CC66',\n '#00CC99',\n '#00CCCC',\n '#00CCFF',\n '#3300CC',\n '#3300FF',\n '#3333CC',\n '#3333FF',\n '#3366CC',\n '#3366FF',\n '#3399CC',\n '#3399FF',\n '#33CC00',\n '#33CC33',\n '#33CC66',\n '#33CC99',\n '#33CCCC',\n '#33CCFF',\n '#6600CC',\n '#6600FF',\n '#6633CC',\n '#6633FF',\n '#66CC00',\n '#66CC33',\n '#9900CC',\n '#9900FF',\n '#9933CC',\n '#9933FF',\n '#99CC00',\n '#99CC33',\n '#CC0000',\n '#CC0033',\n '#CC0066',\n '#CC0099',\n '#CC00CC',\n '#CC00FF',\n '#CC3300',\n '#CC3333',\n '#CC3366',\n '#CC3399',\n '#CC33CC',\n '#CC33FF',\n '#CC6600',\n '#CC6633',\n '#CC9900',\n '#CC9933',\n '#CCCC00',\n '#CCCC33',\n '#FF0000',\n '#FF0033',\n '#FF0066',\n '#FF0099',\n '#FF00CC',\n '#FF00FF',\n '#FF3300',\n '#FF3333',\n '#FF3366',\n '#FF3399',\n '#FF33CC',\n '#FF33FF',\n '#FF6600',\n '#FF6633',\n '#FF9900',\n '#FF9933',\n '#FFCC00',\n '#FFCC33',\n]\n\nexport function browserSelectColorByName(namespace: string) {\n let hash = 0\n for (let i = 0; i < namespace.length; i++) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i)\n hash |= 0 // Convert to 32bit integer\n }\n return colors[Math.abs(hash) % colors.length]\n}\n"],"mappings":";AAEA,MAAM,SAAS;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,yBAAyB,WAAmB;CAC1D,IAAI,OAAO;AACX,MAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAQ,QAAQ,KAAK,OAAO,UAAU,WAAW,EAAE;AACnD,UAAQ;;AAEV,QAAO,OAAO,KAAK,IAAI,KAAK,GAAG,OAAO"}