@warlock.js/notifications 5.31.0 → 5.32.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 (405) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/index.cjs +2 -2
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/channels/database-channel.d.mts +2 -3
  5. package/esm/channels/database-channel.d.mts.map +1 -1
  6. package/esm/channels/index.d.mts +2 -1
  7. package/esm/channels/index.mjs +1 -1
  8. package/esm/channels/mail-channel.d.mts +6 -4
  9. package/esm/channels/mail-channel.d.mts.map +1 -1
  10. package/esm/config.d.mts +13 -9
  11. package/esm/config.d.mts.map +1 -1
  12. package/esm/contracts/channel.contract.d.mts +1 -3
  13. package/esm/contracts/channel.contract.d.mts.map +1 -1
  14. package/esm/contracts/index.d.mts +2 -1
  15. package/esm/contracts/notification.contract.d.mts +1 -3
  16. package/esm/contracts/notification.contract.d.mts.map +1 -1
  17. package/esm/contracts/preference-provider.contract.d.mts +1 -3
  18. package/esm/contracts/preference-provider.contract.d.mts.map +1 -1
  19. package/esm/contracts/queue-dispatcher.contract.d.mts +1 -3
  20. package/esm/contracts/queue-dispatcher.contract.d.mts.map +1 -1
  21. package/esm/contracts/rate-limiter.contract.d.mts +1 -3
  22. package/esm/contracts/rate-limiter.contract.d.mts.map +1 -1
  23. package/esm/dispatch/define-channel.d.mts +2 -2
  24. package/esm/dispatch/define-channel.d.mts.map +1 -1
  25. package/esm/dispatch/define-notification.d.mts +5 -6
  26. package/esm/dispatch/define-notification.d.mts.map +1 -1
  27. package/esm/dispatch/index.d.mts +2 -1
  28. package/esm/dispatch/index.mjs +1 -1
  29. package/esm/dispatch/notifications-event-bus.d.mts +2 -3
  30. package/esm/dispatch/notifications-event-bus.d.mts.map +1 -1
  31. package/esm/dispatch/notify.d.mts +3 -5
  32. package/esm/dispatch/notify.d.mts.map +1 -1
  33. package/esm/errors.d.mts +5 -6
  34. package/esm/errors.d.mts.map +1 -1
  35. package/esm/in-app/base-notifications-repository.d.mts +6 -6
  36. package/esm/in-app/base-notifications-repository.d.mts.map +1 -1
  37. package/esm/in-app/base-notifications-repository.mjs +1 -1
  38. package/esm/in-app/base-notifications-repository.mjs.map +1 -1
  39. package/esm/in-app/column-map.d.mts +11 -8
  40. package/esm/in-app/column-map.d.mts.map +1 -1
  41. package/esm/in-app/database-notification.d.mts +2 -3
  42. package/esm/in-app/database-notification.d.mts.map +1 -1
  43. package/esm/in-app/in-app.d.mts +6 -5
  44. package/esm/in-app/in-app.d.mts.map +1 -1
  45. package/esm/in-app/index.d.mts +2 -1
  46. package/esm/in-app/index.mjs +1 -1
  47. package/esm/index.d.mts +6 -0
  48. package/esm/migration/index.d.mts +2 -1
  49. package/esm/migration/index.mjs +1 -1
  50. package/esm/migration/notification-columns.d.mts +6 -7
  51. package/esm/migration/notification-columns.d.mts.map +1 -1
  52. package/esm/queue/bullmq-queue.d.mts +9 -7
  53. package/esm/queue/bullmq-queue.d.mts.map +1 -1
  54. package/esm/queue/herald-queue.d.mts +6 -4
  55. package/esm/queue/herald-queue.d.mts.map +1 -1
  56. package/esm/queue/index.d.mts +2 -1
  57. package/esm/queue/index.mjs +1 -1
  58. package/esm/queue/load-herald.d.mts +1 -2
  59. package/esm/queue/load-herald.d.mts.map +1 -1
  60. package/esm/queue/load-herald.mjs +1 -1
  61. package/esm/queue/load-queue.d.mts +2 -3
  62. package/esm/queue/load-queue.d.mts.map +1 -1
  63. package/esm/queue/notifications-worker.d.mts +5 -4
  64. package/esm/queue/notifications-worker.d.mts.map +1 -1
  65. package/esm/queue/queue-package-not-installed.error.d.mts +1 -2
  66. package/esm/queue/queue-package-not-installed.error.d.mts.map +1 -1
  67. package/esm/types.d.mts +22 -18
  68. package/esm/types.d.mts.map +1 -1
  69. package/package.json +10 -9
  70. package/cjs/channel_api-C5ZZDkgQ.cjs +0 -7463
  71. package/cjs/channel_api-C5ZZDkgQ.cjs.map +0 -1
  72. package/cjs/chunk-fl3r8ClO.cjs +0 -41
  73. package/cjs/rabbitmq-driver-CkPaCswV.cjs +0 -3
  74. package/cjs/src-CcbF8Hr1.cjs +0 -11276
  75. package/cjs/src-CcbF8Hr1.cjs.map +0 -1
  76. package/esm/_virtual/_rolldown/runtime.mjs +0 -32
  77. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs +0 -6
  78. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs.map +0 -1
  79. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/bool.mjs +0 -3
  80. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/color.mjs +0 -3
  81. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/date.mjs +0 -3
  82. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/float.mjs +0 -3
  83. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/id.mjs +0 -3
  84. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/int.mjs +0 -3
  85. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/nanoid.mjs +0 -3
  86. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/pick.mjs +0 -3
  87. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/random.mjs +0 -16
  88. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/sample.mjs +0 -3
  89. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/string.mjs +0 -3
  90. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/token.mjs +0 -3
  91. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/uuid.mjs +0 -3
  92. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/weighted.mjs +0 -3
  93. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/async/retry.mjs +0 -3
  94. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/index.mjs +0 -24
  95. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs +0 -82
  96. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs.map +0 -1
  97. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs +0 -17
  98. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs.map +0 -1
  99. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs +0 -13
  100. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs.map +0 -1
  101. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs +0 -18
  102. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs.map +0 -1
  103. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs +0 -17
  104. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs.map +0 -1
  105. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs +0 -30
  106. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs.map +0 -1
  107. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs +0 -19
  108. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs.map +0 -1
  109. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs +0 -18
  110. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs.map +0 -1
  111. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs +0 -14
  112. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs.map +0 -1
  113. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs +0 -18
  114. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs.map +0 -1
  115. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs +0 -22
  116. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs.map +0 -1
  117. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs +0 -17
  118. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs.map +0 -1
  119. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs +0 -21
  120. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs.map +0 -1
  121. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs +0 -21
  122. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs.map +0 -1
  123. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs +0 -20
  124. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs.map +0 -1
  125. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs +0 -15
  126. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs.map +0 -1
  127. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs +0 -25
  128. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs.map +0 -1
  129. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs +0 -11
  130. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs.map +0 -1
  131. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs +0 -100
  132. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs.map +0 -1
  133. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs +0 -27
  134. package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs.map +0 -1
  135. package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs +0 -358
  136. package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs.map +0 -1
  137. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs +0 -28
  138. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs.map +0 -1
  139. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs +0 -241
  140. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs.map +0 -1
  141. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs +0 -130
  142. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs.map +0 -1
  143. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs +0 -302
  144. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs.map +0 -1
  145. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs +0 -206
  146. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs.map +0 -1
  147. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs +0 -273
  148. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs.map +0 -1
  149. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs +0 -143
  150. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs.map +0 -1
  151. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs +0 -416
  152. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs.map +0 -1
  153. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs +0 -50
  154. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs.map +0 -1
  155. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs +0 -4600
  156. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs.map +0 -1
  157. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs +0 -29
  158. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs.map +0 -1
  159. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs +0 -28
  160. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs.map +0 -1
  161. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs +0 -130
  162. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs.map +0 -1
  163. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs +0 -40
  164. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs.map +0 -1
  165. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs +0 -86
  166. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs.map +0 -1
  167. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs +0 -41
  168. package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs.map +0 -1
  169. package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs +0 -360
  170. package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs.map +0 -1
  171. package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs +0 -305
  172. package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs.map +0 -1
  173. package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs +0 -80
  174. package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs.map +0 -1
  175. package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs +0 -35
  176. package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs.map +0 -1
  177. package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs +0 -388
  178. package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs.map +0 -1
  179. package/esm/packages/herald/src/communicators/broker-registry.mjs +0 -204
  180. package/esm/packages/herald/src/communicators/broker-registry.mjs.map +0 -1
  181. package/esm/packages/herald/src/communicators/broker.mjs +0 -110
  182. package/esm/packages/herald/src/communicators/broker.mjs.map +0 -1
  183. package/esm/packages/herald/src/communicators/index.mjs +0 -4
  184. package/esm/packages/herald/src/decorators/consumable.mjs +0 -36
  185. package/esm/packages/herald/src/decorators/consumable.mjs.map +0 -1
  186. package/esm/packages/herald/src/decorators/index.mjs +0 -3
  187. package/esm/packages/herald/src/drivers/index.mjs +0 -5
  188. package/esm/packages/herald/src/drivers/rabbitmq/index.mjs +0 -4
  189. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs +0 -403
  190. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs.map +0 -1
  191. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs +0 -303
  192. package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs.map +0 -1
  193. package/esm/packages/herald/src/index.mjs +0 -16
  194. package/esm/packages/herald/src/message-managers/event-consumer.mjs +0 -76
  195. package/esm/packages/herald/src/message-managers/event-consumer.mjs.map +0 -1
  196. package/esm/packages/herald/src/message-managers/event-message.mjs +0 -85
  197. package/esm/packages/herald/src/message-managers/event-message.mjs.map +0 -1
  198. package/esm/packages/herald/src/message-managers/index.mjs +0 -4
  199. package/esm/packages/herald/src/message-managers/prepare-consumer-subscription.mjs +0 -42
  200. package/esm/packages/herald/src/message-managers/prepare-consumer-subscription.mjs.map +0 -1
  201. package/esm/packages/herald/src/use-case-broadcast.mjs +0 -30
  202. package/esm/packages/herald/src/use-case-broadcast.mjs.map +0 -1
  203. package/esm/packages/herald/src/utils/connect-to-broker.mjs +0 -168
  204. package/esm/packages/herald/src/utils/connect-to-broker.mjs.map +0 -1
  205. package/esm/packages/herald/src/utils/index.mjs +0 -3
  206. package/esm/packages/seal/src/config.mjs +0 -15
  207. package/esm/packages/seal/src/config.mjs.map +0 -1
  208. package/esm/packages/seal/src/factory/index.mjs +0 -4
  209. package/esm/packages/seal/src/factory/validate.mjs +0 -42
  210. package/esm/packages/seal/src/factory/validate.mjs.map +0 -1
  211. package/esm/packages/seal/src/factory/validators.mjs +0 -139
  212. package/esm/packages/seal/src/factory/validators.mjs.map +0 -1
  213. package/esm/packages/seal/src/helpers/date-helpers.mjs +0 -24
  214. package/esm/packages/seal/src/helpers/date-helpers.mjs.map +0 -1
  215. package/esm/packages/seal/src/helpers/get-field-value.mjs +0 -46
  216. package/esm/packages/seal/src/helpers/get-field-value.mjs.map +0 -1
  217. package/esm/packages/seal/src/helpers/index.mjs +0 -6
  218. package/esm/packages/seal/src/helpers/is-empty-value.mjs +0 -10
  219. package/esm/packages/seal/src/helpers/is-empty-value.mjs.map +0 -1
  220. package/esm/packages/seal/src/helpers/path-helpers.mjs +0 -12
  221. package/esm/packages/seal/src/helpers/path-helpers.mjs.map +0 -1
  222. package/esm/packages/seal/src/helpers/validation-helpers.mjs +0 -78
  223. package/esm/packages/seal/src/helpers/validation-helpers.mjs.map +0 -1
  224. package/esm/packages/seal/src/index.mjs +0 -88
  225. package/esm/packages/seal/src/mutators/array-mutators.mjs +0 -32
  226. package/esm/packages/seal/src/mutators/array-mutators.mjs.map +0 -1
  227. package/esm/packages/seal/src/mutators/boolean-mutators.mjs +0 -40
  228. package/esm/packages/seal/src/mutators/boolean-mutators.mjs.map +0 -1
  229. package/esm/packages/seal/src/mutators/date-mutators.mjs +0 -94
  230. package/esm/packages/seal/src/mutators/date-mutators.mjs.map +0 -1
  231. package/esm/packages/seal/src/mutators/index.mjs +0 -9
  232. package/esm/packages/seal/src/mutators/number-mutators.mjs +0 -52
  233. package/esm/packages/seal/src/mutators/number-mutators.mjs.map +0 -1
  234. package/esm/packages/seal/src/mutators/object-mutators.mjs +0 -30
  235. package/esm/packages/seal/src/mutators/object-mutators.mjs.map +0 -1
  236. package/esm/packages/seal/src/mutators/scalar-mutators.mjs +0 -9
  237. package/esm/packages/seal/src/mutators/scalar-mutators.mjs.map +0 -1
  238. package/esm/packages/seal/src/mutators/string-mutators.mjs +0 -186
  239. package/esm/packages/seal/src/mutators/string-mutators.mjs.map +0 -1
  240. package/esm/packages/seal/src/object.mjs +0 -13
  241. package/esm/packages/seal/src/object.mjs.map +0 -1
  242. package/esm/packages/seal/src/rules/array/array-rules.mjs +0 -41
  243. package/esm/packages/seal/src/rules/array/array-rules.mjs.map +0 -1
  244. package/esm/packages/seal/src/rules/array/index.mjs +0 -3
  245. package/esm/packages/seal/src/rules/color/color-rules.mjs +0 -104
  246. package/esm/packages/seal/src/rules/color/color-rules.mjs.map +0 -1
  247. package/esm/packages/seal/src/rules/color/index.mjs +0 -3
  248. package/esm/packages/seal/src/rules/common/enum.mjs +0 -77
  249. package/esm/packages/seal/src/rules/common/enum.mjs.map +0 -1
  250. package/esm/packages/seal/src/rules/common/equals-field-rules.mjs +0 -42
  251. package/esm/packages/seal/src/rules/common/equals-field-rules.mjs.map +0 -1
  252. package/esm/packages/seal/src/rules/common/index.mjs +0 -8
  253. package/esm/packages/seal/src/rules/common/instanceof.mjs +0 -23
  254. package/esm/packages/seal/src/rules/common/instanceof.mjs.map +0 -1
  255. package/esm/packages/seal/src/rules/common/literal.mjs +0 -31
  256. package/esm/packages/seal/src/rules/common/literal.mjs.map +0 -1
  257. package/esm/packages/seal/src/rules/common/type-rules.mjs +0 -97
  258. package/esm/packages/seal/src/rules/common/type-rules.mjs.map +0 -1
  259. package/esm/packages/seal/src/rules/common/unknown-key.mjs +0 -25
  260. package/esm/packages/seal/src/rules/common/unknown-key.mjs.map +0 -1
  261. package/esm/packages/seal/src/rules/conditional/forbidden-if-rules.mjs +0 -116
  262. package/esm/packages/seal/src/rules/conditional/forbidden-if-rules.mjs.map +0 -1
  263. package/esm/packages/seal/src/rules/conditional/index.mjs +0 -12
  264. package/esm/packages/seal/src/rules/conditional/present-if-rules.mjs +0 -97
  265. package/esm/packages/seal/src/rules/conditional/present-if-rules.mjs.map +0 -1
  266. package/esm/packages/seal/src/rules/conditional/present-unless-rules.mjs +0 -30
  267. package/esm/packages/seal/src/rules/conditional/present-unless-rules.mjs.map +0 -1
  268. package/esm/packages/seal/src/rules/conditional/present-with-rules.mjs +0 -76
  269. package/esm/packages/seal/src/rules/conditional/present-with-rules.mjs.map +0 -1
  270. package/esm/packages/seal/src/rules/conditional/present-without-rules.mjs +0 -76
  271. package/esm/packages/seal/src/rules/conditional/present-without-rules.mjs.map +0 -1
  272. package/esm/packages/seal/src/rules/conditional/required-if-rules.mjs +0 -204
  273. package/esm/packages/seal/src/rules/conditional/required-if-rules.mjs.map +0 -1
  274. package/esm/packages/seal/src/rules/conditional/required-unless-rules.mjs +0 -31
  275. package/esm/packages/seal/src/rules/conditional/required-unless-rules.mjs.map +0 -1
  276. package/esm/packages/seal/src/rules/conditional/required-when-rule.mjs +0 -32
  277. package/esm/packages/seal/src/rules/conditional/required-when-rule.mjs.map +0 -1
  278. package/esm/packages/seal/src/rules/conditional/required-with-rules.mjs +0 -67
  279. package/esm/packages/seal/src/rules/conditional/required-with-rules.mjs.map +0 -1
  280. package/esm/packages/seal/src/rules/conditional/required-without-rules.mjs +0 -67
  281. package/esm/packages/seal/src/rules/conditional/required-without-rules.mjs.map +0 -1
  282. package/esm/packages/seal/src/rules/core/equal.mjs +0 -22
  283. package/esm/packages/seal/src/rules/core/equal.mjs.map +0 -1
  284. package/esm/packages/seal/src/rules/core/forbidden.mjs +0 -20
  285. package/esm/packages/seal/src/rules/core/forbidden.mjs.map +0 -1
  286. package/esm/packages/seal/src/rules/core/index.mjs +0 -7
  287. package/esm/packages/seal/src/rules/core/required.mjs +0 -36
  288. package/esm/packages/seal/src/rules/core/required.mjs.map +0 -1
  289. package/esm/packages/seal/src/rules/core/union.mjs +0 -78
  290. package/esm/packages/seal/src/rules/core/union.mjs.map +0 -1
  291. package/esm/packages/seal/src/rules/core/when.mjs +0 -37
  292. package/esm/packages/seal/src/rules/core/when.mjs.map +0 -1
  293. package/esm/packages/seal/src/rules/date/date-comparison-rules.mjs +0 -78
  294. package/esm/packages/seal/src/rules/date/date-comparison-rules.mjs.map +0 -1
  295. package/esm/packages/seal/src/rules/date/date-day-rules.mjs +0 -49
  296. package/esm/packages/seal/src/rules/date/date-day-rules.mjs.map +0 -1
  297. package/esm/packages/seal/src/rules/date/date-field-comparison-rules.mjs +0 -82
  298. package/esm/packages/seal/src/rules/date/date-field-comparison-rules.mjs.map +0 -1
  299. package/esm/packages/seal/src/rules/date/date-period-rules.mjs +0 -401
  300. package/esm/packages/seal/src/rules/date/date-period-rules.mjs.map +0 -1
  301. package/esm/packages/seal/src/rules/date/date-relative-rules.mjs +0 -55
  302. package/esm/packages/seal/src/rules/date/date-relative-rules.mjs.map +0 -1
  303. package/esm/packages/seal/src/rules/date/date-special-rules.mjs +0 -58
  304. package/esm/packages/seal/src/rules/date/date-special-rules.mjs.map +0 -1
  305. package/esm/packages/seal/src/rules/date/date.mjs +0 -235
  306. package/esm/packages/seal/src/rules/date/date.mjs.map +0 -1
  307. package/esm/packages/seal/src/rules/date/index.mjs +0 -9
  308. package/esm/packages/seal/src/rules/file/dimensions.mjs +0 -3
  309. package/esm/packages/seal/src/rules/file/file-size.mjs +0 -3
  310. package/esm/packages/seal/src/rules/file/index.mjs +0 -4
  311. package/esm/packages/seal/src/rules/index.mjs +0 -54
  312. package/esm/packages/seal/src/rules/length/index.mjs +0 -3
  313. package/esm/packages/seal/src/rules/length/length-rules.mjs +0 -98
  314. package/esm/packages/seal/src/rules/length/length-rules.mjs.map +0 -1
  315. package/esm/packages/seal/src/rules/number/index.mjs +0 -3
  316. package/esm/packages/seal/src/rules/number/number-rules.mjs +0 -197
  317. package/esm/packages/seal/src/rules/number/number-rules.mjs.map +0 -1
  318. package/esm/packages/seal/src/rules/scalar/accepted-rule.mjs +0 -123
  319. package/esm/packages/seal/src/rules/scalar/accepted-rule.mjs.map +0 -1
  320. package/esm/packages/seal/src/rules/scalar/declined-rule.mjs +0 -123
  321. package/esm/packages/seal/src/rules/scalar/declined-rule.mjs.map +0 -1
  322. package/esm/packages/seal/src/rules/scalar/index.mjs +0 -4
  323. package/esm/packages/seal/src/rules/string/alpha.mjs +0 -41
  324. package/esm/packages/seal/src/rules/string/alpha.mjs.map +0 -1
  325. package/esm/packages/seal/src/rules/string/credit-card.mjs +0 -32
  326. package/esm/packages/seal/src/rules/string/credit-card.mjs.map +0 -1
  327. package/esm/packages/seal/src/rules/string/email.mjs +0 -20
  328. package/esm/packages/seal/src/rules/string/email.mjs.map +0 -1
  329. package/esm/packages/seal/src/rules/string/id-formats.mjs +0 -104
  330. package/esm/packages/seal/src/rules/string/id-formats.mjs.map +0 -1
  331. package/esm/packages/seal/src/rules/string/index.mjs +0 -13
  332. package/esm/packages/seal/src/rules/string/ip.mjs +0 -66
  333. package/esm/packages/seal/src/rules/string/ip.mjs.map +0 -1
  334. package/esm/packages/seal/src/rules/string/matches.mjs +0 -4
  335. package/esm/packages/seal/src/rules/string/pattern.mjs +0 -20
  336. package/esm/packages/seal/src/rules/string/pattern.mjs.map +0 -1
  337. package/esm/packages/seal/src/rules/string/string-comparison.mjs +0 -56
  338. package/esm/packages/seal/src/rules/string/string-comparison.mjs.map +0 -1
  339. package/esm/packages/seal/src/rules/string/strong-password-rule.mjs +0 -31
  340. package/esm/packages/seal/src/rules/string/strong-password-rule.mjs.map +0 -1
  341. package/esm/packages/seal/src/rules/string/url.mjs +0 -23
  342. package/esm/packages/seal/src/rules/string/url.mjs.map +0 -1
  343. package/esm/packages/seal/src/rules/string/without-whitespace.mjs +0 -19
  344. package/esm/packages/seal/src/rules/string/without-whitespace.mjs.map +0 -1
  345. package/esm/packages/seal/src/standard-schema/json-schema.mjs +0 -81
  346. package/esm/packages/seal/src/standard-schema/json-schema.mjs.map +0 -1
  347. package/esm/packages/seal/src/standard-schema/map-result.mjs +0 -26
  348. package/esm/packages/seal/src/standard-schema/map-result.mjs.map +0 -1
  349. package/esm/packages/seal/src/string.mjs +0 -13
  350. package/esm/packages/seal/src/string.mjs.map +0 -1
  351. package/esm/packages/seal/src/types/date-types.mjs +0 -17
  352. package/esm/packages/seal/src/types/date-types.mjs.map +0 -1
  353. package/esm/packages/seal/src/validators/any-validator.mjs +0 -38
  354. package/esm/packages/seal/src/validators/any-validator.mjs.map +0 -1
  355. package/esm/packages/seal/src/validators/array-validator.mjs +0 -186
  356. package/esm/packages/seal/src/validators/array-validator.mjs.map +0 -1
  357. package/esm/packages/seal/src/validators/base-validator.mjs +0 -750
  358. package/esm/packages/seal/src/validators/base-validator.mjs.map +0 -1
  359. package/esm/packages/seal/src/validators/boolean-validator.mjs +0 -175
  360. package/esm/packages/seal/src/validators/boolean-validator.mjs.map +0 -1
  361. package/esm/packages/seal/src/validators/computed-validator.mjs +0 -118
  362. package/esm/packages/seal/src/validators/computed-validator.mjs.map +0 -1
  363. package/esm/packages/seal/src/validators/date-validator.mjs +0 -640
  364. package/esm/packages/seal/src/validators/date-validator.mjs.map +0 -1
  365. package/esm/packages/seal/src/validators/discriminated-union-validator.mjs +0 -138
  366. package/esm/packages/seal/src/validators/discriminated-union-validator.mjs.map +0 -1
  367. package/esm/packages/seal/src/validators/float-validator.mjs +0 -18
  368. package/esm/packages/seal/src/validators/float-validator.mjs.map +0 -1
  369. package/esm/packages/seal/src/validators/index.mjs +0 -28
  370. package/esm/packages/seal/src/validators/instanceof-validator.mjs +0 -64
  371. package/esm/packages/seal/src/validators/instanceof-validator.mjs.map +0 -1
  372. package/esm/packages/seal/src/validators/int-validator.mjs +0 -30
  373. package/esm/packages/seal/src/validators/int-validator.mjs.map +0 -1
  374. package/esm/packages/seal/src/validators/lazy-validator.mjs +0 -87
  375. package/esm/packages/seal/src/validators/lazy-validator.mjs.map +0 -1
  376. package/esm/packages/seal/src/validators/literal-validator.mjs +0 -72
  377. package/esm/packages/seal/src/validators/literal-validator.mjs.map +0 -1
  378. package/esm/packages/seal/src/validators/managed-validator.mjs +0 -39
  379. package/esm/packages/seal/src/validators/managed-validator.mjs.map +0 -1
  380. package/esm/packages/seal/src/validators/methods/equality-conditional-methods.mjs +0 -129
  381. package/esm/packages/seal/src/validators/methods/equality-conditional-methods.mjs.map +0 -1
  382. package/esm/packages/seal/src/validators/methods/forbidden-methods.mjs +0 -131
  383. package/esm/packages/seal/src/validators/methods/forbidden-methods.mjs.map +0 -1
  384. package/esm/packages/seal/src/validators/methods/present-methods.mjs +0 -235
  385. package/esm/packages/seal/src/validators/methods/present-methods.mjs.map +0 -1
  386. package/esm/packages/seal/src/validators/methods/required-methods.mjs +0 -347
  387. package/esm/packages/seal/src/validators/methods/required-methods.mjs.map +0 -1
  388. package/esm/packages/seal/src/validators/number-validator.mjs +0 -331
  389. package/esm/packages/seal/src/validators/number-validator.mjs.map +0 -1
  390. package/esm/packages/seal/src/validators/numeric-validator.mjs +0 -27
  391. package/esm/packages/seal/src/validators/numeric-validator.mjs.map +0 -1
  392. package/esm/packages/seal/src/validators/object-validator.mjs +0 -447
  393. package/esm/packages/seal/src/validators/object-validator.mjs.map +0 -1
  394. package/esm/packages/seal/src/validators/primitive-validator.mjs +0 -88
  395. package/esm/packages/seal/src/validators/primitive-validator.mjs.map +0 -1
  396. package/esm/packages/seal/src/validators/record-validator.mjs +0 -112
  397. package/esm/packages/seal/src/validators/record-validator.mjs.map +0 -1
  398. package/esm/packages/seal/src/validators/scalar-validator.mjs +0 -173
  399. package/esm/packages/seal/src/validators/scalar-validator.mjs.map +0 -1
  400. package/esm/packages/seal/src/validators/string-validator.mjs +0 -459
  401. package/esm/packages/seal/src/validators/string-validator.mjs.map +0 -1
  402. package/esm/packages/seal/src/validators/tuple-validator.mjs +0 -134
  403. package/esm/packages/seal/src/validators/tuple-validator.mjs.map +0 -1
  404. package/esm/packages/seal/src/validators/union-validator.mjs +0 -68
  405. package/esm/packages/seal/src/validators/union-validator.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"trim.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs"],"sourcesContent":["import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/trim.ts\n/**\n* Remove the given needle from the start and the end of string\n*\n* @param string $needle\n* @return string\n*/\nfunction trim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tif (needle === \" \") return string.replace(/^\\s+|\\s+$/g, \"\");\n\tneedle = escapeRegex(needle);\n\tconst pattern = \"^\" + needle + \"+|\" + needle + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { trim as default };\n//# sourceMappingURL=trim.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,KAAK,QAAQ,SAAS,KAAK;CACnC,IAAI,CAAC,QAAQ,OAAO;CACpB,IAAI,WAAW,KAAK,OAAO,OAAO,QAAQ,cAAc,EAAE;CAC1D,SAAS,YAAY,MAAM;CAC3B,MAAM,UAAU,MAAM,SAAS,OAAO,SAAS,MAAM,QAAQ,IAAI,OAAO,SAAS,GAAG;CACpF,OAAO,OAAO,QAAQ,OAAO,EAAE;AAChC"}
@@ -1,15 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs
2
- /**
3
- * Uppercase the first character of `string`.
4
- *
5
- * @example
6
- * ucfirst("hello"); // "Hello"
7
- */
8
- function ucfirst(string) {
9
- if (!string) return "";
10
- return string.charAt(0).toUpperCase() + string.slice(1);
11
- }
12
-
13
- //#endregion
14
- export { ucfirst };
15
- //# sourceMappingURL=ucfirst.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ucfirst.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs"],"sourcesContent":["//#region ../reinforcements/src/string/ucfirst.ts\n/**\n* Uppercase the first character of `string`.\n*\n* @example\n* ucfirst(\"hello\"); // \"Hello\"\n*/\nfunction ucfirst(string) {\n\tif (!string) return \"\";\n\treturn string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n//#endregion\nexport { ucfirst as default };\n//# sourceMappingURL=ucfirst.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,SAAS,QAAQ,QAAQ;CACxB,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,OAAO,MAAM,CAAC;AACvD"}
@@ -1,25 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs
2
- const SEPARATOR_PATTERN = /[-_./\\\s]+/g;
3
- const ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;
4
- const CAMEL_BOUNDARY = /([a-z\d])([A-Z])/g;
5
- const WHITESPACE_RUN = /\s+/;
6
- /**
7
- * Split a string into its semantic word tokens. Handles camelCase,
8
- * PascalCase, snake_case, kebab-case, dot.case, slash/separated and
9
- * whitespace, and correctly preserves acronym runs.
10
- *
11
- * @example
12
- * words("XMLHttpRequest"); // ["XML", "Http", "Request"]
13
- * words("hello_world"); // ["hello", "world"]
14
- * words("AIAgent"); // ["AI", "Agent"]
15
- */
16
- function words(input) {
17
- if (!input) return [];
18
- const normalised = input.replace(SEPARATOR_PATTERN, " ").replace(ACRONYM_BOUNDARY, "$1 $2").replace(CAMEL_BOUNDARY, "$1 $2").trim();
19
- if (!normalised) return [];
20
- return normalised.split(WHITESPACE_RUN).filter(Boolean);
21
- }
22
-
23
- //#endregion
24
- export { words };
25
- //# sourceMappingURL=words.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"words.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs"],"sourcesContent":["//#region ../reinforcements/src/string/words.ts\nconst SEPARATOR_PATTERN = /[-_./\\\\\\s]+/g;\nconst ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;\nconst CAMEL_BOUNDARY = /([a-z\\d])([A-Z])/g;\nconst WHITESPACE_RUN = /\\s+/;\n/**\n* Split a string into its semantic word tokens. Handles camelCase,\n* PascalCase, snake_case, kebab-case, dot.case, slash/separated and\n* whitespace, and correctly preserves acronym runs.\n*\n* @example\n* words(\"XMLHttpRequest\"); // [\"XML\", \"Http\", \"Request\"]\n* words(\"hello_world\"); // [\"hello\", \"world\"]\n* words(\"AIAgent\"); // [\"AI\", \"Agent\"]\n*/\nfunction words(input) {\n\tif (!input) return [];\n\tconst normalised = input.replace(SEPARATOR_PATTERN, \" \").replace(ACRONYM_BOUNDARY, \"$1 $2\").replace(CAMEL_BOUNDARY, \"$1 $2\").trim();\n\tif (!normalised) return [];\n\treturn normalised.split(WHITESPACE_RUN).filter(Boolean);\n}\n\n//#endregion\nexport { words as default };\n//# sourceMappingURL=words.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;;;;;;;;;;;AAWvB,SAAS,MAAM,OAAO;CACrB,IAAI,CAAC,OAAO,OAAO,CAAC;CACpB,MAAM,aAAa,MAAM,QAAQ,mBAAmB,GAAG,CAAC,CAAC,QAAQ,kBAAkB,OAAO,CAAC,CAAC,QAAQ,gBAAgB,OAAO,CAAC,CAAC,KAAK;CAClI,IAAI,CAAC,YAAY,OAAO,CAAC;CACzB,OAAO,WAAW,MAAM,cAAc,CAAC,CAAC,OAAO,OAAO;AACvD"}
@@ -1,11 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs
2
- /**
3
- * Escape the regex of the given string
4
- */
5
- function escapeRegex(string) {
6
- return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
7
- }
8
-
9
- //#endregion
10
- export { escapeRegex };
11
- //# sourceMappingURL=escapeRegex.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"escapeRegex.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/escapeRegex.ts\n/**\n* Escape the regex of the given string\n*/\nfunction escapeRegex(string) {\n\treturn string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n//#endregion\nexport { escapeRegex as default };\n//# sourceMappingURL=escapeRegex.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,YAAY,QAAQ;CAC5B,OAAO,OAAO,QAAQ,uBAAuB,MAAM;AACpD"}
@@ -1,100 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs
2
- const LAZY = Symbol("lazy");
3
- /**
4
- * Wrap a value-producing function as a lazy reference. The producer
5
- * isn't invoked until `resolve()` is called; subsequent calls return the
6
- * same cached value.
7
- *
8
- * Useful for deferring expensive computations and for breaking circular
9
- * module dependencies — JavaScript closures capture variable bindings,
10
- * not values, so a `lazy(() => x)` callsite remains valid even when `x`
11
- * isn't yet defined at the moment the wrapper is created, as long as
12
- * it's defined by the time `.resolve()` runs.
13
- *
14
- * @example
15
- * const greeting = lazy(() => expensiveComputation());
16
- *
17
- * greeting.resolve(); // computes, caches, returns
18
- * greeting.resolve(); // returns cached value, no recomputation
19
- */
20
- function lazy(producer) {
21
- let isResolved = false;
22
- let value;
23
- return {
24
- [LAZY]: true,
25
- resolve() {
26
- if (!isResolved) {
27
- value = producer();
28
- isResolved = true;
29
- }
30
- return value;
31
- },
32
- reset() {
33
- isResolved = false;
34
- value = void 0;
35
- },
36
- isResolved() {
37
- return isResolved;
38
- },
39
- peek() {
40
- return isResolved ? value : void 0;
41
- }
42
- };
43
- }
44
- /**
45
- * Async variant of {@link lazy}: the producer returns a `Promise<T>`
46
- * which is cached after first invocation.
47
- *
48
- * @example
49
- * const user = lazy.async(() => fetchUser());
50
- *
51
- * await user.resolve(); // fetches
52
- * await user.resolve(); // returns same promise, no refetch
53
- */
54
- lazy.async = function lazyAsync(producer) {
55
- let started = false;
56
- let promise;
57
- return {
58
- [LAZY]: true,
59
- resolve() {
60
- if (!started) {
61
- promise = producer();
62
- started = true;
63
- }
64
- return promise;
65
- },
66
- reset() {
67
- started = false;
68
- promise = void 0;
69
- },
70
- isResolved() {
71
- return started;
72
- },
73
- peek() {
74
- return started ? promise : void 0;
75
- }
76
- };
77
- };
78
- /**
79
- * Build a pre-resolved lazy reference. Useful for tests and for API
80
- * symmetry where a `Lazy<T>` is expected.
81
- *
82
- * @example
83
- * const ref = lazy.from(42);
84
- *
85
- * ref.resolve(); // 42
86
- * ref.isResolved(); // true
87
- */
88
- lazy.from = function lazyFrom(value) {
89
- return {
90
- [LAZY]: true,
91
- resolve: () => value,
92
- reset() {},
93
- isResolved: () => true,
94
- peek: () => value
95
- };
96
- };
97
-
98
- //#endregion
99
- export { lazy };
100
- //# sourceMappingURL=lazy.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/lazy.ts\nconst LAZY = Symbol(\"lazy\");\n/**\n* Wrap a value-producing function as a lazy reference. The producer\n* isn't invoked until `resolve()` is called; subsequent calls return the\n* same cached value.\n*\n* Useful for deferring expensive computations and for breaking circular\n* module dependencies — JavaScript closures capture variable bindings,\n* not values, so a `lazy(() => x)` callsite remains valid even when `x`\n* isn't yet defined at the moment the wrapper is created, as long as\n* it's defined by the time `.resolve()` runs.\n*\n* @example\n* const greeting = lazy(() => expensiveComputation());\n*\n* greeting.resolve(); // computes, caches, returns\n* greeting.resolve(); // returns cached value, no recomputation\n*/\nfunction lazy(producer) {\n\tlet isResolved = false;\n\tlet value;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!isResolved) {\n\t\t\t\tvalue = producer();\n\t\t\t\tisResolved = true;\n\t\t\t}\n\t\t\treturn value;\n\t\t},\n\t\treset() {\n\t\t\tisResolved = false;\n\t\t\tvalue = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn isResolved;\n\t\t},\n\t\tpeek() {\n\t\t\treturn isResolved ? value : void 0;\n\t\t}\n\t};\n}\n/**\n* Async variant of {@link lazy}: the producer returns a `Promise<T>`\n* which is cached after first invocation.\n*\n* @example\n* const user = lazy.async(() => fetchUser());\n*\n* await user.resolve(); // fetches\n* await user.resolve(); // returns same promise, no refetch\n*/\nlazy.async = function lazyAsync(producer) {\n\tlet started = false;\n\tlet promise;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!started) {\n\t\t\t\tpromise = producer();\n\t\t\t\tstarted = true;\n\t\t\t}\n\t\t\treturn promise;\n\t\t},\n\t\treset() {\n\t\t\tstarted = false;\n\t\t\tpromise = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn started;\n\t\t},\n\t\tpeek() {\n\t\t\treturn started ? promise : void 0;\n\t\t}\n\t};\n};\n/**\n* Build a pre-resolved lazy reference. Useful for tests and for API\n* symmetry where a `Lazy<T>` is expected.\n*\n* @example\n* const ref = lazy.from(42);\n*\n* ref.resolve(); // 42\n* ref.isResolved(); // true\n*/\nlazy.from = function lazyFrom(value) {\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve: () => value,\n\t\treset() {},\n\t\tisResolved: () => true,\n\t\tpeek: () => value\n\t};\n};\n/**\n* Type guard that returns `true` when `value` is a `Lazy<T>` or\n* `LazyAsync<T>` produced by `lazy()` / `lazy.async()`.\n*\n* @example\n* if (isLazy(value)) {\n* value.resolve();\n* }\n*/\nfunction isLazy(value) {\n\treturn value?.[LAZY] === true;\n}\n\n//#endregion\nexport { lazy as default, isLazy };\n//# sourceMappingURL=lazy.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,OAAO,OAAO,MAAM;;;;;;;;;;;;;;;;;;AAkB1B,SAAS,KAAK,UAAU;CACvB,IAAI,aAAa;CACjB,IAAI;CACJ,OAAO;GACL,OAAO;EACR,UAAU;GACT,IAAI,CAAC,YAAY;IAChB,QAAQ,SAAS;IACjB,aAAa;GACd;GACA,OAAO;EACR;EACA,QAAQ;GACP,aAAa;GACb,QAAQ,KAAK;EACd;EACA,aAAa;GACZ,OAAO;EACR;EACA,OAAO;GACN,OAAO,aAAa,QAAQ,KAAK;EAClC;CACD;AACD;;;;;;;;;;;AAWA,KAAK,QAAQ,SAAS,UAAU,UAAU;CACzC,IAAI,UAAU;CACd,IAAI;CACJ,OAAO;GACL,OAAO;EACR,UAAU;GACT,IAAI,CAAC,SAAS;IACb,UAAU,SAAS;IACnB,UAAU;GACX;GACA,OAAO;EACR;EACA,QAAQ;GACP,UAAU;GACV,UAAU,KAAK;EAChB;EACA,aAAa;GACZ,OAAO;EACR;EACA,OAAO;GACN,OAAO,UAAU,UAAU,KAAK;EACjC;CACD;AACD;;;;;;;;;;;AAWA,KAAK,OAAO,SAAS,SAAS,OAAO;CACpC,OAAO;GACL,OAAO;EACR,eAAe;EACf,QAAQ,CAAC;EACT,kBAAkB;EAClB,YAAY;CACb;AACD"}
@@ -1,27 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs
2
- /**
3
- * Run `sideEffect` against `value`, then return `value` unchanged.
4
- * Useful for inserting logging / instrumentation into a pipeline.
5
- *
6
- * @example
7
- * pipe(2, n => n + 1, tap.with(console.log), n => n * 10);
8
- * // logs 3, returns 30
9
- */
10
- function tap(value, sideEffect) {
11
- sideEffect(value);
12
- return value;
13
- }
14
- /**
15
- * Curried form: `tap.with(fn)` returns a pipeline-friendly
16
- * `(value) => value` that runs the side effect.
17
- */
18
- tap.with = function tapWith(sideEffect) {
19
- return (value) => {
20
- sideEffect(value);
21
- return value;
22
- };
23
- };
24
-
25
- //#endregion
26
- export { tap };
27
- //# sourceMappingURL=tap.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tap.mjs","names":[],"sources":["../../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/tap.ts\n/**\n* Run `sideEffect` against `value`, then return `value` unchanged.\n* Useful for inserting logging / instrumentation into a pipeline.\n*\n* @example\n* pipe(2, n => n + 1, tap.with(console.log), n => n * 10);\n* // logs 3, returns 30\n*/\nfunction tap(value, sideEffect) {\n\tsideEffect(value);\n\treturn value;\n}\n/**\n* Curried form: `tap.with(fn)` returns a pipeline-friendly\n* `(value) => value` that runs the side effect.\n*/\ntap.with = function tapWith(sideEffect) {\n\treturn (value) => {\n\t\tsideEffect(value);\n\t\treturn value;\n\t};\n};\n\n//#endregion\nexport { tap as default };\n//# sourceMappingURL=tap.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,IAAI,OAAO,YAAY;CAC/B,WAAW,KAAK;CAChB,OAAO;AACR;;;;;AAKA,IAAI,OAAO,SAAS,QAAQ,YAAY;CACvC,QAAQ,UAAU;EACjB,WAAW,KAAK;EAChB,OAAO;CACR;AACD"}
@@ -1,358 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@mongez+supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs
2
- /**
3
- * Determine whether the given value is a number whatever if its data type is String or Number
4
- */
5
- function isNumeric(value) {
6
- return /^[+-]?\d+(\.\d+)?([Ee][+-]?\d+)?$/.test(String(value));
7
- }
8
- /**
9
- * Check if the given value is int
10
- */
11
- const isInt = (value) => typeof value === "number" && Number.isInteger(value);
12
- /**
13
- * Check if the given value is float
14
- */
15
- const isFloat = (value) => typeof value === "number" && Number.isFinite(value) && /^-?\d+\.\d+$/.test(String(value));
16
- /**
17
- * Check if the given value is a regex
18
- */
19
- const isRegex = (value) => Boolean(value) && value.constructor?.name === "RegExp";
20
- /**
21
- * Check if the given value is an object
22
- * Arrays, dates and class instances are objects; `null` and functions are not
23
- */
24
- const isObject = (value) => Boolean(value) && typeof value === "object";
25
- /**
26
- * Check if the given value is a plain object
27
- */
28
- const isPlainObject = (value) => {
29
- if (!value || typeof value !== "object") return false;
30
- if (Object.getPrototypeOf(value) === null) return true;
31
- return value.constructor?.name === "Object";
32
- };
33
- /**
34
- * Check if the given value is validId
35
- */
36
- const isValidId = (value) => Boolean(value && /^[A-Za-z][\w\-:.]*$/.test(String(value)));
37
- /**
38
- * Check if the given value is a form element
39
- */
40
- const isFormElement = (value) => typeof HTMLFormElement === "undefined" ? false : value instanceof HTMLFormElement;
41
- /**
42
- * Check if the given value is a form data
43
- */
44
- const isFormData = (value) => value instanceof FormData;
45
- /**
46
- * Check if the given value is iterable
47
- */
48
- const isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === "function";
49
- /**
50
- * Check if the given value is a scalar value
51
- */
52
- const isScalar = (value) => [
53
- "string",
54
- "boolean",
55
- "number",
56
- "symbol",
57
- "bigint"
58
- ].includes(typeof value);
59
- /**
60
- * Check if the given value is a primitive value
61
- * (string, boolean, number or bigint — symbols, `null` and `undefined` are not)
62
- */
63
- const isPrimitive = (value) => [
64
- "string",
65
- "boolean",
66
- "number",
67
- "bigint"
68
- ].includes(typeof value);
69
- /**
70
- * Check if the given value is a promise
71
- */
72
- const isPromise = (value) => Boolean(value) && value instanceof Promise;
73
- /**
74
- * Check if the given value is a date
75
- */
76
- const isDate = (value) => Boolean(value) && typeof value === "object" && value instanceof Date;
77
- /**
78
- * Check if the given value is a generator
79
- * Duck-typed: any object with a `next()` method that is its own iterator, so
80
- * the predicate is `IterableIterator` (not `Generator`, whose `return` and
81
- * `throw` methods are not verified)
82
- */
83
- const isGenerator = (value) => Boolean(value) && typeof value === "object" && typeof value.next === "function" && typeof value[Symbol.iterator] === "function" && value[Symbol.iterator]() === value;
84
- /**
85
- * Check if the given value is empty
86
- * Zero does not considered empty
87
- * Empty object is considered empty
88
- * Empty array is considered empty
89
- */
90
- const isEmpty = (value) => {
91
- if ([
92
- 0,
93
- true,
94
- false
95
- ].includes(value)) return false;
96
- if ([
97
- "",
98
- null,
99
- void 0
100
- ].includes(value)) return true;
101
- if (typeof value === "number" && Number.isNaN(value)) return false;
102
- if (value instanceof Date) return false;
103
- if (value instanceof Map || value instanceof Set) return value.size === 0;
104
- if (typeof value === "object" && !Array.isArray(value) && typeof value[Symbol.iterator] !== "function") return Object.keys(value).length === 0;
105
- if (isIterable(value)) return value.length === 0;
106
- if (isNumeric(value)) return false;
107
- return true;
108
- };
109
- /**
110
- * Check if the given value is a valid json
111
- */
112
- const isJson = (value) => {
113
- if (!value || typeof value !== "string") return false;
114
- if (!["[", "{"].includes(value[0])) return false;
115
- try {
116
- JSON.parse(value);
117
- return true;
118
- } catch (e) {
119
- return false;
120
- }
121
- };
122
- /**
123
- * Check if the given value is valid url
124
- */
125
- const isUrl = (value) => {
126
- if (!value || typeof value !== "string") return false;
127
- try {
128
- const url = new URL(value);
129
- if (!["http:", "https:"].includes(url.protocol)) return false;
130
- const hostname = url.hostname;
131
- if (!hostname.includes(".")) return false;
132
- if (hostname.split(".").some((label) => label.length === 0)) return false;
133
- return true;
134
- } catch (e) {
135
- return false;
136
- }
137
- };
138
- /**
139
- * Check if the given value is a valid email
140
- */
141
- const isEmail = (value) => typeof value === "string" && /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(value);
142
- /**
143
- * Check if current user is opening from mobile
144
- */
145
- const isMobile = {
146
- /**
147
- * Determine whether the current visitor is opening from an Android device
148
- */
149
- android: () => navigator.userAgent.match(/Android/i) !== null,
150
- /**
151
- * Determine whether the current visitor is opening from an ios device
152
- */
153
- ios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,
154
- /**
155
- * Determine whether the current visitor is opening from an Iphone
156
- */
157
- iphone: () => navigator.userAgent.match(/iPhone/i) !== null,
158
- /**
159
- * Determine whether the current visitor is opening from an ipad
160
- */
161
- ipad: () => navigator.userAgent.match(/iPad/i) !== null,
162
- /**
163
- * Determine whether the current visitor is opening from an ipod
164
- */
165
- ipod: () => navigator.userAgent.match(/iPod/i) !== null,
166
- /**
167
- * Determine whether the current visitor is opening from an windows mobile
168
- */
169
- windows: () => navigator.userAgent.match(/IEMobile/i) !== null,
170
- /**
171
- * Determine whether the current visitor is opening from mobile whatever its type
172
- */
173
- any: () => isMobile.android() || isMobile.ios() || isMobile.windows()
174
- };
175
- /**
176
- * Determine if current user is opening from macOS
177
- */
178
- const isMac = () => navigator.userAgent.match(/mac/i) !== null;
179
- /**
180
- * Check if current browser is the given name
181
- */
182
- const isBrowser = (browser) => {
183
- return {
184
- chrome: isChrome(),
185
- firefox: isFirefox(),
186
- opera: isOpera(),
187
- edge: isEdge(),
188
- ie: isIE(),
189
- safari: isSafari()
190
- }[browser.toLowerCase()] === true;
191
- };
192
- /**
193
- * Check if current browser is chrome browser
194
- */
195
- const isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
196
- /**
197
- * Check if current browser is firefox
198
- */
199
- const isFirefox = () => typeof window.InstallTrigger !== "undefined";
200
- /**
201
- * Check if current browser is safari
202
- */
203
- const isSafari = () => {
204
- if (typeof navigator === "undefined") return false;
205
- const ua = navigator.userAgent || "";
206
- return /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);
207
- };
208
- /**
209
- * Check if current browser is opera
210
- */
211
- const isOpera = () => {
212
- if (typeof window === "undefined") return false;
213
- const w = window;
214
- return !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== "undefined" && navigator.userAgent.indexOf(" OPR/") >= 0;
215
- };
216
- /**
217
- * Check if current browser is internet explorer
218
- */
219
- const isIE = () => !!document.documentMode;
220
- /**
221
- * Check if current browser is edge
222
- */
223
- const isEdge = () => {
224
- return !!!document.documentMode && !!window.StyleMedia;
225
- };
226
- /**
227
- * Determine whether the current visitor is opening from desktop
228
- */
229
- const isDesktop = () => !isMobile.any();
230
- /**
231
- * A simple lightweight library to validate values against certain types of data
232
- * For full documentation on github
233
- * Repo: https://github.com/hassanzohdy/supportive-is
234
- *
235
- * First released 01/12/2017
236
- * Licensed under MIT (http://opensource.org/licenses/MIT)
237
- */
238
- const Is = {
239
- /**
240
- * Determine whether the given value is a number whatever if its data type is String or Number
241
- */
242
- numeric: isNumeric,
243
- /**
244
- * Determine whether the given value is an integer and its data type is number
245
- * As Number.isInteger considers 1.0 to be valid integer, regex will be used instead
246
- */
247
- int: isInt,
248
- /**
249
- * Determine whether the given value is a float number and its data type is number
250
- */
251
- float: isFloat,
252
- /**
253
- * Determine whether the given value is a regular expression
254
- */
255
- regex: isRegex,
256
- /**
257
- * Determine whether the given value is an object
258
- */
259
- object: isObject,
260
- /**
261
- * Determine whether the given value is a plain object
262
- */
263
- plainObject: isPlainObject,
264
- /**
265
- * Determine whether the given value is an array
266
- */
267
- array: Array.isArray,
268
- /**
269
- * Determine whether the given value is valid html attribute `id`
270
- */
271
- validHtmlId: isValidId,
272
- /**
273
- * determine if the given value is an instance of form element
274
- */
275
- formElement: isFormElement,
276
- /**
277
- * @alias formElement
278
- */
279
- form: isFormElement,
280
- /**
281
- * determine if the given value is an instance of form data
282
- */
283
- formData: isFormData,
284
- /**
285
- * Determine whether the given value is iterable
286
- */
287
- iterable: isIterable,
288
- /**
289
- * Determine whether the given value is a scalar
290
- * Scalar types are strings, booleans, integers and
291
- */
292
- scalar: isScalar,
293
- /**
294
- * Determine if the given value is a primitive value
295
- */
296
- primitive: isPrimitive,
297
- /**
298
- * Determine whether the given value is a promise
299
- */
300
- promise: isPromise,
301
- /**
302
- * Determine whether the given value is a date
303
- */
304
- date: isDate,
305
- /**
306
- * Determine whether the given value is a generator
307
- */
308
- generator: isGenerator,
309
- /**
310
- * Determine whether the given value if an empty
311
- * This can be validated against any type of values
312
- * undefined or nullable values will be considered empty
313
- * Objects that doesn't have any properties will be considered empty
314
- * Arrays and Strings will be empty based on its length
315
- * The 0 'Zero" number will not be considered empty
316
- */
317
- empty: isEmpty,
318
- /**
319
- * Determine whether the given value is a valid json string
320
- */
321
- json: isJson,
322
- /**
323
- * Determine whether the given value is a valid url
324
- */
325
- url: isUrl,
326
- /**
327
- * Determine whether the given value is a valid email
328
- */
329
- email: isEmail,
330
- /**
331
- * Determine the current visitor is opening from mobile
332
- * Please Note this method depends on the user agent
333
- */
334
- mobile: isMobile,
335
- /**
336
- * Determine if current user is opening from macOS
337
- */
338
- mac: isMac,
339
- /**
340
- * Determine whether the current visitor is opening from desktop
341
- */
342
- desktop: isDesktop,
343
- /**
344
- * Check if the current browser is the given name
345
- * To detect browser version as well, pass the version number as the second argument
346
- */
347
- browser: isBrowser,
348
- chrome: isChrome,
349
- firefox: isFirefox,
350
- safari: isSafari,
351
- opera: isOpera,
352
- ie: isIE,
353
- edge: isEdge
354
- };
355
-
356
- //#endregion
357
- export { isEmail, isEmpty, isNumeric, isObject, isPlainObject };
358
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs"],"sourcesContent":["//#region ../supportive-is/src/index.ts\n/**\n* Determine whether the given value is a number whatever if its data type is String or Number\n*/\nfunction isNumeric(value) {\n\treturn /^[+-]?\\d+(\\.\\d+)?([Ee][+-]?\\d+)?$/.test(String(value));\n}\n/**\n* Check if the given value is int\n*/\nconst isInt = (value) => typeof value === \"number\" && Number.isInteger(value);\n/**\n* Check if the given value is float\n*/\nconst isFloat = (value) => typeof value === \"number\" && Number.isFinite(value) && /^-?\\d+\\.\\d+$/.test(String(value));\n/**\n* Check if the given value is a regex\n*/\nconst isRegex = (value) => Boolean(value) && value.constructor?.name === \"RegExp\";\n/**\n* Check if the given value is an object\n* Arrays, dates and class instances are objects; `null` and functions are not\n*/\nconst isObject = (value) => Boolean(value) && typeof value === \"object\";\n/**\n* Check if the given value is a plain object\n*/\nconst isPlainObject = (value) => {\n\tif (!value || typeof value !== \"object\") return false;\n\tif (Object.getPrototypeOf(value) === null) return true;\n\treturn value.constructor?.name === \"Object\";\n};\n/**\n* Check if the given value is validId\n*/\nconst isValidId = (value) => Boolean(value && /^[A-Za-z][\\w\\-:.]*$/.test(String(value)));\n/**\n* Check if the given value is a form element\n*/\nconst isFormElement = (value) => typeof HTMLFormElement === \"undefined\" ? false : value instanceof HTMLFormElement;\n/**\n* Check if the given value is a form data\n*/\nconst isFormData = (value) => value instanceof FormData;\n/**\n* Check if the given value is iterable\n*/\nconst isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === \"function\";\n/**\n* Check if the given value is a scalar value\n*/\nconst isScalar = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"symbol\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a string\n*/\nconst isString = (value) => typeof value === \"string\";\n/**\n* Check if the given value is a primitive value\n* (string, boolean, number or bigint — symbols, `null` and `undefined` are not)\n*/\nconst isPrimitive = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a promise\n*/\nconst isPromise = (value) => Boolean(value) && value instanceof Promise;\n/**\n* Check if the given value is a date\n*/\nconst isDate = (value) => Boolean(value) && typeof value === \"object\" && value instanceof Date;\n/**\n* Check if the given value is a generator\n* Duck-typed: any object with a `next()` method that is its own iterator, so\n* the predicate is `IterableIterator` (not `Generator`, whose `return` and\n* `throw` methods are not verified)\n*/\nconst isGenerator = (value) => Boolean(value) && typeof value === \"object\" && typeof value.next === \"function\" && typeof value[Symbol.iterator] === \"function\" && value[Symbol.iterator]() === value;\n/**\n* Check if the given value is empty\n* Zero does not considered empty\n* Empty object is considered empty\n* Empty array is considered empty\n*/\nconst isEmpty = (value) => {\n\tif ([\n\t\t0,\n\t\ttrue,\n\t\tfalse\n\t].includes(value)) return false;\n\tif ([\n\t\t\"\",\n\t\tnull,\n\t\tvoid 0\n\t].includes(value)) return true;\n\tif (typeof value === \"number\" && Number.isNaN(value)) return false;\n\tif (value instanceof Date) return false;\n\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\tif (typeof value === \"object\" && !Array.isArray(value) && typeof value[Symbol.iterator] !== \"function\") return Object.keys(value).length === 0;\n\tif (isIterable(value)) return value.length === 0;\n\tif (isNumeric(value)) return false;\n\treturn true;\n};\n/**\n* Check if the given value is a valid json\n*/\nconst isJson = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\tif (![\"[\", \"{\"].includes(value[0])) return false;\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is valid url\n*/\nconst isUrl = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\ttry {\n\t\tconst url = new URL(value);\n\t\tif (![\"http:\", \"https:\"].includes(url.protocol)) return false;\n\t\tconst hostname = url.hostname;\n\t\tif (!hostname.includes(\".\")) return false;\n\t\tif (hostname.split(\".\").some((label) => label.length === 0)) return false;\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is a valid email\n*/\nconst isEmail = (value) => typeof value === \"string\" && /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(value);\n/**\n* Check if current user is opening from mobile\n*/\nconst isMobile = {\n\t/**\n\t* Determine whether the current visitor is opening from an Android device\n\t*/\n\tandroid: () => navigator.userAgent.match(/Android/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ios device\n\t*/\n\tios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an Iphone\n\t*/\n\tiphone: () => navigator.userAgent.match(/iPhone/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipad\n\t*/\n\tipad: () => navigator.userAgent.match(/iPad/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipod\n\t*/\n\tipod: () => navigator.userAgent.match(/iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an windows mobile\n\t*/\n\twindows: () => navigator.userAgent.match(/IEMobile/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from mobile whatever its type\n\t*/\n\tany: () => isMobile.android() || isMobile.ios() || isMobile.windows()\n};\n/**\n* Determine if current user is opening from macOS\n*/\nconst isMac = () => navigator.userAgent.match(/mac/i) !== null;\n/**\n* Check if current browser is the given name\n*/\nconst isBrowser = (browser) => {\n\treturn {\n\t\tchrome: isChrome(),\n\t\tfirefox: isFirefox(),\n\t\topera: isOpera(),\n\t\tedge: isEdge(),\n\t\tie: isIE(),\n\t\tsafari: isSafari()\n\t}[browser.toLowerCase()] === true;\n};\n/**\n* Check if current browser is chrome browser\n*/\nconst isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n/**\n* Check if current browser is firefox\n*/\nconst isFirefox = () => typeof window.InstallTrigger !== \"undefined\";\n/**\n* Check if current browser is safari\n*/\nconst isSafari = () => {\n\tif (typeof navigator === \"undefined\") return false;\n\tconst ua = navigator.userAgent || \"\";\n\treturn /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);\n};\n/**\n* Check if current browser is opera\n*/\nconst isOpera = () => {\n\tif (typeof window === \"undefined\") return false;\n\tconst w = window;\n\treturn !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== \"undefined\" && navigator.userAgent.indexOf(\" OPR/\") >= 0;\n};\n/**\n* Check if current browser is internet explorer\n*/\nconst isIE = () => !!document.documentMode;\n/**\n* Check if current browser is edge\n*/\nconst isEdge = () => {\n\treturn !!!document.documentMode && !!window.StyleMedia;\n};\n/**\n* Determine whether the current visitor is opening from desktop\n*/\nconst isDesktop = () => !isMobile.any();\n/**\n* A simple lightweight library to validate values against certain types of data\n* For full documentation on github\n* Repo: https://github.com/hassanzohdy/supportive-is\n*\n* First released 01/12/2017\n* Licensed under MIT (http://opensource.org/licenses/MIT)\n*/\nconst Is = {\n\t/**\n\t* Determine whether the given value is a number whatever if its data type is String or Number\n\t*/\n\tnumeric: isNumeric,\n\t/**\n\t* Determine whether the given value is an integer and its data type is number\n\t* As Number.isInteger considers 1.0 to be valid integer, regex will be used instead\n\t*/\n\tint: isInt,\n\t/**\n\t* Determine whether the given value is a float number and its data type is number\n\t*/\n\tfloat: isFloat,\n\t/**\n\t* Determine whether the given value is a regular expression\n\t*/\n\tregex: isRegex,\n\t/**\n\t* Determine whether the given value is an object\n\t*/\n\tobject: isObject,\n\t/**\n\t* Determine whether the given value is a plain object\n\t*/\n\tplainObject: isPlainObject,\n\t/**\n\t* Determine whether the given value is an array\n\t*/\n\tarray: Array.isArray,\n\t/**\n\t* Determine whether the given value is valid html attribute `id`\n\t*/\n\tvalidHtmlId: isValidId,\n\t/**\n\t* determine if the given value is an instance of form element\n\t*/\n\tformElement: isFormElement,\n\t/**\n\t* @alias formElement\n\t*/\n\tform: isFormElement,\n\t/**\n\t* determine if the given value is an instance of form data\n\t*/\n\tformData: isFormData,\n\t/**\n\t* Determine whether the given value is iterable\n\t*/\n\titerable: isIterable,\n\t/**\n\t* Determine whether the given value is a scalar\n\t* Scalar types are strings, booleans, integers and\n\t*/\n\tscalar: isScalar,\n\t/**\n\t* Determine if the given value is a primitive value\n\t*/\n\tprimitive: isPrimitive,\n\t/**\n\t* Determine whether the given value is a promise\n\t*/\n\tpromise: isPromise,\n\t/**\n\t* Determine whether the given value is a date\n\t*/\n\tdate: isDate,\n\t/**\n\t* Determine whether the given value is a generator\n\t*/\n\tgenerator: isGenerator,\n\t/**\n\t* Determine whether the given value if an empty\n\t* This can be validated against any type of values\n\t* undefined or nullable values will be considered empty\n\t* Objects that doesn't have any properties will be considered empty\n\t* Arrays and Strings will be empty based on its length\n\t* The 0 'Zero\" number will not be considered empty\n\t*/\n\tempty: isEmpty,\n\t/**\n\t* Determine whether the given value is a valid json string\n\t*/\n\tjson: isJson,\n\t/**\n\t* Determine whether the given value is a valid url\n\t*/\n\turl: isUrl,\n\t/**\n\t* Determine whether the given value is a valid email\n\t*/\n\temail: isEmail,\n\t/**\n\t* Determine the current visitor is opening from mobile\n\t* Please Note this method depends on the user agent\n\t*/\n\tmobile: isMobile,\n\t/**\n\t* Determine if current user is opening from macOS\n\t*/\n\tmac: isMac,\n\t/**\n\t* Determine whether the current visitor is opening from desktop\n\t*/\n\tdesktop: isDesktop,\n\t/**\n\t* Check if the current browser is the given name\n\t* To detect browser version as well, pass the version number as the second argument\n\t*/\n\tbrowser: isBrowser,\n\tchrome: isChrome,\n\tfirefox: isFirefox,\n\tsafari: isSafari,\n\topera: isOpera,\n\tie: isIE,\n\tedge: isEdge\n};\n\n//#endregion\nexport { Is, Is as default, isBrowser, isChrome, isDate, isDesktop, isEdge, isEmail, isEmpty, isFirefox, isFloat, isFormData, isFormElement, isGenerator, isIE, isInt, isIterable, isJson, isMac, isMobile, isNumeric, isObject, isOpera, isPlainObject, isPrimitive, isPromise, isRegex, isSafari, isScalar, isString, isUrl, isValidId };\n//# sourceMappingURL=index.mjs.map"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,28 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_error } from "./lib/error.mjs";
3
- import { require_credentials } from "./lib/credentials.mjs";
4
- import { require_connect } from "./lib/connect.mjs";
5
- import { require_channel_model } from "./lib/channel_model.mjs";
6
-
7
- //#region ../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.js
8
- var require_channel_api = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9
- var raw_connect = require_connect().connect;
10
- var ChannelModel = require_channel_model().ChannelModel;
11
- var promisify = __require("util").promisify;
12
- function connect(url, connOptions) {
13
- return promisify(function(cb) {
14
- return raw_connect(url, connOptions, cb);
15
- })().then(function(conn) {
16
- return new ChannelModel(conn);
17
- });
18
- }
19
- module.exports.connect = connect;
20
- module.exports.credentials = require_credentials();
21
- module.exports.IllegalOperationError = require_error().IllegalOperationError;
22
- }));
23
-
24
- //#endregion
25
- export default require_channel_api();
26
-
27
- export { };
28
- //# sourceMappingURL=channel_api.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel_api.mjs","names":[],"sources":["../../../../../../../../../../../../node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.js"],"sourcesContent":["var raw_connect = require('./lib/connect').connect;\nvar ChannelModel = require('./lib/channel_model').ChannelModel;\nvar promisify = require('util').promisify;\n\nfunction connect(url, connOptions) {\n return promisify(function(cb) {\n return raw_connect(url, connOptions, cb);\n })()\n .then(function(conn) {\n return new ChannelModel(conn);\n });\n};\n\nmodule.exports.connect = connect;\nmodule.exports.credentials = require('./lib/credentials');\nmodule.exports.IllegalOperationError = require('./lib/error').IllegalOperationError;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;CAAA,IAAI,gCAAuC;CAC3C,IAAI,uCAA8C;CAClD,IAAI,sBAAoB,MAAM,CAAC,CAAC;CAEhC,SAAS,QAAQ,KAAK,aAAa;EACjC,OAAO,UAAU,SAAS,IAAI;GAC5B,OAAO,YAAY,KAAK,aAAa,EAAE;EACzC,CAAC,CAAC,CAAC,CAAC,CACH,KAAK,SAAS,MAAM;GACnB,OAAO,IAAI,aAAa,IAAI;EAC9B,CAAC;CACH;CAEA,OAAO,QAAQ,UAAU;CACzB,OAAO,QAAQ;CACf,OAAO,QAAQ,wCAA+C"}