@ozdao/prometheus-framework 0.2.56 → 0.2.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (745) hide show
  1. package/dist/_commonjsHelpers-CUmg6egw.mjs +6 -0
  2. package/dist/_commonjsHelpers-DHfMLFPC.js +5 -0
  3. package/dist/_virtual/index.cjs +1 -1
  4. package/dist/_virtual/index.js +2 -2
  5. package/dist/_virtual/index2.cjs +1 -0
  6. package/dist/_virtual/index2.js +4 -0
  7. package/dist/addMembersQuantity-B8UgqlUM.js +97 -0
  8. package/dist/addMembersQuantity-BXp_LeQd.mjs +98 -0
  9. package/dist/auth.server.js +5 -9
  10. package/dist/auth.server.mjs +5 -9
  11. package/dist/community.server.js +3 -5
  12. package/dist/community.server.mjs +3 -5
  13. package/dist/events.server.js +3 -5
  14. package/dist/events.server.mjs +3 -5
  15. package/dist/files.server.js +2 -4
  16. package/dist/files.server.mjs +2 -4
  17. package/dist/gallery.server.js +2 -4
  18. package/dist/gallery.server.mjs +2 -4
  19. package/dist/globals.server.js +2 -5
  20. package/dist/globals.server.mjs +2 -5
  21. package/dist/index-CGIn4v5E.mjs +217 -0
  22. package/dist/index-CL9l0HRS.js +216 -0
  23. package/dist/mailing-CxEcQ8NY.js +77 -0
  24. package/dist/mailing-DT2ZSkCD.mjs +78 -0
  25. package/dist/main-nO9P-mgH.js +91 -0
  26. package/dist/main-yJ9uXsVC.mjs +13748 -0
  27. package/dist/main.css +1 -1
  28. package/dist/metadata.schema-C_AgyVgg.mjs +210 -0
  29. package/dist/metadata.schema-IGS4BjqG.js +209 -0
  30. package/dist/middlewares.server.js +2 -4
  31. package/dist/middlewares.server.mjs +2 -4
  32. package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -1
  33. package/dist/node_modules/@ethereumjs/rlp/dist/index.js +1 -1
  34. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  35. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  36. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  37. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  38. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  39. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  40. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  41. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +334 -332
  42. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
  43. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -1
  44. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  45. package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
  46. package/dist/node_modules/eventemitter3/index.cjs +1 -0
  47. package/dist/node_modules/eventemitter3/index.js +117 -0
  48. package/dist/node_modules/eventemitter3/index2.cjs +1 -0
  49. package/dist/node_modules/eventemitter3/index2.js +5 -0
  50. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  51. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  52. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  53. package/dist/node_modules/web3/lib/esm/index.js +41 -40
  54. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  55. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  56. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  57. package/dist/node_modules/web3/lib/esm/web3.js +50 -47
  58. package/dist/node_modules/web3/lib/esm/web3_eip6963.cjs +1 -0
  59. package/dist/node_modules/web3/lib/esm/web3_eip6963.js +50 -0
  60. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  61. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  62. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  63. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  64. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  65. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  66. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  67. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  68. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  69. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  70. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  71. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  72. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +171 -164
  74. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  76. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  78. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  80. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  82. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  84. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  86. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  88. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  89. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  90. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  91. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  92. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  93. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  94. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  96. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  97. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +327 -265
  98. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  99. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  100. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  101. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  102. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  103. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  104. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -1
  105. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +18 -0
  106. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  107. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +35 -20
  108. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  109. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  110. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  111. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +53 -47
  112. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  113. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  114. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  115. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  116. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  117. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  118. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  119. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  120. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  121. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  122. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  123. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  124. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  125. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +69 -60
  126. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  127. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  128. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  129. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  130. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  131. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  132. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  133. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +6 -82
  134. package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -1
  135. package/dist/node_modules/web3-utils/lib/esm/objects.js +9 -9
  136. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  137. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  138. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  139. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  140. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  141. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  142. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  143. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +20 -20
  144. package/dist/organizations.server.js +2 -2
  145. package/dist/organizations.server.mjs +2 -2
  146. package/dist/products.server.js +2 -4
  147. package/dist/products.server.mjs +2 -4
  148. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.cjs +1 -1
  149. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.js +1 -4
  150. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  151. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3113 -3253
  152. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
  153. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +11 -12
  154. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
  155. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +14 -14
  156. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  157. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
  158. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  159. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  160. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  161. package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  162. package/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  163. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +3 -3
  164. package/dist/prometheus-framework/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
  165. package/dist/prometheus-framework/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  166. package/dist/prometheus-framework/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
  167. package/dist/prometheus-framework/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  168. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
  169. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/formatters.js +518 -0
  170. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
  171. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  172. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
  173. package/dist/prometheus-framework/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  174. package/dist/prometheus-framework/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
  175. package/dist/prometheus-framework/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  176. package/dist/prometheus-framework/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
  177. package/dist/prometheus-framework/node_modules/date-fns/_lib/protectedTokens.js +21 -0
  178. package/dist/prometheus-framework/node_modules/date-fns/add.cjs +1 -0
  179. package/dist/prometheus-framework/node_modules/date-fns/add.js +20 -0
  180. package/dist/prometheus-framework/node_modules/date-fns/addDays.cjs +1 -0
  181. package/dist/prometheus-framework/node_modules/date-fns/addDays.js +10 -0
  182. package/dist/prometheus-framework/node_modules/date-fns/addHours.cjs +1 -0
  183. package/dist/prometheus-framework/node_modules/date-fns/addHours.js +9 -0
  184. package/dist/prometheus-framework/node_modules/date-fns/addMilliseconds.cjs +1 -0
  185. package/dist/prometheus-framework/node_modules/date-fns/addMilliseconds.js +10 -0
  186. package/dist/prometheus-framework/node_modules/date-fns/addMonths.cjs +1 -0
  187. package/dist/prometheus-framework/node_modules/date-fns/addMonths.js +21 -0
  188. package/dist/prometheus-framework/node_modules/date-fns/addQuarters.cjs +1 -0
  189. package/dist/prometheus-framework/node_modules/date-fns/addQuarters.js +9 -0
  190. package/dist/prometheus-framework/node_modules/date-fns/addYears.cjs +1 -0
  191. package/dist/prometheus-framework/node_modules/date-fns/addYears.js +8 -0
  192. package/dist/prometheus-framework/node_modules/date-fns/constants.cjs +1 -0
  193. package/dist/prometheus-framework/node_modules/date-fns/constants.js +8 -0
  194. package/dist/prometheus-framework/node_modules/date-fns/constructFrom.cjs +1 -0
  195. package/dist/prometheus-framework/node_modules/date-fns/constructFrom.js +7 -0
  196. package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
  197. package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarDays.js +11 -0
  198. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
  199. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +19 -0
  200. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
  201. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +20 -0
  202. package/dist/prometheus-framework/node_modules/date-fns/endOfQuarter.cjs +1 -0
  203. package/dist/prometheus-framework/node_modules/date-fns/endOfQuarter.js +9 -0
  204. package/dist/prometheus-framework/node_modules/date-fns/endOfWeek.cjs +1 -0
  205. package/dist/prometheus-framework/node_modules/date-fns/endOfWeek.js +11 -0
  206. package/dist/prometheus-framework/node_modules/date-fns/endOfYear.cjs +1 -0
  207. package/dist/prometheus-framework/node_modules/date-fns/endOfYear.js +9 -0
  208. package/dist/prometheus-framework/node_modules/date-fns/format.cjs +1 -0
  209. package/dist/prometheus-framework/node_modules/date-fns/format.js +60 -0
  210. package/dist/prometheus-framework/node_modules/date-fns/getDay.cjs +1 -0
  211. package/dist/prometheus-framework/node_modules/date-fns/getDay.js +8 -0
  212. package/dist/prometheus-framework/node_modules/date-fns/getDayOfYear.cjs +1 -0
  213. package/dist/prometheus-framework/node_modules/date-fns/getDayOfYear.js +11 -0
  214. package/dist/prometheus-framework/node_modules/date-fns/getDaysInMonth.cjs +1 -0
  215. package/dist/prometheus-framework/node_modules/date-fns/getDaysInMonth.js +10 -0
  216. package/dist/prometheus-framework/node_modules/date-fns/getDefaultOptions.cjs +1 -0
  217. package/dist/prometheus-framework/node_modules/date-fns/getDefaultOptions.js +8 -0
  218. package/dist/prometheus-framework/node_modules/date-fns/getHours.cjs +1 -0
  219. package/dist/prometheus-framework/node_modules/date-fns/getHours.js +8 -0
  220. package/dist/prometheus-framework/node_modules/date-fns/getISODay.cjs +1 -0
  221. package/dist/prometheus-framework/node_modules/date-fns/getISODay.js +9 -0
  222. package/dist/prometheus-framework/node_modules/date-fns/getISOWeek.cjs +1 -0
  223. package/dist/prometheus-framework/node_modules/date-fns/getISOWeek.js +12 -0
  224. package/dist/prometheus-framework/node_modules/date-fns/getISOWeekYear.cjs +1 -0
  225. package/dist/prometheus-framework/node_modules/date-fns/getISOWeekYear.js +15 -0
  226. package/dist/prometheus-framework/node_modules/date-fns/getMinutes.cjs +1 -0
  227. package/dist/prometheus-framework/node_modules/date-fns/getMinutes.js +8 -0
  228. package/dist/prometheus-framework/node_modules/date-fns/getMonth.cjs +1 -0
  229. package/dist/prometheus-framework/node_modules/date-fns/getMonth.js +8 -0
  230. package/dist/prometheus-framework/node_modules/date-fns/getQuarter.cjs +1 -0
  231. package/dist/prometheus-framework/node_modules/date-fns/getQuarter.js +9 -0
  232. package/dist/prometheus-framework/node_modules/date-fns/getSeconds.cjs +1 -0
  233. package/dist/prometheus-framework/node_modules/date-fns/getSeconds.js +8 -0
  234. package/dist/prometheus-framework/node_modules/date-fns/getWeek.cjs +1 -0
  235. package/dist/prometheus-framework/node_modules/date-fns/getWeek.js +12 -0
  236. package/dist/prometheus-framework/node_modules/date-fns/getWeekYear.cjs +1 -0
  237. package/dist/prometheus-framework/node_modules/date-fns/getWeekYear.js +17 -0
  238. package/dist/prometheus-framework/node_modules/date-fns/getYear.cjs +1 -0
  239. package/dist/prometheus-framework/node_modules/date-fns/getYear.js +8 -0
  240. package/dist/prometheus-framework/node_modules/date-fns/isAfter.cjs +1 -0
  241. package/dist/prometheus-framework/node_modules/date-fns/isAfter.js +9 -0
  242. package/dist/prometheus-framework/node_modules/date-fns/isBefore.cjs +1 -0
  243. package/dist/prometheus-framework/node_modules/date-fns/isBefore.js +9 -0
  244. package/dist/prometheus-framework/node_modules/date-fns/isDate.cjs +1 -0
  245. package/dist/prometheus-framework/node_modules/date-fns/isDate.js +7 -0
  246. package/dist/prometheus-framework/node_modules/date-fns/isEqual.cjs +1 -0
  247. package/dist/prometheus-framework/node_modules/date-fns/isEqual.js +9 -0
  248. package/dist/prometheus-framework/node_modules/date-fns/isSameQuarter.cjs +1 -0
  249. package/dist/prometheus-framework/node_modules/date-fns/isSameQuarter.js +9 -0
  250. package/dist/prometheus-framework/node_modules/date-fns/isValid.cjs +1 -0
  251. package/dist/prometheus-framework/node_modules/date-fns/isValid.js +12 -0
  252. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
  253. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  254. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
  255. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  256. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
  257. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  258. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
  259. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -0
  260. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
  261. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  262. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
  263. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  264. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
  265. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  266. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
  267. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  268. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
  269. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  270. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US.cjs +1 -0
  271. package/dist/prometheus-framework/node_modules/date-fns/locale/en-US.js +21 -0
  272. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
  273. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Parser.js +22 -0
  274. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
  275. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.js +40 -0
  276. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
  277. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/constants.js +49 -0
  278. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
  279. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  280. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
  281. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  282. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
  283. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  284. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
  285. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  286. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
  287. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  288. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
  289. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  290. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
  291. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  292. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
  293. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  294. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
  295. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  296. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
  297. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  298. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
  299. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  300. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
  301. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  302. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
  303. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  304. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
  305. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
  306. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
  307. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  308. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
  309. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  310. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
  311. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  312. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
  313. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  314. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
  315. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
  316. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
  317. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  318. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
  319. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  320. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
  321. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  322. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
  323. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
  324. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
  325. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
  326. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
  327. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  328. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
  329. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
  330. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
  331. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
  332. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
  333. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
  334. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
  335. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  336. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
  337. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  338. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
  339. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  340. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
  341. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  342. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
  343. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/utils.js +103 -0
  344. package/dist/prometheus-framework/node_modules/date-fns/parse.cjs +1 -0
  345. package/dist/prometheus-framework/node_modules/date-fns/parse.js +90 -0
  346. package/dist/prometheus-framework/node_modules/date-fns/set.cjs +1 -0
  347. package/dist/prometheus-framework/node_modules/date-fns/set.js +11 -0
  348. package/dist/prometheus-framework/node_modules/date-fns/setDay.cjs +1 -0
  349. package/dist/prometheus-framework/node_modules/date-fns/setDay.js +12 -0
  350. package/dist/prometheus-framework/node_modules/date-fns/setHours.cjs +1 -0
  351. package/dist/prometheus-framework/node_modules/date-fns/setHours.js +9 -0
  352. package/dist/prometheus-framework/node_modules/date-fns/setISODay.cjs +1 -0
  353. package/dist/prometheus-framework/node_modules/date-fns/setISODay.js +11 -0
  354. package/dist/prometheus-framework/node_modules/date-fns/setISOWeek.cjs +1 -0
  355. package/dist/prometheus-framework/node_modules/date-fns/setISOWeek.js +10 -0
  356. package/dist/prometheus-framework/node_modules/date-fns/setMilliseconds.cjs +1 -0
  357. package/dist/prometheus-framework/node_modules/date-fns/setMilliseconds.js +9 -0
  358. package/dist/prometheus-framework/node_modules/date-fns/setMinutes.cjs +1 -0
  359. package/dist/prometheus-framework/node_modules/date-fns/setMinutes.js +9 -0
  360. package/dist/prometheus-framework/node_modules/date-fns/setMonth.cjs +1 -0
  361. package/dist/prometheus-framework/node_modules/date-fns/setMonth.js +13 -0
  362. package/dist/prometheus-framework/node_modules/date-fns/setSeconds.cjs +1 -0
  363. package/dist/prometheus-framework/node_modules/date-fns/setSeconds.js +9 -0
  364. package/dist/prometheus-framework/node_modules/date-fns/setWeek.cjs +1 -0
  365. package/dist/prometheus-framework/node_modules/date-fns/setWeek.js +10 -0
  366. package/dist/prometheus-framework/node_modules/date-fns/setYear.cjs +1 -0
  367. package/dist/prometheus-framework/node_modules/date-fns/setYear.js +10 -0
  368. package/dist/prometheus-framework/node_modules/date-fns/startOfDay.cjs +1 -0
  369. package/dist/prometheus-framework/node_modules/date-fns/startOfDay.js +9 -0
  370. package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeek.cjs +1 -0
  371. package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeek.js +8 -0
  372. package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
  373. package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  374. package/dist/prometheus-framework/node_modules/date-fns/startOfQuarter.cjs +1 -0
  375. package/dist/prometheus-framework/node_modules/date-fns/startOfQuarter.js +9 -0
  376. package/dist/prometheus-framework/node_modules/date-fns/startOfWeek.cjs +1 -0
  377. package/dist/prometheus-framework/node_modules/date-fns/startOfWeek.js +11 -0
  378. package/dist/prometheus-framework/node_modules/date-fns/startOfWeekYear.cjs +1 -0
  379. package/dist/prometheus-framework/node_modules/date-fns/startOfWeekYear.js +13 -0
  380. package/dist/prometheus-framework/node_modules/date-fns/startOfYear.cjs +1 -0
  381. package/dist/prometheus-framework/node_modules/date-fns/startOfYear.js +10 -0
  382. package/dist/prometheus-framework/node_modules/date-fns/sub.cjs +1 -0
  383. package/dist/prometheus-framework/node_modules/date-fns/sub.js +19 -0
  384. package/dist/prometheus-framework/node_modules/date-fns/subDays.cjs +1 -0
  385. package/dist/prometheus-framework/node_modules/date-fns/subDays.js +8 -0
  386. package/dist/prometheus-framework/node_modules/date-fns/subMonths.cjs +1 -0
  387. package/dist/prometheus-framework/node_modules/date-fns/subMonths.js +8 -0
  388. package/dist/prometheus-framework/node_modules/date-fns/subYears.cjs +1 -0
  389. package/dist/prometheus-framework/node_modules/date-fns/subYears.js +8 -0
  390. package/dist/prometheus-framework/node_modules/date-fns/toDate.cjs +1 -0
  391. package/dist/prometheus-framework/node_modules/date-fns/toDate.js +8 -0
  392. package/dist/prometheus-framework/node_modules/date-fns/transpose.cjs +1 -0
  393. package/dist/prometheus-framework/node_modules/date-fns/transpose.js +18 -0
  394. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  395. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  396. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  397. package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
  398. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  399. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
  400. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  401. package/dist/prometheus-framework/src/components/Button/Button.vue.js +223 -2
  402. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  403. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -225
  404. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  405. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -4
  406. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  407. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
  408. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  409. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
  410. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  411. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
  412. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  413. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +13 -13
  414. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  415. package/dist/prometheus-framework/src/components/Field/Field.vue.js +81 -2
  416. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  417. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -83
  418. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  419. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  420. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  421. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
  422. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  423. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
  424. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  425. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
  426. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  427. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
  428. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  429. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
  430. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  431. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
  432. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  433. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
  434. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  435. package/dist/prometheus-framework/src/components/Map/Map.vue2.js +1 -4
  436. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  437. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  438. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  439. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  440. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  441. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  442. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  443. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  444. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  445. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
  446. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  447. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
  448. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  449. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
  450. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  451. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
  452. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  453. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
  454. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  455. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +8 -10
  456. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  457. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  458. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  459. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  460. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  461. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
  462. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  463. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  464. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  465. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
  466. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  467. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  468. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  469. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
  470. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  471. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  472. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  473. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
  474. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  475. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  476. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  477. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
  478. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  479. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +40 -43
  480. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  481. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
  482. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  483. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -4
  484. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  485. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +34 -34
  486. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  487. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +30 -92
  488. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  489. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  490. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  491. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +29 -26
  492. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  493. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
  494. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  495. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
  496. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  497. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  498. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  499. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
  500. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  501. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
  502. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  503. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  504. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  505. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
  506. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  507. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  508. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  509. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  510. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  511. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  512. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  513. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  514. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  515. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
  516. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  517. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  518. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  519. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +14 -14
  520. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  521. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
  522. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  523. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  524. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  525. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
  526. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  527. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
  528. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +2 -2
  529. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +30 -50
  530. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  531. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
  532. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
  533. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +28 -48
  534. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  535. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  536. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  537. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
  538. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  539. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  540. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  541. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
  542. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  543. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  544. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  545. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  546. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  547. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
  548. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  549. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  550. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  551. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
  552. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  553. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  554. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  555. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  556. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  557. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
  558. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  559. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +3 -3
  560. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  561. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
  562. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  563. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +9 -9
  564. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  565. package/dist/prometheus-framework/src/modules/orders/store/orders.js +26 -30
  566. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  567. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
  568. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  569. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  570. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  571. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  572. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  573. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
  574. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  575. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
  576. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  577. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +11 -12
  578. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  579. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
  580. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  581. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
  582. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  583. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  584. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  585. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +113 -116
  586. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  587. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  588. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  589. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  590. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  591. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
  592. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  593. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  594. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  595. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  596. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  597. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
  598. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  599. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  600. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  601. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  602. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  603. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
  604. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  605. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
  606. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  607. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
  608. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  609. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +3 -3
  610. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  611. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +3 -3
  612. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  613. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +63 -18
  614. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  615. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
  616. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -1
  617. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +1 -4
  618. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  619. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
  620. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  621. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  622. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  623. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
  624. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  625. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  626. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  627. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
  628. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  629. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  630. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  631. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
  632. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  633. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  634. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
  635. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -4
  636. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  637. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
  638. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  639. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
  640. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  641. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  642. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  643. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  644. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -1
  645. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +1 -4
  646. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  647. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  648. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  649. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
  650. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  651. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
  652. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  653. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
  654. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  655. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  656. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  657. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
  658. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
  659. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -4
  660. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  661. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +94 -63
  662. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  663. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  664. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  665. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  666. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  667. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
  668. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
  669. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -4
  670. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  671. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
  672. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  673. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  674. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  675. package/dist/prometheus-framework/src/modules/products/products.client.js +20 -22
  676. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -0
  677. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +24 -0
  678. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -0
  679. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +47 -0
  680. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -0
  681. package/dist/prometheus-framework/src/modules/products/router/products.router.js +38 -0
  682. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  683. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  684. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  685. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
  686. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  687. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  688. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  689. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
  690. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  691. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  692. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  693. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
  694. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  695. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +23 -22
  696. package/dist/prometheus-framework.cjs.js +1 -1
  697. package/dist/prometheus-framework.es.js +35 -36
  698. package/dist/reports.server.js +2 -4
  699. package/dist/reports.server.mjs +2 -4
  700. package/dist/style.css +1 -1
  701. package/dist/users.server.js +2 -3
  702. package/dist/users.server.mjs +2 -3
  703. package/dist/web-YZLDTHc-.mjs +54 -0
  704. package/dist/web-zz-VV8RJ.js +1 -0
  705. package/package.json +30 -30
  706. package/src/components/Feed/Feed.vue +2 -1
  707. package/src/components/Radio/Radio.vue +0 -2
  708. package/src/modules/auth/components/sections/SliderFeatures.vue +37 -18
  709. package/src/modules/auth/controllers/auth.controller.js +0 -1
  710. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  711. package/src/modules/backoffice/router/account.js +0 -33
  712. package/src/modules/backoffice/router/backoffice.js +20 -63
  713. package/src/modules/community/components/pages/Community.vue +7 -1
  714. package/src/modules/events/components/sections/SectionMainGuest.vue +1 -1
  715. package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
  716. package/src/modules/events/store/events.js +1 -0
  717. package/src/modules/landing/components/pages/Home.vue +2 -3
  718. package/src/modules/orders/components/pages/FormOrder.vue +15 -2
  719. package/src/modules/orders/components/pages/Order.vue +9 -16
  720. package/src/modules/orders/components/pages/Orders.vue +1 -1
  721. package/src/modules/orders/components/sections/FormClientDetails.vue +2 -2
  722. package/src/modules/orders/components/sections/FormDelivery.vue +5 -3
  723. package/src/modules/orders/components/sections/FormPayment.vue +1 -1
  724. package/src/modules/orders/controllers/orders.controller.js +1 -1
  725. package/src/modules/orders/models/order.model.js +1 -1
  726. package/src/modules/orders/router/orders.router.js +1 -1
  727. package/src/modules/orders/routes/orders.routes.js +4 -2
  728. package/src/modules/orders/store/orders.js +15 -15
  729. package/src/modules/organizations/components/blocks/EditArray.vue +1 -3
  730. package/src/modules/organizations/components/pages/DepartmentEdit.vue +0 -1
  731. package/src/modules/organizations/router/departments.router.js +3 -3
  732. package/src/modules/organizations/router/members.router.js +6 -3
  733. package/src/modules/organizations/router/organizations.js +59 -12
  734. package/src/modules/products/components/pages/Products.vue +44 -8
  735. package/src/modules/products/products.client.js +0 -13
  736. package/src/modules/products/router/categories.router.js +24 -0
  737. package/src/modules/products/router/leftovers.router.js +38 -0
  738. package/src/modules/products/router/products.router.js +35 -0
  739. package/src/modules/spots/components/blocks/SpotMemberModify.vue +1 -1
  740. package/src/modules/spots/components/pages/SpotEdit.vue +0 -1
  741. package/src/styles/config.scss +4 -3
  742. package/src/modules/landing/components/sections/SliderFeatures.vue +0 -131
  743. package/src/modules/organizations/router/organizations.router.js +0 -54
  744. package/src/modules/organizations/router/products.router.js +0 -78
  745. package/src/modules/products/components/pages/ProductsBackoffice.vue +0 -90
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../ethereum-cryptography/esm/aes.cjs"),C=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),N=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),S=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const A=require("../../../web3-validator/lib/esm/validation/string.cjs"),_=require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const f=require("../../../web3-validator/lib/esm/validation/object.cjs"),w=require("./tx/constants.cjs"),j=require("./schemas.cjs"),D=require("./tx/transactionFactory.cjs"),n=require("../../../web3-utils/lib/esm/converters.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),P=require("../../../web3-utils/lib/esm/random.cjs"),z=require("../../../web3-utils/lib/esm/uuid.cjs"),T=require("../../../web3-utils/lib/esm/uint8array.cjs");var m=globalThis&&globalThis.__awaiter||function(r,s,e,t){function i(c){return c instanceof e?c:new e(function(a){a(c)})}return new(e||(e=Promise))(function(c,a){function y(l){try{o(t.next(l))}catch(d){a(d)}}function u(l){try{o(t.throw(l))}catch(d){a(d)}}function o(l){l.done?c(l.value):i(l.value).then(y,u)}o((t=t.apply(r,s||[])).next())})};const p=(r,s)=>{let e;if(!s&&typeof r=="string"&&A.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=T.isUint8Array(r)?r:n.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!s&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const s=A.isHexStrict(r)?r:n.utf8ToHex(r),e=n.hexToBytes(s),t=n.hexToBytes(n.fromUtf8(`Ethereum Signed Message:
2
- ${e.byteLength}`)),i=T.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,s)=>{const e=p(s),t=H(r),i=w.secp256k1.sign(t.substring(2),e),c=i.toCompactRawBytes(),a=i.r.toString(16).padStart(64,"0"),y=i.s.toString(16).padStart(64,"0"),u=i.recovery+27;return{message:r,messageHash:t,v:n.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${n.bytesToHex(c)}${u.toString(16)}`}},F=(r,s)=>m(void 0,void 0,void 0,function*(){const e=r.sign(n.hexToBytes(s));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new S.TransactionSigningError("Signer Error");const t=e.validate(!0);if(t.length>0){let a="Signer Error ";for(const y of t)a+=`${a} ${y}.`;throw new S.TransactionSigningError(a)}const i=n.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:n.bytesToHex(e.getMessageToSign(!0)),v:`0x${e.v.toString(16)}`,r:`0x${e.r.toString(16).padStart(64,"0")}`,s:`0x${e.s.toString(16).padStart(64,"0")}`,rawTransaction:i,transactionHash:n.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new S.UndefinedRawTransactionError;const s=D.TransactionFactory.fromSerializedData(n.hexToBytes(r));return n.toChecksumAddress(s.getSenderAddress().toString())},k=(r,s,e,t,i)=>{if(typeof r=="object"){const d=`${r.r}${r.s.slice(2)}${r.v.slice(2)}`;return k(r.messageHash,d,e)}if(typeof s=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${s.slice(2)}`;return k(r,d,i)}if(f.isNullish(s))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(s.substring(c),16);y>26&&(y-=27);const u=w.secp256k1.Signature.fromCompact(s.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return n.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const s=p(r),e=w.secp256k1.getPublicKey(s,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return n.toChecksumAddress(`0x${i}`)},V=(r,s)=>{const e=p(r);return`0x${n.bytesToHex(w.secp256k1.getPublicKey(e,s)).slice(4)}`},M=(r,s,e)=>m(void 0,void 0,void 0,function*(){var t,i,c,a,y,u,o;const l=p(r);let d;if(e!=null&&e.salt?d=typeof e.salt=="string"?n.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(A.isString(s)||T.isUint8Array(s)))throw new v.InvalidPasswordError;const E=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;let x;if(e!=null&&e.iv){if(x=typeof e.iv=="string"?n.hexToBytes(e.iv):e.iv,x.length!==16)throw new v.IVLengthError}else x=P.randomBytes(16);const K=(t=e==null?void 0:e.kdf)!==null&&t!==void 0?t:"scrypt";let b,h;if(K==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:n.bytesToHex(d).replace("0x",""),c:(c=e==null?void 0:e.c)!==null&&c!==void 0?c:262144,prf:"hmac-sha256"},h.c<1e3)throw new v.PBKDF2IterationsError;b=C.pbkdf2Sync(E,d,h.c,h.dklen,"sha256")}else if(K==="scrypt")h={n:(a=e==null?void 0:e.n)!==null&&a!==void 0?a:8192,r:(y=e==null?void 0:e.r)!==null&&y!==void 0?y:8,p:(u=e==null?void 0:e.p)!==null&&u!==void 0?u:1,dklen:(o=e==null?void 0:e.dklen)!==null&&o!==void 0?o:32,salt:n.bytesToHex(d).replace("0x","")},b=N.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield U.encrypt(l,b.slice(0,16),x,"aes-128-ctr"),R=n.bytesToHex($).slice(2),L=g.sha3Raw(T.uint8ArrayConcat(b.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:n.bytesToHex(x).replace("0x","")},cipher:"aes-128-ctr",kdf:K,kdfparams:h,mac:L}}}),B=(r,s)=>{const e=p(r,s);return{address:q(e),privateKey:n.bytesToHex(e),signTransaction:t=>{throw new S.TransactionSigningError("Do not have network access to sign the transaction")},sign:t=>I(typeof t=="string"?t:JSON.stringify(t),e),encrypt:(t,i)=>m(void 0,void 0,void 0,function*(){return M(e,t,i)})}},X=()=>{const r=w.secp256k1.utils.randomPrivateKey();return B(`${n.bytesToHex(r)}`)},G=(r,s,e)=>m(void 0,void 0,void 0,function*(){const t=typeof r=="object"?r:JSON.parse(e?r.toLowerCase():r);if(_.validator.validateJSONSchema(j.keyStoreSchema,t),t.version!==3)throw new v.KeyStoreVersionError;const i=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=N.scryptSync(i,l,o.n,o.p,o.r,o.dklen)}else if(t.crypto.kdf==="pbkdf2"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=C.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=n.hexToBytes(t.crypto.ciphertext);if(g.sha3Raw(T.uint8ArrayConcat(c.slice(16,32),a)).replace("0x","")!==t.crypto.mac)throw new v.KeyDerivationError;const u=yield U.decrypt(n.hexToBytes(t.crypto.ciphertext),c.slice(0,16),n.hexToBytes(t.crypto.cipherparams.iv));return B(u)});exports.create=X;exports.decrypt=G;exports.encrypt=M;exports.hashMessage=H;exports.parseAndValidatePrivateKey=p;exports.privateKeyToAccount=B;exports.privateKeyToAddress=q;exports.privateKeyToPublicKey=V;exports.recover=k;exports.recoverTransaction=J;exports.sign=I;exports.signTransaction=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../ethereum-cryptography/esm/aes.cjs"),C=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),N=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),b=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const A=require("../../../web3-validator/lib/esm/validation/string.cjs"),_=require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const f=require("../../../web3-validator/lib/esm/validation/object.cjs"),w=require("./tx/constants.cjs"),j=require("./schemas.cjs"),D=require("./tx/transactionFactory.cjs"),s=require("../../../web3-utils/lib/esm/converters.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),P=require("../../../web3-utils/lib/esm/random.cjs"),z=require("../../../web3-utils/lib/esm/uuid.cjs"),T=require("../../../web3-utils/lib/esm/uint8array.cjs");var m=function(r,n,e,t){function i(c){return c instanceof e?c:new e(function(a){a(c)})}return new(e||(e=Promise))(function(c,a){function y(l){try{o(t.next(l))}catch(d){a(d)}}function u(l){try{o(t.throw(l))}catch(d){a(d)}}function o(l){l.done?c(l.value):i(l.value).then(y,u)}o((t=t.apply(r,n||[])).next())})};const p=(r,n)=>{let e;if(!n&&typeof r=="string"&&A.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=T.isUint8Array(r)?r:s.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!n&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const n=A.isHexStrict(r)?r:s.utf8ToHex(r),e=s.hexToBytes(n),t=s.hexToBytes(s.fromUtf8(`Ethereum Signed Message:
2
+ ${e.byteLength}`)),i=T.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,n)=>{const e=p(n),t=H(r),i=w.secp256k1.sign(t.substring(2),e),c=i.toCompactRawBytes(),a=i.r.toString(16).padStart(64,"0"),y=i.s.toString(16).padStart(64,"0"),u=i.recovery+27;return{message:r,messageHash:t,v:s.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${s.bytesToHex(c)}${u.toString(16)}`}},F=(r,n)=>m(void 0,void 0,void 0,function*(){const e=r.sign(s.hexToBytes(n));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new b.TransactionSigningError("Signer Error");const t=e.validate(!0);if(t.length>0){let a="Signer Error ";for(const y of t)a+=`${a} ${y}.`;throw new b.TransactionSigningError(a)}const i=s.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:s.bytesToHex(e.getMessageToSign(!0)),v:`0x${e.v.toString(16)}`,r:`0x${e.r.toString(16).padStart(64,"0")}`,s:`0x${e.s.toString(16).padStart(64,"0")}`,rawTransaction:i,transactionHash:s.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new b.UndefinedRawTransactionError;const n=D.TransactionFactory.fromSerializedData(s.hexToBytes(r));return s.toChecksumAddress(n.getSenderAddress().toString())},k=(r,n,e,t,i)=>{if(typeof r=="object"){const d=`${r.r}${r.s.slice(2)}${r.v.slice(2)}`;return k(r.messageHash,d,e)}if(typeof n=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${n.slice(2)}`;return k(r,d,i)}if(f.isNullish(n))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(n.substring(c),16);y>26&&(y-=27);const u=w.secp256k1.Signature.fromCompact(n.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return s.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const n=p(r),e=w.secp256k1.getPublicKey(n,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return s.toChecksumAddress(`0x${i}`)},V=(r,n)=>{const e=p(r);return`0x${s.bytesToHex(w.secp256k1.getPublicKey(e,n)).slice(4)}`},M=(r,n,e)=>m(void 0,void 0,void 0,function*(){var t,i,c,a,y,u,o;const l=p(r);let d;if(e!=null&&e.salt?d=typeof e.salt=="string"?s.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(A.isString(n)||T.isUint8Array(n)))throw new v.InvalidPasswordError;const E=typeof n=="string"?s.hexToBytes(s.utf8ToHex(n)):n;let x;if(e!=null&&e.iv){if(x=typeof e.iv=="string"?s.hexToBytes(e.iv):e.iv,x.length!==16)throw new v.IVLengthError}else x=P.randomBytes(16);const K=(t=e==null?void 0:e.kdf)!==null&&t!==void 0?t:"scrypt";let S,h;if(K==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:s.bytesToHex(d).replace("0x",""),c:(c=e==null?void 0:e.c)!==null&&c!==void 0?c:262144,prf:"hmac-sha256"},h.c<1e3)throw new v.PBKDF2IterationsError;S=C.pbkdf2Sync(E,d,h.c,h.dklen,"sha256")}else if(K==="scrypt")h={n:(a=e==null?void 0:e.n)!==null&&a!==void 0?a:8192,r:(y=e==null?void 0:e.r)!==null&&y!==void 0?y:8,p:(u=e==null?void 0:e.p)!==null&&u!==void 0?u:1,dklen:(o=e==null?void 0:e.dklen)!==null&&o!==void 0?o:32,salt:s.bytesToHex(d).replace("0x","")},S=N.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield U.encrypt(l,S.slice(0,16),x,"aes-128-ctr"),R=s.bytesToHex($).slice(2),L=g.sha3Raw(T.uint8ArrayConcat(S.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:s.bytesToHex(x).replace("0x","")},cipher:"aes-128-ctr",kdf:K,kdfparams:h,mac:L}}}),B=(r,n)=>{const e=p(r,n);return{address:q(e),privateKey:s.bytesToHex(e),signTransaction:t=>{throw new b.TransactionSigningError("Do not have network access to sign the transaction")},sign:t=>I(typeof t=="string"?t:JSON.stringify(t),e),encrypt:(t,i)=>m(void 0,void 0,void 0,function*(){return M(e,t,i)})}},X=()=>{const r=w.secp256k1.utils.randomPrivateKey();return B(`${s.bytesToHex(r)}`)},G=(r,n,e)=>m(void 0,void 0,void 0,function*(){const t=typeof r=="object"?r:JSON.parse(e?r.toLowerCase():r);if(_.validator.validateJSONSchema(j.keyStoreSchema,t),t.version!==3)throw new v.KeyStoreVersionError;const i=typeof n=="string"?s.hexToBytes(s.utf8ToHex(n)):n;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?s.hexToBytes(o.salt):o.salt;c=N.scryptSync(i,l,o.n,o.p,o.r,o.dklen)}else if(t.crypto.kdf==="pbkdf2"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?s.hexToBytes(o.salt):o.salt;c=C.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=s.hexToBytes(t.crypto.ciphertext);if(g.sha3Raw(T.uint8ArrayConcat(c.slice(16,32),a)).replace("0x","")!==t.crypto.mac)throw new v.KeyDerivationError;const u=yield U.decrypt(s.hexToBytes(t.crypto.ciphertext),c.slice(0,16),s.hexToBytes(t.crypto.cipherparams.iv));return B(u)});exports.create=X;exports.decrypt=G;exports.encrypt=M;exports.hashMessage=H;exports.parseAndValidatePrivateKey=p;exports.privateKeyToAccount=B;exports.privateKeyToAddress=q;exports.privateKeyToPublicKey=V;exports.recover=k;exports.recoverTransaction=J;exports.sign=I;exports.signTransaction=F;
@@ -14,12 +14,12 @@ import { isNullish as p } from "../../../web3-validator/lib/esm/validation/objec
14
14
  import { secp256k1 as g } from "./tx/constants.js";
15
15
  import { keyStoreSchema as rr } from "./schemas.js";
16
16
  import { TransactionFactory as tr } from "./tx/transactionFactory.js";
17
- import { bytesToUint8Array as er, utf8ToHex as $, hexToBytes as y, fromUtf8 as nr, numberToHex as ir, bytesToHex as f, toChecksumAddress as k } from "../../../web3-utils/lib/esm/converters.js";
17
+ import { bytesToUint8Array as er, utf8ToHex as $, hexToBytes as y, fromUtf8 as nr, numberToHex as ir, bytesToHex as v, toChecksumAddress as k } from "../../../web3-utils/lib/esm/converters.js";
18
18
  import { sha3Raw as m } from "../../../web3-utils/lib/esm/hash.js";
19
19
  import { randomBytes as P } from "../../../web3-utils/lib/esm/random.js";
20
20
  import { uuidV4 as or } from "../../../web3-utils/lib/esm/uuid.js";
21
- import { isUint8Array as L, uint8ArrayConcat as T } from "../../../web3-utils/lib/esm/uint8array.js";
22
- var x = globalThis && globalThis.__awaiter || function(t, n, r, e) {
21
+ import { isUint8Array as L, uint8ArrayConcat as A } from "../../../web3-utils/lib/esm/uint8array.js";
22
+ var x = function(t, n, r, e) {
23
23
  function i(s) {
24
24
  return s instanceof r ? s : new r(function(c) {
25
25
  c(s);
@@ -33,7 +33,7 @@ var x = globalThis && globalThis.__awaiter || function(t, n, r, e) {
33
33
  c(d);
34
34
  }
35
35
  }
36
- function v(a) {
36
+ function f(a) {
37
37
  try {
38
38
  o(e.throw(a));
39
39
  } catch (d) {
@@ -41,7 +41,7 @@ var x = globalThis && globalThis.__awaiter || function(t, n, r, e) {
41
41
  }
42
42
  }
43
43
  function o(a) {
44
- a.done ? s(a.value) : i(a.value).then(l, v);
44
+ a.done ? s(a.value) : i(a.value).then(l, f);
45
45
  }
46
46
  o((e = e.apply(t, n || [])).next());
47
47
  });
@@ -60,17 +60,17 @@ const w = (t, n) => {
60
60
  return r;
61
61
  }, M = (t) => {
62
62
  const n = D(t) ? t : $(t), r = y(n), e = y(nr(`Ethereum Signed Message:
63
- ${r.byteLength}`)), i = T(e, r);
63
+ ${r.byteLength}`)), i = A(e, r);
64
64
  return m(i);
65
65
  }, sr = (t, n) => {
66
- const r = w(n), e = M(t), i = g.sign(e.substring(2), r), s = i.toCompactRawBytes(), c = i.r.toString(16).padStart(64, "0"), l = i.s.toString(16).padStart(64, "0"), v = i.recovery + 27;
66
+ const r = w(n), e = M(t), i = g.sign(e.substring(2), r), s = i.toCompactRawBytes(), c = i.r.toString(16).padStart(64, "0"), l = i.s.toString(16).padStart(64, "0"), f = i.recovery + 27;
67
67
  return {
68
68
  message: t,
69
69
  messageHash: e,
70
- v: ir(v),
70
+ v: ir(f),
71
71
  r: `0x${c}`,
72
72
  s: `0x${l}`,
73
- signature: `${f(s)}${v.toString(16)}`
73
+ signature: `${v(s)}${f.toString(16)}`
74
74
  };
75
75
  }, _r = (t, n) => x(void 0, void 0, void 0, function* () {
76
76
  const r = t.sign(y(n));
@@ -83,14 +83,14 @@ ${r.byteLength}`)), i = T(e, r);
83
83
  c += `${c} ${l}.`;
84
84
  throw new b(c);
85
85
  }
86
- const i = f(r.serialize()), s = m(i);
86
+ const i = v(r.serialize()), s = m(i);
87
87
  return {
88
- messageHash: f(r.getMessageToSign(!0)),
88
+ messageHash: v(r.getMessageToSign(!0)),
89
89
  v: `0x${r.v.toString(16)}`,
90
90
  r: `0x${r.r.toString(16).padStart(64, "0")}`,
91
91
  s: `0x${r.s.toString(16).padStart(64, "0")}`,
92
92
  rawTransaction: i,
93
- transactionHash: f(s)
93
+ transactionHash: v(s)
94
94
  };
95
95
  }), Hr = (t) => {
96
96
  if (p(t))
@@ -111,21 +111,21 @@ ${r.byteLength}`)), i = T(e, r);
111
111
  const s = 130, c = r ? t : M(t);
112
112
  let l = parseInt(n.substring(s), 16);
113
113
  l > 26 && (l -= 27);
114
- const v = g.Signature.fromCompact(n.slice(2, s)).addRecoveryBit(l).recoverPublicKey(c.replace("0x", "")).toRawBytes(!1), o = m(v.subarray(1));
114
+ const f = g.Signature.fromCompact(n.slice(2, s)).addRecoveryBit(l).recoverPublicKey(c.replace("0x", "")).toRawBytes(!1), o = m(f.subarray(1));
115
115
  return k(`0x${o.slice(-40)}`);
116
116
  }, N = (t) => {
117
117
  const n = w(t), r = g.getPublicKey(n, !1), i = m(r.slice(1)).slice(-40);
118
118
  return k(`0x${i}`);
119
119
  }, Pr = (t, n) => {
120
120
  const r = w(t);
121
- return `0x${f(g.getPublicKey(r, n)).slice(4)}`;
121
+ return `0x${v(g.getPublicKey(r, n)).slice(4)}`;
122
122
  }, cr = (t, n, r) => x(void 0, void 0, void 0, function* () {
123
- var e, i, s, c, l, v, o;
123
+ var e, i, s, c, l, f, o;
124
124
  const a = w(t);
125
125
  let d;
126
126
  if (r != null && r.salt ? d = typeof r.salt == "string" ? y(r.salt) : r.salt : d = P(32), !(O(n) || L(n)))
127
127
  throw new q();
128
- const A = typeof n == "string" ? y($(n)) : n;
128
+ const E = typeof n == "string" ? y($(n)) : n;
129
129
  let h;
130
130
  if (r != null && r.iv) {
131
131
  if (h = typeof r.iv == "string" ? y(r.iv) : r.iv, h.length !== 16)
@@ -137,23 +137,23 @@ ${r.byteLength}`)), i = T(e, r);
137
137
  if (K === "pbkdf2") {
138
138
  if (u = {
139
139
  dklen: (i = r == null ? void 0 : r.dklen) !== null && i !== void 0 ? i : 32,
140
- salt: f(d).replace("0x", ""),
140
+ salt: v(d).replace("0x", ""),
141
141
  c: (s = r == null ? void 0 : r.c) !== null && s !== void 0 ? s : 262144,
142
142
  prf: "hmac-sha256"
143
143
  }, u.c < 1e3)
144
144
  throw new Q();
145
- S = B(A, d, u.c, u.dklen, "sha256");
145
+ S = B(E, d, u.c, u.dklen, "sha256");
146
146
  } else if (K === "scrypt")
147
147
  u = {
148
148
  n: (c = r == null ? void 0 : r.n) !== null && c !== void 0 ? c : 8192,
149
149
  r: (l = r == null ? void 0 : r.r) !== null && l !== void 0 ? l : 8,
150
- p: (v = r == null ? void 0 : r.p) !== null && v !== void 0 ? v : 1,
150
+ p: (f = r == null ? void 0 : r.p) !== null && f !== void 0 ? f : 1,
151
151
  dklen: (o = r == null ? void 0 : r.dklen) !== null && o !== void 0 ? o : 32,
152
- salt: f(d).replace("0x", "")
153
- }, S = I(A, d, u.n, u.p, u.r, u.dklen);
152
+ salt: v(d).replace("0x", "")
153
+ }, S = I(E, d, u.n, u.p, u.r, u.dklen);
154
154
  else
155
155
  throw new C();
156
- const E = yield F(a, S.slice(0, 16), h, "aes-128-ctr"), z = f(E).slice(2), J = m(T(S.slice(16, 32), E)).replace("0x", "");
156
+ const T = yield F(a, S.slice(0, 16), h, "aes-128-ctr"), z = v(T).slice(2), J = m(A(S.slice(16, 32), T)).replace("0x", "");
157
157
  return {
158
158
  version: 3,
159
159
  id: or(),
@@ -161,7 +161,7 @@ ${r.byteLength}`)), i = T(e, r);
161
161
  crypto: {
162
162
  ciphertext: z,
163
163
  cipherparams: {
164
- iv: f(h).replace("0x", "")
164
+ iv: v(h).replace("0x", "")
165
165
  },
166
166
  cipher: "aes-128-ctr",
167
167
  kdf: K,
@@ -173,7 +173,7 @@ ${r.byteLength}`)), i = T(e, r);
173
173
  const r = w(t, n);
174
174
  return {
175
175
  address: N(r),
176
- privateKey: f(r),
176
+ privateKey: v(r),
177
177
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
178
178
  signTransaction: (e) => {
179
179
  throw new b("Do not have network access to sign the transaction");
@@ -185,7 +185,7 @@ ${r.byteLength}`)), i = T(e, r);
185
185
  };
186
186
  }, Ur = () => {
187
187
  const t = g.utils.randomPrivateKey();
188
- return j(`${f(t)}`);
188
+ return j(`${v(t)}`);
189
189
  }, Br = (t, n, r) => x(void 0, void 0, void 0, function* () {
190
190
  const e = typeof t == "object" ? t : JSON.parse(r ? t.toLowerCase() : t);
191
191
  if (H.validateJSONSchema(rr, e), e.version !== 3)
@@ -202,10 +202,10 @@ ${r.byteLength}`)), i = T(e, r);
202
202
  } else
203
203
  throw new C();
204
204
  const c = y(e.crypto.ciphertext);
205
- if (m(T(s.slice(16, 32), c)).replace("0x", "") !== e.crypto.mac)
205
+ if (m(A(s.slice(16, 32), c)).replace("0x", "") !== e.crypto.mac)
206
206
  throw new Y();
207
- const v = yield R(y(e.crypto.ciphertext), s.slice(0, 16), y(e.crypto.cipherparams.iv));
208
- return j(v);
207
+ const f = yield R(y(e.crypto.ciphertext), s.slice(0, 16), y(e.crypto.cipherparams.iv));
208
+ return j(f);
209
209
  });
210
210
  export {
211
211
  Ur as create,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const g=require("../../../web3-types/lib/esm/web3_base_wallet.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const c=require("../../../web3-validator/lib/esm/validation/object.cjs");var n=globalThis&&globalThis.__awaiter||function(h,e,t,r){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function f(o){try{l(r.next(o))}catch(d){a(d)}}function p(o){try{l(r.throw(o))}catch(d){a(d)}}function l(o){o.done?i(o.value):s(o.value).then(f,p)}l((r=r.apply(h,e||[])).next())})};class u extends g.Web3BaseWallet{constructor(){super(...arguments),this._addressMap=new Map,this._defaultKeyName="web3js_wallet"}static getStorage(){let e;try{e=window.localStorage;const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch(t){return t&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&!c.isNullish(e)&&e.length!==0?e:void 0}}create(e){for(let t=0;t<e;t+=1)this.add(this._accountProvider.create());return this}add(e){var t;if(typeof e=="string")return this.add(this._accountProvider.privateKeyToAccount(e));let r=this.length;return this.get(e.address)&&(console.warn(`Account ${e.address.toLowerCase()} already exists.`),r=(t=this._addressMap.get(e.address.toLowerCase()))!==null&&t!==void 0?t:r),this._addressMap.set(e.address.toLowerCase(),r),this[r]=e,this}get(e){if(typeof e=="string"){const t=this._addressMap.get(e.toLowerCase());return c.isNullish(t)?void 0:this[t]}return this[e]}remove(e){if(typeof e=="string"){const t=this._addressMap.get(e.toLowerCase());return c.isNullish(t)?!1:(this._addressMap.delete(e.toLowerCase()),this.splice(t,1),!0)}return this[e]?(this.splice(e,1),!0):!1}clear(){return this._addressMap.clear(),this.length=0,this}encrypt(e,t){return n(this,void 0,void 0,function*(){return Promise.all(this.map(r=>n(this,void 0,void 0,function*(){return r.encrypt(e,t)})))})}decrypt(e,t,r){return n(this,void 0,void 0,function*(){const s=yield Promise.all(e.map(i=>n(this,void 0,void 0,function*(){return this._accountProvider.decrypt(i,t,r)})));for(const i of s)this.add(i);return this})}save(e,t){return n(this,void 0,void 0,function*(){const r=u.getStorage();if(!r)throw new Error("Local storage not available.");return r.setItem(t??this._defaultKeyName,JSON.stringify(yield this.encrypt(e))),!0})}load(e,t){return n(this,void 0,void 0,function*(){const r=u.getStorage();if(!r)throw new Error("Local storage not available.");const s=r.getItem(t??this._defaultKeyName);return s&&(yield this.decrypt(JSON.parse(s)||[],e)),this})}}exports.Wallet=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const _=require("../../../web3-types/lib/esm/web3_base_wallet.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const l=require("../../../web3-validator/lib/esm/validation/object.cjs");var n=function(h,e,t,r){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function f(o){try{d(r.next(o))}catch(c){a(c)}}function p(o){try{d(r.throw(o))}catch(c){a(c)}}function d(o){o.done?i(o.value):s(o.value).then(f,p)}d((r=r.apply(h,e||[])).next())})};class u extends _.Web3BaseWallet{constructor(){super(...arguments),this._addressMap=new Map,this._defaultKeyName="web3js_wallet"}static getStorage(){let e;try{e=window.localStorage;const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch(t){return t&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&!l.isNullish(e)&&e.length!==0?e:void 0}}create(e){for(let t=0;t<e;t+=1)this.add(this._accountProvider.create());return this}add(e){var t;if(typeof e=="string")return this.add(this._accountProvider.privateKeyToAccount(e));let r=this.length;return this.get(e.address)&&(console.warn(`Account ${e.address.toLowerCase()} already exists.`),r=(t=this._addressMap.get(e.address.toLowerCase()))!==null&&t!==void 0?t:r),this._addressMap.set(e.address.toLowerCase(),r),this[r]=e,this}get(e){if(typeof e=="string"){const t=this._addressMap.get(e.toLowerCase());return l.isNullish(t)?void 0:this[t]}return this[e]}remove(e){if(typeof e=="string"){const t=this._addressMap.get(e.toLowerCase());return l.isNullish(t)?!1:(this._addressMap.delete(e.toLowerCase()),this.splice(t,1),!0)}return this[e]?(this.splice(e,1),!0):!1}clear(){return this._addressMap.clear(),this.length=0,this}encrypt(e,t){return n(this,void 0,void 0,function*(){return Promise.all(this.map(r=>n(this,void 0,void 0,function*(){return r.encrypt(e,t)})))})}decrypt(e,t,r){return n(this,void 0,void 0,function*(){const s=yield Promise.all(e.map(i=>n(this,void 0,void 0,function*(){return this._accountProvider.decrypt(i,t,r)})));for(const i of s)this.add(i);return this})}save(e,t){return n(this,void 0,void 0,function*(){const r=u.getStorage();if(!r)throw new Error("Local storage not available.");return r.setItem(t??this._defaultKeyName,JSON.stringify(yield this.encrypt(e))),!0})}load(e,t){return n(this,void 0,void 0,function*(){const r=u.getStorage();if(!r)throw new Error("Local storage not available.");const s=r.getItem(t??this._defaultKeyName);return s&&(yield this.decrypt(JSON.parse(s)||[],e)),this})}}exports.Wallet=u;
@@ -1,12 +1,12 @@
1
1
  import "../../../web3-types/lib/esm/data_format_types.js";
2
2
  import "../../../web3-types/lib/esm/eth_types.js";
3
3
  import "../../../web3-types/lib/esm/web3_base_provider.js";
4
- import { Web3BaseWallet as g } from "../../../web3-types/lib/esm/web3_base_wallet.js";
4
+ import { Web3BaseWallet as v } from "../../../web3-types/lib/esm/web3_base_wallet.js";
5
5
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
6
6
  import "../../../web3-validator/lib/esm/formats.js";
7
7
  import "../../../web3-validator/lib/esm/default_validator.js";
8
8
  import { isNullish as c } from "../../../web3-validator/lib/esm/validation/object.js";
9
- var n = globalThis && globalThis.__awaiter || function(l, e, t, r) {
9
+ var n = function(l, e, t, r) {
10
10
  function o(i) {
11
11
  return i instanceof t ? i : new t(function(a) {
12
12
  a(i);
@@ -33,7 +33,7 @@ var n = globalThis && globalThis.__awaiter || function(l, e, t, r) {
33
33
  d((r = r.apply(l, e || [])).next());
34
34
  });
35
35
  };
36
- class h extends g {
36
+ class h extends v {
37
37
  constructor() {
38
38
  super(...arguments), this._addressMap = /* @__PURE__ */ new Map(), this._defaultKeyName = "web3js_wallet";
39
39
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const D=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const v=require("../../../web3-types/lib/esm/data_format_types.cjs"),G=require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const A=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),N=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");const V=require("../../../web3-validator/lib/esm/errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const H=require("../../../web3-validator/lib/esm/utils.cjs"),U=require("../../../web3-validator/lib/esm/default_validator.cjs"),I=require("../../../web3-validator/lib/esm/validation/object.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const $=require("../../../web3-eth/lib/esm/utils/decoding.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");const w=require("../../../web3-eth/lib/esm/constants.cjs"),T=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");const P=require("../../../web3-eth/lib/esm/web3_subscriptions.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const j=require("../../../web3-eth-abi/lib/esm/utils.cjs"),k=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),J=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");const L=require("../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),F=require("./encoding.cjs"),x=require("./log_subscription.cjs"),m=require("./utils.cjs"),b=require("../../../web3-utils/lib/esm/formatter.cjs"),W=require("../../../web3-utils/lib/esm/validation.cjs"),O=require("../../../web3-utils/lib/esm/hash.cjs"),K=require("../../../web3-utils/lib/esm/converters.cjs");var E=globalThis&&globalThis.__awaiter||function(B,t,n,s){function c(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function r(d){try{e(s.next(d))}catch(h){i(h)}}function a(d){try{e(s.throw(d))}catch(h){i(h)}}function e(d){d.done?o(d.value):c(d.value).then(r,a)}e((s=s.apply(B,t||[])).next())})};const z={logs:x.LogsSubscription,newHeads:P.NewHeadsSubscription,newBlockHeaders:P.NewHeadsSubscription};class M extends D.Web3Context{constructor(t,n,s,c,o){var i,r,a;const e=W.isContractInitOptions(n)?n:W.isContractInitOptions(s)?s:void 0;let d;m.isWeb3ContractContext(n)?d=n:m.isWeb3ContractContext(s)?d=s:d=c;let h;if(typeof n=="object"&&"provider"in n?h=n.provider:typeof s=="object"&&"provider"in s?h=s.provider:typeof c=="object"&&"provider"in c?h=c.provider:h=M.givenProvider,super(Object.assign(Object.assign({},d),{provider:h,registeredSubscriptions:z})),this.syncWithContext=!1,this._functions={},d!=null&&d.wallet&&(this._wallet=d.wallet),d!=null&&d.accountProvider&&(this._accountProvider=d.accountProvider),!I.isNullish(e)&&!I.isNullish(e.data)&&!I.isNullish(e.input)&&this.config.contractDataInputFill!=="both")throw new A.ContractTransactionDataAndInputError({data:e.data,input:e.input});this._overloadedMethodAbis=new Map;const u=b.isDataFormat(c)?c:b.isDataFormat(s)?s:o??v.DEFAULT_RETURN_FORMAT,l=typeof n=="string"?n:void 0;this.config.contractDataInputFill=(i=e==null?void 0:e.dataInputFill)!==null&&i!==void 0?i:this.config.contractDataInputFill,this._parseAndSetJsonInterface(t,u),I.isNullish(l)||this._parseAndSetAddress(l,u),this.options={address:l,jsonInterface:this._jsonInterface,gas:(r=e==null?void 0:e.gas)!==null&&r!==void 0?r:e==null?void 0:e.gasLimit,gasPrice:e==null?void 0:e.gasPrice,from:e==null?void 0:e.from,input:e==null?void 0:e.input,data:e==null?void 0:e.data},this.syncWithContext=(a=e==null?void 0:e.syncWithContext)!==null&&a!==void 0?a:!1,d instanceof D.Web3Context&&this.subscribeToContextEvents(d),Object.defineProperty(this.options,"address",{set:f=>this._parseAndSetAddress(f,u),get:()=>this._address}),Object.defineProperty(this.options,"jsonInterface",{set:f=>this._parseAndSetJsonInterface(f,u),get:()=>this._jsonInterface}),d instanceof D.Web3Context&&d.on(R.Web3ConfigEvent.CONFIG_CHANGE,f=>{this.setConfig({[f.name]:f.newValue})})}get events(){return this._events}get methods(){return this._methods}clone(){let t;return this.options.address?t=new M([...this._jsonInterface,...this._errorsInterface],this.options.address,{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()):t=new M([...this._jsonInterface,...this._errorsInterface],{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()),this.context&&t.subscribeToContextEvents(this.context),t}deploy(t){var n,s,c;let o=this._jsonInterface.find(h=>h.type==="constructor");o||(o={type:"constructor",stateMutability:""});const i=b.format({format:"bytes"},(n=t==null?void 0:t.input)!==null&&n!==void 0?n:this.options.input,v.DEFAULT_RETURN_FORMAT),r=b.format({format:"bytes"},(s=t==null?void 0:t.data)!==null&&s!==void 0?s:this.options.data,v.DEFAULT_RETURN_FORMAT);if((!i||i.trim()==="0x")&&(!r||r.trim()==="0x"))throw new A.Web3ContractError("contract creation without any data provided.");const a=(c=t==null?void 0:t.arguments)!==null&&c!==void 0?c:[],e=Object.assign(Object.assign({},this.options),{input:i,data:r}),d=i??r;return{arguments:a,send:h=>{const u=Object.assign({},h);return this._contractMethodDeploySend(o,a,u,e)},estimateGas:(h,u=v.DEFAULT_RETURN_FORMAT)=>E(this,void 0,void 0,function*(){const l=Object.assign({},h);return this._contractMethodEstimateGas({abi:o,params:a,returnFormat:u,options:l,contractOptions:e})}),encodeABI:()=>F.encodeMethodABI(o,a,b.format({format:"bytes"},d,v.DEFAULT_RETURN_FORMAT))}}getPastEvents(t,n,s){var c;return E(this,void 0,void 0,function*(){const o=typeof t=="string"?t:w.ALL_EVENTS,i=typeof t!="string"&&!b.isDataFormat(t)?t:b.isDataFormat(n)?{}:n,r=b.isDataFormat(t)?t:b.isDataFormat(n)?n:s??v.DEFAULT_RETURN_FORMAT,a=o==="allEvents"||o===w.ALL_EVENTS?w.ALL_EVENTS_ABI:this._jsonInterface.find(g=>"name"in g&&g.name===o);if(!a)throw new A.Web3ContractError(`Event ${o} not found.`);const{fromBlock:e,toBlock:d,topics:h,address:u}=F.encodeEventABI(this.options,a,i??{}),l=yield T.getLogs(this,{fromBlock:e,toBlock:d,topics:h,address:u},r),f=l?l.map(g=>typeof g=="string"?g:$.decodeEventABI(a,g,this._jsonInterface,r)):[],_=(c=i==null?void 0:i.filter)!==null&&c!==void 0?c:{},C=Object.keys(_);return C.length>0?f.filter(g=>typeof g=="string"?!0:C.every(p=>{var q;if(Array.isArray(_[p]))return _[p].some(y=>String(g.returnValues[p]).toUpperCase()===String(y).toUpperCase());const S=(q=a.inputs)===null||q===void 0?void 0:q.filter(y=>y.name===p)[0];return S!=null&&S.indexed&&S.type==="string"&&O.keccak256Wrapper(_[p])===String(g.returnValues[p])?!0:String(g.returnValues[p]).toUpperCase()===String(_[p]).toUpperCase()})):f})}_parseAndSetAddress(t,n=v.DEFAULT_RETURN_FORMAT){this._address=t&&K.toChecksumAddress(b.format({format:"address"},t,n))}_parseAndSetJsonInterface(t,n=v.DEFAULT_RETURN_FORMAT){var s,c,o,i,r;this._functions={},this._methods={},this._events={};let a=[];const e=t.filter(h=>h.type!=="error"),d=t.filter(h=>j.isAbiErrorFragment(h));for(const h of e){const u=Object.assign(Object.assign({},h),{signature:""});if(j.isAbiFunctionFragment(u)){const l=j.jsonInterfaceMethodToString(u),f=J.encodeFunctionSignature(l);u.signature=f,u.constant=(c=(s=u.stateMutability==="view")!==null&&s!==void 0?s:u.stateMutability==="pure")!==null&&c!==void 0?c:u.constant,u.payable=(o=u.stateMutability==="payable")!==null&&o!==void 0?o:u.payable,this._overloadedMethodAbis.set(u.name,[...(i=this._overloadedMethodAbis.get(u.name))!==null&&i!==void 0?i:[],u]);const _=(r=this._overloadedMethodAbis.get(u.name))!==null&&r!==void 0?r:[],C=this._createContractMethod(_,d);this._functions[l]={signature:f,method:C},this._methods[u.name]=this._functions[l].method,this._methods[l]=this._functions[l].method,this._methods[f]=this._functions[l].method}else if(j.isAbiEventFragment(u)){const l=j.jsonInterfaceMethodToString(u),f=k.encodeEventSignature(l),_=this._createContractEvent(u,n);u.signature=f,(!(l in this._events)||u.name==="bound")&&(this._events[l]=_),this._events[u.name]=_,this._events[f]=_}a=[...a,u]}this._events.allEvents=this._createContractEvent(w.ALL_EVENTS_ABI,n),this._jsonInterface=[...a],this._errorsInterface=d}_getAbiParams(t,n){var s;try{return H.transformJsonDataToAbiFormat((s=t.inputs)!==null&&s!==void 0?s:[],n)}catch(c){throw new A.Web3ContractError(`Invalid parameters for method ${t.name}: ${c.message}`)}}_createContractMethod(t,n){const s=t[t.length-1];return(...c)=>{var o,i;let r;const a=(o=this._overloadedMethodAbis.get(s.name))!==null&&o!==void 0?o:[];let e=a[0];const d=n,h=a.filter(l=>{var f;return((f=l.inputs)!==null&&f!==void 0?f:[]).length===c.length});if(a.length===1||h.length===0)r=this._getAbiParams(e,c),U.validator.validate((i=s.inputs)!==null&&i!==void 0?i:[],r);else{const l=[];for(const f of h)try{r=this._getAbiParams(f,c),U.validator.validate(f.inputs,r),e=f;break}catch(_){l.push(_)}if(l.length===h.length)throw new V.Web3ValidatorError(l)}const u={arguments:r,call:(l,f)=>E(this,void 0,void 0,function*(){return this._contractMethodCall(e,r,d,l,f)}),send:l=>this._contractMethodSend(e,r,d,l),estimateGas:(l,f=v.DEFAULT_RETURN_FORMAT)=>E(this,void 0,void 0,function*(){return this._contractMethodEstimateGas({abi:e,params:r,returnFormat:f,options:l})}),encodeABI:()=>F.encodeMethodABI(e,r),createAccessList:(l,f)=>E(this,void 0,void 0,function*(){return this._contractMethodCreateAccessList(e,r,d,l,f)})};return e.stateMutability==="payable",u}}_contractMethodCall(t,n,s,c,o){var i;return E(this,void 0,void 0,function*(){const r=m.getEthTxCallParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(i=this.options.from)!==null&&i!==void 0?i:this.config.defaultAccount})});try{const a=yield T.call(this,r,o,v.DEFAULT_RETURN_FORMAT);return F.decodeMethodReturn(t,a)}catch(a){throw a instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,a.cause),a}})}_contractMethodCreateAccessList(t,n,s,c,o){var i;return E(this,void 0,void 0,function*(){const r=m.getCreateAccessListParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(i=this.options.from)!==null&&i!==void 0?i:this.config.defaultAccount})});try{return T.createAccessList(this,r,o,v.DEFAULT_RETURN_FORMAT)}catch(a){throw a instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,a.cause),a}})}_contractMethodSend(t,n,s,c,o){var i,r;let a=o??this.options;a=Object.assign(Object.assign({},a),{input:void 0,from:(r=(i=a.from)!==null&&i!==void 0?i:this.defaultAccount)!==null&&r!==void 0?r:void 0});const e=m.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:a}),d=T.sendTransaction(this,e,v.DEFAULT_RETURN_FORMAT,{checkRevertBeforeSending:!1,contractAbi:this._jsonInterface});return d.on("error",h=>{h instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,h.cause)}),d}_contractMethodDeploySend(t,n,s,c){var o,i;let r=c??this.options;r=Object.assign(Object.assign({},r),{from:(i=(o=r.from)!==null&&o!==void 0?o:this.defaultAccount)!==null&&i!==void 0?i:void 0});const a=m.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},s),{dataInputFill:this.config.contractDataInputFill}),contractOptions:r});return T.sendTransaction(this,a,v.DEFAULT_RETURN_FORMAT,{transactionResolver:e=>{if(e.status===BigInt(0))throw new A.Web3ContractError("code couldn't be stored",e);const d=this.clone();return d.options.address=e.contractAddress,d},contractAbi:this._jsonInterface,checkRevertBeforeSending:!1})}_contractMethodEstimateGas({abi:t,params:n,returnFormat:s,options:c,contractOptions:o}){return E(this,void 0,void 0,function*(){const i=m.getEstimateGasParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:o??this.options});return T.estimateGas(this,i,G.BlockTags.LATEST,s)})}_createContractEvent(t,n=v.DEFAULT_RETURN_FORMAT){return(...s)=>{var c;const{topics:o,fromBlock:i}=F.encodeEventABI(this.options,t,s[0]),r=new x.LogsSubscription({address:this.options.address,topics:o,abi:t,jsonInterface:this._jsonInterface},{subscriptionManager:this.subscriptionManager,returnFormat:n});return I.isNullish(i)||this.getPastEvents(t.name,{fromBlock:i,topics:o},n).then(a=>{a&&a.forEach(e=>r.emit("data",e))}).catch(a=>{r.emit("error",new N.SubscriptionError("Failed to get past events.",a))}),(c=this.subscriptionManager)===null||c===void 0||c.addSubscription(r).catch(a=>{r.emit("error",new N.SubscriptionError("Failed to subscribe.",a))}),r}}subscribeToContextEvents(t){const n=this;this.context=t,n.syncWithContext&&t.on(R.Web3ConfigEvent.CONFIG_CHANGE,s=>{n.setConfig({[s.name]:s.newValue})})}}exports.Contract=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const D=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const v=require("../../../web3-types/lib/esm/data_format_types.cjs"),G=require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const A=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),N=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");const V=require("../../../web3-validator/lib/esm/errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const H=require("../../../web3-validator/lib/esm/utils.cjs"),U=require("../../../web3-validator/lib/esm/default_validator.cjs"),I=require("../../../web3-validator/lib/esm/validation/object.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const $=require("../../../web3-eth/lib/esm/utils/decoding.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");const w=require("../../../web3-eth/lib/esm/constants.cjs"),T=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");const P=require("../../../web3-eth/lib/esm/web3_subscriptions.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const j=require("../../../web3-eth-abi/lib/esm/utils.cjs"),k=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),J=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");const L=require("../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),F=require("./encoding.cjs"),x=require("./log_subscription.cjs"),m=require("./utils.cjs"),b=require("../../../web3-utils/lib/esm/formatter.cjs"),W=require("../../../web3-utils/lib/esm/validation.cjs"),O=require("../../../web3-utils/lib/esm/hash.cjs"),K=require("../../../web3-utils/lib/esm/converters.cjs");var E=function(B,t,n,s){function c(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function r(d){try{e(s.next(d))}catch(h){i(h)}}function a(d){try{e(s.throw(d))}catch(h){i(h)}}function e(d){d.done?o(d.value):c(d.value).then(r,a)}e((s=s.apply(B,t||[])).next())})};const z={logs:x.LogsSubscription,newHeads:P.NewHeadsSubscription,newBlockHeaders:P.NewHeadsSubscription};class M extends D.Web3Context{constructor(t,n,s,c,o){var i,r,a;const e=W.isContractInitOptions(n)?n:W.isContractInitOptions(s)?s:void 0;let d;m.isWeb3ContractContext(n)?d=n:m.isWeb3ContractContext(s)?d=s:d=c;let h;if(typeof n=="object"&&"provider"in n?h=n.provider:typeof s=="object"&&"provider"in s?h=s.provider:typeof c=="object"&&"provider"in c?h=c.provider:h=M.givenProvider,super(Object.assign(Object.assign({},d),{provider:h,registeredSubscriptions:z})),this.syncWithContext=!1,this._functions={},d!=null&&d.wallet&&(this._wallet=d.wallet),d!=null&&d.accountProvider&&(this._accountProvider=d.accountProvider),!I.isNullish(e)&&!I.isNullish(e.data)&&!I.isNullish(e.input)&&this.config.contractDataInputFill!=="both")throw new A.ContractTransactionDataAndInputError({data:e.data,input:e.input});this._overloadedMethodAbis=new Map;const u=b.isDataFormat(c)?c:b.isDataFormat(s)?s:o??v.DEFAULT_RETURN_FORMAT,l=typeof n=="string"?n:void 0;this.config.contractDataInputFill=(i=e==null?void 0:e.dataInputFill)!==null&&i!==void 0?i:this.config.contractDataInputFill,this._parseAndSetJsonInterface(t,u),I.isNullish(l)||this._parseAndSetAddress(l,u),this.options={address:l,jsonInterface:this._jsonInterface,gas:(r=e==null?void 0:e.gas)!==null&&r!==void 0?r:e==null?void 0:e.gasLimit,gasPrice:e==null?void 0:e.gasPrice,from:e==null?void 0:e.from,input:e==null?void 0:e.input,data:e==null?void 0:e.data},this.syncWithContext=(a=e==null?void 0:e.syncWithContext)!==null&&a!==void 0?a:!1,d instanceof D.Web3Context&&this.subscribeToContextEvents(d),Object.defineProperty(this.options,"address",{set:f=>this._parseAndSetAddress(f,u),get:()=>this._address}),Object.defineProperty(this.options,"jsonInterface",{set:f=>this._parseAndSetJsonInterface(f,u),get:()=>this._jsonInterface}),d instanceof D.Web3Context&&d.on(R.Web3ConfigEvent.CONFIG_CHANGE,f=>{this.setConfig({[f.name]:f.newValue})})}get events(){return this._events}get methods(){return this._methods}clone(){let t;return this.options.address?t=new M([...this._jsonInterface,...this._errorsInterface],this.options.address,{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()):t=new M([...this._jsonInterface,...this._errorsInterface],{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()),this.context&&t.subscribeToContextEvents(this.context),t}deploy(t){var n,s,c;let o=this._jsonInterface.find(h=>h.type==="constructor");o||(o={type:"constructor",stateMutability:""});const i=b.format({format:"bytes"},(n=t==null?void 0:t.input)!==null&&n!==void 0?n:this.options.input,v.DEFAULT_RETURN_FORMAT),r=b.format({format:"bytes"},(s=t==null?void 0:t.data)!==null&&s!==void 0?s:this.options.data,v.DEFAULT_RETURN_FORMAT);if((!i||i.trim()==="0x")&&(!r||r.trim()==="0x"))throw new A.Web3ContractError("contract creation without any data provided.");const a=(c=t==null?void 0:t.arguments)!==null&&c!==void 0?c:[],e=Object.assign(Object.assign({},this.options),{input:i,data:r}),d=i??r;return{arguments:a,send:h=>{const u=Object.assign({},h);return this._contractMethodDeploySend(o,a,u,e)},estimateGas:(h,u=v.DEFAULT_RETURN_FORMAT)=>E(this,void 0,void 0,function*(){const l=Object.assign({},h);return this._contractMethodEstimateGas({abi:o,params:a,returnFormat:u,options:l,contractOptions:e})}),encodeABI:()=>F.encodeMethodABI(o,a,b.format({format:"bytes"},d,v.DEFAULT_RETURN_FORMAT))}}getPastEvents(t,n,s){var c;return E(this,void 0,void 0,function*(){const o=typeof t=="string"?t:w.ALL_EVENTS,i=typeof t!="string"&&!b.isDataFormat(t)?t:b.isDataFormat(n)?{}:n,r=b.isDataFormat(t)?t:b.isDataFormat(n)?n:s??v.DEFAULT_RETURN_FORMAT,a=o==="allEvents"||o===w.ALL_EVENTS?w.ALL_EVENTS_ABI:this._jsonInterface.find(g=>"name"in g&&g.name===o);if(!a)throw new A.Web3ContractError(`Event ${o} not found.`);const{fromBlock:e,toBlock:d,topics:h,address:u}=F.encodeEventABI(this.options,a,i??{}),l=yield T.getLogs(this,{fromBlock:e,toBlock:d,topics:h,address:u},r),f=l?l.map(g=>typeof g=="string"?g:$.decodeEventABI(a,g,this._jsonInterface,r)):[],_=(c=i==null?void 0:i.filter)!==null&&c!==void 0?c:{},C=Object.keys(_);return C.length>0?f.filter(g=>typeof g=="string"?!0:C.every(p=>{var q;if(Array.isArray(_[p]))return _[p].some(y=>String(g.returnValues[p]).toUpperCase()===String(y).toUpperCase());const S=(q=a.inputs)===null||q===void 0?void 0:q.filter(y=>y.name===p)[0];return S!=null&&S.indexed&&S.type==="string"&&O.keccak256Wrapper(_[p])===String(g.returnValues[p])?!0:String(g.returnValues[p]).toUpperCase()===String(_[p]).toUpperCase()})):f})}_parseAndSetAddress(t,n=v.DEFAULT_RETURN_FORMAT){this._address=t&&K.toChecksumAddress(b.format({format:"address"},t,n))}_parseAndSetJsonInterface(t,n=v.DEFAULT_RETURN_FORMAT){var s,c,o,i,r;this._functions={},this._methods={},this._events={};let a=[];const e=t.filter(h=>h.type!=="error"),d=t.filter(h=>j.isAbiErrorFragment(h));for(const h of e){const u=Object.assign(Object.assign({},h),{signature:""});if(j.isAbiFunctionFragment(u)){const l=j.jsonInterfaceMethodToString(u),f=J.encodeFunctionSignature(l);u.signature=f,u.constant=(c=(s=u.stateMutability==="view")!==null&&s!==void 0?s:u.stateMutability==="pure")!==null&&c!==void 0?c:u.constant,u.payable=(o=u.stateMutability==="payable")!==null&&o!==void 0?o:u.payable,this._overloadedMethodAbis.set(u.name,[...(i=this._overloadedMethodAbis.get(u.name))!==null&&i!==void 0?i:[],u]);const _=(r=this._overloadedMethodAbis.get(u.name))!==null&&r!==void 0?r:[],C=this._createContractMethod(_,d);this._functions[l]={signature:f,method:C},this._methods[u.name]=this._functions[l].method,this._methods[l]=this._functions[l].method,this._methods[f]=this._functions[l].method}else if(j.isAbiEventFragment(u)){const l=j.jsonInterfaceMethodToString(u),f=k.encodeEventSignature(l),_=this._createContractEvent(u,n);u.signature=f,(!(l in this._events)||u.name==="bound")&&(this._events[l]=_),this._events[u.name]=_,this._events[f]=_}a=[...a,u]}this._events.allEvents=this._createContractEvent(w.ALL_EVENTS_ABI,n),this._jsonInterface=[...a],this._errorsInterface=d}_getAbiParams(t,n){var s;try{return H.transformJsonDataToAbiFormat((s=t.inputs)!==null&&s!==void 0?s:[],n)}catch(c){throw new A.Web3ContractError(`Invalid parameters for method ${t.name}: ${c.message}`)}}_createContractMethod(t,n){const s=t[t.length-1];return(...c)=>{var o,i;let r;const a=(o=this._overloadedMethodAbis.get(s.name))!==null&&o!==void 0?o:[];let e=a[0];const d=n,h=a.filter(l=>{var f;return((f=l.inputs)!==null&&f!==void 0?f:[]).length===c.length});if(a.length===1||h.length===0)r=this._getAbiParams(e,c),U.validator.validate((i=s.inputs)!==null&&i!==void 0?i:[],r);else{const l=[];for(const f of h)try{r=this._getAbiParams(f,c),U.validator.validate(f.inputs,r),e=f;break}catch(_){l.push(_)}if(l.length===h.length)throw new V.Web3ValidatorError(l)}const u={arguments:r,call:(l,f)=>E(this,void 0,void 0,function*(){return this._contractMethodCall(e,r,d,l,f)}),send:l=>this._contractMethodSend(e,r,d,l),estimateGas:(l,f=v.DEFAULT_RETURN_FORMAT)=>E(this,void 0,void 0,function*(){return this._contractMethodEstimateGas({abi:e,params:r,returnFormat:f,options:l})}),encodeABI:()=>F.encodeMethodABI(e,r),createAccessList:(l,f)=>E(this,void 0,void 0,function*(){return this._contractMethodCreateAccessList(e,r,d,l,f)})};return e.stateMutability==="payable",u}}_contractMethodCall(t,n,s,c,o){var i;return E(this,void 0,void 0,function*(){const r=m.getEthTxCallParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(i=this.options.from)!==null&&i!==void 0?i:this.config.defaultAccount})});try{const a=yield T.call(this,r,o,v.DEFAULT_RETURN_FORMAT);return F.decodeMethodReturn(t,a)}catch(a){throw a instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,a.cause),a}})}_contractMethodCreateAccessList(t,n,s,c,o){var i;return E(this,void 0,void 0,function*(){const r=m.getCreateAccessListParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(i=this.options.from)!==null&&i!==void 0?i:this.config.defaultAccount})});try{return T.createAccessList(this,r,o,v.DEFAULT_RETURN_FORMAT)}catch(a){throw a instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,a.cause),a}})}_contractMethodSend(t,n,s,c,o){var i,r;let a=o??this.options;a=Object.assign(Object.assign({},a),{input:void 0,from:(r=(i=a.from)!==null&&i!==void 0?i:this.defaultAccount)!==null&&r!==void 0?r:void 0});const e=m.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:a}),d=T.sendTransaction(this,e,v.DEFAULT_RETURN_FORMAT,{checkRevertBeforeSending:!1,contractAbi:this._jsonInterface});return d.on("error",h=>{h instanceof A.ContractExecutionError&&L.decodeContractErrorData(s,h.cause)}),d}_contractMethodDeploySend(t,n,s,c){var o,i;let r=c??this.options;r=Object.assign(Object.assign({},r),{from:(i=(o=r.from)!==null&&o!==void 0?o:this.defaultAccount)!==null&&i!==void 0?i:void 0});const a=m.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},s),{dataInputFill:this.config.contractDataInputFill}),contractOptions:r});return T.sendTransaction(this,a,v.DEFAULT_RETURN_FORMAT,{transactionResolver:e=>{if(e.status===BigInt(0))throw new A.Web3ContractError("code couldn't be stored",e);const d=this.clone();return d.options.address=e.contractAddress,d},contractAbi:this._jsonInterface,checkRevertBeforeSending:!1})}_contractMethodEstimateGas({abi:t,params:n,returnFormat:s,options:c,contractOptions:o}){return E(this,void 0,void 0,function*(){const i=m.getEstimateGasParams({abi:t,params:n,options:Object.assign(Object.assign({},c),{dataInputFill:this.config.contractDataInputFill}),contractOptions:o??this.options});return T.estimateGas(this,i,G.BlockTags.LATEST,s)})}_createContractEvent(t,n=v.DEFAULT_RETURN_FORMAT){return(...s)=>{var c;const{topics:o,fromBlock:i}=F.encodeEventABI(this.options,t,s[0]),r=new x.LogsSubscription({address:this.options.address,topics:o,abi:t,jsonInterface:this._jsonInterface},{subscriptionManager:this.subscriptionManager,returnFormat:n});return I.isNullish(i)||this.getPastEvents(t.name,{fromBlock:i,topics:o},n).then(a=>{a&&a.forEach(e=>r.emit("data",e))}).catch(a=>{r.emit("error",new N.SubscriptionError("Failed to get past events.",a))}),(c=this.subscriptionManager)===null||c===void 0||c.addSubscription(r).catch(a=>{r.emit("error",new N.SubscriptionError("Failed to subscribe.",a))}),r}}subscribeToContextEvents(t){const n=this;this.context=t,n.syncWithContext&&t.on(R.Web3ConfigEvent.CONFIG_CHANGE,s=>{n.setConfig({[s.name]:s.newValue})})}}exports.Contract=M;
@@ -1,4 +1,4 @@
1
- import { Web3ConfigEvent as D } from "../../../web3-core/lib/esm/web3_config.js";
1
+ import { Web3ConfigEvent as T } from "../../../web3-core/lib/esm/web3_config.js";
2
2
  import "../../../web3-core/lib/esm/web3_request_manager.js";
3
3
  import "../../../web3-core/lib/esm/web3_subscription_manager.js";
4
4
  import "../../../web3-core/lib/esm/web3_subscriptions.js";
@@ -30,7 +30,7 @@ import { isAbiErrorFragment as it, isAbiFunctionFragment as nt, jsonInterfaceMet
30
30
  import { encodeEventSignature as ot } from "../../../web3-eth-abi/lib/esm/api/events_api.js";
31
31
  import { encodeFunctionSignature as st } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
32
32
  import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
33
- import { decodeContractErrorData as T } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
33
+ import { decodeContractErrorData as D } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
34
34
  import { encodeMethodABI as V, encodeEventABI as U, decodeMethodReturn as rt } from "./encoding.js";
35
35
  import { LogsSubscription as $ } from "./log_subscription.js";
36
36
  import { isWeb3ContractContext as k, getEthTxCallParams as at, getCreateAccessListParams as ct, getSendTxParams as H, getEstimateGasParams as dt } from "./utils.js";
@@ -38,7 +38,7 @@ import { format as w, isDataFormat as _ } from "../../../web3-utils/lib/esm/form
38
38
  import { isContractInitOptions as J } from "../../../web3-utils/lib/esm/validation.js";
39
39
  import { keccak256Wrapper as lt } from "../../../web3-utils/lib/esm/hash.js";
40
40
  import { toChecksumAddress as ht } from "../../../web3-utils/lib/esm/converters.js";
41
- var b = globalThis && globalThis.__awaiter || function(K, t, e, o) {
41
+ var b = function(K, t, e, o) {
42
42
  function c(s) {
43
43
  return s instanceof e ? s : new e(function(n) {
44
44
  n(s);
@@ -98,7 +98,7 @@ class S extends C {
98
98
  }), Object.defineProperty(this.options, "jsonInterface", {
99
99
  set: (f) => this._parseAndSetJsonInterface(f, l),
100
100
  get: () => this._jsonInterface
101
- }), d instanceof C && d.on(D.CONFIG_CHANGE, (f) => {
101
+ }), d instanceof C && d.on(T.CONFIG_CHANGE, (f) => {
102
102
  this.setConfig({ [f.name]: f.newValue });
103
103
  });
104
104
  }
@@ -406,7 +406,7 @@ class S extends C {
406
406
  const a = yield R(this, r, s, v);
407
407
  return rt(t, a);
408
408
  } catch (a) {
409
- throw a instanceof P && T(o, a.cause), a;
409
+ throw a instanceof P && D(o, a.cause), a;
410
410
  }
411
411
  });
412
412
  }
@@ -422,7 +422,7 @@ class S extends C {
422
422
  try {
423
423
  return O(this, r, s, v);
424
424
  } catch (a) {
425
- throw a instanceof P && T(o, a.cause), a;
425
+ throw a instanceof P && D(o, a.cause), a;
426
426
  }
427
427
  });
428
428
  }
@@ -441,7 +441,7 @@ class S extends C {
441
441
  contractAbi: this._jsonInterface
442
442
  });
443
443
  return d.on("error", (u) => {
444
- u instanceof P && T(o, u.cause);
444
+ u instanceof P && D(o, u.cause);
445
445
  }), d;
446
446
  }
447
447
  _contractMethodDeploySend(t, e, o, c) {
@@ -502,7 +502,7 @@ class S extends C {
502
502
  }
503
503
  subscribeToContextEvents(t) {
504
504
  const e = this;
505
- this.context = t, e.syncWithContext && t.on(D.CONFIG_CHANGE, (o) => {
505
+ this.context = t, e.syncWithContext && t.on(T.CONFIG_CHANGE, (o) => {
506
506
  e.setConfig({ [o.name]: o.newValue });
507
507
  });
508
508
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"address",name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"coinType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"newAddress",type:"bytes"}],name:"AddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"uint16",name:"resource",type:"uint16"},{indexed:!1,internalType:"bytes",name:"record",type:"bytes"}],name:"DNSRecordChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"uint16",name:"resource",type:"uint16"}],name:"DNSRecordDeleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"}],name:"DNSZoneCleared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"lastzonehash",type:"bytes"},{indexed:!1,internalType:"bytes",name:"zonehash",type:"bytes"}],name:"DNSZonehashChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!0,internalType:"bytes4",name:"interfaceID",type:"bytes4"},{indexed:!1,internalType:"address",name:"implementer",type:"address"}],name:"InterfaceChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"string",name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"x",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!0,internalType:"string",name:"indexedKey",type:"string"},{indexed:!1,internalType:"string",name:"key",type:"string"}],name:"TextChanged",type:"event"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"addr",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"coinType",type:"uint256"}],name:"addr",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"contenthash",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"},{internalType:"uint16",name:"resource",type:"uint16"}],name:"dnsRecord",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],name:"hasDNSRecords",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes4",name:"interfaceID",type:"bytes4"}],name:"interfaceImplementer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"pubkey",outputs:[{internalType:"bytes32",name:"x",type:"bytes32"},{internalType:"bytes32",name:"y",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"string",name:"key",type:"string"}],name:"text",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"zonehash",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"}];exports.PublicResolverAbi=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"address",name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"coinType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"newAddress",type:"bytes"}],name:"AddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"uint16",name:"resource",type:"uint16"},{indexed:!1,internalType:"bytes",name:"record",type:"bytes"}],name:"DNSRecordChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"uint16",name:"resource",type:"uint16"}],name:"DNSRecordDeleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"}],name:"DNSZoneCleared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"lastzonehash",type:"bytes"},{indexed:!1,internalType:"bytes",name:"zonehash",type:"bytes"}],name:"DNSZonehashChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!0,internalType:"bytes4",name:"interfaceID",type:"bytes4"},{indexed:!1,internalType:"address",name:"implementer",type:"address"}],name:"InterfaceChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"string",name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"x",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!0,internalType:"string",name:"indexedKey",type:"string"},{indexed:!1,internalType:"string",name:"key",type:"string"}],name:"TextChanged",type:"event"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"addr",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"coinType",type:"uint256"}],name:"addr",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"contenthash",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"},{internalType:"uint16",name:"resource",type:"uint16"}],name:"dnsRecord",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],name:"hasDNSRecords",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes4",name:"interfaceID",type:"bytes4"}],name:"interfaceImplementer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"pubkey",outputs:[{internalType:"bytes32",name:"x",type:"bytes32"},{internalType:"bytes32",name:"y",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"string",name:"key",type:"string"}],name:"text",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"zonehash",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"a",type:"address"}],name:"setAddr",outputs:[],stateMutability:"nonpayable",type:"function"}];exports.PublicResolverAbi=e;
@@ -571,6 +571,24 @@ const e = [
571
571
  ],
572
572
  stateMutability: "view",
573
573
  type: "function"
574
+ },
575
+ {
576
+ inputs: [
577
+ {
578
+ internalType: "bytes32",
579
+ name: "node",
580
+ type: "bytes32"
581
+ },
582
+ {
583
+ internalType: "address",
584
+ name: "a",
585
+ type: "address"
586
+ }
587
+ ],
588
+ name: "setAddr",
589
+ outputs: [],
590
+ stateMutability: "nonpayable",
591
+ type: "function"
574
592
  }
575
593
  ];
576
594
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const l=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const f=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const v=require("../../../web3-errors/lib/esm/errors/ens_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");const q=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-net/lib/esm/net.cjs");const y=require("../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),h=require("./config.cjs"),w=require("./registry.cjs"),p=require("./resolver.cjs");var t=globalThis&&globalThis.__awaiter||function(_,e,r,i){function o(n){return n instanceof r?n:new r(function(u){u(n)})}return new(r||(r=Promise))(function(n,u){function a(s){try{c(i.next(s))}catch(d){u(d)}}function g(s){try{c(i.throw(s))}catch(d){u(d)}}function c(s){s.done?n(s.value):o(s.value).then(a,g)}c((i=i.apply(_,e||[])).next())})};class b extends l.Web3Context{constructor(e,r){super(r??""),this.registryAddress=e??h.registryAddresses.main,this._registry=new w.Registry(this.getContextObject(),e),this._resolver=new p.Resolver(this._registry)}getResolver(e){return t(this,void 0,void 0,function*(){return this._registry.getResolver(e)})}recordExists(e){return t(this,void 0,void 0,function*(){return this._registry.recordExists(e)})}getTTL(e){return t(this,void 0,void 0,function*(){return this._registry.getTTL(e)})}getOwner(e){return t(this,void 0,void 0,function*(){return this._registry.getOwner(e)})}getAddress(e,r=60){return t(this,void 0,void 0,function*(){return this._resolver.getAddress(e,r)})}getPubkey(e){return t(this,void 0,void 0,function*(){return this._resolver.getPubkey(e)})}getContenthash(e){return t(this,void 0,void 0,function*(){return this._resolver.getContenthash(e)})}checkNetwork(){return t(this,void 0,void 0,function*(){const e=Date.now()/1e3;if(!this._lastSyncCheck||e-this._lastSyncCheck>3600){const o=yield q.isSyncing(this);if(!(typeof o=="boolean"&&!o))throw new v.ENSNetworkNotSyncedError;this._lastSyncCheck=e}if(this._detectedAddress)return this._detectedAddress;const r=yield y.getId(this,Object.assign(Object.assign({},f.DEFAULT_RETURN_FORMAT),{number:f.FMT_NUMBER.HEX})),i=h.registryAddresses[h.networkIds[r]];if(typeof i>"u")throw new v.ENSUnsupportedNetworkError(r);return this._detectedAddress=i,this._detectedAddress})}supportsInterface(e,r){return t(this,void 0,void 0,function*(){return this._resolver.supportsInterface(e,r)})}get events(){return this._registry.events}}exports.ENS=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const y=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const _=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const v=require("../../../web3-errors/lib/esm/errors/ens_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");const g=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-net/lib/esm/net.cjs");const l=require("../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),h=require("./config.cjs"),w=require("./registry.cjs"),p=require("./resolver.cjs");var t=function(f,e,r,i){function o(n){return n instanceof r?n:new r(function(u){u(n)})}return new(r||(r=Promise))(function(n,u){function a(s){try{d(i.next(s))}catch(c){u(c)}}function q(s){try{d(i.throw(s))}catch(c){u(c)}}function d(s){s.done?n(s.value):o(s.value).then(a,q)}d((i=i.apply(f,e||[])).next())})};class E extends y.Web3Context{constructor(e,r){super(r??""),this.registryAddress=e??h.registryAddresses.main,this._registry=new w.Registry(this.getContextObject(),e),this._resolver=new p.Resolver(this._registry)}getResolver(e){return t(this,void 0,void 0,function*(){return this._registry.getResolver(e)})}recordExists(e){return t(this,void 0,void 0,function*(){return this._registry.recordExists(e)})}getTTL(e){return t(this,void 0,void 0,function*(){return this._registry.getTTL(e)})}getOwner(e){return t(this,void 0,void 0,function*(){return this._registry.getOwner(e)})}getAddress(e,r=60){return t(this,void 0,void 0,function*(){return this._resolver.getAddress(e,r)})}getPubkey(e){return t(this,void 0,void 0,function*(){return this._resolver.getPubkey(e)})}getContenthash(e){return t(this,void 0,void 0,function*(){return this._resolver.getContenthash(e)})}checkNetwork(){return t(this,void 0,void 0,function*(){const e=Date.now()/1e3;if(!this._lastSyncCheck||e-this._lastSyncCheck>3600){const o=yield g.isSyncing(this);if(!(typeof o=="boolean"&&!o))throw new v.ENSNetworkNotSyncedError;this._lastSyncCheck=e}if(this._detectedAddress)return this._detectedAddress;const r=yield l.getId(this,Object.assign(Object.assign({},_.DEFAULT_RETURN_FORMAT),{number:_.FMT_NUMBER.HEX})),i=h.registryAddresses[h.networkIds[r]];if(typeof i>"u")throw new v.ENSUnsupportedNetworkError(r);return this._detectedAddress=i,this._detectedAddress})}supportsInterface(e,r){return t(this,void 0,void 0,function*(){return this._resolver.supportsInterface(e,r)})}get events(){return this._registry.events}setAddress(e,r,i){return t(this,void 0,void 0,function*(){return this._resolver.setAddress(e,r,i)})}}exports.ENS=E;
@@ -4,10 +4,10 @@ import "../../../web3-core/lib/esm/web3_subscription_manager.js";
4
4
  import "../../../web3-core/lib/esm/web3_subscriptions.js";
5
5
  import { Web3Context as v } from "../../../web3-core/lib/esm/web3_context.js";
6
6
  import "../../../web3-core/lib/esm/web3_batch_request.js";
7
- import { DEFAULT_RETURN_FORMAT as _, FMT_NUMBER as l } from "../../../web3-types/lib/esm/data_format_types.js";
7
+ import { DEFAULT_RETURN_FORMAT as _, FMT_NUMBER as y } from "../../../web3-types/lib/esm/data_format_types.js";
8
8
  import "../../../web3-types/lib/esm/eth_types.js";
9
9
  import "../../../web3-types/lib/esm/web3_base_provider.js";
10
- import { ENSNetworkNotSyncedError as g, ENSUnsupportedNetworkError as a } from "../../../web3-errors/lib/esm/errors/ens_errors.js";
10
+ import { ENSNetworkNotSyncedError as g, ENSUnsupportedNetworkError as l } from "../../../web3-errors/lib/esm/errors/ens_errors.js";
11
11
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
12
12
  import "../../../web3-eth-iban/lib/esm/iban.js";
13
13
  import "../../../web3-validator/lib/esm/formats.js";
@@ -18,39 +18,39 @@ import "../../../web3-eth/lib/esm/web3_eth.js";
18
18
  import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
19
19
  import "../../../web3-eth/lib/esm/schemas.js";
20
20
  import "../../../web3-eth/lib/esm/constants.js";
21
- import { isSyncing as y } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
21
+ import { isSyncing as a } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
22
22
  import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
23
23
  import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
24
24
  import "../../../web3-net/lib/esm/net.js";
25
25
  import { getId as w } from "../../../web3-net/lib/esm/rpc_method_wrappers.js";
26
26
  import { registryAddresses as p, networkIds as k } from "./config.js";
27
27
  import { Registry as E } from "./registry.js";
28
- import { Resolver as T } from "./resolver.js";
29
- var r = globalThis && globalThis.__awaiter || function(u, t, e, i) {
28
+ import { Resolver as A } from "./resolver.js";
29
+ var r = function(h, t, e, i) {
30
30
  function s(n) {
31
31
  return n instanceof e ? n : new e(function(d) {
32
32
  d(n);
33
33
  });
34
34
  }
35
35
  return new (e || (e = Promise))(function(n, d) {
36
- function m(o) {
36
+ function f(o) {
37
37
  try {
38
- c(i.next(o));
39
- } catch (h) {
40
- d(h);
38
+ u(i.next(o));
39
+ } catch (c) {
40
+ d(c);
41
41
  }
42
42
  }
43
- function f(o) {
43
+ function m(o) {
44
44
  try {
45
- c(i.throw(o));
46
- } catch (h) {
47
- d(h);
45
+ u(i.throw(o));
46
+ } catch (c) {
47
+ d(c);
48
48
  }
49
49
  }
50
- function c(o) {
51
- o.done ? n(o.value) : s(o.value).then(m, f);
50
+ function u(o) {
51
+ o.done ? n(o.value) : s(o.value).then(f, m);
52
52
  }
53
- c((i = i.apply(u, t || [])).next());
53
+ u((i = i.apply(h, t || [])).next());
54
54
  });
55
55
  };
56
56
  class Z extends v {
@@ -70,7 +70,7 @@ class Z extends v {
70
70
  * ```
71
71
  */
72
72
  constructor(t, e) {
73
- super(e ?? ""), this.registryAddress = t ?? p.main, this._registry = new E(this.getContextObject(), t), this._resolver = new T(this._registry);
73
+ super(e ?? ""), this.registryAddress = t ?? p.main, this._registry = new E(this.getContextObject(), t), this._resolver = new A(this._registry);
74
74
  }
75
75
  /**
76
76
  * Returns the Resolver by the given address
@@ -199,16 +199,16 @@ class Z extends v {
199
199
  return r(this, void 0, void 0, function* () {
200
200
  const t = Date.now() / 1e3;
201
201
  if (!this._lastSyncCheck || t - this._lastSyncCheck > 3600) {
202
- const s = yield y(this);
202
+ const s = yield a(this);
203
203
  if (!(typeof s == "boolean" && !s))
204
204
  throw new g();
205
205
  this._lastSyncCheck = t;
206
206
  }
207
207
  if (this._detectedAddress)
208
208
  return this._detectedAddress;
209
- const e = yield w(this, Object.assign(Object.assign({}, _), { number: l.HEX })), i = p[k[e]];
209
+ const e = yield w(this, Object.assign(Object.assign({}, _), { number: y.HEX })), i = p[k[e]];
210
210
  if (typeof i > "u")
211
- throw new a(e);
211
+ throw new l(e);
212
212
  return this._detectedAddress = i, this._detectedAddress;
213
213
  });
214
214
  }
@@ -235,6 +235,21 @@ class Z extends v {
235
235
  get events() {
236
236
  return this._registry.events;
237
237
  }
238
+ /**
239
+ * Sets the address of an ENS name in his resolver.
240
+ * @param name - The ENS name
241
+ * @param address - The address to set
242
+ * @param txConfig - (Optional) The transaction config
243
+ * @returns - The transaction receipt
244
+ * ```ts
245
+ * const receipt = await ens.setAddress('web3js.eth','0xe2597eb05cf9a87eb1309e86750c903ec38e527e');
246
+ *```
247
+ */
248
+ setAddress(t, e, i) {
249
+ return r(this, void 0, void 0, function* () {
250
+ return this._resolver.setAddress(t, e, i);
251
+ });
252
+ }
238
253
  }
239
254
  export {
240
255
  Z as ENS