@authup/server-core 1.0.0-beta.40 → 1.0.0-beta.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (900) hide show
  1. package/dist/adapters/database/cache/module.mjs.map +1 -1
  2. package/dist/adapters/database/data-source/options/module.mjs.map +1 -1
  3. package/dist/adapters/database/data-source/singleton.mjs.map +1 -1
  4. package/dist/adapters/database/domains/client/entity.mjs.map +1 -1
  5. package/dist/adapters/database/domains/client/subscriber.mjs.map +1 -1
  6. package/dist/adapters/database/domains/client-permission/entity.mjs.map +1 -1
  7. package/dist/adapters/database/domains/client-permission/subscriber.mjs.map +1 -1
  8. package/dist/adapters/database/domains/client-role/entity.mjs.map +1 -1
  9. package/dist/adapters/database/domains/client-role/subscriber.mjs.map +1 -1
  10. package/dist/adapters/database/domains/client-scope/entity.mjs.map +1 -1
  11. package/dist/adapters/database/domains/client-scope/subscriber.mjs.map +1 -1
  12. package/dist/adapters/database/domains/identity-provider/entity.mjs.map +1 -1
  13. package/dist/adapters/database/domains/identity-provider/repository.mjs.map +1 -1
  14. package/dist/adapters/database/domains/identity-provider/subscriber.mjs.map +1 -1
  15. package/dist/adapters/database/domains/identity-provider-account/entity.mjs.map +1 -1
  16. package/dist/adapters/database/domains/identity-provider-account/subscriber.mjs.map +1 -1
  17. package/dist/adapters/database/domains/identity-provider-attribute/entity.mjs.map +1 -1
  18. package/dist/adapters/database/domains/identity-provider-attribute/subscriber.mjs.map +1 -1
  19. package/dist/adapters/database/domains/identity-provider-attribute-mapping/entity.mjs.map +1 -1
  20. package/dist/adapters/database/domains/identity-provider-permission-mapping/entity.mjs.map +1 -1
  21. package/dist/adapters/database/domains/identity-provider-role-mapping/entity.mjs.map +1 -1
  22. package/dist/adapters/database/domains/identity-provider-role-mapping/subscriber.mjs.map +1 -1
  23. package/dist/adapters/database/domains/key/entity.mjs.map +1 -1
  24. package/dist/adapters/database/domains/permission/entity.mjs.map +1 -1
  25. package/dist/adapters/database/domains/permission/subscriber.mjs.map +1 -1
  26. package/dist/adapters/database/domains/permission-policy/entity.mjs.map +1 -1
  27. package/dist/adapters/database/domains/policy/entity.mjs.map +1 -1
  28. package/dist/adapters/database/domains/policy/repository.mjs.map +1 -1
  29. package/dist/adapters/database/domains/policy/subscriber.mjs.map +1 -1
  30. package/dist/adapters/database/domains/policy-attribute/entity.mjs.map +1 -1
  31. package/dist/adapters/database/domains/policy-attribute/subscriber.mjs.map +1 -1
  32. package/dist/adapters/database/domains/realm/entity.mjs.map +1 -1
  33. package/dist/adapters/database/domains/realm/repository.mjs.map +1 -1
  34. package/dist/adapters/database/domains/realm/subscriber.mjs.map +1 -1
  35. package/dist/adapters/database/domains/robot/entity.mjs.map +1 -1
  36. package/dist/adapters/database/domains/robot/subscriber.mjs.map +1 -1
  37. package/dist/adapters/database/domains/robot-permission/entity.mjs.map +1 -1
  38. package/dist/adapters/database/domains/robot-permission/subscriber.mjs.map +1 -1
  39. package/dist/adapters/database/domains/robot-role/entity.mjs.map +1 -1
  40. package/dist/adapters/database/domains/robot-role/subscriber.mjs.map +1 -1
  41. package/dist/adapters/database/domains/role/entity.mjs.map +1 -1
  42. package/dist/adapters/database/domains/role/repository.mjs.map +1 -1
  43. package/dist/adapters/database/domains/role/subscriber.mjs.map +1 -1
  44. package/dist/adapters/database/domains/role-attribute/entity.mjs.map +1 -1
  45. package/dist/adapters/database/domains/role-attribute/subscriber.mjs.map +1 -1
  46. package/dist/adapters/database/domains/role-permission/entity.mjs.map +1 -1
  47. package/dist/adapters/database/domains/role-permission/subscriber.mjs.map +1 -1
  48. package/dist/adapters/database/domains/scope/entity.mjs.map +1 -1
  49. package/dist/adapters/database/domains/scope/subscriber.mjs.map +1 -1
  50. package/dist/adapters/database/domains/session/entity.mjs.map +1 -1
  51. package/dist/adapters/database/domains/user/entity.mjs.map +1 -1
  52. package/dist/adapters/database/domains/user/repository.mjs.map +1 -1
  53. package/dist/adapters/database/domains/user/subscriber.mjs.map +1 -1
  54. package/dist/adapters/database/domains/user-attribute/entity.mjs.map +1 -1
  55. package/dist/adapters/database/domains/user-attribute/subscriber.mjs.map +1 -1
  56. package/dist/adapters/database/domains/user-permission/entity.mjs.map +1 -1
  57. package/dist/adapters/database/domains/user-permission/subscriber.mjs.map +1 -1
  58. package/dist/adapters/database/domains/user-role/entity.mjs.map +1 -1
  59. package/dist/adapters/database/domains/user-role/subscriber.mjs.map +1 -1
  60. package/dist/adapters/database/errors/conflict.d.ts +2 -2
  61. package/dist/adapters/database/errors/conflict.d.ts.map +1 -1
  62. package/dist/adapters/database/errors/conflict.mjs +6 -3
  63. package/dist/adapters/database/errors/conflict.mjs.map +1 -1
  64. package/dist/adapters/database/event-publisher/module.mjs.map +1 -1
  65. package/dist/adapters/database/extra-attribute-repository/adapter.mjs.map +1 -1
  66. package/dist/adapters/database/extra-attribute-repository/repository.mjs.map +1 -1
  67. package/dist/adapters/database/extra-attribute-repository/tree/adapter.mjs.map +1 -1
  68. package/dist/adapters/database/extra-attribute-repository/tree/repository.mjs.map +1 -1
  69. package/dist/adapters/database/helpers/is-supported.mjs.map +1 -1
  70. package/dist/adapters/database/logger/module.mjs.map +1 -1
  71. package/dist/adapters/database/migrations/mysql/1673449341125-Default.mjs.map +1 -1
  72. package/dist/adapters/database/migrations/mysql/1689597906910-Default.mjs.map +1 -1
  73. package/dist/adapters/database/migrations/mysql/1718790373914-Default.mjs.map +1 -1
  74. package/dist/adapters/database/migrations/mysql/1722673916392-Default.mjs.map +1 -1
  75. package/dist/adapters/database/migrations/mysql/1740991051622-Default.mjs.map +1 -1
  76. package/dist/adapters/database/migrations/mysql/1766830857009-Default.mjs.map +1 -1
  77. package/dist/adapters/database/migrations/mysql/1774800953474-Default.mjs.map +1 -1
  78. package/dist/adapters/database/migrations/postgres/1673449341125-Default.mjs.map +1 -1
  79. package/dist/adapters/database/migrations/postgres/1689597906910-Default.mjs.map +1 -1
  80. package/dist/adapters/database/migrations/postgres/1718790373914-Default.mjs.map +1 -1
  81. package/dist/adapters/database/migrations/postgres/1722673916392-Default.mjs.map +1 -1
  82. package/dist/adapters/database/migrations/postgres/1740991051622-Default.mjs.map +1 -1
  83. package/dist/adapters/database/migrations/postgres/1766830857009-Default.mjs.map +1 -1
  84. package/dist/adapters/database/migrations/postgres/1774800953474-Default.mjs.map +1 -1
  85. package/dist/adapters/http/adapters/oauth2/authorization/module.d.ts +5 -8
  86. package/dist/adapters/http/adapters/oauth2/authorization/module.d.ts.map +1 -1
  87. package/dist/adapters/http/adapters/oauth2/authorization/module.mjs +8 -10
  88. package/dist/adapters/http/adapters/oauth2/authorization/module.mjs.map +1 -1
  89. package/dist/adapters/http/adapters/oauth2/grant-types/authorize.d.ts +3 -3
  90. package/dist/adapters/http/adapters/oauth2/grant-types/authorize.d.ts.map +1 -1
  91. package/dist/adapters/http/adapters/oauth2/grant-types/authorize.mjs +15 -14
  92. package/dist/adapters/http/adapters/oauth2/grant-types/authorize.mjs.map +1 -1
  93. package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.d.ts +2 -2
  94. package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.d.ts.map +1 -1
  95. package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.mjs +8 -8
  96. package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.mjs.map +1 -1
  97. package/dist/adapters/http/adapters/oauth2/grant-types/identity.d.ts +2 -2
  98. package/dist/adapters/http/adapters/oauth2/grant-types/identity.d.ts.map +1 -1
  99. package/dist/adapters/http/adapters/oauth2/grant-types/identity.mjs +4 -4
  100. package/dist/adapters/http/adapters/oauth2/grant-types/identity.mjs.map +1 -1
  101. package/dist/adapters/http/adapters/oauth2/grant-types/password.d.ts +2 -2
  102. package/dist/adapters/http/adapters/oauth2/grant-types/password.d.ts.map +1 -1
  103. package/dist/adapters/http/adapters/oauth2/grant-types/password.mjs +6 -6
  104. package/dist/adapters/http/adapters/oauth2/grant-types/password.mjs.map +1 -1
  105. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.d.ts +2 -2
  106. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.d.ts.map +1 -1
  107. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs +12 -11
  108. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs.map +1 -1
  109. package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.d.ts +2 -2
  110. package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.d.ts.map +1 -1
  111. package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.mjs +5 -5
  112. package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.mjs.map +1 -1
  113. package/dist/adapters/http/adapters/oauth2/grant-types/types.d.ts +2 -2
  114. package/dist/adapters/http/adapters/oauth2/grant-types/types.d.ts.map +1 -1
  115. package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.d.ts +2 -2
  116. package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.d.ts.map +1 -1
  117. package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.mjs +15 -14
  118. package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.mjs.map +1 -1
  119. package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.d.ts +2 -2
  120. package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.d.ts.map +1 -1
  121. package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.mjs +16 -13
  122. package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.mjs.map +1 -1
  123. package/dist/adapters/http/controllers/entities/client/module.d.ts +9 -6
  124. package/dist/adapters/http/controllers/entities/client/module.d.ts.map +1 -1
  125. package/dist/adapters/http/controllers/entities/client/module.mjs +54 -65
  126. package/dist/adapters/http/controllers/entities/client/module.mjs.map +1 -1
  127. package/dist/adapters/http/controllers/entities/client-permission/module.d.ts +8 -5
  128. package/dist/adapters/http/controllers/entities/client-permission/module.d.ts.map +1 -1
  129. package/dist/adapters/http/controllers/entities/client-permission/module.mjs +35 -48
  130. package/dist/adapters/http/controllers/entities/client-permission/module.mjs.map +1 -1
  131. package/dist/adapters/http/controllers/entities/client-permission/utils/validation.mjs.map +1 -1
  132. package/dist/adapters/http/controllers/entities/client-role/module.d.ts +7 -4
  133. package/dist/adapters/http/controllers/entities/client-role/module.d.ts.map +1 -1
  134. package/dist/adapters/http/controllers/entities/client-role/module.mjs +27 -40
  135. package/dist/adapters/http/controllers/entities/client-role/module.mjs.map +1 -1
  136. package/dist/adapters/http/controllers/entities/client-role/utils/validation.mjs.map +1 -1
  137. package/dist/adapters/http/controllers/entities/client-scope/module.d.ts +7 -4
  138. package/dist/adapters/http/controllers/entities/client-scope/module.d.ts.map +1 -1
  139. package/dist/adapters/http/controllers/entities/client-scope/module.mjs +27 -40
  140. package/dist/adapters/http/controllers/entities/client-scope/module.mjs.map +1 -1
  141. package/dist/adapters/http/controllers/entities/client-scope/utils/validator.mjs.map +1 -1
  142. package/dist/adapters/http/controllers/entities/identity-provide-role/module.d.ts +8 -6
  143. package/dist/adapters/http/controllers/entities/identity-provide-role/module.d.ts.map +1 -1
  144. package/dist/adapters/http/controllers/entities/identity-provide-role/module.mjs +35 -48
  145. package/dist/adapters/http/controllers/entities/identity-provide-role/module.mjs.map +1 -1
  146. package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts +10 -9
  147. package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts.map +1 -1
  148. package/dist/adapters/http/controllers/entities/identity-provider/module.mjs +92 -114
  149. package/dist/adapters/http/controllers/entities/identity-provider/module.mjs.map +1 -1
  150. package/dist/adapters/http/controllers/entities/permission/module.d.ts +13 -17
  151. package/dist/adapters/http/controllers/entities/permission/module.d.ts.map +1 -1
  152. package/dist/adapters/http/controllers/entities/permission/module.mjs +60 -112
  153. package/dist/adapters/http/controllers/entities/permission/module.mjs.map +1 -1
  154. package/dist/adapters/http/controllers/entities/permission-policy/module.d.ts +7 -4
  155. package/dist/adapters/http/controllers/entities/permission-policy/module.d.ts.map +1 -1
  156. package/dist/adapters/http/controllers/entities/permission-policy/module.mjs +27 -40
  157. package/dist/adapters/http/controllers/entities/permission-policy/module.mjs.map +1 -1
  158. package/dist/adapters/http/controllers/entities/policy/module.d.ts +14 -16
  159. package/dist/adapters/http/controllers/entities/policy/module.d.ts.map +1 -1
  160. package/dist/adapters/http/controllers/entities/policy/module.mjs +65 -106
  161. package/dist/adapters/http/controllers/entities/policy/module.mjs.map +1 -1
  162. package/dist/adapters/http/controllers/entities/policy/utils/attributes-validator.mjs.map +1 -1
  163. package/dist/adapters/http/controllers/entities/policy/utils/validation.mjs.map +1 -1
  164. package/dist/adapters/http/controllers/entities/realm/module.d.ts +13 -8
  165. package/dist/adapters/http/controllers/entities/realm/module.d.ts.map +1 -1
  166. package/dist/adapters/http/controllers/entities/realm/module.mjs +55 -74
  167. package/dist/adapters/http/controllers/entities/realm/module.mjs.map +1 -1
  168. package/dist/adapters/http/controllers/entities/robot/module.d.ts +9 -6
  169. package/dist/adapters/http/controllers/entities/robot/module.d.ts.map +1 -1
  170. package/dist/adapters/http/controllers/entities/robot/module.mjs +54 -67
  171. package/dist/adapters/http/controllers/entities/robot/module.mjs.map +1 -1
  172. package/dist/adapters/http/controllers/entities/robot-permission/module.d.ts +8 -5
  173. package/dist/adapters/http/controllers/entities/robot-permission/module.d.ts.map +1 -1
  174. package/dist/adapters/http/controllers/entities/robot-permission/module.mjs +35 -48
  175. package/dist/adapters/http/controllers/entities/robot-permission/module.mjs.map +1 -1
  176. package/dist/adapters/http/controllers/entities/robot-permission/utils/validation.mjs.map +1 -1
  177. package/dist/adapters/http/controllers/entities/robot-role/module.d.ts +7 -4
  178. package/dist/adapters/http/controllers/entities/robot-role/module.d.ts.map +1 -1
  179. package/dist/adapters/http/controllers/entities/robot-role/module.mjs +27 -40
  180. package/dist/adapters/http/controllers/entities/robot-role/module.mjs.map +1 -1
  181. package/dist/adapters/http/controllers/entities/robot-role/utils/validation.mjs.map +1 -1
  182. package/dist/adapters/http/controllers/entities/role/module.d.ts +9 -6
  183. package/dist/adapters/http/controllers/entities/role/module.d.ts.map +1 -1
  184. package/dist/adapters/http/controllers/entities/role/module.mjs +42 -57
  185. package/dist/adapters/http/controllers/entities/role/module.mjs.map +1 -1
  186. package/dist/adapters/http/controllers/entities/role-attribute/module.d.ts +8 -5
  187. package/dist/adapters/http/controllers/entities/role-attribute/module.d.ts.map +1 -1
  188. package/dist/adapters/http/controllers/entities/role-attribute/module.mjs +35 -48
  189. package/dist/adapters/http/controllers/entities/role-attribute/module.mjs.map +1 -1
  190. package/dist/adapters/http/controllers/entities/role-attribute/utils/validation.mjs.map +1 -1
  191. package/dist/adapters/http/controllers/entities/role-permission/module.d.ts +8 -5
  192. package/dist/adapters/http/controllers/entities/role-permission/module.d.ts.map +1 -1
  193. package/dist/adapters/http/controllers/entities/role-permission/module.mjs +35 -48
  194. package/dist/adapters/http/controllers/entities/role-permission/module.mjs.map +1 -1
  195. package/dist/adapters/http/controllers/entities/role-permission/utils/validation.mjs.map +1 -1
  196. package/dist/adapters/http/controllers/entities/scope/module.d.ts +9 -6
  197. package/dist/adapters/http/controllers/entities/scope/module.d.ts.map +1 -1
  198. package/dist/adapters/http/controllers/entities/scope/module.mjs +42 -57
  199. package/dist/adapters/http/controllers/entities/scope/module.mjs.map +1 -1
  200. package/dist/adapters/http/controllers/entities/user/module.d.ts +9 -6
  201. package/dist/adapters/http/controllers/entities/user/module.d.ts.map +1 -1
  202. package/dist/adapters/http/controllers/entities/user/module.mjs +48 -59
  203. package/dist/adapters/http/controllers/entities/user/module.mjs.map +1 -1
  204. package/dist/adapters/http/controllers/entities/user-attribute/module.d.ts +8 -5
  205. package/dist/adapters/http/controllers/entities/user-attribute/module.d.ts.map +1 -1
  206. package/dist/adapters/http/controllers/entities/user-attribute/module.mjs +35 -48
  207. package/dist/adapters/http/controllers/entities/user-attribute/module.mjs.map +1 -1
  208. package/dist/adapters/http/controllers/entities/user-attribute/utils/validation.mjs.map +1 -1
  209. package/dist/adapters/http/controllers/entities/user-permission/module.d.ts +8 -5
  210. package/dist/adapters/http/controllers/entities/user-permission/module.d.ts.map +1 -1
  211. package/dist/adapters/http/controllers/entities/user-permission/module.mjs +35 -48
  212. package/dist/adapters/http/controllers/entities/user-permission/module.mjs.map +1 -1
  213. package/dist/adapters/http/controllers/entities/user-permission/utils/validation.mjs.map +1 -1
  214. package/dist/adapters/http/controllers/entities/user-role/module.d.ts +7 -4
  215. package/dist/adapters/http/controllers/entities/user-role/module.d.ts.map +1 -1
  216. package/dist/adapters/http/controllers/entities/user-role/module.mjs +27 -40
  217. package/dist/adapters/http/controllers/entities/user-role/module.mjs.map +1 -1
  218. package/dist/adapters/http/controllers/entities/user-role/utils/validation.mjs.map +1 -1
  219. package/dist/adapters/http/controllers/workflows/activate/module.d.ts +3 -2
  220. package/dist/adapters/http/controllers/workflows/activate/module.d.ts.map +1 -1
  221. package/dist/adapters/http/controllers/workflows/activate/module.mjs +6 -11
  222. package/dist/adapters/http/controllers/workflows/activate/module.mjs.map +1 -1
  223. package/dist/adapters/http/controllers/workflows/activate/validator.mjs.map +1 -1
  224. package/dist/adapters/http/controllers/workflows/authorize/module.d.ts +7 -5
  225. package/dist/adapters/http/controllers/workflows/authorize/module.d.ts.map +1 -1
  226. package/dist/adapters/http/controllers/workflows/authorize/module.mjs +21 -22
  227. package/dist/adapters/http/controllers/workflows/authorize/module.mjs.map +1 -1
  228. package/dist/adapters/http/controllers/workflows/jwks/handlers/read.d.ts +5 -3
  229. package/dist/adapters/http/controllers/workflows/jwks/handlers/read.d.ts.map +1 -1
  230. package/dist/adapters/http/controllers/workflows/jwks/handlers/read.mjs +15 -18
  231. package/dist/adapters/http/controllers/workflows/jwks/handlers/read.mjs.map +1 -1
  232. package/dist/adapters/http/controllers/workflows/jwks/module.d.ts +6 -3
  233. package/dist/adapters/http/controllers/workflows/jwks/module.d.ts.map +1 -1
  234. package/dist/adapters/http/controllers/workflows/jwks/module.mjs +20 -30
  235. package/dist/adapters/http/controllers/workflows/jwks/module.mjs.map +1 -1
  236. package/dist/adapters/http/controllers/workflows/openid/module.d.ts.map +1 -1
  237. package/dist/adapters/http/controllers/workflows/openid/module.mjs +10 -7
  238. package/dist/adapters/http/controllers/workflows/openid/module.mjs.map +1 -1
  239. package/dist/adapters/http/controllers/workflows/password-forgot/module.d.ts +3 -3
  240. package/dist/adapters/http/controllers/workflows/password-forgot/module.d.ts.map +1 -1
  241. package/dist/adapters/http/controllers/workflows/password-forgot/module.mjs +7 -11
  242. package/dist/adapters/http/controllers/workflows/password-forgot/module.mjs.map +1 -1
  243. package/dist/adapters/http/controllers/workflows/password-reset/module.d.ts +3 -3
  244. package/dist/adapters/http/controllers/workflows/password-reset/module.d.ts.map +1 -1
  245. package/dist/adapters/http/controllers/workflows/password-reset/module.mjs +7 -11
  246. package/dist/adapters/http/controllers/workflows/password-reset/module.mjs.map +1 -1
  247. package/dist/adapters/http/controllers/workflows/register/module.d.ts +3 -3
  248. package/dist/adapters/http/controllers/workflows/register/module.d.ts.map +1 -1
  249. package/dist/adapters/http/controllers/workflows/register/module.mjs +7 -11
  250. package/dist/adapters/http/controllers/workflows/register/module.mjs.map +1 -1
  251. package/dist/adapters/http/controllers/workflows/status/module.d.ts.map +1 -1
  252. package/dist/adapters/http/controllers/workflows/status/module.mjs.map +1 -1
  253. package/dist/adapters/http/controllers/workflows/token/module.d.ts +5 -5
  254. package/dist/adapters/http/controllers/workflows/token/module.d.ts.map +1 -1
  255. package/dist/adapters/http/controllers/workflows/token/module.mjs +26 -27
  256. package/dist/adapters/http/controllers/workflows/token/module.mjs.map +1 -1
  257. package/dist/adapters/http/controllers/workflows/token/utils/extract.d.ts +2 -2
  258. package/dist/adapters/http/controllers/workflows/token/utils/extract.d.ts.map +1 -1
  259. package/dist/adapters/http/controllers/workflows/token/utils/extract.mjs +8 -7
  260. package/dist/adapters/http/controllers/workflows/token/utils/extract.mjs.map +1 -1
  261. package/dist/adapters/http/controllers/workflows/token/utils/validator.mjs.map +1 -1
  262. package/dist/adapters/http/index.d.ts +0 -2
  263. package/dist/adapters/http/index.d.ts.map +1 -1
  264. package/dist/adapters/http/index.mjs +7 -7
  265. package/dist/adapters/http/middleware/built-in/assets.d.ts +1 -0
  266. package/dist/adapters/http/middleware/built-in/assets.d.ts.map +1 -1
  267. package/dist/adapters/http/middleware/built-in/assets.mjs +9 -9
  268. package/dist/adapters/http/middleware/built-in/assets.mjs.map +1 -1
  269. package/dist/adapters/http/middleware/built-in/authorization/factory.d.ts.map +1 -1
  270. package/dist/adapters/http/middleware/built-in/authorization/factory.mjs +5 -2
  271. package/dist/adapters/http/middleware/built-in/authorization/factory.mjs.map +1 -1
  272. package/dist/adapters/http/middleware/built-in/authorization/module.d.ts +4 -10
  273. package/dist/adapters/http/middleware/built-in/authorization/module.d.ts.map +1 -1
  274. package/dist/adapters/http/middleware/built-in/authorization/module.mjs +25 -40
  275. package/dist/adapters/http/middleware/built-in/authorization/module.mjs.map +1 -1
  276. package/dist/adapters/http/middleware/built-in/basic.mjs.map +1 -1
  277. package/dist/adapters/http/middleware/built-in/cors.d.ts +1 -1
  278. package/dist/adapters/http/middleware/built-in/cors.d.ts.map +1 -1
  279. package/dist/adapters/http/middleware/built-in/cors.mjs +18 -10
  280. package/dist/adapters/http/middleware/built-in/cors.mjs.map +1 -1
  281. package/dist/adapters/http/middleware/built-in/error.d.ts.map +1 -1
  282. package/dist/adapters/http/middleware/built-in/error.mjs +9 -18
  283. package/dist/adapters/http/middleware/built-in/error.mjs.map +1 -1
  284. package/dist/adapters/http/middleware/built-in/index.d.ts +1 -0
  285. package/dist/adapters/http/middleware/built-in/index.d.ts.map +1 -1
  286. package/dist/adapters/http/middleware/built-in/index.mjs +5 -2
  287. package/dist/adapters/http/middleware/built-in/loggedin/module.d.ts +2 -2
  288. package/dist/adapters/http/middleware/built-in/loggedin/module.d.ts.map +1 -1
  289. package/dist/adapters/http/middleware/built-in/loggedin/module.mjs +3 -3
  290. package/dist/adapters/http/middleware/built-in/loggedin/module.mjs.map +1 -1
  291. package/dist/adapters/http/middleware/built-in/loggedin/user.d.ts +2 -2
  292. package/dist/adapters/http/middleware/built-in/loggedin/user.d.ts.map +1 -1
  293. package/dist/adapters/http/middleware/built-in/loggedin/user.mjs +4 -4
  294. package/dist/adapters/http/middleware/built-in/loggedin/user.mjs.map +1 -1
  295. package/dist/adapters/http/middleware/built-in/logger.d.ts.map +1 -1
  296. package/dist/adapters/http/middleware/built-in/logger.mjs +21 -29
  297. package/dist/adapters/http/middleware/built-in/logger.mjs.map +1 -1
  298. package/dist/adapters/http/middleware/built-in/prometheus.d.ts.map +1 -1
  299. package/dist/adapters/http/middleware/built-in/prometheus.mjs +2 -3
  300. package/dist/adapters/http/middleware/built-in/prometheus.mjs.map +1 -1
  301. package/dist/adapters/http/middleware/built-in/rate-limit.d.ts.map +1 -1
  302. package/dist/adapters/http/middleware/built-in/rate-limit.mjs +2 -2
  303. package/dist/adapters/http/middleware/built-in/rate-limit.mjs.map +1 -1
  304. package/dist/adapters/http/middleware/built-in/realm-resolver/factory.d.ts +4 -0
  305. package/dist/adapters/http/middleware/built-in/realm-resolver/factory.d.ts.map +1 -0
  306. package/dist/adapters/http/middleware/built-in/realm-resolver/factory.mjs +14 -0
  307. package/dist/adapters/http/middleware/built-in/realm-resolver/factory.mjs.map +1 -0
  308. package/dist/adapters/http/middleware/built-in/realm-resolver/index.d.ts +4 -0
  309. package/dist/adapters/http/middleware/built-in/realm-resolver/index.d.ts.map +1 -0
  310. package/dist/adapters/http/middleware/built-in/realm-resolver/index.mjs +3 -0
  311. package/dist/adapters/http/middleware/built-in/realm-resolver/module.d.ts +9 -0
  312. package/dist/adapters/http/middleware/built-in/realm-resolver/module.d.ts.map +1 -0
  313. package/dist/adapters/http/middleware/built-in/realm-resolver/module.mjs +26 -0
  314. package/dist/adapters/http/middleware/built-in/realm-resolver/module.mjs.map +1 -0
  315. package/dist/adapters/http/middleware/built-in/realm-resolver/types.d.ts +5 -0
  316. package/dist/adapters/http/middleware/built-in/realm-resolver/types.d.ts.map +1 -0
  317. package/dist/adapters/http/middleware/built-in/swagger.d.ts +3 -4
  318. package/dist/adapters/http/middleware/built-in/swagger.d.ts.map +1 -1
  319. package/dist/adapters/http/middleware/built-in/swagger.mjs +4 -16
  320. package/dist/adapters/http/middleware/built-in/swagger.mjs.map +1 -1
  321. package/dist/adapters/http/middleware/index.mjs +4 -2
  322. package/dist/adapters/http/request/helpers/actor.d.ts +3 -3
  323. package/dist/adapters/http/request/helpers/actor.d.ts.map +1 -1
  324. package/dist/adapters/http/request/helpers/actor.mjs +3 -3
  325. package/dist/adapters/http/request/helpers/actor.mjs.map +1 -1
  326. package/dist/adapters/http/request/helpers/body-realm-id.d.ts +1 -2
  327. package/dist/adapters/http/request/helpers/body-realm-id.d.ts.map +1 -1
  328. package/dist/adapters/http/request/helpers/body-realm-id.mjs +3 -4
  329. package/dist/adapters/http/request/helpers/body-realm-id.mjs.map +1 -1
  330. package/dist/adapters/http/request/helpers/identity.d.ts +4 -4
  331. package/dist/adapters/http/request/helpers/identity.d.ts.map +1 -1
  332. package/dist/adapters/http/request/helpers/identity.mjs +7 -8
  333. package/dist/adapters/http/request/helpers/identity.mjs.map +1 -1
  334. package/dist/adapters/http/request/helpers/index.d.ts +2 -0
  335. package/dist/adapters/http/request/helpers/index.d.ts.map +1 -1
  336. package/dist/adapters/http/request/helpers/index.mjs +4 -2
  337. package/dist/adapters/http/request/helpers/locations.d.ts +4 -0
  338. package/dist/adapters/http/request/helpers/locations.d.ts.map +1 -0
  339. package/dist/adapters/http/request/helpers/locations.mjs +28 -0
  340. package/dist/adapters/http/request/helpers/locations.mjs.map +1 -0
  341. package/dist/adapters/http/request/helpers/param-id.d.ts +5 -5
  342. package/dist/adapters/http/request/helpers/param-id.d.ts.map +1 -1
  343. package/dist/adapters/http/request/helpers/param-id.mjs +8 -9
  344. package/dist/adapters/http/request/helpers/param-id.mjs.map +1 -1
  345. package/dist/adapters/http/request/helpers/realm-id.d.ts +5 -0
  346. package/dist/adapters/http/request/helpers/realm-id.d.ts.map +1 -0
  347. package/dist/adapters/http/request/helpers/realm-id.mjs +19 -0
  348. package/dist/adapters/http/request/helpers/realm-id.mjs.map +1 -0
  349. package/dist/adapters/http/request/helpers/scopes.d.ts +3 -3
  350. package/dist/adapters/http/request/helpers/scopes.d.ts.map +1 -1
  351. package/dist/adapters/http/request/helpers/scopes.mjs +4 -5
  352. package/dist/adapters/http/request/helpers/scopes.mjs.map +1 -1
  353. package/dist/adapters/http/request/helpers/token.d.ts +3 -3
  354. package/dist/adapters/http/request/helpers/token.d.ts.map +1 -1
  355. package/dist/adapters/http/request/helpers/token.mjs +4 -5
  356. package/dist/adapters/http/request/helpers/token.mjs.map +1 -1
  357. package/dist/adapters/http/request/index.mjs +4 -2
  358. package/dist/adapters/http/request/permission/helper.d.ts +3 -3
  359. package/dist/adapters/http/request/permission/helper.d.ts.map +1 -1
  360. package/dist/adapters/http/request/permission/helper.mjs +4 -5
  361. package/dist/adapters/http/request/permission/helper.mjs.map +1 -1
  362. package/dist/adapters/http/request/permission/module.d.ts +3 -3
  363. package/dist/adapters/http/request/permission/module.d.ts.map +1 -1
  364. package/dist/adapters/http/request/permission/module.mjs +5 -5
  365. package/dist/adapters/http/request/permission/module.mjs.map +1 -1
  366. package/dist/adapters/shared/ldap/factory.mjs.map +1 -1
  367. package/dist/adapters/shared/ldap/module.mjs.map +1 -1
  368. package/dist/app/builder.d.ts +1 -2
  369. package/dist/app/builder.d.ts.map +1 -1
  370. package/dist/app/builder.mjs +0 -5
  371. package/dist/app/builder.mjs.map +1 -1
  372. package/dist/app/factory.d.ts.map +1 -1
  373. package/dist/app/factory.mjs +1 -1
  374. package/dist/app/factory.mjs.map +1 -1
  375. package/dist/app/index.mjs +1 -2
  376. package/dist/app/modules/authentication/constants.mjs.map +1 -1
  377. package/dist/app/modules/authentication/module.mjs.map +1 -1
  378. package/dist/app/modules/authentication/repositories/session.mjs.map +1 -1
  379. package/dist/app/modules/cache/constants.mjs.map +1 -1
  380. package/dist/app/modules/cache/module.mjs.map +1 -1
  381. package/dist/app/modules/components/module.mjs.map +1 -1
  382. package/dist/app/modules/config/constants.mjs.map +1 -1
  383. package/dist/app/modules/config/module.mjs.map +1 -1
  384. package/dist/app/modules/config/normalize.mjs.map +1 -1
  385. package/dist/app/modules/config/parse.mjs.map +1 -1
  386. package/dist/app/modules/config/read/env.mjs.map +1 -1
  387. package/dist/app/modules/config/read/fs.mjs.map +1 -1
  388. package/dist/app/modules/config/read/module.mjs.map +1 -1
  389. package/dist/app/modules/config/types.d.ts +2 -2
  390. package/dist/app/modules/config/types.d.ts.map +1 -1
  391. package/dist/app/modules/constants.d.ts +0 -1
  392. package/dist/app/modules/constants.d.ts.map +1 -1
  393. package/dist/app/modules/constants.mjs +0 -1
  394. package/dist/app/modules/constants.mjs.map +1 -1
  395. package/dist/app/modules/database/constants.mjs.map +1 -1
  396. package/dist/app/modules/database/module.mjs.map +1 -1
  397. package/dist/app/modules/database/repositories/bindings.mjs.map +1 -1
  398. package/dist/app/modules/database/repositories/client/repository.d.ts +2 -1
  399. package/dist/app/modules/database/repositories/client/repository.d.ts.map +1 -1
  400. package/dist/app/modules/database/repositories/client/repository.mjs.map +1 -1
  401. package/dist/app/modules/database/repositories/client-permission/repository.d.ts +1 -1
  402. package/dist/app/modules/database/repositories/client-permission/repository.d.ts.map +1 -1
  403. package/dist/app/modules/database/repositories/client-permission/repository.mjs.map +1 -1
  404. package/dist/app/modules/database/repositories/client-role/repository.d.ts +1 -1
  405. package/dist/app/modules/database/repositories/client-role/repository.d.ts.map +1 -1
  406. package/dist/app/modules/database/repositories/client-role/repository.mjs.map +1 -1
  407. package/dist/app/modules/database/repositories/client-scope/repository.d.ts +1 -1
  408. package/dist/app/modules/database/repositories/client-scope/repository.d.ts.map +1 -1
  409. package/dist/app/modules/database/repositories/client-scope/repository.mjs.map +1 -1
  410. package/dist/app/modules/database/repositories/helpers.mjs.map +1 -1
  411. package/dist/app/modules/database/repositories/identity-provider/repository.d.ts +2 -1
  412. package/dist/app/modules/database/repositories/identity-provider/repository.d.ts.map +1 -1
  413. package/dist/app/modules/database/repositories/identity-provider/repository.mjs.map +1 -1
  414. package/dist/app/modules/database/repositories/identity-provider-role-mapping/repository.d.ts +2 -1
  415. package/dist/app/modules/database/repositories/identity-provider-role-mapping/repository.d.ts.map +1 -1
  416. package/dist/app/modules/database/repositories/identity-provider-role-mapping/repository.mjs.map +1 -1
  417. package/dist/app/modules/database/repositories/permission/repository.d.ts +2 -1
  418. package/dist/app/modules/database/repositories/permission/repository.d.ts.map +1 -1
  419. package/dist/app/modules/database/repositories/permission/repository.mjs.map +1 -1
  420. package/dist/app/modules/database/repositories/permission-policy/repository.d.ts +2 -1
  421. package/dist/app/modules/database/repositories/permission-policy/repository.d.ts.map +1 -1
  422. package/dist/app/modules/database/repositories/permission-policy/repository.mjs.map +1 -1
  423. package/dist/app/modules/database/repositories/permission-provider/module.mjs.map +1 -1
  424. package/dist/app/modules/database/repositories/policy/repository.d.ts +2 -1
  425. package/dist/app/modules/database/repositories/policy/repository.d.ts.map +1 -1
  426. package/dist/app/modules/database/repositories/policy/repository.mjs.map +1 -1
  427. package/dist/app/modules/database/repositories/realm/repository.d.ts +2 -1
  428. package/dist/app/modules/database/repositories/realm/repository.d.ts.map +1 -1
  429. package/dist/app/modules/database/repositories/realm/repository.mjs.map +1 -1
  430. package/dist/app/modules/database/repositories/robot/repository.d.ts +2 -1
  431. package/dist/app/modules/database/repositories/robot/repository.d.ts.map +1 -1
  432. package/dist/app/modules/database/repositories/robot/repository.mjs.map +1 -1
  433. package/dist/app/modules/database/repositories/robot-permission/repository.d.ts +1 -1
  434. package/dist/app/modules/database/repositories/robot-permission/repository.d.ts.map +1 -1
  435. package/dist/app/modules/database/repositories/robot-permission/repository.mjs.map +1 -1
  436. package/dist/app/modules/database/repositories/robot-role/repository.d.ts +2 -1
  437. package/dist/app/modules/database/repositories/robot-role/repository.d.ts.map +1 -1
  438. package/dist/app/modules/database/repositories/robot-role/repository.mjs.map +1 -1
  439. package/dist/app/modules/database/repositories/role/repository.d.ts +2 -1
  440. package/dist/app/modules/database/repositories/role/repository.d.ts.map +1 -1
  441. package/dist/app/modules/database/repositories/role/repository.mjs.map +1 -1
  442. package/dist/app/modules/database/repositories/role-attribute/repository.d.ts +2 -1
  443. package/dist/app/modules/database/repositories/role-attribute/repository.d.ts.map +1 -1
  444. package/dist/app/modules/database/repositories/role-attribute/repository.mjs.map +1 -1
  445. package/dist/app/modules/database/repositories/role-permission/repository.d.ts +2 -1
  446. package/dist/app/modules/database/repositories/role-permission/repository.d.ts.map +1 -1
  447. package/dist/app/modules/database/repositories/role-permission/repository.mjs.map +1 -1
  448. package/dist/app/modules/database/repositories/scope/repository.d.ts +2 -1
  449. package/dist/app/modules/database/repositories/scope/repository.d.ts.map +1 -1
  450. package/dist/app/modules/database/repositories/scope/repository.mjs.map +1 -1
  451. package/dist/app/modules/database/repositories/user/repository.d.ts +2 -1
  452. package/dist/app/modules/database/repositories/user/repository.d.ts.map +1 -1
  453. package/dist/app/modules/database/repositories/user/repository.mjs.map +1 -1
  454. package/dist/app/modules/database/repositories/user-attribute/repository.d.ts +2 -1
  455. package/dist/app/modules/database/repositories/user-attribute/repository.d.ts.map +1 -1
  456. package/dist/app/modules/database/repositories/user-attribute/repository.mjs.map +1 -1
  457. package/dist/app/modules/database/repositories/user-permission/repository.d.ts +2 -1
  458. package/dist/app/modules/database/repositories/user-permission/repository.d.ts.map +1 -1
  459. package/dist/app/modules/database/repositories/user-permission/repository.mjs.map +1 -1
  460. package/dist/app/modules/database/repositories/user-role/repository.d.ts +2 -1
  461. package/dist/app/modules/database/repositories/user-role/repository.d.ts.map +1 -1
  462. package/dist/app/modules/database/repositories/user-role/repository.mjs.map +1 -1
  463. package/dist/app/modules/http/constants.d.ts +3 -2
  464. package/dist/app/modules/http/constants.d.ts.map +1 -1
  465. package/dist/app/modules/http/constants.mjs.map +1 -1
  466. package/dist/app/modules/http/module.d.ts +2 -2
  467. package/dist/app/modules/http/module.d.ts.map +1 -1
  468. package/dist/app/modules/http/module.mjs +10 -17
  469. package/dist/app/modules/http/module.mjs.map +1 -1
  470. package/dist/app/modules/http/modules/controller.d.ts.map +1 -1
  471. package/dist/app/modules/http/modules/controller.mjs +59 -70
  472. package/dist/app/modules/http/modules/controller.mjs.map +1 -1
  473. package/dist/app/modules/http/modules/middleware.d.ts +1 -0
  474. package/dist/app/modules/http/modules/middleware.d.ts.map +1 -1
  475. package/dist/app/modules/http/modules/middleware.mjs +13 -6
  476. package/dist/app/modules/http/modules/middleware.mjs.map +1 -1
  477. package/dist/app/modules/identity/constants.mjs.map +1 -1
  478. package/dist/app/modules/identity/module.mjs.map +1 -1
  479. package/dist/app/modules/identity/repositories/client.mjs.map +1 -1
  480. package/dist/app/modules/identity/repositories/provider/account/module.mjs.map +1 -1
  481. package/dist/app/modules/identity/repositories/provider/mapper/attribute.mjs.map +1 -1
  482. package/dist/app/modules/identity/repositories/provider/mapper/permission.mjs.map +1 -1
  483. package/dist/app/modules/identity/repositories/provider/mapper/role.mjs.map +1 -1
  484. package/dist/app/modules/identity/repositories/robot.mjs.map +1 -1
  485. package/dist/app/modules/identity/repositories/user.mjs.map +1 -1
  486. package/dist/app/modules/index.d.ts +0 -1
  487. package/dist/app/modules/index.d.ts.map +1 -1
  488. package/dist/app/modules/index.mjs +1 -3
  489. package/dist/app/modules/ldap/constants.mjs.map +1 -1
  490. package/dist/app/modules/ldap/module.mjs.map +1 -1
  491. package/dist/app/modules/logger/constants.mjs.map +1 -1
  492. package/dist/app/modules/logger/module.mjs.map +1 -1
  493. package/dist/app/modules/mail/adapter/smtp/module.mjs.map +1 -1
  494. package/dist/app/modules/mail/adapter/smtp/smtp.mjs.map +1 -1
  495. package/dist/app/modules/mail/adapter/void.mjs.map +1 -1
  496. package/dist/app/modules/mail/constants.mjs.map +1 -1
  497. package/dist/app/modules/mail/module.mjs.map +1 -1
  498. package/dist/app/modules/oauth2/constants.mjs.map +1 -1
  499. package/dist/app/modules/oauth2/module.mjs.map +1 -1
  500. package/dist/app/modules/oauth2/repositories/authorize/code/repository.mjs.map +1 -1
  501. package/dist/app/modules/oauth2/repositories/authorize/state/repository.mjs.map +1 -1
  502. package/dist/app/modules/oauth2/repositories/client/repository.mjs.map +1 -1
  503. package/dist/app/modules/oauth2/repositories/key/repository.mjs.map +1 -1
  504. package/dist/app/modules/oauth2/repositories/scope/repository.mjs.map +1 -1
  505. package/dist/app/modules/oauth2/repositories/token/repository.mjs.map +1 -1
  506. package/dist/app/modules/provisioning/module.mjs.map +1 -1
  507. package/dist/app/modules/provisioning/sources/composite/module.mjs.map +1 -1
  508. package/dist/app/modules/provisioning/sources/default/module.mjs.map +1 -1
  509. package/dist/app/modules/provisioning/sources/file/module.mjs.map +1 -1
  510. package/dist/app/modules/runtime/module.d.ts.map +1 -1
  511. package/dist/app/modules/runtime/module.mjs +3 -1
  512. package/dist/app/modules/runtime/module.mjs.map +1 -1
  513. package/dist/cli/commands/healthcheck.mjs +1 -1
  514. package/dist/cli/commands/healthcheck.mjs.map +1 -1
  515. package/dist/cli/commands/index.d.ts +0 -1
  516. package/dist/cli/commands/index.d.ts.map +1 -1
  517. package/dist/cli/commands/index.mjs +1 -2
  518. package/dist/cli/commands/migration.mjs.map +1 -1
  519. package/dist/cli/commands/reset.mjs.map +1 -1
  520. package/dist/cli/commands/start.d.ts.map +1 -1
  521. package/dist/cli/commands/start.mjs +22 -1
  522. package/dist/cli/commands/start.mjs.map +1 -1
  523. package/dist/cli/index.mjs.map +1 -1
  524. package/dist/cli/module.d.ts.map +1 -1
  525. package/dist/cli/module.mjs +1 -3
  526. package/dist/cli/module.mjs.map +1 -1
  527. package/dist/components/database/unique-entries/factory.mjs.map +1 -1
  528. package/dist/components/database/unique-entries/module.mjs.map +1 -1
  529. package/dist/components/oauth2-cleaner/module.mjs.map +1 -1
  530. package/dist/core/authentication/base.mjs.map +1 -1
  531. package/dist/core/authentication/credential/entities/client/module.mjs.map +1 -1
  532. package/dist/core/authentication/credential/entities/robot/module.mjs.map +1 -1
  533. package/dist/core/authentication/credential/entities/user/module.mjs.map +1 -1
  534. package/dist/core/authentication/entities/client/module.d.ts.map +1 -1
  535. package/dist/core/authentication/entities/client/module.mjs +7 -5
  536. package/dist/core/authentication/entities/client/module.mjs.map +1 -1
  537. package/dist/core/authentication/entities/robot/module.d.ts.map +1 -1
  538. package/dist/core/authentication/entities/robot/module.mjs +5 -4
  539. package/dist/core/authentication/entities/robot/module.mjs.map +1 -1
  540. package/dist/core/authentication/entities/user/module.d.ts.map +1 -1
  541. package/dist/core/authentication/entities/user/module.mjs +5 -4
  542. package/dist/core/authentication/entities/user/module.mjs.map +1 -1
  543. package/dist/core/authentication/module.mjs.map +1 -1
  544. package/dist/core/authentication/session/module.mjs.map +1 -1
  545. package/dist/core/entities/client/service.d.ts +2 -3
  546. package/dist/core/entities/client/service.d.ts.map +1 -1
  547. package/dist/core/entities/client/service.mjs +8 -8
  548. package/dist/core/entities/client/service.mjs.map +1 -1
  549. package/dist/core/entities/client/types.d.ts +1 -2
  550. package/dist/core/entities/client/types.d.ts.map +1 -1
  551. package/dist/core/entities/client-permission/service.d.ts +2 -3
  552. package/dist/core/entities/client-permission/service.d.ts.map +1 -1
  553. package/dist/core/entities/client-permission/service.mjs +8 -7
  554. package/dist/core/entities/client-permission/service.mjs.map +1 -1
  555. package/dist/core/entities/client-permission/types.d.ts +1 -2
  556. package/dist/core/entities/client-permission/types.d.ts.map +1 -1
  557. package/dist/core/entities/client-role/service.d.ts +2 -3
  558. package/dist/core/entities/client-role/service.d.ts.map +1 -1
  559. package/dist/core/entities/client-role/service.mjs +9 -8
  560. package/dist/core/entities/client-role/service.mjs.map +1 -1
  561. package/dist/core/entities/client-role/types.d.ts +1 -2
  562. package/dist/core/entities/client-role/types.d.ts.map +1 -1
  563. package/dist/core/entities/client-scope/service.d.ts +2 -3
  564. package/dist/core/entities/client-scope/service.d.ts.map +1 -1
  565. package/dist/core/entities/client-scope/service.mjs +7 -6
  566. package/dist/core/entities/client-scope/service.mjs.map +1 -1
  567. package/dist/core/entities/client-scope/types.d.ts +1 -2
  568. package/dist/core/entities/client-scope/types.d.ts.map +1 -1
  569. package/dist/core/entities/identity-provider/types.d.ts +1 -1
  570. package/dist/core/entities/identity-provider/types.d.ts.map +1 -1
  571. package/dist/core/entities/identity-provider-role-mapping/service.d.ts +2 -3
  572. package/dist/core/entities/identity-provider-role-mapping/service.d.ts.map +1 -1
  573. package/dist/core/entities/identity-provider-role-mapping/service.mjs +10 -9
  574. package/dist/core/entities/identity-provider-role-mapping/service.mjs.map +1 -1
  575. package/dist/core/entities/identity-provider-role-mapping/types.d.ts +1 -2
  576. package/dist/core/entities/identity-provider-role-mapping/types.d.ts.map +1 -1
  577. package/dist/core/entities/index.d.ts +0 -3
  578. package/dist/core/entities/index.d.ts.map +1 -1
  579. package/dist/core/entities/index.mjs +1 -2
  580. package/dist/core/entities/permission/service.d.ts +2 -3
  581. package/dist/core/entities/permission/service.d.ts.map +1 -1
  582. package/dist/core/entities/permission/service.mjs +8 -9
  583. package/dist/core/entities/permission/service.mjs.map +1 -1
  584. package/dist/core/entities/permission/types.d.ts +1 -2
  585. package/dist/core/entities/permission/types.d.ts.map +1 -1
  586. package/dist/core/entities/permission-policy/service.d.ts +2 -3
  587. package/dist/core/entities/permission-policy/service.d.ts.map +1 -1
  588. package/dist/core/entities/permission-policy/service.mjs +7 -6
  589. package/dist/core/entities/permission-policy/service.mjs.map +1 -1
  590. package/dist/core/entities/permission-policy/types.d.ts +1 -2
  591. package/dist/core/entities/permission-policy/types.d.ts.map +1 -1
  592. package/dist/core/entities/policy/attributes-validator.mjs.map +1 -1
  593. package/dist/core/entities/policy/service.d.ts +2 -3
  594. package/dist/core/entities/policy/service.d.ts.map +1 -1
  595. package/dist/core/entities/policy/service.mjs +8 -8
  596. package/dist/core/entities/policy/service.mjs.map +1 -1
  597. package/dist/core/entities/policy/types.d.ts +1 -2
  598. package/dist/core/entities/policy/types.d.ts.map +1 -1
  599. package/dist/core/entities/realm/service.d.ts +2 -3
  600. package/dist/core/entities/realm/service.d.ts.map +1 -1
  601. package/dist/core/entities/realm/service.mjs +8 -8
  602. package/dist/core/entities/realm/service.mjs.map +1 -1
  603. package/dist/core/entities/realm/types.d.ts +1 -2
  604. package/dist/core/entities/realm/types.d.ts.map +1 -1
  605. package/dist/core/entities/robot/service.d.ts +2 -3
  606. package/dist/core/entities/robot/service.d.ts.map +1 -1
  607. package/dist/core/entities/robot/service.mjs +8 -8
  608. package/dist/core/entities/robot/service.mjs.map +1 -1
  609. package/dist/core/entities/robot/types.d.ts +1 -2
  610. package/dist/core/entities/robot/types.d.ts.map +1 -1
  611. package/dist/core/entities/robot-permission/service.d.ts +2 -3
  612. package/dist/core/entities/robot-permission/service.d.ts.map +1 -1
  613. package/dist/core/entities/robot-permission/service.mjs +8 -7
  614. package/dist/core/entities/robot-permission/service.mjs.map +1 -1
  615. package/dist/core/entities/robot-permission/types.d.ts +1 -2
  616. package/dist/core/entities/robot-permission/types.d.ts.map +1 -1
  617. package/dist/core/entities/robot-role/service.d.ts +2 -3
  618. package/dist/core/entities/robot-role/service.d.ts.map +1 -1
  619. package/dist/core/entities/robot-role/service.mjs +9 -8
  620. package/dist/core/entities/robot-role/service.mjs.map +1 -1
  621. package/dist/core/entities/robot-role/types.d.ts +1 -2
  622. package/dist/core/entities/robot-role/types.d.ts.map +1 -1
  623. package/dist/core/entities/role/service.d.ts +2 -3
  624. package/dist/core/entities/role/service.d.ts.map +1 -1
  625. package/dist/core/entities/role/service.mjs +8 -8
  626. package/dist/core/entities/role/service.mjs.map +1 -1
  627. package/dist/core/entities/role/types.d.ts +1 -2
  628. package/dist/core/entities/role/types.d.ts.map +1 -1
  629. package/dist/core/entities/role-attribute/service.d.ts +2 -3
  630. package/dist/core/entities/role-attribute/service.d.ts.map +1 -1
  631. package/dist/core/entities/role-attribute/service.mjs +5 -5
  632. package/dist/core/entities/role-attribute/service.mjs.map +1 -1
  633. package/dist/core/entities/role-attribute/types.d.ts +1 -2
  634. package/dist/core/entities/role-attribute/types.d.ts.map +1 -1
  635. package/dist/core/entities/role-permission/service.d.ts +2 -3
  636. package/dist/core/entities/role-permission/service.d.ts.map +1 -1
  637. package/dist/core/entities/role-permission/service.mjs +8 -7
  638. package/dist/core/entities/role-permission/service.mjs.map +1 -1
  639. package/dist/core/entities/role-permission/types.d.ts +1 -2
  640. package/dist/core/entities/role-permission/types.d.ts.map +1 -1
  641. package/dist/core/entities/scope/service.d.ts +2 -3
  642. package/dist/core/entities/scope/service.d.ts.map +1 -1
  643. package/dist/core/entities/scope/service.mjs +8 -8
  644. package/dist/core/entities/scope/service.mjs.map +1 -1
  645. package/dist/core/entities/scope/types.d.ts +1 -2
  646. package/dist/core/entities/scope/types.d.ts.map +1 -1
  647. package/dist/core/entities/user/service.d.ts +2 -3
  648. package/dist/core/entities/user/service.d.ts.map +1 -1
  649. package/dist/core/entities/user/service.mjs +8 -8
  650. package/dist/core/entities/user/service.mjs.map +1 -1
  651. package/dist/core/entities/user/types.d.ts +1 -2
  652. package/dist/core/entities/user/types.d.ts.map +1 -1
  653. package/dist/core/entities/user-attribute/service.d.ts +2 -3
  654. package/dist/core/entities/user-attribute/service.d.ts.map +1 -1
  655. package/dist/core/entities/user-attribute/service.mjs +8 -8
  656. package/dist/core/entities/user-attribute/service.mjs.map +1 -1
  657. package/dist/core/entities/user-attribute/types.d.ts +1 -2
  658. package/dist/core/entities/user-attribute/types.d.ts.map +1 -1
  659. package/dist/core/entities/user-permission/service.d.ts +2 -3
  660. package/dist/core/entities/user-permission/service.d.ts.map +1 -1
  661. package/dist/core/entities/user-permission/service.mjs +8 -7
  662. package/dist/core/entities/user-permission/service.mjs.map +1 -1
  663. package/dist/core/entities/user-permission/types.d.ts +1 -2
  664. package/dist/core/entities/user-permission/types.d.ts.map +1 -1
  665. package/dist/core/entities/user-role/service.d.ts +2 -3
  666. package/dist/core/entities/user-role/service.d.ts.map +1 -1
  667. package/dist/core/entities/user-role/service.mjs +9 -8
  668. package/dist/core/entities/user-role/service.mjs.map +1 -1
  669. package/dist/core/entities/user-role/types.d.ts +1 -2
  670. package/dist/core/entities/user-role/types.d.ts.map +1 -1
  671. package/dist/core/identity/index.d.ts +1 -0
  672. package/dist/core/identity/index.d.ts.map +1 -1
  673. package/dist/core/identity/index.mjs +4 -1
  674. package/dist/core/identity/password-recovery/check.d.ts +7 -0
  675. package/dist/core/identity/password-recovery/check.d.ts.map +1 -0
  676. package/dist/core/identity/password-recovery/check.mjs +24 -0
  677. package/dist/core/identity/password-recovery/check.mjs.map +1 -0
  678. package/dist/core/identity/password-recovery/disabled.d.ts +6 -0
  679. package/dist/core/identity/password-recovery/disabled.d.ts.map +1 -0
  680. package/dist/core/identity/password-recovery/disabled.mjs +16 -0
  681. package/dist/core/identity/password-recovery/disabled.mjs.map +1 -0
  682. package/dist/core/identity/password-recovery/email-verification-required.d.ts +6 -0
  683. package/dist/core/identity/password-recovery/email-verification-required.d.ts.map +1 -0
  684. package/dist/core/identity/password-recovery/email-verification-required.mjs +16 -0
  685. package/dist/core/identity/password-recovery/email-verification-required.mjs.map +1 -0
  686. package/dist/core/identity/password-recovery/service.d.ts.map +1 -1
  687. package/dist/core/identity/password-recovery/service.mjs +10 -7
  688. package/dist/core/identity/password-recovery/service.mjs.map +1 -1
  689. package/dist/core/identity/password-recovery/token-expired.d.ts +6 -0
  690. package/dist/core/identity/password-recovery/token-expired.d.ts.map +1 -0
  691. package/dist/core/identity/password-recovery/token-expired.mjs +16 -0
  692. package/dist/core/identity/password-recovery/token-expired.mjs.map +1 -0
  693. package/dist/core/identity/permission/checker/index.d.ts +3 -0
  694. package/dist/core/identity/permission/checker/index.d.ts.map +1 -0
  695. package/dist/core/identity/permission/checker/index.mjs +2 -0
  696. package/dist/core/identity/permission/checker/service.d.ts +10 -0
  697. package/dist/core/identity/permission/checker/service.d.ts.map +1 -0
  698. package/dist/core/identity/permission/checker/service.mjs +55 -0
  699. package/dist/core/identity/permission/checker/service.mjs.map +1 -0
  700. package/dist/core/identity/permission/checker/types.d.ts +42 -0
  701. package/dist/core/identity/permission/checker/types.d.ts.map +1 -0
  702. package/dist/core/identity/permission/identity-policy-data.d.ts +4 -0
  703. package/dist/core/identity/permission/identity-policy-data.d.ts.map +1 -0
  704. package/dist/core/identity/permission/identity-policy-data.mjs +23 -0
  705. package/dist/core/identity/permission/identity-policy-data.mjs.map +1 -0
  706. package/dist/core/identity/permission/index.d.ts +1 -0
  707. package/dist/core/identity/permission/index.d.ts.map +1 -1
  708. package/dist/core/identity/permission/index.mjs +3 -1
  709. package/dist/core/identity/permission/module.mjs.map +1 -1
  710. package/dist/core/identity/policy/checker/index.d.ts +3 -0
  711. package/dist/core/identity/policy/checker/index.d.ts.map +1 -0
  712. package/dist/core/identity/policy/checker/index.mjs +2 -0
  713. package/dist/core/identity/policy/checker/service.d.ts +10 -0
  714. package/dist/core/identity/policy/checker/service.d.ts.map +1 -0
  715. package/dist/core/identity/policy/checker/service.mjs +46 -0
  716. package/dist/core/identity/policy/checker/service.mjs.map +1 -0
  717. package/dist/core/identity/policy/checker/types.d.ts +40 -0
  718. package/dist/core/identity/policy/checker/types.d.ts.map +1 -0
  719. package/dist/core/identity/policy/index.d.ts +2 -0
  720. package/dist/core/identity/policy/index.d.ts.map +1 -0
  721. package/dist/core/identity/policy/index.mjs +3 -0
  722. package/dist/core/identity/provider/account/module.d.ts.map +1 -1
  723. package/dist/core/identity/provider/account/module.mjs +2 -2
  724. package/dist/core/identity/provider/account/module.mjs.map +1 -1
  725. package/dist/core/identity/provider/authentication/constants.mjs.map +1 -1
  726. package/dist/core/identity/provider/authentication/factory.mjs.map +1 -1
  727. package/dist/core/identity/provider/authentication/presets/facebook.mjs.map +1 -1
  728. package/dist/core/identity/provider/authentication/presets/github.mjs.map +1 -1
  729. package/dist/core/identity/provider/authentication/presets/google.mjs.map +1 -1
  730. package/dist/core/identity/provider/authentication/presets/instagram.mjs.map +1 -1
  731. package/dist/core/identity/provider/authentication/presets/paypal.mjs.map +1 -1
  732. package/dist/core/identity/provider/authentication/protocols/ldap/collection.d.ts.map +1 -1
  733. package/dist/core/identity/provider/authentication/protocols/ldap/collection.mjs +3 -2
  734. package/dist/core/identity/provider/authentication/protocols/ldap/collection.mjs.map +1 -1
  735. package/dist/core/identity/provider/authentication/protocols/ldap/module.d.ts.map +1 -1
  736. package/dist/core/identity/provider/authentication/protocols/ldap/module.mjs +7 -4
  737. package/dist/core/identity/provider/authentication/protocols/ldap/module.mjs.map +1 -1
  738. package/dist/core/identity/provider/authentication/protocols/oauth2/module.mjs.map +1 -1
  739. package/dist/core/identity/provider/authentication/protocols/open-id/module.mjs.map +1 -1
  740. package/dist/core/identity/provider/mapper/attributes/module.mjs.map +1 -1
  741. package/dist/core/identity/provider/mapper/base.mjs.map +1 -1
  742. package/dist/core/identity/provider/mapper/permission/module.mjs.map +1 -1
  743. package/dist/core/identity/provider/mapper/role/module.mjs.map +1 -1
  744. package/dist/core/identity/registration/check.d.ts +3 -0
  745. package/dist/core/identity/registration/check.d.ts.map +1 -0
  746. package/dist/core/identity/registration/check.mjs +12 -0
  747. package/dist/core/identity/registration/check.mjs.map +1 -0
  748. package/dist/core/identity/registration/error.d.ts +6 -0
  749. package/dist/core/identity/registration/error.d.ts.map +1 -0
  750. package/dist/core/identity/registration/error.mjs +16 -0
  751. package/dist/core/identity/registration/error.mjs.map +1 -0
  752. package/dist/core/identity/registration/service.d.ts.map +1 -1
  753. package/dist/core/identity/registration/service.mjs +4 -3
  754. package/dist/core/identity/registration/service.mjs.map +1 -1
  755. package/dist/core/identity/resolver/entities/ldap/module.mjs.map +1 -1
  756. package/dist/core/identity/resolver/module.mjs.map +1 -1
  757. package/dist/core/identity/role/module.mjs.map +1 -1
  758. package/dist/core/index.mjs +5 -4
  759. package/dist/core/oauth2/authorization/code/issuer/module.mjs.map +1 -1
  760. package/dist/core/oauth2/authorization/code/verifier/module.mjs +8 -8
  761. package/dist/core/oauth2/authorization/code/verifier/module.mjs.map +1 -1
  762. package/dist/core/oauth2/authorization/code-request/validator.mjs +2 -2
  763. package/dist/core/oauth2/authorization/code-request/validator.mjs.map +1 -1
  764. package/dist/core/oauth2/authorization/code-request/verifier/module.d.ts.map +1 -1
  765. package/dist/core/oauth2/authorization/code-request/verifier/module.mjs +8 -8
  766. package/dist/core/oauth2/authorization/code-request/verifier/module.mjs.map +1 -1
  767. package/dist/core/oauth2/authorization/helpers.mjs.map +1 -1
  768. package/dist/core/oauth2/authorization/module.d.ts.map +1 -1
  769. package/dist/core/oauth2/authorization/module.mjs +4 -4
  770. package/dist/core/oauth2/authorization/module.mjs.map +1 -1
  771. package/dist/core/oauth2/authorization/state/module.mjs +4 -4
  772. package/dist/core/oauth2/authorization/state/module.mjs.map +1 -1
  773. package/dist/core/oauth2/client/authenticator.mjs +6 -6
  774. package/dist/core/oauth2/client/authenticator.mjs.map +1 -1
  775. package/dist/core/oauth2/grant-types/authorize.mjs.map +1 -1
  776. package/dist/core/oauth2/grant-types/base.mjs.map +1 -1
  777. package/dist/core/oauth2/grant-types/client-credentials.mjs.map +1 -1
  778. package/dist/core/oauth2/grant-types/identity.mjs.map +1 -1
  779. package/dist/core/oauth2/grant-types/password.mjs.map +1 -1
  780. package/dist/core/oauth2/grant-types/refresh-token.mjs.map +1 -1
  781. package/dist/core/oauth2/grant-types/robot-credentials.mjs.map +1 -1
  782. package/dist/core/oauth2/helpers/error.d.ts +8 -0
  783. package/dist/core/oauth2/helpers/error.d.ts.map +1 -0
  784. package/dist/core/oauth2/helpers/error.mjs +26 -0
  785. package/dist/core/oauth2/helpers/error.mjs.map +1 -0
  786. package/dist/core/oauth2/helpers/index.d.ts +1 -1
  787. package/dist/core/oauth2/helpers/index.mjs +1 -1
  788. package/dist/core/oauth2/openid/claims.mjs.map +1 -1
  789. package/dist/core/oauth2/response/bearer.mjs.map +1 -1
  790. package/dist/core/oauth2/scope/resolver.mjs.map +1 -1
  791. package/dist/core/oauth2/token/issuer/access/module.mjs.map +1 -1
  792. package/dist/core/oauth2/token/issuer/base.mjs.map +1 -1
  793. package/dist/core/oauth2/token/issuer/open-id/module.mjs.map +1 -1
  794. package/dist/core/oauth2/token/issuer/refresh/module.mjs.map +1 -1
  795. package/dist/core/oauth2/token/revoker/module.mjs.map +1 -1
  796. package/dist/core/oauth2/token/signer/module.mjs.map +1 -1
  797. package/dist/core/oauth2/token/verifier/module.mjs.map +1 -1
  798. package/dist/core/provisioning/entities/client/relations-validator.mjs.map +1 -1
  799. package/dist/core/provisioning/entities/client/validator.mjs.map +1 -1
  800. package/dist/core/provisioning/entities/permission/validator.mjs.map +1 -1
  801. package/dist/core/provisioning/entities/realm/relations-validator.mjs.map +1 -1
  802. package/dist/core/provisioning/entities/realm/validator.mjs.map +1 -1
  803. package/dist/core/provisioning/entities/robot/relations-validator.mjs.map +1 -1
  804. package/dist/core/provisioning/entities/robot/validator.mjs.map +1 -1
  805. package/dist/core/provisioning/entities/role/relations-validator.mjs.map +1 -1
  806. package/dist/core/provisioning/entities/role/validator.mjs.map +1 -1
  807. package/dist/core/provisioning/entities/root/validator.mjs.map +1 -1
  808. package/dist/core/provisioning/entities/scope/validator.mjs.map +1 -1
  809. package/dist/core/provisioning/entities/user/relations-validator.mjs.map +1 -1
  810. package/dist/core/provisioning/entities/user/validator.mjs.map +1 -1
  811. package/dist/core/provisioning/strategy/normalize.mjs.map +1 -1
  812. package/dist/core/provisioning/strategy/validator.mjs.map +1 -1
  813. package/dist/core/provisioning/synchronizer/base.mjs.map +1 -1
  814. package/dist/core/provisioning/synchronizer/client/module.mjs.map +1 -1
  815. package/dist/core/provisioning/synchronizer/entity-resolver.d.ts +1 -1
  816. package/dist/core/provisioning/synchronizer/entity-resolver.d.ts.map +1 -1
  817. package/dist/core/provisioning/synchronizer/entity-resolver.mjs.map +1 -1
  818. package/dist/core/provisioning/synchronizer/junction-synchronizer.d.ts +1 -1
  819. package/dist/core/provisioning/synchronizer/junction-synchronizer.d.ts.map +1 -1
  820. package/dist/core/provisioning/synchronizer/junction-synchronizer.mjs.map +1 -1
  821. package/dist/core/provisioning/synchronizer/permission/module.mjs.map +1 -1
  822. package/dist/core/provisioning/synchronizer/policy/module.mjs.map +1 -1
  823. package/dist/core/provisioning/synchronizer/realm/module.mjs.map +1 -1
  824. package/dist/core/provisioning/synchronizer/robot/module.mjs.map +1 -1
  825. package/dist/core/provisioning/synchronizer/role/module.mjs.map +1 -1
  826. package/dist/core/provisioning/synchronizer/root/module.mjs.map +1 -1
  827. package/dist/core/provisioning/synchronizer/scope/module.mjs.map +1 -1
  828. package/dist/core/provisioning/synchronizer/user/module.mjs.map +1 -1
  829. package/dist/core/security/policy/engine.mjs.map +1 -1
  830. package/dist/core/security/policy/evaluator.mjs.map +1 -1
  831. package/dist/index.mjs +7 -7
  832. package/dist/path.mjs.map +1 -1
  833. package/dist/swagger.json +9413 -2773
  834. package/dist/ui/client/.vite/ssr-manifest.json +33 -113
  835. package/dist/ui/client/assets/index-BdPtpN2t.js +66 -0
  836. package/dist/ui/client/index.html +1 -1
  837. package/dist/ui/server/server.js +1483 -1066
  838. package/dist/utils/error.d.ts +13 -0
  839. package/dist/utils/error.d.ts.map +1 -1
  840. package/dist/utils/error.mjs +26 -24
  841. package/dist/utils/error.mjs.map +1 -1
  842. package/dist/utils/host.mjs.map +1 -1
  843. package/dist/utils/index.d.ts +1 -0
  844. package/dist/utils/index.d.ts.map +1 -1
  845. package/dist/utils/index.mjs +2 -1
  846. package/dist/utils/self-id.mjs.map +1 -1
  847. package/dist/utils/url.d.ts +10 -0
  848. package/dist/utils/url.d.ts.map +1 -0
  849. package/dist/utils/url.mjs +17 -0
  850. package/dist/utils/url.mjs.map +1 -0
  851. package/package.json +32 -33
  852. package/dist/adapters/http/server/index.d.ts +0 -3
  853. package/dist/adapters/http/server/index.d.ts.map +0 -1
  854. package/dist/adapters/http/server/index.mjs +0 -2
  855. package/dist/adapters/http/server/module.d.ts +0 -3
  856. package/dist/adapters/http/server/module.d.ts.map +0 -1
  857. package/dist/adapters/http/server/module.mjs +0 -10
  858. package/dist/adapters/http/server/module.mjs.map +0 -1
  859. package/dist/adapters/http/server/type.d.ts +0 -8
  860. package/dist/adapters/http/server/type.d.ts.map +0 -1
  861. package/dist/adapters/http/swagger/index.d.ts +0 -3
  862. package/dist/adapters/http/swagger/index.d.ts.map +0 -1
  863. package/dist/adapters/http/swagger/index.mjs +0 -2
  864. package/dist/adapters/http/swagger/module.d.ts +0 -12
  865. package/dist/adapters/http/swagger/module.d.ts.map +0 -1
  866. package/dist/adapters/http/swagger/module.mjs +0 -75
  867. package/dist/adapters/http/swagger/module.mjs.map +0 -1
  868. package/dist/adapters/http/swagger/type.d.ts +0 -4
  869. package/dist/adapters/http/swagger/type.d.ts.map +0 -1
  870. package/dist/adapters/http/swagger/type.mjs +0 -1
  871. package/dist/app/modules/swagger/index.d.ts +0 -2
  872. package/dist/app/modules/swagger/index.d.ts.map +0 -1
  873. package/dist/app/modules/swagger/index.mjs +0 -2
  874. package/dist/app/modules/swagger/module.d.ts +0 -9
  875. package/dist/app/modules/swagger/module.d.ts.map +0 -1
  876. package/dist/app/modules/swagger/module.mjs +0 -32
  877. package/dist/app/modules/swagger/module.mjs.map +0 -1
  878. package/dist/cli/commands/swagger.d.ts +0 -8
  879. package/dist/cli/commands/swagger.d.ts.map +0 -1
  880. package/dist/cli/commands/swagger.mjs +0 -29
  881. package/dist/cli/commands/swagger.mjs.map +0 -1
  882. package/dist/core/entities/actor/index.d.ts +0 -2
  883. package/dist/core/entities/actor/index.d.ts.map +0 -1
  884. package/dist/core/entities/actor/index.mjs +0 -1
  885. package/dist/core/entities/actor/types.d.ts +0 -7
  886. package/dist/core/entities/actor/types.d.ts.map +0 -1
  887. package/dist/core/entities/service.d.ts +0 -6
  888. package/dist/core/entities/service.d.ts.map +0 -1
  889. package/dist/core/entities/service.mjs +0 -21
  890. package/dist/core/entities/service.mjs.map +0 -1
  891. package/dist/core/entities/types.d.ts +0 -22
  892. package/dist/core/entities/types.d.ts.map +0 -1
  893. package/dist/core/oauth2/helpers/erorr.d.ts +0 -9
  894. package/dist/core/oauth2/helpers/erorr.d.ts.map +0 -1
  895. package/dist/core/oauth2/helpers/erorr.mjs +0 -26
  896. package/dist/core/oauth2/helpers/erorr.mjs.map +0 -1
  897. package/dist/ui/client/assets/index-Noe7uiOY.js +0 -41
  898. /package/dist/{core/entities/actor → adapters/http/middleware/built-in/realm-resolver}/types.mjs +0 -0
  899. /package/dist/core/{entities → identity/permission/checker}/types.mjs +0 -0
  900. /package/dist/{adapters/http/server/type.mjs → core/identity/policy/checker/types.mjs} +0 -0
@@ -48,7 +48,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
48
48
  //#endregion
49
49
  //#region ../../node_modules/@vue/shared/dist/shared.cjs.prod.js
50
50
  /**
51
- * @vue/shared v3.5.33
51
+ * @vue/shared v3.5.34
52
52
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
53
53
  * @license MIT
54
54
  **/
@@ -3662,7 +3662,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
3662
3662
  }
3663
3663
  flowParseDeclareVariable(node) {
3664
3664
  this.next();
3665
- node.id = this.flowParseTypeAnnotatableIdentifier(true);
3665
+ node.id = this.flowParseTypeAnnotatableIdentifier();
3666
3666
  this.scope.declareName(node.id.name, 5, node.id.loc.start);
3667
3667
  this.semicolon();
3668
3668
  return this.finishNode(node, "DeclareVariable");
@@ -3806,9 +3806,14 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
3806
3806
  if (!reservedTypes.has(word)) return;
3807
3807
  this.raise(declaration ? FlowErrors.AssignReservedType : FlowErrors.UnexpectedReservedType, startLoc, { reservedType: word });
3808
3808
  }
3809
- flowParseRestrictedIdentifier(liberal, declaration) {
3809
+ flowParseRestrictedIdentifierName(liberal, declaration) {
3810
3810
  this.checkReservedType(this.state.value, this.state.startLoc, declaration);
3811
- return this.parseIdentifier(liberal);
3811
+ return this.parseIdentifierName(liberal);
3812
+ }
3813
+ flowParseRestrictedIdentifier(liberal, declaration) {
3814
+ const node = this.startNode();
3815
+ const name = this.flowParseRestrictedIdentifierName(liberal, declaration);
3816
+ return this.createIdentifier(node, name);
3812
3817
  }
3813
3818
  flowParseTypeAlias(node) {
3814
3819
  node.id = this.flowParseRestrictedIdentifier(false, true);
@@ -3832,14 +3837,21 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
3832
3837
  this.semicolon();
3833
3838
  return this.finishNode(node, "OpaqueType");
3834
3839
  }
3840
+ flowParseTypeParameterBound() {
3841
+ if (this.match(14) || this.isContextual(81)) {
3842
+ const node = this.startNode();
3843
+ this.next();
3844
+ node.typeAnnotation = this.flowParseType();
3845
+ return this.finishNode(node, "TypeAnnotation");
3846
+ }
3847
+ }
3835
3848
  flowParseTypeParameter(requireDefault = false) {
3836
3849
  const nodeStartLoc = this.state.startLoc;
3837
3850
  const node = this.startNode();
3838
3851
  const variance = this.flowParseVariance();
3839
- const ident = this.flowParseTypeAnnotatableIdentifier();
3840
- node.name = ident.name;
3852
+ node.name = this.flowParseRestrictedIdentifierName();
3841
3853
  node.variance = variance;
3842
- node.bound = ident.typeAnnotation;
3854
+ node.bound = this.flowParseTypeParameterBound();
3843
3855
  if (this.match(29)) {
3844
3856
  this.eat(29);
3845
3857
  node.default = this.flowParseType();
@@ -4397,13 +4409,11 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
4397
4409
  node.typeAnnotation = this.flowParseTypeInitialiser();
4398
4410
  return this.finishNode(node, "TypeAnnotation");
4399
4411
  }
4400
- flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) {
4401
- const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
4402
- if (this.match(14)) {
4403
- ident.typeAnnotation = this.flowParseTypeAnnotation();
4404
- this.resetEndLocation(ident);
4405
- }
4406
- return ident;
4412
+ flowParseTypeAnnotatableIdentifier() {
4413
+ const node = this.startNode();
4414
+ const name = this.parseIdentifierName();
4415
+ if (this.match(14)) node.typeAnnotation = this.flowParseTypeAnnotation();
4416
+ return this.createIdentifier(node, name);
4407
4417
  }
4408
4418
  typeCastToParameter(node) {
4409
4419
  node.expression.typeAnnotation = node.typeAnnotation;
@@ -6199,6 +6209,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
6199
6209
  adjustInnerComments(node, node.properties, commentWS);
6200
6210
  break;
6201
6211
  case "CallExpression":
6212
+ case "NewExpression":
6202
6213
  case "OptionalCallExpression":
6203
6214
  adjustInnerComments(node, node.arguments, commentWS);
6204
6215
  break;
@@ -6211,6 +6222,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
6211
6222
  case "ObjectMethod":
6212
6223
  case "ClassMethod":
6213
6224
  case "ClassPrivateMethod":
6225
+ case "TSTypeParameterDeclaration":
6214
6226
  adjustInnerComments(node, node.params, commentWS);
6215
6227
  break;
6216
6228
  case "ArrayExpression":
@@ -6227,6 +6239,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin$2(((exports) => {
6227
6239
  case "TSEnumBody":
6228
6240
  adjustInnerComments(node, node.members, commentWS);
6229
6241
  break;
6242
+ case "TSInterfaceBody":
6243
+ adjustInnerComments(node, node.body, commentWS);
6244
+ break;
6230
6245
  default:
6231
6246
  if (node.type === "RecordExpression") {
6232
6247
  adjustInnerComments(node, node.properties, commentWS);
@@ -16039,7 +16054,7 @@ var require_source_map = /* @__PURE__ */ __commonJSMin$2(((exports) => {
16039
16054
  //#endregion
16040
16055
  //#region ../../node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
16041
16056
  /**
16042
- * @vue/compiler-core v3.5.33
16057
+ * @vue/compiler-core v3.5.34
16043
16058
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16044
16059
  * @license MIT
16045
16060
  **/
@@ -20798,7 +20813,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
20798
20813
  //#endregion
20799
20814
  //#region ../../node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
20800
20815
  /**
20801
- * @vue/compiler-dom v3.5.33
20816
+ * @vue/compiler-dom v3.5.34
20802
20817
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
20803
20818
  * @license MIT
20804
20819
  **/
@@ -21233,7 +21248,7 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =
21233
21248
  //#endregion
21234
21249
  //#region ../../node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js
21235
21250
  /**
21236
- * @vue/reactivity v3.5.33
21251
+ * @vue/reactivity v3.5.34
21237
21252
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21238
21253
  * @license MIT
21239
21254
  **/
@@ -21261,9 +21276,15 @@ var require_reactivity_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =>
21261
21276
  */
21262
21277
  this.cleanups = [];
21263
21278
  this._isPaused = false;
21279
+ this._warnOnRun = true;
21264
21280
  this.__v_skip = true;
21265
- this.parent = activeEffectScope;
21266
- if (!detached && activeEffectScope) this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
21281
+ if (!detached && activeEffectScope) if (activeEffectScope.active) {
21282
+ this.parent = activeEffectScope;
21283
+ this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
21284
+ } else {
21285
+ this._active = false;
21286
+ this._warnOnRun = false;
21287
+ }
21267
21288
  }
21268
21289
  get active() {
21269
21290
  return this._active;
@@ -21406,7 +21427,8 @@ var require_reactivity_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =>
21406
21427
  */
21407
21428
  this.cleanup = void 0;
21408
21429
  this.scheduler = void 0;
21409
- if (activeEffectScope && activeEffectScope.active) activeEffectScope.effects.push(this);
21430
+ if (activeEffectScope) if (activeEffectScope.active) activeEffectScope.effects.push(this);
21431
+ else this.flags &= -2;
21410
21432
  }
21411
21433
  pause() {
21412
21434
  this.flags |= 64;
@@ -22735,7 +22757,7 @@ var require_reactivity_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =>
22735
22757
  //#endregion
22736
22758
  //#region ../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js
22737
22759
  /**
22738
- * @vue/runtime-core v3.5.33
22760
+ * @vue/runtime-core v3.5.34
22739
22761
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
22740
22762
  * @license MIT
22741
22763
  **/
@@ -26228,15 +26250,19 @@ var require_runtime_core_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =
26228
26250
  if (suspense.isHydrating) suspense.isHydrating = false;
26229
26251
  else if (!resume) {
26230
26252
  delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
26253
+ let hasUpdatedAnchor = false;
26231
26254
  if (delayEnter) activeBranch.transition.afterLeave = () => {
26232
26255
  if (pendingId === suspense.pendingId) {
26233
- move(pendingBranch, container2, anchor === initialAnchor ? next(activeBranch) : anchor, 0);
26256
+ move(pendingBranch, container2, anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor, 0);
26234
26257
  queuePostFlushCb(effects);
26235
26258
  if (isInFallback && vnode2.ssFallback) vnode2.ssFallback.el = null;
26236
26259
  }
26237
26260
  };
26238
26261
  if (activeBranch && !suspense.isFallbackMountPending) {
26239
- if (parentNode(activeBranch.el) === container2) anchor = next(activeBranch);
26262
+ if (parentNode(activeBranch.el) === container2) {
26263
+ anchor = next(activeBranch);
26264
+ hasUpdatedAnchor = true;
26265
+ }
26240
26266
  unmount(activeBranch, parentComponent2, suspense, true);
26241
26267
  if (!delayEnter && isInFallback && vnode2.ssFallback) queuePostRenderEffect(() => vnode2.ssFallback.el = null, suspense);
26242
26268
  }
@@ -26864,7 +26890,7 @@ var require_runtime_core_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =
26864
26890
  if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
26865
26891
  return true;
26866
26892
  }
26867
- var version = "3.5.33";
26893
+ var version = "3.5.34";
26868
26894
  var warn$1 = shared.NOOP;
26869
26895
  var ErrorTypeStrings = ErrorTypeStrings$1;
26870
26896
  var devtools = void 0;
@@ -27034,7 +27060,7 @@ var require_runtime_core_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =
27034
27060
  //#endregion
27035
27061
  //#region ../../node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js
27036
27062
  /**
27037
- * @vue/runtime-dom v3.5.33
27063
+ * @vue/runtime-dom v3.5.34
27038
27064
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
27039
27065
  * @license MIT
27040
27066
  **/
@@ -28381,7 +28407,7 @@ var require_runtime_dom_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) =>
28381
28407
  //#endregion
28382
28408
  //#region ../../node_modules/vue/dist/vue.cjs.prod.js
28383
28409
  /**
28384
- * vue v3.5.33
28410
+ * vue v3.5.34
28385
28411
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
28386
28412
  * @license MIT
28387
28413
  **/
@@ -28428,7 +28454,7 @@ var require_vue_cjs_prod = /* @__PURE__ */ __commonJSMin$2(((exports) => {
28428
28454
  //#endregion
28429
28455
  //#region ../../node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js
28430
28456
  /**
28431
- * @vue/compiler-ssr v3.5.33
28457
+ * @vue/compiler-ssr v3.5.34
28432
28458
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
28433
28459
  * @license MIT
28434
28460
  **/
@@ -29264,7 +29290,7 @@ var require_compiler_ssr_cjs = /* @__PURE__ */ __commonJSMin$2(((exports) => {
29264
29290
  //#endregion
29265
29291
  //#region ../../node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js
29266
29292
  /**
29267
- * @vue/server-renderer v3.5.33
29293
+ * @vue/server-renderer v3.5.34
29268
29294
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29269
29295
  * @license MIT
29270
29296
  **/
@@ -29771,7 +29797,7 @@ var Character$1;
29771
29797
  Character["WILDCARD"] = "*";
29772
29798
  Character["GLOBSTAR"] = "**";
29773
29799
  })(Character$1 || (Character$1 = {}));
29774
- function isObject$12(input) {
29800
+ function isObject$13(input) {
29775
29801
  return !!input && typeof input === "object" && !Array.isArray(input);
29776
29802
  }
29777
29803
  function getPathValue$1(data, path) {
@@ -29794,7 +29820,7 @@ function setPathValue$1(data, path, value) {
29794
29820
  let temp = data;
29795
29821
  let index = 0;
29796
29822
  while (index < parts.length) {
29797
- /* istanbul ignore next */ if (!Array.isArray(temp) && !isObject$12(temp)) break;
29823
+ /* istanbul ignore next */ if (!Array.isArray(temp) && !isObject$13(temp)) break;
29798
29824
  const key = parts[index];
29799
29825
  if (typeof temp[key] === "undefined") if (NUMBER_REGEX$1.test(key)) temp[key] = [];
29800
29826
  else temp[key] = {};
@@ -29809,12 +29835,7 @@ function setPathValue$1(data, path, value) {
29809
29835
  }
29810
29836
  //#endregion
29811
29837
  //#region ../../node_modules/smob/dist/index.mjs
29812
- var PriorityName = /* @__PURE__ */ function(PriorityName) {
29813
- PriorityName["LEFT"] = "left";
29814
- PriorityName["RIGHT"] = "right";
29815
- return PriorityName;
29816
- }({});
29817
- function isObject$11(item) {
29838
+ function isObject$12(item) {
29818
29839
  return !!item && typeof item === "object" && !Array.isArray(item);
29819
29840
  }
29820
29841
  function isSafeKey(key) {
@@ -29824,7 +29845,7 @@ function isEqual(x, y) {
29824
29845
  if (Object.is(x, y)) return true;
29825
29846
  if (x instanceof Date && y instanceof Date) return x.getTime() === y.getTime();
29826
29847
  if (x instanceof RegExp && y instanceof RegExp) return x.toString() === y.toString();
29827
- if (isObject$11(x) && isObject$11(y)) {
29848
+ if (isObject$12(x) && isObject$12(y)) {
29828
29849
  const keysX = Reflect.ownKeys(x);
29829
29850
  const keysY = Reflect.ownKeys(y);
29830
29851
  if (keysX.length !== keysY.length) return false;
@@ -29845,7 +29866,8 @@ function distinctArray(arr) {
29845
29866
  for (let i = 0; i < arr.length; i++) for (let j = arr.length - 1; j > i; j--) if (isEqual(arr[i], arr[j])) arr.splice(j, 1);
29846
29867
  return arr;
29847
29868
  }
29848
- /* istanbul ignore next */ var gT$1 = (() => {
29869
+ /* istanbul ignore next */
29870
+ var gT$1 = (() => {
29849
29871
  if (typeof globalThis !== "undefined") return globalThis;
29850
29872
  if (typeof self !== "undefined") return self;
29851
29873
  if (typeof window !== "undefined") return window;
@@ -29862,7 +29884,7 @@ function polyfillClone(input) {
29862
29884
  value.map((el) => cloned.push(fn(el)));
29863
29885
  return cloned;
29864
29886
  }
29865
- if (isObject$11(value)) {
29887
+ if (isObject$12(value)) {
29866
29888
  if (map.has(value)) return map.get(value);
29867
29889
  const output = {};
29868
29890
  const keys = Object.keys(value);
@@ -29874,9 +29896,11 @@ function polyfillClone(input) {
29874
29896
  };
29875
29897
  return fn(input);
29876
29898
  }
29877
- /* istanbul ignore next */ function clone$1(value) {
29899
+ /* istanbul ignore next */
29900
+ function clone$1(value) {
29878
29901
  if (gT$1.structuredClone) return gT$1.structuredClone(value);
29879
- /* istanbul ignore next */ return polyfillClone(value);
29902
+ /* istanbul ignore next */
29903
+ return polyfillClone(value);
29880
29904
  }
29881
29905
  function hasOwnProperty$5(obj, prop) {
29882
29906
  return Object.prototype.hasOwnProperty.call(obj, prop);
@@ -29886,12 +29910,12 @@ function buildOptions(options = {}) {
29886
29910
  options.arrayDistinct = options.arrayDistinct ?? false;
29887
29911
  options.clone = options.clone ?? false;
29888
29912
  options.inPlace = options.inPlace ?? false;
29889
- options.priority = options.priority || PriorityName.LEFT;
29913
+ options.priority = options.priority || "left";
29890
29914
  options.arrayPriority = options.arrayPriority || options.priority;
29891
29915
  return options;
29892
29916
  }
29893
29917
  function togglePriority(priority) {
29894
- return priority === PriorityName.LEFT ? `${PriorityName.RIGHT}` : `${PriorityName.LEFT}`;
29918
+ return priority === "left" ? `right` : `left`;
29895
29919
  }
29896
29920
  function baseMerger(context, ...sources) {
29897
29921
  let target;
@@ -29900,7 +29924,7 @@ function baseMerger(context, ...sources) {
29900
29924
  if (sources.length >= 2) {
29901
29925
  if (Array.isArray(sources.at(0)) && Array.isArray(sources.at(-1))) priority = context.options.arrayPriority;
29902
29926
  }
29903
- if (priority === PriorityName.RIGHT) {
29927
+ if (priority === "right") {
29904
29928
  target = sources.pop();
29905
29929
  source = sources.pop();
29906
29930
  } else {
@@ -29913,34 +29937,34 @@ function baseMerger(context, ...sources) {
29913
29937
  }
29914
29938
  if (Array.isArray(target) && Array.isArray(source)) {
29915
29939
  target.push(...source);
29916
- if (context.options.arrayPriority === PriorityName.RIGHT) return baseMerger(context, ...sources, target);
29940
+ if (context.options.arrayPriority === "right") return baseMerger(context, ...sources, target);
29917
29941
  return baseMerger(context, target, ...sources);
29918
29942
  }
29919
29943
  context.map.set(source, true);
29920
- if (isObject$11(target) && isObject$11(source)) {
29944
+ if (isObject$12(target) && isObject$12(source)) {
29921
29945
  const keys = Object.keys(source);
29922
29946
  for (let i = 0; i < keys.length; i++) {
29923
29947
  const key = keys[i];
29948
+ if (!isSafeKey(key)) continue;
29924
29949
  if (hasOwnProperty$5(target, key)) {
29925
- if (!isSafeKey(key)) continue;
29926
29950
  if (context.options.strategy) {
29927
29951
  if (typeof context.options.strategy(target, key, source[key]) !== "undefined") continue;
29928
29952
  }
29929
- if (isObject$11(target[key]) && isObject$11(source[key])) {
29953
+ if (isObject$12(target[key]) && isObject$12(source[key])) {
29930
29954
  if (context.map.has(source[key])) {
29931
29955
  const sourceKeys = Object.keys(source[key]);
29932
29956
  for (let j = 0; j < sourceKeys.length; j++) if (isSafeKey(sourceKeys[j]) && !hasOwnProperty$5(target[key], sourceKeys[j])) target[key][sourceKeys[j]] = source[key][sourceKeys[j]];
29933
29957
  continue;
29934
29958
  }
29935
- if (context.options.priority === PriorityName.RIGHT) target[key] = baseMerger(context, source[key], target[key]);
29959
+ if (context.options.priority === "right") target[key] = baseMerger(context, source[key], target[key]);
29936
29960
  else target[key] = baseMerger(context, target[key], source[key]);
29937
29961
  continue;
29938
29962
  }
29939
29963
  if (context.options.array && Array.isArray(target[key]) && Array.isArray(source[key])) switch (context.options.priority !== context.options.arrayPriority ? togglePriority(context.options.arrayPriority) : context.options.arrayPriority) {
29940
- case PriorityName.LEFT:
29964
+ case "left":
29941
29965
  Object.assign(target, { [key]: baseMerger(context, target[key], source[key]) });
29942
29966
  break;
29943
- case PriorityName.RIGHT:
29967
+ case "right":
29944
29968
  Object.assign(target, { [key]: baseMerger(context, source[key], target[key]) });
29945
29969
  break;
29946
29970
  }
@@ -29948,7 +29972,7 @@ function baseMerger(context, ...sources) {
29948
29972
  }
29949
29973
  }
29950
29974
  context.map = /* @__PURE__ */ new WeakMap();
29951
- if (context.options.priority === PriorityName.RIGHT) return baseMerger(context, ...sources, target);
29975
+ if (context.options.priority === "right") return baseMerger(context, ...sources, target);
29952
29976
  return baseMerger(context, target, ...sources);
29953
29977
  }
29954
29978
  function createMerger(input) {
@@ -29961,15 +29985,15 @@ function createMerger(input) {
29961
29985
  };
29962
29986
  if (options.clone) return baseMerger(ctx, ...clone$1(sources));
29963
29987
  if (!options.inPlace) {
29964
- if (Array.isArray(sources.at(0)) && options.arrayPriority === PriorityName.LEFT) {
29988
+ if (Array.isArray(sources.at(0)) && options.arrayPriority === "left") {
29965
29989
  sources.unshift([]);
29966
29990
  return baseMerger(ctx, ...sources);
29967
29991
  }
29968
- if (Array.isArray(sources.at(-1)) && options.arrayPriority === PriorityName.RIGHT) {
29992
+ if (Array.isArray(sources.at(-1)) && options.arrayPriority === "right") {
29969
29993
  sources.push([]);
29970
29994
  return baseMerger(ctx, ...sources);
29971
29995
  }
29972
- if (options.priority === PriorityName.LEFT) sources.unshift({});
29996
+ if (options.priority === "left") sources.unshift({});
29973
29997
  else sources.push({});
29974
29998
  }
29975
29999
  return baseMerger(ctx, ...sources);
@@ -29979,7 +30003,7 @@ var merge$2 = createMerger();
29979
30003
  //#endregion
29980
30004
  //#region ../../node_modules/vue/dist/vue.cjs.js
29981
30005
  /**
29982
- * vue v3.5.33
30006
+ * vue v3.5.34
29983
30007
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29984
30008
  * @license MIT
29985
30009
  **/
@@ -30116,7 +30140,7 @@ function inject$8(key, instance) {
30116
30140
  if (instance && instance._context && instance._context.provides && instance._context.provides[key]) return instance._context.provides[key];
30117
30141
  if ((0, vue_exports.hasInjectionContext)()) return (0, vue_exports.inject)(key, void 0);
30118
30142
  }
30119
- function isObject$10(input) {
30143
+ function isObject$11(input) {
30120
30144
  return typeof input === "object" && input !== null && !Array.isArray(input) && !!input;
30121
30145
  }
30122
30146
  /**
@@ -30142,7 +30166,7 @@ function isObject$10(input) {
30142
30166
  return [];
30143
30167
  }
30144
30168
  function isPromise$1(p) {
30145
- return isObject$10(p) && (p instanceof Promise || typeof p.then === "function");
30169
+ return isObject$11(p) && (p instanceof Promise || typeof p.then === "function");
30146
30170
  }
30147
30171
  function provide$6(key, value, app) {
30148
30172
  if (typeof app === "undefined") {
@@ -30210,19 +30234,19 @@ function mergeVNodeOption(key, target, source) {
30210
30234
  }
30211
30235
  function mergeOption(key, target, source) {
30212
30236
  if (isVNodeOption(key)) return mergeVNodeOption(key, target, source);
30213
- if (isObject$11(target) && isObject$11(source)) return merge$2(target, source);
30237
+ if (isObject$12(target) && isObject$12(source)) return merge$2(target, source);
30214
30238
  return target ?? source;
30215
30239
  }
30216
30240
  function isComponentOptionInputConfigWithPresets(input) {
30217
- if (!isObject$11(input)) return false;
30241
+ if (!isObject$12(input)) return false;
30218
30242
  const { presets } = input;
30219
- if (!isObject$11(presets)) return false;
30243
+ if (!isObject$12(presets)) return false;
30220
30244
  const keys = Object.keys(presets);
30221
30245
  for (let i = 0; i < keys.length; i++) if (!hasOwnProperty$4(presets, keys[i]) || typeof presets[keys[i]] !== "boolean") return false;
30222
30246
  return true;
30223
30247
  }
30224
30248
  function isComponentOptionInputConfigWithDefaults(input) {
30225
- if (!isObject$11(input)) return false;
30249
+ if (!isObject$12(input)) return false;
30226
30250
  const { defaults } = input;
30227
30251
  return typeof defaults === "boolean";
30228
30252
  }
@@ -30295,7 +30319,7 @@ var isClient$1 = typeof window !== "undefined" && typeof document !== "undefined
30295
30319
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
30296
30320
  var notNullish = (val) => val != null;
30297
30321
  var toString$1 = Object.prototype.toString;
30298
- var isObject$9 = (val) => toString$1.call(val) === "[object Object]";
30322
+ var isObject$10 = (val) => toString$1.call(val) === "[object Object]";
30299
30323
  var noop$1 = () => {};
30300
30324
  var isIOS = /* @__PURE__ */ getIsIOS();
30301
30325
  function getIsIOS() {
@@ -30324,13 +30348,13 @@ function debounceFilter(ms, options = {}) {
30324
30348
  let timer;
30325
30349
  let maxTimer;
30326
30350
  let lastRejector = noop$1;
30327
- const _clearTimeout = (timer$1) => {
30328
- clearTimeout(timer$1);
30351
+ const _clearTimeout = (timer) => {
30352
+ clearTimeout(timer);
30329
30353
  lastRejector();
30330
30354
  lastRejector = noop$1;
30331
30355
  };
30332
30356
  let lastInvoker;
30333
- const filter = (invoke$1) => {
30357
+ const filter = (invoke) => {
30334
30358
  const duration = (0, vue_exports.toValue)(ms);
30335
30359
  const maxDuration = (0, vue_exports.toValue)(options.maxWait);
30336
30360
  if (timer) _clearTimeout(timer);
@@ -30339,11 +30363,11 @@ function debounceFilter(ms, options = {}) {
30339
30363
  _clearTimeout(maxTimer);
30340
30364
  maxTimer = void 0;
30341
30365
  }
30342
- return Promise.resolve(invoke$1());
30366
+ return Promise.resolve(invoke());
30343
30367
  }
30344
30368
  return new Promise((resolve, reject) => {
30345
30369
  lastRejector = options.rejectOnCancel ? reject : resolve;
30346
- lastInvoker = invoke$1;
30370
+ lastInvoker = invoke;
30347
30371
  if (maxDuration && !maxTimer) maxTimer = setTimeout(() => {
30348
30372
  if (timer) _clearTimeout(timer);
30349
30373
  maxTimer = void 0;
@@ -30352,7 +30376,7 @@ function debounceFilter(ms, options = {}) {
30352
30376
  timer = setTimeout(() => {
30353
30377
  if (maxTimer) _clearTimeout(maxTimer);
30354
30378
  maxTimer = void 0;
30355
- resolve(invoke$1());
30379
+ resolve(invoke());
30356
30380
  }, duration);
30357
30381
  });
30358
30382
  };
@@ -30381,23 +30405,23 @@ function throttleFilter(...args) {
30381
30405
  const filter = (_invoke) => {
30382
30406
  const duration = (0, vue_exports.toValue)(ms);
30383
30407
  const elapsed = Date.now() - lastExec;
30384
- const invoke$1 = () => {
30408
+ const invoke = () => {
30385
30409
  return lastValue = _invoke();
30386
30410
  };
30387
30411
  clear();
30388
30412
  if (duration <= 0) {
30389
30413
  lastExec = Date.now();
30390
- return invoke$1();
30414
+ return invoke();
30391
30415
  }
30392
30416
  if (elapsed > duration) {
30393
30417
  lastExec = Date.now();
30394
- if (leading || !isLeading) invoke$1();
30418
+ if (leading || !isLeading) invoke();
30395
30419
  } else if (trailing) lastValue = new Promise((resolve, reject) => {
30396
30420
  lastRejector = rejectOnCancel ? reject : resolve;
30397
30421
  timer = setTimeout(() => {
30398
30422
  lastExec = Date.now();
30399
30423
  isLeading = true;
30400
- resolve(invoke$1());
30424
+ resolve(invoke());
30401
30425
  clear();
30402
30426
  }, Math.max(0, duration - elapsed));
30403
30427
  });
@@ -30410,18 +30434,6 @@ function throttleFilter(...args) {
30410
30434
  function toArray(value) {
30411
30435
  return Array.isArray(value) ? value : [value];
30412
30436
  }
30413
- function cacheStringFunction(fn) {
30414
- const cache = Object.create(null);
30415
- return ((str) => {
30416
- return cache[str] || (cache[str] = fn(str));
30417
- });
30418
- }
30419
- var hyphenateRE = /\B([A-Z])/g;
30420
- cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
30421
- var camelizeRE = /-(\w)/g;
30422
- cacheStringFunction((str) => {
30423
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
30424
- });
30425
30437
  function getLifeCycleTarget(target) {
30426
30438
  return target || (0, vue_exports.getCurrentInstance)();
30427
30439
  }
@@ -30578,7 +30590,7 @@ function useEventListener(...args) {
30578
30590
  ];
30579
30591
  }, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
30580
30592
  if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
30581
- const optionsClone = isObject$9(raw_options) ? { ...raw_options } : raw_options;
30593
+ const optionsClone = isObject$10(raw_options) ? { ...raw_options } : raw_options;
30582
30594
  const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
30583
30595
  onCleanup(() => {
30584
30596
  cleanups.forEach((fn) => fn());
@@ -30587,8 +30599,8 @@ function useEventListener(...args) {
30587
30599
  }
30588
30600
  var _iOSWorkaround = false;
30589
30601
  function onClickOutside(target, handler, options = {}) {
30590
- const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
30591
- if (!window$1) return controls ? {
30602
+ const { window = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
30603
+ if (!window) return controls ? {
30592
30604
  stop: noop$1,
30593
30605
  cancel: noop$1,
30594
30606
  trigger: noop$1
@@ -30596,15 +30608,15 @@ function onClickOutside(target, handler, options = {}) {
30596
30608
  if (isIOS && !_iOSWorkaround) {
30597
30609
  _iOSWorkaround = true;
30598
30610
  const listenerOptions = { passive: true };
30599
- Array.from(window$1.document.body.children).forEach((el) => el.addEventListener("click", noop$1, listenerOptions));
30600
- window$1.document.documentElement.addEventListener("click", noop$1, listenerOptions);
30611
+ Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop$1, listenerOptions));
30612
+ window.document.documentElement.addEventListener("click", noop$1, listenerOptions);
30601
30613
  }
30602
30614
  let shouldListen = true;
30603
30615
  const shouldIgnore = (event) => {
30604
- return (0, vue_exports.toValue)(ignore).some((target$1) => {
30605
- if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
30616
+ return (0, vue_exports.toValue)(ignore).some((target) => {
30617
+ if (typeof target === "string") return Array.from(window.document.querySelectorAll(target)).some((el) => el === event.target || event.composedPath().includes(el));
30606
30618
  else {
30607
- const el = unrefElement(target$1);
30619
+ const el = unrefElement(target);
30608
30620
  return el && (event.target === el || event.composedPath().includes(el));
30609
30621
  }
30610
30622
  });
@@ -30613,12 +30625,12 @@ function onClickOutside(target, handler, options = {}) {
30613
30625
  * Determines if the given target has multiple root elements.
30614
30626
  * Referenced from: https://github.com/vuejs/test-utils/blob/ccb460be55f9f6be05ab708500a41ec8adf6f4bc/src/vue-wrapper.ts#L21
30615
30627
  */
30616
- function hasMultipleRoots(target$1) {
30617
- const vm = (0, vue_exports.toValue)(target$1);
30628
+ function hasMultipleRoots(target) {
30629
+ const vm = (0, vue_exports.toValue)(target);
30618
30630
  return vm && vm.$.subTree.shapeFlag === 16;
30619
30631
  }
30620
- function checkMultipleRoots(target$1, event) {
30621
- const vm = (0, vue_exports.toValue)(target$1);
30632
+ function checkMultipleRoots(target, event) {
30633
+ const vm = (0, vue_exports.toValue)(target);
30622
30634
  const children = vm.$.subTree && vm.$.subTree.children;
30623
30635
  if (children == null || !Array.isArray(children)) return false;
30624
30636
  return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
@@ -30637,7 +30649,7 @@ function onClickOutside(target, handler, options = {}) {
30637
30649
  };
30638
30650
  let isProcessingClick = false;
30639
30651
  const cleanup = [
30640
- useEventListener(window$1, "click", (event) => {
30652
+ useEventListener(window, "click", (event) => {
30641
30653
  if (!isProcessingClick) {
30642
30654
  isProcessingClick = true;
30643
30655
  setTimeout(() => {
@@ -30649,15 +30661,16 @@ function onClickOutside(target, handler, options = {}) {
30649
30661
  passive: true,
30650
30662
  capture
30651
30663
  }),
30652
- useEventListener(window$1, "pointerdown", (e) => {
30664
+ useEventListener(window, "pointerdown", (e) => {
30653
30665
  const el = unrefElement(target);
30654
30666
  shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
30655
30667
  }, { passive: true }),
30656
- detectIframe && useEventListener(window$1, "blur", (event) => {
30668
+ detectIframe && useEventListener(window, "blur", (event) => {
30657
30669
  setTimeout(() => {
30658
- var _window$document$acti;
30659
30670
  const el = unrefElement(target);
30660
- if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
30671
+ let activeEl = window.document.activeElement;
30672
+ while (activeEl === null || activeEl === void 0 ? void 0 : activeEl.shadowRoot) activeEl = activeEl.shadowRoot.activeElement;
30673
+ if ((activeEl === null || activeEl === void 0 ? void 0 : activeEl.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window.document.activeElement))) handler(event);
30661
30674
  }, 0);
30662
30675
  }, { passive: true })
30663
30676
  ].filter(Boolean);
@@ -30708,9 +30721,9 @@ function useSupported(callback) {
30708
30721
  * @param options
30709
30722
  */
30710
30723
  function useMutationObserver(target, callback, options = {}) {
30711
- const { window: window$1 = defaultWindow, ...mutationOptions } = options;
30724
+ const { window = defaultWindow, ...mutationOptions } = options;
30712
30725
  let observer;
30713
- const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "MutationObserver" in window$1);
30726
+ const isSupported = /* @__PURE__ */ useSupported(() => window && "MutationObserver" in window);
30714
30727
  const cleanup = () => {
30715
30728
  if (observer) {
30716
30729
  observer.disconnect();
@@ -30745,7 +30758,7 @@ function useMutationObserver(target, callback, options = {}) {
30745
30758
  };
30746
30759
  }
30747
30760
  /**
30748
- * Detects that a target element's visibility.
30761
+ * Detects changes to a target element's visibility.
30749
30762
  *
30750
30763
  * @see https://vueuse.org/useIntersectionObserver
30751
30764
  * @param target
@@ -30753,8 +30766,8 @@ function useMutationObserver(target, callback, options = {}) {
30753
30766
  * @param options
30754
30767
  */
30755
30768
  function useIntersectionObserver(target, callback, options = {}) {
30756
- const { root, rootMargin, threshold = 0, window: window$1 = defaultWindow, immediate = true } = options;
30757
- const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "IntersectionObserver" in window$1);
30769
+ const { root, rootMargin, threshold = 0, window = defaultWindow, immediate = true } = options;
30770
+ const isSupported = /* @__PURE__ */ useSupported(() => window && "IntersectionObserver" in window);
30758
30771
  const targets = (0, vue_exports.computed)(() => {
30759
30772
  return toArray((0, vue_exports.toValue)(target)).map(unrefElement).filter(notNullish);
30760
30773
  });
@@ -30765,16 +30778,16 @@ function useIntersectionObserver(target, callback, options = {}) {
30765
30778
  unrefElement(root),
30766
30779
  (0, vue_exports.toValue)(rootMargin),
30767
30780
  isActive.value
30768
- ], ([targets$1, root$1, rootMargin$1]) => {
30781
+ ], ([targets, root, rootMargin]) => {
30769
30782
  cleanup();
30770
30783
  if (!isActive.value) return;
30771
- if (!targets$1.length) return;
30784
+ if (!targets.length) return;
30772
30785
  const observer = new IntersectionObserver(callback, {
30773
- root: unrefElement(root$1),
30774
- rootMargin: rootMargin$1,
30786
+ root: unrefElement(root),
30787
+ rootMargin,
30775
30788
  threshold
30776
30789
  });
30777
- targets$1.forEach((el) => el && observer.observe(el));
30790
+ targets.forEach((el) => el && observer.observe(el));
30778
30791
  cleanup = () => {
30779
30792
  observer.disconnect();
30780
30793
  cleanup = noop$1;
@@ -30802,32 +30815,30 @@ function useIntersectionObserver(target, callback, options = {}) {
30802
30815
  stop
30803
30816
  };
30804
30817
  }
30805
- /**
30806
- * Tracks the visibility of an element within the viewport.
30807
- *
30808
- * @see https://vueuse.org/useElementVisibility
30809
- */
30810
30818
  function useElementVisibility(element, options = {}) {
30811
- const { window: window$1 = defaultWindow, scrollTarget, threshold = 0, rootMargin, once = false, initialValue = false } = options;
30812
- const elementIsVisible = (0, vue_exports.shallowRef)(initialValue);
30813
- const { stop } = useIntersectionObserver(element, (intersectionObserverEntries) => {
30814
- let isIntersecting = elementIsVisible.value;
30819
+ const { window = defaultWindow, scrollTarget, threshold = 0, rootMargin, once = false, initialValue = false } = options;
30820
+ const isVisible = (0, vue_exports.shallowRef)(initialValue);
30821
+ const observerController = useIntersectionObserver(element, (intersectionObserverEntries) => {
30822
+ let isIntersecting = isVisible.value;
30815
30823
  let latestTime = 0;
30816
30824
  for (const entry of intersectionObserverEntries) if (entry.time >= latestTime) {
30817
30825
  latestTime = entry.time;
30818
30826
  isIntersecting = entry.isIntersecting;
30819
30827
  }
30820
- elementIsVisible.value = isIntersecting;
30821
- if (once) watchOnce(elementIsVisible, () => {
30822
- stop();
30828
+ isVisible.value = isIntersecting;
30829
+ if (once) watchOnce(isVisible, () => {
30830
+ observerController.stop();
30823
30831
  });
30824
30832
  }, {
30825
30833
  root: scrollTarget,
30826
- window: window$1,
30834
+ window,
30827
30835
  threshold,
30828
30836
  rootMargin
30829
30837
  });
30830
- return elementIsVisible;
30838
+ return options.controls ? {
30839
+ ...observerController,
30840
+ isVisible
30841
+ } : isVisible;
30831
30842
  }
30832
30843
  /**
30833
30844
  * Resolves an element from a given element, window, or document.
@@ -30862,7 +30873,7 @@ function useScroll(element, options = {}) {
30862
30873
  }, observe: _observe = { mutation: false }, eventListenerOptions = {
30863
30874
  capture: false,
30864
30875
  passive: true
30865
- }, behavior = "auto", window: window$1 = defaultWindow, onError = (e) => {
30876
+ }, behavior = "auto", window = defaultWindow, onError = (e) => {
30866
30877
  console.error(e);
30867
30878
  } } = options;
30868
30879
  const observe = typeof _observe === "boolean" ? { mutation: _observe } : _observe;
@@ -30872,24 +30883,24 @@ function useScroll(element, options = {}) {
30872
30883
  get() {
30873
30884
  return internalX.value;
30874
30885
  },
30875
- set(x$1) {
30876
- scrollTo(x$1, void 0);
30886
+ set(x) {
30887
+ scrollTo(x, void 0);
30877
30888
  }
30878
30889
  });
30879
30890
  const y = (0, vue_exports.computed)({
30880
30891
  get() {
30881
30892
  return internalY.value;
30882
30893
  },
30883
- set(y$1) {
30884
- scrollTo(void 0, y$1);
30894
+ set(y) {
30895
+ scrollTo(void 0, y);
30885
30896
  }
30886
30897
  });
30887
30898
  function scrollTo(_x, _y) {
30888
30899
  var _ref, _toValue, _toValue2, _document;
30889
- if (!window$1) return;
30900
+ if (!window) return;
30890
30901
  const _element = (0, vue_exports.toValue)(element);
30891
30902
  if (!_element) return;
30892
- (_ref = _element instanceof Document ? window$1.document.body : _element) === null || _ref === void 0 || _ref.scrollTo({
30903
+ (_ref = _element instanceof Document ? window.document.body : _element) === null || _ref === void 0 || _ref.scrollTo({
30893
30904
  top: (_toValue = (0, vue_exports.toValue)(_y)) !== null && _toValue !== void 0 ? _toValue : y.value,
30894
30905
  left: (_toValue2 = (0, vue_exports.toValue)(_x)) !== null && _toValue2 !== void 0 ? _toValue2 : x.value,
30895
30906
  behavior: (0, vue_exports.toValue)(behavior)
@@ -30923,9 +30934,9 @@ function useScroll(element, options = {}) {
30923
30934
  const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);
30924
30935
  const setArrivedState = (target) => {
30925
30936
  var _document2;
30926
- if (!window$1) return;
30937
+ if (!window) return;
30927
30938
  const el = (target === null || target === void 0 || (_document2 = target.document) === null || _document2 === void 0 ? void 0 : _document2.documentElement) || (target === null || target === void 0 ? void 0 : target.documentElement) || unrefElement(target);
30928
- const { display, flexDirection, direction } = window$1.getComputedStyle(el);
30939
+ const { display, flexDirection, direction } = window.getComputedStyle(el);
30929
30940
  const directionMultipler = direction === "rtl" ? -1 : 1;
30930
30941
  const scrollLeft = el.scrollLeft;
30931
30942
  directions.left = scrollLeft < internalX.value;
@@ -30941,7 +30952,7 @@ function useScroll(element, options = {}) {
30941
30952
  }
30942
30953
  internalX.value = scrollLeft;
30943
30954
  let scrollTop = el.scrollTop;
30944
- if (target === window$1.document && !scrollTop) scrollTop = window$1.document.body.scrollTop;
30955
+ if (target === window.document && !scrollTop) scrollTop = window.document.body.scrollTop;
30945
30956
  directions.top = scrollTop < internalY.value;
30946
30957
  directions.bottom = scrollTop > internalY.value;
30947
30958
  const top = Math.abs(scrollTop) <= (offset.top || 0);
@@ -30961,7 +30972,7 @@ function useScroll(element, options = {}) {
30961
30972
  };
30962
30973
  const onScrollHandler = (e) => {
30963
30974
  var _documentElement;
30964
- if (!window$1) return;
30975
+ if (!window) return;
30965
30976
  setArrivedState((_documentElement = e.target.documentElement) !== null && _documentElement !== void 0 ? _documentElement : e.target);
30966
30977
  isScrolling.value = true;
30967
30978
  onScrollEndDebounced(e);
@@ -30977,7 +30988,7 @@ function useScroll(element, options = {}) {
30977
30988
  onError(e);
30978
30989
  }
30979
30990
  });
30980
- if ((observe === null || observe === void 0 ? void 0 : observe.mutation) && element != null && element !== window$1 && element !== document) useMutationObserver(element, () => {
30991
+ if ((observe === null || observe === void 0 ? void 0 : observe.mutation) && element != null && element !== window && element !== document) useMutationObserver(element, () => {
30981
30992
  const _element = (0, vue_exports.toValue)(element);
30982
30993
  if (!_element) return;
30983
30994
  setArrivedState(_element);
@@ -30995,7 +31006,7 @@ function useScroll(element, options = {}) {
30995
31006
  directions,
30996
31007
  measure() {
30997
31008
  const _element = (0, vue_exports.toValue)(element);
30998
- if (window$1 && _element) setArrivedState(_element);
31009
+ if (window && _element) setArrivedState(_element);
30999
31010
  }
31000
31011
  };
31001
31012
  }
@@ -31014,7 +31025,7 @@ function useInfiniteScroll(element, onLoadMore, options = {}) {
31014
31025
  ...options.offset
31015
31026
  }
31016
31027
  }));
31017
- const promise = (0, vue_exports.ref)();
31028
+ const promise = (0, vue_exports.shallowRef)();
31018
31029
  const isLoading = (0, vue_exports.computed)(() => !!promise.value);
31019
31030
  const observedElement = (0, vue_exports.computed)(() => {
31020
31031
  return resolveElement((0, vue_exports.toValue)(element));
@@ -32526,49 +32537,114 @@ function install$4(instance, options = {}) {
32526
32537
  }
32527
32538
  var index$2 = { install: install$4 };
32528
32539
  //#endregion
32529
- //#region ../../node_modules/ebec/dist/index.mjs
32530
- function isObject$8(item) {
32540
+ //#region ../../node_modules/@ebec/core/dist/index.mjs
32541
+ function isErrorOptions(input) {
32542
+ if (!isObject$9(input)) return false;
32543
+ if (typeof input.message !== "undefined" && typeof input.message !== "string") return false;
32544
+ if (typeof input.stack !== "undefined" && typeof input.stack !== "string") return false;
32545
+ return typeof input.code === "undefined" || typeof input.code === "string";
32546
+ }
32547
+ function extractErrorOptions(input = {}) {
32548
+ if (typeof input === "string") return { message: input };
32549
+ return input;
32550
+ }
32551
+ function isObject$9(item) {
32531
32552
  return !!item && typeof item === "object" && !Array.isArray(item);
32532
32553
  }
32533
- function createExtractOptionsFn(fn) {
32534
- return (...input) => {
32535
- const output = {};
32536
- for (let i = 0; i < input.length; i++) {
32537
- const element = input[i];
32538
- if (typeof element === "string") {
32539
- output.message = element;
32540
- continue;
32541
- }
32542
- if (element instanceof Error) {
32543
- output.message = element.message;
32544
- output.stack = element.stack;
32545
- output.cause = element;
32546
- }
32547
- if (fn(element)) {
32548
- const keys = Object.keys(element);
32549
- for (let i = 0; i < keys.length; i++) output[keys[i]] = element[keys[i]];
32550
- }
32551
- }
32552
- return output;
32553
- };
32554
+ function isError$2(input) {
32555
+ if (!isObject$9(input)) return false;
32556
+ if (input instanceof Error) return true;
32557
+ return typeof input.message === "string" && (typeof input.name === "string" || typeof input.stack === "string");
32554
32558
  }
32555
- function isOptions$1(input) {
32556
- if (!isObject$8(input)) return false;
32557
- if (typeof input.message !== "undefined" && typeof input.message !== "string") return false;
32558
- if (typeof input.stack !== "undefined" && typeof input.stack !== "string") return false;
32559
- if (typeof input.code !== "undefined" && typeof input.code !== "number" && typeof input.code !== "string" && input.code !== null) return false;
32560
- if (typeof input.expose !== "undefined" && typeof input.expose !== "boolean") return false;
32561
- if (typeof input.logMessage !== "undefined" && typeof input.logMessage !== "boolean") return false;
32562
- return typeof input.logLevel === "undefined" || typeof input.logLevel === "number" || typeof input.logLevel === "string";
32559
+ /**
32560
+ * Property name used to store the cross-realm class-marker chain on instances.
32561
+ *
32562
+ * The chain is a `symbol[]` of `Symbol.for(...)` markers one per class in the
32563
+ * inheritance path. Stored as a non-enumerable, non-writable, non-configurable
32564
+ * property so it stays out of `Object.keys()` and `JSON.stringify()` output.
32565
+ */
32566
+ var INSTANCEOF_PROPERTY = "@instanceof";
32567
+ /**
32568
+ * Append a class-marker symbol to the receiver's `@instanceof` chain.
32569
+ *
32570
+ * Each error class declares a `Symbol.for(...)` marker for itself and calls
32571
+ * `markInstanceof(this, MY_MARKER)` from its constructor. Subclass instances
32572
+ * accumulate markers from every ancestor in the chain, so a parent-class
32573
+ * guard can fast-path-match a subclass instance.
32574
+ *
32575
+ * Idempotent — re-marking the same instance with the same symbol is a no-op.
32576
+ */
32577
+ function markInstanceof(target, marker) {
32578
+ const existing = target[INSTANCEOF_PROPERTY];
32579
+ if (Array.isArray(existing)) {
32580
+ if (!existing.includes(marker)) existing.push(marker);
32581
+ return;
32582
+ }
32583
+ Object.defineProperty(target, INSTANCEOF_PROPERTY, {
32584
+ value: [marker],
32585
+ writable: false,
32586
+ enumerable: false,
32587
+ configurable: false
32588
+ });
32563
32589
  }
32564
- var check$1 = createExtractOptionsFn(isOptions$1);
32565
- function extractOptions$1(...input) {
32566
- return check$1(...input);
32590
+ /**
32591
+ * Check whether the input's `@instanceof` chain contains `marker`.
32592
+ *
32593
+ * Returns `false` for non-objects, objects without the chain, or chains
32594
+ * stored as a non-array value (defensive).
32595
+ */
32596
+ function hasInstanceof(input, marker) {
32597
+ if (!isObject$9(input)) return false;
32598
+ const chain = input[INSTANCEOF_PROPERTY];
32599
+ return Array.isArray(chain) && chain.includes(marker);
32600
+ }
32601
+ var BASE_ERROR_INSTANCE$1 = Symbol.for("@ebec/core/BaseError");
32602
+ function isBaseError(input) {
32603
+ if (hasInstanceof(input, BASE_ERROR_INSTANCE$1)) return true;
32604
+ if (!isObject$9(input)) return false;
32605
+ if (isError$2(input) && isErrorOptions(input)) return typeof input.code === "string";
32606
+ if (!isErrorOptions(input)) return false;
32607
+ return typeof input.message === "string" && typeof input.code === "string";
32608
+ }
32609
+ function interpolate(str, data, regex = /\{(\w+)\}/g) {
32610
+ return Array.from(str.matchAll(regex)).reduce((acc, match) => {
32611
+ const key = match[1];
32612
+ if (key && typeof data[key] !== "undefined") return acc.replace(match[0], String(data[key]));
32613
+ return acc;
32614
+ }, str);
32567
32615
  }
32568
- var BaseError = class extends Error {
32569
- constructor(...input) {
32570
- const options = extractOptions$1(...input);
32571
- super(options.message, { cause: options.cause });
32616
+ /**
32617
+ * Convert a PascalCase class name to CONSTANT_CASE error code.
32618
+ * e.g. "NotFoundError" -> "NOT_FOUND_ERROR"
32619
+ */
32620
+ function sanitizeErrorCode(input) {
32621
+ return input.replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").toUpperCase();
32622
+ }
32623
+ function toSerializable(input) {
32624
+ if (isObject$9(input) && typeof input.toJSON === "function") return input.toJSON();
32625
+ if (isError$2(input)) return { message: input.message };
32626
+ return input;
32627
+ }
32628
+ var BASE_ERROR_INSTANCE = Symbol.for("@ebec/core/BaseError");
32629
+ var BaseError$1 = class extends Error {
32630
+ /**
32631
+ * A unique identifier for the error.
32632
+ */
32633
+ code;
32634
+ /**
32635
+ * Represents the underlying cause or source of the error.
32636
+ */
32637
+ cause;
32638
+ /**
32639
+ * A collection of errors for batch/group error scenarios.
32640
+ */
32641
+ errors;
32642
+ constructor(input = {}) {
32643
+ const options = extractErrorOptions(input);
32644
+ let message = options.message || "An error occurred";
32645
+ if (options.messageData) message = interpolate(message, options.messageData);
32646
+ super(message);
32647
+ if (options.cause !== void 0) this.cause = options.cause;
32572
32648
  if (typeof this.name === "undefined" || this.name === "Error") Object.defineProperty(this, "name", {
32573
32649
  configurable: true,
32574
32650
  enumerable: false,
@@ -32577,72 +32653,38 @@ var BaseError = class extends Error {
32577
32653
  });
32578
32654
  if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
32579
32655
  if (options.stack) this.stack = options.stack;
32580
- this.code = options.code;
32581
- this.expose = options.expose;
32582
- this.logMessage = options.logMessage;
32583
- this.logLevel = options.logLevel;
32584
- this.data = options.data;
32585
- }
32586
- };
32587
- //#endregion
32588
- //#region ../../node_modules/@ebec/http/dist/index.mjs
32589
- function isOptions(input) {
32590
- if (!isObject$8(input)) return false;
32591
- if (typeof input.statusCode !== "undefined" && typeof input.statusCode !== "number" && typeof input.statusCode !== "string") return false;
32592
- if (typeof input.statusMessage !== "undefined" && typeof input.statusMessage !== "string") return false;
32593
- return typeof input.redirectURL === "undefined" || typeof input.redirectURL === "string";
32594
- }
32595
- var check = createExtractOptionsFn(isOptions);
32596
- function extractOptions(...input) {
32597
- return check(...input);
32598
- }
32599
- /**
32600
- * \x20-\x7E: This range represents printable ASCII characters. \x20 is the hexadecimal code for space, and \x7E is the code for tilde.
32601
- * \t: Matches the tab character.
32602
- * \n: Matches the newline character.
32603
- * \r: Matches the carriage return character.
32604
- * \x0B: Matches the vertical tab character.
32605
- * \x0C: Matches the form feed character.
32606
- */ var pattern = /[^\x20-\x7E\t\n\r\x0B\x0C]+/g;
32607
- function sanitizeStatusMessage(input) {
32608
- return input.replace(pattern, "");
32609
- }
32610
- function sanitizeStatusCode(input) {
32611
- const code = parseInt(`${input}`, 10);
32612
- if (!Number.isInteger(code) || code < 100 || code > 599) return 500;
32613
- return code;
32614
- }
32615
- var HTTPError = class extends BaseError {
32616
- constructor(...input) {
32617
- super(...input);
32618
- const options = extractOptions(...input);
32619
- this.statusCode = options.statusCode ? sanitizeStatusCode(options.statusCode) : 500;
32620
- this.statusMessage = options.statusMessage ? sanitizeStatusMessage(options.statusMessage) : void 0;
32621
- this.redirectURL = options.redirectURL;
32622
- }
32623
- };
32624
- var ClientError$1 = class extends HTTPError {
32625
- constructor(...input) {
32626
- super({ expose: true }, ...input);
32656
+ this.code = options.code || sanitizeErrorCode(this.constructor.name);
32657
+ if (options.errors !== void 0) this.errors = [...options.errors];
32658
+ markInstanceof(this, BASE_ERROR_INSTANCE);
32627
32659
  }
32628
- };
32629
- var BadRequestErrorOptions = {
32630
- code: `BAD_REQUEST`,
32631
- statusCode: 400,
32632
- statusMessage: `Bad Request`
32633
- };
32634
- var BadRequestError = class extends ClientError$1 {
32635
- constructor(...input) {
32636
- super(BadRequestErrorOptions, ...input);
32660
+ toJSON() {
32661
+ return {
32662
+ name: this.name,
32663
+ message: this.message,
32664
+ code: this.code,
32665
+ ...this.cause !== void 0 && { cause: toSerializable(this.cause) },
32666
+ ...this.errors !== void 0 && { errors: this.errors.map((e) => toSerializable(e)) }
32667
+ };
32637
32668
  }
32638
32669
  };
32639
32670
  //#endregion
32640
32671
  //#region ../../packages/errors/dist/index.mjs
32641
32672
  var ErrorCode$2 = /* @__PURE__ */ function(ErrorCode) {
32673
+ ErrorCode["BAD_REQUEST"] = "bad_request";
32674
+ ErrorCode["INTERNAL_ERROR"] = "internal_error";
32642
32675
  ErrorCode["HTTP_HEADER_AUTH_TYPE_UNSUPPORTED"] = "unsupported_auth_header_type";
32676
+ ErrorCode["HTTP_BEARER_TOKEN_MALFORMED"] = "bearer_token_malformed";
32677
+ ErrorCode["IDENTITY_UNAUTHORIZED"] = "identity_unauthorized";
32643
32678
  ErrorCode["ENTITY_CREDENTIALS_INVALID"] = "invalid_credentials";
32644
32679
  ErrorCode["ENTITY_INACTIVE"] = "entity_inactive";
32645
32680
  ErrorCode["ENTITY_NOT_FOUND"] = "entity_not_found";
32681
+ ErrorCode["ENTITY_CONFLICT"] = "entity_conflict";
32682
+ ErrorCode["ENTITY_RELATION_INVALID"] = "entity_relation_invalid";
32683
+ ErrorCode["REGISTRATION_DISABLED"] = "registration_disabled";
32684
+ ErrorCode["PASSWORD_RECOVERY_DISABLED"] = "password_recovery_disabled";
32685
+ ErrorCode["EMAIL_VERIFICATION_REQUIRED"] = "email_verification_required";
32686
+ ErrorCode["RESET_TOKEN_EXPIRED"] = "reset_token_expired";
32687
+ ErrorCode["STORAGE_INSUFFICIENT"] = "storage_insufficient";
32646
32688
  ErrorCode["JWK_INVALID"] = "jwk_invalid";
32647
32689
  ErrorCode["JWK_NOT_FOUND"] = "jwk_not_found";
32648
32690
  ErrorCode["JWT_INVALID"] = "invalid_token";
@@ -32664,13 +32706,41 @@ var ErrorCode$2 = /* @__PURE__ */ function(ErrorCode) {
32664
32706
  ErrorCode["POLICY_EVALUATOR_CONTEXT_INVALID"] = "policy_evaluator_context_invalid";
32665
32707
  return ErrorCode;
32666
32708
  }({});
32667
- var AuthupError = class extends BadRequestError {
32709
+ var AUTHUP_ERROR_INSTANCE = Symbol.for("@authup/errors/AuthupError");
32710
+ var AuthupError = class extends BaseError$1 {
32668
32711
  issues;
32669
- constructor(...input) {
32670
- super(...input);
32712
+ data;
32713
+ constructor(input) {
32714
+ super(input);
32715
+ markInstanceof(this, AUTHUP_ERROR_INSTANCE);
32671
32716
  this.issues = [];
32717
+ if (input && typeof input !== "string" && input.data) this.data = input.data;
32718
+ }
32719
+ toJSON() {
32720
+ return {
32721
+ ...super.toJSON(),
32722
+ issues: this.issues,
32723
+ ...this.data ?? {}
32724
+ };
32672
32725
  }
32673
32726
  };
32727
+ /**
32728
+ * Duck-type guard for AuthupError.
32729
+ *
32730
+ * Fast path: input has the AuthupError marker in its `@instanceof` chain.
32731
+ * Subclass instances also accumulate this marker, so this guard matches any
32732
+ * AuthupError subclass (`OAuth2Error`, `JWTError`, etc.).
32733
+ *
32734
+ * Slow path: input is shape-compatible with AuthupError (BaseError + has
32735
+ * `issues: Issue[]`). Catches cases where the marker is missing — plain
32736
+ * objects rehydrated from JSON, older builds without the marker.
32737
+ */
32738
+ function isAuthupError(input) {
32739
+ if (hasInstanceof(input, AUTHUP_ERROR_INSTANCE)) return true;
32740
+ if (!isBaseError(input)) return false;
32741
+ if (!isObject$9(input)) return false;
32742
+ return Array.isArray(input.issues);
32743
+ }
32674
32744
  //#endregion
32675
32745
  //#region ../../node_modules/validup/node_modules/pathtrace/dist/index.mjs
32676
32746
  /**
@@ -32692,7 +32762,7 @@ function arrayToPath(parts) {
32692
32762
  }
32693
32763
  return output;
32694
32764
  }
32695
- function isObject$7(input) {
32765
+ function isObject$8(input) {
32696
32766
  return !!input && typeof input === "object" && !Array.isArray(input);
32697
32767
  }
32698
32768
  var UNSAFE_KEYS = new Set([
@@ -32740,7 +32810,7 @@ function expandPathVerboseInternal(data, path, currPath = [], currMatches = [])
32740
32810
  const key = segments[0];
32741
32811
  if (typeof key === "symbol") return [];
32742
32812
  const rest = segments.slice(1);
32743
- if (typeof data !== "undefined" && data !== null && !isObject$7(data) && !Array.isArray(data)) {
32813
+ if (typeof data !== "undefined" && data !== null && !isObject$8(data) && !Array.isArray(data)) {
32744
32814
  if (key === Character.GLOBSTAR) {
32745
32815
  if (!rest.length) return [{
32746
32816
  value: arrayToPath(currPath),
@@ -32816,7 +32886,7 @@ function setPathValue(data, path, value) {
32816
32886
  let index = 0;
32817
32887
  while (index < parts.length) {
32818
32888
  /* istanbul ignore next */
32819
- if (!Array.isArray(temp) && !isObject$7(temp)) break;
32889
+ if (!Array.isArray(temp) && !isObject$8(temp)) break;
32820
32890
  const key = parts[index];
32821
32891
  if (isUnsafeKey(key)) break;
32822
32892
  if (typeof temp[key] === "undefined") if (NUMBER_REGEX.test(key)) temp[key] = [];
@@ -32887,7 +32957,7 @@ var ValidupError = class extends Error {
32887
32957
  function hasOwnProperty$3(obj, prop) {
32888
32958
  return Object.prototype.hasOwnProperty.call(obj, prop);
32889
32959
  }
32890
- function isObject$6(input) {
32960
+ function isObject$7(input) {
32891
32961
  return !!input && typeof input === "object" && !Array.isArray(input);
32892
32962
  }
32893
32963
  function isIssuePath(input) {
@@ -32895,10 +32965,10 @@ function isIssuePath(input) {
32895
32965
  return input.every((el) => typeof el === "string" || typeof el === "number" || typeof el === "symbol");
32896
32966
  }
32897
32967
  function isBaseIssue(input) {
32898
- if (!isObject$6(input)) return false;
32968
+ if (!isObject$7(input)) return false;
32899
32969
  if (typeof input.message !== "string") return false;
32900
32970
  if (!isIssuePath(input.path)) return false;
32901
- return typeof input.meta === "undefined" || isObject$6(input.meta);
32971
+ return typeof input.meta === "undefined" || isObject$7(input.meta);
32902
32972
  }
32903
32973
  function isIssueItem(input) {
32904
32974
  if (!isBaseIssue(input)) return false;
@@ -32932,7 +33002,7 @@ function defineIssueGroup(data) {
32932
33002
  };
32933
33003
  }
32934
33004
  function isError$1(input) {
32935
- if (!isObject$6(input)) return false;
33005
+ if (!isObject$7(input)) return false;
32936
33006
  return typeof input.message === "string";
32937
33007
  }
32938
33008
  function isValidupError(error) {
@@ -32942,7 +33012,7 @@ function isValidupError(error) {
32942
33012
  return Array.isArray(error.issues) && error.issues.every((issue) => isIssue(issue));
32943
33013
  }
32944
33014
  function isContainer(input) {
32945
- return isObject$6(input) && typeof input.run === "function" && typeof input.safeRun === "function";
33015
+ return isObject$7(input) && typeof input.run === "function" && typeof input.safeRun === "function";
32946
33016
  }
32947
33017
  var Container = class {
32948
33018
  mount(...args) {
@@ -32966,7 +33036,7 @@ var Container = class {
32966
33036
  dataIsContainer = true;
32967
33037
  continue;
32968
33038
  }
32969
- if (isObject$6(arg)) options = args[i];
33039
+ if (isObject$7(arg)) options = args[i];
32970
33040
  }
32971
33041
  if (!dataIsContainer && (typeof path === "undefined" || path.length === 0)) throw new SyntaxError("Only a container can be mounted without a key.");
32972
33042
  if (typeof data === "undefined") throw new SyntaxError("No container/validator could be extracted from the fn arguments.");
@@ -33024,7 +33094,7 @@ var Container = class {
33024
33094
  if (item.options.optional && isOptionalValue(value, item.options.optionalValue)) {
33025
33095
  if (item.options.optionalInclude) output[key] = value;
33026
33096
  } else if (item.type === "container") {
33027
- const tmp = await item.data.run(isObject$6(value) ? value : {}, {
33097
+ const tmp = await item.data.run(isObject$7(value) ? value : {}, {
33028
33098
  group: options.group,
33029
33099
  flat: true,
33030
33100
  path: pathAbsolute,
@@ -33172,7 +33242,9 @@ function createValidator(input) {
33172
33242
  throw new ValidupError(buildIssuesForZodError(outcome.error));
33173
33243
  };
33174
33244
  }
33175
- Object.freeze({ status: "aborted" });
33245
+ //#endregion
33246
+ //#region ../../node_modules/zod/v4/core/core.js
33247
+ var _a$1;
33176
33248
  function $constructor(name, initializer, params) {
33177
33249
  function init(inst, def) {
33178
33250
  if (!inst._zod) Object.defineProperty(inst, "_zod", {
@@ -33223,7 +33295,8 @@ var $ZodEncodeError = class extends Error {
33223
33295
  this.name = "ZodEncodeError";
33224
33296
  }
33225
33297
  };
33226
- var globalConfig = {};
33298
+ (_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
33299
+ var globalConfig = globalThis.__zod_globalConfig;
33227
33300
  function config(newConfig) {
33228
33301
  if (newConfig) Object.assign(globalConfig, newConfig);
33229
33302
  return globalConfig;
@@ -33257,17 +33330,13 @@ function cleanRegex(source) {
33257
33330
  return source.slice(start, end);
33258
33331
  }
33259
33332
  function floatSafeRemainder(val, step) {
33260
- const valDecCount = (val.toString().split(".")[1] || "").length;
33261
- const stepString = step.toString();
33262
- let stepDecCount = (stepString.split(".")[1] || "").length;
33263
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
33264
- const match = stepString.match(/\d?e-(\d?)/);
33265
- if (match?.[1]) stepDecCount = Number.parseInt(match[1]);
33266
- }
33267
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
33268
- return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount;
33333
+ const ratio = val / step;
33334
+ const roundedRatio = Math.round(ratio);
33335
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
33336
+ if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
33337
+ return ratio - roundedRatio;
33269
33338
  }
33270
- var EVALUATING = Symbol("evaluating");
33339
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
33271
33340
  function defineLazy(object, key, getter) {
33272
33341
  let value = void 0;
33273
33342
  Object.defineProperty(object, key, {
@@ -33305,10 +33374,11 @@ function slugify(input) {
33305
33374
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
33306
33375
  }
33307
33376
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
33308
- function isObject$5(data) {
33377
+ function isObject$6(data) {
33309
33378
  return typeof data === "object" && data !== null && !Array.isArray(data);
33310
33379
  }
33311
- var allowsEval = cached(() => {
33380
+ var allowsEval = /* @__PURE__ */ cached(() => {
33381
+ if (globalConfig.jitless) return false;
33312
33382
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
33313
33383
  try {
33314
33384
  new Function("");
@@ -33318,21 +33388,23 @@ var allowsEval = cached(() => {
33318
33388
  }
33319
33389
  });
33320
33390
  function isPlainObject(o) {
33321
- if (isObject$5(o) === false) return false;
33391
+ if (isObject$6(o) === false) return false;
33322
33392
  const ctor = o.constructor;
33323
33393
  if (ctor === void 0) return true;
33324
33394
  if (typeof ctor !== "function") return true;
33325
33395
  const prot = ctor.prototype;
33326
- if (isObject$5(prot) === false) return false;
33396
+ if (isObject$6(prot) === false) return false;
33327
33397
  if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
33328
33398
  return true;
33329
33399
  }
33330
33400
  function shallowClone(o) {
33331
33401
  if (isPlainObject(o)) return { ...o };
33332
33402
  if (Array.isArray(o)) return [...o];
33403
+ if (o instanceof Map) return new Map(o);
33404
+ if (o instanceof Set) return new Set(o);
33333
33405
  return o;
33334
33406
  }
33335
- var propertyKeyTypes = new Set([
33407
+ var propertyKeyTypes = /* @__PURE__ */ new Set([
33336
33408
  "string",
33337
33409
  "number",
33338
33410
  "symbol"
@@ -33436,6 +33508,7 @@ function safeExtend(schema, shape) {
33436
33508
  } }));
33437
33509
  }
33438
33510
  function merge$1(a, b) {
33511
+ if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
33439
33512
  return clone(a, mergeDefs(a._zod.def, {
33440
33513
  get shape() {
33441
33514
  const _shape = {
@@ -33448,7 +33521,7 @@ function merge$1(a, b) {
33448
33521
  get catchall() {
33449
33522
  return b._zod.def.catchall;
33450
33523
  },
33451
- checks: []
33524
+ checks: b._zod.def.checks ?? []
33452
33525
  }));
33453
33526
  }
33454
33527
  function partial(Class, schema, mask) {
@@ -33501,6 +33574,11 @@ function aborted(x, startIndex = 0) {
33501
33574
  for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
33502
33575
  return false;
33503
33576
  }
33577
+ function explicitlyAborted(x, startIndex = 0) {
33578
+ if (x.aborted === true) return true;
33579
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
33580
+ return false;
33581
+ }
33504
33582
  function prefixIssues(path, issues) {
33505
33583
  return issues.map((iss) => {
33506
33584
  var _a;
@@ -33513,15 +33591,12 @@ function unwrapMessage(message) {
33513
33591
  return typeof message === "string" ? message : message?.message;
33514
33592
  }
33515
33593
  function finalizeIssue(iss, ctx, config) {
33516
- const full = {
33517
- ...iss,
33518
- path: iss.path ?? []
33519
- };
33520
- if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
33521
- delete full.inst;
33522
- delete full.continue;
33523
- if (!ctx?.reportInput) delete full.input;
33524
- return full;
33594
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
33595
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
33596
+ rest.path ?? (rest.path = []);
33597
+ rest.message = message;
33598
+ if (ctx?.reportInput) rest.input = _input;
33599
+ return rest;
33525
33600
  }
33526
33601
  function getLengthableOrigin(input) {
33527
33602
  if (Array.isArray(input)) return "array";
@@ -33572,23 +33647,26 @@ function flattenError(error, mapper = (issue) => issue.message) {
33572
33647
  }
33573
33648
  function formatError(error, mapper = (issue) => issue.message) {
33574
33649
  const fieldErrors = { _errors: [] };
33575
- const processError = (error) => {
33576
- for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }));
33577
- else if (issue.code === "invalid_key") processError({ issues: issue.issues });
33578
- else if (issue.code === "invalid_element") processError({ issues: issue.issues });
33579
- else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue));
33650
+ const processError = (error, path = []) => {
33651
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
33652
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
33653
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
33580
33654
  else {
33581
- let curr = fieldErrors;
33582
- let i = 0;
33583
- while (i < issue.path.length) {
33584
- const el = issue.path[i];
33585
- if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
33586
- else {
33587
- curr[el] = curr[el] || { _errors: [] };
33588
- curr[el]._errors.push(mapper(issue));
33655
+ const fullpath = [...path, ...issue.path];
33656
+ if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
33657
+ else {
33658
+ let curr = fieldErrors;
33659
+ let i = 0;
33660
+ while (i < fullpath.length) {
33661
+ const el = fullpath[i];
33662
+ if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
33663
+ else {
33664
+ curr[el] = curr[el] || { _errors: [] };
33665
+ curr[el]._errors.push(mapper(issue));
33666
+ }
33667
+ curr = curr[el];
33668
+ i++;
33589
33669
  }
33590
- curr = curr[el];
33591
- i++;
33592
33670
  }
33593
33671
  }
33594
33672
  };
@@ -33598,7 +33676,10 @@ function formatError(error, mapper = (issue) => issue.message) {
33598
33676
  //#endregion
33599
33677
  //#region ../../node_modules/zod/v4/core/parse.js
33600
33678
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
33601
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
33679
+ const ctx = _ctx ? {
33680
+ ..._ctx,
33681
+ async: false
33682
+ } : { async: false };
33602
33683
  const result = schema._zod.run({
33603
33684
  value,
33604
33685
  issues: []
@@ -33612,7 +33693,10 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
33612
33693
  return result.value;
33613
33694
  };
33614
33695
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
33615
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
33696
+ const ctx = _ctx ? {
33697
+ ..._ctx,
33698
+ async: true
33699
+ } : { async: true };
33616
33700
  let result = schema._zod.run({
33617
33701
  value,
33618
33702
  issues: []
@@ -33645,7 +33729,10 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
33645
33729
  };
33646
33730
  var safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
33647
33731
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
33648
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
33732
+ const ctx = _ctx ? {
33733
+ ..._ctx,
33734
+ async: true
33735
+ } : { async: true };
33649
33736
  let result = schema._zod.run({
33650
33737
  value,
33651
33738
  issues: []
@@ -33661,28 +33748,40 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
33661
33748
  };
33662
33749
  var safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
33663
33750
  var _encode = (_Err) => (schema, value, _ctx) => {
33664
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
33751
+ const ctx = _ctx ? {
33752
+ ..._ctx,
33753
+ direction: "backward"
33754
+ } : { direction: "backward" };
33665
33755
  return _parse(_Err)(schema, value, ctx);
33666
33756
  };
33667
33757
  var _decode = (_Err) => (schema, value, _ctx) => {
33668
33758
  return _parse(_Err)(schema, value, _ctx);
33669
33759
  };
33670
33760
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
33671
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
33761
+ const ctx = _ctx ? {
33762
+ ..._ctx,
33763
+ direction: "backward"
33764
+ } : { direction: "backward" };
33672
33765
  return _parseAsync(_Err)(schema, value, ctx);
33673
33766
  };
33674
33767
  var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
33675
33768
  return _parseAsync(_Err)(schema, value, _ctx);
33676
33769
  };
33677
33770
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
33678
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
33771
+ const ctx = _ctx ? {
33772
+ ..._ctx,
33773
+ direction: "backward"
33774
+ } : { direction: "backward" };
33679
33775
  return _safeParse(_Err)(schema, value, ctx);
33680
33776
  };
33681
33777
  var _safeDecode = (_Err) => (schema, value, _ctx) => {
33682
33778
  return _safeParse(_Err)(schema, value, _ctx);
33683
33779
  };
33684
33780
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
33685
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
33781
+ const ctx = _ctx ? {
33782
+ ..._ctx,
33783
+ direction: "backward"
33784
+ } : { direction: "backward" };
33686
33785
  return _safeParseAsync(_Err)(schema, value, ctx);
33687
33786
  };
33688
33787
  var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
@@ -33690,7 +33789,12 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
33690
33789
  };
33691
33790
  //#endregion
33692
33791
  //#region ../../node_modules/zod/v4/core/regexes.js
33693
- var cuid = /^[cC][^\s-]{8,}$/;
33792
+ /**
33793
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
33794
+ * (timestamps embedded in the id). Use {@link cuid2} instead.
33795
+ * See https://github.com/paralleldrive/cuid.
33796
+ */
33797
+ var cuid = /^[cC][0-9a-z]{6,}$/;
33694
33798
  var cuid2 = /^[0-9a-z]+$/;
33695
33799
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
33696
33800
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -33719,6 +33823,7 @@ var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]
33719
33823
  var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
33720
33824
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
33721
33825
  var base64url = /^[A-Za-z0-9_-]*$/;
33826
+ var httpProtocol = /^https?$/;
33722
33827
  var e164 = /^\+[1-9]\d{6,14}$/;
33723
33828
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
33724
33829
  var date$2 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -34141,8 +34246,8 @@ var Doc = class {
34141
34246
  //#region ../../node_modules/zod/v4/core/versions.js
34142
34247
  var version = {
34143
34248
  major: 4,
34144
- minor: 3,
34145
- patch: 6
34249
+ minor: 4,
34250
+ patch: 3
34146
34251
  };
34147
34252
  //#endregion
34148
34253
  //#region ../../node_modules/zod/v4/core/schemas.js
@@ -34166,6 +34271,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34166
34271
  let asyncResult;
34167
34272
  for (const ch of checks) {
34168
34273
  if (ch._zod.def.when) {
34274
+ if (explicitlyAborted(payload)) continue;
34169
34275
  if (!ch._zod.def.when(payload)) continue;
34170
34276
  } else if (isAborted) continue;
34171
34277
  const currLen = payload.issues.length;
@@ -34285,6 +34391,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
34285
34391
  inst._zod.check = (payload) => {
34286
34392
  try {
34287
34393
  const trimmed = payload.value.trim();
34394
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
34395
+ if (!/^https?:\/\//i.test(trimmed)) {
34396
+ payload.issues.push({
34397
+ code: "invalid_format",
34398
+ format: "url",
34399
+ note: "Invalid URL format",
34400
+ input: payload.value,
34401
+ inst,
34402
+ continue: !def.abort
34403
+ });
34404
+ return;
34405
+ }
34406
+ }
34288
34407
  const url = new URL(trimmed);
34289
34408
  if (def.hostname) {
34290
34409
  def.hostname.lastIndex = 0;
@@ -34332,6 +34451,11 @@ var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
34332
34451
  def.pattern ?? (def.pattern = nanoid);
34333
34452
  $ZodStringFormat.init(inst, def);
34334
34453
  });
34454
+ /**
34455
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
34456
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
34457
+ * See https://github.com/paralleldrive/cuid.
34458
+ */
34335
34459
  var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
34336
34460
  def.pattern ?? (def.pattern = cuid);
34337
34461
  $ZodStringFormat.init(inst, def);
@@ -34421,6 +34545,7 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
34421
34545
  });
34422
34546
  function isValidBase64(data) {
34423
34547
  if (data === "") return true;
34548
+ if (/\s/.test(data)) return false;
34424
34549
  if (data.length % 4 !== 0) return false;
34425
34550
  try {
34426
34551
  atob(data);
@@ -34542,8 +34667,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
34542
34667
  $ZodType.init(inst, def);
34543
34668
  inst._zod.pattern = _undefined$2;
34544
34669
  inst._zod.values = new Set([void 0]);
34545
- inst._zod.optin = "optional";
34546
- inst._zod.optout = "optional";
34547
34670
  inst._zod.parse = (payload, _ctx) => {
34548
34671
  const input = payload.value;
34549
34672
  if (typeof input === "undefined") return payload;
@@ -34639,13 +34762,23 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
34639
34762
  return payload;
34640
34763
  };
34641
34764
  });
34642
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
34765
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
34766
+ const isPresent = key in input;
34643
34767
  if (result.issues.length) {
34644
- if (isOptionalOut && !(key in input)) return;
34768
+ if (isOptionalIn && isOptionalOut && !isPresent) return;
34645
34769
  final.issues.push(...prefixIssues(key, result.issues));
34646
34770
  }
34771
+ if (!isPresent && !isOptionalIn) {
34772
+ if (!result.issues.length) final.issues.push({
34773
+ code: "invalid_type",
34774
+ expected: "nonoptional",
34775
+ input: void 0,
34776
+ path: [key]
34777
+ });
34778
+ return;
34779
+ }
34647
34780
  if (result.value === void 0) {
34648
- if (key in input) final.value[key] = void 0;
34781
+ if (isPresent) final.value[key] = void 0;
34649
34782
  } else final.value[key] = result.value;
34650
34783
  }
34651
34784
  function normalizeDef(def) {
@@ -34665,8 +34798,10 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
34665
34798
  const keySet = def.keySet;
34666
34799
  const _catchall = def.catchall._zod;
34667
34800
  const t = _catchall.def.type;
34801
+ const isOptionalIn = _catchall.optin === "optional";
34668
34802
  const isOptionalOut = _catchall.optout === "optional";
34669
34803
  for (const key in input) {
34804
+ if (key === "__proto__") continue;
34670
34805
  if (keySet.has(key)) continue;
34671
34806
  if (t === "never") {
34672
34807
  unrecognized.push(key);
@@ -34676,8 +34811,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
34676
34811
  value: input[key],
34677
34812
  issues: []
34678
34813
  }, ctx);
34679
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
34680
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
34814
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
34815
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
34681
34816
  }
34682
34817
  if (unrecognized.length) payload.issues.push({
34683
34818
  code: "unrecognized_keys",
@@ -34713,7 +34848,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34713
34848
  }
34714
34849
  return propValues;
34715
34850
  });
34716
- const isObject = isObject$5;
34851
+ const isObject = isObject$6;
34717
34852
  const catchall = def.catchall;
34718
34853
  let value;
34719
34854
  inst._zod.parse = (payload, ctx) => {
@@ -34733,13 +34868,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34733
34868
  const shape = value.shape;
34734
34869
  for (const key of value.keys) {
34735
34870
  const el = shape[key];
34871
+ const isOptionalIn = el._zod.optin === "optional";
34736
34872
  const isOptionalOut = el._zod.optout === "optional";
34737
34873
  const r = el._zod.run({
34738
34874
  value: input[key],
34739
34875
  issues: []
34740
34876
  }, ctx);
34741
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
34742
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
34877
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
34878
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
34743
34879
  }
34744
34880
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
34745
34881
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
@@ -34768,9 +34904,11 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
34768
34904
  for (const key of normalized.keys) {
34769
34905
  const id = ids[key];
34770
34906
  const k = esc(key);
34771
- const isOptionalOut = shape[key]?._zod?.optout === "optional";
34907
+ const schema = shape[key];
34908
+ const isOptionalIn = schema?._zod?.optin === "optional";
34909
+ const isOptionalOut = schema?._zod?.optout === "optional";
34772
34910
  doc.write(`const ${id} = ${parseStr(key)};`);
34773
- if (isOptionalOut) doc.write(`
34911
+ if (isOptionalIn && isOptionalOut) doc.write(`
34774
34912
  if (${id}.issues.length) {
34775
34913
  if (${k} in input) {
34776
34914
  payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
@@ -34788,6 +34926,32 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
34788
34926
  newResult[${k}] = ${id}.value;
34789
34927
  }
34790
34928
 
34929
+ `);
34930
+ else if (!isOptionalIn) doc.write(`
34931
+ const ${id}_present = ${k} in input;
34932
+ if (${id}.issues.length) {
34933
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
34934
+ ...iss,
34935
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
34936
+ })));
34937
+ }
34938
+ if (!${id}_present && !${id}.issues.length) {
34939
+ payload.issues.push({
34940
+ code: "invalid_type",
34941
+ expected: "nonoptional",
34942
+ input: undefined,
34943
+ path: [${k}]
34944
+ });
34945
+ }
34946
+
34947
+ if (${id}_present) {
34948
+ if (${id}.value === undefined) {
34949
+ newResult[${k}] = undefined;
34950
+ } else {
34951
+ newResult[${k}] = ${id}.value;
34952
+ }
34953
+ }
34954
+
34791
34955
  `);
34792
34956
  else doc.write(`
34793
34957
  if (${id}.issues.length) {
@@ -34813,7 +34977,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
34813
34977
  return (payload, ctx) => fn(shape, payload, ctx);
34814
34978
  };
34815
34979
  let fastpass;
34816
- const isObject = isObject$5;
34980
+ const isObject = isObject$6;
34817
34981
  const jit = !globalConfig.jitless;
34818
34982
  const fastEnabled = jit && allowsEval.value;
34819
34983
  const catchall = def.catchall;
@@ -34870,10 +35034,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
34870
35034
  return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
34871
35035
  }
34872
35036
  });
34873
- const single = def.options.length === 1;
34874
- const first = def.options[0]._zod.run;
35037
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
34875
35038
  inst._zod.parse = (payload, ctx) => {
34876
- if (single) return first(payload, ctx);
35039
+ if (first) return first(payload, ctx);
34877
35040
  let async = false;
34878
35041
  const results = [];
34879
35042
  for (const option of def.options) {
@@ -35014,20 +35177,23 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
35014
35177
  });
35015
35178
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
35016
35179
  $ZodType.init(inst, def);
35180
+ inst._zod.optin = "optional";
35017
35181
  inst._zod.parse = (payload, ctx) => {
35018
35182
  if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
35019
35183
  const _out = def.transform(payload.value, payload);
35020
35184
  if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
35021
35185
  payload.value = output;
35186
+ payload.fallback = true;
35022
35187
  return payload;
35023
35188
  });
35024
35189
  if (_out instanceof Promise) throw new $ZodAsyncError();
35025
35190
  payload.value = _out;
35191
+ payload.fallback = true;
35026
35192
  return payload;
35027
35193
  };
35028
35194
  });
35029
35195
  function handleOptionalResult(result, input) {
35030
- if (result.issues.length && input === void 0) return {
35196
+ if (input === void 0 && (result.issues.length || result.fallback)) return {
35031
35197
  issues: [],
35032
35198
  value: void 0
35033
35199
  };
@@ -35046,9 +35212,10 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
35046
35212
  });
35047
35213
  inst._zod.parse = (payload, ctx) => {
35048
35214
  if (def.innerType._zod.optin === "optional") {
35215
+ const input = payload.value;
35049
35216
  const result = def.innerType._zod.run(payload, ctx);
35050
- if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value));
35051
- return handleOptionalResult(result, payload.value);
35217
+ if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, input));
35218
+ return handleOptionalResult(result, input);
35052
35219
  }
35053
35220
  if (payload.value === void 0) return payload;
35054
35221
  return def.innerType._zod.run(payload, ctx);
@@ -35133,7 +35300,7 @@ function handleNonOptionalResult(payload, inst) {
35133
35300
  }
35134
35301
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
35135
35302
  $ZodType.init(inst, def);
35136
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
35303
+ inst._zod.optin = "optional";
35137
35304
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
35138
35305
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
35139
35306
  inst._zod.parse = (payload, ctx) => {
@@ -35148,6 +35315,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
35148
35315
  input: payload.value
35149
35316
  });
35150
35317
  payload.issues = [];
35318
+ payload.fallback = true;
35151
35319
  }
35152
35320
  return payload;
35153
35321
  });
@@ -35159,6 +35327,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
35159
35327
  input: payload.value
35160
35328
  });
35161
35329
  payload.issues = [];
35330
+ payload.fallback = true;
35162
35331
  }
35163
35332
  return payload;
35164
35333
  };
@@ -35187,7 +35356,8 @@ function handlePipeResult(left, next, ctx) {
35187
35356
  }
35188
35357
  return next._zod.run({
35189
35358
  value: left.value,
35190
- issues: left.issues
35359
+ issues: left.issues,
35360
+ fallback: left.fallback
35191
35361
  }, ctx);
35192
35362
  }
35193
35363
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
@@ -35382,6 +35552,11 @@ function _nanoid(Class, params) {
35382
35552
  ...normalizeParams(params)
35383
35553
  });
35384
35554
  }
35555
+ /**
35556
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
35557
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
35558
+ * See https://github.com/paralleldrive/cuid.
35559
+ */
35385
35560
  /* @__NO_SIDE_EFFECTS__ */
35386
35561
  function _cuid(Class, params) {
35387
35562
  return new Class({
@@ -35774,7 +35949,7 @@ function _refine(Class, fn, _params) {
35774
35949
  });
35775
35950
  }
35776
35951
  /* @__NO_SIDE_EFFECTS__ */
35777
- function _superRefine(fn) {
35952
+ function _superRefine(fn, params) {
35778
35953
  const ch = /* @__PURE__ */ _check((payload) => {
35779
35954
  payload.addIssue = (issue$2) => {
35780
35955
  if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
@@ -35789,7 +35964,7 @@ function _superRefine(fn) {
35789
35964
  }
35790
35965
  };
35791
35966
  return fn(payload.value, payload);
35792
- });
35967
+ }, params);
35793
35968
  return ch;
35794
35969
  }
35795
35970
  /* @__NO_SIDE_EFFECTS__ */
@@ -35868,7 +36043,7 @@ function process$1(schema, ctx, _params = {
35868
36043
  delete result.schema.examples;
35869
36044
  delete result.schema.default;
35870
36045
  }
35871
- if (ctx.io === "input" && result.schema._prefault) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
36046
+ if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
35872
36047
  delete result.schema._prefault;
35873
36048
  return ctx.seen.get(schema).schema;
35874
36049
  }
@@ -36008,10 +36183,15 @@ function finalize(ctx, schema) {
36008
36183
  result.$id = ctx.external.uri(id);
36009
36184
  }
36010
36185
  Object.assign(result, root.def ?? root.schema);
36186
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
36187
+ if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
36011
36188
  const defs = ctx.external?.defs ?? {};
36012
36189
  for (const entry of ctx.seen.entries()) {
36013
36190
  const seen = entry[1];
36014
- if (seen.def && seen.defId) defs[seen.defId] = seen.def;
36191
+ if (seen.def && seen.defId) {
36192
+ if (seen.def.id === seen.defId) delete seen.def.id;
36193
+ defs[seen.defId] = seen.def;
36194
+ }
36015
36195
  }
36016
36196
  if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
36017
36197
  else result.definitions = defs;
@@ -36045,7 +36225,10 @@ function isTransforming(_schema, _ctx) {
36045
36225
  if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") return isTransforming(def.innerType, ctx);
36046
36226
  if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
36047
36227
  if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
36048
- if (def.type === "pipe") return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
36228
+ if (def.type === "pipe") {
36229
+ if (_schema._zod.traits.has("$ZodCodec")) return true;
36230
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
36231
+ }
36049
36232
  if (def.type === "object") {
36050
36233
  for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
36051
36234
  return false;
@@ -36121,24 +36304,19 @@ var numberProcessor = (schema, ctx, _json, _params) => {
36121
36304
  const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
36122
36305
  if (typeof format === "string" && format.includes("int")) json.type = "integer";
36123
36306
  else json.type = "number";
36124
- if (typeof exclusiveMinimum === "number") if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
36307
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
36308
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
36309
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
36310
+ if (exMin) if (legacy) {
36125
36311
  json.minimum = exclusiveMinimum;
36126
36312
  json.exclusiveMinimum = true;
36127
36313
  } else json.exclusiveMinimum = exclusiveMinimum;
36128
- if (typeof minimum === "number") {
36129
- json.minimum = minimum;
36130
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") if (exclusiveMinimum >= minimum) delete json.minimum;
36131
- else delete json.exclusiveMinimum;
36132
- }
36133
- if (typeof exclusiveMaximum === "number") if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
36314
+ else if (typeof minimum === "number") json.minimum = minimum;
36315
+ if (exMax) if (legacy) {
36134
36316
  json.maximum = exclusiveMaximum;
36135
36317
  json.exclusiveMaximum = true;
36136
36318
  } else json.exclusiveMaximum = exclusiveMaximum;
36137
- if (typeof maximum === "number") {
36138
- json.maximum = maximum;
36139
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") if (exclusiveMaximum <= maximum) delete json.maximum;
36140
- else delete json.exclusiveMaximum;
36141
- }
36319
+ else if (typeof maximum === "number") json.maximum = maximum;
36142
36320
  if (typeof multipleOf === "number") json.multipleOf = multipleOf;
36143
36321
  };
36144
36322
  var booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -36157,7 +36335,6 @@ var undefinedProcessor = (_schema, ctx, _json, _params) => {
36157
36335
  var neverProcessor = (_schema, _ctx, json, _params) => {
36158
36336
  json.not = {};
36159
36337
  };
36160
- var unknownProcessor = (_schema, _ctx, _json, _params) => {};
36161
36338
  var dateProcessor = (_schema, ctx, _json, _params) => {
36162
36339
  if (ctx.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema");
36163
36340
  };
@@ -36294,7 +36471,8 @@ var catchProcessor = (schema, ctx, json, params) => {
36294
36471
  };
36295
36472
  var pipeProcessor = (schema, ctx, _json, params) => {
36296
36473
  const def = schema._zod.def;
36297
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
36474
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
36475
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
36298
36476
  process$1(innerType, ctx, params);
36299
36477
  const seen = ctx.seen.get(schema);
36300
36478
  seen.ref = innerType;
@@ -36363,8 +36541,7 @@ var initializer = (inst, issues) => {
36363
36541
  } }
36364
36542
  });
36365
36543
  };
36366
- $constructor("ZodError", initializer);
36367
- var ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
36544
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer, { Parent: Error });
36368
36545
  //#endregion
36369
36546
  //#region ../../node_modules/zod/v4/classic/parse.js
36370
36547
  var parse$2 = /* @__PURE__ */ _parse(ZodRealError);
@@ -36381,6 +36558,42 @@ var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
36381
36558
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
36382
36559
  //#endregion
36383
36560
  //#region ../../node_modules/zod/v4/classic/schemas.js
36561
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
36562
+ function _installLazyMethods(inst, group, methods) {
36563
+ const proto = Object.getPrototypeOf(inst);
36564
+ let installed = _installedGroups.get(proto);
36565
+ if (!installed) {
36566
+ installed = /* @__PURE__ */ new Set();
36567
+ _installedGroups.set(proto, installed);
36568
+ }
36569
+ if (installed.has(group)) return;
36570
+ installed.add(group);
36571
+ for (const key in methods) {
36572
+ const fn = methods[key];
36573
+ Object.defineProperty(proto, key, {
36574
+ configurable: true,
36575
+ enumerable: false,
36576
+ get() {
36577
+ const bound = fn.bind(this);
36578
+ Object.defineProperty(this, key, {
36579
+ configurable: true,
36580
+ writable: true,
36581
+ enumerable: true,
36582
+ value: bound
36583
+ });
36584
+ return bound;
36585
+ },
36586
+ set(v) {
36587
+ Object.defineProperty(this, key, {
36588
+ configurable: true,
36589
+ writable: true,
36590
+ enumerable: true,
36591
+ value: v
36592
+ });
36593
+ }
36594
+ });
36595
+ }
36596
+ }
36384
36597
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36385
36598
  $ZodType.init(inst, def);
36386
36599
  Object.assign(inst["~standard"], { jsonSchema: {
@@ -36391,20 +36604,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36391
36604
  inst.def = def;
36392
36605
  inst.type = def.type;
36393
36606
  Object.defineProperty(inst, "_def", { value: def });
36394
- inst.check = (...checks) => {
36395
- return inst.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
36396
- check: ch,
36397
- def: { check: "custom" },
36398
- onattach: []
36399
- } } : ch)] }), { parent: true });
36400
- };
36401
- inst.with = inst.check;
36402
- inst.clone = (def, params) => clone(inst, def, params);
36403
- inst.brand = () => inst;
36404
- inst.register = ((reg, meta) => {
36405
- reg.add(inst, meta);
36406
- return inst;
36407
- });
36408
36607
  inst.parse = (data, params) => parse$2(inst, data, params, { callee: inst.parse });
36409
36608
  inst.safeParse = (data, params) => safeParse(inst, data, params);
36410
36609
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
@@ -36418,43 +36617,106 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36418
36617
  inst.safeDecode = (data, params) => safeDecode(inst, data, params);
36419
36618
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
36420
36619
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
36421
- inst.refine = (check, params) => inst.check(refine(check, params));
36422
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
36423
- inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
36424
- inst.optional = () => optional(inst);
36425
- inst.exactOptional = () => exactOptional(inst);
36426
- inst.nullable = () => nullable(inst);
36427
- inst.nullish = () => optional(nullable(inst));
36428
- inst.nonoptional = (params) => nonoptional(inst, params);
36429
- inst.array = () => array(inst);
36430
- inst.or = (arg) => union([inst, arg]);
36431
- inst.and = (arg) => intersection(inst, arg);
36432
- inst.transform = (tx) => pipe(inst, transform(tx));
36433
- inst.default = (def) => _default(inst, def);
36434
- inst.prefault = (def) => prefault(inst, def);
36435
- inst.catch = (params) => _catch(inst, params);
36436
- inst.pipe = (target) => pipe(inst, target);
36437
- inst.readonly = () => readonly(inst);
36438
- inst.describe = (description) => {
36439
- const cl = inst.clone();
36440
- globalRegistry.add(cl, { description });
36441
- return cl;
36442
- };
36620
+ _installLazyMethods(inst, "ZodType", {
36621
+ check(...chks) {
36622
+ const def = this.def;
36623
+ return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
36624
+ check: ch,
36625
+ def: { check: "custom" },
36626
+ onattach: []
36627
+ } } : ch)] }), { parent: true });
36628
+ },
36629
+ with(...chks) {
36630
+ return this.check(...chks);
36631
+ },
36632
+ clone(def, params) {
36633
+ return clone(this, def, params);
36634
+ },
36635
+ brand() {
36636
+ return this;
36637
+ },
36638
+ register(reg, meta) {
36639
+ reg.add(this, meta);
36640
+ return this;
36641
+ },
36642
+ refine(check, params) {
36643
+ return this.check(refine(check, params));
36644
+ },
36645
+ superRefine(refinement, params) {
36646
+ return this.check(superRefine(refinement, params));
36647
+ },
36648
+ overwrite(fn) {
36649
+ return this.check(/* @__PURE__ */ _overwrite(fn));
36650
+ },
36651
+ optional() {
36652
+ return optional(this);
36653
+ },
36654
+ exactOptional() {
36655
+ return exactOptional(this);
36656
+ },
36657
+ nullable() {
36658
+ return nullable(this);
36659
+ },
36660
+ nullish() {
36661
+ return optional(nullable(this));
36662
+ },
36663
+ nonoptional(params) {
36664
+ return nonoptional(this, params);
36665
+ },
36666
+ array() {
36667
+ return array(this);
36668
+ },
36669
+ or(arg) {
36670
+ return union([this, arg]);
36671
+ },
36672
+ and(arg) {
36673
+ return intersection(this, arg);
36674
+ },
36675
+ transform(tx) {
36676
+ return pipe(this, transform(tx));
36677
+ },
36678
+ default(d) {
36679
+ return _default(this, d);
36680
+ },
36681
+ prefault(d) {
36682
+ return prefault(this, d);
36683
+ },
36684
+ catch(params) {
36685
+ return _catch(this, params);
36686
+ },
36687
+ pipe(target) {
36688
+ return pipe(this, target);
36689
+ },
36690
+ readonly() {
36691
+ return readonly(this);
36692
+ },
36693
+ describe(description) {
36694
+ const cl = this.clone();
36695
+ globalRegistry.add(cl, { description });
36696
+ return cl;
36697
+ },
36698
+ meta(...args) {
36699
+ if (args.length === 0) return globalRegistry.get(this);
36700
+ const cl = this.clone();
36701
+ globalRegistry.add(cl, args[0]);
36702
+ return cl;
36703
+ },
36704
+ isOptional() {
36705
+ return this.safeParse(void 0).success;
36706
+ },
36707
+ isNullable() {
36708
+ return this.safeParse(null).success;
36709
+ },
36710
+ apply(fn) {
36711
+ return fn(this);
36712
+ }
36713
+ });
36443
36714
  Object.defineProperty(inst, "description", {
36444
36715
  get() {
36445
36716
  return globalRegistry.get(inst)?.description;
36446
36717
  },
36447
36718
  configurable: true
36448
36719
  });
36449
- inst.meta = (...args) => {
36450
- if (args.length === 0) return globalRegistry.get(inst);
36451
- const cl = inst.clone();
36452
- globalRegistry.add(cl, args[0]);
36453
- return cl;
36454
- };
36455
- inst.isOptional = () => inst.safeParse(void 0).success;
36456
- inst.isNullable = () => inst.safeParse(null).success;
36457
- inst.apply = (fn) => fn(inst);
36458
36720
  return inst;
36459
36721
  });
36460
36722
  /** @internal */
@@ -36466,21 +36728,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
36466
36728
  inst.format = bag.format ?? null;
36467
36729
  inst.minLength = bag.minimum ?? null;
36468
36730
  inst.maxLength = bag.maximum ?? null;
36469
- inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
36470
- inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
36471
- inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
36472
- inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
36473
- inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
36474
- inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
36475
- inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
36476
- inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
36477
- inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
36478
- inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
36479
- inst.trim = () => inst.check(/* @__PURE__ */ _trim());
36480
- inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
36481
- inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
36482
- inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
36483
- inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
36731
+ _installLazyMethods(inst, "_ZodString", {
36732
+ regex(...args) {
36733
+ return this.check(/* @__PURE__ */ _regex(...args));
36734
+ },
36735
+ includes(...args) {
36736
+ return this.check(/* @__PURE__ */ _includes(...args));
36737
+ },
36738
+ startsWith(...args) {
36739
+ return this.check(/* @__PURE__ */ _startsWith(...args));
36740
+ },
36741
+ endsWith(...args) {
36742
+ return this.check(/* @__PURE__ */ _endsWith(...args));
36743
+ },
36744
+ min(...args) {
36745
+ return this.check(/* @__PURE__ */ _minLength(...args));
36746
+ },
36747
+ max(...args) {
36748
+ return this.check(/* @__PURE__ */ _maxLength(...args));
36749
+ },
36750
+ length(...args) {
36751
+ return this.check(/* @__PURE__ */ _length(...args));
36752
+ },
36753
+ nonempty(...args) {
36754
+ return this.check(/* @__PURE__ */ _minLength(1, ...args));
36755
+ },
36756
+ lowercase(params) {
36757
+ return this.check(/* @__PURE__ */ _lowercase(params));
36758
+ },
36759
+ uppercase(params) {
36760
+ return this.check(/* @__PURE__ */ _uppercase(params));
36761
+ },
36762
+ trim() {
36763
+ return this.check(/* @__PURE__ */ _trim());
36764
+ },
36765
+ normalize(...args) {
36766
+ return this.check(/* @__PURE__ */ _normalize(...args));
36767
+ },
36768
+ toLowerCase() {
36769
+ return this.check(/* @__PURE__ */ _toLowerCase());
36770
+ },
36771
+ toUpperCase() {
36772
+ return this.check(/* @__PURE__ */ _toUpperCase());
36773
+ },
36774
+ slugify() {
36775
+ return this.check(/* @__PURE__ */ _slugify());
36776
+ }
36777
+ });
36484
36778
  });
36485
36779
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
36486
36780
  $ZodString.init(inst, def);
@@ -36547,6 +36841,11 @@ var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
36547
36841
  $ZodNanoID.init(inst, def);
36548
36842
  ZodStringFormat.init(inst, def);
36549
36843
  });
36844
+ /**
36845
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
36846
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
36847
+ * See https://github.com/paralleldrive/cuid.
36848
+ */
36550
36849
  var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
36551
36850
  $ZodCUID.init(inst, def);
36552
36851
  ZodStringFormat.init(inst, def);
@@ -36603,21 +36902,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
36603
36902
  $ZodNumber.init(inst, def);
36604
36903
  ZodType.init(inst, def);
36605
36904
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
36606
- inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
36607
- inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
36608
- inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
36609
- inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
36610
- inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
36611
- inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
36612
- inst.int = (params) => inst.check(int(params));
36613
- inst.safe = (params) => inst.check(int(params));
36614
- inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(0, params));
36615
- inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(0, params));
36616
- inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(0, params));
36617
- inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(0, params));
36618
- inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
36619
- inst.step = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
36620
- inst.finite = () => inst;
36905
+ _installLazyMethods(inst, "ZodNumber", {
36906
+ gt(value, params) {
36907
+ return this.check(/* @__PURE__ */ _gt(value, params));
36908
+ },
36909
+ gte(value, params) {
36910
+ return this.check(/* @__PURE__ */ _gte(value, params));
36911
+ },
36912
+ min(value, params) {
36913
+ return this.check(/* @__PURE__ */ _gte(value, params));
36914
+ },
36915
+ lt(value, params) {
36916
+ return this.check(/* @__PURE__ */ _lt(value, params));
36917
+ },
36918
+ lte(value, params) {
36919
+ return this.check(/* @__PURE__ */ _lte(value, params));
36920
+ },
36921
+ max(value, params) {
36922
+ return this.check(/* @__PURE__ */ _lte(value, params));
36923
+ },
36924
+ int(params) {
36925
+ return this.check(int(params));
36926
+ },
36927
+ safe(params) {
36928
+ return this.check(int(params));
36929
+ },
36930
+ positive(params) {
36931
+ return this.check(/* @__PURE__ */ _gt(0, params));
36932
+ },
36933
+ nonnegative(params) {
36934
+ return this.check(/* @__PURE__ */ _gte(0, params));
36935
+ },
36936
+ negative(params) {
36937
+ return this.check(/* @__PURE__ */ _lt(0, params));
36938
+ },
36939
+ nonpositive(params) {
36940
+ return this.check(/* @__PURE__ */ _lte(0, params));
36941
+ },
36942
+ multipleOf(value, params) {
36943
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
36944
+ },
36945
+ step(value, params) {
36946
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
36947
+ },
36948
+ finite() {
36949
+ return this;
36950
+ }
36951
+ });
36621
36952
  const bag = inst._zod.bag;
36622
36953
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
36623
36954
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -36662,7 +36993,7 @@ function _null(params) {
36662
36993
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
36663
36994
  $ZodUnknown.init(inst, def);
36664
36995
  ZodType.init(inst, def);
36665
- inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
36996
+ inst._zod.processJSONSchema = (ctx, json, params) => void 0;
36666
36997
  });
36667
36998
  function unknown() {
36668
36999
  return /* @__PURE__ */ _unknown(ZodUnknown);
@@ -36693,11 +37024,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
36693
37024
  ZodType.init(inst, def);
36694
37025
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
36695
37026
  inst.element = def.element;
36696
- inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
36697
- inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
36698
- inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
36699
- inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
36700
- inst.unwrap = () => inst.element;
37027
+ _installLazyMethods(inst, "ZodArray", {
37028
+ min(n, params) {
37029
+ return this.check(/* @__PURE__ */ _minLength(n, params));
37030
+ },
37031
+ nonempty(params) {
37032
+ return this.check(/* @__PURE__ */ _minLength(1, params));
37033
+ },
37034
+ max(n, params) {
37035
+ return this.check(/* @__PURE__ */ _maxLength(n, params));
37036
+ },
37037
+ length(n, params) {
37038
+ return this.check(/* @__PURE__ */ _length(n, params));
37039
+ },
37040
+ unwrap() {
37041
+ return this.element;
37042
+ }
37043
+ });
36701
37044
  });
36702
37045
  function array(element, params) {
36703
37046
  return /* @__PURE__ */ _array(ZodArray, element, params);
@@ -36709,38 +37052,62 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
36709
37052
  defineLazy(inst, "shape", () => {
36710
37053
  return def.shape;
36711
37054
  });
36712
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
36713
- inst.catchall = (catchall) => inst.clone({
36714
- ...inst._zod.def,
36715
- catchall
36716
- });
36717
- inst.passthrough = () => inst.clone({
36718
- ...inst._zod.def,
36719
- catchall: unknown()
36720
- });
36721
- inst.loose = () => inst.clone({
36722
- ...inst._zod.def,
36723
- catchall: unknown()
36724
- });
36725
- inst.strict = () => inst.clone({
36726
- ...inst._zod.def,
36727
- catchall: never()
36728
- });
36729
- inst.strip = () => inst.clone({
36730
- ...inst._zod.def,
36731
- catchall: void 0
37055
+ _installLazyMethods(inst, "ZodObject", {
37056
+ keyof() {
37057
+ return _enum(Object.keys(this._zod.def.shape));
37058
+ },
37059
+ catchall(catchall) {
37060
+ return this.clone({
37061
+ ...this._zod.def,
37062
+ catchall
37063
+ });
37064
+ },
37065
+ passthrough() {
37066
+ return this.clone({
37067
+ ...this._zod.def,
37068
+ catchall: unknown()
37069
+ });
37070
+ },
37071
+ loose() {
37072
+ return this.clone({
37073
+ ...this._zod.def,
37074
+ catchall: unknown()
37075
+ });
37076
+ },
37077
+ strict() {
37078
+ return this.clone({
37079
+ ...this._zod.def,
37080
+ catchall: never()
37081
+ });
37082
+ },
37083
+ strip() {
37084
+ return this.clone({
37085
+ ...this._zod.def,
37086
+ catchall: void 0
37087
+ });
37088
+ },
37089
+ extend(incoming) {
37090
+ return extend(this, incoming);
37091
+ },
37092
+ safeExtend(incoming) {
37093
+ return safeExtend(this, incoming);
37094
+ },
37095
+ merge(other) {
37096
+ return merge$1(this, other);
37097
+ },
37098
+ pick(mask) {
37099
+ return pick$1(this, mask);
37100
+ },
37101
+ omit(mask) {
37102
+ return omit$1(this, mask);
37103
+ },
37104
+ partial(...args) {
37105
+ return partial(ZodOptional, this, args[0]);
37106
+ },
37107
+ required(...args) {
37108
+ return required$2(ZodNonOptional, this, args[0]);
37109
+ }
36732
37110
  });
36733
- inst.extend = (incoming) => {
36734
- return extend(inst, incoming);
36735
- };
36736
- inst.safeExtend = (incoming) => {
36737
- return safeExtend(inst, incoming);
36738
- };
36739
- inst.merge = (other) => merge$1(inst, other);
36740
- inst.pick = (mask) => pick$1(inst, mask);
36741
- inst.omit = (mask) => omit$1(inst, mask);
36742
- inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
36743
- inst.required = (...args) => required$2(ZodNonOptional, inst, args[0]);
36744
37111
  });
36745
37112
  function looseObject(shape, params) {
36746
37113
  return new ZodObject({
@@ -36832,9 +37199,11 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
36832
37199
  const output = def.transform(payload.value, payload);
36833
37200
  if (output instanceof Promise) return output.then((output) => {
36834
37201
  payload.value = output;
37202
+ payload.fallback = true;
36835
37203
  return payload;
36836
37204
  });
36837
37205
  payload.value = output;
37206
+ payload.fallback = true;
36838
37207
  return payload;
36839
37208
  };
36840
37209
  });
@@ -36972,49 +37341,8 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
36972
37341
  function refine(fn, _params = {}) {
36973
37342
  return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
36974
37343
  }
36975
- function superRefine(fn) {
36976
- return /* @__PURE__ */ _superRefine(fn);
36977
- }
36978
- //#endregion
36979
- //#region ../../packages/core-kit/src/domains/identity-provider/constants.ts
36980
- var IdentityProviderProtocol = /* @__PURE__ */ function(IdentityProviderProtocol) {
36981
- IdentityProviderProtocol["LDAP"] = "ldap";
36982
- IdentityProviderProtocol["OAUTH2"] = "oauth2";
36983
- IdentityProviderProtocol["OIDC"] = "oidc";
36984
- return IdentityProviderProtocol;
36985
- }({});
36986
- //#endregion
36987
- //#region ../../packages/core-kit/src/domains/identity-provider/preset/constants.ts
36988
- var IdentityProviderPreset = /* @__PURE__ */ function(IdentityProviderPreset) {
36989
- IdentityProviderPreset["FACEBOOK"] = "facebook";
36990
- IdentityProviderPreset["GITHUB"] = "github";
36991
- IdentityProviderPreset["GITLAB"] = "gitlab";
36992
- IdentityProviderPreset["GOOGLE"] = "google";
36993
- IdentityProviderPreset["PAYPAL"] = "paypal";
36994
- IdentityProviderPreset["INSTAGRAM"] = "instagram";
36995
- IdentityProviderPreset["STACKOVERFLOW"] = "stackoverflow";
36996
- IdentityProviderPreset["TWITTER"] = "twitter";
36997
- return IdentityProviderPreset;
36998
- }({});
36999
- //#endregion
37000
- //#region ../../packages/core-kit/src/domains/identity-provider/preset/utils.ts
37001
- function getIdentityProviderProtocolForPreset(id) {
37002
- switch (id) {
37003
- case IdentityProviderPreset.GITHUB:
37004
- case IdentityProviderPreset.GITLAB:
37005
- case IdentityProviderPreset.GOOGLE:
37006
- case IdentityProviderPreset.FACEBOOK:
37007
- case IdentityProviderPreset.INSTAGRAM:
37008
- case IdentityProviderPreset.PAYPAL:
37009
- case IdentityProviderPreset.STACKOVERFLOW:
37010
- case IdentityProviderPreset.TWITTER: return IdentityProviderProtocol.OIDC;
37011
- }
37012
- return null;
37013
- }
37014
- //#endregion
37015
- //#region ../../packages/core-kit/src/domains/identity-provider/utils.ts
37016
- function buildIdentityProviderAuthorizePath(id) {
37017
- return `/identity-providers/${id}/authorize-out`;
37344
+ function superRefine(fn, params) {
37345
+ return /* @__PURE__ */ _superRefine(fn, params);
37018
37346
  }
37019
37347
  //#endregion
37020
37348
  //#region ../../packages/kit/src/constants.ts
@@ -37069,6 +37397,7 @@ function hasOwnProperty$2(obj, prop) {
37069
37397
  var POOL_SIZE_MULTIPLIER = 128;
37070
37398
  var pool, poolOffset;
37071
37399
  function fillPool(bytes) {
37400
+ if (bytes < 0 || bytes > 1024) throw new RangeError("Wrong ID size");
37072
37401
  if (!pool || pool.length < bytes) {
37073
37402
  pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
37074
37403
  webcrypto.getRandomValues(pool);
@@ -37126,7 +37455,7 @@ function createNanoID(alphabetOrLen, len) {
37126
37455
  }
37127
37456
  //#endregion
37128
37457
  //#region ../../packages/kit/src/object.ts
37129
- function isObject$4(input) {
37458
+ function isObject$5(input) {
37130
37459
  return !!input && typeof input === "object" && !Array.isArray(input);
37131
37460
  }
37132
37461
  function extendObject(target, source) {
@@ -37139,7 +37468,7 @@ function flattenObject(input) {
37139
37468
  const keys = Object.keys(input);
37140
37469
  for (const key of keys) {
37141
37470
  const value = input[key];
37142
- if (isObject$4(value)) {
37471
+ if (isObject$5(value)) {
37143
37472
  const childAttributes = flattenObject(value);
37144
37473
  const childAttributeKeys = Object.keys(childAttributes);
37145
37474
  for (const childAttributeKey of childAttributeKeys) output[`${key}.${childAttributeKey}`] = childAttributes[childAttributeKey];
@@ -37163,6 +37492,47 @@ function omitRecord(data, keys) {
37163
37492
  return output;
37164
37493
  }
37165
37494
  //#endregion
37495
+ //#region ../../packages/core-kit/src/domains/identity-provider/constants.ts
37496
+ var IdentityProviderProtocol = /* @__PURE__ */ function(IdentityProviderProtocol) {
37497
+ IdentityProviderProtocol["LDAP"] = "ldap";
37498
+ IdentityProviderProtocol["OAUTH2"] = "oauth2";
37499
+ IdentityProviderProtocol["OIDC"] = "oidc";
37500
+ return IdentityProviderProtocol;
37501
+ }({});
37502
+ //#endregion
37503
+ //#region ../../packages/core-kit/src/domains/identity-provider/preset/constants.ts
37504
+ var IdentityProviderPreset = /* @__PURE__ */ function(IdentityProviderPreset) {
37505
+ IdentityProviderPreset["FACEBOOK"] = "facebook";
37506
+ IdentityProviderPreset["GITHUB"] = "github";
37507
+ IdentityProviderPreset["GITLAB"] = "gitlab";
37508
+ IdentityProviderPreset["GOOGLE"] = "google";
37509
+ IdentityProviderPreset["PAYPAL"] = "paypal";
37510
+ IdentityProviderPreset["INSTAGRAM"] = "instagram";
37511
+ IdentityProviderPreset["STACKOVERFLOW"] = "stackoverflow";
37512
+ IdentityProviderPreset["TWITTER"] = "twitter";
37513
+ return IdentityProviderPreset;
37514
+ }({});
37515
+ //#endregion
37516
+ //#region ../../packages/core-kit/src/domains/identity-provider/preset/utils.ts
37517
+ function getIdentityProviderProtocolForPreset(id) {
37518
+ switch (id) {
37519
+ case IdentityProviderPreset.GITHUB:
37520
+ case IdentityProviderPreset.GITLAB:
37521
+ case IdentityProviderPreset.GOOGLE:
37522
+ case IdentityProviderPreset.FACEBOOK:
37523
+ case IdentityProviderPreset.INSTAGRAM:
37524
+ case IdentityProviderPreset.PAYPAL:
37525
+ case IdentityProviderPreset.STACKOVERFLOW:
37526
+ case IdentityProviderPreset.TWITTER: return IdentityProviderProtocol.OIDC;
37527
+ }
37528
+ return null;
37529
+ }
37530
+ //#endregion
37531
+ //#region ../../packages/core-kit/src/domains/identity-provider/utils.ts
37532
+ function buildIdentityProviderAuthorizePath(id) {
37533
+ return `/identity-providers/${id}/authorize-out`;
37534
+ }
37535
+ //#endregion
37166
37536
  //#region ../../packages/core-kit/src/domains/realm/constants.ts
37167
37537
  var REALM_MASTER_NAME = "master";
37168
37538
  //#endregion
@@ -37309,7 +37679,7 @@ var MemoryStore = class {
37309
37679
  }
37310
37680
  };
37311
37681
  //#endregion
37312
- //#region ../../packages/client-web-kit/node_modules/@ilingo/vue/dist/index.mjs
37682
+ //#region ../../node_modules/@ilingo/vue/dist/index.mjs
37313
37683
  function inject$5(key, instance) {
37314
37684
  if (instance && instance._context && instance._context.provides && instance._context.provides[key]) return instance._context.provides[key];
37315
37685
  if ((0, vue_exports.hasInjectionContext)()) return (0, vue_exports.inject)(key, void 0);
@@ -37410,7 +37780,7 @@ function applyInstallInput(app, input) {
37410
37780
  return instance;
37411
37781
  }
37412
37782
  //#endregion
37413
- //#region ../../packages/client-web-kit/node_modules/@ilingo/vuelidate/dist/index.mjs
37783
+ //#region ../../node_modules/@ilingo/vuelidate/dist/index.mjs
37414
37784
  function useGermanTranslation() {
37415
37785
  return {
37416
37786
  alpha: "Der Wert ist nicht alphabetisch",
@@ -37547,11 +37917,11 @@ function useSeverity(input) {
37547
37917
  function hasOwnProperty$1(obj, prop) {
37548
37918
  return Object.prototype.hasOwnProperty.call(obj, prop);
37549
37919
  }
37550
- function isObject$3(input) {
37920
+ function isObject$4(input) {
37551
37921
  return typeof input === "object" && input !== null && !Array.isArray(input) && !!input;
37552
37922
  }
37553
37923
  function isRuleResult(input) {
37554
- return isObject$3(input) && hasOwnProperty$1(input, "$message") && hasOwnProperty$1(input, "$pending") && hasOwnProperty$1(input, "$invalid") && hasOwnProperty$1(input, "$response");
37924
+ return isObject$4(input) && hasOwnProperty$1(input, "$message") && hasOwnProperty$1(input, "$pending") && hasOwnProperty$1(input, "$invalid") && hasOwnProperty$1(input, "$response");
37555
37925
  }
37556
37926
  function useTranslationsForBaseValidation$1(result) {
37557
37927
  const rules = (0, vue_exports.computed)(() => {
@@ -38308,7 +38678,7 @@ function _defineProperty(obj, key, value) {
38308
38678
  function isFunction(val) {
38309
38679
  return typeof val === "function";
38310
38680
  }
38311
- function isObject$2(o) {
38681
+ function isObject$3(o) {
38312
38682
  return o !== null && typeof o === "object" && !Array.isArray(o);
38313
38683
  }
38314
38684
  function normalizeValidatorObject(validator) {
@@ -38322,15 +38692,15 @@ function unwrapNormalizedValidator(validator) {
38322
38692
  return validator.$validator || validator;
38323
38693
  }
38324
38694
  function withParams($params, $validator) {
38325
- if (!isObject$2($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
38326
- if (!isObject$2($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
38695
+ if (!isObject$3($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
38696
+ if (!isObject$3($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
38327
38697
  const validatorObj = normalizeValidatorObject($validator);
38328
38698
  validatorObj.$params = _objectSpread2(_objectSpread2({}, validatorObj.$params || {}), $params);
38329
38699
  return validatorObj;
38330
38700
  }
38331
38701
  function withMessage($message, $validator) {
38332
38702
  if (!isFunction($message) && typeof (0, lib_exports.unref)($message) !== "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof $message}`);
38333
- if (!isObject$2($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
38703
+ if (!isObject$3($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
38334
38704
  const validatorObj = normalizeValidatorObject($validator);
38335
38705
  validatorObj.$message = $message;
38336
38706
  return validatorObj;
@@ -38778,11 +39148,11 @@ var buildFilterFn = (item, itemId, itemKey) => {
38778
39148
  if (typeof itemKey === "function") return el[itemKey(el)] === item[itemKey(item)];
38779
39149
  return el[itemKey] === item[itemKey];
38780
39150
  };
38781
- if (!filterFn && isObject$10(item) && hasOwnProperty$4(item, "id")) filterFn = (el) => el["id"] === item["id"];
39151
+ if (!filterFn && isObject$11(item) && hasOwnProperty$4(item, "id")) filterFn = (el) => el["id"] === item["id"];
38782
39152
  return filterFn;
38783
39153
  };
38784
39154
  function mergeUnknown(primary, secondary) {
38785
- if (isObject$10(primary) && isObject$10(secondary)) return merge$2({}, primary, secondary);
39155
+ if (isObject$11(primary) && isObject$11(secondary)) return merge$2({}, primary, secondary);
38786
39156
  return primary;
38787
39157
  }
38788
39158
  function buildListBaseSlotProps(ctx) {
@@ -38956,7 +39326,7 @@ function buildListItem(input) {
38956
39326
  const options = normalizeListItemOptions(input);
38957
39327
  const overrideUpdatedFn = (fn, item) => {
38958
39328
  if (typeof item === "undefined") return fn(options.data);
38959
- if (isObject$10(item) && isObject$10(options.data)) options.data = merge$2(item, options.data);
39329
+ if (isObject$11(item) && isObject$11(options.data)) options.data = merge$2(item, options.data);
38960
39330
  else options.data = item;
38961
39331
  return fn(options.data);
38962
39332
  };
@@ -38995,7 +39365,7 @@ function buildListItem(input) {
38995
39365
  if (options.text) {
38996
39366
  let text;
38997
39367
  if (options.textContent) text = evaluateFnOrValue(options.textContent, options.data, slotProps);
38998
- else if (options.textPropName && isObject$10(options.data) && hasOwnProperty$4(options.data, options.textPropName)) text = options.data[options.textPropName];
39368
+ else if (options.textPropName && isObject$11(options.data) && hasOwnProperty$4(options.data, options.textPropName)) text = options.data[options.textPropName];
38999
39369
  if (text) children.text = maybeWrapContent(text, {
39000
39370
  wrap: options.textWrapper,
39001
39371
  tag: options.textWrapperTag,
@@ -39150,7 +39520,7 @@ function buildListNoMore(input = {}) {
39150
39520
  if (options.busy) return [];
39151
39521
  if (typeof options.total === "number") {
39152
39522
  if (options.total > 0) return [];
39153
- } else if (isObject$10(options.meta) && hasOwnProperty$4(options.meta, "total") && typeof options.meta.total === "number" && options.meta.total > 0) return [];
39523
+ } else if (isObject$11(options.meta) && hasOwnProperty$4(options.meta, "total") && typeof options.meta.total === "number" && options.meta.total > 0) return [];
39154
39524
  let slotProps;
39155
39525
  if (options.slotPropsBuilt) slotProps = options.slotProps;
39156
39526
  else slotProps = {
@@ -39409,10 +39779,10 @@ var o$4 = (e, l) => t$1(e, "name", {
39409
39779
  configurable: !0
39410
39780
  });
39411
39781
  var n$5 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
39412
- function f$3(e) {
39782
+ function f$4(e) {
39413
39783
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
39414
39784
  }
39415
- o$4(f$3, "getDefaultExportFromCjs");
39785
+ o$4(f$4, "getDefaultExportFromCjs");
39416
39786
  //#endregion
39417
39787
  //#region ../../node_modules/node-fetch-native/dist/node.mjs
39418
39788
  var Os = Object.defineProperty;
@@ -39424,7 +39794,7 @@ var n$4 = (i, o) => Os(i, "name", {
39424
39794
  configurable: !0
39425
39795
  });
39426
39796
  var ci = (i, o, a) => o.has(i) || fi("Cannot " + a);
39427
- var O$3 = (i, o, a) => (ci(i, o, "read from private field"), a ? a.call(i) : o.get(i)), be = (i, o, a) => o.has(i) ? fi("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, a), X = (i, o, a, f) => (ci(i, o, "write to private field"), f ? f.call(i, a) : o.set(i, a), a);
39797
+ var O$2 = (i, o, a) => (ci(i, o, "read from private field"), a ? a.call(i) : o.get(i)), be = (i, o, a) => o.has(i) ? fi("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, a), X = (i, o, a, f) => (ci(i, o, "write to private field"), f ? f.call(i, a) : o.set(i, a), a);
39428
39798
  var ve, zt, bt, Cr, ze, It, Ft, mt, ee, yt, He, Ve, gt;
39429
39799
  function Us(i) {
39430
39800
  if (!/^data:/i.test(i)) throw new TypeError("`uri` does not appear to be a Data URI (must begin with \"data:\")");
@@ -42102,32 +42472,32 @@ var gi = (ze = class {
42102
42472
  const f = new TextEncoder();
42103
42473
  for (const p of o) {
42104
42474
  let h;
42105
- ArrayBuffer.isView(p) ? h = new Uint8Array(p.buffer.slice(p.byteOffset, p.byteOffset + p.byteLength)) : p instanceof ArrayBuffer ? h = new Uint8Array(p.slice(0)) : p instanceof ze ? h = p : h = f.encode(`${p}`), X(this, bt, O$3(this, bt) + (ArrayBuffer.isView(h) ? h.byteLength : h.size)), O$3(this, ve).push(h);
42475
+ ArrayBuffer.isView(p) ? h = new Uint8Array(p.buffer.slice(p.byteOffset, p.byteOffset + p.byteLength)) : p instanceof ArrayBuffer ? h = new Uint8Array(p.slice(0)) : p instanceof ze ? h = p : h = f.encode(`${p}`), X(this, bt, O$2(this, bt) + (ArrayBuffer.isView(h) ? h.byteLength : h.size)), O$2(this, ve).push(h);
42106
42476
  }
42107
42477
  X(this, Cr, `${a.endings === void 0 ? "transparent" : a.endings}`);
42108
42478
  const l = a.type === void 0 ? "" : String(a.type);
42109
42479
  X(this, zt, /^[\x20-\x7E]*$/.test(l) ? l : "");
42110
42480
  }
42111
42481
  get size() {
42112
- return O$3(this, bt);
42482
+ return O$2(this, bt);
42113
42483
  }
42114
42484
  get type() {
42115
- return O$3(this, zt);
42485
+ return O$2(this, zt);
42116
42486
  }
42117
42487
  async text() {
42118
42488
  const o = new TextDecoder();
42119
42489
  let a = "";
42120
- for await (const f of Wn(O$3(this, ve), !1)) a += o.decode(f, { stream: !0 });
42490
+ for await (const f of Wn(O$2(this, ve), !1)) a += o.decode(f, { stream: !0 });
42121
42491
  return a += o.decode(), a;
42122
42492
  }
42123
42493
  async arrayBuffer() {
42124
42494
  const o = new Uint8Array(this.size);
42125
42495
  let a = 0;
42126
- for await (const f of Wn(O$3(this, ve), !1)) o.set(f, a), a += f.length;
42496
+ for await (const f of Wn(O$2(this, ve), !1)) o.set(f, a), a += f.length;
42127
42497
  return o.buffer;
42128
42498
  }
42129
42499
  stream() {
42130
- const o = Wn(O$3(this, ve), !0);
42500
+ const o = Wn(O$2(this, ve), !0);
42131
42501
  return new globalThis.ReadableStream({
42132
42502
  type: "bytes",
42133
42503
  async pull(a) {
@@ -42142,7 +42512,7 @@ var gi = (ze = class {
42142
42512
  slice(o = 0, a = this.size, f = "") {
42143
42513
  const { size: l } = this;
42144
42514
  let p = o < 0 ? Math.max(l + o, 0) : Math.min(o, l), h = a < 0 ? Math.max(l + a, 0) : Math.min(a, l);
42145
- const S = Math.max(h - p, 0), v = O$3(this, ve), w = [];
42515
+ const S = Math.max(h - p, 0), v = O$2(this, ve), w = [];
42146
42516
  let A = 0;
42147
42517
  for (const b of v) {
42148
42518
  if (A >= S) break;
@@ -42179,10 +42549,10 @@ var ut = gi, qn = (mt = class extends ut {
42179
42549
  Number.isNaN(p) || X(this, It, p), X(this, Ft, String(f));
42180
42550
  }
42181
42551
  get name() {
42182
- return O$3(this, Ft);
42552
+ return O$2(this, Ft);
42183
42553
  }
42184
42554
  get lastModified() {
42185
- return O$3(this, It);
42555
+ return O$2(this, It);
42186
42556
  }
42187
42557
  get [Symbol.toStringTag]() {
42188
42558
  return "File";
@@ -42210,21 +42580,21 @@ var br = (yt = class {
42210
42580
  return o && typeof o == "object" && o[Wt] === "FormData" && !Gs.some((a) => typeof o[a] != "function");
42211
42581
  }
42212
42582
  append(...o) {
42213
- Ue("append", arguments, 2), O$3(this, ee).push(Si(...o));
42583
+ Ue("append", arguments, 2), O$2(this, ee).push(Si(...o));
42214
42584
  }
42215
42585
  delete(o) {
42216
- Ue("delete", arguments, 1), o += "", X(this, ee, O$3(this, ee).filter(([a]) => a !== o));
42586
+ Ue("delete", arguments, 1), o += "", X(this, ee, O$2(this, ee).filter(([a]) => a !== o));
42217
42587
  }
42218
42588
  get(o) {
42219
42589
  Ue("get", arguments, 1), o += "";
42220
- for (var a = O$3(this, ee), f = a.length, l = 0; l < f; l++) if (a[l][0] === o) return a[l][1];
42590
+ for (var a = O$2(this, ee), f = a.length, l = 0; l < f; l++) if (a[l][0] === o) return a[l][1];
42221
42591
  return null;
42222
42592
  }
42223
42593
  getAll(o, a) {
42224
- return Ue("getAll", arguments, 1), a = [], o += "", O$3(this, ee).forEach((f) => f[0] === o && a.push(f[1])), a;
42594
+ return Ue("getAll", arguments, 1), a = [], o += "", O$2(this, ee).forEach((f) => f[0] === o && a.push(f[1])), a;
42225
42595
  }
42226
42596
  has(o) {
42227
- return Ue("has", arguments, 1), o += "", O$3(this, ee).some((a) => a[0] === o);
42597
+ return Ue("has", arguments, 1), o += "", O$2(this, ee).some((a) => a[0] === o);
42228
42598
  }
42229
42599
  forEach(o, a) {
42230
42600
  Ue("forEach", arguments, 1);
@@ -42233,12 +42603,12 @@ var br = (yt = class {
42233
42603
  set(...o) {
42234
42604
  Ue("set", arguments, 2);
42235
42605
  var a = [], f = !0;
42236
- o = Si(...o), O$3(this, ee).forEach((l) => {
42606
+ o = Si(...o), O$2(this, ee).forEach((l) => {
42237
42607
  l[0] === o[0] ? f && (f = !a.push(o)) : a.push(l);
42238
42608
  }), f && a.push(o), X(this, ee, a);
42239
42609
  }
42240
42610
  *entries() {
42241
- yield* O$3(this, ee);
42611
+ yield* O$2(this, ee);
42242
42612
  }
42243
42613
  *keys() {
42244
42614
  for (var [o] of this) yield o;
@@ -42646,7 +43016,7 @@ function cl(i) {
42646
43016
  return a;
42647
43017
  }
42648
43018
  n$4(cl, "parseReferrerPolicyFromHeader");
42649
- var $$2 = Symbol("Request internals"), qt = n$4((i) => typeof i == "object" && typeof i[$$2] == "object", "isRequest"), dl = deprecate(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"), vr = class vr extends xe {
43019
+ var $ = Symbol("Request internals"), qt = n$4((i) => typeof i == "object" && typeof i[$] == "object", "isRequest"), dl = deprecate(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"), vr = class vr extends xe {
42650
43020
  constructor(o, a = {}) {
42651
43021
  let f;
42652
43022
  if (qt(o) ? f = new URL(o.url) : (f = new URL(o), o = {}), f.username !== "" || f.password !== "") throw new TypeError(`${f} is an url with embedded credentials.`);
@@ -42667,7 +43037,7 @@ var $$2 = Symbol("Request internals"), qt = n$4((i) => typeof i == "object" && t
42667
43037
  const w = new URL(v);
42668
43038
  v = /^about:(\/\/)?client$/.test(w) ? "client" : w;
42669
43039
  } else v = void 0;
42670
- this[$$2] = {
43040
+ this[$] = {
42671
43041
  method: l,
42672
43042
  redirect: a.redirect || o.redirect || "follow",
42673
43043
  headers: h,
@@ -42677,30 +43047,30 @@ var $$2 = Symbol("Request internals"), qt = n$4((i) => typeof i == "object" && t
42677
43047
  }, this.follow = a.follow === void 0 ? o.follow === void 0 ? 20 : o.follow : a.follow, this.compress = a.compress === void 0 ? o.compress === void 0 ? !0 : o.compress : a.compress, this.counter = a.counter || o.counter || 0, this.agent = a.agent || o.agent, this.highWaterMark = a.highWaterMark || o.highWaterMark || 16384, this.insecureHTTPParser = a.insecureHTTPParser || o.insecureHTTPParser || !1, this.referrerPolicy = a.referrerPolicy || o.referrerPolicy || "";
42678
43048
  }
42679
43049
  get method() {
42680
- return this[$$2].method;
43050
+ return this[$].method;
42681
43051
  }
42682
43052
  get url() {
42683
- return format(this[$$2].parsedURL);
43053
+ return format(this[$].parsedURL);
42684
43054
  }
42685
43055
  get headers() {
42686
- return this[$$2].headers;
43056
+ return this[$].headers;
42687
43057
  }
42688
43058
  get redirect() {
42689
- return this[$$2].redirect;
43059
+ return this[$].redirect;
42690
43060
  }
42691
43061
  get signal() {
42692
- return this[$$2].signal;
43062
+ return this[$].signal;
42693
43063
  }
42694
43064
  get referrer() {
42695
- if (this[$$2].referrer === "no-referrer") return "";
42696
- if (this[$$2].referrer === "client") return "about:client";
42697
- if (this[$$2].referrer) return this[$$2].referrer.toString();
43065
+ if (this[$].referrer === "no-referrer") return "";
43066
+ if (this[$].referrer === "client") return "about:client";
43067
+ if (this[$].referrer) return this[$].referrer.toString();
42698
43068
  }
42699
43069
  get referrerPolicy() {
42700
- return this[$$2].referrerPolicy;
43070
+ return this[$].referrerPolicy;
42701
43071
  }
42702
43072
  set referrerPolicy(o) {
42703
- this[$$2].referrerPolicy = ll(o);
43073
+ this[$].referrerPolicy = ll(o);
42704
43074
  }
42705
43075
  clone() {
42706
43076
  return new vr(this);
@@ -42722,14 +43092,14 @@ Object.defineProperties(dt.prototype, {
42722
43092
  referrerPolicy: { enumerable: !0 }
42723
43093
  });
42724
43094
  var hl = n$4((i) => {
42725
- const { parsedURL: o } = i[$$2], a = new ye(i[$$2].headers);
43095
+ const { parsedURL: o } = i[$], a = new ye(i[$].headers);
42726
43096
  a.has("Accept") || a.set("Accept", "*/*");
42727
43097
  let f = null;
42728
43098
  if (i.body === null && /^(post|put)$/i.test(i.method) && (f = "0"), i.body !== null) {
42729
43099
  const S = rl(i);
42730
43100
  typeof S == "number" && !Number.isNaN(S) && (f = String(S));
42731
43101
  }
42732
- f && a.set("Content-Length", f), i.referrerPolicy === "" && (i.referrerPolicy = sl), i.referrer && i.referrer !== "no-referrer" ? i[$$2].referrer = fl(i) : i[$$2].referrer = "no-referrer", i[$$2].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br");
43102
+ f && a.set("Content-Length", f), i.referrerPolicy === "" && (i.referrerPolicy = sl), i.referrer && i.referrer !== "no-referrer" ? i[$].referrer = fl(i) : i[$].referrer = "no-referrer", i[$].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br");
42733
43103
  let { agent: l } = i;
42734
43104
  typeof l == "function" && (l = l(o));
42735
43105
  const p = al(o);
@@ -42762,7 +43132,7 @@ function pl() {
42762
43132
  return Ln = globalThis.DOMException, Ln;
42763
43133
  }
42764
43134
  n$4(pl, "requireNodeDomexception");
42765
- var ml = f$3(pl()), { stat: $n } = promises;
43135
+ var ml = f$4(pl()), { stat: $n } = promises;
42766
43136
  n$4((i, o) => vi(statSync(i), i, o), "blobFromSync");
42767
43137
  n$4((i, o) => $n(i).then((a) => vi(a, i, o)), "blobFrom");
42768
43138
  n$4((i, o) => $n(i).then((a) => Ei(a, i, o)), "fileFrom");
@@ -42788,18 +43158,18 @@ var vi = n$4((i, o, a = "") => new ut([new Sr({
42788
43158
  }
42789
43159
  slice(o, a) {
42790
43160
  return new Er({
42791
- path: O$3(this, He),
43161
+ path: O$2(this, He),
42792
43162
  lastModified: this.lastModified,
42793
43163
  size: a - o,
42794
- start: O$3(this, Ve) + o
43164
+ start: O$2(this, Ve) + o
42795
43165
  });
42796
43166
  }
42797
43167
  async *stream() {
42798
- const { mtimeMs: o } = await $n(O$3(this, He));
43168
+ const { mtimeMs: o } = await $n(O$2(this, He));
42799
43169
  if (o > this.lastModified) throw new ml("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError");
42800
- yield* createReadStream(O$3(this, He), {
42801
- start: O$3(this, Ve),
42802
- end: O$3(this, Ve) + this.size - 1
43170
+ yield* createReadStream(O$2(this, He), {
43171
+ start: O$2(this, Ve),
43172
+ end: O$2(this, Ve) + this.size - 1
42803
43173
  });
42804
43174
  }
42805
43175
  get [Symbol.toStringTag]() {
@@ -43366,18 +43736,77 @@ function Ui() {
43366
43736
  n$4(Ui, "s"), Ol(Ui, "checkNodeEnvironment");
43367
43737
  //#endregion
43368
43738
  //#region ../../node_modules/node-fetch-native/dist/index.mjs
43369
- var o$3 = !!globalThis.process?.env?.FORCE_NODE_FETCH, r$1 = !o$3 && globalThis.fetch || Mi, p$4 = !o$3 && globalThis.Blob || ut, F = !o$3 && globalThis.File || qn, h$25 = !o$3 && globalThis.FormData || br, n$3 = !o$3 && globalThis.Headers || ye;
43739
+ var o$3 = !!globalThis.process?.env?.FORCE_NODE_FETCH, r$2 = !o$3 && globalThis.fetch || Mi, p$4 = !o$3 && globalThis.Blob || ut, F$2 = !o$3 && globalThis.File || qn, h$25 = !o$3 && globalThis.FormData || br, n$3 = !o$3 && globalThis.Headers || ye;
43370
43740
  !o$3 && globalThis.Request;
43371
43741
  !o$3 && globalThis.Response;
43372
43742
  !o$3 && globalThis.AbortController;
43373
43743
  //#endregion
43744
+ //#region ../../node_modules/ebec/dist/index.mjs
43745
+ function isObject$2(item) {
43746
+ return !!item && typeof item === "object" && !Array.isArray(item);
43747
+ }
43748
+ function createExtractOptionsFn(fn) {
43749
+ return (...input) => {
43750
+ const output = {};
43751
+ for (let i = 0; i < input.length; i++) {
43752
+ const element = input[i];
43753
+ if (typeof element === "string") {
43754
+ output.message = element;
43755
+ continue;
43756
+ }
43757
+ if (element instanceof Error) {
43758
+ output.message = element.message;
43759
+ output.stack = element.stack;
43760
+ output.cause = element;
43761
+ }
43762
+ if (fn(element)) {
43763
+ const keys = Object.keys(element);
43764
+ for (let i = 0; i < keys.length; i++) output[keys[i]] = element[keys[i]];
43765
+ }
43766
+ }
43767
+ return output;
43768
+ };
43769
+ }
43770
+ function isOptions(input) {
43771
+ if (!isObject$2(input)) return false;
43772
+ if (typeof input.message !== "undefined" && typeof input.message !== "string") return false;
43773
+ if (typeof input.stack !== "undefined" && typeof input.stack !== "string") return false;
43774
+ if (typeof input.code !== "undefined" && typeof input.code !== "number" && typeof input.code !== "string" && input.code !== null) return false;
43775
+ if (typeof input.expose !== "undefined" && typeof input.expose !== "boolean") return false;
43776
+ if (typeof input.logMessage !== "undefined" && typeof input.logMessage !== "boolean") return false;
43777
+ return typeof input.logLevel === "undefined" || typeof input.logLevel === "number" || typeof input.logLevel === "string";
43778
+ }
43779
+ var check = createExtractOptionsFn(isOptions);
43780
+ function extractOptions(...input) {
43781
+ return check(...input);
43782
+ }
43783
+ var BaseError = class extends Error {
43784
+ constructor(...input) {
43785
+ const options = extractOptions(...input);
43786
+ super(options.message, { cause: options.cause });
43787
+ if (typeof this.name === "undefined" || this.name === "Error") Object.defineProperty(this, "name", {
43788
+ configurable: true,
43789
+ enumerable: false,
43790
+ value: this.constructor.name,
43791
+ writable: true
43792
+ });
43793
+ if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
43794
+ if (options.stack) this.stack = options.stack;
43795
+ this.code = options.code;
43796
+ this.expose = options.expose;
43797
+ this.logMessage = options.logMessage;
43798
+ this.logLevel = options.logLevel;
43799
+ this.data = options.data;
43800
+ }
43801
+ };
43802
+ //#endregion
43374
43803
  //#region ../../node_modules/hapic/dist/index.mjs
43375
43804
  var n$2 = Object.defineProperty;
43376
- var e$2 = (t, r) => n$2(t, "name", {
43805
+ var e$1 = (t, r) => n$2(t, "name", {
43377
43806
  value: r,
43378
43807
  configurable: true
43379
43808
  });
43380
- var i$3 = Object.defineProperty, c$3 = e$2((t, r) => i$3(t, "name", {
43809
+ var i$2 = Object.defineProperty, c$4 = e$1((t, r) => i$2(t, "name", {
43381
43810
  value: r,
43382
43811
  configurable: true
43383
43812
  }), "e");
@@ -43387,11 +43816,11 @@ function a$2() {
43387
43816
  dispatcher: void 0
43388
43817
  };
43389
43818
  }
43390
- e$2(a$2, "createProxy"), c$3(a$2, "createProxy");
43819
+ e$1(a$2, "createProxy"), c$4(a$2, "createProxy");
43391
43820
  function o$2() {
43392
43821
  return globalThis.fetch;
43393
43822
  }
43394
- e$2(o$2, "createFetch"), c$3(o$2, "createFetch");
43823
+ e$1(o$2, "createFetch"), c$4(o$2, "createFetch");
43395
43824
  var gT = (() => {
43396
43825
  if (typeof globalThis !== "undefined") return globalThis;
43397
43826
  if (typeof self !== "undefined") return self;
@@ -43399,10 +43828,10 @@ var gT = (() => {
43399
43828
  if (typeof global !== "undefined") return global;
43400
43829
  throw new Error("unable to locate global object");
43401
43830
  })();
43402
- var File$1 = gT.File || F;
43831
+ var File$1 = gT.File || F$2;
43403
43832
  var FormData$1 = gT.FormData || h$25;
43404
43833
  gT.AbortController;
43405
- var fetch$1 = gT.fetch || r$1;
43834
+ var fetch$1 = gT.fetch || r$2;
43406
43835
  var Headers$1 = gT.Headers || n$3;
43407
43836
  var Blob$1 = gT.Blob || p$4;
43408
43837
  function createProxy(options) {
@@ -44171,7 +44600,7 @@ function buildURLQueryString(data, withQuestionMark = true) {
44171
44600
  const keys = Object.keys(data);
44172
44601
  for (let i = 0; i < keys.length; i++) {
44173
44602
  let value = data[keys[i]];
44174
- if (isObject$11(value)) {
44603
+ if (isObject$12(value)) {
44175
44604
  const valueKeys = Object.keys(value);
44176
44605
  for (let j = 0; j < valueKeys.length; j++) {
44177
44606
  let v = value[valueKeys[j]];
@@ -45132,9 +45561,9 @@ var Client = class extends Client$1 {
45132
45561
  //#endregion
45133
45562
  //#region ../../packages/core-http-kit/src/helpers/error-code.ts
45134
45563
  function getClientErrorCode(err) {
45135
- if (!isObject$4(err) || !isObject$4(err.response)) return null;
45564
+ if (!isObject$5(err) || !isObject$5(err.response)) return null;
45136
45565
  /* istanbul ignore next */
45137
- if (!isObject$4(err.response.data) || typeof err.response.data.code !== "string") return null;
45566
+ if (!isObject$5(err.response.data) || typeof err.response.data.code !== "string") return null;
45138
45567
  return err.response.data.code;
45139
45568
  }
45140
45569
  //#endregion
@@ -45169,117 +45598,29 @@ var OAuth2ErrorCode = /* @__PURE__ */ function(OAuth2ErrorCode) {
45169
45598
  OAuth2ErrorCode["UNSUPPORTED_GRANT_TYPE"] = "unsupported_grant_type";
45170
45599
  OAuth2ErrorCode["UNSUPPORTED_RESPONSE_TYPE"] = "unsupported_response_type";
45171
45600
  OAuth2ErrorCode["INVALID_SCOPE"] = "invalid_scope";
45601
+ OAuth2ErrorCode["INSUFFICIENT_SCOPE"] = "insufficient_scope";
45602
+ OAuth2ErrorCode["SERVER_ERROR"] = "server_error";
45172
45603
  return OAuth2ErrorCode;
45173
45604
  }({});
45174
45605
  //#endregion
45175
- //#region ../../packages/specs/src/oauth2/error.ts
45176
- var OAuth2Error = class OAuth2Error extends AuthupError {
45177
- constructor(...input) {
45606
+ //#region ../../packages/specs/src/oauth2/error/module.ts
45607
+ var OAUTH2_ERROR_INSTANCE = Symbol.for("@authup/specs/OAuth2Error");
45608
+ function normalizeOAuth2ErrorInput(input) {
45609
+ return typeof input === "string" ? { message: input } : input ?? {};
45610
+ }
45611
+ var OAuth2Error = class extends AuthupError {
45612
+ constructor(input) {
45613
+ const options = normalizeOAuth2ErrorInput(input);
45178
45614
  super({
45179
45615
  code: ErrorCode$2.OAUTH_REQUEST_INVALID,
45180
45616
  message: "OAuth2 request invalid",
45181
- statusCode: 400,
45182
- data: { error: OAuth2ErrorCode.INVALID_REQUEST }
45183
- }, ...input);
45184
- }
45185
- static clientInvalid() {
45186
- return new OAuth2Error({
45187
- message: "Client authentication failed",
45188
- code: ErrorCode$2.OAUTH_CLIENT_INVALID,
45189
- data: { error: OAuth2ErrorCode.INVALID_CLIENT }
45190
- });
45191
- }
45192
- static clientInactive() {
45193
- return new OAuth2Error({
45194
- message: "Client is inactive",
45195
- code: ErrorCode$2.OAUTH_CLIENT_INVALID,
45196
- data: { error: OAuth2ErrorCode.INVALID_CLIENT }
45197
- });
45198
- }
45199
- static grantInvalid(message) {
45200
- return new OAuth2Error({
45201
- message: message || "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client",
45202
- code: ErrorCode$2.OAUTH_GRANT_INVALID,
45203
- data: { error: OAuth2ErrorCode.INVALID_GRANT }
45204
- });
45205
- }
45206
- static grantTypeUnsupported() {
45207
- return new OAuth2Error({
45208
- message: "The authorization grant type is not supported by the authorization server",
45209
- code: ErrorCode$2.OAUTH_GRANT_TYPE_UNSUPPORTED,
45210
- data: {
45211
- hint: "Check that all required parameters have been provided",
45212
- error: OAuth2ErrorCode.UNSUPPORTED_GRANT_TYPE
45213
- }
45214
- });
45215
- }
45216
- static identityInvalid() {
45217
- return new OAuth2Error({
45218
- message: "The identity is not valid.",
45219
- code: ErrorCode$2.OAUTH_REQUEST_INVALID,
45220
- data: { error: OAuth2ErrorCode.INVALID_REQUEST }
45221
- });
45222
- }
45223
- static codeRequestInvalid() {
45224
- return new OAuth2Error({
45225
- message: "The authorization code request is invalid.",
45226
- code: ErrorCode$2.OAUTH_REQUEST_INVALID,
45227
- data: {
45228
- hint: "Check if the code request is valid and contains all required parameters",
45229
- error: OAuth2ErrorCode.INVALID_REQUEST
45230
- }
45231
- });
45232
- }
45233
- static requestInvalid(message) {
45234
- return new OAuth2Error({
45235
- message: message || "The request is missing a required parameter, includes an unsupported parameter value, repeats a parameter, or is otherwise malformed.",
45236
- code: ErrorCode$2.OAUTH_REQUEST_INVALID,
45617
+ ...options,
45237
45618
  data: {
45238
- hint: "Check that all parameters have been provided correctly",
45239
- error: OAuth2ErrorCode.INVALID_REQUEST
45619
+ error: OAuth2ErrorCode.INVALID_REQUEST,
45620
+ ...options.data ?? {}
45240
45621
  }
45241
45622
  });
45242
- }
45243
- static stateInvalid() {
45244
- return new OAuth2Error({
45245
- message: "The request state is invalid, unknown or malformed.",
45246
- code: ErrorCode$2.OAUTH_REQUEST_INVALID,
45247
- data: { error: OAuth2ErrorCode.INVALID_REQUEST }
45248
- });
45249
- }
45250
- static scopeInvalid() {
45251
- return new OAuth2Error({
45252
- message: "The requested scope is invalid, unknown or malformed.",
45253
- code: ErrorCode$2.OAUTH_SCOPE_INVALID,
45254
- data: { error: OAuth2ErrorCode.INVALID_SCOPE }
45255
- });
45256
- }
45257
- static scopeInsufficient() {
45258
- return new OAuth2Error({
45259
- message: "The request requires higher privileges than supported by the client.",
45260
- code: ErrorCode$2.OAUTH_SCOPE_INSUFFICIENT,
45261
- data: { error: OAuth2ErrorCode.INVALID_SCOPE }
45262
- });
45263
- }
45264
- static redirectUriMismatch() {
45265
- return new OAuth2Error({
45266
- message: "The redirect URI is missing or do not match",
45267
- code: ErrorCode$2.OAUTH_REDIRECT_URI_MISMATCH,
45268
- data: { error: OAuth2ErrorCode.INVALID_GRANT }
45269
- });
45270
- }
45271
- static responseTypeUnsupported() {
45272
- return new OAuth2Error({
45273
- message: "The authorization server does not support obtaining an access token using this method.",
45274
- code: ErrorCode$2.OAUTH_RESPONSE_TYPE_UNSUPPORTED,
45275
- data: { error: OAuth2ErrorCode.UNSUPPORTED_RESPONSE_TYPE }
45276
- });
45277
- }
45278
- static signingKeyMissing() {
45279
- return new OAuth2Error({
45280
- message: "A token signing key could not be retrieved.",
45281
- statusCode: 500
45282
- });
45623
+ markInstanceof(this, OAUTH2_ERROR_INSTANCE);
45283
45624
  }
45284
45625
  };
45285
45626
  //#endregion
@@ -45295,7 +45636,7 @@ function deserializeOAuth2Scope(scope) {
45295
45636
  //#endregion
45296
45637
  //#region ../../packages/specs/src/openid/utils.ts
45297
45638
  function isOpenIDProviderMetadata(input) {
45298
- if (!isObject$4(input)) return false;
45639
+ if (!isObject$5(input)) return false;
45299
45640
  if (typeof input.issuer !== "string") return false;
45300
45641
  if (typeof input.authorization_endpoint !== "string") return false;
45301
45642
  if (typeof input.jwks_uri !== "string") return false;
@@ -45421,7 +45762,7 @@ var ClientAuthenticationHook = class extends EventEmitter$2 {
45421
45762
  return Promise.reject(err);
45422
45763
  });
45423
45764
  if (isJWTErrorCode(code)) return refresh();
45424
- if (isObject$4(err.response)) {
45765
+ if (isObject$5(err.response)) {
45425
45766
  if (err.response.status === 401) return refresh();
45426
45767
  if (err.response.status === 403 && request.headers && !getHeader(request.headers, HeaderName.AUTHORIZATION)) return refresh();
45427
45768
  }
@@ -45473,7 +45814,7 @@ var ClientAuthenticationHook = class extends EventEmitter$2 {
45473
45814
  }
45474
45815
  };
45475
45816
  //#endregion
45476
- //#region ../../node_modules/@vue/devtools-api/node_modules/@vue/devtools-shared/dist/index.cjs
45817
+ //#region ../../node_modules/@vue/devtools-shared/dist/index.cjs
45477
45818
  var require_dist$5 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
45478
45819
  var __create = Object.create;
45479
45820
  var __defProp = Object.defineProperty;
@@ -45752,7 +46093,7 @@ var require_dist$5 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
45752
46093
  }
45753
46094
  }));
45754
46095
  //#endregion
45755
- //#region ../../node_modules/@vue/devtools-api/node_modules/perfect-debounce/dist/index.cjs
46096
+ //#region ../../node_modules/perfect-debounce/dist/index.cjs
45756
46097
  var require_dist$4 = /* @__PURE__ */ __commonJSMin$2(((exports) => {
45757
46098
  var DEBOUNCE_DEFAULTS = { trailing: true };
45758
46099
  function debounce(fn, wait = 25, options = {}) {
@@ -45805,7 +46146,7 @@ var require_dist$4 = /* @__PURE__ */ __commonJSMin$2(((exports) => {
45805
46146
  exports.debounce = debounce;
45806
46147
  }));
45807
46148
  //#endregion
45808
- //#region ../../node_modules/@vue/devtools-api/node_modules/hookable/dist/index.cjs
46149
+ //#region ../../node_modules/hookable/dist/index.cjs
45809
46150
  var require_dist$3 = /* @__PURE__ */ __commonJSMin$2(((exports) => {
45810
46151
  function flatHooks(configHooks, hooks = {}, parentName) {
45811
46152
  for (const key in configHooks) {
@@ -46027,7 +46368,7 @@ close: () => {
46027
46368
  exports.serialCaller = serialCaller;
46028
46369
  }));
46029
46370
  //#endregion
46030
- //#region ../../node_modules/@vue/devtools-api/node_modules/birpc/dist/index.cjs
46371
+ //#region ../../node_modules/birpc/dist/index.cjs
46031
46372
  var require_dist$2 = /* @__PURE__ */ __commonJSMin$2(((exports) => {
46032
46373
  var TYPE_REQUEST = "q";
46033
46374
  var TYPE_RESPONSE = "s";
@@ -46308,7 +46649,7 @@ var require_dist$2 = /* @__PURE__ */ __commonJSMin$2(((exports) => {
46308
46649
  exports.createBirpcGroup = createBirpcGroup;
46309
46650
  }));
46310
46651
  //#endregion
46311
- //#region ../../node_modules/@vue/devtools-api/node_modules/@vue/devtools-kit/dist/index.cjs
46652
+ //#region ../../node_modules/@vue/devtools-kit/dist/index.cjs
46312
46653
  var require_dist$1 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
46313
46654
  var __create = Object.create;
46314
46655
  var __defProp = Object.defineProperty;
@@ -51135,16 +51476,6 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
51135
51476
  const prototype = Object.getPrototypeOf(payload);
51136
51477
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
51137
51478
  }
51138
- function isNull2(payload) {
51139
- return getType2(payload) === "Null";
51140
- }
51141
- function isOneOf(a, b, c, d, e) {
51142
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
51143
- }
51144
- function isUndefined2(payload) {
51145
- return getType2(payload) === "Undefined";
51146
- }
51147
- isOneOf(isNull2, isUndefined2);
51148
51479
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
51149
51480
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
51150
51481
  if (propType === "enumerable") carry[key] = newVal;
@@ -52035,6 +52366,12 @@ var require_dist = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
52035
52366
  module.exports = __toCommonJS(index_exports);
52036
52367
  var import_devtools_kit = require_dist$1();
52037
52368
  }));
52369
+ /*!
52370
+ * pinia v3.0.4
52371
+ * (c) 2025 Eduardo San Martin Morote
52372
+ * @license MIT
52373
+ */
52374
+ /*! #__NO_SIDE_EFFECTS__ */
52038
52375
  //#endregion
52039
52376
  //#region ../../packages/client-web-kit/src/core/inject.ts
52040
52377
  var import_pinia_prod = (/* @__PURE__ */ __commonJSMin$2(((exports) => {
@@ -52390,7 +52727,6 @@ var import_pinia_prod = (/* @__PURE__ */ __commonJSMin$2(((exports) => {
52390
52727
  isSyncListening = true;
52391
52728
  return store;
52392
52729
  }
52393
- /*! #__NO_SIDE_EFFECTS__ */
52394
52730
  function defineStore(id, setup, setupOptions) {
52395
52731
  let options;
52396
52732
  const isSetupStore = typeof setup === "function";
@@ -52604,388 +52940,474 @@ function provideHTTPClientAuthenticationHook(refresher, app) {
52604
52940
  //#region ../../packages/client-web-kit/src/core/store/constants.ts
52605
52941
  var STORE_ID = "authup";
52606
52942
  //#endregion
52607
- //#region ../../node_modules/@ucast/core/dist/es6m/index.mjs
52608
- var t = class {
52609
- constructor(t, e) {
52610
- this.operator = t, this.value = e, Object.defineProperty(this, "t", { writable: !0 });
52943
+ //#region ../../node_modules/@ucast/core/dist/esm/index.mjs
52944
+ var e = class {
52945
+ constructor(e, t) {
52946
+ this.operator = e, this.value = t, Object.defineProperty(this, `_notes`, { writable: !0 });
52611
52947
  }
52612
52948
  get notes() {
52613
- return this.t;
52949
+ return this._notes;
52614
52950
  }
52615
- addNote(t) {
52616
- this.t = this.t || [], this.t.push(t);
52951
+ addNote(e) {
52952
+ this._notes = this._notes || [], this._notes.push(e);
52617
52953
  }
52618
- };
52619
- var e$1 = class extends t {};
52620
- var r = class extends e$1 {
52621
- constructor(t, e) {
52622
- if (!Array.isArray(e)) throw new Error(`"${t}" operator expects to receive an array of conditions`);
52623
- super(t, e);
52954
+ }, t = class extends e {}, n$1 = class extends t {
52955
+ constructor(e, t) {
52956
+ if (!Array.isArray(t)) throw Error(`"${e}" operator expects to receive an array of conditions`);
52957
+ super(e, t);
52624
52958
  }
52625
52959
  };
52626
- var n$1 = "__itself__";
52627
- var o$1 = class extends t {
52628
- constructor(t, e, r) {
52629
- super(t, r), this.field = e;
52960
+ var r$1 = `__itself__`;
52961
+ var i$1 = class extends e {
52962
+ constructor(e, t, n) {
52963
+ super(e, n), this.field = t;
52630
52964
  }
52631
52965
  };
52632
- var s$2 = new e$1("__null__", null), i$2 = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
52633
- function c$2(t, e) {
52634
- return e instanceof r && e.operator === t;
52966
+ var a$1 = new t(`__null__`, null), o$1 = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
52967
+ function c$3(e, t) {
52968
+ let r;
52969
+ for (let i = 0, a = t.length; i < a; i++) {
52970
+ let a = t[i];
52971
+ if (a instanceof n$1) {
52972
+ if (a.operator !== e) {
52973
+ r && r.push(a);
52974
+ continue;
52975
+ }
52976
+ if (a.value.length === 0) continue;
52977
+ r || (r = t.slice(0, i));
52978
+ let n = a.value;
52979
+ for (let e = 0, t = n.length; e < t; e++) r.push(n[e]);
52980
+ } else r && r.push(a);
52981
+ }
52982
+ return r || t;
52635
52983
  }
52636
- function u$3(t, e) {
52637
- return 1 === e.length ? e[0] : new r(t, function t(e, r, n) {
52638
- const o = n || [];
52639
- for (let n = 0, s = r.length; n < s; n++) {
52640
- const s = r[n];
52641
- c$2(e, s) ? t(e, s.value, o) : o.push(s);
52642
- }
52643
- return o;
52644
- }(t, e));
52984
+ function l$3(e, t) {
52985
+ if (t.length === 1) return t[0];
52986
+ if (t.length === 0) return new n$1(e, t);
52987
+ let r = c$3(e, t);
52988
+ return r.length === 1 ? r[0] : (r.length, new n$1(e, r));
52645
52989
  }
52646
- var a$1 = (t) => t, h$24 = () => Object.create(null), f$2 = Object.defineProperty(h$24(), "__@type@__", { value: "ignore value" });
52647
- function l$2(t, e, r = !1) {
52648
- if (!t || t && t.constructor !== Object) return !1;
52649
- for (const n in t) if (i$2(t, n) && i$2(e, n) && (!r || t[n] !== f$2)) return !0;
52990
+ var u$3 = (e) => e, d$3 = () => Object.create(null), f$3 = Object.defineProperty(d$3(), `__@type@__`, { value: `ignore value` });
52991
+ function p$3(e, t, n = !1) {
52992
+ if (!e || e && e.constructor !== Object) return !1;
52993
+ for (let r in e) if (o$1(e, r) && o$1(t, r) && (!n || e[r] !== f$3)) return !0;
52650
52994
  return !1;
52651
52995
  }
52652
- function d$2(t) {
52653
- const e = [];
52654
- for (const r in t) i$2(t, r) && t[r] !== f$2 && e.push(r);
52655
- return e;
52996
+ function m$2(e) {
52997
+ let t = [];
52998
+ for (let n in e) o$1(e, n) && e[n] !== f$3 && t.push(n);
52999
+ return t;
52656
53000
  }
52657
- function p$3(t, e) {
52658
- e !== s$2 && t.push(e);
53001
+ function h$24(e, t) {
53002
+ t !== a$1 && e.push(t);
53003
+ }
53004
+ var g$2 = (e) => l$3(`and`, e);
53005
+ function v$2(e, t) {
53006
+ let n = e[t];
53007
+ if (typeof n != `function`) throw Error(`Unable to interpret "${String(t)}" condition. Did you forget to register interpreter for it?`);
53008
+ return n;
53009
+ }
53010
+ function y$2(e) {
53011
+ return e.operator;
53012
+ }
53013
+ function b$2(e, t) {
53014
+ let n = t, r = n && n.getInterpreterName || y$2, i;
53015
+ switch (n ? n.numberOfArguments : 0) {
53016
+ case 1:
53017
+ i = ((t) => v$2(e, r(t, n))(t, a));
53018
+ break;
53019
+ case 3:
53020
+ i = ((t, i, o) => v$2(e, r(t, n))(t, i, o, a));
53021
+ break;
53022
+ default:
53023
+ i = ((t, i) => v$2(e, r(t, n))(t, i, a));
53024
+ break;
53025
+ }
53026
+ let a = {
53027
+ ...n,
53028
+ interpret: i
53029
+ };
53030
+ return a.interpret;
52659
53031
  }
52660
- var w$2 = (t) => u$3("and", t), O$2 = {
52661
- compound(t, e, n) {
52662
- const o = (Array.isArray(e) ? e : [e]).map((t) => n.parse(t));
52663
- return new r(t.name, o);
53032
+ var x$2 = {
53033
+ compound(e, t, r) {
53034
+ let i = (Array.isArray(t) ? t : [t]).map((e) => r.parse(e));
53035
+ return new n$1(e.name, i);
52664
53036
  },
52665
- field: (t, e, r) => new o$1(t.name, r.field, e),
52666
- document: (t, r) => new e$1(t.name, r)
53037
+ field(e, t, n) {
53038
+ return new i$1(e.name, n.field, t);
53039
+ },
53040
+ document(e, n) {
53041
+ return new t(e.name, n);
53042
+ }
52667
53043
  };
52668
- var j$3 = class {
52669
- constructor(t, e = h$24()) {
52670
- this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = {
52671
- operatorToConditionName: e.operatorToConditionName || a$1,
52672
- defaultOperatorName: e.defaultOperatorName || "eq",
52673
- mergeFinalConditions: e.mergeFinalConditions || w$2
52674
- }, this.o = Object.keys(t).reduce((e, r) => (e[r] = Object.assign({ name: this.u.operatorToConditionName(r) }, t[r]), e), {}), this.s = Object.assign({}, e.fieldContext, {
52675
- field: "",
53044
+ var S$2 = class {
53045
+ constructor(e, t = d$3()) {
53046
+ this.parse = this.parse.bind(this), this._options = {
53047
+ operatorToConditionName: t.operatorToConditionName || u$3,
53048
+ defaultOperatorName: t.defaultOperatorName || `eq`,
53049
+ mergeFinalConditions: t.mergeFinalConditions || g$2
53050
+ }, this._instructions = Object.keys(e).reduce((t, n) => (t[n] = {
53051
+ name: this._options.operatorToConditionName(n),
53052
+ ...e[n]
53053
+ }, t), {}), this._fieldInstructionContext = {
53054
+ ...t.fieldContext,
53055
+ field: ``,
52676
53056
  query: {},
52677
53057
  parse: this.parse,
52678
- hasOperators: (t) => l$2(t, this.o, e.useIgnoreValue)
52679
- }), this.i = Object.assign({}, e.documentContext, {
53058
+ hasOperators: (e) => p$3(e, this._instructions, t.useIgnoreValue)
53059
+ }, this._documentInstructionContext = {
53060
+ ...t.documentContext,
52680
53061
  parse: this.parse,
52681
53062
  query: {}
52682
- }), this.h = e.useIgnoreValue ? d$2 : Object.keys;
53063
+ }, this._objectKeys = t.useIgnoreValue ? m$2 : Object.keys;
52683
53064
  }
52684
- setParse(t) {
52685
- this.parse = t, this.s.parse = t, this.i.parse = t;
53065
+ setParse(e) {
53066
+ this.parse = e, this._fieldInstructionContext.parse = e, this._documentInstructionContext.parse = e;
52686
53067
  }
52687
- parseField(t, e, r, n) {
52688
- const o = this.o[e];
52689
- if (!o) throw new Error(`Unsupported operator "${e}"`);
52690
- if ("field" !== o.type) throw new Error(`Unexpected ${o.type} operator "${e}" at field level`);
52691
- return this.s.field = t, this.s.query = n, this.parseInstruction(o, r, this.s);
53068
+ parseField(e, t, n, r) {
53069
+ let i = this._instructions[t];
53070
+ if (!i) throw Error(`Unsupported operator "${t}"`);
53071
+ if (i.type !== `field`) throw Error(`Unexpected ${i.type} operator "${t}" at field level`);
53072
+ return this._fieldInstructionContext.field = e, this._fieldInstructionContext.query = r, this.parseInstruction(i, n, this._fieldInstructionContext);
52692
53073
  }
52693
- parseInstruction(t, e, r) {
52694
- "function" == typeof t.validate && t.validate(t, e);
52695
- return (t.parse || O$2[t.type])(t, e, r);
53074
+ parseInstruction(e, t, n) {
53075
+ return typeof e.validate == `function` && e.validate(e, t), (e.parse || x$2[e.type])(e, t, n);
52696
53076
  }
52697
- parseFieldOperators(t, e) {
52698
- const r = [], n = this.h(e);
52699
- for (let o = 0, s = n.length; o < s; o++) {
52700
- const s = n[o];
52701
- if (!this.o[s]) throw new Error(`Field query for "${t}" may contain only operators or a plain object as a value`);
52702
- p$3(r, this.parseField(t, s, e[s], e));
53077
+ parseFieldOperators(e, t) {
53078
+ let n = [], r = this._objectKeys(t);
53079
+ for (let i = 0, a = r.length; i < a; i++) {
53080
+ let a = r[i];
53081
+ if (!this._instructions[a]) throw Error(`Field query for "${e}" may contain only operators or a plain object as a value`);
53082
+ h$24(n, this.parseField(e, a, t[a], t));
52703
53083
  }
52704
- return r;
53084
+ return n;
52705
53085
  }
52706
- parse(t) {
52707
- const e = [], r = this.h(t);
52708
- this.i.query = t;
52709
- for (let n = 0, o = r.length; n < o; n++) {
52710
- const o = r[n], s = t[o], i = this.o[o];
52711
- if (i) {
52712
- if ("document" !== i.type && "compound" !== i.type) throw new Error(`Cannot use parsing instruction for operator "${o}" in "document" context as it is supposed to be used in "${i.type}" context`);
52713
- p$3(e, this.parseInstruction(i, s, this.i));
52714
- } else this.s.hasOperators(s) ? e.push(...this.parseFieldOperators(o, s)) : p$3(e, this.parseField(o, this.u.defaultOperatorName, s, t));
53086
+ parse(e) {
53087
+ let t = [], n = this._objectKeys(e);
53088
+ this._documentInstructionContext.query = e;
53089
+ for (let r = 0, i = n.length; r < i; r++) {
53090
+ let i = n[r], a = e[i], o = this._instructions[i];
53091
+ if (o) {
53092
+ if (o.type !== `document` && o.type !== `compound`) throw Error(`Cannot use parsing instruction for operator "${i}" in "document" context as it is supposed to be used in "${o.type}" context`);
53093
+ h$24(t, this.parseInstruction(o, a, this._documentInstructionContext));
53094
+ } else this._fieldInstructionContext.hasOperators(a) ? t.push(...this.parseFieldOperators(i, a)) : h$24(t, this.parseField(i, this._options.defaultOperatorName, a, e));
52715
53095
  }
52716
- return this.u.mergeFinalConditions(e);
53096
+ return this._options.mergeFinalConditions(t);
52717
53097
  }
52718
53098
  };
52719
- function _$2(t, e) {
52720
- const r = t[e];
52721
- if ("function" != typeof r) throw new Error(`Unable to interpret "${e}" condition. Did you forget to register interpreter for it?`);
52722
- return r;
52723
- }
52724
- function y$2(t) {
52725
- return t.operator;
52726
- }
52727
- function m$3(t, e) {
52728
- const r = e, n = r && r.getInterpreterName || y$2;
52729
- let o;
52730
- switch (r ? r.numberOfArguments : 0) {
52731
- case 1:
52732
- o = (e) => {
52733
- return _$2(t, n(e, r))(e, s);
52734
- };
52735
- break;
52736
- case 3:
52737
- o = (e, o, i) => {
52738
- return _$2(t, n(e, r))(e, o, i, s);
52739
- };
52740
- break;
52741
- default: o = (e, o) => {
52742
- return _$2(t, n(e, r))(e, o, s);
52743
- };
52744
- }
52745
- const s = Object.assign({}, r, { interpret: o });
52746
- return s.interpret;
52747
- }
52748
- function v$2(t, e) {
52749
- return (r, ...n) => {
52750
- const o = t(r, ...n), s = e.bind(null, o);
52751
- return s.ast = o, s;
53099
+ function C$2(e, t) {
53100
+ return (n, ...r) => {
53101
+ let i = e(n, ...r), a = t.bind(null, i);
53102
+ return Object.defineProperty(a, `ast`, { value: i }), a;
52752
53103
  };
52753
53104
  }
52754
- j$3.prototype.parseInstruction;
52755
53105
  //#endregion
52756
- //#region ../../node_modules/@ucast/mongo/dist/es6m/index.mjs
52757
- function s$1(e, t) {
52758
- if (!Array.isArray(t)) throw new Error(`"${e.name}" expects value to be an array`);
52759
- }
52760
- function p$2(e, t) {
52761
- if (s$1(e, t), !t.length) throw new Error(`"${e.name}" expects to have at least one element in array`);
52762
- }
52763
- var l$1 = (e) => (t, r) => {
52764
- if (typeof r !== e) throw new Error(`"${t.name}" expects value to be a "${e}"`);
52765
- }, c$1 = {
52766
- type: "compound",
52767
- validate: p$2,
52768
- parse(t, r, { parse: o }) {
52769
- const a = r.map((e) => o(e));
52770
- return u$3(t.name, a);
52771
- }
52772
- }, f$1 = c$1, d$1 = {
52773
- type: "compound",
52774
- validate: p$2
52775
- }, u$2 = {
52776
- type: "field",
53106
+ //#region ../../node_modules/@ucast/mongo/dist/esm/index.mjs
53107
+ var c$2 = Object.defineProperty, l$2 = ((e, t) => {
53108
+ let n = {};
53109
+ for (var r in e) c$2(n, r, {
53110
+ get: e[r],
53111
+ enumerable: !0
53112
+ });
53113
+ return t || c$2(n, Symbol.toStringTag, { value: `Module` }), n;
53114
+ })({
53115
+ $all: () => y$1,
53116
+ $and: () => u$2,
53117
+ $elemMatch: () => h$23,
53118
+ $eq: () => E$1,
53119
+ $exists: () => x$1,
53120
+ $gt: () => C$1,
53121
+ $gte: () => S$1,
53122
+ $in: () => _,
53123
+ $lt: () => w$1,
53124
+ $lte: () => T$1,
53125
+ $mod: () => b$1,
53126
+ $ne: () => D$1,
53127
+ $nin: () => v$1,
53128
+ $nor: () => f$2,
53129
+ $not: () => m$1,
53130
+ $options: () => k$1,
53131
+ $or: () => d$2,
53132
+ $regex: () => O$1,
53133
+ $size: () => g$1,
53134
+ $where: () => A$1
53135
+ });
53136
+ var u$2 = {
53137
+ type: `compound`,
53138
+ validate: M$1,
53139
+ parse(e, t, n) {
53140
+ let r = p$2(e, t, n);
53141
+ return l$3(e.name, r);
53142
+ }
53143
+ }, d$2 = u$2, f$2 = {
53144
+ type: `compound`,
53145
+ validate: M$1,
53146
+ parse(t, n, r) {
53147
+ let i = p$2(t, n, r);
53148
+ return new n$1(t.name, i);
53149
+ }
53150
+ };
53151
+ function p$2(e, t, n) {
53152
+ let r = Array(t.length);
53153
+ for (let i = 0; i < t.length; i++) {
53154
+ let a = t[i];
53155
+ F$1(e, a, i), r[i] = n.parse(a);
53156
+ }
53157
+ return r;
53158
+ }
53159
+ var m$1 = {
53160
+ type: `field`,
52777
53161
  validate(e, t) {
52778
- if (!(t && (t instanceof RegExp || t.constructor === Object))) throw new Error(`"${e.name}" expects to receive either regular expression or object of field operators`);
53162
+ if (!(t && (t instanceof RegExp || t.constructor === Object))) throw Error(`"${e.name}" expects to receive either regular expression or object of field operators`);
52779
53163
  },
52780
- parse(e, o, a) {
52781
- const n = o instanceof RegExp ? new o$1("regex", a.field, o) : a.parse(o, a);
52782
- return new r(e.name, [n]);
53164
+ parse(n, r, i) {
53165
+ let a = r instanceof RegExp ? new i$1(`regex`, i.field, r) : i.parse(r, i);
53166
+ return new n$1(n.name, [a]);
52783
53167
  }
52784
- }, $$1 = {
52785
- type: "field",
53168
+ }, h$23 = {
53169
+ type: `field`,
52786
53170
  validate(e, t) {
52787
- if (!t || t.constructor !== Object) throw new Error(`"${e.name}" expects to receive an object with nested query or field level operators`);
53171
+ if (!t || t.constructor !== Object) throw Error(`"${e.name}" expects to receive an object with nested query or field level operators`);
52788
53172
  },
52789
- parse(e, r, { parse: a, field: n, hasOperators: i }) {
52790
- const s = i(r) ? a(r, { field: n$1 }) : a(r);
52791
- return new o$1(e.name, n, s);
52792
- }
52793
- }, w$1 = {
52794
- type: "field",
52795
- validate: l$1("number")
52796
- }, y$1 = {
52797
- type: "field",
52798
- validate: s$1
52799
- }, x$1 = y$1, v$1 = y$1, h$23 = {
52800
- type: "field",
52801
- validate(e, t) {
52802
- if (!Array.isArray(t) || 2 !== t.length) throw new Error(`"${e.name}" expects an array with 2 numeric elements`);
53173
+ parse(e, r, { parse: i, field: a, hasOperators: o }) {
53174
+ let s = o(r) ? i(r, { field: r$1 }) : i(r);
53175
+ return new i$1(e.name, a, s);
52803
53176
  }
52804
- }, m$2 = {
52805
- type: "field",
52806
- validate: l$1("boolean")
52807
53177
  }, g$1 = {
52808
- type: "field",
52809
- validate: function(e, t) {
52810
- if (!("string" == typeof t || "number" == typeof t || t instanceof Date)) throw new Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`);
52811
- }
52812
- }, b$1 = g$1, E$1 = b$1, j$2 = b$1, O$1 = { type: "field" }, R = O$1, _$1 = {
52813
- type: "field",
53178
+ type: `field`,
53179
+ validate: P$1(`number`)
53180
+ }, _ = {
53181
+ type: `field`,
53182
+ validate: j$1
53183
+ }, v$1 = _, y$1 = _, b$1 = {
53184
+ type: `field`,
53185
+ validate(e, t) {
53186
+ if (!Array.isArray(t) || t.length !== 2) throw Error(`"${e.name}" expects an array with 2 numeric elements`);
53187
+ }
53188
+ }, x$1 = {
53189
+ type: `field`,
53190
+ validate: P$1(`boolean`)
53191
+ }, S$1 = {
53192
+ type: `field`,
53193
+ validate: N$1
53194
+ }, C$1 = S$1, w$1 = C$1, T$1 = C$1, E$1 = { type: `field` }, D$1 = E$1, O$1 = {
53195
+ type: `field`,
52814
53196
  validate(e, t) {
52815
- if (!(t instanceof RegExp) && "string" != typeof t) throw new Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`);
53197
+ if (!(t instanceof RegExp) && typeof t != `string`) throw Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`);
52816
53198
  },
52817
- parse(e, r, o) {
52818
- const a = "string" == typeof r ? new RegExp(r, o.query.$options || "") : r;
52819
- return new o$1(e.name, o.field, a);
53199
+ parse(e, n, r) {
53200
+ let i = typeof n == `string` ? new RegExp(n, r.query.$options || ``) : n;
53201
+ return new i$1(e.name, r.field, i);
52820
53202
  }
52821
- }, q$1 = {
52822
- type: "field",
52823
- parse: () => s$2
53203
+ }, k$1 = {
53204
+ type: `field`,
53205
+ parse: () => a$1
52824
53206
  }, A$1 = {
52825
- type: "document",
52826
- validate: l$1("function")
53207
+ type: `document`,
53208
+ validate: P$1(`function`)
52827
53209
  };
52828
- var N$1 = Object.freeze({
52829
- __proto__: null,
52830
- $and: c$1,
52831
- $or: f$1,
52832
- $nor: d$1,
52833
- $not: u$2,
52834
- $elemMatch: $$1,
52835
- $size: w$1,
52836
- $in: y$1,
52837
- $nin: x$1,
52838
- $all: v$1,
52839
- $mod: h$23,
52840
- $exists: m$2,
52841
- $gte: g$1,
52842
- $gt: b$1,
52843
- $lt: E$1,
52844
- $lte: j$2,
52845
- $eq: O$1,
52846
- $ne: R,
52847
- $regex: _$1,
52848
- $options: q$1,
52849
- $where: A$1
52850
- });
52851
- var P = class extends j$3 {
53210
+ function j$1(e, t) {
53211
+ if (!Array.isArray(t)) throw Error(`"${e.name}" expects value to be an array`);
53212
+ }
53213
+ function M$1(e, t) {
53214
+ if (j$1(e, t), !t.length) throw Error(`"${e.name}" expects to have at least one element in array`);
53215
+ }
53216
+ function N$1(e, t) {
53217
+ if (!(typeof t == `string` || typeof t == `number` || t instanceof Date)) throw Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`);
53218
+ }
53219
+ function P$1(e) {
53220
+ return (t, n) => {
53221
+ if (typeof n !== e) throw Error(`"${t.name}" expects value to be a "${e}"`);
53222
+ };
53223
+ }
53224
+ function F$1(e, t, n) {
53225
+ let r = t;
53226
+ if (!r || r.constructor !== Object) throw Error(`"${e.name}" expects item at index ${n} to be an object`);
53227
+ }
53228
+ var I$1 = class extends S$2 {
52852
53229
  constructor(e) {
52853
53230
  super(e, {
52854
- defaultOperatorName: "$eq",
53231
+ defaultOperatorName: `$eq`,
52855
53232
  operatorToConditionName: (e) => e.slice(1)
52856
53233
  });
52857
53234
  }
52858
53235
  parse(e, t) {
52859
- return t && t.field ? w$2(this.parseFieldOperators(t.field, e)) : super.parse(e);
53236
+ return t && t.field ? g$2(this.parseFieldOperators(t.field, e)) : super.parse(e);
52860
53237
  }
52861
53238
  };
52862
- var z$1 = N$1;
53239
+ var L$1 = l$2;
52863
53240
  //#endregion
52864
- //#region ../../node_modules/@ucast/js/dist/es6m/index.mjs
52865
- function e(r, t, e) {
52866
- for (let n = 0, o = r.length; n < o; n++) if (0 === e(r[n], t)) return !0;
53241
+ //#region ../../node_modules/@ucast/js/dist/esm/index.mjs
53242
+ var n = Object.defineProperty, r = (e, t) => {
53243
+ let r = {};
53244
+ for (var i in e) n(r, i, {
53245
+ get: e[i],
53246
+ enumerable: !0
53247
+ });
53248
+ return t || n(r, Symbol.toStringTag, { value: `Module` }), r;
53249
+ };
53250
+ function i(e, t) {
53251
+ if (typeof t != `string`) return !1;
53252
+ e.lastIndex = 0;
53253
+ let n = e.test(t);
53254
+ return e.lastIndex = 0, n;
53255
+ }
53256
+ function a(t, n, r) {
53257
+ if (!(n !== r$1 && (typeof t != `object` || !t))) return r(t, n);
53258
+ }
53259
+ function o(e, t, n) {
53260
+ return e instanceof RegExp ? i(e, t) : t instanceof RegExp ? i(t, e) : n(e, t) === 0;
53261
+ }
53262
+ function s(e, t, n) {
53263
+ for (let r = 0, i = e.length; r < i; r++) if (o(e[r], t, n)) return !0;
52867
53264
  return !1;
52868
53265
  }
52869
- function n(r, t) {
52870
- return Array.isArray(r) && Number.isNaN(Number(t));
53266
+ function c$1(e, t, n) {
53267
+ return n(e) && Number.isNaN(Number(t));
52871
53268
  }
52872
- function o(r, t, e) {
52873
- if (!n(r, t)) return e(r, t);
52874
- let o = [];
52875
- for (let n = 0; n < r.length; n++) {
52876
- const u = e(r[n], t);
52877
- void 0 !== u && (o = o.concat(u));
53269
+ function l$1(e, t, n, r) {
53270
+ if (!c$1(e, t, r)) return n(e, t);
53271
+ let i = [];
53272
+ for (let r = 0; r < e.length; r++) {
53273
+ let a = n(e[r], t);
53274
+ a !== void 0 && (i = i.concat(a));
52878
53275
  }
52879
- return o;
53276
+ return i;
52880
53277
  }
52881
- function u$1(r) {
52882
- return (t, e, n) => {
52883
- const o = n.get(e, t.field);
52884
- return Array.isArray(o) ? o.some((e) => r(t, e, n)) : r(t, o, n);
52885
- };
52886
- }
52887
- var c = Object.hasOwn || Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty), i$1 = (r, t) => r[t];
52888
- function f(r, t, e) {
52889
- const n = t.lastIndexOf(".");
52890
- return -1 === n ? [r, t] : [e(r, t.slice(0, n)), t.slice(n + 1)];
52891
- }
52892
- function s(t, e, n = i$1) {
52893
- if (e === "__itself__") return t;
52894
- if (!t) throw new Error(`Unable to get field "${e}" out of ${String(t)}.`);
52895
- return function(r, t, e) {
52896
- if (-1 === t.indexOf(".")) return o(r, t, e);
52897
- const n = t.split(".");
52898
- let u = r;
52899
- for (let r = 0, t = n.length; r < t; r++) if (u = o(u, n[r], e), !u || "object" != typeof u) return r < t - 1 ? void 0 : u;
52900
- return u;
52901
- }(t, e, n);
52902
- }
52903
- function l(r, t) {
52904
- return r === t ? 0 : r > t ? 1 : -1;
52905
- }
52906
- function p$1(r, e = {}) {
52907
- return m$3(r, Object.assign({
52908
- get: s,
52909
- compare: l
52910
- }, e));
52911
- }
52912
- var g = (r, t, { interpret: e }) => r.value.some((r) => e(r, t)), b = (r, t, e) => !g(r, t, e), m$1 = (r, t, { interpret: e }) => r.value.every((r) => e(r, t)), y = (r, t, { interpret: e }) => !e(r.value[0], t), j$1 = (r, t, { compare: n, get: o }) => {
52913
- const u = o(t, r.field);
52914
- return Array.isArray(u) && !Array.isArray(r.value) ? e(u, r.value, n) : 0 === n(u, r.value);
52915
- }, A = (r, t, e) => !j$1(r, t, e), d = u$1((r, t, e) => {
52916
- const n = e.compare(t, r.value);
52917
- return 0 === n || -1 === n;
52918
- }), O = u$1((r, t, e) => -1 === e.compare(t, r.value)), h$22 = u$1((r, t, e) => 1 === e.compare(t, r.value)), v = u$1((r, t, e) => {
52919
- const n = e.compare(t, r.value);
52920
- return 0 === n || 1 === n;
52921
- }), w = (t, e, { get: o }) => {
52922
- if (t.field === "__itself__") return void 0 !== e;
52923
- const [u, i] = f(e, t.field, o), s = (r) => null == r ? Boolean(r) === t.value : c(r, i) === t.value;
52924
- return n(u, i) ? u.some(s) : s(u);
52925
- }, _ = u$1((r, t) => "number" == typeof t && t % r.value[0] === r.value[1]), x = (t, e, { get: o }) => {
52926
- const [u, c] = f(e, t.field, o), i = (r) => {
52927
- const e = o(r, c);
52928
- return Array.isArray(e) && e.length === t.value;
52929
- };
52930
- return t.field !== "__itself__" && n(u, c) ? u.some(i) : i(u);
52931
- }, N = u$1((r, t) => "string" == typeof t && r.value.test(t)), $ = u$1((r, t, { compare: n }) => e(r.value, t, n)), q = (r, t, e) => !$(r, t, e), z = (r, t, { compare: n, get: o }) => {
52932
- const u = o(t, r.field);
52933
- return Array.isArray(u) && r.value.every((r) => e(u, r, n));
52934
- }, B = (r, t, { interpret: e, get: n }) => {
52935
- const o = n(t, r.field);
52936
- return Array.isArray(o) && o.some((t) => e(r.value, t));
52937
- }, E = (r, t) => r.value.call(t);
52938
- var M = Object.freeze({
52939
- __proto__: null,
52940
- or: g,
52941
- nor: b,
52942
- and: m$1,
52943
- not: y,
52944
- eq: j$1,
52945
- ne: A,
52946
- lte: d,
52947
- lt: O,
52948
- gt: h$22,
52949
- gte: v,
52950
- exists: w,
52951
- mod: _,
52952
- size: x,
52953
- regex: N,
52954
- within: $,
52955
- nin: q,
52956
- all: z,
52957
- elemMatch: B,
52958
- where: E
52959
- }), S = Object.assign({}, M, { in: $ });
52960
- p$1(S);
53278
+ function u$1(e, t, n, r) {
53279
+ if (t.indexOf(`.`) === -1) return l$1(e, t, n, r);
53280
+ let i = t.split(`.`), a = e;
53281
+ for (let e = 0, t = i.length; e < t; e++) if (a = l$1(a, i[e], n, r), !a || typeof a != `object`) return e < t - 1 ? void 0 : a;
53282
+ return a;
53283
+ }
53284
+ function d$1(e) {
53285
+ return ((t, n, r) => {
53286
+ let i = r.get(n, t.field);
53287
+ return r.isArray(i) ? i.some((n) => e(t, n, r)) : e(t, i, r);
53288
+ });
53289
+ }
53290
+ var f$1 = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t)), p$1 = (e, t) => e[t], m = Array.isArray;
53291
+ function h$22(e, t, n) {
53292
+ let r = t.lastIndexOf(`.`);
53293
+ return r === -1 ? [e, t] : [n(e, t.slice(0, r)), t.slice(r + 1)];
53294
+ }
53295
+ function g(t, n, r = p$1, i = m) {
53296
+ if (n === r$1) return t;
53297
+ if (!t) throw Error(`Unable to get field "${n}" out of ${String(t)}.`);
53298
+ return u$1(t, n, r, i);
53299
+ }
53300
+ function v(e, t) {
53301
+ return e === t ? 0 : e > t ? 1 : -1;
53302
+ }
53303
+ function y(e, n = {}) {
53304
+ let r = n.isArray || m;
53305
+ return b$2(e, {
53306
+ get: (e, t) => g(e, t, n.get || p$1, r),
53307
+ compare: n.compare || v,
53308
+ isArray: r
53309
+ });
53310
+ }
53311
+ var b = r({
53312
+ all: () => L,
53313
+ and: () => C,
53314
+ elemMatch: () => R,
53315
+ eq: () => T,
53316
+ exists: () => j,
53317
+ gt: () => k,
53318
+ gte: () => A,
53319
+ lt: () => O,
53320
+ lte: () => D,
53321
+ mod: () => M,
53322
+ ne: () => E,
53323
+ nin: () => I,
53324
+ nor: () => S,
53325
+ not: () => w,
53326
+ or: () => x,
53327
+ regex: () => P,
53328
+ size: () => N,
53329
+ where: () => z,
53330
+ within: () => F
53331
+ }), x = (e, t, { interpret: n }) => e.value.some((e) => n(e, t)), S = (e, t, n) => !x(e, t, n), C = (e, t, { interpret: n }) => e.value.every((e) => n(e, t)), w = (e, t, { interpret: n }) => !n(e.value[0], t), T = (e, t, { compare: n, get: r, isArray: i }) => {
53332
+ let [l, u] = h$22(t, e.field, r);
53333
+ if (e.value === null) {
53334
+ let e = (e) => {
53335
+ if (typeof e != `object` || !e) return !1;
53336
+ if (!f$1(e, u)) return !0;
53337
+ let t = r(e, u);
53338
+ return t === null || i(t) && s(t, null, n);
53339
+ };
53340
+ return c$1(l, u, i) ? l.some(e) : e(l);
53341
+ }
53342
+ let d = a(l, u, r);
53343
+ return i(d) ? n(d, e.value) === 0 || s(d, e.value, n) : o(d, e.value, n);
53344
+ }, E = (e, t, n) => !T(e, t, n), D = d$1((e, t, n) => {
53345
+ let r = n.compare(t, e.value);
53346
+ return r === 0 || r === -1;
53347
+ }), O = d$1((e, t, n) => n.compare(t, e.value) === -1), k = d$1((e, t, n) => n.compare(t, e.value) === 1), A = d$1((e, t, n) => {
53348
+ let r = n.compare(t, e.value);
53349
+ return r === 0 || r === 1;
53350
+ }), j = (t, n, { get: r, isArray: i }) => {
53351
+ if (t.field === r$1) return n !== void 0;
53352
+ let [a, o] = h$22(n, t.field, r), s = (e) => e == null ? t.value === !1 : f$1(e, o) === t.value;
53353
+ return c$1(a, o, i) ? a.some(s) : s(a);
53354
+ }, M = d$1((e, t) => typeof t == `number` && t % e.value[0] === e.value[1]), N = (t, n, { get: r, isArray: i }) => {
53355
+ let [o, s] = h$22(n, t.field, r), l = (e) => {
53356
+ let n = a(e, s, r);
53357
+ return i(n) && n.length === t.value;
53358
+ };
53359
+ return t.field !== r$1 && c$1(o, s, i) ? o.some(l) : l(o);
53360
+ }, P = d$1((e, t) => i(e.value, t)), F = d$1((e, t, { compare: n }) => s(e.value, t, n)), I = (e, t, n) => !F(e, t, n), L = (e, t, { compare: n, get: r, isArray: i }) => {
53361
+ let a = r(t, e.field);
53362
+ return i(a) && e.value.every((e) => s(a, e, n));
53363
+ }, R = (e, t, { interpret: n, get: r, isArray: i }) => {
53364
+ let a = r(t, e.field);
53365
+ return i(a) && a.some((t) => n(e.value, t));
53366
+ }, z = (e, t) => e.value.call(t), B = {
53367
+ ...b,
53368
+ in: F
53369
+ };
53370
+ y(B);
52961
53371
  //#endregion
52962
- //#region ../../node_modules/@ucast/mongo2js/dist/es6m/index.mjs
52963
- function i(o) {
52964
- return null === o || "object" != typeof o ? o : o instanceof Date ? o.getTime() : o && "function" == typeof o.toJSON ? o.toJSON() : o;
52965
- }
52966
- var m = (o, t) => l(i(o), i(t));
52967
- function p(r, c, f) {
52968
- const s = new P(r), i = p$1(c, Object.assign({ compare: m }, f));
52969
- if (f && f.forPrimitives) {
52970
- const o = { field: n$1 }, e = s.parse;
52971
- s.setParse((t) => e(t, o));
52972
- }
52973
- return v$2(s.parse, i);
52974
- }
52975
- var u = p(z$1, S);
52976
- p(["$and", "$or"].reduce((o, t) => (o[t] = Object.assign({}, o[t], { type: "field" }), o), Object.assign({}, z$1, { $nor: Object.assign({}, z$1.$nor, {
52977
- type: "field",
52978
- parse: O$2.compound
52979
- }) })), S, { forPrimitives: !0 });
53372
+ //#region ../../node_modules/@ucast/mongo2js/dist/esm/index.mjs
53373
+ function c(e) {
53374
+ return typeof e != `object` || !e ? e : e instanceof Date ? e.getTime() : e && typeof e.toJSON == `function` ? e.toJSON() : e;
53375
+ }
53376
+ var l = (e, t) => v(c(e), c(t));
53377
+ function u(r, i, a) {
53378
+ let o = new I$1(r), c = y(i, {
53379
+ compare: l,
53380
+ ...a
53381
+ });
53382
+ if (a && a.forPrimitives) {
53383
+ let t = { field: r$1 }, n = o.parse;
53384
+ o.setParse((e) => n(e, t));
53385
+ }
53386
+ return C$2(o.parse, c);
53387
+ }
53388
+ var d = u(L$1, B);
53389
+ u([`$and`, `$or`].reduce((e, t) => (e[t] = {
53390
+ ...e[t],
53391
+ type: `field`
53392
+ }, e), {
53393
+ ...L$1,
53394
+ $nor: {
53395
+ ...L$1.$nor,
53396
+ type: `field`,
53397
+ parse: x$2.compound
53398
+ }
53399
+ }), B, { forPrimitives: !0 });
52980
53400
  //#endregion
52981
53401
  //#region ../../packages/access/dist/index.mjs
53402
+ var PERMISSION_ERROR_INSTANCE = Symbol.for("@authup/access/PermissionError");
52982
53403
  var PermissionError = class PermissionError extends AuthupError {
52983
53404
  constructor(options = {}) {
52984
53405
  super({
52985
53406
  ...options,
52986
53407
  message: options.message || "A permission error occurred.",
52987
- statusCode: options.statusCode || 403
53408
+ code: options.code || ErrorCode$2.PERMISSION_DENIED
52988
53409
  });
53410
+ markInstanceof(this, PERMISSION_ERROR_INSTANCE);
52989
53411
  }
52990
53412
  addIssue(data) {
52991
53413
  this.issues.push(data);
@@ -53094,16 +53516,13 @@ var PermissionMemoryProvider = class {
53094
53516
  }
53095
53517
  };
53096
53518
  var POLICY_ERROR_INSTANCE = Symbol.for("@authup/access/PolicyError");
53097
- function isPolicyError(value) {
53098
- return typeof value === "object" && value !== null && value["@instanceof"] === POLICY_ERROR_INSTANCE;
53099
- }
53100
53519
  var PolicyError = class PolicyError extends AuthupError {
53101
- "@instanceof" = POLICY_ERROR_INSTANCE;
53102
53520
  constructor(message, code) {
53103
53521
  super({
53104
53522
  message,
53105
- code
53523
+ code: code ?? void 0
53106
53524
  });
53525
+ markInstanceof(this, POLICY_ERROR_INSTANCE);
53107
53526
  }
53108
53527
  addIssue(data) {
53109
53528
  this.issues.push(data);
@@ -53121,6 +53540,11 @@ var PolicyError = class PolicyError extends AuthupError {
53121
53540
  return new PolicyError("The evaluator context is not valid.", ErrorCode$2.POLICY_EVALUATOR_CONTEXT_INVALID);
53122
53541
  }
53123
53542
  };
53543
+ function isPolicyError(input) {
53544
+ if (hasInstanceof(input, POLICY_ERROR_INSTANCE)) return true;
53545
+ if (!isAuthupError(input)) return false;
53546
+ return input.code === ErrorCode$2.POLICY_EVALUATOR_NOT_FOUND || input.code === ErrorCode$2.POLICY_EVALUATOR_NOT_PROCESSABLE || input.code === ErrorCode$2.POLICY_EVALUATOR_CONTEXT_INVALID;
53547
+ }
53124
53548
  function errorMessage(value) {
53125
53549
  if (typeof value === "object" && value !== null && "message" in value && typeof value.message === "string") return value.message;
53126
53550
  return String(value);
@@ -53331,18 +53755,18 @@ var AttributesPolicyEvaluator = class {
53331
53755
  })]
53332
53756
  };
53333
53757
  this.fixQuery(policy.query);
53334
- return { success: maybeInvertPolicyOutcome(u(policy.query)(data), policy.invert) };
53758
+ return { success: maybeInvertPolicyOutcome(d(policy.query)(data), policy.invert) };
53335
53759
  }
53336
53760
  fixQuery(query) {
53337
53761
  if (Array.isArray(query)) {
53338
53762
  for (const element of query) this.fixQuery(element);
53339
53763
  return;
53340
53764
  }
53341
- if (isObject$4(query)) {
53765
+ if (isObject$5(query)) {
53342
53766
  const keys = Object.keys(query);
53343
53767
  for (const key of keys) {
53344
53768
  const value = query[key];
53345
- if (isObject$4(value) || Array.isArray(value)) {
53769
+ if (isObject$5(value) || Array.isArray(value)) {
53346
53770
  this.fixQuery(value);
53347
53771
  continue;
53348
53772
  }
@@ -54416,7 +54840,7 @@ function requireDist() {
54416
54840
  }
54417
54841
  var distExports = /* @__PURE__ */ requireDist();
54418
54842
  function hasDocumentCookie() {
54419
- const testingValue = typeof global === "undefined" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
54843
+ const testingValue = typeof globalThis === "undefined" ? void 0 : globalThis.TEST_HAS_DOCUMENT_COOKIE;
54420
54844
  if (typeof testingValue === "boolean") return testingValue;
54421
54845
  return typeof document === "object" && typeof document.cookie === "string";
54422
54846
  }
@@ -54520,7 +54944,7 @@ var Cookies = class {
54520
54944
  }
54521
54945
  };
54522
54946
  //#endregion
54523
- //#region ../../packages/client-web-kit/node_modules/@vueuse/integrations/dist/useCookies-Bv215dgK.js
54947
+ //#region ../../node_modules/@vueuse/integrations/dist/useCookies.js
54524
54948
  /**
54525
54949
  * Reactive methods to work with cookies (use {@link createCookies} method instead if you are using SSR)
54526
54950
  * @param dependencies - array of watching cookie's names. Pass empty array if don't want to watch cookies changes.
@@ -54548,6 +54972,9 @@ function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies =
54548
54972
  cookies.removeChangeListener(onChange);
54549
54973
  });
54550
54974
  return {
54975
+ /**
54976
+ * Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
54977
+ */
54551
54978
  get: (...args) => {
54552
54979
  /**
54553
54980
  * Auto update watching dependencies if needed
@@ -54559,6 +54986,9 @@ function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies =
54559
54986
  ...args[1]
54560
54987
  });
54561
54988
  },
54989
+ /**
54990
+ * Reactive get all cookies
54991
+ */
54562
54992
  getAll: (...args) => {
54563
54993
  touches.value;
54564
54994
  return cookies.getAll({
@@ -54919,8 +55349,8 @@ var VuelidateCustomRuleKey = /* @__PURE__ */ function(VuelidateCustomRuleKey) {
54919
55349
  return VuelidateCustomRuleKey;
54920
55350
  }({});
54921
55351
  var VuelidateCustomRule = {
54922
- [VuelidateCustomRuleKey.ALPHA_NUM_HYPHEN_UNDERSCORE]: common.regex(/^[a-z0-9-_]*$/),
54923
- [VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE_DOT]: common.regex(/^[a-z0-9-_.]*$/)
55352
+ ["alphaNumHyphenUnderscore"]: common.regex(/^[a-z0-9-_]*$/),
55353
+ ["alphaUpperNumHyphenUnderscoreDot"]: common.regex(/^[a-z0-9-_.]*$/)
54924
55354
  };
54925
55355
  function getVuelidateSeverity(vuelidate) {
54926
55356
  return getSeverity(vuelidate);
@@ -55042,7 +55472,7 @@ function buildFormSubmitWithTranslations(options, translations) {
55042
55472
  //#region ../../packages/client-web-kit/src/core/query/sort.ts
55043
55473
  function isQuerySortedDescByDate(input) {
55044
55474
  if (Array.isArray(input)) return input.some((el) => isQuerySortedDescByDate(el));
55045
- if (isObject$11(input)) return input.created_at === SortDirection.DESC || input.updated_at === SortDirection.DESC;
55475
+ if (isObject$12(input)) return input.created_at === SortDirection.DESC || input.updated_at === SortDirection.DESC;
55046
55476
  return typeof input === "string" && (input === "-created_at" || input === "-updated_at");
55047
55477
  }
55048
55478
  //#endregion
@@ -55110,21 +55540,21 @@ function createPermissionCheckerReactiveFn(ctx = {}) {
55110
55540
  return data;
55111
55541
  };
55112
55542
  }
55543
+ /**
55544
+ * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
55545
+ *
55546
+ * This can be used with JS designed for browsers to improve reuse of code and
55547
+ * allow the use of existing libraries.
55548
+ *
55549
+ * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
55550
+ *
55551
+ * @author Dan DeFelippi <dan@driverdan.com>
55552
+ * @contributor David Ellis <d.f.ellis@ieee.org>
55553
+ * @license MIT
55554
+ */
55113
55555
  //#endregion
55114
55556
  //#region ../../node_modules/engine.io-parser/build/esm/commons.js
55115
55557
  var import_XMLHttpRequest = /* @__PURE__ */ __toESM$2((/* @__PURE__ */ __commonJSMin$2(((exports, module) => {
55116
- /**
55117
- * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
55118
- *
55119
- * This can be used with JS designed for browsers to improve reuse of code and
55120
- * allow the use of existing libraries.
55121
- *
55122
- * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
55123
- *
55124
- * @author Dan DeFelippi <dan@driverdan.com>
55125
- * @contributor David Ellis <d.f.ellis@ieee.org>
55126
- * @license MIT
55127
- */
55128
55558
  var fs = __require("fs");
55129
55559
  var Url = __require("url");
55130
55560
  var spawn = __require("child_process").spawn;
@@ -63355,7 +63785,7 @@ function toClientManagerTokenAsyncFn(input) {
63355
63785
  return input;
63356
63786
  }
63357
63787
  function isDisconnectDescription(input) {
63358
- return isObject$4(input) && typeof input.description === "string";
63788
+ return isObject$5(input) && typeof input.description === "string";
63359
63789
  }
63360
63790
  var ClientManager = class {
63361
63791
  manager;
@@ -64046,7 +64476,7 @@ function create$2(context) {
64046
64476
  if (typeof context.socket !== "boolean" || typeof context.socket === "undefined" || context.socket) {
64047
64477
  const socketContext = {
64048
64478
  type: context.type,
64049
- ...isObject$11(context.socket) ? context.socket : {}
64479
+ ...isObject$12(context.socket) ? context.socket : {}
64050
64480
  };
64051
64481
  socketContext.onCreated = (entity) => {
64052
64482
  if (query && query.sort && isQuerySortedDescByDate(query.sort) && meta.value?.pagination?.offset === 0 || total.value < (meta.value?.pagination?.limit ?? 0)) handlers.created(entity);
@@ -64212,7 +64642,7 @@ function create$1(ctx) {
64212
64642
  let socket;
64213
64643
  if (typeof ctx.socket !== "boolean" || typeof ctx.socket === "undefined" || typeof ctx.socket === "function" || ctx.socket) {
64214
64644
  let socketContext = { type: ctx.type };
64215
- if (isObject$11(ctx.socket)) socketContext = {
64645
+ if (isObject$12(ctx.socket)) socketContext = {
64216
64646
  ...socketContext,
64217
64647
  ...ctx.socket
64218
64648
  };
@@ -64338,7 +64768,7 @@ function create$1(ctx) {
64338
64768
  };
64339
64769
  manager.renderError = (error) => {
64340
64770
  if (!ctx.setup || !ctx.setup.slots) return;
64341
- if (isObject$11(error) && hasNormalizedSlot("error", ctx.setup.slots)) return normalizeSlot$1("error", error, ctx.setup.slots);
64771
+ if (isObject$12(error) && hasNormalizedSlot("error", ctx.setup.slots)) return normalizeSlot$1("error", error, ctx.setup.slots);
64342
64772
  };
64343
64773
  return manager;
64344
64774
  }
@@ -64564,14 +64994,6 @@ function defineEntityPicker({ props, setup, component }) {
64564
64994
  });
64565
64995
  return { render };
64566
64996
  }
64567
- //#endregion
64568
- //#region ../../packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
64569
- var ElementType = /* @__PURE__ */ function(ElementType) {
64570
- ElementType["BUTTON"] = "button";
64571
- ElementType["LINK"] = "link";
64572
- ElementType["DROP_DOWN_ITEM"] = "dropDownItem";
64573
- return ElementType;
64574
- }(ElementType || {});
64575
64997
  (0, vue_exports.defineComponent)({
64576
64998
  props: {
64577
64999
  elementIcon: {
@@ -64584,7 +65006,7 @@ var ElementType = /* @__PURE__ */ function(ElementType) {
64584
65006
  },
64585
65007
  elementType: {
64586
65008
  type: String,
64587
- default: ElementType.BUTTON
65009
+ default: "button"
64588
65010
  },
64589
65011
  entityId: {
64590
65012
  type: String,
@@ -64606,7 +65028,7 @@ var ElementType = /* @__PURE__ */ function(ElementType) {
64606
65028
  const busy = (0, vue_exports.ref)(false);
64607
65029
  const submit = wrapFnWithBusyState(busy, async () => {
64608
65030
  const domainAPI = apiClient[props.entityType];
64609
- if (!isObject$4(domainAPI)) return;
65031
+ if (!isObject$5(domainAPI)) return;
64610
65032
  if (typeof domainAPI.delete !== "function") return;
64611
65033
  try {
64612
65034
  const response = await domainAPI.delete(props.entityId);
@@ -64624,10 +65046,10 @@ var ElementType = /* @__PURE__ */ function(ElementType) {
64624
65046
  let tag = "button";
64625
65047
  const data = {};
64626
65048
  switch (props.elementType) {
64627
- case ElementType.LINK:
65049
+ case "link":
64628
65050
  tag = "a";
64629
65051
  break;
64630
- case ElementType.DROP_DOWN_ITEM:
65052
+ case "dropDownItem":
64631
65053
  if (instance && typeof instance.appContext.app.component("BDropdownItem") !== "undefined") tag = (0, vue_exports.resolveDynamicComponent)("BDropdownItem");
64632
65054
  break;
64633
65055
  }
@@ -72575,7 +72997,12 @@ Authorize_vue_vue_type_script_lang_default.setup = (props, ctx) => {
72575
72997
  };
72576
72998
  var Authorize_default = Authorize_vue_vue_type_script_lang_default;
72577
72999
  //#endregion
72578
- //#region ../../node_modules/vue-router/dist/useApi-DtucMc-S.js
73000
+ //#region ../../node_modules/vue-router/dist/useApi-BNm6g9O9.js
73001
+ /*!
73002
+ * vue-router v5.0.7
73003
+ * (c) 2026 Eduardo San Martin Morote
73004
+ * @license MIT
73005
+ */
72579
73006
  var isBrowser$1 = typeof document !== "undefined";
72580
73007
  /**
72581
73008
  * Allows differentiating lazy components from functional components and vue-class-component
@@ -72711,7 +73138,7 @@ var routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route loc
72711
73138
  */
72712
73139
  var routerViewLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
72713
73140
  //#endregion
72714
- //#region ../../node_modules/@vue/devtools-shared/dist/index.js
73141
+ //#region ../../node_modules/vue-router/node_modules/@vue/devtools-shared/dist/index.js
72715
73142
  var __create$1 = Object.create;
72716
73143
  var __defProp$1 = Object.defineProperty;
72717
73144
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -72896,7 +73323,7 @@ function basename$1(filename, ext) {
72896
73323
  */
72897
73324
  var deepClone = (0, import_rfdc.default)({ circles: true });
72898
73325
  //#endregion
72899
- //#region ../../node_modules/perfect-debounce/dist/index.mjs
73326
+ //#region ../../node_modules/vue-router/node_modules/perfect-debounce/dist/index.mjs
72900
73327
  var DEBOUNCE_DEFAULTS = { trailing: true };
72901
73328
  /**
72902
73329
  Debounce functions
@@ -72983,7 +73410,7 @@ async function _applyPromised(fn, _this, args) {
72983
73410
  return await fn.apply(_this, args);
72984
73411
  }
72985
73412
  //#endregion
72986
- //#region ../../node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs
73413
+ //#region ../../node_modules/hookable/dist/index.mjs
72987
73414
  function flatHooks(configHooks, hooks = {}, parentName) {
72988
73415
  for (const key in configHooks) {
72989
73416
  const subHook = configHooks[key];
@@ -76348,16 +76775,6 @@ function isPlainObject$1(payload) {
76348
76775
  const prototype = Object.getPrototypeOf(payload);
76349
76776
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
76350
76777
  }
76351
- function isNull(payload) {
76352
- return getType(payload) === "Null";
76353
- }
76354
- function isOneOf(a, b, c, d, e) {
76355
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
76356
- }
76357
- function isUndefined(payload) {
76358
- return getType(payload) === "Undefined";
76359
- }
76360
- isOneOf(isNull, isUndefined);
76361
76778
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
76362
76779
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
76363
76780
  if (propType === "enumerable") carry[key] = newVal;
@@ -76459,9 +76876,9 @@ target.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
76459
76876
  target.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
76460
76877
  target.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
76461
76878
  //#endregion
76462
- //#region ../../node_modules/vue-router/dist/devtools-BPov6AZY.js
76879
+ //#region ../../node_modules/vue-router/dist/devtools-BuSwVM2w.js
76463
76880
  /*!
76464
- * vue-router v5.0.6
76881
+ * vue-router v5.0.7
76465
76882
  * (c) 2026 Eduardo San Martin Morote
76466
76883
  * @license MIT
76467
76884
  */
@@ -77415,7 +77832,7 @@ function omit(obj, keys) {
77415
77832
  //#endregion
77416
77833
  //#region ../../node_modules/vue-router/dist/vue-router.js
77417
77834
  /*!
77418
- * vue-router v5.0.6
77835
+ * vue-router v5.0.7
77419
77836
  * (c) 2026 Eduardo San Martin Morote
77420
77837
  * @license MIT
77421
77838
  */
@@ -77723,14 +78140,12 @@ function tokenizePath(path) {
77723
78140
  }
77724
78141
  while (i < path.length) {
77725
78142
  char = path[i++];
77726
- if (char === "\\" && state !== TokenizerState.ParamRegExp) {
77727
- previousState = state;
77728
- state = TokenizerState.EscapeNext;
77729
- continue;
77730
- }
77731
78143
  switch (state) {
77732
78144
  case TokenizerState.Static:
77733
- if (char === "/") {
78145
+ if (char === "\\") {
78146
+ previousState = state;
78147
+ state = TokenizerState.EscapeNext;
78148
+ } else if (char === "/") {
77734
78149
  if (buffer) consumeBuffer();
77735
78150
  finalizeSegment();
77736
78151
  } else if (char === ":") {
@@ -78071,7 +78486,10 @@ function createRouterMatcher(routes, globalOptions) {
78071
78486
  if (!matcher) throw createRouterError(ErrorTypes.MATCHER_NOT_FOUND, { location });
78072
78487
  if (process.env.NODE_ENV !== "production") {
78073
78488
  const invalidParams = Object.keys(location.params || {}).filter((paramName) => !matcher.keys.find((k) => k.name === paramName));
78074
- if (invalidParams.length) warn$1(`Discarded invalid param(s) "${invalidParams.join("\", \"")}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
78489
+ if (invalidParams.length) {
78490
+ const isInherited = !matcher.keys.length && invalidParams.some((name) => name in currentLocation.params);
78491
+ warn$1(`Discarded invalid param(s) "${invalidParams.join("\", \"")}" when navigating.` + (isInherited ? ` If you are using a catch-all route with a named redirect, pass an empty \`params\` object: \`redirect: { name: '...', params: {} }\`.` : "") + ` See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
78492
+ }
78075
78493
  }
78076
78494
  name = matcher.record.name;
78077
78495
  params = assign(pickParams(currentLocation.params, matcher.keys.filter((k) => !k.optional).concat(matcher.parent ? matcher.parent.keys.filter((k) => k.optional) : []).map((k) => k.name)), location.params && pickParams(location.params, matcher.keys.map((k) => k.name)));
@@ -78083,6 +78501,9 @@ function createRouterMatcher(routes, globalOptions) {
78083
78501
  if (matcher) {
78084
78502
  params = matcher.parse(path);
78085
78503
  name = matcher.record.name;
78504
+ matcher.keys.forEach((key) => {
78505
+ if (key.optional && !params[key.name]) delete params[key.name];
78506
+ });
78086
78507
  }
78087
78508
  } else {
78088
78509
  matcher = currentLocation.name ? matcherMap.get(currentLocation.name) : matchers.find((m) => m.re.test(currentLocation.path));
@@ -78497,11 +78918,7 @@ function warnDeprecatedUsage() {
78497
78918
  const parentSubTreeType = instance.parent && instance.parent.subTree && instance.parent.subTree.type;
78498
78919
  if (parentName && (parentName === "KeepAlive" || parentName.includes("Transition")) && typeof parentSubTreeType === "object" && parentSubTreeType.name === "RouterView") {
78499
78920
  const comp = parentName === "KeepAlive" ? "keep-alive" : "transition";
78500
- warn$1(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
78501
- Use slot props instead:
78502
-
78503
- <router-view v-slot="{ Component }">
78504
- <${comp}>\n <component :is="Component" />\n </${comp}>\n</router-view>`);
78921
+ warn$1(`<router-view> can no longer be used directly inside <${comp}>.\nUse slot props instead:\n\n<router-view v-slot="{ Component }">\n <${comp}>\n <component :is="Component" />\n </${comp}>\n</router-view>`);
78505
78922
  }
78506
78923
  }
78507
78924
  /**