@warlock.js/notifications 5.3.1 → 5.3.2
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.
- package/cjs/{esm-FB2hc0-o.cjs → esm-wqNYY39K.cjs} +99 -99
- package/cjs/{esm-FB2hc0-o.cjs.map → esm-wqNYY39K.cjs.map} +1 -1
- package/cjs/index.cjs +1 -1
- package/cjs/rabbitmq-driver-CikFalFh.cjs +3 -0
- package/esm/index.d.mts +4 -4
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker-registry.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker-registry.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/decorators/consumable.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/decorators/consumable.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.mjs +3 -3
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.mjs +3 -3
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-message.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-message.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/prepare-consumer-subscription.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/prepare-consumer-subscription.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/use-case-broadcast.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/use-case-broadcast.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/config.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/config.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/factory/validate.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/factory/validate.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/factory/validators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/factory/validators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/get-field-value.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/get-field-value.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/path-helpers.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/path-helpers.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/array-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/array-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/date-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/date-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/number-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/number-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/object-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/object-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/string-mutators.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/string-mutators.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/array/array-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/array/array-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/color/color-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/color/color-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/enum.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/enum.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/equals-field-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/equals-field-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/instanceof.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/instanceof.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/literal.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/literal.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/type-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/type-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/unknown-key.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/unknown-key.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/forbidden-if-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/forbidden-if-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-if-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-if-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-unless-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-unless-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-with-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-with-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-without-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/present-without-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-if-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-if-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-unless-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-unless-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-when-rule.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-when-rule.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-with-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-with-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-without-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/required-without-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/equal.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/equal.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/forbidden.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/forbidden.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/required.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/required.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/union.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/union.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/when.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/when.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-comparison-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-comparison-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-day-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-day-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-field-comparison-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-field-comparison-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-period-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-period-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-relative-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-relative-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-special-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date-special-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/date.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/length/length-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/length/length-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/number/number-rules.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/number/number-rules.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/scalar/accepted-rule.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/scalar/accepted-rule.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/scalar/declined-rule.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/scalar/declined-rule.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/alpha.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/alpha.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/credit-card.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/credit-card.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/email.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/email.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/id-formats.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/id-formats.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/ip.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/ip.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/pattern.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/pattern.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/string-comparison.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/string-comparison.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/strong-password-rule.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/strong-password-rule.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/url.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/url.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/without-whitespace.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/without-whitespace.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/map-result.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/map-result.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/standard-schema/types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/conditional-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/conditional-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/context-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/context-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/data-transformer-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/data-transformer-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/date-types.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/date-types.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/mutator-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/mutator-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/result-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/result-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/rule-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/rule-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/schema-types.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/types/schema-types.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/any-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/any-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/array-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/array-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/base-validator.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/base-validator.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/base-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/base-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/boolean-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/boolean-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/computed-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/computed-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/date-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/date-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/discriminated-union-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/discriminated-union-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/float-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/float-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/instanceof-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/instanceof-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/int-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/int-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/lazy-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/lazy-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/literal-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/literal-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/managed-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/managed-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.d.mts +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.d.mts.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/number-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/number-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/numeric-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/numeric-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/object-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/object-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/primitive-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/primitive-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/record-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/record-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/scalar-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/scalar-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/string-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/string-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/tuple-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/tuple-validator.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/union-validator.mjs +1 -1
- package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/union-validator.mjs.map +1 -1
- package/esm/queue/load-herald.mjs +1 -1
- package/package.json +6 -6
- package/cjs/rabbitmq-driver-CIvkulXX.cjs +0 -3
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker-registry.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/broker.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/communicators/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/contracts/broker-driver.contract.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/contracts/channel.contract.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/decorators/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/index.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/event-message.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/message-managers/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/types/channel.types.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/types/registry.types.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429 → @warlock.js_herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55}/node_modules/@warlock.js/herald/esm/utils/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/factory/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/helpers/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/index.d.mts +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/mutators/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/array/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/color/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/common/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/conditional/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/core/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/date/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/file/dimensions.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/file/file-size.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/file/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/length/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/number/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/scalar/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/rules/string/matches.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@warlock.js_seal@5.2.4 → @warlock.js_seal@5.3.1}/node_modules/@warlock.js/seal/esm/validators/index.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm-FB2hc0-o.cjs","names":["WHITESPACE_RUN","capitalize","capitalize","EventEmitter","EventEmitter"],"sources":["../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/message-managers/prepare-consumer-subscription.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/config.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/factory/validate.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/get.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/number/round.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/unset.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/omit.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/except.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/trim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/words.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/tap.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/helpers/get-field-value.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/helpers/path-helpers.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs","../../../../../../node_modules/.pnpm/@mongez+supportive-is@2.1.4/node_modules/@mongez/supportive-is/esm/index.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/core/required.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/standard-schema/map-result.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/base-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/any-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/array-mutators.mjs","../../../../../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/date-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/number-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/object-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/mutators/string-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/core/equal.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/core/forbidden.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/core/union.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/core/when.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/alpha.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/credit-card.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/email.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/id-formats.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/ip.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/pattern.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/string-comparison.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/strong-password-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/url.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/string/without-whitespace.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/number/number-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/length/length-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/array/array-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/types/date-types.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-comparison-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-day-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-field-comparison-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-period-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-relative-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/date/date-special-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/color/color-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/required-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/required-unless-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/required-when-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/required-with-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/required-without-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/present-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/present-unless-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/present-with-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/present-without-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/conditional/forbidden-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/enum.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/equals-field-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/instanceof.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/literal.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/type-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/common/unknown-key.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/array-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/primitive-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/scalar/accepted-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/rules/scalar/declined-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/boolean-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/computed-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/date-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/literal-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/discriminated-union-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/number-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/float-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/instanceof-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/int-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/lazy-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/managed-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/numeric-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/object-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/record-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/scalar-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/string-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/tuple-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/validators/union-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.2.4/node_modules/@warlock.js/seal/esm/factory/validators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/communicators/broker.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/communicators/broker-registry.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/decorators/consumable.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/message-managers/event-message.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.2.4_@s_301a5eb076404f4e7a51af7b45e7e429/node_modules/@warlock.js/herald/esm/use-case-broadcast.mjs"],"sourcesContent":["//#region ../herald/src/message-managers/prepare-consumer-subscription.ts\nfunction prepareConsumerSubscription(Consumer, onError) {\n\tconst callback = async (message, ctx) => {\n\t\tconst envelope = message.payload;\n\t\tlet eventPayload = envelope.payload;\n\t\tif (envelope.version) {\n\t\t\tif (!Consumer.isAcceptedVersion(Number(envelope.version))) {\n\t\t\t\tctx.ack();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tconst consumer = new Consumer();\n\t\tif (consumer.schema) {\n\t\t\tconst result = await consumer.validate(eventPayload);\n\t\t\tif (!result || result.isValid === false) {\n\t\t\t\tctx.nack();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\teventPayload = result.data;\n\t\t}\n\t\ttry {\n\t\t\tawait consumer.handle(eventPayload, {\n\t\t\t\tpayload: eventPayload,\n\t\t\t\teventName: Consumer.eventName,\n\t\t\t\tmessageId: message.metadata.messageId,\n\t\t\t\toccurredAt: envelope.occurredAt ? new Date(envelope.occurredAt) : void 0,\n\t\t\t\tmetadata: envelope.metadata,\n\t\t\t\tversion: envelope.version,\n\t\t\t\tmessage\n\t\t\t});\n\t\t\tctx.ack();\n\t\t} catch (error) {\n\t\t\tawait ctx.retry();\n\t\t\tif (onError) onError(error, Consumer.eventName);\n\t\t}\n\t};\n\treturn callback;\n}\n\n//#endregion\nexport { prepareConsumerSubscription };\n//# sourceMappingURL=prepare-consumer-subscription.mjs.map","//#region ../seal/src/standard-schema/json-schema.ts\n/**\n* Apply nullable to a JSON Schema object based on the target dialect.\n*\n* - draft-2020-12 : `type` becomes an array: `[\"string\", \"null\"]`\n* - openai-strict : same as draft-2020-12 (type array form)\n* - draft-07 : wraps in `oneOf: [{ ...schema }, { type: \"null\" }]`\n* - openapi-3.0 : adds `nullable: true` alongside the existing type\n*\n* Mutates the schema in-place.\n*\n* @example\n* ```ts\n* const schema = { type: \"string\" };\n* applyNullable(schema, \"draft-2020-12\");\n* // → { type: [\"string\", \"null\"] }\n* ```\n*/\nfunction applyNullable(schema, target) {\n\tif (target === \"openapi-3.0\") {\n\t\tschema.nullable = true;\n\t\treturn;\n\t}\n\tif (target === \"draft-2020-12\" || target === \"openai-strict\") {\n\t\tconst baseType = schema.type;\n\t\tschema.type = Array.isArray(baseType) ? [...baseType, \"null\"] : [baseType, \"null\"];\n\t\treturn;\n\t}\n\tconst copy = { ...schema };\n\tfor (const key of Object.keys(schema)) delete schema[key];\n\tschema.oneOf = [copy, { type: \"null\" }];\n}\n/**\n* Wrap a field schema as nullable for OpenAI strict mode.\n*\n* OpenAI strict requires optional fields to be expressed as a nullable type\n* rather than being omitted from the `required` array. This helper wraps a\n* given schema into its nullable equivalent using the type-array form.\n*\n* Unlike `applyNullable()` (which mutates in-place), this returns a new\n* schema object to avoid side effects when wrapping child schemas.\n*\n* @example\n* ```ts\n* wrapNullableStrict({ type: \"string\", minLength: 3 })\n* // → { type: [\"string\", \"null\"], minLength: 3 }\n*\n* wrapNullableStrict({ type: \"object\", properties: {...} })\n* // → { type: [\"object\", \"null\"], properties: {...} }\n*\n* wrapNullableStrict({ oneOf: [...] })\n* // → { oneOf: [..., { type: \"null\" }] }\n* ```\n*/\nfunction wrapNullableStrict(schema) {\n\tif (schema.oneOf) return {\n\t\t...schema,\n\t\toneOf: [...schema.oneOf, { type: \"null\" }]\n\t};\n\tif (schema.anyOf) return {\n\t\t...schema,\n\t\tanyOf: [...schema.anyOf, { type: \"null\" }]\n\t};\n\tif (schema.type === void 0) return schema;\n\tconst baseType = schema.type;\n\treturn {\n\t\t...schema,\n\t\ttype: Array.isArray(baseType) ? [...baseType, \"null\"] : [baseType, \"null\"]\n\t};\n}\n/**\n* Find the first rule matching the given name in a rules array,\n* and return its options bag.\n*/\nfunction getRuleOptions(rules, ruleName) {\n\treturn rules.find((r) => r.name === ruleName)?.context?.options;\n}\n\n//#endregion\nexport { applyNullable, getRuleOptions, wrapNullableStrict };\n//# sourceMappingURL=json-schema.mjs.map","//#region ../seal/src/config.ts\n/**\n* Global Seal configuration\n*/\nconst config = { firstErrorOnly: true };\n/**\n* Configure Seal globally\n*\n* @example\n* ```ts\n* import { configureSeal } from \"@warlock.js/seal\";\n* import { trans } from \"@mongez/localization\";\n*\n* configureSeal({\n* translateRule: (ruleTranslation) => trans(`validation.${ruleTranslation.rule.name}`, ruleTranslation.attributes),\n* translateAttribute: (attributeTranslation) => trans(`validation.attributes.${attributeTranslation.rule.name}.${attributeTranslation.attribute}`, attributeTranslation.context.allValues),\n* });\n* ```\n*/\nfunction configureSeal(options) {\n\tObject.assign(config, options);\n}\n/**\n* Get current Seal configuration\n*/\nfunction getSealConfig() {\n\treturn config;\n}\n/**\n* Reset configuration to defaults\n*/\nfunction resetSealConfig() {\n\tdelete config.translateRule;\n\tdelete config.translateAttribute;\n\tconfig.firstErrorOnly = true;\n}\n\n//#endregion\nexport { configureSeal, getSealConfig, resetSealConfig };\n//# sourceMappingURL=config.mjs.map","import { getSealConfig } from \"../config.mjs\";\n\n//#region ../seal/src/factory/validate.ts\n/**\n* Validate data against a schema\n*/\nconst validate = async (schema, data, { context: extendedContext, ...configurations } = getSealConfig() || {}) => {\n\tconst context = {\n\t\tallValues: data,\n\t\tparent: null,\n\t\tvalue: data,\n\t\tkey: \"\",\n\t\tpath: \"\",\n\t\tcontext: extendedContext,\n\t\trootContext: extendedContext,\n\t\ttranslateRule(ruleTranslation) {\n\t\t\treturn configurations.translateRule?.(ruleTranslation) ?? \"\";\n\t\t},\n\t\ttranslateAttribute(attributeTranslation) {\n\t\t\treturn configurations.translateAttribute?.(attributeTranslation) ?? \"\";\n\t\t},\n\t\tconfigurations\n\t};\n\tconst result = await schema.validate(data, context);\n\tif (!result.isValid) return {\n\t\t...result,\n\t\tdata: void 0\n\t};\n\treturn result;\n};\n\n//#endregion\nexport { validate };\n//# sourceMappingURL=validate.mjs.map","//#region ../seal/src/helpers/date-helpers.ts\n/**\n* Detect if value is a date value or field name\n*\n* Date values:\n* - Date instance\n* - Number (timestamp)\n* - String with date separators (- or /)\n*\n* Field names:\n* - Strings without - or /\n*\n* @param value - Value to check\n* @returns true if it's a date value, false if it's a field name\n*/\nfunction isDateValue(value) {\n\tif (value instanceof Date) return true;\n\tconst date = new Date(value);\n\treturn !isNaN(date.getTime());\n}\n\n//#endregion\nexport { isDateValue };\n//# sourceMappingURL=date-helpers.mjs.map","//#region ../reinforcements/src/object/get.ts\nfunction get(object, path, defaultValue) {\n\tif (object === null || object === void 0) return defaultValue;\n\tif (path === \"\") return defaultValue;\n\tconst segments = path.split(\".\");\n\tlet current = object;\n\tfor (const key of segments) {\n\t\tif (current === null || current === void 0) return defaultValue;\n\t\tif (typeof current !== \"object\") return defaultValue;\n\t\tif (!Object.prototype.hasOwnProperty.call(current, key)) return defaultValue;\n\t\tcurrent = current[key];\n\t}\n\treturn current === void 0 ? defaultValue : current;\n}\n\n//#endregion\nexport { get as default };\n//# sourceMappingURL=get.mjs.map","//#region ../reinforcements/src/mixed/clone/clone.ts\n/**\n* Deep-clone a value. Supports plain objects, arrays, `Date`, `RegExp`,\n* `Map`, `Set`, `Error`, and typed arrays. Handles circular references\n* via an internal `WeakMap`.\n*\n* Non-plain class instances are returned by reference — cloning custom\n* constructors requires the class's own copy logic, so this function\n* stops at that boundary rather than silently producing a half-clone.\n*\n* @example\n* const original = { user: { name: \"Ada\" }, tags: [\"x\"] };\n* const copy = clone(original);\n*\n* copy.user.name = \"Bob\";\n* original.user.name; // \"Ada\"\n*/\nfunction clone(value) {\n\tif (value === null || typeof value !== \"object\") return value;\n\treturn cloneDeep(value, /* @__PURE__ */ new WeakMap());\n}\nfunction cloneDeep(value, seen) {\n\tif (value === null || typeof value !== \"object\") return value;\n\tif (seen.has(value)) return seen.get(value);\n\tif (value instanceof Date) return new Date(value.getTime());\n\tif (value instanceof RegExp) return cloneRegExp(value);\n\tif (value instanceof Error) return cloneError(value, seen);\n\tif (Array.isArray(value)) return cloneArray(value, seen);\n\tif (value instanceof Map) return cloneMap(value, seen);\n\tif (value instanceof Set) return cloneSet(value, seen);\n\tif (ArrayBuffer.isView(value) && !(value instanceof DataView)) return cloneTypedArray(value);\n\tif (value instanceof ArrayBuffer) return value.slice(0);\n\treturn clonePlainObject(value, seen);\n}\nfunction cloneRegExp(value) {\n\tconst copy = new RegExp(value.source, value.flags);\n\tcopy.lastIndex = value.lastIndex;\n\treturn copy;\n}\nfunction cloneError(value, seen) {\n\tconst Ctor = value.constructor;\n\tconst copy = new Ctor(value.message);\n\tcopy.stack = value.stack;\n\tcopy.name = value.name;\n\tseen.set(value, copy);\n\tfor (const key of Object.keys(value)) copy[key] = cloneDeep(value[key], seen);\n\treturn copy;\n}\nfunction cloneArray(value, seen) {\n\tconst copy = [];\n\tseen.set(value, copy);\n\tfor (const item of value) copy.push(cloneDeep(item, seen));\n\treturn copy;\n}\nfunction cloneMap(value, seen) {\n\tconst copy = /* @__PURE__ */ new Map();\n\tseen.set(value, copy);\n\tfor (const [key, val] of value) copy.set(cloneDeep(key, seen), cloneDeep(val, seen));\n\treturn copy;\n}\nfunction cloneSet(value, seen) {\n\tconst copy = /* @__PURE__ */ new Set();\n\tseen.set(value, copy);\n\tfor (const item of value) copy.add(cloneDeep(item, seen));\n\treturn copy;\n}\nfunction cloneTypedArray(value) {\n\tconst Ctor = value.constructor;\n\treturn new Ctor(value.buffer.slice(0));\n}\nfunction clonePlainObject(value, seen) {\n\tconst proto = Object.getPrototypeOf(value);\n\tif (!(proto === Object.prototype || proto === null)) return value;\n\tconst copy = Object.create(proto);\n\tseen.set(value, copy);\n\tfor (const key of Object.keys(value)) copy[key] = cloneDeep(value[key], seen);\n\treturn copy;\n}\n\n//#endregion\nexport { clone as default };\n//# sourceMappingURL=clone.mjs.map","//#region ../reinforcements/src/number/round.ts\n/**\n* Round `value` to the given number of decimal places (banker's-style\n* `Math.round`).\n*\n* @example\n* round(1.235, 2); // 1.24\n* round(1.5); // 2\n*/\nfunction round(value, precision = 2) {\n\tconst multiplier = Math.pow(10, precision || 0);\n\treturn Math.round(value * multiplier) / multiplier;\n}\n\n//#endregion\nexport { round as default };\n//# sourceMappingURL=round.mjs.map","import get from \"./get.mjs\";\n\n//#region ../reinforcements/src/object/unset.ts\n/**\n* Remove one or more dot-notation paths from `object`. Mutates and\n* returns the input.\n*\n* @example\n* unset({ a: 1, b: 2 }, [\"a\"]); // { b: 2 }\n* unset({ a: { b: 1, c: 2 } }, [\"a.b\"]); // { a: { c: 2 } }\n*/\nfunction unset(object, keys) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tfor (const key of keys) deletePath(object, key);\n\treturn object;\n}\nfunction deletePath(object, path) {\n\tconst segments = path.split(\".\");\n\tif (segments.length === 1) {\n\t\tdelete object[path];\n\t\treturn;\n\t}\n\tconst lastKey = segments.pop();\n\tconst parent = get(object, segments.join(\".\"));\n\tif (parent && typeof parent === \"object\") delete parent[lastKey];\n}\n\n//#endregion\nexport { unset as default };\n//# sourceMappingURL=unset.mjs.map","import unset from \"./unset.mjs\";\n\n//#region ../reinforcements/src/object/omit.ts\nfunction omit(object, keysOrPredicate) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tif (typeof keysOrPredicate === \"function\") return omitByPredicate(object, keysOrPredicate);\n\treturn unset({ ...object }, keysOrPredicate);\n}\nfunction omitByPredicate(object, predicate) {\n\tconst result = {};\n\tfor (const key of Object.keys(object)) if (!predicate(object[key], key)) result[key] = object[key];\n\treturn result;\n}\n\n//#endregion\nexport { omit as default };\n//# sourceMappingURL=omit.mjs.map","import omit from \"./omit.mjs\";\n\n//#region ../reinforcements/src/object/except.ts\n/**\n* @deprecated Use {@link omit} instead. Will be removed in a future major release.\n*/\nfunction except(object, keys) {\n\treturn omit(object, keys);\n}\n\n//#endregion\nexport { except as default };\n//# sourceMappingURL=except.mjs.map","//#region ../reinforcements/src/Random/_internal.ts\nconst ALPHANUMERIC = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\nconst URL_SAFE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-\";\nconst cryptoRef = typeof globalThis !== \"undefined\" && globalThis.crypto ? globalThis.crypto : {};\nconst BYTE_VALUES = 256;\n/** Thrown by every security-shaped generator when no CSPRNG exists. */\nconst NO_CSPRNG_ERROR = \"No CSPRNG available: crypto.getRandomValues is required\";\n/**\n* Return the runtime CSPRNG, throwing when there is none. Tokens, ids\n* and uuids must never silently degrade to the seedable `next()` — a\n* predictable token is worse than a loud failure.\n*/\nfunction requireCsprng() {\n\tif (typeof cryptoRef.getRandomValues !== \"function\") throw new Error(NO_CSPRNG_ERROR);\n\treturn cryptoRef.getRandomValues.bind(cryptoRef);\n}\n/** Cryptographically secure random bytes. Throws without a CSPRNG. */\nfunction cryptoBytes(size) {\n\treturn requireCsprng()(new Uint8Array(size));\n}\n/**\n* Build a `length`-character string out of `charset` using CSPRNG\n* bytes. Bytes above the largest multiple of the charset size are\n* rejected and redrawn so every character stays equally likely — a\n* plain `byte % charset.length` would bias the leading characters.\n*\n* Throws when no CSPRNG is available, whatever the requested length.\n*/\nfunction cryptoStringOf(charset, length) {\n\tconst getRandomValues = requireCsprng();\n\tconst size = charset.length;\n\tconst limit = Math.floor(BYTE_VALUES / size) * size;\n\tlet text = \"\";\n\twhile (text.length < length) {\n\t\tconst bytes = getRandomValues(new Uint8Array(length - text.length));\n\t\tfor (let i = 0; i < bytes.length && text.length < length; i++) {\n\t\t\tif (bytes[i] >= limit) continue;\n\t\t\ttext += charset.charAt(bytes[i] % size);\n\t\t}\n\t}\n\treturn text;\n}\nlet rngState;\nfunction setSeed(seed) {\n\trngState = seed;\n}\n/**\n* Return the next pseudo-random value in `[0, 1)`. Uses `Math.random` by\n* default; switches to a seeded mulberry32 PRNG when `setSeed` is called\n* with a numeric seed.\n*/\nfunction next() {\n\tif (rngState === void 0) return Math.random();\n\trngState |= 0;\n\trngState = rngState + 1831565813 | 0;\n\tlet t = rngState;\n\tt = Math.imul(t ^ t >>> 15, t | 1);\n\tt ^= t + Math.imul(t ^ t >>> 7, t | 61);\n\treturn ((t ^ t >>> 14) >>> 0) / 4294967296;\n}\n\n//#endregion\nexport { ALPHANUMERIC, URL_SAFE, cryptoBytes, cryptoRef, cryptoStringOf, next, setSeed };\n//# sourceMappingURL=_internal.mjs.map","//#region ../reinforcements/src/string/ucfirst.ts\n/**\n* Uppercase the first character of `string`.\n*\n* @example\n* ucfirst(\"hello\"); // \"Hello\"\n*/\nfunction ucfirst(string) {\n\tif (!string) return \"\";\n\treturn string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n//#endregion\nexport { ucfirst as default };\n//# sourceMappingURL=ucfirst.mjs.map","import ucfirst from \"./ucfirst.mjs\";\n\n//#region ../reinforcements/src/string/capitalize.ts\nconst WHITESPACE_RUN = /\\s+/;\nconst WHITESPACE_GROUP = /(\\s+)/;\n/**\n* Capitalize the first letter of each whitespace-separated word.\n*\n* @example\n* capitalize(\"hello world\"); // \"Hello World\"\n*/\nfunction capitalize(string) {\n\tif (!string) return \"\";\n\treturn string.split(WHITESPACE_GROUP).map((part) => WHITESPACE_RUN.test(part) ? part : ucfirst(part)).join(\"\");\n}\n\n//#endregion\nexport { capitalize as default };\n//# sourceMappingURL=capitalize.mjs.map","//#region ../reinforcements/src/utils/escapeRegex.ts\n/**\n* Escape the regex of the given string\n*/\nfunction escapeRegex(string) {\n\treturn string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n//#endregion\nexport { escapeRegex as default };\n//# sourceMappingURL=escapeRegex.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/trim.ts\n/**\n* Remove the given needle from the start and the end of string\n*\n* @param string $needle\n* @return string\n*/\nfunction trim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tif (needle === \" \") return string.replace(/^\\s+|\\s+$/g, \"\");\n\tneedle = escapeRegex(needle);\n\tconst pattern = \"^\" + needle + \"+|\" + needle + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { trim as default };\n//# sourceMappingURL=trim.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/ltrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction ltrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = \"^\" + escapeRegex(needle) + \"+\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { ltrim as default };\n//# sourceMappingURL=ltrim.mjs.map","//#region ../reinforcements/src/string/readMoreChars.ts\n/**\n* Cut string for the given length and append ... if string is larger than the given length\n*\n*/\nfunction readMoreChars(string, length, readMoreDots = \"...\") {\n\tif (!string) return \"\";\n\tif (string.length <= length) return string;\n\treturn string.substring(0, length) + readMoreDots;\n}\n\n//#endregion\nexport { readMoreChars as default };\n//# sourceMappingURL=readMoreChars.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/rtrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction rtrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = escapeRegex(needle) + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { rtrim as default };\n//# sourceMappingURL=rtrim.mjs.map","//#region ../reinforcements/src/string/words.ts\nconst SEPARATOR_PATTERN = /[-_./\\\\\\s]+/g;\nconst ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;\nconst CAMEL_BOUNDARY = /([a-z\\d])([A-Z])/g;\nconst WHITESPACE_RUN = /\\s+/;\n/**\n* Split a string into its semantic word tokens. Handles camelCase,\n* PascalCase, snake_case, kebab-case, dot.case, slash/separated and\n* whitespace, and correctly preserves acronym runs.\n*\n* @example\n* words(\"XMLHttpRequest\"); // [\"XML\", \"Http\", \"Request\"]\n* words(\"hello_world\"); // [\"hello\", \"world\"]\n* words(\"AIAgent\"); // [\"AI\", \"Agent\"]\n*/\nfunction words(input) {\n\tif (!input) return [];\n\tconst normalised = input.replace(SEPARATOR_PATTERN, \" \").replace(ACRONYM_BOUNDARY, \"$1 $2\").replace(CAMEL_BOUNDARY, \"$1 $2\").trim();\n\tif (!normalised) return [];\n\treturn normalised.split(WHITESPACE_RUN).filter(Boolean);\n}\n\n//#endregion\nexport { words as default };\n//# sourceMappingURL=words.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toCamelCase.ts\n/**\n* Convert a string to camelCase.\n*\n* @example\n* toCamelCase(\"hello-world\"); // \"helloWorld\"\n* toCamelCase(\"XMLHttpRequest\"); // \"xmlHttpRequest\"\n*/\nfunction toCamelCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(toSegment).join(\"\");\n}\nfunction toSegment(word, index) {\n\tif (index === 0) return word.toLowerCase();\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toCamelCase as default };\n//# sourceMappingURL=toCamelCase.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toSnakeCase.ts\n/**\n* Convert a string to snake_case (or any underscore-style with a\n* custom separator).\n*\n* @example\n* toSnakeCase(\"HelloWorld\"); // \"hello_world\"\n* toSnakeCase(\"AIAgent\"); // \"ai_agent\"\n*/\nfunction toSnakeCase(string, separator = \"_\", lowerAll = true) {\n\tif (!string) return \"\";\n\tconst tokens = words(string);\n\tif (!lowerAll) return tokens.join(separator);\n\treturn tokens.map((word) => word.toLowerCase()).join(separator);\n}\n\n//#endregion\nexport { toSnakeCase as default };\n//# sourceMappingURL=toSnakeCase.mjs.map","import toSnakeCase from \"./toSnakeCase.mjs\";\n\n//#region ../reinforcements/src/string/toKebabCase.ts\n/**\n* Convert a string to kebab-case.\n*\n* @example\n* toKebabCase(\"HelloWorld\"); // \"hello-world\"\n* toKebabCase(\"AIAgent\"); // \"ai-agent\"\n*/\nfunction toKebabCase(string, lowerAll = true) {\n\treturn toSnakeCase(string, \"-\", lowerAll);\n}\n\n//#endregion\nexport { toKebabCase as default };\n//# sourceMappingURL=toKebabCase.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toStudlyCase.ts\n/**\n* Convert a string to StudlyCase (PascalCase).\n*\n* @example\n* toStudlyCase(\"hello-world\"); // \"HelloWorld\"\n* toStudlyCase(\"ai_agent\"); // \"AiAgent\"\n*/\nfunction toStudlyCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(capitalize).join(\"\");\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toStudlyCase as default };\n//# sourceMappingURL=toStudlyCase.mjs.map","//#region ../reinforcements/src/utils/lazy.ts\nconst LAZY = Symbol(\"lazy\");\n/**\n* Wrap a value-producing function as a lazy reference. The producer\n* isn't invoked until `resolve()` is called; subsequent calls return the\n* same cached value.\n*\n* Useful for deferring expensive computations and for breaking circular\n* module dependencies — JavaScript closures capture variable bindings,\n* not values, so a `lazy(() => x)` callsite remains valid even when `x`\n* isn't yet defined at the moment the wrapper is created, as long as\n* it's defined by the time `.resolve()` runs.\n*\n* @example\n* const greeting = lazy(() => expensiveComputation());\n*\n* greeting.resolve(); // computes, caches, returns\n* greeting.resolve(); // returns cached value, no recomputation\n*/\nfunction lazy(producer) {\n\tlet isResolved = false;\n\tlet value;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!isResolved) {\n\t\t\t\tvalue = producer();\n\t\t\t\tisResolved = true;\n\t\t\t}\n\t\t\treturn value;\n\t\t},\n\t\treset() {\n\t\t\tisResolved = false;\n\t\t\tvalue = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn isResolved;\n\t\t},\n\t\tpeek() {\n\t\t\treturn isResolved ? value : void 0;\n\t\t}\n\t};\n}\n/**\n* Async variant of {@link lazy}: the producer returns a `Promise<T>`\n* which is cached after first invocation.\n*\n* @example\n* const user = lazy.async(() => fetchUser());\n*\n* await user.resolve(); // fetches\n* await user.resolve(); // returns same promise, no refetch\n*/\nlazy.async = function lazyAsync(producer) {\n\tlet started = false;\n\tlet promise;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!started) {\n\t\t\t\tpromise = producer();\n\t\t\t\tstarted = true;\n\t\t\t}\n\t\t\treturn promise;\n\t\t},\n\t\treset() {\n\t\t\tstarted = false;\n\t\t\tpromise = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn started;\n\t\t},\n\t\tpeek() {\n\t\t\treturn started ? promise : void 0;\n\t\t}\n\t};\n};\n/**\n* Build a pre-resolved lazy reference. Useful for tests and for API\n* symmetry where a `Lazy<T>` is expected.\n*\n* @example\n* const ref = lazy.from(42);\n*\n* ref.resolve(); // 42\n* ref.isResolved(); // true\n*/\nlazy.from = function lazyFrom(value) {\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve: () => value,\n\t\treset() {},\n\t\tisResolved: () => true,\n\t\tpeek: () => value\n\t};\n};\n/**\n* Type guard that returns `true` when `value` is a `Lazy<T>` or\n* `LazyAsync<T>` produced by `lazy()` / `lazy.async()`.\n*\n* @example\n* if (isLazy(value)) {\n* value.resolve();\n* }\n*/\nfunction isLazy(value) {\n\treturn value?.[LAZY] === true;\n}\n\n//#endregion\nexport { lazy as default, isLazy };\n//# sourceMappingURL=lazy.mjs.map","//#region ../reinforcements/src/utils/tap.ts\n/**\n* Run `sideEffect` against `value`, then return `value` unchanged.\n* Useful for inserting logging / instrumentation into a pipeline.\n*\n* @example\n* pipe(2, n => n + 1, tap.with(console.log), n => n * 10);\n* // logs 3, returns 30\n*/\nfunction tap(value, sideEffect) {\n\tsideEffect(value);\n\treturn value;\n}\n/**\n* Curried form: `tap.with(fn)` returns a pipeline-friendly\n* `(value) => value` that runs the side effect.\n*/\ntap.with = function tapWith(sideEffect) {\n\treturn (value) => {\n\t\tsideEffect(value);\n\t\treturn value;\n\t};\n};\n\n//#endregion\nexport { tap as default };\n//# sourceMappingURL=tap.mjs.map","import { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/helpers/get-field-value.ts\n/**\n* Get field value based on scope from rule options\n*\n* This utility extracts a field value from either the global context or sibling context\n* based on the `scope` option in the rule's context.\n*\n* @param rule - The contextual schema rule containing options with:\n* - `field` (or custom fieldKey): The field name to extract\n* - `scope` (optional): Either \"global\" (default) or \"sibling\"\n* @param context - The schema validation context containing allValues and parent\n* @param fieldKey - The key in rule.context.options that contains the field name (defaults to \"field\")\n*\n* @returns The value of the specified field from the appropriate source\n*\n* @example\n* // In a validation rule with scope support:\n* async validate(value: any, context) {\n* const otherFieldValue = getFieldValue(this, context);\n* // Extracts from context.allValues if scope is \"global\"\n* // Extracts from context.parent if scope is \"sibling\"\n* }\n*\n* @example\n* // Using a custom field key:\n* async validate(value: any, context) {\n* const compareValue = getFieldValue(this, context, \"compareField\");\n* // Looks for rule.context.options.compareField instead of .field\n* }\n*\n* @remarks\n* - **Global scope** (`scope: \"global\"`): Searches the entire input data (context.allValues)\n* - **Sibling scope** (`scope: \"sibling\"`): Searches only within the parent object (context.parent)\n* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., \"user.email\")\n*/\nfunction getFieldValue(rule, context, fieldKey = \"field\") {\n\tconst field = rule.context.options[fieldKey];\n\treturn get((rule.context.options.scope || \"global\") === \"sibling\" ? context.parent : context.allValues, field);\n}\n\n//#endregion\nexport { getFieldValue };\n//# sourceMappingURL=get-field-value.mjs.map","//#region ../seal/src/helpers/path-helpers.ts\n/**\n* Set the key path for nested validation\n*/\nconst setKeyPath = (path, key) => {\n\tif (!path) return key;\n\treturn `${path}.${key}`;\n};\n\n//#endregion\nexport { setKeyPath };\n//# sourceMappingURL=path-helpers.mjs.map","import { getSealConfig } from \"../config.mjs\";\n\n//#region ../seal/src/helpers/validation-helpers.ts\nconst VALID_RULE = { isValid: true };\n/**\n* Resolve a single attribute value through the full translation priority chain:\n* 1. attributesList[key] — developer direct text override (highest priority)\n* 2. translatedAttributes[key] — developer explicit translation key\n* 3. translator(rawValue) — auto-translate the raw value (fallback)\n*\n* Use this in rule bodies when you need per-item translation\n* (e.g. translating each enum value before joining them).\n*\n* @example\n* // Translate each enum value individually then join\n* const enumList = enumValues\n* .map(v => resolveTranslation(String(v), String(v), this, context))\n* .join(\", \");\n* this.context.translationParams.enumList = enumList;\n*/\nconst resolveTranslation = ({ key, rawValue, rule, context }) => {\n\tconst translator = getSealConfig().translateAttribute;\n\tconst direct = rule.context.attributesList?.[key];\n\tif (direct && typeof direct === \"string\") return direct;\n\tif (!translator) return String(rawValue ?? key);\n\tconst transKey = rule.context.translatedAttributes?.[key];\n\tif (transKey) return translator({\n\t\tattribute: transKey,\n\t\tcontext,\n\t\trule\n\t});\n\treturn translator({\n\t\tattribute: String(rawValue ?? key),\n\t\tcontext,\n\t\trule\n\t});\n};\nconst resolveAttribute = resolveTranslation;\nconst invalidRule = (rule, context) => {\n\tconst translatableWithInput = {\n\t\tinput: context.key || \"schema\",\n\t\t...rule.context.translatableParams\n\t};\n\tconst resolvedParams = Object.fromEntries(Object.entries(translatableWithInput).map(([key, rawValue]) => [key, resolveAttribute({\n\t\tkey,\n\t\trawValue,\n\t\trule,\n\t\tcontext\n\t})]));\n\tconst attributes = {\n\t\tpath: context.path,\n\t\tkey: context.key,\n\t\tvalue: context.value,\n\t\t...rule.context.translationParams,\n\t\t...resolvedParams,\n\t\tinput: resolvedParams.input\n\t};\n\treturn {\n\t\tisValid: false,\n\t\terror: (rule.context.errorMessage || rule.errorMessage || context.translateRule?.({\n\t\t\trule,\n\t\t\tcontext,\n\t\t\tattributes\n\t\t}) || rule.defaultErrorMessage).replace(/:([a-zA-Z_]+)/g, (match, key) => key in attributes ? String(attributes[key]) : match),\n\t\tinput: attributes.input,\n\t\tpath: context.path\n\t};\n};\n\n//#endregion\nexport { VALID_RULE, invalidRule, resolveTranslation };\n//# sourceMappingURL=validation-helpers.mjs.map","//#region ../supportive-is/src/index.ts\n/**\n* Determine whether the given value is a number whatever if its data type is String or Number\n*/\nfunction isNumeric(value) {\n\treturn /^[+-]?\\d+(\\.\\d+)?([Ee][+-]?\\d+)?$/.test(String(value));\n}\n/**\n* Check if the given value is int\n*/\nconst isInt = (value) => typeof value === \"number\" && Number.isInteger(value);\n/**\n* Check if the given value is float\n*/\nconst isFloat = (value) => typeof value === \"number\" && Number.isFinite(value) && /^-?\\d+\\.\\d+$/.test(String(value));\n/**\n* Check if the given value is a regex\n*/\nconst isRegex = (value) => Boolean(value) && value.constructor?.name === \"RegExp\";\n/**\n* Check if the given value is an object\n*/\nconst isObject = (value) => Boolean(value) && typeof value === \"object\";\n/**\n* Check if the given value is a plain object\n*/\nconst isPlainObject = (value) => {\n\tif (!value || typeof value !== \"object\") return false;\n\tif (Object.getPrototypeOf(value) === null) return true;\n\treturn value.constructor?.name === \"Object\";\n};\n/**\n* Check if the given value is validId\n*/\nconst isValidId = (value) => Boolean(value && /^[A-Za-z][\\w\\-:.]*$/.test(String(value)));\n/**\n* Check if the given value is a form element\n*/\nconst isFormElement = (value) => typeof HTMLFormElement === \"undefined\" ? false : value instanceof HTMLFormElement;\n/**\n* Check if the given value is a form data\n*/\nconst isFormData = (value) => value instanceof FormData;\n/**\n* Check if the given value is iterable\n*/\nconst isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === \"function\";\n/**\n* Check if the given value is a scalar value\n*/\nconst isScalar = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"symbol\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a string\n*/\nconst isString = (value) => typeof value === \"string\";\n/**\n* Check if the given value is a pr value\n*/\nconst isPrimitive = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a promise\n*/\nconst isPromise = (value) => Boolean(value) && value instanceof Promise;\n/**\n* Check if the given value is a date\n*/\nconst isDate = (value) => Boolean(value) && typeof value === \"object\" && value instanceof Date;\n/**\n* Check if the given value is a generator\n*/\nconst isGenerator = (value) => Boolean(value) && typeof value === \"object\" && typeof value.next === \"function\" && typeof value[Symbol.iterator] === \"function\" && value[Symbol.iterator]() === value;\n/**\n* Check if the given value is empty\n* Zero does not considered empty\n* Empty object is considered empty\n* Empty array is considered empty\n*/\nconst isEmpty = (value) => {\n\tif ([\n\t\t0,\n\t\ttrue,\n\t\tfalse\n\t].includes(value)) return false;\n\tif ([\n\t\t\"\",\n\t\tnull,\n\t\tvoid 0\n\t].includes(value)) return true;\n\tif (typeof value === \"number\" && Number.isNaN(value)) return false;\n\tif (value instanceof Date) return false;\n\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\tif (typeof value === \"object\" && !Array.isArray(value) && typeof value[Symbol.iterator] !== \"function\") return Object.keys(value).length === 0;\n\tif (isIterable(value)) return value.length === 0;\n\tif (isNumeric(value)) return false;\n\treturn true;\n};\n/**\n* Check if the given value is a valid json\n*/\nconst isJson = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\tif (![\"[\", \"{\"].includes(value?.[0])) return false;\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is valid url\n*/\nconst isUrl = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\ttry {\n\t\tconst url = new URL(value);\n\t\tif (![\"http:\", \"https:\"].includes(url.protocol)) return false;\n\t\tconst hostname = url.hostname;\n\t\tif (!hostname.includes(\".\")) return false;\n\t\tif (hostname.split(\".\").some((label) => label.length === 0)) return false;\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is a valid email\n*/\nconst isEmail = (value) => typeof value === \"string\" && /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(value);\n/**\n* Check if current user is opening from mobile\n*/\nconst isMobile = {\n\t/**\n\t* Determine whether the current visitor is opening from an Android device\n\t*/\n\tandroid: () => navigator.userAgent.match(/Android/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ios device\n\t*/\n\tios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an Iphone\n\t*/\n\tiphone: () => navigator.userAgent.match(/iPhone/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipad\n\t*/\n\tipad: () => navigator.userAgent.match(/iPad/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipod\n\t*/\n\tipod: () => navigator.userAgent.match(/iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an windows mobile\n\t*/\n\twindows: () => navigator.userAgent.match(/IEMobile/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from mobile whatever its type\n\t*/\n\tany: () => isMobile.android() || isMobile.ios() || isMobile.windows()\n};\n/**\n* Determine if current user is opening from macOS\n*/\nconst isMac = () => navigator.userAgent.match(/mac/i) !== null;\n/**\n* Check if current browser is the given name\n*/\nconst isBrowser = (browser) => {\n\treturn {\n\t\tchrome: isChrome(),\n\t\tfirefox: isFirefox(),\n\t\topera: isOpera(),\n\t\tedge: isEdge(),\n\t\tie: isIE(),\n\t\tsafari: isSafari()\n\t}[browser.toLowerCase()] === true;\n};\n/**\n* Check if current browser is chrome browser\n*/\nconst isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n/**\n* Check if current browser is firefox\n*/\nconst isFirefox = () => typeof window.InstallTrigger !== \"undefined\";\n/**\n* Check if current browser is safari\n*/\nconst isSafari = () => {\n\tif (typeof navigator === \"undefined\") return false;\n\tconst ua = navigator.userAgent || \"\";\n\treturn /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);\n};\n/**\n* Check if current browser is opera\n*/\nconst isOpera = () => {\n\tif (typeof window === \"undefined\") return false;\n\tconst w = window;\n\treturn !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== \"undefined\" && navigator.userAgent.indexOf(\" OPR/\") >= 0;\n};\n/**\n* Check if current browser is internet explorer\n*/\nconst isIE = () => !!document.documentMode;\n/**\n* Check if current browser is edge\n*/\nconst isEdge = () => {\n\treturn !!!document.documentMode && !!window.StyleMedia;\n};\n/**\n* Determine whether the current visitor is opening from desktop\n*/\nconst isDesktop = () => !isMobile.any();\n/**\n* A simple lightweight library to validate values against certain types of data\n* For full documentation on github\n* Repo: https://github.com/hassanzohdy/supportive-is\n*\n* First released 01/12/2017\n* Licensed under MIT (http://opensource.org/licenses/MIT)\n*/\nconst Is = {\n\t/**\n\t* Determine whether the given value is a number whatever if its data type is String or Number\n\t*/\n\tnumeric: isNumeric,\n\t/**\n\t* Determine whether the given value is an integer and its data type is number\n\t* As Number.isInteger considers 1.0 to be valid integer, regex will be used instead\n\t*/\n\tint: isInt,\n\t/**\n\t* Determine whether the given value is a float number and its data type is number\n\t*/\n\tfloat: isFloat,\n\t/**\n\t* Determine whether the given value is a regular expression\n\t*/\n\tregex: isRegex,\n\t/**\n\t* Determine whether the given value is an object\n\t*/\n\tobject: isObject,\n\t/**\n\t* Determine whether the given value is a plain object\n\t*/\n\tplainObject: isPlainObject,\n\t/**\n\t* Determine whether the given value is an array\n\t*/\n\tarray: Array.isArray,\n\t/**\n\t* Determine whether the given value is valid html attribute `id`\n\t*/\n\tvalidHtmlId: isValidId,\n\t/**\n\t* determine if the given value is an instance of form element\n\t*/\n\tformElement: isFormElement,\n\t/**\n\t* @alias formElement\n\t*/\n\tform: isFormElement,\n\t/**\n\t* determine if the given value is an instance of form data\n\t*/\n\tformData: isFormData,\n\t/**\n\t* Determine whether the given value is iterable\n\t*/\n\titerable: isIterable,\n\t/**\n\t* Determine whether the given value is a scalar\n\t* Scalar types are strings, booleans, integers and\n\t*/\n\tscalar: isScalar,\n\t/**\n\t* Determine if the given value is a primitive value\n\t*/\n\tprimitive: isPrimitive,\n\t/**\n\t* Determine whether the given value is a promise\n\t*/\n\tpromise: isPromise,\n\t/**\n\t* Determine whether the given value is a date\n\t*/\n\tdate: isDate,\n\t/**\n\t* Determine whether the given value is a generator\n\t*/\n\tgenerator: isGenerator,\n\t/**\n\t* Determine whether the given value if an empty\n\t* This can be validated against any type of values\n\t* undefined or nullable values will be considered empty\n\t* Objects that doesn't have any properties will be considered empty\n\t* Arrays and Strings will be empty based on its length\n\t* The 0 'Zero\" number will not be considered empty\n\t*/\n\tempty: isEmpty,\n\t/**\n\t* Determine whether the given value is a valid json string\n\t*/\n\tjson: isJson,\n\t/**\n\t* Determine whether the given value is a valid url\n\t*/\n\turl: isUrl,\n\t/**\n\t* Determine whether the given value is a valid email\n\t*/\n\temail: isEmail,\n\t/**\n\t* Determine the current visitor is opening from mobile\n\t* Please Note this method depends on the user agent\n\t*/\n\tmobile: isMobile,\n\t/**\n\t* Determine if current user is opening from macOS\n\t*/\n\tmac: isMac,\n\t/**\n\t* Determine whether the current visitor is opening from desktop\n\t*/\n\tdesktop: isDesktop,\n\t/**\n\t* Check if the current browser is the given name\n\t* To detect browser version as well, pass the version number as the second argument\n\t*/\n\tbrowser: isBrowser,\n\tchrome: isChrome,\n\tfirefox: isFirefox,\n\tsafari: isSafari,\n\topera: isOpera,\n\tie: isIE,\n\tedge: isEdge\n};\n\n//#endregion\nexport { Is, Is as default, isBrowser, isChrome, isDate, isDesktop, isEdge, isEmail, isEmpty, isFirefox, isFloat, isFormData, isFormElement, isGenerator, isIE, isInt, isIterable, isJson, isMac, isMobile, isNumeric, isObject, isOpera, isPlainObject, isPrimitive, isPromise, isRegex, isSafari, isScalar, isString, isUrl, isValidId };\n//# sourceMappingURL=index.mjs.map","import { isEmpty, isObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/helpers/is-empty-value.ts\nfunction isEmptyValue(value) {\n\treturn isEmpty(value) && !isObject(value);\n}\n\n//#endregion\nexport { isEmptyValue };\n//# sourceMappingURL=is-empty-value.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/core/required.ts\n/**\n* Required rule - value must be present and not empty\n*/\nconst requiredRule = {\n\tname: \"required\",\n\tdefaultErrorMessage: \"The :input is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present rule - key must exist in the data, but value can be anything\n* (empty string, null are all valid as long as the key exists)\n*/\nconst presentRule = {\n\tname: \"present\",\n\tdefaultErrorMessage: \"The :input field is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (value === void 0) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentRule, requiredRule };\n//# sourceMappingURL=required.mjs.map","//#region ../seal/src/standard-schema/map-result.ts\n/**\n* Maps a Seal ValidationResult to a Standard Schema result shape.\n*\n* Seal error paths are dot-notation strings (e.g. \"address.city\").\n* Standard Schema expects an array of path segments: [{ key: \"address\" }, { key: \"city\" }].\n*\n* @example\n* ```ts\n* const result = await validator.validate(value, context);\n* return mapToStandardResult(result);\n* // Success → { value: <data> }\n* // Failure → { issues: [{ message: \"...\", path: [{ key: \"...\" }] }] }\n* ```\n*/\nfunction mapToStandardResult(result) {\n\tif (result.isValid) return { value: result.data };\n\treturn { issues: result.errors.map((e) => ({\n\t\tmessage: e.error,\n\t\tpath: e.input ? e.input.split(\".\").map((key) => ({ key })) : void 0\n\t})) };\n}\n\n//#endregion\nexport { mapToStandardResult };\n//# sourceMappingURL=map-result.mjs.map","import { validate } from \"../factory/validate.mjs\";\nimport { VALID_RULE, invalidRule } from \"../helpers/validation-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { requiredRule } from \"../rules/core/required.mjs\";\nimport { mapToStandardResult } from \"../standard-schema/map-result.mjs\";\nimport { clone } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/validators/base-validator.ts\n/**\n* Base validator class - foundation for all validators\n*/\nvar BaseValidator = class {\n\tconstructor() {\n\t\tthis.rules = [];\n\t\tthis.mutators = [];\n\t\tthis.shouldOmit = false;\n\t\tthis.isNullable = false;\n\t\tthis.isMutable = false;\n\t\tthis.hasCatch = false;\n\t\tthis.isOptional = false;\n\t\tthis.requiredRule = this.createRule(requiredRule);\n\t\tthis.dataTransformers = [];\n\t\tthis.attributesText = {};\n\t\tthis.translatedAttributes = {};\n\t}\n\t/**\n\t* Mark the validator as mutable\n\t*/\n\tget mutable() {\n\t\tthis.isMutable = true;\n\t\treturn this;\n\t}\n\t/**\n\t* Mark the validator as immutable\n\t*/\n\tget immutable() {\n\t\tthis.isMutable = false;\n\t\treturn this;\n\t}\n\t/**\n\t* Get the instance to apply changes to.\n\t* By default (immutable), returns a clone so the original is unchanged.\n\t* When `.mutable` is set, returns `this` to mutate in place.\n\t*/\n\tget instance() {\n\t\treturn this.isMutable ? this : this.clone();\n\t}\n\t/**\n\t* Get the default value\n\t* Supports lazy evaluation via callbacks\n\t*/\n\tgetDefaultValue() {\n\t\treturn typeof this.defaultValue === \"function\" ? this.defaultValue() : this.defaultValue;\n\t}\n\t/**\n\t* Allow null as a valid value.\n\t*\n\t* Brands the return type with `{ isNullable: true }` so `Infer<>` widens\n\t* the inferred output to include `| null`.\n\t*/\n\tnullable() {\n\t\tconst instance = this.instance;\n\t\tinstance.isNullable = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* Explicitly disallow null values after calling nullable.\n\t*\n\t* Brands the return type with `{ isNullable: false }` to cancel any prior\n\t* `.nullable()` at the type level.\n\t*/\n\tnotNullable() {\n\t\tconst instance = this.instance;\n\t\tinstance.isNullable = false;\n\t\treturn instance;\n\t}\n\t/**\n\t* Add transformer with optional options\n\t*\n\t* @param transform - The transformer callback function\n\t* @param options - Optional options to pass to the transformer\n\t*\n\t* @example\n\t* ```ts\n\t* // Without options\n\t* v.date().addTransformer(data => data.toISOString())\n\t*\n\t* // With options\n\t* v.date().addTransformer(\n\t* (data, { options }) => dayjs(data).format(options.format),\n\t* { format: 'YYYY-MM-DD' }\n\t* )\n\t* ```\n\t*/\n\taddTransformer(transform, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableTransformer(transform, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add transformer with optional options\n\t*\n\t* @param transform - The transformer callback function\n\t* @param options - Optional options to pass to the transformer\n\t*\n\t* @example\n\t* ```ts\n\t* // Without options\n\t* v.date().addTransformer(data => data.toISOString())\n\t*\n\t* // With options\n\t* v.date().addTransformer(\n\t* (data, { options }) => dayjs(data).format(options.format),\n\t* { format: 'YYYY-MM-DD' }\n\t* )\n\t* ```\n\t*/\n\taddMutableTransformer(transform, options = {}) {\n\t\tthis.dataTransformers.push({\n\t\t\ttransform,\n\t\t\toptions\n\t\t});\n\t}\n\t/**\n\t* Transform the output value - simple one-time transformation\n\t*\n\t* @param callback - Simple callback receiving data and context\n\t*\n\t* @example\n\t* ```ts\n\t* // Simple transformation\n\t* v.string().outputAs(data => data.toUpperCase())\n\t*\n\t* // With context\n\t* v.string().outputAs((data, context) => {\n\t* console.log(`Transforming ${context.path}`);\n\t* return data.toLowerCase();\n\t* })\n\t* ```\n\t*/\n\toutputAs(callback) {\n\t\treturn this.addTransformer((data, { context }) => callback(data, context));\n\t}\n\t/**\n\t* Transform output to JSON string\n\t*\n\t* Works with any validator type (string, number, date, object, array, etc.)\n\t*\n\t* @param indent - Optional indentation for pretty printing (default: 0 for compact)\n\t*\n\t* @example\n\t* ```ts\n\t* // Compact JSON\n\t* v.object({ name: v.string() }).toJSON()\n\t* // Output: '{\"name\":\"John\"}'\n\t*\n\t* // Pretty-printed JSON\n\t* v.array(v.object({...})).toJSON(2)\n\t* // Output:\n\t* // [\n\t* // {\n\t* // \"name\": \"John\"\n\t* // }\n\t* // ]\n\t*\n\t* // Works with any type\n\t* v.string().toJSON() // '\"hello\"'\n\t* v.number().toJSON() // '42'\n\t* v.date().toJSON() // '\"2024-10-26T00:00:00.000Z\"'\n\t* ```\n\t*\n\t* @category Transformer\n\t*/\n\ttoJSON(indent) {\n\t\treturn this.addTransformer((data, { options }) => JSON.stringify(data, null, options.indent), { indent: indent ?? 0 });\n\t}\n\t/**\n\t* Start data transformation pipeline\n\t* Context is passed at runtime, not stored\n\t*/\n\tasync startTransformationPipeline(data, context) {\n\t\tfor (const transformer of this.dataTransformers) data = await transformer.transform(data, {\n\t\t\toptions: transformer.options,\n\t\t\tcontext\n\t\t});\n\t\treturn data;\n\t}\n\t/**\n\t* Set attributes text to be replaced on translations\n\t* If the value is an object, it will be used as the attributes list for the rule\n\t* If the value is a string, it will be used as the attributes list for the rule\n\t*\n\t* @example\n\t* v.string().attributes({\n\t* name: \"Name\",\n\t* email: \"Email\",\n\t* });\n\t* // Example 2: Add custom attributes for matches\n\t* v.string().matches(\"confirmPassword\").attributes({\n\t* matches: {\n\t* confirmPassword: \"Confirm Password\",\n\t* },\n\t* });\n\t*/\n\tattributes(attributes) {\n\t\tconst instance = this.instance;\n\t\tfor (const key in attributes) instance.attributesText[key] = attributes[key];\n\t\treturn instance;\n\t}\n\t/**\n\t* Define a lazy getter property for each attribute in the given object and use the config attribute translator\n\t*/\n\ttransAttributes(attributes) {\n\t\tconst instance = this.instance;\n\t\tfor (const key in attributes) instance.translatedAttributes[key] = attributes[key];\n\t\treturn instance;\n\t}\n\t/**\n\t* Add description to the validator\n\t*/\n\tdescribe(description) {\n\t\tconst instance = this.instance;\n\t\tinstance.description = description;\n\t\treturn instance;\n\t}\n\t/**\n\t* Check if this validator can handle the given value's type\n\t* Override this in specific validators to enable type-based routing in union validators\n\t*\n\t* Default: returns true (validator will attempt to validate any type)\n\t*\n\t* @param value - The value to check\n\t* @returns True if this validator can handle this type\n\t*\n\t* @example\n\t* ```ts\n\t* // StringValidator\n\t* public matchesType(value: any): boolean {\n\t* return typeof value === 'string';\n\t* }\n\t*\n\t* // Custom FileValidator\n\t* public matchesType(value: any): boolean {\n\t* return value instanceof UploadedFile;\n\t* }\n\t* ```\n\t*/\n\tmatchesType(_value) {\n\t\treturn true;\n\t}\n\t/**\n\t* Create a copy of this validator with the same configuration\n\t* Copies all rules, mutators, transformers, default values, and settings\n\t*\n\t* @returns A new validator instance with copied configuration\n\t*\n\t* @example\n\t* ```ts\n\t* // Create reusable validator templates\n\t* const baseString = v.string().required().trim().min(3);\n\t* const emailField = baseString.clone().email();\n\t* const usernameField = baseString.clone().alphanumeric().max(20);\n\t*\n\t* // Works with all validators\n\t* const positiveInt = v.int().positive().required();\n\t* const ageField = positiveInt.clone().min(18).max(120);\n\t* ```\n\t*/\n\tclone() {\n\t\tconst Constructor = this.constructor;\n\t\tconst cloned = Object.create(Constructor.prototype);\n\t\tcloned.rules = [...this.rules];\n\t\tcloned.mutators = [...this.mutators];\n\t\tcloned.dataTransformers = [...this.dataTransformers];\n\t\tcloned.defaultValue = this.defaultValue;\n\t\tcloned.shouldOmit = this.shouldOmit;\n\t\tcloned.description = this.description;\n\t\tcloned.attributesText = { ...this.attributesText };\n\t\tcloned.isNullable = this.isNullable;\n\t\tcloned.isOptional = this.isOptional;\n\t\tcloned.requiredRule = this.requiredRule;\n\t\tcloned.catchValue = this.catchValue;\n\t\tcloned.hasCatch = this.hasCatch;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @deprecated This method is no longer needed and does nothing.\n\t* Empty values are now automatically skipped for validation rules by default.\n\t* Only presence validators (required, present, etc.) will check empty values.\n\t* You can safely remove this call from your code.\n\t*/\n\tignoreEmptyValue(_ignoreEmptyValue = true) {\n\t\treturn this;\n\t}\n\t/**\n\t* Omit this field from the validated data output\n\t*\n\t* Field will still be validated but not included in the final result.\n\t* Useful for confirmation fields, captcha, terms acceptance, etc.\n\t*\n\t* @example\n\t* ```ts\n\t* v.object({\n\t* password: v.string().required(),\n\t* confirmPassword: v.string().required().sameAs(\"password\").omit(),\n\t* acceptTerms: v.boolean().required().omit(),\n\t* });\n\t* // Output: { password: \"...\" }\n\t* // confirmPassword and acceptTerms validated but omitted\n\t* ```\n\t*/\n\tomit() {\n\t\tconst instance = this.instance;\n\t\tinstance.shouldOmit = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* @alias omit\n\t*/\n\texclude() {\n\t\treturn this.omit();\n\t}\n\t/**\n\t* Check if this field should be omitted from the output\n\t*/\n\tisOmitted() {\n\t\treturn this.shouldOmit;\n\t}\n\t/**\n\t* Add rule to the validator\n\t*/\n\taddRule(rule, errorMessage, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableRule(rule, errorMessage, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Set the required-condition rule for this field.\n\t*\n\t* Unlike addRule(), this does NOT push to rules[]. The rule is stored in the\n\t* dedicated `requiredRule` slot and is prepended to the validation pipeline\n\t* at runtime. Only one required rule can be active per field — this replaces\n\t* any previously set required rule.\n\t*\n\t* Also marks the field as not optional (isOptional = false).\n\t*\n\t* @example\n\t* ```ts\n\t* // Used internally by required(), requiredIf(), requiredWith(), etc.\n\t* BaseValidator.prototype.required = function(msg) {\n\t* return this.setRequiredRule(requiredRule, msg);\n\t* };\n\t* ```\n\t*/\n\tsetRequiredRule(rule, errorMessage, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.isOptional = false;\n\t\tinstance.requiredRule = instance.createRule(rule, errorMessage, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add mutable rule\n\t*/\n\taddMutableRule(rule, errorMessage, options = {}) {\n\t\tconst newRule = this.createRule(rule, errorMessage, options);\n\t\tthis.rules.push(newRule);\n\t\treturn newRule;\n\t}\n\t/**\n\t* Create new rule\n\t*/\n\tcreateRule(rule, errorMessage, options = {}) {\n\t\tconst newRule = {\n\t\t\t...clone(rule),\n\t\t\tcontext: {\n\t\t\t\terrorMessage,\n\t\t\t\toptions,\n\t\t\t\tattributesList: this.attributesText,\n\t\t\t\ttranslatedAttributes: this.translatedAttributes,\n\t\t\t\ttranslationParams: {},\n\t\t\t\ttranslatableParams: {}\n\t\t\t}\n\t\t};\n\t\tif (errorMessage) newRule.errorMessage = errorMessage;\n\t\tif (rule.sortOrder === void 0) newRule.sortOrder = this.rules.length + 1;\n\t\treturn newRule;\n\t}\n\t/**\n\t* Use a custom or pre-built validation rule\n\t*\n\t* @param rule - The validation rule to apply\n\t* @param options - Rule options including errorMessage and any rule-specific options\n\t*\n\t* @example\n\t* ```ts\n\t* import { hexColorRule } from \"@warlock.js/seal\";\n\t*\n\t* v.string().useRule(hexColorRule, { errorMessage: \"Invalid color\" });\n\t* ```\n\t*\n\t* @example\n\t* ```ts\n\t* // With rule options\n\t* v.string().useRule(myCustomRule, {\n\t* customOption: true,\n\t* errorMessage: \"Custom validation failed\"\n\t* });\n\t* ```\n\t*/\n\tuseRule(rule, options) {\n\t\tconst { errorMessage, ...ruleOptions } = options || {};\n\t\treturn this.addRule(rule, errorMessage, ruleOptions);\n\t}\n\t/**\n\t* Define custom rule\n\t*/\n\trefine(callback) {\n\t\treturn this.addRule({\n\t\t\tname: \"custom\",\n\t\t\tasync validate(value, context) {\n\t\t\t\tconst result = await callback(value, context);\n\t\t\t\tif (result) {\n\t\t\t\t\tthis.context.errorMessage = result;\n\t\t\t\t\treturn invalidRule(this, context);\n\t\t\t\t}\n\t\t\t\treturn VALID_RULE;\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Add mutator to the validator\n\t*/\n\taddMutator(mutator, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableMutator(mutator, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add mutable mutator\n\t*/\n\taddMutableMutator(mutator, options = {}) {\n\t\tthis.mutators.push({\n\t\t\tmutate: mutator,\n\t\t\tcontext: {\n\t\t\t\toptions,\n\t\t\t\tctx: {}\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Set default value for the field. The default is used when the input is\n\t* absent (`undefined`); it then flows through the rule pipeline.\n\t*\n\t* Brands the return type with `{ hasDefault: true }` so `Infer<>` treats\n\t* the field as guaranteed-present even when chained with `.optional()`.\n\t*/\n\tdefault(value) {\n\t\tconst instance = this.instance;\n\t\tinstance.defaultValue = value;\n\t\treturn instance;\n\t}\n\t/**\n\t* Fallback to a value when validation fails.\n\t*\n\t* Complementary to `.default()`: `.default(x)` fires when input is **absent**,\n\t* `.catch(y)` fires when input is **present but invalid**. Combine them when\n\t* you want both behaviours: `.optional().default(x).catch(y)`.\n\t*\n\t* The fallback can be a value or a callback `(errors, originalInput) => fallback`.\n\t* The callback variant is the only side-channel for the swallowed errors —\n\t* use it to log/alert before the fallback substitutes.\n\t*\n\t* Brands the return type with `{ hasCatch: true }` so `Infer<>` treats the\n\t* field as guaranteed-present (the catch ensures a value will always exist).\n\t*\n\t* **Scope (v1).** Catch is honoured for **leaf validators** (string, number,\n\t* boolean, date, …) and for fields inside containers. It is a **no-op on\n\t* container validators themselves** (`v.object`, `v.array`, `v.record`,\n\t* `v.tuple`, `v.discriminatedUnion`) — those use their own iteration logic\n\t* that bypasses the catch hook in `BaseValidator.validate()`.\n\t*\n\t* @example\n\t* ```ts\n\t* v.int().min(0).catch(3) // bad number → 3\n\t* v.string().in([\"us\", \"eu\"]).catch(\"us\") // unknown enum → \"us\"\n\t* v.string().catch((errors, input) => {\n\t* console.warn(`bad user value: ${JSON.stringify(input)}`, errors);\n\t* return \"anonymous\";\n\t* })\n\t* ```\n\t*/\n\tcatch(fallback) {\n\t\tconst instance = this.instance;\n\t\tinstance.catchValue = fallback;\n\t\tinstance.hasCatch = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* Mutate the data\n\t*/\n\tasync mutate(data, context) {\n\t\tlet mutatedData = data;\n\t\tfor (const mutator of this.mutators) {\n\t\t\tmutator.context.ctx = context;\n\t\t\tmutatedData = await mutator.mutate(mutatedData, mutator.context);\n\t\t}\n\t\treturn mutatedData;\n\t}\n\t/**\n\t* Set the label for the validator that will be matching the :input attribute\n\t*/\n\tlabel(label) {\n\t\tconst instance = this.instance;\n\t\tinstance.attributesText.input = label;\n\t\treturn instance;\n\t}\n\t/**\n\t* Validate the data\n\t*/\n\tasync validate(data, context) {\n\t\tif (data === null && this.isNullable) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: null\n\t\t};\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst errors = [];\n\t\tlet isValid = true;\n\t\tconst isFirstErrorOnly = context.configurations?.firstErrorOnly ?? true;\n\t\tconst isEmpty = isEmptyValue(valueForRules);\n\t\tconst skipEmptyRules = this.isOptional ? valueForRules === void 0 : isEmpty;\n\t\tconst rulesToRun = this.requiredRule ? [this.requiredRule, ...this.rules] : this.rules;\n\t\tfor (const rule of rulesToRun) {\n\t\t\tif ((rule.requiresValue ?? true) && skipEmptyRules) continue;\n\t\t\tthis.setRuleAttributesList(rule);\n\t\t\tconst result = await rule.validate(mutatedData, context);\n\t\t\tif (result.isValid === false) {\n\t\t\t\tisValid = false;\n\t\t\t\terrors.push({\n\t\t\t\t\ttype: rule.name,\n\t\t\t\t\terror: result.error,\n\t\t\t\t\tinput: result.path ?? context.path\n\t\t\t\t});\n\t\t\t\tif (isFirstErrorOnly) break;\n\t\t\t}\n\t\t}\n\t\tconst result = {\n\t\t\tisValid,\n\t\t\terrors,\n\t\t\tdata: mutatedData !== void 0 ? await this.startTransformationPipeline(mutatedData, context) : void 0\n\t\t};\n\t\tif (result.isValid === false && this.hasCatch) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: typeof this.catchValue === \"function\" ? await this.catchValue(result.errors, data) : this.catchValue\n\t\t};\n\t\treturn result;\n\t}\n\t/**\n\t* Set rule attributes list\n\t*/\n\tsetRuleAttributesList(rule) {\n\t\trule.context.attributesList = typeof this.attributesText[rule.name] === \"object\" ? this.attributesText[rule.name] : this.attributesText;\n\t}\n\t/**\n\t* Standard Schema V1 compliance.\n\t*\n\t* Allows this validator to be used with any Standard Schema-aware library\n\t* (OpenAI structured outputs, LangGraph, TanStack Form, Conform, Valibot adapters, etc.)\n\t* without extra adapters.\n\t*\n\t* Delegates to the `validate()` factory so all `configureSeal()` options\n\t* (translations, firstErrorOnly) are picked up automatically at call time.\n\t*\n\t* Includes Standard JSON Schema support via `jsonSchema.input()` / `jsonSchema.output()`.\n\t*\n\t* ## How Standard Schema libraries consume this\n\t*\n\t* You pass the **schema object itself** to the library — they internally read\n\t* `schema[\"~standard\"]`. Do NOT pass `schema[\"~standard\"]` directly.\n\t*\n\t* @example\n\t* ```ts\n\t* const schema = v.object({ name: v.string().required() });\n\t*\n\t* // TanStack Form — pass schema, library reads [\"~standard\"] internally\n\t* const form = useForm({ validators: { onChange: schema } });\n\t*\n\t* // Conform (Remix) — same pattern\n\t* const [form] = useForm({ onValidate({ formData }) {\n\t* return parseWithStandardSchema(formData, { schema });\n\t* }});\n\t*\n\t* // Direct validation (lower level — most apps don't need this)\n\t* const result = await schema[\"~standard\"].validate({ name: \"Hasan\" });\n\t* // → { value: { name: \"Hasan\" } } on success\n\t* // → { issues: [{ message: \"...\", path: [{ key: \"name\" }] }] } on failure\n\t*\n\t* // JSON Schema for OpenAI / LangChain tool calling\n\t* const parameters = schema[\"~standard\"].jsonSchema.input({ target: \"openai-strict\" });\n\t* // → { type: \"object\", properties: {...}, required: [...], additionalProperties: false }\n\t* ```\n\t*\n\t* @note Cross-field rules (sameAs, requiredIf, requiredWith) rely on sibling values\n\t* available in the full validation context. When called on a standalone scalar validator,\n\t* sibling data is absent and those rules will not evaluate correctly.\n\t* Always call on the parent ObjectValidator for full-payload validation.\n\t*/\n\tget [\"~standard\"]() {\n\t\treturn {\n\t\t\tversion: 1,\n\t\t\tvendor: \"seal\",\n\t\t\ttypes: void 0,\n\t\t\tvalidate: async (value) => {\n\t\t\t\treturn mapToStandardResult(await validate(this, value));\n\t\t\t},\n\t\t\tjsonSchema: {\n\t\t\t\tinput: (options) => this.toJsonSchema(options.target),\n\t\t\t\toutput: (options) => this.toJsonSchema(options.target)\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Generate a JSON Schema representation of this validator.\n\t*\n\t* Supports targets: `\"draft-2020-12\"` (default), `\"draft-07\"`, `\"openapi-3.0\"`.\n\t*\n\t* Subclasses override this to describe their specific constraints.\n\t* The base implementation returns `{}` (permissive — accepts anything),\n\t* which is correct for validators with no representable JSON Schema constraints.\n\t*\n\t* @note Rules that cannot be expressed in JSON Schema are silently omitted:\n\t* - Cross-field rules: sameAs, requiredIf, requiredWith, requiredWithout\n\t* - Custom callbacks: refine()\n\t* - Framework-specific runtime rules (core/cascade plugins)\n\t* These rules still run normally at validation time — only absent from JSON Schema.\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().min(3).max(50).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", minLength: 3, maxLength: 50 }\n\t*\n\t* v.object({ name: v.string().required(), age: v.int().optional() })\n\t* .toJsonSchema(\"draft-07\")\n\t* // → { type: \"object\", properties: { name: { type: \"string\" }, age: { type: \"integer\" } }, required: [\"name\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\treturn {};\n\t}\n};\n\n//#endregion\nexport { BaseValidator };\n//# sourceMappingURL=base-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/any-validator.ts\n/**\n* Any validator - accepts any value\n*/\nvar AnyValidator = class extends BaseValidator {\n\tconstructor(..._args) {\n\t\tsuper(..._args);\n\t\tthis.requiredRule = null;\n\t\tthis.isOptional = true;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Any validator accepts anything. In JSON Schema, an empty object `{}`\n\t* is the permissive schema that accepts any valid JSON value.\n\t*\n\t* @example\n\t* ```ts\n\t* v.any().toJsonSchema(\"draft-2020-12\")\n\t* // → {}\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {};\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { AnyValidator };\n//# sourceMappingURL=any-validator.mjs.map","import { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/mutators/array-mutators.ts\n/** Reverse array order */\nconst flipArrayMutator = async (value) => {\n\treturn value.reverse();\n};\n/** Reverse array order (alias) */\nconst reverseArrayMutator = async (value) => {\n\treturn value.reverse();\n};\n/** Sort array */\nconst sortArrayMutator = async (value, context) => {\n\tif (!Array.isArray(value)) return value;\n\tconst sortDirection = context?.options.direction ?? \"asc\";\n\tconst sortByKey = context?.options.key ?? null;\n\treturn value.sort((a, b) => {\n\t\tif (sortByKey) {\n\t\t\tconst aValue = get(a, sortByKey);\n\t\t\tconst bValue = get(b, sortByKey);\n\t\t\tif (sortDirection === \"asc\") return aValue - bValue;\n\t\t\treturn bValue - aValue;\n\t\t}\n\t\tif (sortDirection === \"asc\") return a - b;\n\t\treturn b - a;\n\t});\n};\n/** Make array have only unique values */\nconst uniqueArrayMutator = async (value) => {\n\treturn [...new Set(value)];\n};\n/** Remove empty elements from array */\nconst removeEmptyArrayElementsMutator = async (value) => {\n\treturn value.filter((item) => !isEmptyValue(item));\n};\n\n//#endregion\nexport { flipArrayMutator, removeEmptyArrayElementsMutator, reverseArrayMutator, sortArrayMutator, uniqueArrayMutator };\n//# sourceMappingURL=array-mutators.mjs.map","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),Y=_.prototype;return O.prototype=Y,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){Y[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","import dayjs from \"dayjs\";\n\n//#region ../seal/src/mutators/date-mutators.ts\n/**\n* Convert value to Date object\n* Returns Invalid Date if value cannot be converted\n*/\nconst dateMutator = async (value) => {\n\tif (!value) return;\n\tif (value instanceof Date) return value;\n\treturn new Date(value);\n};\n/** Convert date to ISO string format */\nconst toISOStringMutator = async (value) => {\n\treturn new Date(value).toISOString();\n};\n/** Convert date to Unix timestamp (milliseconds) */\nconst toTimestampMutator = async (value) => {\n\treturn new Date(value).getTime();\n};\n/** Convert date to start of day (00:00:00) */\nconst toStartOfDayMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Convert date to end of day (23:59:59.999) */\nconst toEndOfDayMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n/** Add or subtract days from date */\nconst addDaysMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst days = context?.options.days ?? 0;\n\tdate.setDate(date.getDate() + days);\n\treturn date;\n};\n/** Add or subtract months from date */\nconst addMonthsMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst months = context?.options.months ?? 0;\n\tdate.setMonth(date.getMonth() + months);\n\treturn date;\n};\n/** Add or subtract years from date */\nconst addYearsMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst years = context?.options.years ?? 0;\n\tdate.setFullYear(date.getFullYear() + years);\n\treturn date;\n};\n/** Add or subtract hours from date */\nconst addHoursMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst hours = context?.options.hours ?? 0;\n\tdate.setHours(date.getHours() + hours);\n\treturn date;\n};\n/** Convert date to UTC */\nconst toUTCMutator = async (value) => {\n\tconst date = new Date(value);\n\treturn new Date(date.toUTCString());\n};\n/** Convert date to specific format using dayjs */\nconst toFormatMutator = async (value, context) => {\n\tconst format = context?.options.format ?? \"YYYY-MM-DD\";\n\treturn dayjs(value).format(format);\n};\n/** Convert to date only (remove time) */\nconst toDateOnlyMutator = async (value) => {\n\treturn new Date(value).toISOString().split(\"T\")[0];\n};\n/** Convert to time only (HH:MM:SS) */\nconst toTimeOnlyMutator = async (value) => {\n\treturn new Date(value).toTimeString().split(\" \")[0];\n};\n/** Set to start of month */\nconst toStartOfMonthMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setDate(1);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Set to end of month */\nconst toEndOfMonthMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(date.getMonth() + 1);\n\tdate.setDate(0);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n/** Set to start of year */\nconst toStartOfYearMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(0);\n\tdate.setDate(1);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Set to end of year */\nconst toEndOfYearMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(11);\n\tdate.setDate(31);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n\n//#endregion\nexport { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toDateOnlyMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toFormatMutator, toISOStringMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toTimeOnlyMutator, toTimestampMutator, toUTCMutator };\n//# sourceMappingURL=date-mutators.mjs.map","import { round } from \"@mongez/reinforcements\";\nimport { isNumeric } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/mutators/number-mutators.ts\n/** Convert value to number */\nconst numberMutator = async (value) => {\n\tif (!value) return value;\n\treturn Number(value);\n};\n/** Round number to specified decimals */\nconst roundNumberMutator = async (value, context) => {\n\treturn round(value, context?.options?.decimals ?? 2);\n};\n/** Convert to boolean */\nconst booleanMutator = async (value) => {\n\tif (value === \"true\") return true;\n\tif (value === \"false\") return false;\n\treturn Boolean(value);\n};\nconst numericMutator = async (value) => {\n\tif (!isNumeric(value)) return value;\n\treturn Number(value);\n};\n/** Absolute value mutator */\nconst absMutator = async (value) => {\n\treturn Math.abs(Number(value));\n};\n/** Ceil mutator */\nconst ceilMutator = async (value) => {\n\treturn Math.ceil(Number(value));\n};\n/** Floor mutator */\nconst floorMutator = async (value) => {\n\treturn Math.floor(Number(value));\n};\n/**\n* Round mutator\n* Supports decimal precision via options.decimals\n*/\nconst roundMutator = async (value, context) => {\n\tconst decimals = context?.options?.decimals ?? 0;\n\tif (decimals === 0) return Math.round(Number(value));\n\treturn round(Number(value), decimals);\n};\n/**\n* To fixed mutator — rounds to a fixed number of decimal places, as a number.\n*\n* `Number.prototype.toFixed` returns a *string*, which the number validator's\n* own type rule then rejected: `v.number().toFixed(2)` could never produce a\n* valid result. Coercing back to a number keeps the method usable where it\n* lives. For the fixed-point string form, format at the edge instead of asking\n* a number schema to output a string.\n*/\nconst toFixedMutator = async (value, context) => {\n\tconst decimals = context?.options?.decimals ?? 2;\n\treturn Number(Number(value).toFixed(decimals));\n};\n\n//#endregion\nexport { absMutator, booleanMutator, ceilMutator, floorMutator, numberMutator, numericMutator, roundMutator, roundNumberMutator, toFixedMutator };\n//# sourceMappingURL=number-mutators.mjs.map","import { trim } from \"@mongez/reinforcements\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/mutators/object-mutators.ts\n/** Strip unknown keys from object */\nconst stripUnknownMutator = async (value, context) => {\n\tconst allowedKeys = [...context?.ctx.schema ? Object.keys(context.ctx.schema) : [], ...context?.options.allowedKeys ?? []];\n\tconst result = {};\n\tfor (const key in value) if (allowedKeys.includes(key)) result[key] = value[key];\n\treturn result;\n};\n/** Trim all string values in object */\nconst objectTrimMutator = async (value, context) => {\n\tif (!isPlainObject(value)) return value;\n\tconst result = {};\n\tconst recursive = context?.options.recursive ?? false;\n\tfor (const key in value) {\n\t\tconst item = value[key];\n\t\tif (recursive) if (Array.isArray(item)) result[key] = await Promise.all(item.map(async (i) => typeof i === \"string\" ? trim(i) : await objectTrimMutator(i, context)));\n\t\telse if (isPlainObject(item)) result[key] = await objectTrimMutator(item, context);\n\t\telse result[key] = typeof item === \"string\" ? trim(item) : item;\n\t\telse result[key] = typeof item === \"string\" ? trim(item) : item;\n\t}\n\treturn result;\n};\n/** Parse JSON string */\nconst jsonMutator = async (value) => {\n\ttry {\n\t\treturn JSON.parse(value);\n\t} catch {\n\t\treturn value;\n\t}\n};\n\n//#endregion\nexport { jsonMutator, objectTrimMutator, stripUnknownMutator };\n//# sourceMappingURL=object-mutators.mjs.map","//#region ../seal/src/mutators/scalar-mutators.ts\nconst stringMutator = async (value) => {\n\tif ([void 0, null].includes(value)) return value;\n\treturn String(value);\n};\n\n//#endregion\nexport { stringMutator };\n//# sourceMappingURL=scalar-mutators.mjs.map","import { capitalize, ltrim, readMoreChars, rtrim, toCamelCase, toKebabCase, toSnakeCase, toStudlyCase, trim } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/mutators/string-mutators.ts\n/** Convert string to lowercase */\nconst lowercaseMutator = async (value) => {\n\treturn value?.toString().toLowerCase();\n};\n/** Convert string to uppercase */\nconst uppercaseMutator = async (value) => {\n\treturn value?.toString().toUpperCase();\n};\n/** Capitalize only the first letter of the string */\nconst capitalizeMutator = async (value) => {\n\tconst str = value?.toString();\n\treturn str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n};\n/** Capitalize the first letter of each word (Title Case) */\nconst titleCaseMutator = async (value) => {\n\treturn capitalize(value?.toString());\n};\n/** Convert value to string */\nconst stringifyMutator = async (value) => {\n\tif (!value && value !== 0) return \"\";\n\tif (typeof value === \"string\") return value;\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n};\n/** Trim whitespace */\nconst trimMutator = async (value, context) => {\n\treturn trim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/**\n* Strip HTML tags with a naive `<...>` regex.\n*\n* This is a **tag stripper, not an XSS sanitizer**: it is not a parser, so\n* malformed/nested markup, attribute payloads, or content re-introduced\n* later in a pipeline can defeat it. Do not rely on this alone to make\n* untrusted rich text safe to render — use a real parser-based sanitizer\n* (e.g. DOMPurify / sanitize-html) for that.\n*/\nconst stripTagsMutator = async (value) => {\n\treturn value?.toString().replace(/<[^>]*>?/gm, \"\");\n};\n/**\n* @deprecated Renamed to {@link stripTagsMutator} — the old name implied\n* XSS safety this tag-stripping regex does not provide. Kept as an alias\n* for backward compatibility; switch to `stripTagsMutator`.\n*/\nconst safeHtmlMutator = stripTagsMutator;\n/** HTML escape */\nconst htmlEscapeMutator = async (value) => {\n\treturn value?.toString().replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n/** Remove special characters */\nconst removeSpecialCharactersMutator = async (value) => {\n\treturn value?.toString().replace(/[^a-zA-Z0-9]/g, \"\");\n};\n/** URL decode */\nconst urlDecodeMutator = async (value) => {\n\treturn decodeURIComponent(value);\n};\n/** URL encode */\nconst urlEncodeMutator = async (value) => {\n\treturn encodeURIComponent(value);\n};\n/** Convert to camelCase */\nconst camelCaseMutator = async (value) => {\n\treturn toCamelCase(value?.toString());\n};\n/** Convert to PascalCase */\nconst pascalCaseMutator = async (value) => {\n\treturn toStudlyCase(value?.toString());\n};\n/** Convert to snake_case */\nconst snakeCaseMutator = async (value) => {\n\treturn toSnakeCase(value?.toString());\n};\n/** Convert to kebab-case */\nconst kebabCaseMutator = async (value) => {\n\treturn toKebabCase(value?.toString());\n};\n/** Convert to URL-friendly slug */\nconst slugMutator = async (value) => {\n\treturn value?.toString().toLowerCase().trim().replace(/[^\\w\\s-]/g, \"\").replace(/[\\s_]+/g, \"-\").replace(/--+/g, \"-\").replace(/^-+|-+$/g, \"\");\n};\n/** Trim from the left/start */\nconst ltrimMutator = async (value, context) => {\n\treturn ltrim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/** Trim from the right/end */\nconst rtrimMutator = async (value, context) => {\n\treturn rtrim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/** Base64 encode */\nconst base64EncodeMutator = async (value) => {\n\treturn Buffer.from(value?.toString()).toString(\"base64\");\n};\n/** Base64 decode */\nconst base64DecodeMutator = async (value) => {\n\treturn Buffer.from(value?.toString(), \"base64\").toString(\"utf-8\");\n};\n/** Replace substring or pattern */\nconst replaceMutator = async (value, context) => {\n\tconst { search, replace } = context?.options;\n\tif (!search) return value?.toString();\n\treturn value?.toString().replace(search, replace ?? \"\");\n};\n/** Replace all occurrences of substring or pattern */\nconst replaceAllMutator = async (value, context) => {\n\tconst { search, replace } = context?.options;\n\tif (!search) return value?.toString();\n\tconst searchValue = typeof search === \"string\" ? new RegExp(search, \"g\") : search;\n\treturn value?.toString().replace(searchValue, replace ?? \"\");\n};\n/** Append/suffix text to the end */\nconst appendMutator = async (value, context) => {\n\tconst suffix = context?.options?.suffix ?? \"\";\n\treturn value?.toString() + suffix;\n};\n/** Prepend/prefix text to the beginning */\nconst prependMutator = async (value, context) => {\n\treturn (context?.options?.prefix ?? \"\") + value?.toString();\n};\n/** Reverse the string */\nconst reverseMutator = async (value) => {\n\treturn value?.toString().split(\"\").reverse().join(\"\");\n};\n/** Truncate to a maximum length */\nconst truncateMutator = async (value, context) => {\n\tconst str = value?.toString();\n\treturn readMoreChars(str, context?.options?.maxLength ?? 100, context?.options?.suffix ?? \"...\");\n};\n/** Trim multiple whitespace into single space */\nconst trimMultipleWhitespaceMutator = async (value) => {\n\treturn value?.toString().replace(/\\s+/g, \" \");\n};\n/** Pad string from the start to reach target length */\nconst padStartMutator = async (value, context) => {\n\tconst length = context?.options?.length ?? 0;\n\tconst char = context?.options?.char ?? \" \";\n\treturn value?.toString().padStart(length, char);\n};\n/** Pad string from the end to reach target length */\nconst padEndMutator = async (value, context) => {\n\tconst length = context?.options?.length ?? 0;\n\tconst char = context?.options?.char ?? \" \";\n\treturn value?.toString().padEnd(length, char);\n};\n/** Repeat string N times */\nconst repeatMutator = async (value, context) => {\n\tconst count = context?.options?.count ?? 1;\n\treturn value?.toString()?.repeat(count);\n};\n/** Mask part of string */\nconst maskMutator = async (value, context) => {\n\tconst str = value?.toString();\n\tconst maskChar = context?.options?.char ?? \"*\";\n\tconst start = context?.options?.start ?? 0;\n\tconst end = context?.options?.end ?? str?.length;\n\tconst visibleStart = str?.substring(0, start);\n\tconst visibleEnd = str?.substring(end);\n\tconst maskedLength = end - start;\n\treturn visibleStart + maskChar.repeat(maskedLength) + visibleEnd;\n};\n/** Unescape HTML entities */\nconst unescapeHtmlMutator = async (value) => {\n\treturn value?.toString().replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/"/g, \"\\\"\").replace(/'/g, \"'\");\n};\n/** Keep only alphabetic characters */\nconst alphaOnlyMutator = async (value) => {\n\treturn value.toString().replace(/[^a-zA-Z]/g, \"\");\n};\n/** Keep only alphanumeric characters */\nconst alphanumericOnlyMutator = async (value) => {\n\treturn value.toString().replace(/[^a-zA-Z0-9]/g, \"\");\n};\n/** Remove all numeric characters */\nconst removeNumbersMutator = async (value) => {\n\treturn value.toString().replace(/[0-9]/g, \"\");\n};\n\n//#endregion\nexport { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, safeHtmlMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator };\n//# sourceMappingURL=string-mutators.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/core/equal.ts\n/**\n* Equal rule - value must be equal to a specific value\n*/\nconst equalRule = {\n\tname: \"equal\",\n\tdefaultErrorMessage: \"The :input must be equal to :value\",\n\tasync validate(value, context) {\n\t\tif (value !== this.context.options.value) {\n\t\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { equalRule };\n//# sourceMappingURL=equal.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/core/forbidden.ts\n/**\n* Forbidden rule - value must not be present\n*/\nconst forbiddenRule = {\n\tname: \"forbidden\",\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tif (!isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { forbiddenRule };\n//# sourceMappingURL=forbidden.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/core/union.ts\n/**\n* Union rule - value must match at least one of the provided validators\n*/\nconst unionRule = {\n\tname: \"union\",\n\tdefaultErrorMessage: \"Value must match one of the allowed types\",\n\tasync validate(value, context) {\n\t\tconst validators = this.context.options.validators;\n\t\tconst firstErrorOnly = context.configurations?.firstErrorOnly ?? true;\n\t\tconst allErrors = [];\n\t\tfor (const validator of validators) {\n\t\t\tif (!validator.matchesType(value)) continue;\n\t\t\tconst result = await validator.validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tconst errorMsg = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\tallErrors.push(errorMsg);\n\t\t\tif (firstErrorOnly) break;\n\t\t}\n\t\tif (allErrors.length > 0) this.context.errorMessage = firstErrorOnly ? allErrors[0] : allErrors.join(\"; \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { unionRule };\n//# sourceMappingURL=union.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/core/when.ts\n/**\n* When rule - conditional validation based on another field value\n*/\nconst whenRule = {\n\tname: \"when\",\n\tdescription: \"Apply conditional validation based on another field value\",\n\tasync validate(value, context) {\n\t\tconst fieldToCheck = this.context.options.field;\n\t\tconst conditions = this.context.options.is;\n\t\tconst otherwise = this.context.options.otherwise;\n\t\tconst fieldValue = (this.context.options.scope || \"global\") === \"global\" ? get(context.allValues, fieldToCheck) : get(context.parent, fieldToCheck);\n\t\tconst fieldValueKey = String(fieldValue);\n\t\tif (conditions[fieldValueKey]) {\n\t\t\tconst result = await conditions[fieldValueKey].validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tthis.context.errorMessage = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\tif (otherwise) {\n\t\t\tconst result = await otherwise.validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tthis.context.errorMessage = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { whenRule };\n//# sourceMappingURL=when.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/alpha.ts\n/**\n* Alpha rule - allows only alphabetic characters\n*/\nconst alphaRule = {\n\tname: \"alpha\",\n\tdefaultErrorMessage: \"The :input must contain only alphabetic characters\",\n\tasync validate(value, context) {\n\t\tif (/^[a-zA-Z]+$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* AlphaNumeric rule - allows only alphanumeric characters\n*/\nconst alphaNumericRule = {\n\tname: \"alphaNumeric\",\n\tdefaultErrorMessage: \"The :input must contain only alphanumeric characters\",\n\tasync validate(value, context) {\n\t\tif (/^[a-zA-Z0-9]+$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Numeric string rule - allows only numeric characters\n*/\nconst isNumericRule = {\n\tname: \"numeric\",\n\tdefaultErrorMessage: \"The :input must contain only numeric characters\",\n\tasync validate(value, context) {\n\t\tif (/^[0-9]+$/.test(String(value))) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { alphaNumericRule, alphaRule, isNumericRule };\n//# sourceMappingURL=alpha.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/credit-card.ts\n/**\n* Credit card rule - validates credit card number\n*/\nconst isCreditCardRule = {\n\tname: \"creditCard\",\n\tdefaultErrorMessage: \"The :input must be a valid credit card number\",\n\tasync validate(value, context) {\n\t\tconst cardNumber = String(value).replace(/\\s/g, \"\");\n\t\tif (!/^\\d+$/.test(cardNumber)) return invalidRule(this, context);\n\t\tlet sum = 0;\n\t\tlet isEven = false;\n\t\tfor (let i = cardNumber.length - 1; i >= 0; i--) {\n\t\t\tlet digit = parseInt(cardNumber[i], 10);\n\t\t\tif (isEven) {\n\t\t\t\tdigit *= 2;\n\t\t\t\tif (digit > 9) digit -= 9;\n\t\t\t}\n\t\t\tsum += digit;\n\t\t\tisEven = !isEven;\n\t\t}\n\t\tif (sum % 10 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { isCreditCardRule };\n//# sourceMappingURL=credit-card.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmail } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/rules/string/email.ts\n/**\n* Email rule - validates email format\n*/\nconst emailRule = {\n\tname: \"email\",\n\tdefaultErrorMessage: \"The :input must be a valid email address\",\n\tasync validate(value, context) {\n\t\tif (isEmail(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { emailRule };\n//# sourceMappingURL=email.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/id-formats.ts\n/**\n* Modern ID format validators — UUID, CUID, ULID, nanoid.\n*\n* Each rule asserts the value is a string in the canonical format for its\n* identifier scheme. Rules are intentionally strict (variant nibbles checked\n* for UUID, character classes enforced for ULID's Crockford base32, etc.)\n* so \"looks-like-but-not-valid\" inputs are rejected.\n*/\nconst UUID_ANY = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\nconst UUID_BY_VERSION = {\n\t1: /^[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t3: /^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t4: /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t5: /^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t6: /^[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t7: /^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i\n};\n/**\n* UUID rule — value must be a valid UUID. Optionally restrict to a specific version.\n*\n* @example\n* v.string().uuid() // any RFC 4122 UUID\n* v.string().uuid(4) // only v4 (random)\n* v.string().uuid(7) // only v7 (timestamp-ordered)\n*/\nconst uuidRule = {\n\tname: \"uuid\",\n\tdefaultErrorMessage: \"The :input must be a valid UUID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst version = this.context.options.version;\n\t\tif ((version ? UUID_BY_VERSION[version] : UUID_ANY).test(value)) return VALID_RULE;\n\t\tif (version !== void 0) this.context.translationParams.version = version;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* CUID rule — value must be a valid CUID.\n*\n* Defaults to CUID2 (24 chars, lowercase, starts with letter — see\n* https://github.com/paralleldrive/cuid2). Pass `{ version: 1 }` for legacy\n* CUID1 format (starts with \"c\", ≥25 chars).\n*\n* @example\n* v.string().cuid() // CUID2\n* v.string().cuid({ version: 1 }) // legacy CUID1\n*/\nconst cuidRule = {\n\tname: \"cuid\",\n\tdefaultErrorMessage: \"The :input must be a valid CUID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst version = this.context.options.version ?? 2;\n\t\tif ((version === 1 ? /^c[a-z0-9]{24,}$/ : /^[a-z][a-z0-9]{23}$/).test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.version = version;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* ULID rule — value must be a valid ULID (26 chars, Crockford base32).\n*\n* Crockford base32 excludes the letters I, L, O, U to avoid ambiguity.\n*\n* @example\n* v.string().ulid()\n*/\nconst ulidRule = {\n\tname: \"ulid\",\n\tdefaultErrorMessage: \"The :input must be a valid ULID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tif (/^[0-9A-HJKMNP-TV-Z]{26}$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* nanoid rule — value must be a valid nanoid string.\n*\n* Default length is 21 (standard nanoid). URL-safe alphabet:\n* A–Z, a–z, 0–9, `_`, `-`.\n*\n* @example\n* v.string().nanoid() // 21 chars (default)\n* v.string().nanoid(10) // 10 chars\n*/\nconst nanoidRule = {\n\tname: \"nanoid\",\n\tdefaultErrorMessage: \"The :input must be a valid nanoid\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst length = this.context.options.length ?? 21;\n\t\tif (new RegExp(`^[A-Za-z0-9_-]{${length}}$`).test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.length = length;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { cuidRule, nanoidRule, ulidRule, uuidRule };\n//# sourceMappingURL=id-formats.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/ip.ts\n/**\n* Pure, dependency-free re-implementation of Node's `net.isIP`/`isIPv4`/`isIPv6`.\n* Mirrors the exact regex Node uses internally (lib/internal/net.js) so that\n* behavior stays identical while remaining runnable in the browser (no `net` import).\n*/\nconst v4Seg = \"(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\";\nconst v4Str = `(${v4Seg}[.]){3}${v4Seg}`;\nconst IPv4Reg = new RegExp(`^${v4Str}$`);\nconst v6Seg = \"(?:[0-9a-fA-F]{1,4})\";\nconst IPv6Reg = new RegExp(`^((?:${v6Seg}:){7}(?:${v6Seg}|:)|(?:${v6Seg}:){6}(?:${v4Str}|:${v6Seg}|:)|(?:${v6Seg}:){5}(?::${v4Str}|(:${v6Seg}){1,2}|:)|(?:${v6Seg}:){4}(?:(:${v6Seg}){0,1}:${v4Str}|(:${v6Seg}){1,3}|:)|(?:${v6Seg}:){3}(?:(:${v6Seg}){0,2}:${v4Str}|(:${v6Seg}){1,4}|:)|(?:${v6Seg}:){2}(?:(:${v6Seg}){0,3}:${v4Str}|(:${v6Seg}){1,5}|:)|(?:${v6Seg}:){1}(?:(:${v6Seg}){0,4}:${v4Str}|(:${v6Seg}){1,6}|:)|(?::((?::${v6Seg}){0,5}:${v4Str}|(?::${v6Seg}){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?\\$`);\nfunction isIPv4(value) {\n\treturn IPv4Reg.test(value);\n}\nfunction isIPv6(value) {\n\treturn IPv6Reg.test(value);\n}\n/**\n* Returns 4 or 6 when `value` is a valid IPv4/IPv6 address, otherwise 0.\n* Signature mirrors Node's `net.isIP` for drop-in behavior parity.\n*/\nfunction isIP(value) {\n\tif (isIPv4(value)) return 4;\n\tif (isIPv6(value)) return 6;\n\treturn 0;\n}\n/**\n* IP rule - validates IP address (v4 or v6)\n*/\nconst ipRule = {\n\tname: \"ip\",\n\tdefaultErrorMessage: \"The :input must be a valid IP address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* IPv4 rule - validates IPv4 address\n*/\nconst ip4Rule = {\n\tname: \"ip4\",\n\tdefaultErrorMessage: \"The :input must be a valid IPv4 address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value) === 4) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* IPv6 rule - validates IPv6 address\n*/\nconst ip6Rule = {\n\tname: \"ip6\",\n\tdefaultErrorMessage: \"The :input must be a valid IPv6 address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value) === 6) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 };\n//# sourceMappingURL=ip.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/pattern.ts\n/**\n* Pattern rule - validates against regex pattern\n*/\nconst patternRule = {\n\tname: \"pattern\",\n\tdefaultErrorMessage: \"The :input does not match the required pattern\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.pattern.test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.pattern = this.context.options.pattern.toString();\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { patternRule };\n//# sourceMappingURL=pattern.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/string-comparison.ts\n/**\n* Starts with rule\n*/\nconst startsWithRule = {\n\tname: \"startsWith\",\n\tdefaultErrorMessage: \"The :input must start with :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).startsWith(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Ends with rule\n*/\nconst endsWithRule = {\n\tname: \"endsWith\",\n\tdefaultErrorMessage: \"The :input must end with :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).endsWith(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Contains rule\n*/\nconst containsRule = {\n\tname: \"contains\",\n\tdefaultErrorMessage: \"The :input must contain :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).includes(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Not contains rule\n*/\nconst notContainsRule = {\n\tname: \"notContains\",\n\tdefaultErrorMessage: \"The :input must not contain :value\",\n\tasync validate(value, context) {\n\t\tif (!String(value).includes(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { containsRule, endsWithRule, notContainsRule, startsWithRule };\n//# sourceMappingURL=string-comparison.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/strong-password-rule.ts\n/**\n* Strong Password rule - validates password strength\n* Requirements:\n* - At least 8 characters\n* - At least 1 uppercase letter\n* - At least 1 lowercase letter\n* - At least 1 number\n* - At least 1 special character\n*/\nconst strongPasswordRule = {\n\tname: \"strongPassword\",\n\tdefaultErrorMessage: \"The :input must be at least 8 characters and contain at least one uppercase letter, one lowercase letter, one number, and one special character\",\n\tasync validate(value, context) {\n\t\tconst password = String(value);\n\t\tconst minLength = this.context.options.minLength ?? 8;\n\t\tif (password.length < minLength) return invalidRule(this, context);\n\t\tif (!/[A-Z]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[a-z]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[0-9]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[!@#$%^&*()_+\\-=[\\]{};':\"\\\\|,.<>/?]/.test(password)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { strongPasswordRule };\n//# sourceMappingURL=strong-password-rule.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/url.ts\n/**\n* URL rule - validates URL format\n*/\nconst urlRule = {\n\tname: \"url\",\n\tdefaultErrorMessage: \"The :input must be a valid URL\",\n\tasync validate(value, context) {\n\t\ttry {\n\t\t\tnew URL(value);\n\t\t\treturn VALID_RULE;\n\t\t} catch {\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t}\n};\n\n//#endregion\nexport { urlRule };\n//# sourceMappingURL=url.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/without-whitespace.ts\n/**\n* Without whitespace rule - value must not contain whitespace\n*/\nconst withoutWhitespaceRule = {\n\tname: \"withoutWhitespace\",\n\tdefaultErrorMessage: \"The :input must not contain whitespace\",\n\tasync validate(value, context) {\n\t\tif (!/\\s/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { withoutWhitespaceRule };\n//# sourceMappingURL=without-whitespace.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/number/number-rules.ts\n/**\n* Min rule - value must be equal or greater than minimum\n* Supports field names with sibling scope\n*/\nconst minRule = {\n\tname: \"min\",\n\tdefaultErrorMessage: \"The :input must be at least :min\",\n\tasync validate(value, context) {\n\t\tconst { min, scope = \"global\" } = this.context.options;\n\t\tlet compareMin;\n\t\tif (typeof min === \"number\") {\n\t\t\tcompareMin = min;\n\t\t\tthis.context.translationParams.min = min;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, min);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.min = min;\n\t\t\tcompareMin = Number(fieldValue);\n\t\t\tif (isNaN(compareMin)) return VALID_RULE;\n\t\t}\n\t\tif (value >= compareMin) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max rule - value must be equal or less than maximum\n* Supports field names with sibling scope\n*/\nconst maxRule = {\n\tname: \"max\",\n\tdefaultErrorMessage: \"The :input must equal to or less than :max\",\n\tasync validate(value, context) {\n\t\tconst { max, scope = \"global\" } = this.context.options;\n\t\tlet compareMax;\n\t\tif (typeof max === \"number\") {\n\t\t\tcompareMax = max;\n\t\t\tthis.context.translationParams.max = max;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, max);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.max = max;\n\t\t\tcompareMax = Number(fieldValue);\n\t\t\tif (isNaN(compareMax)) return VALID_RULE;\n\t\t}\n\t\tif (value <= compareMax) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Greater than rule - value must be strictly greater than minimum\n* Supports field names with sibling scope\n*/\nconst greaterThanRule = {\n\tname: \"greaterThan\",\n\tdefaultErrorMessage: \"The :input must be greater than :value\",\n\tasync validate(value, context) {\n\t\tconst { value: compareValue, scope = \"global\" } = this.context.options;\n\t\tlet compareNumber;\n\t\tif (typeof compareValue === \"number\") {\n\t\t\tcompareNumber = compareValue;\n\t\t\tthis.context.translationParams.value = compareValue;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, compareValue);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.value = compareValue;\n\t\t\tcompareNumber = Number(fieldValue);\n\t\t\tif (isNaN(compareNumber)) return VALID_RULE;\n\t\t}\n\t\tif (value > compareNumber) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Less than rule - value must be strictly less than maximum\n* Supports field names with sibling scope\n*/\nconst lessThanRule = {\n\tname: \"lessThan\",\n\tdefaultErrorMessage: \"The :input must be less than :value\",\n\tasync validate(value, context) {\n\t\tconst { value: compareValue, scope = \"global\" } = this.context.options;\n\t\tlet compareNumber;\n\t\tif (typeof compareValue === \"number\") {\n\t\t\tcompareNumber = compareValue;\n\t\t\tthis.context.translationParams.value = compareValue;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, compareValue);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.value = compareValue;\n\t\t\tcompareNumber = Number(fieldValue);\n\t\t\tif (isNaN(compareNumber)) return VALID_RULE;\n\t\t}\n\t\tif (value < compareNumber) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Positive rule - value must be greater than 0\n*/\nconst positiveRule = {\n\tname: \"positive\",\n\tdefaultErrorMessage: \"The :input must be a positive number\",\n\tasync validate(value, context) {\n\t\tif (value > 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Negative rule - value must be less than 0\n*/\nconst negativeRule = {\n\tname: \"negative\",\n\tdefaultErrorMessage: \"The :input must be a negative number\",\n\tasync validate(value, context) {\n\t\tif (value < 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Odd rule - value must be an odd number\n*/\nconst oddRule = {\n\tname: \"odd\",\n\tdefaultErrorMessage: \"The :input must be an odd number\",\n\tasync validate(value, context) {\n\t\tif (value % 2 !== 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Even rule - value must be an even number\n*/\nconst evenRule = {\n\tname: \"even\",\n\tdefaultErrorMessage: \"The :input must be an even number\",\n\tasync validate(value, context) {\n\t\tif (value % 2 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Modulo rule - value must be divisible by given number\n*/\nconst moduloRule = {\n\tname: \"modulo\",\n\tdefaultErrorMessage: \"The :input must be divisible by :value\",\n\tasync validate(value, context) {\n\t\tif (value % this.context.options.value === 0) return VALID_RULE;\n\t\tthis.context.translationParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between rule - value must be between the given two numbers (Inclusive)\n* Supports field names with sibling scope\n*/\nconst betweenNumbersRule = {\n\tname: \"betweenNumbers\",\n\tdefaultErrorMessage: \"The :input must be between :min and :max\",\n\tasync validate(value, context) {\n\t\tconst { min, max, scope = \"global\" } = this.context.options;\n\t\tlet compareMin;\n\t\tif (typeof min === \"number\") {\n\t\t\tcompareMin = min;\n\t\t\tthis.context.translationParams.min = min;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, min);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.min = min;\n\t\t\tcompareMin = Number(fieldValue);\n\t\t\tif (isNaN(compareMin)) return VALID_RULE;\n\t\t}\n\t\tlet compareMax;\n\t\tif (typeof max === \"number\") {\n\t\t\tcompareMax = max;\n\t\t\tthis.context.translationParams.max = max;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, max);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.max = max;\n\t\t\tcompareMax = Number(fieldValue);\n\t\t\tif (isNaN(compareMax)) return VALID_RULE;\n\t\t}\n\t\tif (value >= compareMin && value <= compareMax) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule };\n//# sourceMappingURL=number-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/length/length-rules.ts\n/**\n* Min length rule - validates minimum length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst minLengthRule = {\n\tname: \"minLength\",\n\tdefaultErrorMessage: \"The :input must be at least :minLength characters long\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) >= this.context.options.minLength) return VALID_RULE;\n\t\tthis.context.translationParams.minLength = this.context.options.minLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max length rule - validates maximum length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst maxLengthRule = {\n\tname: \"maxLength\",\n\tdefaultErrorMessage: \"The :input must not exceed :maxLength characters\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) <= this.context.options.maxLength) return VALID_RULE;\n\t\tthis.context.translationParams.maxLength = this.context.options.maxLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between length rule - validates length is between min and max (inclusive)\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst betweenLengthRule = {\n\tname: \"betweenLength\",\n\tdefaultErrorMessage: \"The :input must be between :minLength and :maxLength characters long\",\n\tasync validate(value, context) {\n\t\tconst length = typeof value?.length === \"number\" ? value.length : String(value || \"\").length;\n\t\tif (length >= this.context.options.minLength && length <= this.context.options.maxLength) return VALID_RULE;\n\t\tthis.context.translationParams.minLength = this.context.options.minLength;\n\t\tthis.context.translationParams.maxLength = this.context.options.maxLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Length rule - validates exact length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst lengthRule = {\n\tname: \"length\",\n\tdefaultErrorMessage: \"The :input must be exactly :length characters long\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) === this.context.options.length) return VALID_RULE;\n\t\tthis.context.translationParams.length = this.context.options.length;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min words rule - validates minimum word count\n*/\nconst minWordsRule = {\n\tname: \"minWords\",\n\tdefaultErrorMessage: \"The :input must be at least :minWords words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length >= this.context.options.minWords) return VALID_RULE;\n\t\tthis.context.translationParams.minWords = this.context.options.minWords;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max words rule - validates maximum word count\n*/\nconst maxWordsRule = {\n\tname: \"maxWords\",\n\tdefaultErrorMessage: \"The :input must be at most :maxWords words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length <= this.context.options.maxWords) return VALID_RULE;\n\t\tthis.context.translationParams.maxWords = this.context.options.maxWords;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Words rule - validates exact word count\n*/\nconst wordsRule = {\n\tname: \"words\",\n\tdefaultErrorMessage: \"The :input must be exactly :words words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length === this.context.options.words) return VALID_RULE;\n\t\tthis.context.translationParams.words = this.context.options.words;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule };\n//# sourceMappingURL=length-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/array/array-rules.ts\n/**\n* Unique array rule - array must contain unique values\n*/\nconst uniqueArrayRule = {\n\tname: \"uniqueArray\",\n\tdescription: \"The array must contain unique values\",\n\tdefaultErrorMessage: \"The :input must contain unique values\",\n\tasync validate(value, context) {\n\t\tif (new Set(value).size === value.length) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Sorted array rule - array must be sorted\n*/\nconst sortedArrayRule = {\n\tname: \"sortedArray\",\n\tdescription: \"The array must be sorted\",\n\tdefaultErrorMessage: \"The :input must be sorted\",\n\tasync validate(value, context) {\n\t\tif (!Array.isArray(value) || value.length <= 1) return VALID_RULE;\n\t\tconst direction = this.context.options.direction ?? \"asc\";\n\t\tthis.context.translatableParams.direction = direction;\n\t\tfor (let i = 0; i < value.length - 1; i++) {\n\t\t\tconst current = value[i];\n\t\t\tconst next = value[i + 1];\n\t\t\tif (direction === \"asc\") {\n\t\t\t\tif (current > next) return invalidRule(this, context);\n\t\t\t} else if (current < next) return invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { sortedArrayRule, uniqueArrayRule };\n//# sourceMappingURL=array-rules.mjs.map","//#region ../seal/src/types/date-types.ts\n/**\n* Week day numbers mapping\n*/\nconst WEEK_DAYS = {\n\tsunday: 0,\n\tmonday: 1,\n\ttuesday: 2,\n\twednesday: 3,\n\tthursday: 4,\n\tfriday: 5,\n\tsaturday: 6\n};\n\n//#endregion\nexport { WEEK_DAYS };\n//# sourceMappingURL=date-types.mjs.map","import { isDateValue } from \"../../helpers/date-helpers.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { WEEK_DAYS } from \"../../types/date-types.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date.ts\n/**\n* Date rule - validates date format\n*/\nconst dateRule = {\n\tname: \"date\",\n\tdefaultErrorMessage: \"The :input must be a valid date\",\n\tasync validate(value, context) {\n\t\tif (value instanceof Date && !isNaN(value.getTime())) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min date rule - date must be >= given date or field\n* Smart detection: date value or field name\n*/\nconst minDateRule = {\n\tname: \"minDate\",\n\tdescription: \"The field must be at least the given date or field\",\n\tdefaultErrorMessage: \"The :input must be at least :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) >= compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max date rule - date must be <= given date or field\n* Smart detection: date value or field name\n*/\nconst maxDateRule = {\n\tname: \"maxDate\",\n\tdefaultErrorMessage: \"The :input must be at most :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) <= compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From today rule - date must be today or in the future\n*/\nconst fromTodayRule = {\n\tname: \"fromToday\",\n\tdefaultErrorMessage: \"The :input must be today or in the future\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate >= today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before today rule - date must be before today\n*/\nconst beforeTodayRule = {\n\tname: \"beforeToday\",\n\tdefaultErrorMessage: \"The :input must be before today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate < today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From hour rule - time must be from specific hour onwards\n*/\nconst fromHourRule = {\n\tname: \"fromHour\",\n\tdefaultErrorMessage: \"The :input must be from :hour:00 onwards\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getHours() >= this.context.options.hour) return VALID_RULE;\n\t\tthis.context.translationParams.hour = this.context.options.hour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before hour rule - time must be before specific hour\n*/\nconst beforeHourRule = {\n\tname: \"beforeHour\",\n\tdefaultErrorMessage: \"The :input must be before :hour:00\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getHours() < this.context.options.hour) return VALID_RULE;\n\t\tthis.context.translationParams.hour = this.context.options.hour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between hours rule - time must be between start and end hours\n*/\nconst betweenHoursRule = {\n\tname: \"betweenHours\",\n\tdefaultErrorMessage: \"The :input must be between :startHour:00 and :endHour:00\",\n\tasync validate(value, context) {\n\t\tconst hour = new Date(value).getHours();\n\t\tconst { startHour, endHour } = this.context.options;\n\t\tif (hour >= startHour && hour <= endHour) return VALID_RULE;\n\t\tthis.context.translationParams.startHour = startHour;\n\t\tthis.context.translationParams.endHour = endHour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From minute rule - time must be from specific minute onwards\n*/\nconst fromMinuteRule = {\n\tname: \"fromMinute\",\n\tdefaultErrorMessage: \"The :input must be from minute :minute onwards\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMinutes() >= this.context.options.minute) return VALID_RULE;\n\t\tthis.context.translationParams.minute = this.context.options.minute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before minute rule - time must be before specific minute\n*/\nconst beforeMinuteRule = {\n\tname: \"beforeMinute\",\n\tdefaultErrorMessage: \"The :input must be before minute :minute\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMinutes() < this.context.options.minute) return VALID_RULE;\n\t\tthis.context.translationParams.minute = this.context.options.minute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between minutes rule - time must be between start and end minutes\n*/\nconst betweenMinutesRule = {\n\tname: \"betweenMinutes\",\n\tdefaultErrorMessage: \"The :input must be between minute :startMinute and :endMinute\",\n\tasync validate(value, context) {\n\t\tconst minute = new Date(value).getMinutes();\n\t\tconst { startMinute, endMinute } = this.context.options;\n\t\tif (minute >= startMinute && minute <= endMinute) return VALID_RULE;\n\t\tthis.context.translationParams.startMinute = startMinute;\n\t\tthis.context.translationParams.endMinute = endMinute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Age rule - calculate age from date\n*/\nconst ageRule = {\n\tname: \"age\",\n\tdefaultErrorMessage: \"The :input must be exactly :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age === this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min age rule - minimum age requirement\n*/\nconst minAgeRule = {\n\tname: \"minAge\",\n\tdefaultErrorMessage: \"The :input must be at least :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age >= this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max age rule - maximum age requirement\n*/\nconst maxAgeRule = {\n\tname: \"maxAge\",\n\tdefaultErrorMessage: \"The :input must be at most :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age <= this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Week day rule - date must be specific weekday\n*/\nconst weekDayRule = {\n\tname: \"weekDay\",\n\tdefaultErrorMessage: \"The :input must be a :day\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getDay() === WEEK_DAYS[this.context.options.day]) return VALID_RULE;\n\t\tthis.context.translatableParams.day = this.context.options.day;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule };\n//# sourceMappingURL=date.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-comparison-rules.ts\n/**\n* Between dates rule - date must be between start and end dates\n*/\nconst betweenDatesRule = {\n\tname: \"betweenDates\",\n\tdefaultErrorMessage: \"The :input must be between :startDate and :endDate\",\n\tasync validate(value, context) {\n\t\tconst { startDate, endDate } = this.context.options;\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate >= startDate && inputDate <= endDate) {\n\t\t\tthis.context.translationParams.startDate = startDate.toISOString();\n\t\t\tthis.context.translationParams.endDate = endDate.toISOString();\n\t\t\treturn VALID_RULE;\n\t\t}\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Today rule - date must be exactly today\n*/\nconst todayRule = {\n\tname: \"today\",\n\tdefaultErrorMessage: \"The :input must be today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate.getTime() === today.getTime()) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Past rule - date must be in the past\n*/\nconst pastRule = {\n\tname: \"past\",\n\tdefaultErrorMessage: \"The :input must be in the past\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tif (new Date(value) < now) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Future rule - date must be in the future\n*/\nconst futureRule = {\n\tname: \"future\",\n\tdefaultErrorMessage: \"The :input must be in the future\",\n\tasync validate(value, context) {\n\t\tif (value > /* @__PURE__ */ new Date()) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* After today rule - date must be after today (not including today)\n*/\nconst afterTodayRule = {\n\tname: \"afterToday\",\n\tdefaultErrorMessage: \"The :input must be after today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate > today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule };\n//# sourceMappingURL=date-comparison-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { WEEK_DAYS } from \"../../types/date-types.mjs\";\n\n//#region ../seal/src/rules/date/date-day-rules.ts\n/**\n* Weekend rule - date must be Saturday or Sunday\n*/\nconst weekendRule = {\n\tname: \"weekend\",\n\tdefaultErrorMessage: \"The :input must be a weekend (Saturday or Sunday)\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek === 0 || dayOfWeek === 6) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Weekday rule - date must be Monday through Friday\n*/\nconst weekdayRule = {\n\tname: \"weekday\",\n\tdefaultErrorMessage: \"The :input must be a weekday (Monday-Friday)\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek >= 1 && dayOfWeek <= 5) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Weekdays rule - date must be one of specified weekdays\n*/\nconst weekdaysRule = {\n\tname: \"weekdays\",\n\tdefaultErrorMessage: \"The :input must be one of: :days\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tconst { days } = this.context.options;\n\t\tif (days.map((day) => WEEK_DAYS[day]).includes(dayOfWeek)) return VALID_RULE;\n\t\tdays.forEach((day) => {\n\t\t\tthis.context.translatableParams[day] = day;\n\t\t});\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Business day rule - date must be Monday-Friday (no weekends)\n*/\nconst businessDayRule = {\n\tname: \"businessDay\",\n\tdefaultErrorMessage: \"The :input must be a business day\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek >= 1 && dayOfWeek <= 5) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { businessDayRule, weekdayRule, weekdaysRule, weekendRule };\n//# sourceMappingURL=date-day-rules.mjs.map","import { isDateValue } from \"../../helpers/date-helpers.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date-field-comparison-rules.ts\n/**\n* Before field rule - date must be < given date or field\n* Smart detection: date value or field name\n* Supports both global and sibling scope\n*/\nconst beforeFieldRule = {\n\tname: \"beforeField\",\n\tdescription: \"The date must be before the given date or field\",\n\tdefaultErrorMessage: \"The :input must be before :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) < compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* After field rule - date must be > given date or field\n* Smart detection: date value or field name\n* Supports both global and sibling scope\n*/\nconst afterFieldRule = {\n\tname: \"afterField\",\n\tdescription: \"The date must be after the given date or field\",\n\tdefaultErrorMessage: \"The :input must be after :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) {\n\t\t\tcompareDate = new Date(dateOrField);\n\t\t\tthis.context.translationParams.dateOrField = compareDate.toISOString();\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t\tthis.context.translatableParams.dateOrField = fieldValue;\n\t\t}\n\t\tif (new Date(value) > compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Same as field rule - date must be the same as another field's date\n* Supports both global and sibling scope\n*/\nconst sameAsFieldDateRule = {\n\tname: \"sameAsFieldDate\",\n\tdescription: \"The date must be the same as another field's date\",\n\tdefaultErrorMessage: \"The :input must be the same as :field\",\n\tasync validate(value, context) {\n\t\tconst { field, scope = \"global\" } = this.context.options;\n\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, field);\n\t\tif (fieldValue === void 0 || value === void 0) {\n\t\t\tthis.context.translatableParams.field = fieldValue;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tconst compareDate = new Date(fieldValue);\n\t\tcompareDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate.getTime() === compareDate.getTime()) return VALID_RULE;\n\t\tthis.context.translatableParams.field = fieldValue;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { afterFieldRule, beforeFieldRule, sameAsFieldDateRule };\n//# sourceMappingURL=date-field-comparison-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date-period-rules.ts\nconst MONTHS = {\n\t1: \"january\",\n\t2: \"february\",\n\t3: \"march\",\n\t4: \"april\",\n\t5: \"may\",\n\t6: \"june\",\n\t7: \"july\",\n\t8: \"august\",\n\t9: \"september\",\n\t10: \"october\",\n\t11: \"november\",\n\t12: \"december\"\n};\n/**\n* Month rule - date must be in specific month (1-12)\n*/\nconst monthRule = {\n\tname: \"month\",\n\tdefaultErrorMessage: \"The :input must be in month :month\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMonth() + 1 === this.context.options.month) return VALID_RULE;\n\t\tthis.context.translatableParams.month = MONTHS[this.context.options.month];\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Year rule - date must be in specific year\n*/\nconst yearRule = {\n\tname: \"year\",\n\tdefaultErrorMessage: \"The :input must be in year :year\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getFullYear() === this.context.options.year) return VALID_RULE;\n\t\tthis.context.translationParams.year = this.context.options.year;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between years rule - date must be between start and end years\n* Supports field names with sibling scope\n*/\nconst betweenYearsRule = {\n\tname: \"betweenYears\",\n\tdefaultErrorMessage: \"The :input must be between :startYear and :endYear\",\n\tasync validate(value, context) {\n\t\tconst { startYear, endYear, scope = \"global\" } = this.context.options;\n\t\tconst inputYear = new Date(value).getFullYear();\n\t\tlet compareStartYear;\n\t\tif (typeof startYear === \"number\") compareStartYear = startYear;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startYear);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareStartYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareStartYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndYear;\n\t\tif (typeof endYear === \"number\") compareEndYear = endYear;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endYear);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareEndYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareEndYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputYear >= compareStartYear && inputYear <= compareEndYear) return VALID_RULE;\n\t\tthis.context.translationParams.startYear = compareStartYear;\n\t\tthis.context.translationParams.endYear = compareEndYear;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between months rule - date must be between start and end months (1-12)\n* Supports field names with sibling scope\n*/\nconst betweenMonthsRule = {\n\tname: \"betweenMonths\",\n\tdefaultErrorMessage: \"The :input must be between month :startMonth and :endMonth\",\n\tasync validate(value, context) {\n\t\tconst { startMonth, endMonth, scope = \"global\" } = this.context.options;\n\t\tconst inputMonth = new Date(value).getMonth() + 1;\n\t\tlet compareStartMonth;\n\t\tif (typeof startMonth === \"number\") {\n\t\t\tcompareStartMonth = startMonth;\n\t\t\tthis.context.translatableParams.startMonth = MONTHS[compareStartMonth];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startMonth);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.startMonth = startMonth;\n\t\t\tif (fieldValue instanceof Date) compareStartMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareStartMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndMonth;\n\t\tif (typeof endMonth === \"number\") {\n\t\t\tcompareEndMonth = endMonth;\n\t\t\tthis.context.translatableParams.endMonth = MONTHS[compareEndMonth];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endMonth);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.endMonth = endMonth;\n\t\t\tif (fieldValue instanceof Date) compareEndMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareEndMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputMonth >= compareStartMonth && inputMonth <= compareEndMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between days rule - date must be between start and end days (1-31)\n* Supports field names with sibling scope\n*/\nconst betweenDaysRule = {\n\tname: \"betweenDays\",\n\tdefaultErrorMessage: \"The :input must be between day :startDay and :endDay\",\n\tasync validate(value, context) {\n\t\tconst { startDay, endDay, scope = \"global\" } = this.context.options;\n\t\tconst inputDay = new Date(value).getDate();\n\t\tlet compareStartDay;\n\t\tif (typeof startDay === \"number\") compareStartDay = startDay;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startDay);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareStartDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareStartDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndDay;\n\t\tif (typeof endDay === \"number\") compareEndDay = endDay;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endDay);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareEndDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareEndDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputDay >= compareStartDay && inputDay <= compareEndDay) return VALID_RULE;\n\t\tthis.context.translationParams.startDay = compareStartDay;\n\t\tthis.context.translationParams.endDay = compareEndDay;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Quarter rule - date must be in specific quarter (1-4)\n*/\nconst quarterRule = {\n\tname: \"quarter\",\n\tdefaultErrorMessage: \"The :input must be in quarter :quarter\",\n\tasync validate(value, context) {\n\t\tconst month = new Date(value).getMonth() + 1;\n\t\tif (Math.ceil(month / 3) === this.context.options.quarter) return VALID_RULE;\n\t\tthis.context.translationParams.quarter = this.context.options.quarter;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between times rule - time must be between start and end times (HH:MM format)\n*/\nconst betweenTimesRule = {\n\tname: \"betweenTimes\",\n\tdefaultErrorMessage: \"The :input must be between :startTime and :endTime\",\n\tasync validate(value, context) {\n\t\tconst inputDate = new Date(value);\n\t\tconst inputHour = inputDate.getHours();\n\t\tconst inputMinute = inputDate.getMinutes();\n\t\tconst inputTimeInMinutes = inputHour * 60 + inputMinute;\n\t\tconst { startTime, endTime } = this.context.options;\n\t\tconst [startHour, startMinute] = startTime.split(\":\").map(Number);\n\t\tconst startTimeInMinutes = startHour * 60 + startMinute;\n\t\tconst [endHour, endMinute] = endTime.split(\":\").map(Number);\n\t\tconst endTimeInMinutes = endHour * 60 + endMinute;\n\t\tif (inputTimeInMinutes >= startTimeInMinutes && inputTimeInMinutes <= endTimeInMinutes) return VALID_RULE;\n\t\tthis.context.translationParams.startTime = startTime;\n\t\tthis.context.translationParams.endTime = endTime;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min year rule - year must be >= given year or field\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minYearRule = {\n\tname: \"minYear\",\n\tdescription: \"The date year must be at least the given year or field\",\n\tdefaultErrorMessage: \"The :input year must be higher than :yearOrField\",\n\tasync validate(value, context) {\n\t\tconst { yearOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareYear;\n\t\tif (typeof yearOrField === \"number\") {\n\t\t\tcompareYear = yearOrField;\n\t\t\tthis.context.translationParams.yearOrField = yearOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, yearOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.yearOrField = yearOrField;\n\t\t\tif (fieldValue instanceof Date) compareYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getFullYear() >= compareYear) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max year rule - year must be <= given year or field\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxYearRule = {\n\tname: \"maxYear\",\n\tdescription: \"The date year must be at most the given year or field\",\n\tdefaultErrorMessage: \"The :input year must be at most :yearOrField\",\n\tasync validate(value, context) {\n\t\tconst { yearOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareYear;\n\t\tif (typeof yearOrField === \"number\") {\n\t\t\tcompareYear = yearOrField;\n\t\t\tthis.context.translationParams.yearOrField = compareYear;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, yearOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.yearOrField = yearOrField;\n\t\t\tif (fieldValue instanceof Date) compareYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getFullYear() <= compareYear) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min month rule - month must be >= given month or field (1-12)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minMonthRule = {\n\tname: \"minMonth\",\n\tdescription: \"The date month must be at least the given month or field\",\n\tdefaultErrorMessage: \"The :input month must be at least :monthOrField\",\n\tasync validate(value, context) {\n\t\tconst { monthOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareMonth;\n\t\tif (typeof monthOrField === \"number\") {\n\t\t\tcompareMonth = monthOrField;\n\t\t\tthis.context.translationParams.monthOrField = compareMonth;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, monthOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.monthOrField = monthOrField;\n\t\t\tif (fieldValue instanceof Date) compareMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getMonth() + 1 >= compareMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max month rule - month must be <= given month or field (1-12)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxMonthRule = {\n\tname: \"maxMonth\",\n\tdescription: \"The date month must be at most the given month or field\",\n\tdefaultErrorMessage: \"The :input month must be at most :monthOrField\",\n\tasync validate(value, context) {\n\t\tconst { monthOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareMonth;\n\t\tif (typeof monthOrField === \"number\") {\n\t\t\tcompareMonth = monthOrField;\n\t\t\tthis.context.translatableParams.monthOrField = MONTHS[monthOrField];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, monthOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.monthOrField = monthOrField;\n\t\t\tif (fieldValue instanceof Date) compareMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getMonth() + 1 <= compareMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min day rule - day must be >= given day or field (1-31)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minDayRule = {\n\tname: \"minDay\",\n\tdescription: \"The date day must be at least the given day or field\",\n\tdefaultErrorMessage: \"The :input day must be higher than :dayOrField\",\n\tasync validate(value, context) {\n\t\tconst { dayOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDay;\n\t\tif (typeof dayOrField === \"number\") {\n\t\t\tcompareDay = dayOrField;\n\t\t\tthis.context.translationParams.dayOrField = dayOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dayOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.dayOrField = dayOrField;\n\t\t\tif (fieldValue instanceof Date) compareDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getDate() >= compareDay) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max day rule - day must be <= given day or field (1-31)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxDayRule = {\n\tname: \"maxDay\",\n\tdescription: \"The date day must be at most the given day or field\",\n\tdefaultErrorMessage: \"The :input day must be at most :dayOrField\",\n\tasync validate(value, context) {\n\t\tconst { dayOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDay;\n\t\tif (typeof dayOrField === \"number\") {\n\t\t\tcompareDay = dayOrField;\n\t\t\tthis.context.translationParams.dayOrField = dayOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dayOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.dayOrField = dayOrField;\n\t\t\tif (fieldValue instanceof Date) compareDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getDate() <= compareDay) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule };\n//# sourceMappingURL=date-period-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-relative-rules.ts\n/**\n* Within days rule - date must be within X days from now (past or future)\n*/\nconst withinDaysRule = {\n\tname: \"withinDays\",\n\tdefaultErrorMessage: \"The :input must be within :days days from now\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tconst diffTime = Math.abs(inputDate.getTime() - now.getTime());\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Within past days rule - date must be within X days in the past\n*/\nconst withinPastDaysRule = {\n\tname: \"withinPastDays\",\n\tdefaultErrorMessage: \"The :input must be within the past :days days\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate > now) return invalidRule(this, context);\n\t\tconst diffTime = now.getTime() - inputDate.getTime();\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Within future days rule - date must be within X days in the future\n*/\nconst withinFutureDaysRule = {\n\tname: \"withinFutureDays\",\n\tdefaultErrorMessage: \"The :input must be within the next :days days\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate < now) return invalidRule(this, context);\n\t\tconst diffTime = inputDate.getTime() - now.getTime();\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { withinDaysRule, withinFutureDaysRule, withinPastDaysRule };\n//# sourceMappingURL=date-relative-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-special-rules.ts\n/**\n* Birthday rule - valid birthday (not in future, reasonable age)\n*/\nconst birthdayRule = {\n\tname: \"birthday\",\n\tdefaultErrorMessage: \"The :input must be a valid birthday\",\n\tasync validate(birthDate, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tif (birthDate > today) return invalidRule(this, context);\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tconst minAge = this.context.options.minAge ?? 0;\n\t\tif (age < minAge) return invalidRule(this, context);\n\t\tconst maxAge = this.context.options.maxAge ?? 150;\n\t\tif (age > maxAge) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Between age rule - age must be between min and max years\n*/\nconst betweenAgeRule = {\n\tname: \"betweenAge\",\n\tdefaultErrorMessage: \"Age must be between :minAge and :maxAge years\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tconst { minAge, maxAge } = this.context.options;\n\t\tif (age >= minAge && age <= maxAge) return VALID_RULE;\n\t\tthis.context.translationParams.minAge = minAge;\n\t\tthis.context.translationParams.maxAge = maxAge;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Leap year rule - date must be in a leap year\n*/\nconst leapYearRule = {\n\tname: \"leapYear\",\n\tdefaultErrorMessage: \"The :input must be in a leap year\",\n\tasync validate(value, context) {\n\t\tconst year = new Date(value).getFullYear();\n\t\tif (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenAgeRule, birthdayRule, leapYearRule };\n//# sourceMappingURL=date-special-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/color/color-rules.ts\n/**\n* Color validation regex patterns\n*/\nconst colorValidationRegex = {\n\thex: /^#([0-9a-f]{3}){1,2}$/i,\n\trgb: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n\trgba: /^rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(0?\\.\\d+|1)\\)$/,\n\thsl: /^hsl\\((\\d{1,3}),\\s*(\\d{1,3})%?,\\s*(\\d{1,3})%?\\)$/\n};\n/**\n* Generic color rule - validates any color format\n*/\nconst colorRule = {\n\tname: \"color\",\n\tdefaultErrorMessage: \"The :input must be a valid color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hex.test(value) || colorValidationRegex.rgb.test(value) || colorValidationRegex.rgba.test(value) || colorValidationRegex.hsl.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Hex color rule\n*/\nconst hexColorRule = {\n\tname: \"hexColor\",\n\tdefaultErrorMessage: \"The :input must be a valid hex color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hex.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* RGB color rule\n*/\nconst rgbColorRule = {\n\tname: \"rgbColor\",\n\tdefaultErrorMessage: \"The :input must be a valid RGB color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.rgb.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* RGBA color rule\n*/\nconst rgbaColorRule = {\n\tname: \"rgbaColor\",\n\tdefaultErrorMessage: \"The :input must be a valid RGBA color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.rgba.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* HSL color rule\n*/\nconst hslColorRule = {\n\tname: \"hslColor\",\n\tdefaultErrorMessage: \"The :input must be a valid HSL color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hsl.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Light color rule\n*/\nconst lightColorRule = {\n\tname: \"lightColor\",\n\tdefaultErrorMessage: \"The :input must be a light color\",\n\tasync validate(value, context) {\n\t\tif (!colorValidationRegex.hex.test(value)) return invalidRule(this, context);\n\t\tconst hex = value.replace(\"#\", \"\");\n\t\tconst r = parseInt(hex.substring(0, 2), 16);\n\t\tconst g = parseInt(hex.substring(2, 4), 16);\n\t\tconst b = parseInt(hex.substring(4, 6), 16);\n\t\tif ((r * 299 + g * 587 + b * 114) / 1e3 > 155) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Dark color rule\n*/\nconst darkColorRule = {\n\tname: \"darkColor\",\n\tdefaultErrorMessage: \"The :input must be a dark color\",\n\tasync validate(value, context) {\n\t\tif (!colorValidationRegex.hex.test(value)) return invalidRule(this, context);\n\t\tconst hex = value.replace(\"#\", \"\");\n\t\tconst r = parseInt(hex.substring(0, 2), 16);\n\t\tconst g = parseInt(hex.substring(2, 4), 16);\n\t\tconst b = parseInt(hex.substring(4, 6), 16);\n\t\tif ((r * 299 + g * 587 + b * 114) / 1e3 <= 155) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule };\n//# sourceMappingURL=color-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-if-rules.ts\n/**\n* Required if rule - field is required if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst requiredIfRule = {\n\tname: \"requiredIf\",\n\tdescription: \"The field is required if another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue === expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if empty rule - field is required if another field is empty\n* Supports both global and sibling scope\n*/\nconst requiredIfEmptyRule = {\n\tname: \"requiredIfEmpty\",\n\tdescription: \"The field is required if :field is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && isEmptyValue(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if not empty rule - field is required if another field is not empty\n* Supports both global and sibling scope\n*/\nconst requiredIfNotEmptyRule = {\n\tname: \"requiredIfNotEmpty\",\n\tdescription: \"The field is required if :field is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && !isEmptyValue(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if in rule - field is required if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst requiredIfInRule = {\n\tname: \"requiredIfIn\",\n\tdescription: \"The field is required if :field value is in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && values.includes(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.values = this.context.options.values.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if not in rule - field is required if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst requiredIfNotInRule = {\n\tname: \"requiredIfNotIn\",\n\tdescription: \"The field is required if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && !values.includes(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.values = this.context.options.values.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Get multiple field values based on scope\n*/\nfunction getFieldsValues(rule, context) {\n\tconst { fields, scope = \"global\" } = rule.context.options;\n\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\treturn fields.map((field) => get(source, field));\n}\n/**\n* Required if all empty rule - field is required if ALL specified fields are empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAllEmptyRule = {\n\tname: \"requiredIfAllEmpty\",\n\tdescription: \"The field is required if all :fields are empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst allEmpty = getFieldsValues(this, context).every((v) => isEmptyValue(v));\n\t\tif (isEmptyValue(value) && allEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if any empty rule - field is required if ANY of the specified fields is empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAnyEmptyRule = {\n\tname: \"requiredIfAnyEmpty\",\n\tdescription: \"The field is required if any of the :fields is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst anyEmpty = getFieldsValues(this, context).some((v) => isEmptyValue(v));\n\t\tif (isEmptyValue(value) && anyEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if all not empty rule - field is required if ALL specified fields are NOT empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAllNotEmptyRule = {\n\tname: \"requiredIfAllNotEmpty\",\n\tdescription: \"The field is required if all :fields are not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst allNotEmpty = getFieldsValues(this, context).every((v) => !isEmptyValue(v));\n\t\tif (isEmptyValue(value) && allNotEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if any not empty rule - field is required if ANY of the specified fields is NOT empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAnyNotEmptyRule = {\n\tname: \"requiredIfAnyNotEmpty\",\n\tdescription: \"The field is required if any of the :fields is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst anyNotEmpty = getFieldsValues(this, context).some((v) => !isEmptyValue(v));\n\t\tif (isEmptyValue(value) && anyNotEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule };\n//# sourceMappingURL=required-if-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/required-unless-rules.ts\n/**\n* Required unless rule - field is required unless another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst requiredUnlessRule = {\n\tname: \"requiredUnless\",\n\tdescription: \"The field is required unless another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue !== expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.value = this.context.options.value;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredUnlessRule };\n//# sourceMappingURL=required-unless-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/required-when-rule.ts\n/**\n* Required when callback returns true.\n*\n* The callback receives only the SchemaContext (not the value),\n* because \"required\" is about surrounding conditions, not the field itself.\n*\n* @example\n* ```ts\n* v.string().requiredWhen((context) => {\n* return context.allData.notificationMethod === 'email';\n* })\n* ```\n*/\nconst requiredWhenRule = {\n\tname: \"requiredWhen\",\n\tdefaultErrorMessage: \"The :input is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (await this.context.options.callback?.(context) && isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWhenRule };\n//# sourceMappingURL=required-when-rule.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-with-rules.ts\n/**\n* Required with rule - field is required if another field is present\n* Supports both global and sibling scope\n*/\nconst requiredWithRule = {\n\tname: \"requiredWith\",\n\tdescription: \"The field is required if another field is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue !== void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required with all rule - field is required if all specified fields are present\n* Supports both global and sibling scope\n*/\nconst requiredWithAllRule = {\n\tname: \"requiredWithAll\",\n\tdescription: \"The field is required if all specified fields are present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allPresent = fields.every((field) => get(source, field) !== void 0);\n\t\tif (isEmptyValue(value) && allPresent) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required with any rule - field is required if any of the specified fields is present\n* Supports both global and sibling scope\n*/\nconst requiredWithAnyRule = {\n\tname: \"requiredWithAny\",\n\tdescription: \"The field is required if any of the specified fields is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyPresent = fields.some((field) => get(source, field) !== void 0);\n\t\tif (isEmptyValue(value) && anyPresent) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWithAllRule, requiredWithAnyRule, requiredWithRule };\n//# sourceMappingURL=required-with-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-without-rules.ts\n/**\n* Required without rule - field is required if another field is missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutRule = {\n\tname: \"requiredWithout\",\n\tdescription: \"The field is required if another field is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue === void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required without all rule - field is required if all specified fields are missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutAllRule = {\n\tname: \"requiredWithoutAll\",\n\tdescription: \"The field is required if all specified fields are missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allMissing = fields.every((field) => get(source, field) === void 0);\n\t\tif (isEmptyValue(value) && allMissing) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required without any rule - field is required if any of the specified fields is missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutAnyRule = {\n\tname: \"requiredWithoutAny\",\n\tdescription: \"The field is required if any of the specified fields is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyMissing = fields.some((field) => get(source, field) === void 0);\n\t\tif (isEmptyValue(value) && anyMissing) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule };\n//# sourceMappingURL=required-without-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/present-if-rules.ts\n/**\n* Present if rule - field must be present if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst presentIfRule = {\n\tname: \"presentIf\",\n\tdescription: \"The field must be present if another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue === expectedValue) {\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if empty rule - field must be present if another field is empty\n* Supports both global and sibling scope\n*/\nconst presentIfEmptyRule = {\n\tname: \"presentIfEmpty\",\n\tdescription: \"The field must be present if another field is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if not empty rule - field must be present if another field is not empty\n* Supports both global and sibling scope\n*/\nconst presentIfNotEmptyRule = {\n\tname: \"presentIfNotEmpty\",\n\tdescription: \"The field must be present if another field is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && !isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if in rule - field must be present if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst presentIfInRule = {\n\tname: \"presentIfIn\",\n\tdescription: \"The field must be present if another field's value is in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && values.includes(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if not in rule - field must be present if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst presentIfNotInRule = {\n\tname: \"presentIfNotIn\",\n\tdescription: \"The field must be present if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && !values.includes(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule };\n//# sourceMappingURL=present-if-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/conditional/present-unless-rules.ts\n/**\n* Present unless rule - field must be present unless another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst presentUnlessRule = {\n\tname: \"presentUnless\",\n\tdescription: \"The field must be present unless another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue !== expectedValue) {\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentUnlessRule };\n//# sourceMappingURL=present-unless-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/present-with-rules.ts\n/**\n* Present with rule - field must be present if another field is present\n* Supports both global and sibling scope\n*/\nconst presentWithRule = {\n\tname: \"presentWith\",\n\tdescription: \"The field must be present if another field is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue !== void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present with all rule - field must be present if all specified fields are present\n* Supports both global and sibling scope\n*/\nconst presentWithAllRule = {\n\tname: \"presentWithAll\",\n\tdescription: \"The field must be present if all specified fields are present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allPresent = fields.every((field) => get(source, field) !== void 0);\n\t\tif (value === void 0 && allPresent) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present with any rule - field must be present if any of the specified fields is present\n* Supports both global and sibling scope\n*/\nconst presentWithAnyRule = {\n\tname: \"presentWithAny\",\n\tdescription: \"The field must be present if any of the specified fields is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyPresent = fields.some((field) => get(source, field) !== void 0);\n\t\tif (value === void 0 && anyPresent) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentWithAllRule, presentWithAnyRule, presentWithRule };\n//# sourceMappingURL=present-with-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/present-without-rules.ts\n/**\n* Present without rule - field must be present if another field is missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutRule = {\n\tname: \"presentWithout\",\n\tdescription: \"The field must be present if another field is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue === void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present without all rule - field must be present if all specified fields are missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutAllRule = {\n\tname: \"presentWithoutAll\",\n\tdescription: \"The field must be present if all specified fields are missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allMissing = fields.every((field) => get(source, field) === void 0);\n\t\tif (value === void 0 && allMissing) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present without any rule - field must be present if any of the specified fields is missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutAnyRule = {\n\tname: \"presentWithoutAny\",\n\tdescription: \"The field must be present if any of the specified fields is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyMissing = fields.some((field) => get(source, field) === void 0);\n\t\tif (value === void 0 && anyMissing) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule };\n//# sourceMappingURL=present-without-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/forbidden-if-rules.ts\n/**\n* Forbidden if rule - field is forbidden if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst forbiddenIfRule = {\n\tname: \"forbiddenIf\",\n\tdescription: \"The field is forbidden if another field equals a specific value\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && fieldValue === expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not rule - field is forbidden if another field does NOT equal a specific value\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotRule = {\n\tname: \"forbiddenIfNot\",\n\tdescription: \"The field is forbidden if another field does NOT equal a specific value\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && fieldValue !== expectedValue) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if empty rule - field is forbidden if another field is empty\n* Supports both global and sibling scope\n*/\nconst forbiddenIfEmptyRule = {\n\tname: \"forbiddenIfEmpty\",\n\tdescription: \"The field is forbidden if another field is empty\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not empty rule - field is forbidden if another field is not empty\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotEmptyRule = {\n\tname: \"forbiddenIfNotEmpty\",\n\tdescription: \"The field is forbidden if another field is not empty\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && !isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if in rule - field is forbidden if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst forbiddenIfInRule = {\n\tname: \"forbiddenIfIn\",\n\tdescription: \"The field is forbidden if another field's value is in the given array\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && values.includes(fieldValue)) {\n\t\t\tthis.context.translationParams.values = values.join(\", \");\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not in rule - field is forbidden if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotInRule = {\n\tname: \"forbiddenIfNotIn\",\n\tdescription: \"The field is forbidden if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && !values.includes(fieldValue)) {\n\t\t\tthis.context.translationParams.values = values.join(\", \");\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule };\n//# sourceMappingURL=forbidden-if-rules.mjs.map","import { VALID_RULE, invalidRule, resolveTranslation } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/enum.ts\n/**\n* Enum rule - value must be one of the enum values\n*/\nconst enumRule = {\n\tname: \"enum\",\n\tdefaultErrorMessage: \"The :input must be one of the following values: :enum\",\n\tasync validate(value, context) {\n\t\tconst enumValues = this.context.options.enum;\n\t\tif (enumValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.enum = enumValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* In rule - value must be in the given array\n*/\nconst inRule = {\n\tname: \"in\",\n\tdefaultErrorMessage: \"The :input must be one of the following values: :values\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.values.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.values = this.context.options.values.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Allowed values rule - value must be one of allowed values\n*/\nconst allowedValuesRule = {\n\tname: \"allowedValues\",\n\tdefaultErrorMessage: \"The :input must be one of the allowed values\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.allowedValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.allowedValues = this.context.options.allowedValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Not allowed values rule - value must not be in forbidden list\n*/\nconst notAllowedValuesRule = {\n\tname: \"notAllowedValues\",\n\tdefaultErrorMessage: \"The :input contains a forbidden value\",\n\tasync validate(value, context) {\n\t\tif (!this.context.options.notAllowedValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.notAllowedValues = this.context.options.notAllowedValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { allowedValuesRule, enumRule, inRule, notAllowedValuesRule };\n//# sourceMappingURL=enum.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/equals-field-rules.ts\n/**\n* Equals field rule - value must equal another field's value\n* Supports both global and sibling scope\n*/\nconst equalsFieldRule = {\n\tname: \"equalsField\",\n\tdescription: \"The value must equal another field's value\",\n\tsortOrder: -1,\n\trequiresValue: true,\n\tdefaultErrorMessage: \"The :input must match the :field field\",\n\tasync validate(value, context) {\n\t\tif (value !== getFieldValue(this, context)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Not equals field rule - value must NOT equal another field's value\n* Supports both global and sibling scope\n*/\nconst notEqualsFieldRule = {\n\tname: \"notEqualsField\",\n\tdescription: \"The value must NOT equal another field's value\",\n\tsortOrder: -1,\n\trequiresValue: true,\n\tdefaultErrorMessage: \"The :input must not match the :field field\",\n\tasync validate(value, context) {\n\t\tif (value === getFieldValue(this, context)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { equalsFieldRule, notEqualsFieldRule };\n//# sourceMappingURL=equals-field-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/instanceof.ts\n/**\n* InstanceOf rule - value must be an instance of the given constructor.\n*\n* Uses the `instanceof` operator at runtime. Useful for class instances\n* not representable in JSON Schema (File, Buffer, custom domain classes).\n*/\nconst instanceofRule = {\n\tname: \"instanceof\",\n\tdefaultErrorMessage: \"The :input must be an instance of :name\",\n\tasync validate(value, context) {\n\t\tif (value instanceof this.context.options.ctor) return VALID_RULE;\n\t\tthis.context.translationParams.name = this.context.options.name;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { instanceofRule };\n//# sourceMappingURL=instanceof.mjs.map","import { VALID_RULE, invalidRule, resolveTranslation } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/literal.ts\n/**\n* Literal rule - value must be strictly equal to one of the literal values.\n*\n* Uses === (referential / strict equality), so distinguishes 1 from \"1\",\n* true from \"true\", etc. Mirrors `v.string().oneOf([...])` but at the\n* literal type level (TypeScript narrows to the union of literals).\n*/\nconst literalRule = {\n\tname: \"literal\",\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input must be one of the following values: :values\",\n\tasync validate(value, context) {\n\t\tif (value === void 0) return VALID_RULE;\n\t\tif (this.context.options.values.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.values = this.context.options.values.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { literalRule };\n//# sourceMappingURL=literal.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isObject, isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/rules/common/type-rules.ts\n/**\n* String rule - validates string type\n*/\nconst stringRule = {\n\tname: \"string\",\n\tdefaultErrorMessage: \"The :input must be a string\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"string\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Number rule - validates number type\n*/\nconst numberRule = {\n\tname: \"number\",\n\tdefaultErrorMessage: \"The :input must be a number\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"number\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Boolean rule - validates boolean type\n*/\nconst booleanRule = {\n\tname: \"boolean\",\n\tdefaultErrorMessage: \"The :input must be a boolean\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"boolean\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Int rule - validates integer type\n*/\nconst intRule = {\n\tname: \"int\",\n\tdefaultErrorMessage: \"The :input must be an integer\",\n\tasync validate(value, context) {\n\t\tif (Number.isInteger(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Float rule - validates float type\n*/\nconst floatRule = {\n\tname: \"float\",\n\tdefaultErrorMessage: \"The :input must be a float\",\n\tasync validate(value, context) {\n\t\tif (Number.isFinite(value) && !Number.isInteger(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Scalar rule - validates scalar value (string, number, or boolean)\n*/\nconst scalarRule = {\n\tname: \"scalar\",\n\tdefaultErrorMessage: \"The :input must be a scalar value\",\n\tasync validate(value, context) {\n\t\tif ([\n\t\t\t\"string\",\n\t\t\t\"number\",\n\t\t\t\"boolean\"\n\t\t].includes(typeof value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Object rule - validates object type\n*/\nconst objectRule = {\n\tname: \"object\",\n\tdefaultErrorMessage: \"The :input must be an object\",\n\tasync validate(value, context) {\n\t\tif (!!isObject(value) && value !== null) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Object rule - validates object type\n*/\nconst plainObjectRule = {\n\tname: \"plainObject\",\n\tdefaultErrorMessage: \"The :input must be an object\",\n\tasync validate(value, context) {\n\t\tif (!!isPlainObject(value) && value !== null) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Array rule - validates array type\n*/\nconst arrayRule = {\n\tname: \"array\",\n\tdefaultErrorMessage: \"The :input must be an array\",\n\tasync validate(value, context) {\n\t\tif (Array.isArray(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule };\n//# sourceMappingURL=type-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/unknown-key.ts\n/**\n* Unknown key rule - validates that object doesn't have unknown keys\n*/\nconst unknownKeyRule = {\n\tname: \"unknownKeys\",\n\tdefaultErrorMessage: \"The :input contains unknown keys: :unknownKeys\",\n\tasync validate(value, context) {\n\t\tconst schema = this.context.options.schema;\n\t\tconst allowedKeys = [...Object.keys(schema), ...this.context.options.allowedKeys || []];\n\t\tconst unknownKeys = Object.keys(value).filter((key) => !allowedKeys.includes(key));\n\t\tif (unknownKeys.length > 0) {\n\t\t\tthis.context.translationParams.unknownKeys = unknownKeys.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { unknownKeyRule };\n//# sourceMappingURL=unknown-key.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { flipArrayMutator, sortArrayMutator, uniqueArrayMutator } from \"../mutators/array-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { betweenLengthRule, lengthRule, maxLengthRule, minLengthRule } from \"../rules/length/length-rules.mjs\";\nimport { sortedArrayRule, uniqueArrayRule } from \"../rules/array/array-rules.mjs\";\nimport { arrayRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/array-validator.ts\n/**\n* Array validator class\n*/\nvar ArrayValidator = class extends BaseValidator {\n\tconstructor(validator, errorMessage) {\n\t\tsuper();\n\t\tthis.validator = validator;\n\t\tthis.addMutableRule(arrayRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an array type\n\t*/\n\tmatchesType(value) {\n\t\treturn Array.isArray(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.validator = this.validator.clone();\n\t\treturn cloned;\n\t}\n\t/** Reverse array order */\n\tflip() {\n\t\treturn this.addMutator(flipArrayMutator);\n\t}\n\t/** Reverse array order (alias) */\n\treverse() {\n\t\treturn this.addMutator(flipArrayMutator);\n\t}\n\t/** Make it has only unique values */\n\tonlyUnique() {\n\t\treturn this.addMutator(uniqueArrayMutator);\n\t}\n\t/** Sort array */\n\tsort(direction = \"asc\", key) {\n\t\treturn this.addMutator(sortArrayMutator, {\n\t\t\tdirection,\n\t\t\tkey\n\t\t});\n\t}\n\t/** Array length must be greater than the given length */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** Array length must be less than the given length */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/** Array length must be of the given length */\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/**\n\t* Array length must be between min and max (inclusive)\n\t*\n\t* @param min - Minimum length (inclusive)\n\t* @param max - Maximum length (inclusive)\n\t*\n\t* @example\n\t* ```ts\n\t* v.array(v.string()).between(1, 10) // Array must have 1 to 10 items\n\t* v.array(v.number()).lengthBetween(5, 20) // Same using alias\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenLengthRule, errorMessage, {\n\t\t\tminLength: min,\n\t\t\tmaxLength: max\n\t\t});\n\t}\n\t/**\n\t* Alias for between() - array length between min and max\n\t*/\n\tlengthBetween(min, max, errorMessage) {\n\t\treturn this.between(min, max, errorMessage);\n\t}\n\t/** Array must have unique values */\n\tunique(errorMessage) {\n\t\treturn this.addRule(uniqueArrayRule, errorMessage);\n\t}\n\t/** Array must be sorted */\n\tsorted(direction = \"asc\", errorMessage) {\n\t\treturn this.addRule(sortedArrayRule, errorMessage, { direction });\n\t}\n\t/** Mutate the data */\n\tmutate(data, context) {\n\t\tif (!Array.isArray(data)) return data;\n\t\treturn super.mutate([...data], context);\n\t}\n\t/** Validate array\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional array\n\t* fields would silently materialise as `[]` in the validated output.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!Array.isArray(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tconst validationPromises = mutatedData.map(async (value, index) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue,\n\t\t\t\tkey: index.toString(),\n\t\t\t\tpath: setKeyPath(context.path, index.toString())\n\t\t\t};\n\t\t\tconst childResult = await this.validator.validate(value, childContext);\n\t\t\tmutatedData[index] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Recursively generates JSON Schema for the array items.\n\t*\n\t* @example\n\t* ```ts\n\t* v.array(v.string().min(1)).minLength(1).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"array\", items: { type: \"string\", minLength: 1 }, minItems: 1 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\titems: this.validator.toJsonSchema(target)\n\t\t};\n\t\tconst minOpts = getRuleOptions(this.rules, \"minLength\");\n\t\tif (minOpts?.minLength !== void 0) schema.minItems = minOpts.minLength;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"maxLength\");\n\t\tif (maxOpts?.maxLength !== void 0) schema.maxItems = maxOpts.maxLength;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenLength\");\n\t\tif (betweenOpts) {\n\t\t\tif (betweenOpts.minLength !== void 0) schema.minItems = betweenOpts.minLength;\n\t\t\tif (betweenOpts.maxLength !== void 0) schema.maxItems = betweenOpts.maxLength;\n\t\t}\n\t\tconst lengthOpts = getRuleOptions(this.rules, \"length\");\n\t\tif (lengthOpts?.length !== void 0) {\n\t\t\tschema.minItems = lengthOpts.length;\n\t\t\tschema.maxItems = lengthOpts.length;\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { ArrayValidator };\n//# sourceMappingURL=array-validator.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { equalRule } from \"../../rules/core/equal.mjs\";\nimport { whenRule } from \"../../rules/core/when.mjs\";\nimport { equalsFieldRule, notEqualsFieldRule } from \"../../rules/common/equals-field-rules.mjs\";\nimport \"../../rules/index.mjs\";\n\n//#region ../seal/src/validators/methods/equality-conditional-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst equalityConditionalMethodsApplied = true;\n/**\n* Value must be equal to the given value\n*/\nBaseValidator.prototype.equal = function(value, errorMessage) {\n\treturn this.addRule(equalRule, errorMessage, { value });\n};\n/**\n* Value must be the same as another field's value\n*/\nBaseValidator.prototype.sameAs = function(field, errorMessage) {\n\treturn this.addRule(equalsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value must be the same as another sibling field's value\n*/\nBaseValidator.prototype.sameAsSibling = function(field, errorMessage) {\n\treturn this.addRule(equalsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value must be different from another field's value\n*/\nBaseValidator.prototype.differentFrom = function(field, errorMessage) {\n\treturn this.addRule(notEqualsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value must be different from another sibling field's value\n*/\nBaseValidator.prototype.differentFromSibling = function(field, errorMessage) {\n\treturn this.addRule(notEqualsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Apply different validation rules based on another field's value (global scope)\n*\n* Use this when you need to apply completely different validators\n* based on another field's value (not just required/optional).\n*\n* @param field - Field name to check (can be nested with dot notation)\n* @param options - Validation options per field value\n*\n* @example\n* ```ts\n* // Different allowed values based on user type\n* v.object({\n* userType: v.string().in(['admin', 'user']),\n* role: v.string().when('userType', {\n* is: {\n* admin: v.string().in(['super', 'moderator']),\n* user: v.string().in(['member', 'guest'])\n* },\n* otherwise: v.string().optional()\n* })\n* })\n*\n* // Different validation rules based on type\n* v.object({\n* contactType: v.string().in(['email', 'phone']),\n* contact: v.string().when('contactType', {\n* is: {\n* email: v.string().email(),\n* phone: v.string().pattern(/^\\d{10}$/)\n* }\n* })\n* })\n* ```\n* @category Conditional Validation\n*/\nBaseValidator.prototype.when = function(field, options) {\n\treturn this.addRule(whenRule, void 0, {\n\t\tfield,\n\t\tis: options.is,\n\t\totherwise: options.otherwise,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Apply different validation rules based on sibling field's value\n*\n* Use this for nested objects where you need to check a field\n* within the same parent object.\n*\n* @param siblingField - Sibling field name to check\n* @param options - Validation options per field value\n*\n* @example\n* ```ts\n* // Array of users with role-based permissions\n* v.array(v.object({\n* userType: v.string().in(['admin', 'user']),\n* permissions: v.string().whenSibling('userType', {\n* is: {\n* admin: v.string().in(['read', 'write', 'delete']),\n* user: v.string().in(['read'])\n* }\n* })\n* }))\n* ```\n* @category Conditional Validation\n*/\nBaseValidator.prototype.whenSibling = function(siblingField, options) {\n\treturn this.addRule(whenRule, void 0, {\n\t\tfield: siblingField,\n\t\tis: options.is,\n\t\totherwise: options.otherwise,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { equalityConditionalMethodsApplied };\n//# sourceMappingURL=equality-conditional-methods.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { forbiddenRule } from \"../../rules/core/forbidden.mjs\";\nimport { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from \"../../rules/conditional/forbidden-if-rules.mjs\";\n\n//#region ../seal/src/validators/methods/forbidden-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst forbiddenMethodsApplied = true;\n/**\n* Value is forbidden to be present\n*/\nBaseValidator.prototype.forbidden = function(errorMessage) {\n\treturn this.addRule(forbiddenRule, errorMessage);\n};\n/**\n* Value is forbidden if another field equals a specific value (global scope)\n*/\nBaseValidator.prototype.forbiddenIf = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field equals a specific value (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfSibling = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field does NOT equal a specific value (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNot = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfNotRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field does NOT equal a specific value (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotSibling = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfNotRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field is empty (global scope)\n*/\nBaseValidator.prototype.forbiddenIfEmpty = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field is empty (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field is not empty (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNotEmpty = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field is not empty (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is in the given array (global scope)\n*/\nBaseValidator.prototype.forbiddenIfIn = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is in the given array (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is NOT in the given array (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNotIn = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is NOT in the given array (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { forbiddenMethodsApplied };\n//# sourceMappingURL=forbidden-methods.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from \"../../rules/conditional/present-if-rules.mjs\";\nimport { presentUnlessRule } from \"../../rules/conditional/present-unless-rules.mjs\";\nimport { presentWithAllRule, presentWithAnyRule, presentWithRule } from \"../../rules/conditional/present-with-rules.mjs\";\nimport { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from \"../../rules/conditional/present-without-rules.mjs\";\n\n//#region ../seal/src/validators/methods/present-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst presentMethodsApplied = true;\n/**\n* Field must be present if another field exists\n*/\nBaseValidator.prototype.presentWith = function(field, errorMessage) {\n\treturn this.addRule(presentWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field exists\n*/\nBaseValidator.prototype.presentWithSibling = function(field, errorMessage) {\n\treturn this.addRule(presentWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is missing\n*/\nBaseValidator.prototype.presentWithout = function(field, errorMessage) {\n\treturn this.addRule(presentWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is missing\n*/\nBaseValidator.prototype.presentWithoutSibling = function(field, errorMessage) {\n\treturn this.addRule(presentWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field equals a specific value\n*/\nBaseValidator.prototype.presentIf = function(field, value, errorMessage) {\n\treturn this.addRule(presentIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field equals a specific value\n*/\nBaseValidator.prototype.presentIfSibling = function(field, value, errorMessage) {\n\treturn this.addRule(presentIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present unless another field equals a specific value\n*/\nBaseValidator.prototype.presentUnless = function(field, value, errorMessage) {\n\treturn this.addRule(presentUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present unless another sibling field equals a specific value\n*/\nBaseValidator.prototype.presentUnlessSibling = function(field, value, errorMessage) {\n\treturn this.addRule(presentUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is empty\n*/\nBaseValidator.prototype.presentIfEmpty = function(field, errorMessage) {\n\treturn this.addRule(presentIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is empty\n*/\nBaseValidator.prototype.presentIfEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(presentIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is not empty\n*/\nBaseValidator.prototype.presentIfNotEmpty = function(field, errorMessage) {\n\treturn this.addRule(presentIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is not empty\n*/\nBaseValidator.prototype.presentIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(presentIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field's value is in the given array\n*/\nBaseValidator.prototype.presentIfIn = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field's value is in the given array\n*/\nBaseValidator.prototype.presentIfInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field's value is NOT in the given array\n*/\nBaseValidator.prototype.presentIfNotIn = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field's value is NOT in the given array\n*/\nBaseValidator.prototype.presentIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if all specified fields exist\n*/\nBaseValidator.prototype.presentWithAll = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if all specified sibling fields exist\n*/\nBaseValidator.prototype.presentWithAllSiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if all specified fields are missing\n*/\nBaseValidator.prototype.presentWithoutAll = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if all specified sibling fields are missing\n*/\nBaseValidator.prototype.presentWithoutAllSiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if any of the specified fields exists\n*/\nBaseValidator.prototype.presentWithAny = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if any of the specified sibling fields exists\n*/\nBaseValidator.prototype.presentWithAnySiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if any of the specified fields is missing\n*/\nBaseValidator.prototype.presentWithoutAny = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if any of the specified sibling fields is missing\n*/\nBaseValidator.prototype.presentWithoutAnySiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { presentMethodsApplied };\n//# sourceMappingURL=present-methods.mjs.map","import { presentRule, requiredRule } from \"../../rules/core/required.mjs\";\nimport { BaseValidator } from \"../base-validator.mjs\";\nimport { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from \"../../rules/conditional/required-if-rules.mjs\";\nimport { requiredUnlessRule } from \"../../rules/conditional/required-unless-rules.mjs\";\nimport { requiredWhenRule } from \"../../rules/conditional/required-when-rule.mjs\";\nimport { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from \"../../rules/conditional/required-with-rules.mjs\";\nimport { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from \"../../rules/conditional/required-without-rules.mjs\";\n\n//#region ../seal/src/validators/methods/required-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n* Without a real export, side-effect-only augmentation modules get tree-shaken\n* out of the published types, dropping every chainable rule method.\n*/\nconst requiredMethodsApplied = true;\n/**\n* This value must be present and has a value\n*/\nBaseValidator.prototype.required = function(errorMessage) {\n\treturn this.setRequiredRule(requiredRule, errorMessage);\n};\n/**\n* Value must be present but not necessarily has a value\n*/\nBaseValidator.prototype.present = function(errorMessage) {\n\treturn this.setRequiredRule(presentRule, errorMessage);\n};\n/**\n* Mark the field as optional — it may be absent or empty without validation errors.\n* Clears any previously set required rule.\n*\n* The return type is branded with `{ isOptional: true }` so schema inference\n* can mark this key as optional in the inferred TypeScript type.\n*/\nBaseValidator.prototype.optional = function() {\n\tconst instance = this.instance;\n\tinstance.isOptional = true;\n\tinstance.requiredRule = null;\n\treturn instance;\n};\n/**\n* Sugar — equivalent to `.optional().nullable()`.\n*/\nBaseValidator.prototype.nullish = function() {\n\treturn this.optional().nullable();\n};\n/**\n* Value is required if another field exists\n*/\nBaseValidator.prototype.requiredWith = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field exists\n*/\nBaseValidator.prototype.requiredWithSibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is missing\n*/\nBaseValidator.prototype.requiredWithout = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is missing\n*/\nBaseValidator.prototype.requiredWithoutSibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field equals a specific value\n*/\nBaseValidator.prototype.requiredIf = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field equals a specific value\n*/\nBaseValidator.prototype.requiredIfSibling = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required unless another field equals a specific value\n*/\nBaseValidator.prototype.requiredUnless = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required unless another sibling field equals a specific value\n*/\nBaseValidator.prototype.requiredUnlessSibling = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is empty\n*/\nBaseValidator.prototype.requiredIfEmpty = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is empty\n*/\nBaseValidator.prototype.requiredIfEmptySibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is not empty\n*/\nBaseValidator.prototype.requiredIfNotEmpty = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is not empty\n*/\nBaseValidator.prototype.requiredIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ALL specified fields are empty\n*/\nBaseValidator.prototype.requiredIfAllEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ALL specified sibling fields are empty\n*/\nBaseValidator.prototype.requiredIfAllEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ANY of the specified fields is empty\n*/\nBaseValidator.prototype.requiredIfAnyEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ANY of the specified sibling fields is empty\n*/\nBaseValidator.prototype.requiredIfAnyEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ALL specified fields are NOT empty\n*/\nBaseValidator.prototype.requiredIfAllNotEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ALL specified sibling fields are NOT empty\n*/\nBaseValidator.prototype.requiredIfAllNotEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ANY of the specified fields is NOT empty\n*/\nBaseValidator.prototype.requiredIfAnyNotEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ANY of the specified sibling fields is NOT empty\n*/\nBaseValidator.prototype.requiredIfAnyNotEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field's value is in the given array\n*/\nBaseValidator.prototype.requiredIfIn = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field's value is in the given array\n*/\nBaseValidator.prototype.requiredIfInSibling = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field's value is NOT in the given array\n*/\nBaseValidator.prototype.requiredIfNotIn = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field's value is NOT in the given array\n*/\nBaseValidator.prototype.requiredIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if all specified fields exist\n*/\nBaseValidator.prototype.requiredWithAll = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if all specified sibling fields exist\n*/\nBaseValidator.prototype.requiredWithAllSiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if all specified fields are missing\n*/\nBaseValidator.prototype.requiredWithoutAll = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if all specified sibling fields are missing\n*/\nBaseValidator.prototype.requiredWithoutAllSiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if any of the specified fields exists\n*/\nBaseValidator.prototype.requiredWithAny = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if any of the specified sibling fields exists\n*/\nBaseValidator.prototype.requiredWithAnySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if any of the specified fields is missing\n*/\nBaseValidator.prototype.requiredWithoutAny = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if any of the specified sibling fields is missing\n*/\nBaseValidator.prototype.requiredWithoutAnySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Make this field required based on a custom callback.\n* Callback receives only SchemaContext — the framework handles empty-value checking.\n*/\nBaseValidator.prototype.requiredWhen = function(callback, errorMessage) {\n\treturn this.setRequiredRule(requiredWhenRule, errorMessage, { callback });\n};\n\n//#endregion\nexport { requiredMethodsApplied };\n//# sourceMappingURL=required-methods.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\nimport { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from \"../rules/common/enum.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/primitive-validator.ts\n/**\n* Abstract base validator for primitive-typed fields (string, number, boolean).\n*\n* Provides value-membership rules that are meaningful for any single primitive value\n* but not for complex structures (object, array).\n*\n* Do NOT expose this on the `v` factory — it is an inheritance-only base class.\n*\n* Hierarchy:\n* BaseValidator\n* └── PrimitiveValidator ← enum, in, oneOf, allowsOnly, forbids, notIn\n* ├── StringValidator\n* ├── NumberValidator\n* │ └── FloatValidator\n* ├── BooleanValidator\n* └── ScalarValidator (extends PrimitiveValidator, adds asNumber/asString/accepted/declined)\n*\n* @example\n* class MyValidator extends PrimitiveValidator {\n* // inherits: in(), forbids(), enum(), oneOf(), allowsOnly(), notIn()\n* }\n*/\nvar PrimitiveValidator = class extends BaseValidator {\n\t/**\n\t* Value must be one of the enum's values\n\t*\n\t* @example\n\t* v.string().enum(Direction) // Direction is a TS enum\n\t*/\n\tenum(values, errorMessage) {\n\t\treturn this.addRule(enumRule, errorMessage, { enum: Object.values(values) });\n\t}\n\t/**\n\t* Value must be one of the given values\n\t*\n\t* @example\n\t* v.string().in([\"admin\", \"user\", \"guest\"])\n\t* v.number().in([1, 2, 3])\n\t*/\n\tin(values, errorMessage) {\n\t\treturn this.addRule(inRule, errorMessage, { values });\n\t}\n\t/**\n\t* Alias for `in()`\n\t*\n\t* @example\n\t* v.string().oneOf([\"active\", \"inactive\"])\n\t*/\n\toneOf(values, errorMessage) {\n\t\treturn this.in(values, errorMessage);\n\t}\n\t/**\n\t* Value must be one of the allowed values (stricter variant)\n\t*\n\t* @example\n\t* v.string().allowsOnly([\"yes\", \"no\"])\n\t*/\n\tallowsOnly(values, errorMessage) {\n\t\treturn this.addRule(allowedValuesRule, errorMessage, { allowedValues: values });\n\t}\n\t/**\n\t* Value must NOT be one of the given values\n\t*\n\t* @example\n\t* v.string().forbids([\"banned\", \"blacklisted\"])\n\t* v.number().forbids([0, -1])\n\t*/\n\tforbids(values, errorMessage) {\n\t\treturn this.addRule(notAllowedValuesRule, errorMessage, { notAllowedValues: values });\n\t}\n\t/**\n\t* Alias for `forbids()`\n\t*\n\t* @example\n\t* v.string().notIn([\"OK\", \"NOT OK\"])\n\t*/\n\tnotIn(values, errorMessage) {\n\t\treturn this.forbids(values, errorMessage);\n\t}\n};\n\n//#endregion\nexport { PrimitiveValidator };\n//# sourceMappingURL=primitive-validator.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/scalar/accepted-rule.ts\nconst isAcceptedValue = (value) => {\n\treturn [\n\t\t\"1\",\n\t\t\"true\",\n\t\t\"yes\",\n\t\t\"y\",\n\t\t\"on\",\n\t\t1,\n\t\ttrue,\n\t\t\"Yes\",\n\t\t\"Y\",\n\t\t\"On\"\n\t].includes(value);\n};\n/**\n* Validate value as accepted if it equals:\n* 1 | \"1\" | true | \"true\" | \"yes\" | \"y\" | \"on\"\n*/\nconst acceptedRule = {\n\tname: \"accepted\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tdescription: \"The value must be accepted if it equals: 1 | '1' | true | 'true' | 'yes' | 'y' | 'on' | 1 | true | 'Yes' | 'Y' | 'On'\",\n\tasync validate(value, context) {\n\t\tif (isAcceptedValue(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Accepted value if another field's value equals to a specific value\n*/\nconst acceptedIfRule = {\n\tname: \"acceptedIf\",\n\tdescription: \"The field must be accepted if :field's value equals to :value\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue !== expectedValue) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is not equal to the given value\n*/\nconst acceptedUnlessRule = {\n\tname: \"acceptedUnless\",\n\tdescription: \"The field must be accepted if :field's value is not equal to :value\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue === expectedValue) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is required\n*/\nconst acceptedIfRequiredRule = {\n\tname: \"acceptedIfRequired\",\n\tdescription: \"The field must be accepted if :field is required\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is present\n*/\nconst acceptedIfPresentRule = {\n\tname: \"acceptedIfPresent\",\n\tdescription: \"The field must be accepted if :field is present\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue === void 0) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is missing\n*/\nconst acceptedWithoutRule = {\n\tname: \"acceptedWithout\",\n\tdescription: \"The field must be accepted if :field is missing\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue !== void 0) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule };\n//# sourceMappingURL=accepted-rule.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/scalar/declined-rule.ts\nconst isDeclinedValue = (value) => {\n\treturn [\n\t\t\"0\",\n\t\t\"false\",\n\t\t\"no\",\n\t\t\"n\",\n\t\t\"off\",\n\t\t0,\n\t\tfalse,\n\t\t\"No\",\n\t\t\"N\",\n\t\t\"Off\"\n\t].includes(value);\n};\n/**\n* Validate value as declined if it equals:\n* 0 | \"0\" | false | \"false\" | \"no\" | \"n\" | \"off\" | 0 | false | \"No\" | \"N\" | \"Off\"\n*/\nconst declinedRule = {\n\tname: \"declined\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tdescription: \"The value must be declined if it equals: 0 | '0' | false | 'false' | 'no' | 'n' | 'off' | 0 | false | 'No' | 'N' | 'Off'\",\n\tasync validate(value, context) {\n\t\tif (isDeclinedValue(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Declined value if another field's value equals to a specific value\n*/\nconst declinedIfRule = {\n\tname: \"declinedIf\",\n\tdescription: \"The field must be declined if :field's value equals to :value\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue !== expectedValue) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is not equal to the given value\n*/\nconst declinedUnlessRule = {\n\tname: \"declinedUnless\",\n\tdescription: \"The field must be declined if :field's value is not equal to :value\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue === expectedValue) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is required\n*/\nconst declinedIfRequiredRule = {\n\tname: \"declinedIfRequired\",\n\tdescription: \"The field must be declined if :field is required\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is present\n*/\nconst declinedIfPresentRule = {\n\tname: \"declinedIfPresent\",\n\tdescription: \"The field must be declined if :field is present\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue === void 0) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is missing\n*/\nconst declinedWithoutRule = {\n\tname: \"declinedWithout\",\n\tdescription: \"The field must be declined if :field is missing\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue !== void 0) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule };\n//# sourceMappingURL=declined-rule.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { booleanRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\nimport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule } from \"../rules/scalar/accepted-rule.mjs\";\nimport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule } from \"../rules/scalar/declined-rule.mjs\";\nimport \"../rules/scalar/index.mjs\";\n\n//#region ../seal/src/validators/boolean-validator.ts\n/**\n* Boolean validator class\n*\n* Extends PrimitiveValidator — inherits enum/in/oneOf/allowsOnly/forbids/notIn.\n* Defines accepted/declined directly as real methods (not ScalarValidator field copies)\n* so they survive cloning correctly.\n*/\nvar BooleanValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(booleanRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a boolean type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"boolean\";\n\t}\n\t/** Value must be accepted (true, \"yes\", 1, \"on\", etc.) */\n\taccepted(errorMessage) {\n\t\treturn this.addRule(acceptedRule, errorMessage);\n\t}\n\t/** Value must be accepted if another field equals a value */\n\tacceptedIf(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be accepted unless another field equals a value */\n\tacceptedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be accepted if another field is required */\n\tacceptedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfRequiredRule, errorMessage, { field });\n\t}\n\t/** Value must be accepted if another field is present */\n\tacceptedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfPresentRule, errorMessage, { field });\n\t}\n\t/** Value must be accepted if another field is missing */\n\tacceptedWithout(field, errorMessage) {\n\t\treturn this.addRule(acceptedWithoutRule, errorMessage, { field });\n\t}\n\t/** Value must be declined (false, \"no\", 0, \"off\", etc.) */\n\tdeclined(errorMessage) {\n\t\treturn this.addRule(declinedRule, errorMessage);\n\t}\n\t/** Value must be declined if another field equals a value */\n\tdeclinedIf(field, value, errorMessage) {\n\t\treturn this.addRule(declinedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be declined unless another field equals a value */\n\tdeclinedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(declinedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be declined if another field is required */\n\tdeclinedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(declinedIfRequiredRule, errorMessage, { field });\n\t}\n\t/** Value must be declined if another field is present */\n\tdeclinedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(declinedIfPresentRule, errorMessage, { field });\n\t}\n\t/** Value must be declined if another field is missing */\n\tdeclinedWithout(field, errorMessage) {\n\t\treturn this.addRule(declinedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* Value must be strictly true (not \"yes\", \"on\", 1, etc.)\n\t* @alias accepted - strict version\n\t*/\n\tmustBeTrue(errorMessage) {\n\t\treturn this.equal(true, errorMessage);\n\t}\n\t/**\n\t* Value must be strictly false (not \"no\", \"off\", 0, etc.)\n\t* @alias declined - strict version\n\t*/\n\tmustBeFalse(errorMessage) {\n\t\treturn this.equal(false, errorMessage);\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* @note accepted/declined rules and all cross-field boolean rules\n\t* are not representable in JSON Schema and are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.boolean().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"boolean\" }\n\t*\n\t* v.boolean().nullable().toJsonSchema(\"openapi-3.0\")\n\t* // → { type: \"boolean\", nullable: true }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { type: \"boolean\" };\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { BooleanValidator };\n//# sourceMappingURL=boolean-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/computed-validator.ts\n/**\n* Computed field validator\n*\n* Computes a value based on other validated fields in the schema.\n* The computed value is persisted and can optionally be validated.\n*\n* @example\n* ```ts\n* // Basic computed field\n* const schema = v.object({\n* title: v.string().required(),\n* slug: v.computed(data => slugify(data.title)),\n* });\n*\n* // With result validation\n* const schema = v.object({\n* title: v.string().required(),\n* slug: v.computed(\n* data => slugify(data.title),\n* v.string().minLength(3)\n* ),\n* });\n*\n* // Async computation\n* const schema = v.object({\n* image: v.string().url(),\n* thumbnail: v.computed(async data => {\n* return await generateThumbnail(data.image);\n* }),\n* });\n* ```\n*/\nvar ComputedValidator = class extends BaseValidator {\n\t/**\n\t* Create a new computed field validator\n\t*\n\t* @param callback - Function to compute the value from validated data\n\t* @param resultValidator - Optional validator to validate the computed result\n\t*/\n\tconstructor(callback, resultValidator) {\n\t\tsuper();\n\t\tthis.callback = callback;\n\t\tthis.resultValidator = resultValidator;\n\t}\n\t/**\n\t* Execute the callback and optionally validate the result\n\t*/\n\tasync validate(data, context) {\n\t\ttry {\n\t\t\tconst result = await this.callback(data, context);\n\t\t\tif (this.resultValidator) {\n\t\t\t\tconst validation = await this.resultValidator.validate(result, context);\n\t\t\t\tif (!validation.isValid) return {\n\t\t\t\t\tisValid: false,\n\t\t\t\t\terrors: validation.errors,\n\t\t\t\t\tdata: void 0\n\t\t\t\t};\n\t\t\t\treturn {\n\t\t\t\t\tisValid: true,\n\t\t\t\t\terrors: [],\n\t\t\t\t\tdata: validation.data\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tisValid: true,\n\t\t\t\terrors: [],\n\t\t\t\tdata: result\n\t\t\t};\n\t\t} catch (error) {\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors: [{\n\t\t\t\t\ttype: \"computed\",\n\t\t\t\t\terror: error instanceof Error ? error.message : \"Computed field callback failed\",\n\t\t\t\t\tinput: context.path\n\t\t\t\t}],\n\t\t\t\tdata: void 0\n\t\t\t};\n\t\t}\n\t}\n\t/**\n\t* Clone this validator with all its configuration\n\t* Critical for ObjectValidator.clone(), extend(), merge(), etc.\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.callback = this.callback;\n\t\tcloned.resultValidator = this.resultValidator?.clone();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Computed fields don't have a specific type to match\n\t*/\n\tmatchesType(value) {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Computed fields are server-side runtime values — they have no input schema\n\t* and cannot be represented in JSON Schema. Calling this method is always a\n\t* programming error.\n\t*\n\t* @throws Error Always throws — computed/managed fields have no JSON Schema representation.\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\tthrow new Error(\"[Seal] toJsonSchema() is not supported on ComputedValidator / ManagedValidator. Computed fields are runtime-only and have no input JSON Schema representation. ObjectValidator.toJsonSchema() automatically skips computed fields — do not call toJsonSchema() on a computed validator directly.\");\n\t}\n};\n\n//#endregion\nexport { ComputedValidator };\n//# sourceMappingURL=computed-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { isDateValue } from \"../helpers/date-helpers.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toUTCMutator } from \"../mutators/date-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from \"../rules/date/date.mjs\";\nimport { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from \"../rules/date/date-comparison-rules.mjs\";\nimport { businessDayRule, weekdaysRule, weekendRule } from \"../rules/date/date-day-rules.mjs\";\nimport { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from \"../rules/date/date-field-comparison-rules.mjs\";\nimport { betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from \"../rules/date/date-period-rules.mjs\";\nimport { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from \"../rules/date/date-relative-rules.mjs\";\nimport { betweenAgeRule, birthdayRule, leapYearRule } from \"../rules/date/date-special-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport dayjs from \"dayjs\";\n\n//#region ../seal/src/validators/date-validator.ts\n/**\n* Date validator class\n*/\nvar DateValidator = class extends BaseValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableMutator(dateMutator);\n\t\tthis.addMutableRule(dateRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a Date type\n\t*/\n\tmatchesType(value) {\n\t\treturn isDateValue(value);\n\t}\n\t/**\n\t* Convert date to ISO string format\n\t* @category transformer\n\t*/\n\ttoISOString() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? data.toISOString() : data);\n\t}\n\t/** Convert date to Unix timestamp (milliseconds) */\n\ttoTimestamp() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? data.getTime() : data);\n\t}\n\t/** Convert date to specific format using dayjs */\n\ttoFormat(format) {\n\t\treturn this.addTransformer((data, { options }) => data instanceof Date ? dayjs(data).format(options.format) : data, { format });\n\t}\n\t/** Convert to date only (remove time, returns YYYY-MM-DD) */\n\ttoDateOnly() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? dayjs(data).format(\"YYYY-MM-DD\") : data, { __jsonSchemaFormat: \"date\" });\n\t}\n\t/** Convert to time only (returns HH:MM:SS) */\n\ttoTimeOnly() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? dayjs(data).format(\"HH:mm:ss\") : data, { __jsonSchemaFormat: \"time\" });\n\t}\n\t/**\n\t* Convert date to start of day (00:00:00)\n\t* @category mutator\n\t*/\n\ttoStartOfDay() {\n\t\treturn this.addMutator(toStartOfDayMutator);\n\t}\n\t/** Convert date to end of day (23:59:59.999) */\n\ttoEndOfDay() {\n\t\treturn this.addMutator(toEndOfDayMutator);\n\t}\n\t/** Add or subtract days from date */\n\taddDays(days) {\n\t\treturn this.addMutator(addDaysMutator, { days });\n\t}\n\t/** Add or subtract months from date */\n\taddMonths(months) {\n\t\treturn this.addMutator(addMonthsMutator, { months });\n\t}\n\t/** Add or subtract years from date */\n\taddYears(years) {\n\t\treturn this.addMutator(addYearsMutator, { years });\n\t}\n\t/** Add or subtract hours from date */\n\taddHours(hours) {\n\t\treturn this.addMutator(addHoursMutator, { hours });\n\t}\n\t/** Convert date to UTC */\n\ttoUTC() {\n\t\treturn this.addMutator(toUTCMutator);\n\t}\n\t/** Set to start of month */\n\ttoStartOfMonth() {\n\t\treturn this.addMutator(toStartOfMonthMutator);\n\t}\n\t/** Set to end of month */\n\ttoEndOfMonth() {\n\t\treturn this.addMutator(toEndOfMonthMutator);\n\t}\n\t/** Set to start of year */\n\ttoStartOfYear() {\n\t\treturn this.addMutator(toStartOfYearMutator);\n\t}\n\t/** Set to end of year */\n\ttoEndOfYear() {\n\t\treturn this.addMutator(toEndOfYearMutator);\n\t}\n\t/**\n\t* Date must be greater than or equal to the given date or field (inclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @param dateOrField - Date, timestamp, date string, or field name\n\t*\n\t* @example\n\t* ```ts\n\t* // Value comparison\n\t* v.date().min('2024-01-01')\n\t* v.date().min(new Date())\n\t* v.date().min(1698278400000)\n\t*\n\t* // Field comparison\n\t* v.date().min('startsAt')\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tmin(dateOrField, errorMessage) {\n\t\treturn this.addRule(minDateRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be less than or equal to the given date or field (inclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tmax(dateOrField, errorMessage) {\n\t\treturn this.addRule(maxDateRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be strictly less than the given date or field (exclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tbefore(dateOrField, errorMessage) {\n\t\treturn this.addRule(beforeFieldRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be strictly greater than the given date or field (exclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tafter(dateOrField, errorMessage) {\n\t\treturn this.addRule(afterFieldRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/** Date must be between start and end dates */\n\tbetween(startDate, endDate, errorMessage) {\n\t\treturn this.addRule(betweenDatesRule, errorMessage, {\n\t\t\tstartDate,\n\t\t\tendDate\n\t\t});\n\t}\n\t/** Date must be exactly today */\n\ttoday(errorMessage) {\n\t\treturn this.addRule(todayRule, errorMessage);\n\t}\n\t/** Date must be today or in the future */\n\tfromToday(errorMessage) {\n\t\treturn this.addRule(fromTodayRule, errorMessage);\n\t}\n\t/** Date must be before today */\n\tbeforeToday(errorMessage) {\n\t\treturn this.addRule(beforeTodayRule, errorMessage);\n\t}\n\t/** Date must be after today (not including today) */\n\tafterToday(errorMessage) {\n\t\treturn this.addRule(afterTodayRule, errorMessage);\n\t}\n\t/** Date must be in the past */\n\tpast(errorMessage) {\n\t\treturn this.addRule(pastRule, errorMessage);\n\t}\n\t/** Date must be in the future */\n\tfuture(errorMessage) {\n\t\treturn this.addRule(futureRule, errorMessage);\n\t}\n\t/**\n\t* Date must be >= sibling field value (inclusive)\n\t* @category Validation Rule\n\t*/\n\tminSibling(field, errorMessage) {\n\t\treturn this.addRule(minDateRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be <= sibling field value (inclusive)\n\t* @category Validation Rule\n\t*/\n\tmaxSibling(field, errorMessage) {\n\t\treturn this.addRule(maxDateRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be < sibling field value (exclusive)\n\t* @category Validation Rule\n\t*/\n\tbeforeSibling(field, errorMessage) {\n\t\treturn this.addRule(beforeFieldRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be > sibling field value (exclusive)\n\t* @category Validation Rule\n\t*/\n\tafterSibling(field, errorMessage) {\n\t\treturn this.addRule(afterFieldRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Date must be the same as another field's date */\n\tsameAsField(field, errorMessage) {\n\t\treturn this.addRule(sameAsFieldDateRule, errorMessage, {\n\t\t\tfield,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/** Date must be the same as another sibling field's date */\n\tsameAsFieldSibling(field, errorMessage) {\n\t\treturn this.addRule(sameAsFieldDateRule, errorMessage, {\n\t\t\tfield,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Time must be from specific hour onwards (0-23) */\n\tfromHour(hour, errorMessage) {\n\t\treturn this.addRule(fromHourRule, errorMessage, { hour });\n\t}\n\t/** Time must be before specific hour (0-23) */\n\tbeforeHour(hour, errorMessage) {\n\t\treturn this.addRule(beforeHourRule, errorMessage, { hour });\n\t}\n\t/** Time must be between start and end hours (0-23) */\n\tbetweenHours(startHour, endHour, errorMessage) {\n\t\treturn this.addRule(betweenHoursRule, errorMessage, {\n\t\t\tstartHour,\n\t\t\tendHour\n\t\t});\n\t}\n\t/** Time must be from specific minute onwards (0-59) */\n\tfromMinute(minute, errorMessage) {\n\t\treturn this.addRule(fromMinuteRule, errorMessage, { minute });\n\t}\n\t/** Time must be before specific minute (0-59) */\n\tbeforeMinute(minute, errorMessage) {\n\t\treturn this.addRule(beforeMinuteRule, errorMessage, { minute });\n\t}\n\t/** Time must be between start and end minutes (0-59) */\n\tbetweenMinutes(startMinute, endMinute, errorMessage) {\n\t\treturn this.addRule(betweenMinutesRule, errorMessage, {\n\t\t\tstartMinute,\n\t\t\tendMinute\n\t\t});\n\t}\n\t/** Time must be between start and end times (HH:MM format) */\n\tbetweenTimes(startTime, endTime, errorMessage) {\n\t\treturn this.addRule(betweenTimesRule, errorMessage, {\n\t\t\tstartTime,\n\t\t\tendTime\n\t\t});\n\t}\n\t/** Age must be exactly the given years */\n\tage(years, errorMessage) {\n\t\treturn this.addRule(ageRule, errorMessage, { years });\n\t}\n\t/** Minimum age requirement */\n\tminAge(years, errorMessage) {\n\t\treturn this.addRule(minAgeRule, errorMessage, { years });\n\t}\n\t/** Maximum age requirement */\n\tmaxAge(years, errorMessage) {\n\t\treturn this.addRule(maxAgeRule, errorMessage, { years });\n\t}\n\t/** Age must be between min and max years */\n\tbetweenAge(minAge, maxAge, errorMessage) {\n\t\treturn this.addRule(betweenAgeRule, errorMessage, {\n\t\t\tminAge,\n\t\t\tmaxAge\n\t\t});\n\t}\n\t/** Date must be specific weekday */\n\tweekDay(day, errorMessage) {\n\t\treturn this.addRule(weekDayRule, errorMessage, { day });\n\t}\n\t/** Date must be one of specified weekdays */\n\tweekdays(days, errorMessage) {\n\t\treturn this.addRule(weekdaysRule, errorMessage, { days });\n\t}\n\t/** Date must be a weekend (Saturday or Sunday) */\n\tweekend(errorMessage) {\n\t\treturn this.addRule(weekendRule, errorMessage);\n\t}\n\t/** Date must be a business day (Monday-Friday) */\n\tbusinessDay(errorMessage) {\n\t\treturn this.addRule(businessDayRule, errorMessage);\n\t}\n\t/** Date must match specific format */\n\tformat(format, errorMessage) {\n\t\treturn this.addRule(dateRule, errorMessage, { format });\n\t}\n\t/** Date must be within X days from now (past or future) */\n\twithinDays(days, errorMessage) {\n\t\treturn this.addRule(withinDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be within X days in the past */\n\twithinPastDays(days, errorMessage) {\n\t\treturn this.addRule(withinPastDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be within X days in the future */\n\twithinFutureDays(days, errorMessage) {\n\t\treturn this.addRule(withinFutureDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be in specific month (1-12) */\n\tmonth(month, errorMessage) {\n\t\treturn this.addRule(monthRule, errorMessage, { month });\n\t}\n\t/** Date must be in specific year */\n\tyear(year, errorMessage) {\n\t\treturn this.addRule(yearRule, errorMessage, { year });\n\t}\n\t/**\n\t* Date must be between start and end years\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenYears(startYear, endYear, errorMessage) {\n\t\treturn this.addRule(betweenYearsRule, errorMessage, {\n\t\t\tstartYear,\n\t\t\tendYear,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between start and end months (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenMonths(startMonth, endMonth, errorMessage) {\n\t\treturn this.addRule(betweenMonthsRule, errorMessage, {\n\t\t\tstartMonth,\n\t\t\tendMonth,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between start and end days (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenDays(startDay, endDay, errorMessage) {\n\t\treturn this.addRule(betweenDaysRule, errorMessage, {\n\t\t\tstartDay,\n\t\t\tendDay,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field years\n\t* @category Validation Rule\n\t*/\n\tbetweenYearsSibling(startYearField, endYearField, errorMessage) {\n\t\treturn this.addRule(betweenYearsRule, errorMessage, {\n\t\t\tstartYear: startYearField,\n\t\t\tendYear: endYearField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field months\n\t* @category Validation Rule\n\t*/\n\tbetweenMonthsSibling(startMonthField, endMonthField, errorMessage) {\n\t\treturn this.addRule(betweenMonthsRule, errorMessage, {\n\t\t\tstartMonth: startMonthField,\n\t\t\tendMonth: endMonthField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field days\n\t* @category Validation Rule\n\t*/\n\tbetweenDaysSibling(startDayField, endDayField, errorMessage) {\n\t\treturn this.addRule(betweenDaysRule, errorMessage, {\n\t\t\tstartDay: startDayField,\n\t\t\tendDay: endDayField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Year must be >= given year or field\n\t* Smart detection: number or field name\n\t*\n\t* @example\n\t* ```ts\n\t* // Value comparison\n\t* v.date().minYear(2024)\n\t*\n\t* // Field comparison\n\t* v.date().minYear('startYear')\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tminYear(yearOrField, errorMessage) {\n\t\treturn this.addRule(minYearRule, errorMessage, {\n\t\t\tyearOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Year must be <= given year or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxYear(yearOrField, errorMessage) {\n\t\treturn this.addRule(maxYearRule, errorMessage, {\n\t\t\tyearOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Month must be >= given month or field (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tminMonth(monthOrField, errorMessage) {\n\t\treturn this.addRule(minMonthRule, errorMessage, {\n\t\t\tmonthOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Month must be <= given month or field (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxMonth(monthOrField, errorMessage) {\n\t\treturn this.addRule(maxMonthRule, errorMessage, {\n\t\t\tmonthOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Day must be >= given day or field (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tminDay(dayOrField, errorMessage) {\n\t\treturn this.addRule(minDayRule, errorMessage, {\n\t\t\tdayOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Day must be <= given day or field (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxDay(dayOrField, errorMessage) {\n\t\treturn this.addRule(maxDayRule, errorMessage, {\n\t\t\tdayOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Year must be >= sibling field year\n\t* @category Validation Rule\n\t*/\n\tminYearSibling(field, errorMessage) {\n\t\treturn this.addRule(minYearRule, errorMessage, {\n\t\t\tyearOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Year must be <= sibling field year\n\t* @category Validation Rule\n\t*/\n\tmaxYearSibling(field, errorMessage) {\n\t\treturn this.addRule(maxYearRule, errorMessage, {\n\t\t\tyearOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Month must be >= sibling field month\n\t* @category Validation Rule\n\t*/\n\tminMonthSibling(field, errorMessage) {\n\t\treturn this.addRule(minMonthRule, errorMessage, {\n\t\t\tmonthOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Month must be <= sibling field month\n\t* @category Validation Rule\n\t*/\n\tmaxMonthSibling(field, errorMessage) {\n\t\treturn this.addRule(maxMonthRule, errorMessage, {\n\t\t\tmonthOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Day must be >= sibling field day\n\t* @category Validation Rule\n\t*/\n\tminDaySibling(field, errorMessage) {\n\t\treturn this.addRule(minDayRule, errorMessage, {\n\t\t\tdayOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Day must be <= sibling field day\n\t* @category Validation Rule\n\t*/\n\tmaxDaySibling(field, errorMessage) {\n\t\treturn this.addRule(maxDayRule, errorMessage, {\n\t\t\tdayOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Date must be in specific quarter (1-4) */\n\tquarter(quarter, errorMessage) {\n\t\treturn this.addRule(quarterRule, errorMessage, { quarter });\n\t}\n\t/** Valid birthday (not in future, reasonable age) */\n\tbirthday(minAge, maxAge, errorMessage) {\n\t\treturn this.addRule(birthdayRule, errorMessage, {\n\t\t\tminAge,\n\t\t\tmaxAge\n\t\t});\n\t}\n\t/** Date must be in a leap year */\n\tleapYear(errorMessage) {\n\t\treturn this.addRule(leapYearRule, errorMessage);\n\t}\n\t/**\n\t* Set default value as current time of exeuction\n\t*/\n\tdefaultNow() {\n\t\treturn this.default(() => /* @__PURE__ */ new Date());\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Maps DateValidator to JSON Schema format keywords.\n\t* Default is `date-time`. If `.toDateOnly()` or `.toTimeOnly()` are used,\n\t* falls back to `date` or `time` formats respectively.\n\t*\n\t* @example\n\t* ```ts\n\t* v.date().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", format: \"date-time\" }\n\t*\n\t* v.date().toDateOnly().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", format: \"date\" }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"string\",\n\t\t\tformat: \"date-time\"\n\t\t};\n\t\tconst dateOpts = getRuleOptions(this.rules, \"date\");\n\t\tif (dateOpts?.format === \"YYYY-MM-DD\") schema.format = \"date\";\n\t\telse if (dateOpts?.format === \"HH:mm:ss\") schema.format = \"time\";\n\t\tif (schema.format === \"date-time\") for (const t of this.dataTransformers) {\n\t\t\tconst hint = t.options?.__jsonSchemaFormat;\n\t\t\tif (hint === \"date\" || hint === \"time\") {\n\t\t\t\tschema.format = hint;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst userFormat = t.options?.format;\n\t\t\tif (userFormat === \"YYYY-MM-DD\") {\n\t\t\t\tschema.format = \"date\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (userFormat === \"HH:mm:ss\") {\n\t\t\t\tschema.format = \"time\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { DateValidator };\n//# sourceMappingURL=date-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { presentRule } from \"../rules/core/required.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { literalRule } from \"../rules/common/literal.mjs\";\n\n//#region ../seal/src/validators/literal-validator.ts\n/**\n* Literal validator class\n*\n* Accepts a fixed tuple of primitive literal values (string, number, boolean).\n* The TypeScript type narrows to the union of those literals — `v.literal(\"a\", \"b\")`\n* infers as `\"a\" | \"b\"`, not `string`. Use for discriminator fields, enum-like\n* unions of constants, and any case where `oneOf([...])` would lose literal types.\n*\n* @example\n* v.literal(\"items\") // type: \"items\"\n* v.literal(\"draft\", \"published\") // type: \"draft\" | \"published\"\n* v.literal(1, 2, 3) // type: 1 | 2 | 3\n* v.literal(true) // type: true\n*/\nvar LiteralValidator = class extends BaseValidator {\n\tconstructor(values, errorMessage) {\n\t\tsuper();\n\t\tthis.values = values;\n\t\tthis.addMutableRule(literalRule, errorMessage, { values });\n\t\tif (values.some((value) => isEmptyValue(value))) this.requiredRule = this.createRule(presentRule);\n\t}\n\t/**\n\t* Check if value is one of the configured literals\n\t*/\n\tmatchesType(value) {\n\t\treturn this.values.includes(value);\n\t}\n\t/**\n\t* Clone the validator, preserving the literal `values` set.\n\t*\n\t* The base `clone()` only copies `BaseValidator` fields, so without this\n\t* override a cloned literal loses its public `values` array — which breaks\n\t* any consumer that reads it (e.g. `discriminatedUnion` branch routing).\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.values = this.values;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Single literal → `{ const: <value> }`. Multiple → `{ enum: [...] }`.\n\t*\n\t* @example\n\t* ```ts\n\t* v.literal(\"items\").toJsonSchema()\n\t* // → { const: \"items\" }\n\t*\n\t* v.literal(\"draft\", \"published\").toJsonSchema()\n\t* // → { enum: [\"draft\", \"published\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = this.values.length === 1 ? { const: this.values[0] } : { enum: [...this.values] };\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { LiteralValidator };\n//# sourceMappingURL=literal-validator.mjs.map","import { applyNullable, wrapNullableStrict } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { LiteralValidator } from \"./literal-validator.mjs\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/discriminated-union-validator.ts\n/**\n* Discriminated union validator — routes payloads by a shared discriminator field.\n*\n* Plain `v.union()` falls back to `matchesType()` to pick a branch, which is\n* coarse for object-vs-object unions (every branch matches \"is plain object\").\n* Discriminated union reads a known field's value and routes directly to the\n* matching branch, producing precise errors instead of confused mash from the\n* wrong branch.\n*\n* **Construction-time validation.** Every branch must:\n* - Be an `ObjectValidator`\n* - Declare the discriminator field\n* - Type the discriminator as `v.literal(...)` (single or multi-literal both work)\n* - Not collide with another branch's literal values\n*\n* Misconfigurations throw eagerly so tests catch them at schema-build time.\n*\n* @example\n* ```ts\n* const email = v.object({ type: v.literal(\"email\"), email: v.string().email() });\n* const sms = v.object({ type: v.literal(\"sms\"), phone: v.string() });\n* const push = v.object({ type: v.literal(\"push\"), deviceId: v.string() });\n*\n* const notif = v.discriminatedUnion(\"type\", [email, sms, push]);\n*\n* await validate(notif, { type: \"sms\", phone: \"555-1234\" });\n* // → routes to sms branch only; errors (if any) come from sms\n* ```\n*\n* @see `domains/seal/plans/2026-05-12-discriminated-union.md`\n*/\nvar DiscriminatedUnionValidator = class DiscriminatedUnionValidator extends BaseValidator {\n\tconstructor(discriminator, validators) {\n\t\tsuper();\n\t\tthis.discriminator = discriminator;\n\t\tthis.validators = validators;\n\t\tthis.branches = DiscriminatedUnionValidator.buildBranchMap(discriminator, validators);\n\t}\n\t/**\n\t* Walk every branch, pull out the discriminator's literal values, and build\n\t* the lookup map. Throws on misconfiguration (missing discriminator,\n\t* non-literal discriminator, duplicate literal value).\n\t*/\n\tstatic buildBranchMap(discriminator, validators) {\n\t\tconst map = /* @__PURE__ */ new Map();\n\t\tfor (const branch of validators) {\n\t\t\tconst discriminatorValidator = branch.schema?.[discriminator];\n\t\t\tif (!discriminatorValidator) throw new Error(`[Seal] discriminatedUnion: branch missing discriminator field \"${discriminator}\"`);\n\t\t\tif (!(discriminatorValidator instanceof LiteralValidator)) throw new Error(`[Seal] discriminatedUnion: discriminator \"${discriminator}\" must be v.literal(...) on every branch`);\n\t\t\tfor (const value of discriminatorValidator.values) {\n\t\t\t\tif (map.has(value)) throw new Error(`[Seal] discriminatedUnion: duplicate discriminator value \"${String(value)}\"`);\n\t\t\t\tmap.set(value, branch);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\tasync validate(data, context) {\n\t\tif (data === null && this.isNullable) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: null\n\t\t};\n\t\tif (!isPlainObject(data)) return {\n\t\t\tisValid: false,\n\t\t\terrors: [{\n\t\t\t\ttype: \"discriminatedUnion\",\n\t\t\t\terror: `Expected object with discriminator field \"${this.discriminator}\"`,\n\t\t\t\tinput: context.key || context.path || \"value\"\n\t\t\t}],\n\t\t\tdata: void 0\n\t\t};\n\t\tconst discriminatorValue = data[this.discriminator];\n\t\tconst branch = this.branches.get(discriminatorValue);\n\t\tif (!branch) {\n\t\t\tconst allowed = [...this.branches.keys()].map((k) => String(k)).join(\", \");\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors: [{\n\t\t\t\t\ttype: \"discriminatedUnion\",\n\t\t\t\t\terror: `Field \"${this.discriminator}\" must be one of: ${allowed}`,\n\t\t\t\t\tinput: this.discriminator\n\t\t\t\t}],\n\t\t\t\tdata: void 0\n\t\t\t};\n\t\t}\n\t\treturn branch.validate(data, context);\n\t}\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.discriminator = this.discriminator;\n\t\tcloned.validators = this.validators.map((v) => v.clone());\n\t\tcloned.branches = DiscriminatedUnionValidator.buildBranchMap(cloned.discriminator, cloned.validators);\n\t\treturn cloned;\n\t}\n\t/**\n\t* Emit `oneOf` of branch schemas. Each branch's own `toJsonSchema()` handles\n\t* its `properties.{discriminator}.const` and the surrounding required/optional\n\t* structure — we just enumerate.\n\t*\n\t* For `openai-strict`: the per-branch ObjectValidator already inflates\n\t* `required` to include every field; `oneOf` is OpenAI-accepted as long as\n\t* each branch passes strict rules independently.\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { oneOf: this.validators.map((v) => v.toJsonSchema(target)) };\n\t\tif (this.isNullable) {\n\t\t\tif (target === \"openai-strict\") return wrapNullableStrict(schema);\n\t\t\tapplyNullable(schema, target);\n\t\t}\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { DiscriminatedUnionValidator };\n//# sourceMappingURL=discriminated-union-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { absMutator, ceilMutator, floorMutator, roundMutator, toFixedMutator } from \"../mutators/number-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from \"../rules/number/number-rules.mjs\";\nimport { lengthRule, maxLengthRule, minLengthRule } from \"../rules/length/length-rules.mjs\";\nimport { numberRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\n\n//#region ../seal/src/validators/number-validator.ts\n/**\n* Number validator class - base for Int and Float validators\n*/\nvar NumberValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(numberRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a number type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"number\" && !isNaN(value);\n\t}\n\t/**\n\t* Value must be equal or higher than the given number or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmin(min, errorMessage) {\n\t\treturn this.addRule(minRule, errorMessage, {\n\t\t\tmin,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be equal or less than the given number or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmax(max, errorMessage) {\n\t\treturn this.addRule(maxRule, errorMessage, {\n\t\t\tmax,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be >= sibling field value\n\t* @category Validation Rule\n\t*/\n\tminSibling(field, errorMessage) {\n\t\treturn this.addRule(minRule, errorMessage, {\n\t\t\tmin: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value must be <= sibling field value\n\t* @category Validation Rule\n\t*/\n\tmaxSibling(field, errorMessage) {\n\t\treturn this.addRule(maxRule, errorMessage, {\n\t\t\tmax: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value must be strictly greater than the given number or field (>)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tgreaterThan(value, errorMessage) {\n\t\treturn this.addRule(greaterThanRule, errorMessage, {\n\t\t\tvalue,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be strictly less than the given number or field (<)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tlessThan(value, errorMessage) {\n\t\treturn this.addRule(lessThanRule, errorMessage, {\n\t\t\tvalue,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Alias for greaterThan() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tgt(value, errorMessage) {\n\t\treturn this.greaterThan(value, errorMessage);\n\t}\n\t/**\n\t* Alias for lessThan() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tlt(value, errorMessage) {\n\t\treturn this.lessThan(value, errorMessage);\n\t}\n\t/**\n\t* Value must be > sibling field value\n\t* @category Validation Rule\n\t*/\n\tgreaterThanSibling(field, errorMessage) {\n\t\treturn this.addRule(greaterThanRule, errorMessage, {\n\t\t\tvalue: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Alias for greaterThanSibling() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tgtSibling(field, errorMessage) {\n\t\treturn this.greaterThanSibling(field, errorMessage);\n\t}\n\t/**\n\t* Value must be < sibling field value\n\t* @category Validation Rule\n\t*/\n\tlessThanSibling(field, errorMessage) {\n\t\treturn this.addRule(lessThanRule, errorMessage, {\n\t\t\tvalue: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Alias for lessThanSibling() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tltSibling(field, errorMessage) {\n\t\treturn this.lessThanSibling(field, errorMessage);\n\t}\n\t/** Value must be a modulo of the given number */\n\tmodulo(value, errorMessage) {\n\t\treturn this.addRule(moduloRule, errorMessage, { value });\n\t}\n\t/**\n\t* Alias for modulo() - Value must be divisible by the given number\n\t*/\n\tdivisibleBy(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/**\n\t* Alias for modulo() - Value must be a multiple of the given number\n\t*/\n\tmultipleOf(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/**\n\t* Alias for modulo() - Value must be a multiple of the given number\n\t*/\n\tmodulusOf(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/** Accept only numbers higher than 0 */\n\tpositive(errorMessage) {\n\t\treturn this.addRule(positiveRule, errorMessage);\n\t}\n\t/** Accept only negative numbers */\n\tnegative(errorMessage) {\n\t\treturn this.addRule(negativeRule, errorMessage);\n\t}\n\t/** Accept only odd numbers */\n\todd(errorMessage) {\n\t\treturn this.addRule(oddRule, errorMessage);\n\t}\n\t/** Accept only even numbers */\n\teven(errorMessage) {\n\t\treturn this.addRule(evenRule, errorMessage);\n\t}\n\t/**\n\t* Accept only numbers between the given two numbers or fields (Inclusive)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenNumbersRule, errorMessage, {\n\t\t\tmin,\n\t\t\tmax,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be between sibling field values\n\t* @category Validation Rule\n\t*/\n\tbetweenSibling(minField, maxField, errorMessage) {\n\t\treturn this.addRule(betweenNumbersRule, errorMessage, {\n\t\t\tmin: minField,\n\t\t\tmax: maxField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value (as a string) must be exactly this many characters.\n\t* Useful for fixed-format numeric codes (e.g. 4-digit PIN).\n\t*/\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/** Value (as string representation) length must be ≥ min */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** Value (as string representation) length must be ≤ max */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/**\n\t* Convert value to its absolute value\n\t*/\n\tabs() {\n\t\treturn this.addMutator(absMutator);\n\t}\n\t/**\n\t* Round value up to the nearest integer\n\t*/\n\tceil() {\n\t\treturn this.addMutator(ceilMutator);\n\t}\n\t/**\n\t* Round value down to the nearest integer\n\t*/\n\tfloor() {\n\t\treturn this.addMutator(floorMutator);\n\t}\n\t/**\n\t* Round value to the nearest integer or specified decimals\n\t*/\n\tround(decimals = 0) {\n\t\treturn this.addMutator(roundMutator, { decimals });\n\t}\n\t/**\n\t* Round to a fixed number of decimal places, keeping the value a **number**.\n\t*\n\t* `v.number().toFixed(2)` on `3.14159` yields `3.14`, not `\"3.14\"` — a number\n\t* schema has to output a number, or its own type rule rejects the result.\n\t* Format to a fixed-point *string* at the presentation edge instead.\n\t*\n\t* @example\n\t* v.number().toFixed(2) // 3.14159 → 3.14\n\t*/\n\ttoFixed(decimals = 2) {\n\t\treturn this.addMutator(toFixedMutator, { decimals });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Returns `{ type: \"number\" }` with numeric constraint keywords.\n\t* IntValidator overrides `type` to `\"integer\"`.\n\t*\n\t* @note Sibling-scoped rules (minSibling, maxSibling, etc.) are not representable\n\t* in JSON Schema and are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.number().min(0).max(100).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"number\", minimum: 0, maximum: 100 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.buildNumberJsonSchema(\"number\", target);\n\t}\n\t/**\n\t* Shared logic for number/integer JSON Schema generation.\n\t* Called by NumberValidator.toJsonSchema() (→ type: \"number\")\n\t* and IntValidator.toJsonSchema() (→ type: \"integer\").\n\t*/\n\tbuildNumberJsonSchema(type, target) {\n\t\tconst schema = { type };\n\t\tconst minOpts = getRuleOptions(this.rules, \"min\");\n\t\tif (minOpts?.min !== void 0 && typeof minOpts.min === \"number\") schema.minimum = minOpts.min;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"max\");\n\t\tif (maxOpts?.max !== void 0 && typeof maxOpts.max === \"number\") schema.maximum = maxOpts.max;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenNumbers\");\n\t\tif (betweenOpts) {\n\t\t\tif (typeof betweenOpts.min === \"number\") schema.minimum = betweenOpts.min;\n\t\t\tif (typeof betweenOpts.max === \"number\") schema.maximum = betweenOpts.max;\n\t\t}\n\t\tconst gtOpts = getRuleOptions(this.rules, \"greaterThan\");\n\t\tif (gtOpts?.value !== void 0 && typeof gtOpts.value === \"number\") if (target === \"draft-07\") {\n\t\t\tschema.minimum = gtOpts.value;\n\t\t\tschema.exclusiveMinimum = true;\n\t\t} else schema.exclusiveMinimum = gtOpts.value;\n\t\tconst ltOpts = getRuleOptions(this.rules, \"lessThan\");\n\t\tif (ltOpts?.value !== void 0 && typeof ltOpts.value === \"number\") if (target === \"draft-07\") {\n\t\t\tschema.maximum = ltOpts.value;\n\t\t\tschema.exclusiveMaximum = true;\n\t\t} else schema.exclusiveMaximum = ltOpts.value;\n\t\tconst moduloOpts = getRuleOptions(this.rules, \"modulo\");\n\t\tif (moduloOpts?.value !== void 0 && typeof moduloOpts.value === \"number\") schema.multipleOf = moduloOpts.value;\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) schema.enum = inOpts.values;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { NumberValidator };\n//# sourceMappingURL=number-validator.mjs.map","import { floatRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\n\n//#region ../seal/src/validators/float-validator.ts\n/**\n* Float validator class\n*/\nvar FloatValidator = class extends NumberValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(floatRule, errorMessage);\n\t}\n};\n\n//#endregion\nexport { FloatValidator };\n//# sourceMappingURL=float-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\nimport { instanceofRule } from \"../rules/common/instanceof.mjs\";\n\n//#region ../seal/src/validators/instanceof-validator.ts\n/**\n* InstanceOf validator class\n*\n* Validates that the value is an instance of the given constructor (`value instanceof Ctor`).\n* Useful for File uploads, Buffer/Uint8Array payloads, and custom domain classes —\n* anywhere a runtime class identity is the right contract.\n*\n* Note: `Date` is already covered by `v.date()` with richer date-specific rules;\n* reach for `v.instanceof(Date)` only when you specifically want raw `instanceof`\n* semantics with no normalization.\n*\n* @example\n* v.instanceof(File) // type: File\n* v.instanceof(Buffer) // type: Buffer\n* v.instanceof(MyClass) // type: MyClass\n*/\nvar InstanceOfValidator = class extends BaseValidator {\n\tconstructor(ctor, errorMessage) {\n\t\tsuper();\n\t\tthis.ctor = ctor;\n\t\tthis.addMutableRule(instanceofRule, errorMessage, {\n\t\t\tctor,\n\t\t\tname: ctor.name || \"instance\"\n\t\t});\n\t}\n\t/**\n\t* Check if value is an instance of the configured constructor\n\t*/\n\tmatchesType(value) {\n\t\treturn value instanceof this.ctor;\n\t}\n\t/**\n\t* Clone the validator, preserving the target constructor.\n\t*\n\t* The base `clone()` only copies `BaseValidator` fields, so without this\n\t* override a cloned `instanceof` validator loses its `ctor` reference and\n\t* `matchesType()` would throw on the next call.\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.ctor = this.ctor;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Class instances are not representable in JSON Schema — returns an empty\n\t* schema (permissive). Consumers serializing to OpenAPI should attach an\n\t* appropriate format manually if needed (e.g. `{ type: \"string\", format: \"binary\" }`\n\t* for `File`).\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\treturn {};\n\t}\n};\n\n//#endregion\nexport { InstanceOfValidator };\n//# sourceMappingURL=instanceof-validator.mjs.map","import { intRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\n\n//#region ../seal/src/validators/int-validator.ts\n/**\n* Integer validator class\n*/\nvar IntValidator = class extends NumberValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(intRule, errorMessage);\n\t}\n\t/**\n\t* @inheritdoc — returns `{ type: \"integer\" }` instead of `{ type: \"number\" }`\n\t*\n\t* @example\n\t* ```ts\n\t* v.int().min(1).max(100).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"integer\", minimum: 1, maximum: 100 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.buildNumberJsonSchema(\"integer\", target);\n\t}\n};\n\n//#endregion\nexport { IntValidator };\n//# sourceMappingURL=int-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/lazy-validator.ts\n/**\n* Lazy validator — defers resolution of the inner validator until validate-time.\n*\n* Solves the chicken-and-egg of self-referencing schemas. JavaScript evaluates\n* an object literal before the `const` binding completes, so this can't work:\n*\n* ```ts\n* const categorySchema = v.object({\n* name: v.string(),\n* children: v.array(categorySchema), // ❌ ReferenceError\n* });\n* ```\n*\n* Wrap the recursive reference in `v.lazy(() => …)` — the thunk isn't invoked\n* during construction, only when `validate()` is called:\n*\n* ```ts\n* type Category = { name: string; children: Category[] };\n*\n* const categorySchema: ObjectValidator<...> = v.object({\n* name: v.string(),\n* children: v.array(v.lazy(() => categorySchema)),\n* });\n*\n* type T = Infer<typeof categorySchema>;\n* // { name: string; children: T[] } ← recursive type\n* ```\n*\n* The thunk is memoized — it's invoked once on the first validate (or\n* `matchesType` / `toJsonSchema`) call and the result is cached. The thunk is\n* expected to return a stable validator; calling it on every validate would be\n* wasteful and could mask bugs where the user accidentally returns a fresh\n* validator each time.\n*\n* **JSON Schema caveat.** v1 uses simple resolve-and-delegate — recursive\n* schemas will infinite-loop in `toJsonSchema()`. If you need JSON Schema for\n* a recursive shape, generate it manually with `$defs` + `$ref` until v2 lands.\n*\n* @see `domains/seal/plans/2026-05-12-lazy-validator.md`\n*/\nvar LazyValidator = class extends BaseValidator {\n\tconstructor(thunk) {\n\t\tsuper();\n\t\tthis.thunk = thunk;\n\t\tthis.requiredRule = null;\n\t\tthis.isOptional = true;\n\t}\n\t/**\n\t* Resolve the inner validator. Memoizes the result so subsequent calls\n\t* don't re-execute the thunk.\n\t*/\n\tresolve() {\n\t\tif (this.resolvedValidator === void 0) this.resolvedValidator = this.thunk();\n\t\treturn this.resolvedValidator;\n\t}\n\tasync validate(data, context) {\n\t\treturn this.resolve().validate(data, context);\n\t}\n\tmatchesType(value) {\n\t\treturn this.resolve().matchesType(value);\n\t}\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.thunk = this.thunk;\n\t\tcloned.resolvedValidator = void 0;\n\t\treturn cloned;\n\t}\n\t/**\n\t* JSON Schema generation — simple resolve-and-delegate.\n\t*\n\t* **Recursive schemas will infinite-loop.** Until v2 adds `$ref` + `$defs`\n\t* generation, callers needing JSON Schema for recursive shapes must build\n\t* the schema manually.\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.resolve().toJsonSchema(target);\n\t}\n};\n\n//#endregion\nexport { LazyValidator };\n//# sourceMappingURL=lazy-validator.mjs.map","import { ComputedValidator } from \"./computed-validator.mjs\";\n\n//#region ../seal/src/validators/managed-validator.ts\n/**\n* Managed field validator\n*\n* The callback is optional - if not provided, the framework can inject the value.\n* @example\n* ```ts\n* // With callback (framework executes it)\n* const schema = v.object({\n* name: v.string(),\n* createdAt: v.managed(() => new Date()),\n* updatedAt: v.managed(() => new Date()),\n* });\n*\n* // Without callback (framework injects value)\n* const schema = v.object({\n* name: v.string(),\n* id: v.managed(() => 1),\n* });\n* ```\n*/\nvar ManagedValidator = class extends ComputedValidator {\n\t/**\n\t* Create a new managed field validator\n\t*\n\t* @param callback - Optional function to generate the value\n\t* @param resultValidator - Optional validator to validate the generated result\n\t*/\n\tconstructor(callback, resultValidator) {\n\t\tconst computedCallback = (_data, context) => callback(context);\n\t\tsuper(computedCallback, resultValidator);\n\t}\n};\n\n//#endregion\nexport { ManagedValidator };\n//# sourceMappingURL=managed-validator.mjs.map","import { numericMutator } from \"../mutators/number-mutators.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\nimport { isNumeric } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/numeric-validator.ts\n/**\n* Numeric validator class - base for Int and Float validators either as number or string\n*/\nvar NumericValidator = class extends NumberValidator {\n\t/**\n\t* Constructor\n\t*/\n\tconstructor(errorMessage) {\n\t\tsuper(errorMessage);\n\t\tthis.addMutableMutator(numericMutator);\n\t}\n\t/**\n\t* Check if value is a numeric type\n\t*/\n\tmatchesType(value) {\n\t\treturn isNumeric(value);\n\t}\n};\n\n//#endregion\nexport { NumericValidator };\n//# sourceMappingURL=numeric-validator.mjs.map","import { applyNullable, wrapNullableStrict } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { objectTrimMutator, stripUnknownMutator } from \"../mutators/object-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { objectRule } from \"../rules/common/type-rules.mjs\";\nimport { unknownKeyRule } from \"../rules/common/unknown-key.mjs\";\nimport \"../rules/index.mjs\";\nimport { ComputedValidator } from \"./computed-validator.mjs\";\nimport { except } from \"@mongez/reinforcements\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/object-validator.ts\n/**\n* Object validator class with generic schema type for proper type inference.\n*\n* Threads two distinct inferred shapes into `BaseValidator`'s `TInput`/`TOutput`:\n*\n* - `TInput` = `InferInputObjectShape<TSchema>` — what `~standard.validate()`\n* accepts (caller's pre-validation payload; defaults/catches make\n* keys optional)\n* - `TOutput` = `InferOutputObjectShape<TSchema>` — what `~standard.validate()`\n* returns on success (post-default, post-catch shape; guaranteed\n* keys are required)\n*\n* Both helpers are used directly (not the full `Infer.*` walker) to avoid a\n* recursive class-base evaluation that would otherwise occur when the\n* brand-aware widening tries to inspect the class type.\n*/\nvar ObjectValidator = class ObjectValidator extends BaseValidator {\n\tconstructor(schema, errorMessage) {\n\t\tsuper();\n\t\tthis.schema = schema;\n\t\tthis.shouldAllowUnknown = false;\n\t\tthis.allowedKeys = [];\n\t\tthis.hasUnknownKeyRule = false;\n\t\tthis.addMutableRule(objectRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an object type (plain object, not array or date)\n\t*/\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\t/** Strip unknown keys from the data */\n\tstripUnknown() {\n\t\tconst validator = this.instance;\n\t\treturn validator.addMutator(stripUnknownMutator, { get allowedKeys() {\n\t\t\treturn validator.allowedKeys;\n\t\t} });\n\t}\n\t/** Add list of allowed keys that could be in the data but not necessarily validated */\n\tallow(...keys) {\n\t\tconst validator = this.instance;\n\t\tvalidator.allowedKeys.push(...keys);\n\t\treturn validator;\n\t}\n\t/** Trim values of the object properties */\n\ttrim(recursive = true) {\n\t\treturn this.instance.addMutator(objectTrimMutator, { recursive });\n\t}\n\t/** Whether to allow unknown properties\n\t* Please note it will allow only unknown direct children keys, not nested children keys\n\t*/\n\tallowUnknown(allow = true) {\n\t\tconst validator = this.instance;\n\t\tvalidator.shouldAllowUnknown = allow;\n\t\treturn validator;\n\t}\n\t/**\n\t* Create a copy of this object validator with the same configuration\n\t* Copies schema, rules, mutators, transformers, and object-specific settings\n\t*\n\t* @returns A new ObjectValidator instance with copied configuration\n\t*\n\t* @example\n\t* ```ts\n\t* const baseUser = v.object({ name: v.string() }).allowUnknown();\n\t* const userCopy = baseUser.clone();\n\t* // userCopy has the same schema and allowUnknown setting\n\t* ```\n\t*/\n\tclone(keys) {\n\t\tconst cloned = super.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key in this.schema) {\n\t\t\tif (keys && !keys.includes(key)) continue;\n\t\t\tnewSchema[key] = this.schema[key].clone();\n\t\t}\n\t\tcloned.schema = newSchema;\n\t\tcloned.shouldAllowUnknown = this.shouldAllowUnknown;\n\t\tcloned.allowedKeys = [...this.allowedKeys];\n\t\treturn cloned;\n\t}\n\t/**\n\t* Extend this schema with additional fields\n\t* Clones the current validator and adds new fields to the schema\n\t* **Keeps original configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* If an ObjectValidator is provided, only its schema is used - its configuration is ignored.\n\t* This is useful for creating reusable field collections that can be added to different schemas.\n\t*\n\t* @param schemaOrValidator - Plain schema object or ObjectValidator to extend with\n\t* @returns A new ObjectValidator with merged schema and original configuration\n\t*\n\t* @example\n\t* ```ts\n\t* // Extend with plain schema\n\t* const baseUser = v.object({\n\t* name: v.string().required(),\n\t* email: v.string().email().required()\n\t* }).allowUnknown();\n\t*\n\t* const adminUser = baseUser.extend({\n\t* role: v.string().in(['admin', 'superadmin']).required()\n\t* });\n\t* // adminUser has: name, email, role\n\t* // adminUser keeps: allowUnknown() from base ✅\n\t*\n\t* // Extend with ObjectValidator (only schema is used)\n\t* const auditFields = v.object({\n\t* createdAt: v.date().required(),\n\t* updatedAt: v.date().required()\n\t* }).stripUnknown(); // This config is ignored!\n\t*\n\t* const fullUser = baseUser.extend(auditFields);\n\t* // fullUser has: name, email, createdAt, updatedAt\n\t* // fullUser keeps: allowUnknown() from base (NOT stripUnknown from auditFields) ✅\n\t*\n\t* // Chain multiple extends\n\t* const complexSchema = baseUser\n\t* .extend(auditFields)\n\t* .extend({ metadata: v.object({}) });\n\t* ```\n\t*/\n\textend(schemaOrValidator) {\n\t\tconst extended = this.clone();\n\t\tconst schemaToAdd = schemaOrValidator instanceof ObjectValidator ? schemaOrValidator.schema : schemaOrValidator;\n\t\tfor (const key in schemaToAdd) extended.schema[key] = schemaToAdd[key].clone();\n\t\treturn extended;\n\t}\n\t/**\n\t* Merge with another ObjectValidator\n\t* Clones current validator, merges schemas, and **overrides configuration** with other validator's config\n\t*\n\t* Unlike extend(), merge() combines both schemas AND configurations.\n\t* The other validator's configuration (allowUnknown, stripUnknown, etc.) takes precedence.\n\t*\n\t* @param validator - Another ObjectValidator to merge with\n\t* @returns A new ObjectValidator with merged schema and configuration\n\t*\n\t* @example\n\t* ```ts\n\t* const baseUser = v.object({\n\t* name: v.string().required()\n\t* }).allowUnknown();\n\t*\n\t* const timestamps = v.object({\n\t* createdAt: v.date().required(),\n\t* updatedAt: v.date().required()\n\t* }).stripUnknown();\n\t*\n\t* const merged = baseUser.merge(timestamps);\n\t* // merged has: name, createdAt, updatedAt\n\t* // merged config: stripUnknown() from timestamps (overrides allowUnknown) ✅\n\t*\n\t* // Chain multiple merges\n\t* const full = baseUser.merge(timestamps).merge(softDeleteSchema);\n\t* ```\n\t*/\n\tmerge(validator) {\n\t\tconst merged = this.clone();\n\t\tfor (const key in validator.schema) merged.schema[key] = validator.schema[key].clone();\n\t\tmerged.shouldAllowUnknown = validator.shouldAllowUnknown;\n\t\tmerged.allowedKeys = [...merged.allowedKeys, ...validator.allowedKeys];\n\t\tmerged.rules.push(...validator.rules);\n\t\tmerged.mutators.push(...validator.mutators);\n\t\tmerged.dataTransformers.push(...validator.dataTransformers);\n\t\tmerged.attributesText = {\n\t\t\t...merged.attributesText,\n\t\t\t...validator.attributesText\n\t\t};\n\t\tmerged.translatedAttributes = {\n\t\t\t...merged.translatedAttributes,\n\t\t\t...validator.translatedAttributes\n\t\t};\n\t\treturn merged;\n\t}\n\t/**\n\t* Create a new schema with only the specified fields\n\t* Clones the current validator and keeps only the selected fields\n\t* **Preserves all configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* @param keys - Field names to keep in the schema\n\t* @returns A new ObjectValidator with only the picked fields\n\t*\n\t* @example\n\t* ```ts\n\t* const fullUser = v.object({\n\t* id: v.int().required(),\n\t* name: v.string().required(),\n\t* email: v.string().email().required(),\n\t* password: v.string().required(),\n\t* role: v.string()\n\t* }).allowUnknown();\n\t*\n\t* // For login - only need email and password\n\t* const loginSchema = fullUser.pick('email', 'password');\n\t* // loginSchema has: { email, password }\n\t* // loginSchema keeps: allowUnknown() ✅\n\t*\n\t* // For public profile\n\t* const publicSchema = fullUser.pick('id', 'name', 'role');\n\t* // publicSchema has: { id, name, role }\n\t* ```\n\t*/\n\tpick(...keys) {\n\t\tconst picked = this.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key of keys) if (key in picked.schema) newSchema[key] = picked.schema[key];\n\t\tpicked.schema = newSchema;\n\t\treturn picked;\n\t}\n\t/**\n\t* Mark all or the given schema fields as optional\n\t*/\n\tpartial(...keys) {\n\t\tconst validationSchema = this.clone();\n\t\tif (keys.length === 0) keys = Object.keys(validationSchema.schema);\n\t\tfor (const key of keys) validationSchema.schema[key] = validationSchema.schema[key].optional();\n\t\treturn validationSchema;\n\t}\n\t/**\n\t* Make the all or the given fields as required\n\t*/\n\trequiredFields(...keys) {\n\t\tconst validationSchema = this.clone();\n\t\tif (keys.length === 0) keys = Object.keys(validationSchema.schema);\n\t\tfor (const key of keys) validationSchema.schema[key] = validationSchema.schema[key].required();\n\t\treturn validationSchema;\n\t}\n\t/**\n\t* Create a new schema excluding the specified fields\n\t* Clones the current validator and removes the specified fields\n\t* **Preserves all configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* @param keys - Field names to exclude from the schema\n\t* @returns A new ObjectValidator without the excluded fields\n\t*\n\t* @example\n\t* ```ts\n\t* const fullUser = v.object({\n\t* id: v.int().required(),\n\t* name: v.string().required(),\n\t* email: v.string().email().required(),\n\t* password: v.string().required(),\n\t* role: v.string()\n\t* }).allowUnknown();\n\t*\n\t* // For updates - exclude id\n\t* const updateSchema = fullUser.without('id');\n\t* // updateSchema has: { name, email, password, role }\n\t* // updateSchema keeps: allowUnknown() ✅\n\t*\n\t* // For public API - exclude sensitive fields\n\t* const publicSchema = fullUser.without('password', 'role');\n\t* // publicSchema has: { id, name, email }\n\t*\n\t* // Combine with other methods\n\t* const patchSchema = fullUser.without('id', 'password');\n\t* // patchSchema has: { name, email, role }\n\t* ```\n\t*/\n\twithout(...keys) {\n\t\tconst filtered = this.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key in filtered.schema) if (!keys.includes(key)) newSchema[key] = filtered.schema[key];\n\t\tfiltered.schema = newSchema;\n\t\treturn filtered;\n\t}\n\t/** Mutate the data */\n\tmutate(data, context) {\n\t\tif (!isPlainObject(data)) return data;\n\t\treturn super.mutate({ ...data }, context);\n\t}\n\t/** Validate the data */\n\tasync validate(data, context = { path: \"\" }) {\n\t\tcontext.schema = this.schema;\n\t\tconst mutatedData = await this.mutate(data, context);\n\t\tif (this.shouldAllowUnknown === false && !this.hasUnknownKeyRule) {\n\t\t\tthis.hasUnknownKeyRule = true;\n\t\t\tconst rule = this.addMutableRule(unknownKeyRule, void 0, {\n\t\t\t\tallowedKeys: this.allowedKeys,\n\t\t\t\tschema: this.schema\n\t\t\t});\n\t\t\tthis.setRuleAttributesList(rule);\n\t\t}\n\t\tconst result = await super.validate(mutatedData, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (data === void 0) return result;\n\t\tconst errors = [];\n\t\tconst validatedData = {};\n\t\tconst validationPromises = Object.keys(this.schema).filter((key) => !this.isComputedValidator(this.schema[key])).map(async (key) => {\n\t\t\tconst validator = this.schema[key];\n\t\t\tconst value = mutatedData?.[key] !== void 0 ? mutatedData[key] : validator.getDefaultValue();\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue,\n\t\t\t\tkey,\n\t\t\t\tpath: setKeyPath(context.path, key)\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(value, childContext);\n\t\t\tif (childResult.data !== void 0 && !validator.isOmitted()) validatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\tif (errors.length > 0) return {\n\t\t\tisValid: false,\n\t\t\terrors,\n\t\t\tdata: void 0\n\t\t};\n\t\tconst computedFields = this.getComputedFields();\n\t\tconst computedPromises = Object.keys(computedFields).map(async (key) => {\n\t\t\tconst validator = computedFields[key];\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: validatedData,\n\t\t\t\tvalue: void 0\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(validatedData, childContext);\n\t\t\tif (childResult.data !== void 0 && !validator.isOmitted()) validatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(computedPromises);\n\t\tif (errors.length > 0) return {\n\t\t\tisValid: false,\n\t\t\terrors,\n\t\t\tdata: void 0\n\t\t};\n\t\tconst cleanedData = removeUndefinedValues(validatedData);\n\t\tconst transformedData = await this.startTransformationPipeline(cleanedData, context);\n\t\treturn {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: this.shouldAllowUnknown === false ? transformedData : {\n\t\t\t\t...transformedData,\n\t\t\t\t...except(mutatedData, Object.keys(this.schema))\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Check if a validator is a computed or managed field\n\t* ManagedValidator extends ComputedValidator, so instanceof catches both\n\t*/\n\tisComputedValidator(validator) {\n\t\treturn validator instanceof ComputedValidator;\n\t}\n\t/**\n\t* Get all computed/managed fields from the schema\n\t*/\n\tgetComputedFields() {\n\t\tconst computed = {};\n\t\tfor (const [key, validator] of Object.entries(this.schema)) if (validator instanceof ComputedValidator) computed[key] = validator;\n\t\treturn computed;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Recursively generates JSON Schema for all input fields in the schema.\n\t* Computed/managed fields are skipped — they have no input representation.\n\t*\n\t* **Standard targets** (`draft-2020-12`, `draft-07`, `openapi-3.0`):\n\t* - Fields marked `.optional()` are excluded from `required`.\n\t*\n\t* **`openai-strict` target** (OpenAI Structured Outputs):\n\t* - ALL fields appear in `required` — OpenAI rejects schemas with optional fields.\n\t* - Optional fields are instead expressed as nullable types:\n\t* `{ type: [\"string\", \"null\"] }` so the model can output `null` for them.\n\t* - Recursively applies `openai-strict` to all nested objects.\n\t*\n\t* @example\n\t* ```ts\n\t* v.object({\n\t* name: v.string().required(),\n\t* age: v.int().optional(),\n\t* }).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\",\n\t* // properties: { name: { type: \"string\" }, age: { type: \"integer\" } },\n\t* // required: [\"name\"], additionalProperties: false }\n\t*\n\t* v.object({\n\t* name: v.string().required(),\n\t* age: v.int().optional(),\n\t* }).toJsonSchema(\"openai-strict\")\n\t* // → { type: \"object\",\n\t* // properties: { name: { type: \"string\" }, age: { type: [\"integer\", \"null\"] } },\n\t* // required: [\"name\", \"age\"], ← all fields\n\t* // additionalProperties: false }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst properties = {};\n\t\tconst required = [];\n\t\tconst isOpenAIStrict = target === \"openai-strict\";\n\t\tfor (const [key, validator] of Object.entries(this.schema)) {\n\t\t\tif (validator instanceof ComputedValidator) continue;\n\t\t\tlet fieldSchema = validator.toJsonSchema(target);\n\t\t\tif (isOpenAIStrict) {\n\t\t\t\tif (validator.isOptional) fieldSchema = wrapNullableStrict(fieldSchema);\n\t\t\t\trequired.push(key);\n\t\t\t} else if (!validator.isOptional) required.push(key);\n\t\t\tproperties[key] = fieldSchema;\n\t\t}\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tproperties\n\t\t};\n\t\tif (required.length > 0) schema.required = required;\n\t\tif (!this.shouldAllowUnknown) schema.additionalProperties = false;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n/** Recursively remove undefined values from an object */\nfunction removeUndefinedValues(obj, visited = /* @__PURE__ */ new WeakMap()) {\n\tif (obj === null) return obj;\n\tif (Array.isArray(obj)) return obj.map((item) => removeUndefinedValues(item, visited));\n\tif (!isPlainObject(obj)) return obj;\n\tif (visited.has(obj)) return visited.get(obj);\n\tconst result = {};\n\tvisited.set(obj, result);\n\tfor (const [key, value] of Object.entries(obj)) if (value !== void 0) result[key] = removeUndefinedValues(value, visited);\n\treturn result;\n}\n\n//#endregion\nexport { ObjectValidator };\n//# sourceMappingURL=object-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { objectRule, plainObjectRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/record-validator.ts\n/**\n* Record validator class - validates objects with dynamic keys and consistent value types\n*\n* @example\n* ```ts\n* // Translations object\n* v.record(v.string())\n* // Valid: { en: \"Hello\", ar: \"مرحبا\", fr: \"Bonjour\" }\n*\n* // User preferences\n* v.record(v.union([v.string(), v.number(), v.boolean()]))\n* // Valid: { theme: \"dark\", fontSize: 16, notifications: true }\n* ```\n*/\nvar RecordValidator = class extends BaseValidator {\n\tconstructor(valueValidator, errorMessage) {\n\t\tsuper();\n\t\tthis.valueValidator = valueValidator;\n\t\tthis.addMutableRule(objectRule, errorMessage);\n\t}\n\t/**\n\t* Validate it as plain object\n\t*/\n\tplainObject(errorMessage) {\n\t\treturn this.addRule(plainObjectRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a plain object type\n\t*/\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.valueValidator = this.valueValidator.clone();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Validate record - iterate all keys and validate each value\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional record\n\t* fields would silently materialise as `{}` in the validated output.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!isPlainObject(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tconst validationPromises = Object.keys(mutatedData).map(async (key) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue: mutatedData[key],\n\t\t\t\tkey,\n\t\t\t\tpath: setKeyPath(context.path, key)\n\t\t\t};\n\t\t\tconst childResult = await this.valueValidator.validate(mutatedData[key], childContext);\n\t\t\tmutatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Generates `{ type: \"object\", additionalProperties: <valueSchema> }` —\n\t* the standard JSON Schema for a dictionary/map with homogeneous values.\n\t*\n\t* @example\n\t* ```ts\n\t* v.record(v.string()).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\", additionalProperties: { type: \"string\" } }\n\t*\n\t* v.record(v.union([v.string(), v.number()])).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\", additionalProperties: { oneOf: [{ type: \"string\" }, { type: \"number\" }] } }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tadditionalProperties: this.valueValidator.toJsonSchema(target)\n\t\t};\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { RecordValidator };\n//# sourceMappingURL=record-validator.mjs.map","import { getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { VALID_RULE, invalidRule } from \"../helpers/validation-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { numberMutator } from \"../mutators/number-mutators.mjs\";\nimport { stringMutator } from \"../mutators/scalar-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\nimport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule } from \"../rules/scalar/accepted-rule.mjs\";\nimport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule } from \"../rules/scalar/declined-rule.mjs\";\nimport \"../rules/scalar/index.mjs\";\n\n//#region ../seal/src/validators/scalar-validator.ts\n/**\n* Scalar validator class\n*\n* Core validator for scalar values (string, number, boolean).\n* Extends PrimitiveValidator (inherits enum/in/oneOf/allowsOnly/forbids/notIn)\n* and additionally provides type-coercion mutators and accepted/declined rules.\n*\n* Database methods (unique, exists, etc.) are injected by the framework\n*/\nvar ScalarValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule({\n\t\t\tname: \"scalar\",\n\t\t\tdefaultErrorMessage: \"The :input must be a scalar value\",\n\t\t\tasync validate(value, context) {\n\t\t\t\tif ([\n\t\t\t\t\t\"string\",\n\t\t\t\t\t\"number\",\n\t\t\t\t\t\"boolean\"\n\t\t\t\t].includes(typeof value)) return VALID_RULE;\n\t\t\t\treturn invalidRule(this, context);\n\t\t\t}\n\t\t}, errorMessage);\n\t}\n\t/**\n\t* Add matches type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\";\n\t}\n\t/**\n\t* Mutate the scalar value to be number\n\t*/\n\tasNumber() {\n\t\treturn this.addMutator(numberMutator);\n\t}\n\t/**\n\t* Mutate the scalar value to be string\n\t*/\n\tasString() {\n\t\treturn this.addMutator(stringMutator);\n\t}\n\t/**\n\t* Accepted value\n\t* The value will be valid if it equals 1 | \"1\" | true | \"true\" | \"yes\" | \"y\" | \"on\"\n\t*/\n\taccepted(errorMessage) {\n\t\treturn this.addRule(acceptedRule, errorMessage);\n\t}\n\t/**\n\t* Accepted value if another field's value equals to a specific value\n\t*/\n\tacceptedIf(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Accepted value if another field's value is not equal to the given value\n\t*/\n\tacceptedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Accepted value if another field is required\n\t*/\n\tacceptedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfRequiredRule, errorMessage, { field });\n\t}\n\t/**\n\t* Accepted value if another field is present\n\t*/\n\tacceptedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfPresentRule, errorMessage, { field });\n\t}\n\t/**\n\t* Accepted value if another field is missing\n\t*/\n\tacceptedWithout(field, errorMessage) {\n\t\treturn this.addRule(acceptedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value\n\t* The value will be valid if it equals 0 | \"0\" | false | \"false\" | \"no\" | \"n\" | \"off\"\n\t*/\n\tdeclined(errorMessage) {\n\t\treturn this.addRule(declinedRule, errorMessage);\n\t}\n\t/**\n\t* Declined value if another field's value equals to a specific value\n\t*/\n\tdeclinedIf(field, value, errorMessage) {\n\t\treturn this.addRule(declinedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Declined value if another field's value is not equal to the given value\n\t*/\n\tdeclinedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(declinedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Declined value if another field is required\n\t*/\n\tdeclinedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(declinedIfRequiredRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value if another field is present\n\t*/\n\tdeclinedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(declinedIfPresentRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value if another field is missing\n\t*/\n\tdeclinedWithout(field, errorMessage) {\n\t\treturn this.addRule(declinedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* A scalar accepts string | number | boolean. If `.in()` / `.enum()` is used,\n\t* output collapses to a simple `enum` list instead.\n\t*\n\t* @example\n\t* ```ts\n\t* v.scalar().toJsonSchema(\"draft-2020-12\")\n\t* // → { oneOf: [{ type: \"string\" }, { type: \"number\" }, { type: \"boolean\" }] }\n\t*\n\t* v.scalar().in([\"active\", \"inactive\"]).toJsonSchema(\"draft-2020-12\")\n\t* // → { enum: [\"active\", \"inactive\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) return { enum: inOpts.values };\n\t\tconst enumOpts = getRuleOptions(this.rules, \"enum\");\n\t\tif (enumOpts?.enum && Array.isArray(enumOpts.enum)) return { enum: enumOpts.enum };\n\t\treturn { oneOf: [\n\t\t\t{ type: \"string\" },\n\t\t\t{ type: \"number\" },\n\t\t\t{ type: \"boolean\" }\n\t\t] };\n\t}\n};\n\n//#endregion\nexport { ScalarValidator };\n//# sourceMappingURL=scalar-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator } from \"../mutators/string-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { alphaNumericRule, alphaRule, isNumericRule } from \"../rules/string/alpha.mjs\";\nimport { isCreditCardRule } from \"../rules/string/credit-card.mjs\";\nimport { emailRule } from \"../rules/string/email.mjs\";\nimport { cuidRule, nanoidRule, ulidRule, uuidRule } from \"../rules/string/id-formats.mjs\";\nimport { ip4Rule, ip6Rule, ipRule } from \"../rules/string/ip.mjs\";\nimport { patternRule } from \"../rules/string/pattern.mjs\";\nimport { containsRule, endsWithRule, notContainsRule, startsWithRule } from \"../rules/string/string-comparison.mjs\";\nimport { strongPasswordRule } from \"../rules/string/strong-password-rule.mjs\";\nimport { urlRule } from \"../rules/string/url.mjs\";\nimport { withoutWhitespaceRule } from \"../rules/string/without-whitespace.mjs\";\nimport { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from \"../rules/length/length-rules.mjs\";\nimport { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from \"../rules/color/color-rules.mjs\";\nimport { stringRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\n\n//#region ../seal/src/validators/string-validator.ts\n/**\n* String validator class\n*/\nvar StringValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(stringRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a string type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"string\";\n\t}\n\t/**\n\t* Stringify the value if not a string\n\t*/\n\ttoString() {\n\t\treturn this.addMutator(stringifyMutator);\n\t}\n\t/** Convert string to uppercase */\n\tuppercase() {\n\t\treturn this.addMutator(uppercaseMutator);\n\t}\n\t/** Convert string to lowercase */\n\tlowercase() {\n\t\treturn this.addMutator(lowercaseMutator);\n\t}\n\t/** Capitalize only the first letter of the string */\n\tcapitalize() {\n\t\treturn this.addMutator(capitalizeMutator);\n\t}\n\t/** Capitalize the first letter of each word (Title Case) */\n\ttitleCase() {\n\t\treturn this.addMutator(titleCaseMutator);\n\t}\n\t/** Convert to camelCase */\n\tcamelCase() {\n\t\treturn this.addMutator(camelCaseMutator);\n\t}\n\t/** Convert to PascalCase */\n\tpascalCase() {\n\t\treturn this.addMutator(pascalCaseMutator);\n\t}\n\t/** Convert to snake_case */\n\tsnakeCase() {\n\t\treturn this.addMutator(snakeCaseMutator);\n\t}\n\t/** Convert to kebab-case */\n\tkebabCase() {\n\t\treturn this.addMutator(kebabCaseMutator);\n\t}\n\t/**\n\t* Trim the given needle from the string\n\t* If no needle is provided, the default is a single space\n\t*/\n\ttrim(needle) {\n\t\treturn this.addMutator(trimMutator, { needle });\n\t}\n\t/** Trim from the left/start */\n\tltrim(needle) {\n\t\treturn this.addMutator(ltrimMutator, { needle });\n\t}\n\t/** Trim from the right/end */\n\trtrim(needle) {\n\t\treturn this.addMutator(rtrimMutator, { needle });\n\t}\n\t/** Trim multiple whitespace into single space */\n\ttrimMultipleWhitespace() {\n\t\treturn this.addMutator(trimMultipleWhitespaceMutator);\n\t}\n\t/** Pad string from the start to reach target length */\n\tpadStart(length, char = \" \") {\n\t\treturn this.addMutator(padStartMutator, {\n\t\t\tlength,\n\t\t\tchar\n\t\t});\n\t}\n\t/** Pad string from the end to reach target length */\n\tpadEnd(length, char = \" \") {\n\t\treturn this.addMutator(padEndMutator, {\n\t\t\tlength,\n\t\t\tchar\n\t\t});\n\t}\n\t/**\n\t* Strip HTML tags with a naive `<...>` regex.\n\t*\n\t* This is a **tag stripper, not an XSS sanitizer**: it is not a parser,\n\t* so malformed/nested markup or content re-introduced later in a\n\t* pipeline can defeat it. Do not rely on this alone to make untrusted\n\t* rich text safe to render — use a real parser-based sanitizer (e.g.\n\t* DOMPurify / sanitize-html) for that.\n\t*/\n\tstripTags() {\n\t\treturn this.addMutator(stripTagsMutator);\n\t}\n\t/**\n\t* @deprecated Renamed to {@link StringValidator.stripTags} — the old\n\t* name implied XSS safety this tag-stripping regex does not provide.\n\t* Kept as an alias for backward compatibility; switch to `.stripTags()`.\n\t*/\n\tsafeHtml() {\n\t\treturn this.stripTags();\n\t}\n\t/** HTML escape special characters */\n\thtmlEscape() {\n\t\treturn this.addMutator(htmlEscapeMutator);\n\t}\n\t/** Unescape HTML entities */\n\tunescapeHtml() {\n\t\treturn this.addMutator(unescapeHtmlMutator);\n\t}\n\t/**\n\t* Remove special characters\n\t* This will remove all characters that are not alphanumeric or whitespace\n\t*/\n\tremoveSpecialCharacters() {\n\t\treturn this.addMutator(removeSpecialCharactersMutator);\n\t}\n\t/** Convert to only alphabetic characters */\n\ttoAlpha() {\n\t\treturn this.addMutator(alphaOnlyMutator);\n\t}\n\t/** Convert to only alphanumeric characters */\n\ttoAlphanumeric() {\n\t\treturn this.addMutator(alphanumericOnlyMutator);\n\t}\n\t/** Remove all numeric characters */\n\tremoveNumbers() {\n\t\treturn this.addMutator(removeNumbersMutator);\n\t}\n\t/** URL decode */\n\turlDecode() {\n\t\treturn this.addMutator(urlDecodeMutator);\n\t}\n\t/** URL encode */\n\turlEncode() {\n\t\treturn this.addMutator(urlEncodeMutator);\n\t}\n\t/** Convert to URL-friendly slug */\n\tslug() {\n\t\treturn this.addMutator(slugMutator);\n\t}\n\t/** Base64 encode */\n\tbase64Encode() {\n\t\treturn this.addMutator(base64EncodeMutator);\n\t}\n\t/** Base64 decode */\n\tbase64Decode() {\n\t\treturn this.addMutator(base64DecodeMutator);\n\t}\n\t/** Replace substring or pattern */\n\treplace(search, replace) {\n\t\treturn this.addMutator(replaceMutator, {\n\t\t\tsearch,\n\t\t\treplace\n\t\t});\n\t}\n\t/** Replace all occurrences of substring or pattern */\n\treplaceAll(search, replace) {\n\t\treturn this.addMutator(replaceAllMutator, {\n\t\t\tsearch,\n\t\t\treplace\n\t\t});\n\t}\n\t/** Append/suffix text to the end */\n\tappend(suffix) {\n\t\treturn this.addMutator(appendMutator, { suffix });\n\t}\n\t/** Prepend/prefix text to the beginning */\n\tprepend(prefix) {\n\t\treturn this.addMutator(prependMutator, { prefix });\n\t}\n\t/** Reverse the string */\n\treverse() {\n\t\treturn this.addMutator(reverseMutator);\n\t}\n\t/** Truncate to a maximum length */\n\ttruncate(maxLength, suffix = \"...\") {\n\t\treturn this.addMutator(truncateMutator, {\n\t\t\tmaxLength,\n\t\t\tsuffix\n\t\t});\n\t}\n\t/** Repeat string N times */\n\trepeat(count) {\n\t\treturn this.addMutator(repeatMutator, { count });\n\t}\n\t/** Mask part of string */\n\tmask(start, end, char = \"*\") {\n\t\treturn this.addMutator(maskMutator, {\n\t\t\tstart,\n\t\t\tend,\n\t\t\tchar\n\t\t});\n\t}\n\t/** Value must be a valid email */\n\temail(errorMessage) {\n\t\treturn this.addRule(emailRule, errorMessage);\n\t}\n\t/** Value must be a valid URL */\n\turl(errorMessage) {\n\t\treturn this.addRule(urlRule, errorMessage);\n\t}\n\t/** Value can not have whitespace */\n\twithoutWhitespace(errorMessage) {\n\t\treturn this.addRule(withoutWhitespaceRule, errorMessage);\n\t}\n\t/** Value must match the given pattern */\n\tpattern(pattern, errorMessage) {\n\t\treturn this.addRule(patternRule, errorMessage, { pattern });\n\t}\n\t/**\n\t* Value must be a strong password\n\t* Requirements:\n\t* - At least 8 characters\n\t* - At least 1 uppercase letter\n\t* - At least 1 lowercase letter\n\t* - At least 1 number\n\t* - At least 1 special character\n\t*/\n\tstrongPassword(minLength, errorMessage) {\n\t\treturn this.addRule(strongPasswordRule, errorMessage, { minLength });\n\t}\n\t/** Value must be exactly the given number of words */\n\twords(words, errorMessage) {\n\t\treturn this.addRule(wordsRule, errorMessage, { words });\n\t}\n\t/** Value must be at least the given number of words */\n\tminWords(words, errorMessage) {\n\t\treturn this.addRule(minWordsRule, errorMessage, { minWords: words });\n\t}\n\t/** Value must be at most the given number of words */\n\tmaxWords(words, errorMessage) {\n\t\treturn this.addRule(maxWordsRule, errorMessage, { maxWords: words });\n\t}\n\t/** Value length must be greater than the given length */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** @alias minLength */\n\tmin(min, errorMessage) {\n\t\treturn this.minLength(min, errorMessage);\n\t}\n\t/** Value length must be less than the given length */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/** @alias maxLength */\n\tmax(max, errorMessage) {\n\t\treturn this.maxLength(max, errorMessage);\n\t}\n\t/** Value must be of the given length */\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/**\n\t* String length must be between min and max (inclusive)\n\t*\n\t* @param min - Minimum length (inclusive)\n\t* @param max - Maximum length (inclusive)\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().between(5, 10) // Length: 5 to 10 characters\n\t* v.string().lengthBetween(8, 20) // Same using alias\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tlengthBetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenLengthRule, errorMessage, {\n\t\t\tminLength: min,\n\t\t\tmaxLength: max\n\t\t});\n\t}\n\t/** Allow only alphabetic characters */\n\talpha(errorMessage) {\n\t\treturn this.addRule(alphaRule, errorMessage);\n\t}\n\t/** Allow only alphanumeric characters */\n\talphanumeric(errorMessage) {\n\t\treturn this.addRule(alphaNumericRule, errorMessage);\n\t}\n\t/** Allow only numeric characters */\n\tnumeric(errorMessage) {\n\t\treturn this.addRule(isNumericRule, errorMessage);\n\t}\n\t/** Value must starts with the given string */\n\tstartsWith(value, errorMessage) {\n\t\treturn this.addRule(startsWithRule, errorMessage, { value });\n\t}\n\t/** Value must ends with the given string */\n\tendsWith(value, errorMessage) {\n\t\treturn this.addRule(endsWithRule, errorMessage, { value });\n\t}\n\t/** Value must contain the given string */\n\tcontains(value, errorMessage) {\n\t\treturn this.addRule(containsRule, errorMessage, { value });\n\t}\n\t/** Value must not contain the given string */\n\tnotContains(value, errorMessage) {\n\t\treturn this.addRule(notContainsRule, errorMessage, { value });\n\t}\n\t/** Value must be a valid IP address */\n\tip(errorMessage) {\n\t\treturn this.addRule(ipRule, errorMessage);\n\t}\n\t/** Value must be a valid IPv4 address */\n\tip4(errorMessage) {\n\t\treturn this.addRule(ip4Rule, errorMessage);\n\t}\n\t/** Value must be a valid IPv6 address */\n\tip6(errorMessage) {\n\t\treturn this.addRule(ip6Rule, errorMessage);\n\t}\n\t/** Check if the string matches a credit card number */\n\tcreditCard(errorMessage) {\n\t\treturn this.addRule(isCreditCardRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid color */\n\tcolor(errorMessage) {\n\t\treturn this.addRule(colorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid hex color */\n\thexColor(errorMessage) {\n\t\treturn this.addRule(hexColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid HSL color */\n\thslColor(errorMessage) {\n\t\treturn this.addRule(hslColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid RGB color */\n\trgbColor(errorMessage) {\n\t\treturn this.addRule(rgbColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid RGBA color */\n\trgbaColor(errorMessage) {\n\t\treturn this.addRule(rgbaColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid light color */\n\tlightColor(errorMessage) {\n\t\treturn this.addRule(lightColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid dark color */\n\tdarkColor(errorMessage) {\n\t\treturn this.addRule(darkColorRule, errorMessage);\n\t}\n\t/**\n\t* Value must be a valid UUID. Optionally restrict to a specific version.\n\t*\n\t* @example\n\t* v.string().uuid() // any RFC 4122 UUID\n\t* v.string().uuid(4) // only v4 (random)\n\t* v.string().uuid(7) // only v7 (timestamp-ordered)\n\t*/\n\tuuid(version, errorMessage) {\n\t\treturn this.addRule(uuidRule, errorMessage, { version });\n\t}\n\t/**\n\t* Value must be a valid CUID. Defaults to CUID2; pass `{ version: 1 }` for legacy.\n\t*\n\t* @example\n\t* v.string().cuid() // CUID2\n\t* v.string().cuid({ version: 1 }) // legacy CUID1\n\t*/\n\tcuid(options) {\n\t\tconst { errorMessage, version } = options ?? {};\n\t\treturn this.addRule(cuidRule, errorMessage, { version });\n\t}\n\t/** Value must be a valid ULID (26 chars, Crockford base32). */\n\tulid(errorMessage) {\n\t\treturn this.addRule(ulidRule, errorMessage);\n\t}\n\t/**\n\t* Value must be a valid nanoid string. Default length is 21.\n\t*\n\t* @example\n\t* v.string().nanoid() // 21 chars (default)\n\t* v.string().nanoid(10) // 10 chars\n\t*/\n\tnanoid(length, errorMessage) {\n\t\treturn this.addRule(nanoidRule, errorMessage, { length });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Maps String-specific rule options to JSON Schema keywords.\n\t* Non-representable rules (cross-field, refine, color rules, etc.) are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().min(2).max(100).email().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", minLength: 2, maxLength: 100, format: \"email\" }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { type: \"string\" };\n\t\tconst minOpts = getRuleOptions(this.rules, \"minLength\");\n\t\tif (minOpts?.minLength !== void 0) schema.minLength = minOpts.minLength;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"maxLength\");\n\t\tif (maxOpts?.maxLength !== void 0) schema.maxLength = maxOpts.maxLength;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenLength\");\n\t\tif (betweenOpts) {\n\t\t\tif (betweenOpts.minLength !== void 0) schema.minLength = betweenOpts.minLength;\n\t\t\tif (betweenOpts.maxLength !== void 0) schema.maxLength = betweenOpts.maxLength;\n\t\t}\n\t\tconst lengthOpts = getRuleOptions(this.rules, \"length\");\n\t\tif (lengthOpts?.length !== void 0) {\n\t\t\tschema.minLength = lengthOpts.length;\n\t\t\tschema.maxLength = lengthOpts.length;\n\t\t}\n\t\tconst patternOpts = getRuleOptions(this.rules, \"pattern\");\n\t\tif (patternOpts?.pattern instanceof RegExp) schema.pattern = patternOpts.pattern.source;\n\t\tif (getRuleOptions(this.rules, \"email\") !== void 0 || this.rules.some((r) => r.name === \"email\")) schema.format = \"email\";\n\t\telse if (this.rules.some((r) => r.name === \"url\")) schema.format = \"uri\";\n\t\telse if (this.rules.some((r) => r.name === \"ip\")) schema.format = \"ipv4\";\n\t\telse if (this.rules.some((r) => r.name === \"ip4\")) schema.format = \"ipv4\";\n\t\telse if (this.rules.some((r) => r.name === \"ip6\")) schema.format = \"ipv6\";\n\t\telse if (this.rules.some((r) => r.name === \"uuid\")) schema.format = \"uuid\";\n\t\telse if (this.rules.some((r) => r.name === \"hexColor\")) schema.format = \"color\";\n\t\tif (!schema.format) {\n\t\t\tconst cuidOpts = getRuleOptions(this.rules, \"cuid\");\n\t\t\tif (cuidOpts) schema.pattern = cuidOpts.version === 1 ? \"^c[a-z0-9]{24,}$\" : \"^[a-z][a-z0-9]{23}$\";\n\t\t\tif (this.rules.some((r) => r.name === \"ulid\")) schema.pattern = \"^[0-9A-HJKMNP-TV-Z]{26}$\";\n\t\t\tconst nanoidOpts = getRuleOptions(this.rules, \"nanoid\");\n\t\t\tif (nanoidOpts) schema.pattern = `^[A-Za-z0-9_-]{${nanoidOpts.length ?? 21}}$`;\n\t\t}\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) schema.enum = inOpts.values;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { StringValidator };\n//# sourceMappingURL=string-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { arrayRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/tuple-validator.ts\n/**\n* Tuple validator class - validates fixed-length arrays with position-specific types\n*\n* @example\n* ```ts\n* // RGB color tuple\n* v.tuple([v.number(), v.number(), v.number()])\n* // Valid: [255, 128, 0]\n* // Invalid: [255, 128] (too short)\n*\n* // Mixed types\n* v.tuple([v.string(), v.int(), v.boolean()])\n* // Valid: [\"John\", 25, true]\n* ```\n*/\nvar TupleValidator = class extends BaseValidator {\n\tconstructor(validators, errorMessage) {\n\t\tsuper();\n\t\tthis.validators = validators;\n\t\tthis.addMutableRule(arrayRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an array type\n\t*/\n\tmatchesType(value) {\n\t\treturn Array.isArray(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.validators = this.validators.map((v) => v.clone());\n\t\treturn cloned;\n\t}\n\t/**\n\t* Validate tuple - check length then validate each position\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional tuple\n\t* fields would silently materialise as `[]` in the validated output and then\n\t* fail the length check.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!Array.isArray(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tif (mutatedData.length !== this.validators.length) {\n\t\t\terrors.push({\n\t\t\t\ttype: \"tuple\",\n\t\t\t\tinput: context.key || \"value\",\n\t\t\t\terror: `Expected exactly ${this.validators.length} items, but got ${mutatedData.length}`\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors,\n\t\t\t\tdata: mutatedData\n\t\t\t};\n\t\t}\n\t\tconst validationPromises = this.validators.map(async (validator, index) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue: mutatedData[index],\n\t\t\t\tkey: index.toString(),\n\t\t\t\tpath: setKeyPath(context.path, index.toString())\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(mutatedData[index], childContext);\n\t\t\tmutatedData[index] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Tuple keyword diverges between targets:\n\t* - `draft-2020-12` → `prefixItems` + `items: false` (exact length enforced)\n\t* - `draft-07` → `items` as array + `additionalItems: false`\n\t* - `openapi-3.0` → same as draft-07 (OpenAPI 3.0 is based on draft-07)\n\t*\n\t* @example\n\t* ```ts\n\t* v.tuple([v.string(), v.int(), v.boolean()]).toJsonSchema(\"draft-2020-12\")\n\t* // → {\n\t* // type: \"array\",\n\t* // prefixItems: [{ type: \"string\" }, { type: \"integer\" }, { type: \"boolean\" }],\n\t* // items: false,\n\t* // minItems: 3,\n\t* // maxItems: 3\n\t* // }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst itemSchemas = this.validators.map((v) => v.toJsonSchema(target));\n\t\tconst length = this.validators.length;\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\tminItems: length,\n\t\t\tmaxItems: length\n\t\t};\n\t\tif (target === \"draft-2020-12\") {\n\t\t\tschema.prefixItems = itemSchemas;\n\t\t\tschema.items = false;\n\t\t} else {\n\t\t\tschema.items = itemSchemas;\n\t\t\tschema.additionalItems = false;\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { TupleValidator };\n//# sourceMappingURL=tuple-validator.mjs.map","import { getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { unionRule } from \"../rules/core/union.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/union-validator.ts\n/**\n* Union validator class - validates value against multiple validator types\n*\n* Tries each validator in order until one passes. If a validator's matchesType()\n* returns false, it's skipped for optimization. First validator that both matches\n* the type and passes validation wins.\n*\n* @example\n* ```ts\n* // Accept email or username\n* const identifier = v.union([\n* v.string().email(),\n* v.string().alphanumeric().min(3).max(20)\n* ]);\n*\n* // Accept different types\n* const customValue = v.union([\n* v.string().required(),\n* v.number().required(),\n* v.boolean().required(),\n* v.file().required()\n* ]);\n* ```\n*/\nvar UnionValidator = class extends BaseValidator {\n\t/**\n\t* Set the validators to try for union validation\n\t*\n\t* @param validators - Array of validators to try\n\t* @param errorMessage - Optional custom error message if all validators fail\n\t* @returns This validator for chaining\n\t*\n\t* @example\n\t* ```ts\n\t* new UnionValidator()\n\t* .union([v.string(), v.number()], 'Must be string or number');\n\t* ```\n\t*/\n\tunion(validators, errorMessage) {\n\t\treturn this.addRule(unionRule, errorMessage, { validators });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Generates `{ oneOf: [...] }` by mapping each sub-validator to its JSON Schema.\n\t*\n\t* @example\n\t* ```ts\n\t* v.union([v.string(), v.number()]).toJsonSchema(\"draft-2020-12\")\n\t* // → { oneOf: [{ type: \"string\" }, { type: \"number\" }] }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn { oneOf: (getRuleOptions(this.rules, \"union\")?.validators ?? []).map((v) => v.toJsonSchema(target)) };\n\t}\n};\n\n//#endregion\nexport { UnionValidator };\n//# sourceMappingURL=union-validator.mjs.map","import { validate } from \"./validate.mjs\";\nimport { AnyValidator } from \"../validators/any-validator.mjs\";\nimport { ArrayValidator } from \"../validators/array-validator.mjs\";\nimport \"../validators/methods/equality-conditional-methods.mjs\";\nimport \"../validators/methods/forbidden-methods.mjs\";\nimport \"../validators/methods/present-methods.mjs\";\nimport \"../validators/methods/required-methods.mjs\";\nimport { BooleanValidator } from \"../validators/boolean-validator.mjs\";\nimport { ComputedValidator } from \"../validators/computed-validator.mjs\";\nimport { DateValidator } from \"../validators/date-validator.mjs\";\nimport { LiteralValidator } from \"../validators/literal-validator.mjs\";\nimport { DiscriminatedUnionValidator } from \"../validators/discriminated-union-validator.mjs\";\nimport { NumberValidator } from \"../validators/number-validator.mjs\";\nimport { FloatValidator } from \"../validators/float-validator.mjs\";\nimport { InstanceOfValidator } from \"../validators/instanceof-validator.mjs\";\nimport { IntValidator } from \"../validators/int-validator.mjs\";\nimport { LazyValidator } from \"../validators/lazy-validator.mjs\";\nimport { ManagedValidator } from \"../validators/managed-validator.mjs\";\nimport { NumericValidator } from \"../validators/numeric-validator.mjs\";\nimport { ObjectValidator } from \"../validators/object-validator.mjs\";\nimport { RecordValidator } from \"../validators/record-validator.mjs\";\nimport { ScalarValidator } from \"../validators/scalar-validator.mjs\";\nimport { StringValidator } from \"../validators/string-validator.mjs\";\nimport { TupleValidator } from \"../validators/tuple-validator.mjs\";\nimport { UnionValidator } from \"../validators/union-validator.mjs\";\n\n//#region ../seal/src/factory/validators.ts\n/**\n* Seal factory object - creates instances of validators\n*\n* Use 'v' to create validation schemas (seals) for your data\n*/\nconst v = {\n\t/** Create an object validator */\n\tobject: (schema, errorMessage) => new ObjectValidator(schema, errorMessage),\n\t/** Create an any validator */\n\tany: () => new AnyValidator(),\n\t/** Create an array validator */\n\tarray: (validator, errorMessage) => new ArrayValidator(validator, errorMessage),\n\t/** Create a record validator - object with dynamic keys and consistent value types */\n\trecord: (validator, errorMessage) => new RecordValidator(validator || v.any(), errorMessage),\n\t/** Create a tuple validator - fixed-length array with position-specific types */\n\ttuple: (validators, errorMessage) => new TupleValidator(validators, errorMessage),\n\t/** Create a date validator */\n\tdate: (errorMessage) => new DateValidator(errorMessage),\n\t/**\n\t* Create a literal validator — narrows to the union of given literal values\n\t*\n\t* @example\n\t* v.literal(\"items\") // type: \"items\"\n\t* v.literal(\"draft\", \"published\") // type: \"draft\" | \"published\"\n\t* v.literal(1, 2, 3) // type: 1 | 2 | 3\n\t*/\n\tliteral: (...values) => new LiteralValidator(values),\n\t/**\n\t* Create an instanceof validator — value must be `instanceof` the constructor\n\t*\n\t* @example\n\t* v.instanceof(File) // type: File\n\t* v.instanceof(Buffer) // type: Buffer\n\t* v.instanceof(MyClass) // type: MyClass\n\t*/\n\tinstanceof: (ctor, errorMessage) => new InstanceOfValidator(ctor, errorMessage),\n\t/**\n\t* Create a lazy validator — defers resolution of the inner validator until\n\t* validate-time. Use for recursive or forward-referenced schemas.\n\t*\n\t* @example\n\t* type Category = { name: string; children: Category[] };\n\t*\n\t* const category: ObjectValidator<...> = v.object({\n\t* name: v.string(),\n\t* children: v.array(v.lazy(() => category)),\n\t* });\n\t*/\n\tlazy: (thunk) => new LazyValidator(thunk),\n\t/** Create a string validator */\n\tstring: (errorMessage) => new StringValidator(errorMessage),\n\t/** Create an email validator */\n\temail: (emailErrorMessage, errorMessage) => new StringValidator(errorMessage).email(emailErrorMessage),\n\t/**\n\t* Create an enum validator — preserves the literal union of accepted\n\t* values in the inferred Standard Schema output.\n\t*\n\t* Two input shapes:\n\t* - Tuple of literals: `v.enum([\"draft\", \"published\"])` →\n\t* `StandardSchemaV1<\"draft\" | \"published\">`\n\t* - TypeScript enum object: `v.enum(Status)` →\n\t* `StandardSchemaV1<Status[keyof Status]>`\n\t*\n\t* Implementation is loosely typed; the public `ValidatorV.enum`\n\t* surface declares the precise overloads.\n\t*/\n\tenum: ((values, errorMessage) => Array.isArray(values) ? new StringValidator().oneOf(values, errorMessage) : new ScalarValidator().enum(values, errorMessage)),\n\t/** Create a number validator */\n\tnumber: (errorMessage) => new NumberValidator(errorMessage),\n\t/** Create a numeric validator */\n\tnumeric: (errorMessage) => new NumericValidator(errorMessage),\n\t/** Create an integer validator */\n\tint: (errorMessage) => new IntValidator(errorMessage),\n\t/** Create a float validator */\n\tfloat: (errorMessage) => new FloatValidator(errorMessage),\n\t/** Create a boolean validator */\n\tboolean: (errorMessage) => new BooleanValidator(errorMessage),\n\t/** Create a scalar validator */\n\tscalar: (errorMessage) => new ScalarValidator(errorMessage),\n\t/** Create a union validator - validates against multiple types */\n\tunion: (validators, errorMessage) => new UnionValidator().union(validators, errorMessage),\n\t/**\n\t* Create a discriminated union — routes payloads by a shared literal\n\t* discriminator field. Each branch must be a `v.object(...)` with the\n\t* discriminator typed as `v.literal(...)`.\n\t*\n\t* @example\n\t* const email = v.object({ type: v.literal(\"email\"), email: v.string().email() });\n\t* const sms = v.object({ type: v.literal(\"sms\"), phone: v.string() });\n\t* const notif = v.discriminatedUnion(\"type\", [email, sms]);\n\t* // type T = Infer<typeof notif>;\n\t* // → { type: \"email\", email: string } | { type: \"sms\", phone: string }\n\t*/\n\tdiscriminatedUnion: (discriminator, validators) => new DiscriminatedUnionValidator(discriminator, validators),\n\t/** Create a computed field validator - derives value from other validated fields */\n\tcomputed: (callback, resultValidator) => new ComputedValidator(callback, resultValidator),\n\t/** Create a managed field validator - framework-injected value */\n\tmanaged: (callback, resultValidator) => new ManagedValidator(callback, resultValidator),\n\t/** Validate data against a schema */\n\tvalidate\n};\n\n//#endregion\nexport { v };\n//# sourceMappingURL=validators.mjs.map","import { log } from \"@warlock.js/logger\";\nimport { v } from \"@warlock.js/seal\";\nimport { randomUUID } from \"node:crypto\";\n\n//#region ../herald/src/drivers/rabbitmq/rabbitmq-channel.ts\n/**\n* RabbitMQ Channel Implementation\n*\n* Wraps a RabbitMQ queue/exchange with a unified API.\n*\n* @template TPayload - The typed payload\n*/\nvar RabbitMQChannel = class {\n\t/**\n\t* Create a new RabbitMQ channel\n\t*/\n\tconstructor(name, amqpChannel, options) {\n\t\tthis.subscriptions = /* @__PURE__ */ new Map();\n\t\tthis.asserted = false;\n\t\tthis.name = name;\n\t\tthis.amqpChannel = amqpChannel;\n\t\tthis.options = options ?? {};\n\t}\n\t/**\n\t* Assert the queue exists\n\t*/\n\tasync assert() {\n\t\tif (this.asserted) return;\n\t\tconst queueOptions = {\n\t\t\tdurable: this.options.durable ?? true,\n\t\t\tautoDelete: this.options.autoDelete ?? false,\n\t\t\texclusive: this.options.exclusive ?? false,\n\t\t\tmessageTtl: this.options.messageTtl,\n\t\t\tmaxLength: this.options.maxLength,\n\t\t\tdeadLetterExchange: this.options.deadLetter?.channel ? \"\" : void 0,\n\t\t\tdeadLetterRoutingKey: this.options.deadLetter?.channel\n\t\t};\n\t\tawait this.amqpChannel.assertQueue(this.name, queueOptions);\n\t\tthis.asserted = true;\n\t}\n\t/**\n\t* Publish a message\n\t*/\n\tasync publish(payload, options) {\n\t\tawait this.assert();\n\t\tif (this.options.schema) {\n\t\t\tconst context = {\n\t\t\t\tallValues: payload,\n\t\t\t\tvalue: payload\n\t\t\t};\n\t\t\tconst result = await v.validate(this.options.schema, payload, { context });\n\t\t\tif (!result.isValid) throw new Error(`Message validation failed: ${JSON.stringify(result.errors)}`);\n\t\t\tpayload = result.data;\n\t\t}\n\t\tconst messageId = randomUUID();\n\t\tconst timestamp = /* @__PURE__ */ new Date();\n\t\tconst messageContent = JSON.stringify({\n\t\t\tpayload,\n\t\t\tmetadata: {\n\t\t\t\tmessageId,\n\t\t\t\ttimestamp: timestamp.toISOString(),\n\t\t\t\tcorrelationId: options?.correlationId,\n\t\t\t\theaders: options?.headers\n\t\t\t}\n\t\t});\n\t\tconst publishOptions = {\n\t\t\tpersistent: options?.persistent ?? true,\n\t\t\tmessageId,\n\t\t\ttimestamp: timestamp.getTime(),\n\t\t\tcorrelationId: options?.correlationId,\n\t\t\texpiration: options?.expiration?.toString(),\n\t\t\tpriority: options?.priority,\n\t\t\theaders: options?.headers\n\t\t};\n\t\tif (options?.delay) publishOptions.headers = {\n\t\t\t...publishOptions.headers,\n\t\t\t\"x-delay\": options.delay\n\t\t};\n\t\tthis.amqpChannel.sendToQueue(this.name, Buffer.from(messageContent), publishOptions);\n\t}\n\t/**\n\t* Publish multiple messages\n\t*/\n\tasync publishBatch(messages, options) {\n\t\tfor (const payload of messages) await this.publish(payload, options);\n\t}\n\t/**\n\t* Subscribe to messages\n\t*\n\t* Smart auto-ack behavior (when autoAck is not true):\n\t* - If handler completes successfully without explicit ack/nack/reject → auto-ack\n\t* - If handler throws an error → auto-nack (with retry if configured)\n\t* - If handler explicitly calls ack/nack/reject → respects that call\n\t*/\n\tasync subscribe(handler, options) {\n\t\tawait this.assert();\n\t\tconst subscriptionId = options?.consumerId ?? randomUUID();\n\t\tif (options?.prefetch) await this.amqpChannel.prefetch(options.prefetch);\n\t\tconst isFireAndForget = options?.autoAck === true;\n\t\tconst consumerOptions = {\n\t\t\tnoAck: isFireAndForget,\n\t\t\texclusive: options?.exclusive ?? false,\n\t\t\tconsumerTag: options?.group ?? subscriptionId\n\t\t};\n\t\tconst { consumerTag } = await this.amqpChannel.consume(this.name, async (msg) => {\n\t\t\tif (!msg) return;\n\t\t\tlet ackHandled = isFireAndForget;\n\t\t\tlet parsedMessage;\n\t\t\ttry {\n\t\t\t\tconst content = JSON.parse(msg.content.toString());\n\t\t\t\tlet payload = content.payload;\n\t\t\t\tif (this.options.schema) {\n\t\t\t\t\tconst context = {\n\t\t\t\t\t\tallValues: payload,\n\t\t\t\t\t\tvalue: payload\n\t\t\t\t\t};\n\t\t\t\t\tconst result = await v.validate(this.options.schema, payload, { context });\n\t\t\t\t\tif (!result.isValid) {\n\t\t\t\t\t\tthis.amqpChannel.nack(msg, false, false);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tpayload = result.data;\n\t\t\t\t}\n\t\t\t\tconst metadata = {\n\t\t\t\t\tmessageId: msg.properties.messageId || content.metadata?.messageId || randomUUID(),\n\t\t\t\t\ttimestamp: new Date(msg.properties.timestamp || content.metadata?.timestamp),\n\t\t\t\t\tcorrelationId: msg.properties.correlationId || content.metadata?.correlationId,\n\t\t\t\t\treplyTo: msg.properties.replyTo,\n\t\t\t\t\tpriority: msg.properties.priority,\n\t\t\t\t\theaders: msg.properties.headers,\n\t\t\t\t\tretryCount: msg.properties.headers?.[\"x-retry-count\"] || 0,\n\t\t\t\t\toriginalChannel: this.name\n\t\t\t\t};\n\t\t\t\tconst message = {\n\t\t\t\t\tmetadata,\n\t\t\t\t\tpayload,\n\t\t\t\t\traw: msg\n\t\t\t\t};\n\t\t\t\tparsedMessage = message;\n\t\t\t\tawait handler(message, {\n\t\t\t\t\tack: async () => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.ack(msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tnack: async (requeue = true) => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.nack(msg, false, requeue);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treject: async () => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.reject(msg, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treply: async (replyPayload) => {\n\t\t\t\t\t\tif (msg.properties.replyTo) {\n\t\t\t\t\t\t\tconst replyContent = JSON.stringify({\n\t\t\t\t\t\t\t\tpayload: replyPayload,\n\t\t\t\t\t\t\t\tmetadata: {\n\t\t\t\t\t\t\t\t\tmessageId: randomUUID(),\n\t\t\t\t\t\t\t\t\ttimestamp: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\t\t\t\t\t\t\tcorrelationId: msg.properties.correlationId\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tthis.amqpChannel.sendToQueue(msg.properties.replyTo, Buffer.from(replyContent), { correlationId: msg.properties.correlationId });\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tretry: async (delay) => {\n\t\t\t\t\t\tif (ackHandled) return;\n\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\tawait this.retryOrGiveUp(msg, metadata.retryCount || 0, options, message, delay);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif (!ackHandled) this.amqpChannel.ack(msg);\n\t\t\t} catch (error) {\n\t\t\t\tif (ackHandled) return;\n\t\t\t\tif (options?.retry) {\n\t\t\t\t\tconst currentRetryCount = msg.properties.headers?.[\"x-retry-count\"] || 0;\n\t\t\t\t\tawait this.retryOrGiveUp(msg, currentRetryCount, options, parsedMessage);\n\t\t\t\t} else this.amqpChannel.nack(msg, false, false);\n\t\t\t}\n\t\t}, consumerOptions);\n\t\tconst subscription = new RabbitMQSubscription(subscriptionId, this.name, consumerTag, this.amqpChannel);\n\t\tthis.subscriptions.set(subscriptionId, subscription);\n\t\treturn subscription;\n\t}\n\t/**\n\t* Unsubscribe by consumer ID\n\t*/\n\tasync unsubscribeById(consumerId) {\n\t\tconst subscription = this.subscriptions.get(consumerId);\n\t\tif (subscription) {\n\t\t\tawait subscription.unsubscribe();\n\t\t\tthis.subscriptions.delete(consumerId);\n\t\t}\n\t}\n\t/**\n\t* Stop consuming messages on this channel.\n\t* Cancels all active subscriptions gracefully.\n\t*/\n\tasync stopConsuming() {\n\t\tconst cancellations = Array.from(this.subscriptions.values()).map((sub) => sub.unsubscribe());\n\t\tawait Promise.all(cancellations);\n\t}\n\t/**\n\t* Send message to dead-letter queue\n\t*/\n\tasync sendToDeadLetter(message, deadLetterChannel) {\n\t\tconst content = JSON.stringify({\n\t\t\tpayload: message.payload,\n\t\t\tmetadata: {\n\t\t\t\t...message.metadata,\n\t\t\t\toriginalChannel: this.name\n\t\t\t}\n\t\t});\n\t\tthis.amqpChannel.sendToQueue(deadLetterChannel, Buffer.from(content), { persistent: true });\n\t}\n\t/**\n\t* Dead-letter a message whose body couldn't be parsed into a {@link Message}\n\t* (e.g. `JSON.parse` itself threw before an envelope existed). Forwards the\n\t* raw AMQP bytes/properties as-is rather than re-deriving a payload, so a\n\t* malformed message isn't lost.\n\t*/\n\tsendToDeadLetterRaw(msg, deadLetterChannel) {\n\t\tthis.amqpChannel.sendToQueue(deadLetterChannel, msg.content, {\n\t\t\t...msg.properties,\n\t\t\tpersistent: true\n\t\t});\n\t}\n\t/**\n\t* Bounded retry shared by the explicit `ctx.retry()` call and the automatic\n\t* catch when a handler throws without calling it itself — so both paths\n\t* honor the same cap instead of the automatic path silently requeueing\n\t* forever (see `subscribe()`'s catch block).\n\t*\n\t* Under the cap: republishes with an incremented `x-retry-count` header —\n\t* NOT a plain `nack(msg, false, true)`, which redelivers the original\n\t* message untouched and never advances the counter.\n\t*\n\t* At/over the cap: dead-letters if configured, otherwise drops the message\n\t* with a loud `log.error` (never a silent drop) so an operator can see a\n\t* poison message was discarded instead of it vanishing without a trace.\n\t*/\n\tasync retryOrGiveUp(msg, currentRetryCount, options, parsedMessage, delay) {\n\t\tconst retryCount = currentRetryCount + 1;\n\t\tconst maxRetries = options?.retry?.maxRetries ?? 3;\n\t\tif (retryCount > maxRetries) {\n\t\t\tif (options?.deadLetter) if (parsedMessage) await this.sendToDeadLetter(parsedMessage, options.deadLetter.channel);\n\t\t\telse this.sendToDeadLetterRaw(msg, options.deadLetter.channel);\n\t\t\telse {\n\t\t\t\tlog.error(\"herald\", \"poison-message\", `Dropping message on channel \"${this.name}\" after ${retryCount - 1} failed ${retryCount - 1 === 1 ? \"retry\" : \"retries\"} (maxRetries: ${maxRetries}) with no dead-letter channel configured.`, {\n\t\t\t\t\tchannel: this.name,\n\t\t\t\t\tretryCount: retryCount - 1,\n\t\t\t\t\tmaxRetries\n\t\t\t\t});\n\t\t\t\tthis.amqpChannel.reject(msg, false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.amqpChannel.ack(msg);\n\t\t\treturn;\n\t\t}\n\t\tconst headers = {\n\t\t\t...msg.properties.headers,\n\t\t\t\"x-retry-count\": retryCount\n\t\t};\n\t\tif (delay) headers[\"x-delay\"] = delay;\n\t\tthis.amqpChannel.sendToQueue(this.name, msg.content, {\n\t\t\t...msg.properties,\n\t\t\theaders\n\t\t});\n\t\tthis.amqpChannel.ack(msg);\n\t}\n\t/**\n\t* Request-response pattern\n\t*/\n\tasync request(payload, options) {\n\t\tawait this.assert();\n\t\tconst correlationId = randomUUID();\n\t\tconst timeout = options?.timeout ?? 3e4;\n\t\tconst { queue: replyQueue } = await this.amqpChannel.assertQueue(\"\", {\n\t\t\texclusive: true,\n\t\t\tautoDelete: true\n\t\t});\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst timeoutId = setTimeout(() => {\n\t\t\t\treject(/* @__PURE__ */ new Error(`Request timeout after ${timeout}ms`));\n\t\t\t}, timeout);\n\t\t\tthis.amqpChannel.consume(replyQueue, (msg) => {\n\t\t\t\tif (msg?.properties.correlationId === correlationId) {\n\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t\tresolve(JSON.parse(msg.content.toString()).payload);\n\t\t\t\t}\n\t\t\t}, { noAck: true });\n\t\t\tconst messageContent = JSON.stringify({\n\t\t\t\tpayload,\n\t\t\t\tmetadata: {\n\t\t\t\t\tmessageId: randomUUID(),\n\t\t\t\t\ttimestamp: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\t\t\tcorrelationId\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.amqpChannel.sendToQueue(this.name, Buffer.from(messageContent), {\n\t\t\t\tcorrelationId,\n\t\t\t\treplyTo: replyQueue,\n\t\t\t\texpiration: timeout.toString(),\n\t\t\t\t...options\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Register response handler for RPC\n\t*/\n\tasync respond(handler) {\n\t\treturn this.subscribe(async (message, ctx) => {\n\t\t\tconst response = await handler(message, ctx);\n\t\t\tawait ctx.reply(response);\n\t\t\tawait ctx.ack();\n\t\t});\n\t}\n\t/**\n\t* Get queue statistics\n\t*/\n\tasync stats() {\n\t\tawait this.assert();\n\t\tconst queueInfo = await this.amqpChannel.checkQueue(this.name);\n\t\treturn {\n\t\t\tname: this.name,\n\t\t\tmessageCount: queueInfo.messageCount,\n\t\t\tconsumerCount: queueInfo.consumerCount\n\t\t};\n\t}\n\t/**\n\t* Purge all messages\n\t*/\n\tasync purge() {\n\t\tawait this.assert();\n\t\treturn (await this.amqpChannel.purgeQueue(this.name)).messageCount;\n\t}\n\t/**\n\t* Check if queue exists\n\t*/\n\tasync exists() {\n\t\ttry {\n\t\t\tawait this.amqpChannel.checkQueue(this.name);\n\t\t\treturn true;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}\n\t/**\n\t* Delete the queue\n\t*/\n\tasync delete() {\n\t\tfor (const subscription of this.subscriptions.values()) await subscription.unsubscribe();\n\t\tthis.subscriptions.clear();\n\t\ttry {\n\t\t\tawait this.amqpChannel.deleteQueue(this.name);\n\t\t} catch {}\n\t\tthis.asserted = false;\n\t}\n};\n/**\n* RabbitMQ Subscription Implementation\n*/\nvar RabbitMQSubscription = class {\n\tconstructor(id, channel, consumerTag, amqpChannel) {\n\t\tthis._isActive = true;\n\t\tthis.id = id;\n\t\tthis.channel = channel;\n\t\tthis.consumerTag = consumerTag;\n\t\tthis.amqpChannel = amqpChannel;\n\t}\n\tasync unsubscribe() {\n\t\tif (!this._isActive) return;\n\t\tawait this.amqpChannel.cancel(this.consumerTag);\n\t\tthis._isActive = false;\n\t}\n\tasync pause() {\n\t\tawait this.amqpChannel.cancel(this.consumerTag);\n\t}\n\tasync resume() {\n\t\tthrow new Error(\"Resume is not supported for RabbitMQ. Please create a new subscription.\");\n\t}\n\tisActive() {\n\t\treturn this._isActive;\n\t}\n};\n\n//#endregion\nexport { RabbitMQChannel };\n//# sourceMappingURL=rabbitmq-channel.mjs.map","import { prepareConsumerSubscription } from \"../../message-managers/prepare-consumer-subscription.mjs\";\nimport { RabbitMQChannel } from \"./rabbitmq-channel.mjs\";\nimport { EventEmitter } from \"node:events\";\n\n//#region ../herald/src/drivers/rabbitmq/rabbitmq-driver.ts\n/**\n* The single amqplib load, shared by every caller.\n*\n* Memoized as a promise rather than as a resolved value so the loader stays\n* idempotent: without it, two callers arriving before the first `import()`\n* settles would each start their own load and the last writer would win, so a\n* caller could end up observing a module instance it never awaited.\n*\n* Resolves to `undefined` when amqplib is not installed.\n*/\nlet amqplibModulePromise;\n/**\n* Installation instructions for amqplib\n*/\nconst AMQPLIB_INSTALL_INSTRUCTIONS = `\nRabbitMQ driver requires the amqplib package.\nInstall it with:\n\n npx warlock add herald --driver=rabbitmq\n\nOr manually:\n\n npm install amqplib\n pnpm add amqplib\n yarn add amqplib\n`.trim();\n/**\n* Strip `user:password@` credentials from any `amqp(s)://` URL embedded in a\n* string. The connection URL carries plaintext broker credentials, and\n* amqplib/Node's URL parser commonly echoes the offending URL verbatim in a\n* malformed-URL error (e.g. an unencoded `@`/`:` in the password) — applied\n* to every error `connect()` surfaces so a credential never reaches whatever\n* the host app does with a thrown connection error (console.error,\n* structured logging, an error tracker).\n*/\nfunction redactAmqpCredentials(message) {\n\treturn message.replace(/(amqps?:\\/\\/)[^/@\\s]+@/gi, \"$1****:****@\");\n}\n/**\n* Load amqplib, reusing the single shared load for every caller.\n*\n* @returns The amqplib module, or `undefined` when it is not installed.\n*/\nfunction loadAmqplibModule() {\n\tif (!amqplibModulePromise) amqplibModulePromise = import(\"amqplib\").catch(() => void 0);\n\treturn amqplibModulePromise;\n}\n/**\n* RabbitMQ Driver\n*\n* Implementation of BrokerDriverContract for RabbitMQ/AMQP.\n*\n* **Important:** This driver requires the `amqplib` package to be installed.\n* Install it with: `npx warlock add herald --driver=rabbitmq` or `npm install amqplib`\n*\n* @example\n* ```typescript\n* const driver = new RabbitMQDriver({\n* driver: \"rabbitmq\",\n* host: \"localhost\",\n* port: 5672,\n* username: \"guest\",\n* password: \"guest\",\n* });\n*\n* await driver.connect();\n* const channel = driver.channel(\"user.created\");\n* ```\n*/\nvar RabbitMQDriver = class {\n\t/**\n\t* Create a new RabbitMQ driver\n\t*\n\t* @param options - RabbitMQ connection options\n\t*/\n\tconstructor(options) {\n\t\tthis.name = \"rabbitmq\";\n\t\tthis.consumers = [];\n\t\tthis.events = new EventEmitter();\n\t\tthis.channels = /* @__PURE__ */ new Map();\n\t\tthis.connection = null;\n\t\tthis.amqpChannel = null;\n\t\tthis._isConnected = false;\n\t\tthis.options = options;\n\t}\n\t/**\n\t* Whether connected to RabbitMQ\n\t*/\n\tget isConnected() {\n\t\treturn this._isConnected;\n\t}\n\t/**\n\t* Subscribe the given consumer class to the driver\n\t*\n\t* @param consumer - Consumer class to subscribe\n\t*\n\t* @example\n\t* ```typescript\n\t* driver.subscribe(UserUpdatedConsumer);\n\t* ```\n\t*/\n\tsubscribe(Consumer) {\n\t\tif (this.isConnected) this.channel(Consumer.eventName).subscribe(prepareConsumerSubscription(Consumer, (error, eventName) => {\n\t\t\tthis.events.emit(\"error\", error, eventName);\n\t\t}), { consumerId: Consumer.consumerId });\n\t\telse this.consumers.push(Consumer);\n\t\treturn () => {\n\t\t\tthis.unsubscribe(Consumer);\n\t\t};\n\t}\n\t/**\n\t* Unsubscribe the given consumer\n\t*/\n\tunsubscribe(Consumer) {\n\t\tif (this.isConnected) this.channel(Consumer.eventName).unsubscribeById(Consumer.consumerId);\n\t\tconst index = this.consumers.indexOf(Consumer);\n\t\tif (index > -1) this.consumers.splice(index, 1);\n\t}\n\t/**\n\t* Publish the given event message.\n\t* Auto-creates the channel if it hasn't been accessed before.\n\t*/\n\tpublish(event) {\n\t\tthis.channel(event.eventName).publish(event.serialize());\n\t}\n\t/**\n\t* Connect to RabbitMQ\n\t*/\n\tasync connect() {\n\t\tconst amqplib = await loadAmqplibModule();\n\t\tif (!amqplib) throw new Error(`amqplib is not installed.\\n\\n${AMQPLIB_INSTALL_INSTRUCTIONS}`);\n\t\ttry {\n\t\t\tconst url = this.buildConnectionUrl();\n\t\t\tconst connectOptions = {\n\t\t\t\theartbeat: this.options.heartbeat ?? 60,\n\t\t\t\ttimeout: this.options.connectionTimeout,\n\t\t\t\t...this.options.clientOptions\n\t\t\t};\n\t\t\tthis.connection = await amqplib.connect(url, connectOptions);\n\t\t\tthis.amqpChannel = await this.connection.createChannel();\n\t\t\tif (this.options.prefetch) await this.amqpChannel.prefetch(this.options.prefetch);\n\t\t\tthis._isConnected = true;\n\t\t\tthis.events.emit(\"connected\");\n\t\t\tfor (const consumer of this.consumers) this.subscribe(consumer);\n\t\t\tthis.consumers.length = 0;\n\t\t\tthis.connection.on(\"close\", () => {\n\t\t\t\tthis._isConnected = false;\n\t\t\t\tthis.events.emit(\"disconnected\");\n\t\t\t\tif (this.options.reconnect !== false) this.handleReconnect();\n\t\t\t});\n\t\t\tthis.connection.on(\"error\", (error) => {\n\t\t\t\tthis.events.emit(\"error\", error);\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tthis._isConnected = false;\n\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\tthrow new Error(`Failed to connect to RabbitMQ: ${redactAmqpCredentials(message)}`);\n\t\t}\n\t}\n\t/**\n\t* Build connection URL from options\n\t*/\n\tbuildConnectionUrl() {\n\t\tif (this.options.uri) return this.options.uri;\n\t\tconst protocol = \"amqp\";\n\t\tconst host = this.options.host ?? \"localhost\";\n\t\tconst port = this.options.port ?? 5672;\n\t\tconst vhost = this.options.vhost ?? \"/\";\n\t\treturn `${protocol}://${encodeURIComponent(this.options.username ?? \"guest\")}:${encodeURIComponent(this.options.password ?? \"guest\")}@${host}:${port}/${encodeURIComponent(vhost)}`;\n\t}\n\t/**\n\t* Handle reconnection\n\t*/\n\tasync handleReconnect() {\n\t\tconst delay = this.options.reconnectDelay ?? 5e3;\n\t\tlet attempt = 0;\n\t\tconst tryReconnect = async () => {\n\t\t\tattempt++;\n\t\t\tthis.events.emit(\"reconnecting\", attempt);\n\t\t\ttry {\n\t\t\t\tawait this.connect();\n\t\t\t} catch {\n\t\t\t\tsetTimeout(tryReconnect, delay);\n\t\t\t}\n\t\t};\n\t\tsetTimeout(tryReconnect, delay);\n\t}\n\t/**\n\t* Disconnect from RabbitMQ\n\t*/\n\tasync disconnect() {\n\t\tif (this.amqpChannel) {\n\t\t\ttry {\n\t\t\t\tawait this.amqpChannel.close();\n\t\t\t} catch {}\n\t\t\tthis.amqpChannel = null;\n\t\t}\n\t\tif (this.connection) {\n\t\t\ttry {\n\t\t\t\tawait this.connection.close();\n\t\t\t} catch {}\n\t\t\tthis.connection = null;\n\t\t}\n\t\tthis._isConnected = false;\n\t\tthis.events.emit(\"disconnected\");\n\t}\n\t/**\n\t* Register event listener\n\t*/\n\ton(event, listener) {\n\t\tthis.events.on(event, listener);\n\t}\n\t/**\n\t* Remove event listener\n\t*/\n\toff(event, listener) {\n\t\tthis.events.off(event, listener);\n\t}\n\t/**\n\t* Get or create a channel\n\t*/\n\tchannel(name, options) {\n\t\tconst existing = this.channels.get(name);\n\t\tif (existing) return existing;\n\t\tconst channel = new RabbitMQChannel(name, this.amqpChannel, options);\n\t\tthis.channels.set(name, channel);\n\t\treturn channel;\n\t}\n\t/**\n\t* Start consuming messages\n\t*/\n\tasync startConsuming() {}\n\t/**\n\t* Stop consuming messages from all subscribed channels.\n\t* Gracefully cancels all active consumers.\n\t*/\n\tasync stopConsuming() {\n\t\tconst stops = Array.from(this.channels.values()).map((channel) => channel.stopConsuming());\n\t\tawait Promise.all(stops);\n\t}\n\t/**\n\t* Health check\n\t*/\n\tasync healthCheck() {\n\t\tif (!this._isConnected || !this.connection) return {\n\t\t\thealthy: false,\n\t\t\terror: \"Not connected to RabbitMQ\"\n\t\t};\n\t\tconst start = Date.now();\n\t\ttry {\n\t\t\tawait this.amqpChannel.checkQueue(\"amq.rabbitmq.reply-to\").catch(() => {});\n\t\t\treturn {\n\t\t\t\thealthy: true,\n\t\t\t\tlatency: Date.now() - start\n\t\t\t};\n\t\t} catch (error) {\n\t\t\treturn {\n\t\t\t\thealthy: false,\n\t\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t\t\tlatency: Date.now() - start\n\t\t\t};\n\t\t}\n\t}\n\t/**\n\t* Get all channel names\n\t*/\n\tgetChannelNames() {\n\t\treturn Array.from(this.channels.keys());\n\t}\n\t/**\n\t* Close a specific channel\n\t*/\n\tasync closeChannel(name) {\n\t\tconst channel = this.channels.get(name);\n\t\tif (channel) {\n\t\t\tawait channel.delete();\n\t\t\tthis.channels.delete(name);\n\t\t}\n\t}\n\t/**\n\t* Get the raw AMQP channel (for advanced use)\n\t*/\n\tgetRawChannel() {\n\t\treturn this.amqpChannel;\n\t}\n\t/**\n\t* Get the raw connection (for advanced use)\n\t*/\n\tgetRawConnection() {\n\t\treturn this.connection;\n\t}\n};\n\n//#endregion\nexport { RabbitMQDriver };\n//# sourceMappingURL=rabbitmq-driver.mjs.map","//#region ../herald/src/communicators/broker.ts\n/**\n* Broker - wrapper around a driver with metadata\n*\n* Similar to DataSource in @warlock.js/cascade\n*\n* @example\n* ```typescript\n* const broker = new Broker({\n* name: \"default\",\n* driver: rabbitMQDriver,\n* isDefault: true,\n* });\n*\n* // Get a channel\n* const channel = broker.channel(\"user.created\");\n* ```\n*/\nvar Broker = class {\n\t/**\n\t* Create a new Broker\n\t*\n\t* @param options - Broker configuration\n\t*/\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.driver = options.driver;\n\t\tthis.isDefault = Boolean(options.isDefault);\n\t}\n\t/**\n\t* Subscribe the given consumer\n\t*/\n\tsubscribe(consumer) {\n\t\treturn this.driver.subscribe(consumer);\n\t}\n\t/**\n\t* Publish the given event message\n\t*/\n\tpublish(event) {\n\t\tthis.driver.publish(event);\n\t}\n\t/**\n\t* Get or create a channel\n\t*\n\t* @param name - Channel name\n\t* @param options - Channel options\n\t* @returns Channel instance\n\t*\n\t* @example\n\t* ```typescript\n\t* // Simple channel\n\t* const channel = broker.channel(\"notifications\");\n\t*\n\t* // Typed channel with schema\n\t* const orderChannel = broker.channel<OrderPayload>(\"orders\", {\n\t* schema: OrderSchema,\n\t* durable: true,\n\t* });\n\t* ```\n\t*/\n\tchannel(name, options) {\n\t\treturn this.driver.channel(name, options);\n\t}\n\t/**\n\t* Check if the broker is connected\n\t*/\n\tget isConnected() {\n\t\treturn this.driver.isConnected;\n\t}\n\t/**\n\t* Connect the underlying driver\n\t*/\n\tasync connect() {\n\t\tawait this.driver.connect();\n\t}\n\t/**\n\t* Disconnect the underlying driver\n\t*/\n\tasync disconnect() {\n\t\tawait this.driver.disconnect();\n\t}\n\t/**\n\t* Start consuming messages\n\t*/\n\tasync startConsuming() {\n\t\tawait this.driver.startConsuming();\n\t}\n\t/**\n\t* Stop consuming messages\n\t*/\n\tasync stopConsuming() {\n\t\tawait this.driver.stopConsuming();\n\t}\n\t/**\n\t* Health check\n\t*/\n\tasync healthCheck() {\n\t\treturn this.driver.healthCheck();\n\t}\n};\n\n//#endregion\nexport { Broker };\n//# sourceMappingURL=broker.mjs.map","import { Broker } from \"./broker.mjs\";\nimport { EventEmitter } from \"node:events\";\n\n//#region ../herald/src/communicators/broker-registry.ts\n/**\n* Error thrown when a broker is not found\n*/\nvar MissingBrokerError = class extends Error {\n\tconstructor(message, brokerName) {\n\t\tsuper(message);\n\t\tthis.name = \"MissingBrokerError\";\n\t\tthis.brokerName = brokerName;\n\t}\n};\n/**\n* Broker Registry\n*\n* Maintains registry of named brokers.\n* Similar to DataSourceRegistry in @warlock.js/cascade\n*\n* @example\n* ```typescript\n* // Register a broker\n* brokerRegistry.register({\n* name: \"default\",\n* driver: rabbitMQDriver,\n* isDefault: true,\n* });\n*\n* // Get the default broker\n* const comm = brokerRegistry.get();\n*\n* // Get a specific broker by name\n* const analytics = brokerRegistry.get(\"analytics\");\n*\n* // Listen for events\n* brokerRegistry.on(\"connected\", (comm) => {\n* console.log(`${comm.name} connected`);\n* });\n* ```\n*/\nvar BrokerRegistry = class {\n\tconstructor() {\n\t\tthis.sources = /* @__PURE__ */ new Map();\n\t\tthis.events = new EventEmitter();\n\t}\n\t/**\n\t* Register a new broker\n\t*\n\t* Sets up event forwarding from the driver to the registry.\n\t*\n\t* @param options - Broker configuration\n\t* @returns The registered broker instance\n\t*\n\t* @example\n\t* ```typescript\n\t* const broker = brokerRegistry.register({\n\t* name: \"primary\",\n\t* driver: myDriver,\n\t* isDefault: true,\n\t* });\n\t* ```\n\t*/\n\tregister(options) {\n\t\tconst broker = new Broker(options);\n\t\tthis.sources.set(broker.name, broker);\n\t\tconst isNewDefault = broker.isDefault || !this.defaultSource;\n\t\tif (isNewDefault) this.defaultSource = broker;\n\t\tthis.events.emit(\"registered\", broker);\n\t\tif (isNewDefault) this.events.emit(\"default-registered\", broker);\n\t\tbroker.driver.on(\"connected\", () => {\n\t\t\tthis.events.emit(\"connected\", broker);\n\t\t});\n\t\tbroker.driver.on(\"disconnected\", () => {\n\t\t\tthis.events.emit(\"disconnected\", broker);\n\t\t});\n\t\treturn broker;\n\t}\n\t/**\n\t* Clear all registered brokers\n\t*/\n\tclear() {\n\t\tthis.defaultSource = void 0;\n\t\tthis.sources.clear();\n\t}\n\t/**\n\t* Listen for registry events\n\t*\n\t* @param event - Event to listen for\n\t* @param listener - Callback function\n\t*\n\t* @example\n\t* ```typescript\n\t* brokerRegistry.on(\"registered\", (comm) => {\n\t* console.log(`Broker \"${comm.name}\" registered`);\n\t* });\n\t*\n\t* brokerRegistry.on(\"connected\", (comm) => {\n\t* console.log(`Broker \"${comm.name}\" connected`);\n\t* });\n\t* ```\n\t*/\n\ton(event, listener) {\n\t\tthis.events.on(event, listener);\n\t}\n\t/**\n\t* Listen for a registry event once\n\t*\n\t* @param event - Event to listen for\n\t* @param listener - Callback function\n\t*/\n\tonce(event, listener) {\n\t\tthis.events.once(event, listener);\n\t}\n\t/**\n\t* Remove an event listener\n\t*\n\t* @param event - Event to stop listening for\n\t* @param listener - Callback to remove\n\t*/\n\toff(event, listener) {\n\t\tthis.events.off(event, listener);\n\t}\n\t/**\n\t* Get a broker by name or the default one\n\t*\n\t* @param name - Optional broker name\n\t* @returns Broker instance\n\t* @throws MissingBrokerError if not found\n\t*\n\t* @example\n\t* ```typescript\n\t* // Get default broker\n\t* const comm = brokerRegistry.get();\n\t*\n\t* // Get specific broker\n\t* const analytics = brokerRegistry.get(\"analytics\");\n\t* ```\n\t*/\n\tget(name) {\n\t\tif (name !== void 0) {\n\t\t\tconst source = this.sources.get(name);\n\t\t\tif (!source) throw new MissingBrokerError(`Broker \"${name}\" is not registered.`, name);\n\t\t\treturn source;\n\t\t}\n\t\tif (!this.defaultSource) throw new MissingBrokerError(\"No default broker registered.\");\n\t\treturn this.defaultSource;\n\t}\n\t/**\n\t* Check if a broker exists\n\t*\n\t* @param name - Broker name to check\n\t* @returns True if exists\n\t*/\n\thas(name) {\n\t\treturn this.sources.has(name);\n\t}\n\t/**\n\t* Check if any brokers are registered\n\t*/\n\thasAny() {\n\t\treturn this.sources.size > 0;\n\t}\n\t/**\n\t* Get all registered brokers\n\t*\n\t* @returns Array of all brokers\n\t*\n\t* @example\n\t* ```typescript\n\t* // Disconnect all brokers\n\t* for (const comm of brokerRegistry.getAll()) {\n\t* await comm.disconnect();\n\t* }\n\t* ```\n\t*/\n\tgetAll() {\n\t\treturn Array.from(this.sources.values());\n\t}\n\t/**\n\t* Get all broker names\n\t*\n\t* @returns Array of broker names\n\t*/\n\tgetNames() {\n\t\treturn Array.from(this.sources.keys());\n\t}\n\t/**\n\t* Get the default broker (if any)\n\t*\n\t* @returns Default broker or undefined\n\t*/\n\tgetDefault() {\n\t\treturn this.defaultSource;\n\t}\n};\n/**\n* Global broker registry instance\n*/\nconst brokerRegistry = new BrokerRegistry();\n\n//#endregion\nexport { MissingBrokerError, brokerRegistry };\n//# sourceMappingURL=broker-registry.mjs.map","import { brokerRegistry } from \"../communicators/broker-registry.mjs\";\nimport \"../communicators/index.mjs\";\n\n//#region ../herald/src/utils/connect-to-broker.ts\n/**\n* Connect to a message broker and register it.\n*\n* This is a high-level utility function that simplifies connection setup\n* for most projects. It handles driver instantiation, connection,\n* broker creation, and automatic registration.\n*\n* **Supported Drivers:**\n* - `rabbitmq` (default) - RabbitMQ/AMQP driver\n* - `kafka` - Apache Kafka driver (coming soon)\n*\n* @param options - Connection configuration options\n* @returns A connected and registered Broker instance\n* @throws {Error} If connection fails or driver is not implemented\n*\n* @example\n* ```typescript\n* // RabbitMQ connection\n* const broker = await connectToBroker({\n* driver: \"rabbitmq\",\n* host: \"localhost\",\n* port: 5672,\n* username: \"guest\",\n* password: \"guest\",\n* });\n*\n* // Use the broker\n* await broker.channel(\"user.created\").publish({ userId: 1 });\n* ```\n*\n* @example\n* ```typescript\n* // Multiple brokers\n* await connectToBroker({\n* driver: \"rabbitmq\",\n* name: \"notifications\",\n* isDefault: true,\n* host: process.env.RABBITMQ_HOST,\n* });\n*\n* await connectToBroker({\n* driver: \"rabbitmq\",\n* name: \"analytics\",\n* host: process.env.ANALYTICS_RABBITMQ_HOST,\n* });\n*\n* // Use default broker\n* herald().channel(\"notifications\").publish({ ... });\n*\n* // Use specific broker\n* herald(\"analytics\").channel(\"events\").publish({ ... });\n* ```\n*/\nasync function connectToBroker(options) {\n\tconst driverType = options.driver ?? \"rabbitmq\";\n\tconst brokerName = options.name ?? \"default\";\n\tconst isDefault = options.isDefault ?? true;\n\tlet driver;\n\tswitch (driverType) {\n\t\tcase \"rabbitmq\": {\n\t\t\tconst rabbitOptions = options;\n\t\t\tconst { RabbitMQDriver } = await import(\"../drivers/rabbitmq/rabbitmq-driver.mjs\");\n\t\t\tdriver = new RabbitMQDriver(rabbitOptions);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"kafka\": throw new Error(\"Kafka driver is not yet implemented. Coming soon! For now, please use RabbitMQ.\");\n\t\tdefault: throw new Error(`Unknown driver: \"${driverType}\". Supported drivers: rabbitmq, kafka`);\n\t}\n\tconst broker = brokerRegistry.register({\n\t\tname: brokerName,\n\t\tdriver,\n\t\tisDefault\n\t});\n\ttry {\n\t\tawait driver.connect();\n\t} catch (error) {\n\t\tthrow new Error(`Failed to connect to ${driverType}: ${error instanceof Error ? error.message : String(error)}`);\n\t}\n\treturn broker;\n}\n/**\n* Get a broker by name or the default one.\n*\n* This is the main entry point for using brokers in your application.\n* Named after the package — `herald()` carries your messages!\n*\n* @param name - Optional broker name (uses default if not provided)\n* @returns Broker instance\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* // Get default broker\n* const channel = herald().channel(\"user.created\");\n* await channel.publish({ userId: 1 });\n*\n* // Get specific broker\n* const analyticsChannel = herald(\"analytics\").channel(\"events\");\n* await analyticsChannel.publish({ event: \"page_view\" });\n*\n* // Subscribe to messages\n* herald()\n* .channel<UserPayload>(\"user.created\")\n* .subscribe(async (message, ctx) => {\n* console.log(\"User created:\", message.payload);\n* await ctx.ack();\n* });\n* ```\n*/\nfunction herald(name) {\n\treturn brokerRegistry.get(name);\n}\n/**\n* Get channel instance for the given name from default broker.\n*\n* Shorthand for `herald().channel(name, options)`.\n*\n* @param name - Channel name\n* @param options - Optional channel options\n* @returns Channel instance\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* ```typescript\n* const channel = heraldChannel(\"user.created\");\n* await channel.publish({ userId: 1 });\n* ```\n*/\nfunction heraldChannel(name, options) {\n\treturn herald().channel(name, options);\n}\n/**\n* Publish an EventMessage to the default broker.\n*\n* @param event - Event message to publish\n* @returns Promise that resolves when the event is published\n* @throws Error if the broker is not connected\n*\n* @example\n* ```typescript\n* await publishEvent(new UserUpdatedEvent({ id: 1, name: \"John Doe\" }));\n* ```\n*/\nasync function publishEvent(event) {\n\treturn herald().publish(event);\n}\n/**\n* Subscribe an EventConsumer class to the default broker.\n*\n* @param Consumer - Event consumer class\n* @returns Unsubscribe function\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* ```typescript\n* await subscribeConsumer(UserUpdatedConsumer);\n* ```\n*/\nasync function subscribeConsumer(Consumer) {\n\treturn herald().subscribe(Consumer);\n}\n\n//#endregion\nexport { connectToBroker, herald, heraldChannel, publishEvent, subscribeConsumer };\n//# sourceMappingURL=connect-to-broker.mjs.map","import { brokerRegistry } from \"../communicators/broker-registry.mjs\";\nimport \"../communicators/index.mjs\";\n\n//#region ../herald/src/decorators/consumable.ts\nconst pendingSubscribers = /* @__PURE__ */ new Set();\n/**\n* Register the consumer to the broker\n*/\nfunction Consumable(options) {\n\treturn function(target) {\n\t\tconst brokerName = options?.broker;\n\t\ttry {\n\t\t\tconst currentBroker = brokerRegistry.get(brokerName);\n\t\t\tif (currentBroker?.isConnected) currentBroker.subscribe(target);\n\t\t\telse pendingSubscribers.add({\n\t\t\t\tConsumer: target,\n\t\t\t\toptions\n\t\t\t});\n\t\t} catch {\n\t\t\tpendingSubscribers.add({\n\t\t\t\tConsumer: target,\n\t\t\t\toptions\n\t\t\t});\n\t\t}\n\t};\n}\nbrokerRegistry.on(\"connected\", (broker) => {\n\tfor (const { Consumer, options } of pendingSubscribers) {\n\t\tif (options?.broker && broker.name !== options.broker) continue;\n\t\tbroker.subscribe(Consumer);\n\t}\n});\n\n//#endregion\nexport { Consumable, pendingSubscribers };\n//# sourceMappingURL=consumable.mjs.map","import { Consumable } from \"../decorators/consumable.mjs\";\nimport \"../decorators/index.mjs\";\nimport { v } from \"@warlock.js/seal\";\nimport { randomUUID } from \"crypto\";\n\n//#region ../herald/src/message-managers/event-consumer.ts\n/**\n* This class is used to be part of the Herald Event Consumer Manager.\n* It should be used to consume events from Either RabbitMQ or Kafka through Herald\n*\n* It's highly recommended using it instead of declaring manual channel namd and subscribing to event\n*/\nvar EventConsumer = class {\n\tstatic get consumerId() {\n\t\tif (!this._consumerId) this._consumerId = randomUUID();\n\t\treturn this._consumerId;\n\t}\n\tget eventName() {\n\t\treturn this.constructor.eventName;\n\t}\n\t/**\n\t* Determine whether this is accepted version to be used by this consumer\n\t*/\n\tstatic isAcceptedVersion(version) {\n\t\tif (this.minVersion && version < this.minVersion) return false;\n\t\tif (this.maxVersion && version > this.maxVersion) return false;\n\t\treturn true;\n\t}\n\t/**\n\t* Validate the given data\n\t*/\n\tasync validate(data) {\n\t\tif (!this.schema) return;\n\t\treturn await v.validate(this.schema, data);\n\t}\n};\n/**\n* A shorthand to define an event consumer without declaring an entire class\n*/\nfunction defineConsumer(eventName, options) {\n\tconst Class = class AnnouncedConsumer extends EventConsumer {\n\t\tconstructor(..._args) {\n\t\t\tsuper(..._args);\n\t\t\tthis.schema = options.schema;\n\t\t}\n\t\tstatic {\n\t\t\tthis.eventName = eventName;\n\t\t}\n\t\tasync handle(payload, event) {\n\t\t\tif (options.validate) {\n\t\t\t\tconst result = await options.validate(payload);\n\t\t\t\tif (!result || !result.isValid) return;\n\t\t\t}\n\t\t\treturn options.handle(payload, event);\n\t\t}\n\t};\n\tConsumable()(Class);\n\treturn Class;\n}\n\n//#endregion\nexport { EventConsumer, defineConsumer };\n//# sourceMappingURL=event-consumer.mjs.map","import { randomUUID } from \"crypto\";\n\n//#region ../herald/src/message-managers/event-message.ts\nvar EventMessage = class {\n\t/**\n\t* Data that will be sent with the event (Payload)\n\t*/\n\ttoJSON() {\n\t\tif (!this.data) throw new Error(`no Data is defined for Event: ${this.eventName}`);\n\t\treturn this.data;\n\t}\n\tconstructor(data) {\n\t\tthis.data = data;\n\t}\n\t/**\n\t* Serialize the event to be ready for publishing.\n\t* Delegates payload resolution to toJSON() — override toJSON() to customize.\n\t*\n\t* @throws Error if toJSON() throws (e.g. no data provided)\n\t*/\n\tserialize() {\n\t\treturn {\n\t\t\tpayload: this.toJSON(),\n\t\t\tmetadata: this.metadata,\n\t\t\tmessageId: this.messageId ?? randomUUID(),\n\t\t\teventName: this.eventName,\n\t\t\tversion: this.version,\n\t\t\toccurredAt: /* @__PURE__ */ new Date(),\n\t\t\t__through: \"EventMessage\"\n\t\t};\n\t}\n};\n/**\n* A shorthand to define an event without declaring an entire class.\n*\n* This factory function creates an EventMessage subclass that transforms\n* input data (IncomingData) into a different output format (OutgoingData).\n*\n* @template IncomingData - The type of data passed to the constructor\n* @template OutgoingData - The type of data returned by toJSON()\n*\n* @example\n* ```typescript\n* const UserCreatedEvent = defineEvent<User, { id: number; name: string }>(\n* \"user.created\",\n* { toJSON: (user) => user.only([\"id\", \"name\"]) }\n* );\n*\n* publishEvent(new UserCreatedEvent(user));\n* ```\n*/\nfunction defineEvent(eventName, options = {}) {\n\treturn class AnnouncedEvent extends EventMessage {\n\t\tconstructor(data) {\n\t\t\tsuper(data);\n\t\t\tthis.eventName = eventName;\n\t\t\tthis.schema = options.schema;\n\t\t}\n\t\ttoJSON() {\n\t\t\tif (!options.toJSON) return this.data;\n\t\t\treturn options.toJSON(this.data);\n\t\t}\n\t};\n}\n\n//#endregion\nexport { EventMessage, defineEvent };\n//# sourceMappingURL=event-message.mjs.map","import { herald } from \"./utils/connect-to-broker.mjs\";\n\n//#region ../herald/src/use-case-broadcast.ts\n/**\n* Channel adapter that publishes use-case broadcast events onto a herald broker.\n*\n* Register it in the use-cases config so successful use cases fan out to the bus:\n*\n* @example\n* // src/config/use-cases.ts\n* import { heraldBroadcast } from \"@warlock.js/herald\";\n*\n* export default {\n* broadcast: {\n* enabled: true,\n* channels: [heraldBroadcast({ broker: \"default\" })],\n* },\n* } satisfies UseCaseConfigurations;\n*\n* @param options - Optional broker name (defaults to the default broker)\n*/\nfunction heraldBroadcast(options) {\n\treturn { async broadcast(event) {\n\t\tawait herald(options?.broker).channel(event.event).publish(event.payload);\n\t} };\n}\n\n//#endregion\nexport { heraldBroadcast };\n//# sourceMappingURL=use-case-broadcast.mjs.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"mappings":";;;;;;;AACA,SAAS,4BAA4B,UAAU,SAAS;CACvD,MAAM,WAAW,OAAO,SAAS,QAAQ;EACxC,MAAM,WAAW,QAAQ;EACzB,IAAI,eAAe,SAAS;EAC5B,IAAI,SAAS,SACZ;OAAI,CAAC,SAAS,kBAAkB,OAAO,SAAS,OAAO,CAAC,GAAG;IAC1D,IAAI,IAAI;IACR;GACD;;EAED,MAAM,WAAW,IAAI,SAAS;EAC9B,IAAI,SAAS,QAAQ;GACpB,MAAM,SAAS,MAAM,SAAS,SAAS,YAAY;GACnD,IAAI,CAAC,UAAU,OAAO,YAAY,OAAO;IACxC,IAAI,KAAK;IACT;GACD;GACA,eAAe,OAAO;EACvB;EACA,IAAI;GACH,MAAM,SAAS,OAAO,cAAc;IACnC,SAAS;IACT,WAAW,SAAS;IACpB,WAAW,QAAQ,SAAS;IAC5B,YAAY,SAAS,aAAa,IAAI,KAAK,SAAS,UAAU,IAAI,KAAK;IACvE,UAAU,SAAS;IACnB,SAAS,SAAS;IAClB;GACD,CAAC;GACD,IAAI,IAAI;EACT,SAAS,OAAO;GACf,MAAM,IAAI,MAAM;GAChB,IAAI,SAAS,QAAQ,OAAO,SAAS,SAAS;EAC/C;CACD;CACA,OAAO;AACR;;;;;;;;;;;;;;;;;;;;;ACnBA,SAAS,cAAc,QAAQ,QAAQ;CACtC,IAAI,WAAW,eAAe;EAC7B,OAAO,WAAW;EAClB;CACD;CACA,IAAI,WAAW,mBAAmB,WAAW,iBAAiB;EAC7D,MAAM,WAAW,OAAO;EACxB,OAAO,OAAO,MAAM,QAAQ,QAAQ,IAAI,CAAC,GAAG,UAAU,MAAM,IAAI,C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ACb;;;;;;;CAOA,YAAY;EACX,OAAO;GACN,SAAS,KAAK,OAAO;GACrB,UAAU,KAAK;GACf,WAAW,KAAK,oCAAwB;GACxC,WAAW,KAAK;GAChB,SAAS,KAAK;GACd,4BAA4B,IAAI,KAAK;GACrC,WAAW;EACZ;CACD;AACD;;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,YAAY,WAAW,UAAU,CAAC,GAAG;CAC7C,OAAO,MAAM,uBAAuB,aAAa;EAChD,YAAY,MAAM;GACjB,MAAM,IAAI;GACV,KAAK,YAAY;GACjB,KAAK,SAAS,QAAQ;EACvB;EACA,SAAS;GACR,IAAI,CAAC,QAAQ,QAAQ,OAAO,KAAK;GACjC,OAAO,QAAQ,OAAO,KAAK,IAAI;EAChC;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;AC1CA,SAAS,gBAAgB,SAAS;CACjC,OAAO,EAAE,MAAM,UAAU,OAAO;EAC/B,MAAM,OAAO,SAAS,MAAM,CAAC,CAAC,QAAQ,MAAM,KAAK,CAAC,CAAC,QAAQ,MAAM,OAAO;CACzE,EAAE;AACH"}
|
|
1
|
+
{"version":3,"file":"esm-wqNYY39K.cjs","names":["WHITESPACE_RUN","capitalize","capitalize","EventEmitter","EventEmitter"],"sources":["../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/message-managers/prepare-consumer-subscription.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/config.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/factory/validate.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/get.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/number/round.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/unset.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/omit.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/except.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/trim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/words.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs","../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/utils/tap.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/helpers/get-field-value.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/helpers/path-helpers.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs","../../../../../../node_modules/.pnpm/@mongez+supportive-is@2.1.4/node_modules/@mongez/supportive-is/esm/index.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/core/required.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/standard-schema/map-result.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/base-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/any-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/array-mutators.mjs","../../../../../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/date-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/number-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/object-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/mutators/string-mutators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/core/equal.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/core/forbidden.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/core/union.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/core/when.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/alpha.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/credit-card.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/email.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/id-formats.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/ip.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/pattern.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/string-comparison.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/strong-password-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/url.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/string/without-whitespace.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/number/number-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/length/length-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/array/array-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/types/date-types.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-comparison-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-day-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-field-comparison-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-period-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-relative-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/date/date-special-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/color/color-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/required-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/required-unless-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/required-when-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/required-with-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/required-without-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/present-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/present-unless-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/present-with-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/present-without-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/conditional/forbidden-if-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/enum.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/equals-field-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/instanceof.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/literal.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/type-rules.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/common/unknown-key.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/array-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/primitive-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/scalar/accepted-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/rules/scalar/declined-rule.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/boolean-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/computed-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/date-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/literal-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/discriminated-union-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/number-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/float-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/instanceof-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/int-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/lazy-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/managed-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/numeric-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/object-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/record-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/scalar-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/string-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/tuple-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/validators/union-validator.mjs","../../../../../../node_modules/.pnpm/@warlock.js+seal@5.3.1/node_modules/@warlock.js/seal/esm/factory/validators.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/communicators/broker.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/communicators/broker-registry.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/decorators/consumable.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/message-managers/event-message.mjs","../../../../../../node_modules/.pnpm/@warlock.js+herald@5.3.1_@s_00df530f11ab3a5e53db46d40b714c55/node_modules/@warlock.js/herald/esm/use-case-broadcast.mjs"],"sourcesContent":["//#region ../herald/src/message-managers/prepare-consumer-subscription.ts\nfunction prepareConsumerSubscription(Consumer, onError) {\n\tconst callback = async (message, ctx) => {\n\t\tconst envelope = message.payload;\n\t\tlet eventPayload = envelope.payload;\n\t\tif (envelope.version) {\n\t\t\tif (!Consumer.isAcceptedVersion(Number(envelope.version))) {\n\t\t\t\tctx.ack();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tconst consumer = new Consumer();\n\t\tif (consumer.schema) {\n\t\t\tconst result = await consumer.validate(eventPayload);\n\t\t\tif (!result || result.isValid === false) {\n\t\t\t\tctx.nack();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\teventPayload = result.data;\n\t\t}\n\t\ttry {\n\t\t\tawait consumer.handle(eventPayload, {\n\t\t\t\tpayload: eventPayload,\n\t\t\t\teventName: Consumer.eventName,\n\t\t\t\tmessageId: message.metadata.messageId,\n\t\t\t\toccurredAt: envelope.occurredAt ? new Date(envelope.occurredAt) : void 0,\n\t\t\t\tmetadata: envelope.metadata,\n\t\t\t\tversion: envelope.version,\n\t\t\t\tmessage\n\t\t\t});\n\t\t\tctx.ack();\n\t\t} catch (error) {\n\t\t\tawait ctx.retry();\n\t\t\tif (onError) onError(error, Consumer.eventName);\n\t\t}\n\t};\n\treturn callback;\n}\n\n//#endregion\nexport { prepareConsumerSubscription };\n//# sourceMappingURL=prepare-consumer-subscription.mjs.map","//#region ../seal/src/standard-schema/json-schema.ts\n/**\n* Apply nullable to a JSON Schema object based on the target dialect.\n*\n* - draft-2020-12 : `type` becomes an array: `[\"string\", \"null\"]`\n* - openai-strict : same as draft-2020-12 (type array form)\n* - draft-07 : wraps in `oneOf: [{ ...schema }, { type: \"null\" }]`\n* - openapi-3.0 : adds `nullable: true` alongside the existing type\n*\n* Mutates the schema in-place.\n*\n* @example\n* ```ts\n* const schema = { type: \"string\" };\n* applyNullable(schema, \"draft-2020-12\");\n* // → { type: [\"string\", \"null\"] }\n* ```\n*/\nfunction applyNullable(schema, target) {\n\tif (target === \"openapi-3.0\") {\n\t\tschema.nullable = true;\n\t\treturn;\n\t}\n\tif (target === \"draft-2020-12\" || target === \"openai-strict\") {\n\t\tconst baseType = schema.type;\n\t\tschema.type = Array.isArray(baseType) ? [...baseType, \"null\"] : [baseType, \"null\"];\n\t\treturn;\n\t}\n\tconst copy = { ...schema };\n\tfor (const key of Object.keys(schema)) delete schema[key];\n\tschema.oneOf = [copy, { type: \"null\" }];\n}\n/**\n* Wrap a field schema as nullable for OpenAI strict mode.\n*\n* OpenAI strict requires optional fields to be expressed as a nullable type\n* rather than being omitted from the `required` array. This helper wraps a\n* given schema into its nullable equivalent using the type-array form.\n*\n* Unlike `applyNullable()` (which mutates in-place), this returns a new\n* schema object to avoid side effects when wrapping child schemas.\n*\n* @example\n* ```ts\n* wrapNullableStrict({ type: \"string\", minLength: 3 })\n* // → { type: [\"string\", \"null\"], minLength: 3 }\n*\n* wrapNullableStrict({ type: \"object\", properties: {...} })\n* // → { type: [\"object\", \"null\"], properties: {...} }\n*\n* wrapNullableStrict({ oneOf: [...] })\n* // → { oneOf: [..., { type: \"null\" }] }\n* ```\n*/\nfunction wrapNullableStrict(schema) {\n\tif (schema.oneOf) return {\n\t\t...schema,\n\t\toneOf: [...schema.oneOf, { type: \"null\" }]\n\t};\n\tif (schema.anyOf) return {\n\t\t...schema,\n\t\tanyOf: [...schema.anyOf, { type: \"null\" }]\n\t};\n\tif (schema.type === void 0) return schema;\n\tconst baseType = schema.type;\n\treturn {\n\t\t...schema,\n\t\ttype: Array.isArray(baseType) ? [...baseType, \"null\"] : [baseType, \"null\"]\n\t};\n}\n/**\n* Find the first rule matching the given name in a rules array,\n* and return its options bag.\n*/\nfunction getRuleOptions(rules, ruleName) {\n\treturn rules.find((r) => r.name === ruleName)?.context?.options;\n}\n\n//#endregion\nexport { applyNullable, getRuleOptions, wrapNullableStrict };\n//# sourceMappingURL=json-schema.mjs.map","//#region ../seal/src/config.ts\n/**\n* Global Seal configuration\n*/\nconst config = { firstErrorOnly: true };\n/**\n* Configure Seal globally\n*\n* @example\n* ```ts\n* import { configureSeal } from \"@warlock.js/seal\";\n* import { trans } from \"@mongez/localization\";\n*\n* configureSeal({\n* translateRule: (ruleTranslation) => trans(`validation.${ruleTranslation.rule.name}`, ruleTranslation.attributes),\n* translateAttribute: (attributeTranslation) => trans(`validation.attributes.${attributeTranslation.rule.name}.${attributeTranslation.attribute}`, attributeTranslation.context.allValues),\n* });\n* ```\n*/\nfunction configureSeal(options) {\n\tObject.assign(config, options);\n}\n/**\n* Get current Seal configuration\n*/\nfunction getSealConfig() {\n\treturn config;\n}\n/**\n* Reset configuration to defaults\n*/\nfunction resetSealConfig() {\n\tdelete config.translateRule;\n\tdelete config.translateAttribute;\n\tconfig.firstErrorOnly = true;\n}\n\n//#endregion\nexport { configureSeal, getSealConfig, resetSealConfig };\n//# sourceMappingURL=config.mjs.map","import { getSealConfig } from \"../config.mjs\";\n\n//#region ../seal/src/factory/validate.ts\n/**\n* Validate data against a schema\n*/\nconst validate = async (schema, data, { context: extendedContext, ...configurations } = getSealConfig() || {}) => {\n\tconst context = {\n\t\tallValues: data,\n\t\tparent: null,\n\t\tvalue: data,\n\t\tkey: \"\",\n\t\tpath: \"\",\n\t\tcontext: extendedContext,\n\t\trootContext: extendedContext,\n\t\ttranslateRule(ruleTranslation) {\n\t\t\treturn configurations.translateRule?.(ruleTranslation) ?? \"\";\n\t\t},\n\t\ttranslateAttribute(attributeTranslation) {\n\t\t\treturn configurations.translateAttribute?.(attributeTranslation) ?? \"\";\n\t\t},\n\t\tconfigurations\n\t};\n\tconst result = await schema.validate(data, context);\n\tif (!result.isValid) return {\n\t\t...result,\n\t\tdata: void 0\n\t};\n\treturn result;\n};\n\n//#endregion\nexport { validate };\n//# sourceMappingURL=validate.mjs.map","//#region ../seal/src/helpers/date-helpers.ts\n/**\n* Detect if value is a date value or field name\n*\n* Date values:\n* - Date instance\n* - Number (timestamp)\n* - String with date separators (- or /)\n*\n* Field names:\n* - Strings without - or /\n*\n* @param value - Value to check\n* @returns true if it's a date value, false if it's a field name\n*/\nfunction isDateValue(value) {\n\tif (value instanceof Date) return true;\n\tconst date = new Date(value);\n\treturn !isNaN(date.getTime());\n}\n\n//#endregion\nexport { isDateValue };\n//# sourceMappingURL=date-helpers.mjs.map","//#region ../reinforcements/src/object/get.ts\nfunction get(object, path, defaultValue) {\n\tif (object === null || object === void 0) return defaultValue;\n\tif (path === \"\") return defaultValue;\n\tconst segments = path.split(\".\");\n\tlet current = object;\n\tfor (const key of segments) {\n\t\tif (current === null || current === void 0) return defaultValue;\n\t\tif (typeof current !== \"object\") return defaultValue;\n\t\tif (!Object.prototype.hasOwnProperty.call(current, key)) return defaultValue;\n\t\tcurrent = current[key];\n\t}\n\treturn current === void 0 ? defaultValue : current;\n}\n\n//#endregion\nexport { get as default };\n//# sourceMappingURL=get.mjs.map","//#region ../reinforcements/src/mixed/clone/clone.ts\n/**\n* Deep-clone a value. Supports plain objects, arrays, `Date`, `RegExp`,\n* `Map`, `Set`, `Error`, and typed arrays. Handles circular references\n* via an internal `WeakMap`.\n*\n* Non-plain class instances are returned by reference — cloning custom\n* constructors requires the class's own copy logic, so this function\n* stops at that boundary rather than silently producing a half-clone.\n*\n* @example\n* const original = { user: { name: \"Ada\" }, tags: [\"x\"] };\n* const copy = clone(original);\n*\n* copy.user.name = \"Bob\";\n* original.user.name; // \"Ada\"\n*/\nfunction clone(value) {\n\tif (value === null || typeof value !== \"object\") return value;\n\treturn cloneDeep(value, /* @__PURE__ */ new WeakMap());\n}\nfunction cloneDeep(value, seen) {\n\tif (value === null || typeof value !== \"object\") return value;\n\tif (seen.has(value)) return seen.get(value);\n\tif (value instanceof Date) return new Date(value.getTime());\n\tif (value instanceof RegExp) return cloneRegExp(value);\n\tif (value instanceof Error) return cloneError(value, seen);\n\tif (Array.isArray(value)) return cloneArray(value, seen);\n\tif (value instanceof Map) return cloneMap(value, seen);\n\tif (value instanceof Set) return cloneSet(value, seen);\n\tif (ArrayBuffer.isView(value) && !(value instanceof DataView)) return cloneTypedArray(value);\n\tif (value instanceof ArrayBuffer) return value.slice(0);\n\treturn clonePlainObject(value, seen);\n}\nfunction cloneRegExp(value) {\n\tconst copy = new RegExp(value.source, value.flags);\n\tcopy.lastIndex = value.lastIndex;\n\treturn copy;\n}\nfunction cloneError(value, seen) {\n\tconst Ctor = value.constructor;\n\tconst copy = new Ctor(value.message);\n\tcopy.stack = value.stack;\n\tcopy.name = value.name;\n\tseen.set(value, copy);\n\tfor (const key of Object.keys(value)) copy[key] = cloneDeep(value[key], seen);\n\treturn copy;\n}\nfunction cloneArray(value, seen) {\n\tconst copy = [];\n\tseen.set(value, copy);\n\tfor (const item of value) copy.push(cloneDeep(item, seen));\n\treturn copy;\n}\nfunction cloneMap(value, seen) {\n\tconst copy = /* @__PURE__ */ new Map();\n\tseen.set(value, copy);\n\tfor (const [key, val] of value) copy.set(cloneDeep(key, seen), cloneDeep(val, seen));\n\treturn copy;\n}\nfunction cloneSet(value, seen) {\n\tconst copy = /* @__PURE__ */ new Set();\n\tseen.set(value, copy);\n\tfor (const item of value) copy.add(cloneDeep(item, seen));\n\treturn copy;\n}\nfunction cloneTypedArray(value) {\n\tconst Ctor = value.constructor;\n\treturn new Ctor(value.buffer.slice(0));\n}\nfunction clonePlainObject(value, seen) {\n\tconst proto = Object.getPrototypeOf(value);\n\tif (!(proto === Object.prototype || proto === null)) return value;\n\tconst copy = Object.create(proto);\n\tseen.set(value, copy);\n\tfor (const key of Object.keys(value)) copy[key] = cloneDeep(value[key], seen);\n\treturn copy;\n}\n\n//#endregion\nexport { clone as default };\n//# sourceMappingURL=clone.mjs.map","//#region ../reinforcements/src/number/round.ts\n/**\n* Round `value` to the given number of decimal places (banker's-style\n* `Math.round`).\n*\n* @example\n* round(1.235, 2); // 1.24\n* round(1.5); // 2\n*/\nfunction round(value, precision = 2) {\n\tconst multiplier = Math.pow(10, precision || 0);\n\treturn Math.round(value * multiplier) / multiplier;\n}\n\n//#endregion\nexport { round as default };\n//# sourceMappingURL=round.mjs.map","import get from \"./get.mjs\";\n\n//#region ../reinforcements/src/object/unset.ts\n/**\n* Remove one or more dot-notation paths from `object`. Mutates and\n* returns the input.\n*\n* @example\n* unset({ a: 1, b: 2 }, [\"a\"]); // { b: 2 }\n* unset({ a: { b: 1, c: 2 } }, [\"a.b\"]); // { a: { c: 2 } }\n*/\nfunction unset(object, keys) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tfor (const key of keys) deletePath(object, key);\n\treturn object;\n}\nfunction deletePath(object, path) {\n\tconst segments = path.split(\".\");\n\tif (segments.length === 1) {\n\t\tdelete object[path];\n\t\treturn;\n\t}\n\tconst lastKey = segments.pop();\n\tconst parent = get(object, segments.join(\".\"));\n\tif (parent && typeof parent === \"object\") delete parent[lastKey];\n}\n\n//#endregion\nexport { unset as default };\n//# sourceMappingURL=unset.mjs.map","import unset from \"./unset.mjs\";\n\n//#region ../reinforcements/src/object/omit.ts\nfunction omit(object, keysOrPredicate) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tif (typeof keysOrPredicate === \"function\") return omitByPredicate(object, keysOrPredicate);\n\treturn unset({ ...object }, keysOrPredicate);\n}\nfunction omitByPredicate(object, predicate) {\n\tconst result = {};\n\tfor (const key of Object.keys(object)) if (!predicate(object[key], key)) result[key] = object[key];\n\treturn result;\n}\n\n//#endregion\nexport { omit as default };\n//# sourceMappingURL=omit.mjs.map","import omit from \"./omit.mjs\";\n\n//#region ../reinforcements/src/object/except.ts\n/**\n* @deprecated Use {@link omit} instead. Will be removed in a future major release.\n*/\nfunction except(object, keys) {\n\treturn omit(object, keys);\n}\n\n//#endregion\nexport { except as default };\n//# sourceMappingURL=except.mjs.map","//#region ../reinforcements/src/Random/_internal.ts\nconst ALPHANUMERIC = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\nconst URL_SAFE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-\";\nconst cryptoRef = typeof globalThis !== \"undefined\" && globalThis.crypto ? globalThis.crypto : {};\nconst BYTE_VALUES = 256;\n/** Thrown by every security-shaped generator when no CSPRNG exists. */\nconst NO_CSPRNG_ERROR = \"No CSPRNG available: crypto.getRandomValues is required\";\n/**\n* Return the runtime CSPRNG, throwing when there is none. Tokens, ids\n* and uuids must never silently degrade to the seedable `next()` — a\n* predictable token is worse than a loud failure.\n*/\nfunction requireCsprng() {\n\tif (typeof cryptoRef.getRandomValues !== \"function\") throw new Error(NO_CSPRNG_ERROR);\n\treturn cryptoRef.getRandomValues.bind(cryptoRef);\n}\n/** Cryptographically secure random bytes. Throws without a CSPRNG. */\nfunction cryptoBytes(size) {\n\treturn requireCsprng()(new Uint8Array(size));\n}\n/**\n* Build a `length`-character string out of `charset` using CSPRNG\n* bytes. Bytes above the largest multiple of the charset size are\n* rejected and redrawn so every character stays equally likely — a\n* plain `byte % charset.length` would bias the leading characters.\n*\n* Throws when no CSPRNG is available, whatever the requested length.\n*/\nfunction cryptoStringOf(charset, length) {\n\tconst getRandomValues = requireCsprng();\n\tconst size = charset.length;\n\tconst limit = Math.floor(BYTE_VALUES / size) * size;\n\tlet text = \"\";\n\twhile (text.length < length) {\n\t\tconst bytes = getRandomValues(new Uint8Array(length - text.length));\n\t\tfor (let i = 0; i < bytes.length && text.length < length; i++) {\n\t\t\tif (bytes[i] >= limit) continue;\n\t\t\ttext += charset.charAt(bytes[i] % size);\n\t\t}\n\t}\n\treturn text;\n}\nlet rngState;\nfunction setSeed(seed) {\n\trngState = seed;\n}\n/**\n* Return the next pseudo-random value in `[0, 1)`. Uses `Math.random` by\n* default; switches to a seeded mulberry32 PRNG when `setSeed` is called\n* with a numeric seed.\n*/\nfunction next() {\n\tif (rngState === void 0) return Math.random();\n\trngState |= 0;\n\trngState = rngState + 1831565813 | 0;\n\tlet t = rngState;\n\tt = Math.imul(t ^ t >>> 15, t | 1);\n\tt ^= t + Math.imul(t ^ t >>> 7, t | 61);\n\treturn ((t ^ t >>> 14) >>> 0) / 4294967296;\n}\n\n//#endregion\nexport { ALPHANUMERIC, URL_SAFE, cryptoBytes, cryptoRef, cryptoStringOf, next, setSeed };\n//# sourceMappingURL=_internal.mjs.map","//#region ../reinforcements/src/string/ucfirst.ts\n/**\n* Uppercase the first character of `string`.\n*\n* @example\n* ucfirst(\"hello\"); // \"Hello\"\n*/\nfunction ucfirst(string) {\n\tif (!string) return \"\";\n\treturn string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n//#endregion\nexport { ucfirst as default };\n//# sourceMappingURL=ucfirst.mjs.map","import ucfirst from \"./ucfirst.mjs\";\n\n//#region ../reinforcements/src/string/capitalize.ts\nconst WHITESPACE_RUN = /\\s+/;\nconst WHITESPACE_GROUP = /(\\s+)/;\n/**\n* Capitalize the first letter of each whitespace-separated word.\n*\n* @example\n* capitalize(\"hello world\"); // \"Hello World\"\n*/\nfunction capitalize(string) {\n\tif (!string) return \"\";\n\treturn string.split(WHITESPACE_GROUP).map((part) => WHITESPACE_RUN.test(part) ? part : ucfirst(part)).join(\"\");\n}\n\n//#endregion\nexport { capitalize as default };\n//# sourceMappingURL=capitalize.mjs.map","//#region ../reinforcements/src/utils/escapeRegex.ts\n/**\n* Escape the regex of the given string\n*/\nfunction escapeRegex(string) {\n\treturn string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n//#endregion\nexport { escapeRegex as default };\n//# sourceMappingURL=escapeRegex.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/trim.ts\n/**\n* Remove the given needle from the start and the end of string\n*\n* @param string $needle\n* @return string\n*/\nfunction trim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tif (needle === \" \") return string.replace(/^\\s+|\\s+$/g, \"\");\n\tneedle = escapeRegex(needle);\n\tconst pattern = \"^\" + needle + \"+|\" + needle + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { trim as default };\n//# sourceMappingURL=trim.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/ltrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction ltrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = \"^\" + escapeRegex(needle) + \"+\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { ltrim as default };\n//# sourceMappingURL=ltrim.mjs.map","//#region ../reinforcements/src/string/readMoreChars.ts\n/**\n* Cut string for the given length and append ... if string is larger than the given length\n*\n*/\nfunction readMoreChars(string, length, readMoreDots = \"...\") {\n\tif (!string) return \"\";\n\tif (string.length <= length) return string;\n\treturn string.substring(0, length) + readMoreDots;\n}\n\n//#endregion\nexport { readMoreChars as default };\n//# sourceMappingURL=readMoreChars.mjs.map","import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/rtrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction rtrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = escapeRegex(needle) + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { rtrim as default };\n//# sourceMappingURL=rtrim.mjs.map","//#region ../reinforcements/src/string/words.ts\nconst SEPARATOR_PATTERN = /[-_./\\\\\\s]+/g;\nconst ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;\nconst CAMEL_BOUNDARY = /([a-z\\d])([A-Z])/g;\nconst WHITESPACE_RUN = /\\s+/;\n/**\n* Split a string into its semantic word tokens. Handles camelCase,\n* PascalCase, snake_case, kebab-case, dot.case, slash/separated and\n* whitespace, and correctly preserves acronym runs.\n*\n* @example\n* words(\"XMLHttpRequest\"); // [\"XML\", \"Http\", \"Request\"]\n* words(\"hello_world\"); // [\"hello\", \"world\"]\n* words(\"AIAgent\"); // [\"AI\", \"Agent\"]\n*/\nfunction words(input) {\n\tif (!input) return [];\n\tconst normalised = input.replace(SEPARATOR_PATTERN, \" \").replace(ACRONYM_BOUNDARY, \"$1 $2\").replace(CAMEL_BOUNDARY, \"$1 $2\").trim();\n\tif (!normalised) return [];\n\treturn normalised.split(WHITESPACE_RUN).filter(Boolean);\n}\n\n//#endregion\nexport { words as default };\n//# sourceMappingURL=words.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toCamelCase.ts\n/**\n* Convert a string to camelCase.\n*\n* @example\n* toCamelCase(\"hello-world\"); // \"helloWorld\"\n* toCamelCase(\"XMLHttpRequest\"); // \"xmlHttpRequest\"\n*/\nfunction toCamelCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(toSegment).join(\"\");\n}\nfunction toSegment(word, index) {\n\tif (index === 0) return word.toLowerCase();\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toCamelCase as default };\n//# sourceMappingURL=toCamelCase.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toSnakeCase.ts\n/**\n* Convert a string to snake_case (or any underscore-style with a\n* custom separator).\n*\n* @example\n* toSnakeCase(\"HelloWorld\"); // \"hello_world\"\n* toSnakeCase(\"AIAgent\"); // \"ai_agent\"\n*/\nfunction toSnakeCase(string, separator = \"_\", lowerAll = true) {\n\tif (!string) return \"\";\n\tconst tokens = words(string);\n\tif (!lowerAll) return tokens.join(separator);\n\treturn tokens.map((word) => word.toLowerCase()).join(separator);\n}\n\n//#endregion\nexport { toSnakeCase as default };\n//# sourceMappingURL=toSnakeCase.mjs.map","import toSnakeCase from \"./toSnakeCase.mjs\";\n\n//#region ../reinforcements/src/string/toKebabCase.ts\n/**\n* Convert a string to kebab-case.\n*\n* @example\n* toKebabCase(\"HelloWorld\"); // \"hello-world\"\n* toKebabCase(\"AIAgent\"); // \"ai-agent\"\n*/\nfunction toKebabCase(string, lowerAll = true) {\n\treturn toSnakeCase(string, \"-\", lowerAll);\n}\n\n//#endregion\nexport { toKebabCase as default };\n//# sourceMappingURL=toKebabCase.mjs.map","import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toStudlyCase.ts\n/**\n* Convert a string to StudlyCase (PascalCase).\n*\n* @example\n* toStudlyCase(\"hello-world\"); // \"HelloWorld\"\n* toStudlyCase(\"ai_agent\"); // \"AiAgent\"\n*/\nfunction toStudlyCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(capitalize).join(\"\");\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toStudlyCase as default };\n//# sourceMappingURL=toStudlyCase.mjs.map","//#region ../reinforcements/src/utils/lazy.ts\nconst LAZY = Symbol(\"lazy\");\n/**\n* Wrap a value-producing function as a lazy reference. The producer\n* isn't invoked until `resolve()` is called; subsequent calls return the\n* same cached value.\n*\n* Useful for deferring expensive computations and for breaking circular\n* module dependencies — JavaScript closures capture variable bindings,\n* not values, so a `lazy(() => x)` callsite remains valid even when `x`\n* isn't yet defined at the moment the wrapper is created, as long as\n* it's defined by the time `.resolve()` runs.\n*\n* @example\n* const greeting = lazy(() => expensiveComputation());\n*\n* greeting.resolve(); // computes, caches, returns\n* greeting.resolve(); // returns cached value, no recomputation\n*/\nfunction lazy(producer) {\n\tlet isResolved = false;\n\tlet value;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!isResolved) {\n\t\t\t\tvalue = producer();\n\t\t\t\tisResolved = true;\n\t\t\t}\n\t\t\treturn value;\n\t\t},\n\t\treset() {\n\t\t\tisResolved = false;\n\t\t\tvalue = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn isResolved;\n\t\t},\n\t\tpeek() {\n\t\t\treturn isResolved ? value : void 0;\n\t\t}\n\t};\n}\n/**\n* Async variant of {@link lazy}: the producer returns a `Promise<T>`\n* which is cached after first invocation.\n*\n* @example\n* const user = lazy.async(() => fetchUser());\n*\n* await user.resolve(); // fetches\n* await user.resolve(); // returns same promise, no refetch\n*/\nlazy.async = function lazyAsync(producer) {\n\tlet started = false;\n\tlet promise;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!started) {\n\t\t\t\tpromise = producer();\n\t\t\t\tstarted = true;\n\t\t\t}\n\t\t\treturn promise;\n\t\t},\n\t\treset() {\n\t\t\tstarted = false;\n\t\t\tpromise = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn started;\n\t\t},\n\t\tpeek() {\n\t\t\treturn started ? promise : void 0;\n\t\t}\n\t};\n};\n/**\n* Build a pre-resolved lazy reference. Useful for tests and for API\n* symmetry where a `Lazy<T>` is expected.\n*\n* @example\n* const ref = lazy.from(42);\n*\n* ref.resolve(); // 42\n* ref.isResolved(); // true\n*/\nlazy.from = function lazyFrom(value) {\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve: () => value,\n\t\treset() {},\n\t\tisResolved: () => true,\n\t\tpeek: () => value\n\t};\n};\n/**\n* Type guard that returns `true` when `value` is a `Lazy<T>` or\n* `LazyAsync<T>` produced by `lazy()` / `lazy.async()`.\n*\n* @example\n* if (isLazy(value)) {\n* value.resolve();\n* }\n*/\nfunction isLazy(value) {\n\treturn value?.[LAZY] === true;\n}\n\n//#endregion\nexport { lazy as default, isLazy };\n//# sourceMappingURL=lazy.mjs.map","//#region ../reinforcements/src/utils/tap.ts\n/**\n* Run `sideEffect` against `value`, then return `value` unchanged.\n* Useful for inserting logging / instrumentation into a pipeline.\n*\n* @example\n* pipe(2, n => n + 1, tap.with(console.log), n => n * 10);\n* // logs 3, returns 30\n*/\nfunction tap(value, sideEffect) {\n\tsideEffect(value);\n\treturn value;\n}\n/**\n* Curried form: `tap.with(fn)` returns a pipeline-friendly\n* `(value) => value` that runs the side effect.\n*/\ntap.with = function tapWith(sideEffect) {\n\treturn (value) => {\n\t\tsideEffect(value);\n\t\treturn value;\n\t};\n};\n\n//#endregion\nexport { tap as default };\n//# sourceMappingURL=tap.mjs.map","import { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/helpers/get-field-value.ts\n/**\n* Get field value based on scope from rule options\n*\n* This utility extracts a field value from either the global context or sibling context\n* based on the `scope` option in the rule's context.\n*\n* @param rule - The contextual schema rule containing options with:\n* - `field` (or custom fieldKey): The field name to extract\n* - `scope` (optional): Either \"global\" (default) or \"sibling\"\n* @param context - The schema validation context containing allValues and parent\n* @param fieldKey - The key in rule.context.options that contains the field name (defaults to \"field\")\n*\n* @returns The value of the specified field from the appropriate source\n*\n* @example\n* // In a validation rule with scope support:\n* async validate(value: any, context) {\n* const otherFieldValue = getFieldValue(this, context);\n* // Extracts from context.allValues if scope is \"global\"\n* // Extracts from context.parent if scope is \"sibling\"\n* }\n*\n* @example\n* // Using a custom field key:\n* async validate(value: any, context) {\n* const compareValue = getFieldValue(this, context, \"compareField\");\n* // Looks for rule.context.options.compareField instead of .field\n* }\n*\n* @remarks\n* - **Global scope** (`scope: \"global\"`): Searches the entire input data (context.allValues)\n* - **Sibling scope** (`scope: \"sibling\"`): Searches only within the parent object (context.parent)\n* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., \"user.email\")\n*/\nfunction getFieldValue(rule, context, fieldKey = \"field\") {\n\tconst field = rule.context.options[fieldKey];\n\treturn get((rule.context.options.scope || \"global\") === \"sibling\" ? context.parent : context.allValues, field);\n}\n\n//#endregion\nexport { getFieldValue };\n//# sourceMappingURL=get-field-value.mjs.map","//#region ../seal/src/helpers/path-helpers.ts\n/**\n* Set the key path for nested validation\n*/\nconst setKeyPath = (path, key) => {\n\tif (!path) return key;\n\treturn `${path}.${key}`;\n};\n\n//#endregion\nexport { setKeyPath };\n//# sourceMappingURL=path-helpers.mjs.map","import { getSealConfig } from \"../config.mjs\";\n\n//#region ../seal/src/helpers/validation-helpers.ts\nconst VALID_RULE = { isValid: true };\n/**\n* Resolve a single attribute value through the full translation priority chain:\n* 1. attributesList[key] — developer direct text override (highest priority)\n* 2. translatedAttributes[key] — developer explicit translation key\n* 3. translator(rawValue) — auto-translate the raw value (fallback)\n*\n* Use this in rule bodies when you need per-item translation\n* (e.g. translating each enum value before joining them).\n*\n* @example\n* // Translate each enum value individually then join\n* const enumList = enumValues\n* .map(v => resolveTranslation(String(v), String(v), this, context))\n* .join(\", \");\n* this.context.translationParams.enumList = enumList;\n*/\nconst resolveTranslation = ({ key, rawValue, rule, context }) => {\n\tconst translator = getSealConfig().translateAttribute;\n\tconst direct = rule.context.attributesList?.[key];\n\tif (direct && typeof direct === \"string\") return direct;\n\tif (!translator) return String(rawValue ?? key);\n\tconst transKey = rule.context.translatedAttributes?.[key];\n\tif (transKey) return translator({\n\t\tattribute: transKey,\n\t\tcontext,\n\t\trule\n\t});\n\treturn translator({\n\t\tattribute: String(rawValue ?? key),\n\t\tcontext,\n\t\trule\n\t});\n};\nconst resolveAttribute = resolveTranslation;\nconst invalidRule = (rule, context) => {\n\tconst translatableWithInput = {\n\t\tinput: context.key || \"schema\",\n\t\t...rule.context.translatableParams\n\t};\n\tconst resolvedParams = Object.fromEntries(Object.entries(translatableWithInput).map(([key, rawValue]) => [key, resolveAttribute({\n\t\tkey,\n\t\trawValue,\n\t\trule,\n\t\tcontext\n\t})]));\n\tconst attributes = {\n\t\tpath: context.path,\n\t\tkey: context.key,\n\t\tvalue: context.value,\n\t\t...rule.context.translationParams,\n\t\t...resolvedParams,\n\t\tinput: resolvedParams.input\n\t};\n\treturn {\n\t\tisValid: false,\n\t\terror: (rule.context.errorMessage || rule.errorMessage || context.translateRule?.({\n\t\t\trule,\n\t\t\tcontext,\n\t\t\tattributes\n\t\t}) || rule.defaultErrorMessage).replace(/:([a-zA-Z_]+)/g, (match, key) => key in attributes ? String(attributes[key]) : match),\n\t\tinput: attributes.input,\n\t\tpath: context.path\n\t};\n};\n\n//#endregion\nexport { VALID_RULE, invalidRule, resolveTranslation };\n//# sourceMappingURL=validation-helpers.mjs.map","//#region ../supportive-is/src/index.ts\n/**\n* Determine whether the given value is a number whatever if its data type is String or Number\n*/\nfunction isNumeric(value) {\n\treturn /^[+-]?\\d+(\\.\\d+)?([Ee][+-]?\\d+)?$/.test(String(value));\n}\n/**\n* Check if the given value is int\n*/\nconst isInt = (value) => typeof value === \"number\" && Number.isInteger(value);\n/**\n* Check if the given value is float\n*/\nconst isFloat = (value) => typeof value === \"number\" && Number.isFinite(value) && /^-?\\d+\\.\\d+$/.test(String(value));\n/**\n* Check if the given value is a regex\n*/\nconst isRegex = (value) => Boolean(value) && value.constructor?.name === \"RegExp\";\n/**\n* Check if the given value is an object\n*/\nconst isObject = (value) => Boolean(value) && typeof value === \"object\";\n/**\n* Check if the given value is a plain object\n*/\nconst isPlainObject = (value) => {\n\tif (!value || typeof value !== \"object\") return false;\n\tif (Object.getPrototypeOf(value) === null) return true;\n\treturn value.constructor?.name === \"Object\";\n};\n/**\n* Check if the given value is validId\n*/\nconst isValidId = (value) => Boolean(value && /^[A-Za-z][\\w\\-:.]*$/.test(String(value)));\n/**\n* Check if the given value is a form element\n*/\nconst isFormElement = (value) => typeof HTMLFormElement === \"undefined\" ? false : value instanceof HTMLFormElement;\n/**\n* Check if the given value is a form data\n*/\nconst isFormData = (value) => value instanceof FormData;\n/**\n* Check if the given value is iterable\n*/\nconst isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === \"function\";\n/**\n* Check if the given value is a scalar value\n*/\nconst isScalar = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"symbol\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a string\n*/\nconst isString = (value) => typeof value === \"string\";\n/**\n* Check if the given value is a pr value\n*/\nconst isPrimitive = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a promise\n*/\nconst isPromise = (value) => Boolean(value) && value instanceof Promise;\n/**\n* Check if the given value is a date\n*/\nconst isDate = (value) => Boolean(value) && typeof value === \"object\" && value instanceof Date;\n/**\n* Check if the given value is a generator\n*/\nconst isGenerator = (value) => Boolean(value) && typeof value === \"object\" && typeof value.next === \"function\" && typeof value[Symbol.iterator] === \"function\" && value[Symbol.iterator]() === value;\n/**\n* Check if the given value is empty\n* Zero does not considered empty\n* Empty object is considered empty\n* Empty array is considered empty\n*/\nconst isEmpty = (value) => {\n\tif ([\n\t\t0,\n\t\ttrue,\n\t\tfalse\n\t].includes(value)) return false;\n\tif ([\n\t\t\"\",\n\t\tnull,\n\t\tvoid 0\n\t].includes(value)) return true;\n\tif (typeof value === \"number\" && Number.isNaN(value)) return false;\n\tif (value instanceof Date) return false;\n\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\tif (typeof value === \"object\" && !Array.isArray(value) && typeof value[Symbol.iterator] !== \"function\") return Object.keys(value).length === 0;\n\tif (isIterable(value)) return value.length === 0;\n\tif (isNumeric(value)) return false;\n\treturn true;\n};\n/**\n* Check if the given value is a valid json\n*/\nconst isJson = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\tif (![\"[\", \"{\"].includes(value?.[0])) return false;\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is valid url\n*/\nconst isUrl = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\ttry {\n\t\tconst url = new URL(value);\n\t\tif (![\"http:\", \"https:\"].includes(url.protocol)) return false;\n\t\tconst hostname = url.hostname;\n\t\tif (!hostname.includes(\".\")) return false;\n\t\tif (hostname.split(\".\").some((label) => label.length === 0)) return false;\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is a valid email\n*/\nconst isEmail = (value) => typeof value === \"string\" && /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(value);\n/**\n* Check if current user is opening from mobile\n*/\nconst isMobile = {\n\t/**\n\t* Determine whether the current visitor is opening from an Android device\n\t*/\n\tandroid: () => navigator.userAgent.match(/Android/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ios device\n\t*/\n\tios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an Iphone\n\t*/\n\tiphone: () => navigator.userAgent.match(/iPhone/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipad\n\t*/\n\tipad: () => navigator.userAgent.match(/iPad/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipod\n\t*/\n\tipod: () => navigator.userAgent.match(/iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an windows mobile\n\t*/\n\twindows: () => navigator.userAgent.match(/IEMobile/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from mobile whatever its type\n\t*/\n\tany: () => isMobile.android() || isMobile.ios() || isMobile.windows()\n};\n/**\n* Determine if current user is opening from macOS\n*/\nconst isMac = () => navigator.userAgent.match(/mac/i) !== null;\n/**\n* Check if current browser is the given name\n*/\nconst isBrowser = (browser) => {\n\treturn {\n\t\tchrome: isChrome(),\n\t\tfirefox: isFirefox(),\n\t\topera: isOpera(),\n\t\tedge: isEdge(),\n\t\tie: isIE(),\n\t\tsafari: isSafari()\n\t}[browser.toLowerCase()] === true;\n};\n/**\n* Check if current browser is chrome browser\n*/\nconst isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n/**\n* Check if current browser is firefox\n*/\nconst isFirefox = () => typeof window.InstallTrigger !== \"undefined\";\n/**\n* Check if current browser is safari\n*/\nconst isSafari = () => {\n\tif (typeof navigator === \"undefined\") return false;\n\tconst ua = navigator.userAgent || \"\";\n\treturn /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);\n};\n/**\n* Check if current browser is opera\n*/\nconst isOpera = () => {\n\tif (typeof window === \"undefined\") return false;\n\tconst w = window;\n\treturn !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== \"undefined\" && navigator.userAgent.indexOf(\" OPR/\") >= 0;\n};\n/**\n* Check if current browser is internet explorer\n*/\nconst isIE = () => !!document.documentMode;\n/**\n* Check if current browser is edge\n*/\nconst isEdge = () => {\n\treturn !!!document.documentMode && !!window.StyleMedia;\n};\n/**\n* Determine whether the current visitor is opening from desktop\n*/\nconst isDesktop = () => !isMobile.any();\n/**\n* A simple lightweight library to validate values against certain types of data\n* For full documentation on github\n* Repo: https://github.com/hassanzohdy/supportive-is\n*\n* First released 01/12/2017\n* Licensed under MIT (http://opensource.org/licenses/MIT)\n*/\nconst Is = {\n\t/**\n\t* Determine whether the given value is a number whatever if its data type is String or Number\n\t*/\n\tnumeric: isNumeric,\n\t/**\n\t* Determine whether the given value is an integer and its data type is number\n\t* As Number.isInteger considers 1.0 to be valid integer, regex will be used instead\n\t*/\n\tint: isInt,\n\t/**\n\t* Determine whether the given value is a float number and its data type is number\n\t*/\n\tfloat: isFloat,\n\t/**\n\t* Determine whether the given value is a regular expression\n\t*/\n\tregex: isRegex,\n\t/**\n\t* Determine whether the given value is an object\n\t*/\n\tobject: isObject,\n\t/**\n\t* Determine whether the given value is a plain object\n\t*/\n\tplainObject: isPlainObject,\n\t/**\n\t* Determine whether the given value is an array\n\t*/\n\tarray: Array.isArray,\n\t/**\n\t* Determine whether the given value is valid html attribute `id`\n\t*/\n\tvalidHtmlId: isValidId,\n\t/**\n\t* determine if the given value is an instance of form element\n\t*/\n\tformElement: isFormElement,\n\t/**\n\t* @alias formElement\n\t*/\n\tform: isFormElement,\n\t/**\n\t* determine if the given value is an instance of form data\n\t*/\n\tformData: isFormData,\n\t/**\n\t* Determine whether the given value is iterable\n\t*/\n\titerable: isIterable,\n\t/**\n\t* Determine whether the given value is a scalar\n\t* Scalar types are strings, booleans, integers and\n\t*/\n\tscalar: isScalar,\n\t/**\n\t* Determine if the given value is a primitive value\n\t*/\n\tprimitive: isPrimitive,\n\t/**\n\t* Determine whether the given value is a promise\n\t*/\n\tpromise: isPromise,\n\t/**\n\t* Determine whether the given value is a date\n\t*/\n\tdate: isDate,\n\t/**\n\t* Determine whether the given value is a generator\n\t*/\n\tgenerator: isGenerator,\n\t/**\n\t* Determine whether the given value if an empty\n\t* This can be validated against any type of values\n\t* undefined or nullable values will be considered empty\n\t* Objects that doesn't have any properties will be considered empty\n\t* Arrays and Strings will be empty based on its length\n\t* The 0 'Zero\" number will not be considered empty\n\t*/\n\tempty: isEmpty,\n\t/**\n\t* Determine whether the given value is a valid json string\n\t*/\n\tjson: isJson,\n\t/**\n\t* Determine whether the given value is a valid url\n\t*/\n\turl: isUrl,\n\t/**\n\t* Determine whether the given value is a valid email\n\t*/\n\temail: isEmail,\n\t/**\n\t* Determine the current visitor is opening from mobile\n\t* Please Note this method depends on the user agent\n\t*/\n\tmobile: isMobile,\n\t/**\n\t* Determine if current user is opening from macOS\n\t*/\n\tmac: isMac,\n\t/**\n\t* Determine whether the current visitor is opening from desktop\n\t*/\n\tdesktop: isDesktop,\n\t/**\n\t* Check if the current browser is the given name\n\t* To detect browser version as well, pass the version number as the second argument\n\t*/\n\tbrowser: isBrowser,\n\tchrome: isChrome,\n\tfirefox: isFirefox,\n\tsafari: isSafari,\n\topera: isOpera,\n\tie: isIE,\n\tedge: isEdge\n};\n\n//#endregion\nexport { Is, Is as default, isBrowser, isChrome, isDate, isDesktop, isEdge, isEmail, isEmpty, isFirefox, isFloat, isFormData, isFormElement, isGenerator, isIE, isInt, isIterable, isJson, isMac, isMobile, isNumeric, isObject, isOpera, isPlainObject, isPrimitive, isPromise, isRegex, isSafari, isScalar, isString, isUrl, isValidId };\n//# sourceMappingURL=index.mjs.map","import { isEmpty, isObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/helpers/is-empty-value.ts\nfunction isEmptyValue(value) {\n\treturn isEmpty(value) && !isObject(value);\n}\n\n//#endregion\nexport { isEmptyValue };\n//# sourceMappingURL=is-empty-value.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/core/required.ts\n/**\n* Required rule - value must be present and not empty\n*/\nconst requiredRule = {\n\tname: \"required\",\n\tdefaultErrorMessage: \"The :input is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present rule - key must exist in the data, but value can be anything\n* (empty string, null are all valid as long as the key exists)\n*/\nconst presentRule = {\n\tname: \"present\",\n\tdefaultErrorMessage: \"The :input field is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (value === void 0) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentRule, requiredRule };\n//# sourceMappingURL=required.mjs.map","//#region ../seal/src/standard-schema/map-result.ts\n/**\n* Maps a Seal ValidationResult to a Standard Schema result shape.\n*\n* Seal error paths are dot-notation strings (e.g. \"address.city\").\n* Standard Schema expects an array of path segments: [{ key: \"address\" }, { key: \"city\" }].\n*\n* @example\n* ```ts\n* const result = await validator.validate(value, context);\n* return mapToStandardResult(result);\n* // Success → { value: <data> }\n* // Failure → { issues: [{ message: \"...\", path: [{ key: \"...\" }] }] }\n* ```\n*/\nfunction mapToStandardResult(result) {\n\tif (result.isValid) return { value: result.data };\n\treturn { issues: result.errors.map((e) => ({\n\t\tmessage: e.error,\n\t\tpath: e.input ? e.input.split(\".\").map((key) => ({ key })) : void 0\n\t})) };\n}\n\n//#endregion\nexport { mapToStandardResult };\n//# sourceMappingURL=map-result.mjs.map","import { validate } from \"../factory/validate.mjs\";\nimport { VALID_RULE, invalidRule } from \"../helpers/validation-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { requiredRule } from \"../rules/core/required.mjs\";\nimport { mapToStandardResult } from \"../standard-schema/map-result.mjs\";\nimport { clone } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/validators/base-validator.ts\n/**\n* Base validator class - foundation for all validators\n*/\nvar BaseValidator = class {\n\tconstructor() {\n\t\tthis.rules = [];\n\t\tthis.mutators = [];\n\t\tthis.shouldOmit = false;\n\t\tthis.isNullable = false;\n\t\tthis.isMutable = false;\n\t\tthis.hasCatch = false;\n\t\tthis.isOptional = false;\n\t\tthis.requiredRule = this.createRule(requiredRule);\n\t\tthis.dataTransformers = [];\n\t\tthis.attributesText = {};\n\t\tthis.translatedAttributes = {};\n\t}\n\t/**\n\t* Mark the validator as mutable\n\t*/\n\tget mutable() {\n\t\tthis.isMutable = true;\n\t\treturn this;\n\t}\n\t/**\n\t* Mark the validator as immutable\n\t*/\n\tget immutable() {\n\t\tthis.isMutable = false;\n\t\treturn this;\n\t}\n\t/**\n\t* Get the instance to apply changes to.\n\t* By default (immutable), returns a clone so the original is unchanged.\n\t* When `.mutable` is set, returns `this` to mutate in place.\n\t*/\n\tget instance() {\n\t\treturn this.isMutable ? this : this.clone();\n\t}\n\t/**\n\t* Get the default value\n\t* Supports lazy evaluation via callbacks\n\t*/\n\tgetDefaultValue() {\n\t\treturn typeof this.defaultValue === \"function\" ? this.defaultValue() : this.defaultValue;\n\t}\n\t/**\n\t* Allow null as a valid value.\n\t*\n\t* Brands the return type with `{ isNullable: true }` so `Infer<>` widens\n\t* the inferred output to include `| null`.\n\t*/\n\tnullable() {\n\t\tconst instance = this.instance;\n\t\tinstance.isNullable = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* Explicitly disallow null values after calling nullable.\n\t*\n\t* Brands the return type with `{ isNullable: false }` to cancel any prior\n\t* `.nullable()` at the type level.\n\t*/\n\tnotNullable() {\n\t\tconst instance = this.instance;\n\t\tinstance.isNullable = false;\n\t\treturn instance;\n\t}\n\t/**\n\t* Add transformer with optional options\n\t*\n\t* @param transform - The transformer callback function\n\t* @param options - Optional options to pass to the transformer\n\t*\n\t* @example\n\t* ```ts\n\t* // Without options\n\t* v.date().addTransformer(data => data.toISOString())\n\t*\n\t* // With options\n\t* v.date().addTransformer(\n\t* (data, { options }) => dayjs(data).format(options.format),\n\t* { format: 'YYYY-MM-DD' }\n\t* )\n\t* ```\n\t*/\n\taddTransformer(transform, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableTransformer(transform, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add transformer with optional options\n\t*\n\t* @param transform - The transformer callback function\n\t* @param options - Optional options to pass to the transformer\n\t*\n\t* @example\n\t* ```ts\n\t* // Without options\n\t* v.date().addTransformer(data => data.toISOString())\n\t*\n\t* // With options\n\t* v.date().addTransformer(\n\t* (data, { options }) => dayjs(data).format(options.format),\n\t* { format: 'YYYY-MM-DD' }\n\t* )\n\t* ```\n\t*/\n\taddMutableTransformer(transform, options = {}) {\n\t\tthis.dataTransformers.push({\n\t\t\ttransform,\n\t\t\toptions\n\t\t});\n\t}\n\t/**\n\t* Transform the output value - simple one-time transformation\n\t*\n\t* @param callback - Simple callback receiving data and context\n\t*\n\t* @example\n\t* ```ts\n\t* // Simple transformation\n\t* v.string().outputAs(data => data.toUpperCase())\n\t*\n\t* // With context\n\t* v.string().outputAs((data, context) => {\n\t* console.log(`Transforming ${context.path}`);\n\t* return data.toLowerCase();\n\t* })\n\t* ```\n\t*/\n\toutputAs(callback) {\n\t\treturn this.addTransformer((data, { context }) => callback(data, context));\n\t}\n\t/**\n\t* Transform output to JSON string\n\t*\n\t* Works with any validator type (string, number, date, object, array, etc.)\n\t*\n\t* @param indent - Optional indentation for pretty printing (default: 0 for compact)\n\t*\n\t* @example\n\t* ```ts\n\t* // Compact JSON\n\t* v.object({ name: v.string() }).toJSON()\n\t* // Output: '{\"name\":\"John\"}'\n\t*\n\t* // Pretty-printed JSON\n\t* v.array(v.object({...})).toJSON(2)\n\t* // Output:\n\t* // [\n\t* // {\n\t* // \"name\": \"John\"\n\t* // }\n\t* // ]\n\t*\n\t* // Works with any type\n\t* v.string().toJSON() // '\"hello\"'\n\t* v.number().toJSON() // '42'\n\t* v.date().toJSON() // '\"2024-10-26T00:00:00.000Z\"'\n\t* ```\n\t*\n\t* @category Transformer\n\t*/\n\ttoJSON(indent) {\n\t\treturn this.addTransformer((data, { options }) => JSON.stringify(data, null, options.indent), { indent: indent ?? 0 });\n\t}\n\t/**\n\t* Start data transformation pipeline\n\t* Context is passed at runtime, not stored\n\t*/\n\tasync startTransformationPipeline(data, context) {\n\t\tfor (const transformer of this.dataTransformers) data = await transformer.transform(data, {\n\t\t\toptions: transformer.options,\n\t\t\tcontext\n\t\t});\n\t\treturn data;\n\t}\n\t/**\n\t* Set attributes text to be replaced on translations\n\t* If the value is an object, it will be used as the attributes list for the rule\n\t* If the value is a string, it will be used as the attributes list for the rule\n\t*\n\t* @example\n\t* v.string().attributes({\n\t* name: \"Name\",\n\t* email: \"Email\",\n\t* });\n\t* // Example 2: Add custom attributes for matches\n\t* v.string().matches(\"confirmPassword\").attributes({\n\t* matches: {\n\t* confirmPassword: \"Confirm Password\",\n\t* },\n\t* });\n\t*/\n\tattributes(attributes) {\n\t\tconst instance = this.instance;\n\t\tfor (const key in attributes) instance.attributesText[key] = attributes[key];\n\t\treturn instance;\n\t}\n\t/**\n\t* Define a lazy getter property for each attribute in the given object and use the config attribute translator\n\t*/\n\ttransAttributes(attributes) {\n\t\tconst instance = this.instance;\n\t\tfor (const key in attributes) instance.translatedAttributes[key] = attributes[key];\n\t\treturn instance;\n\t}\n\t/**\n\t* Add description to the validator\n\t*/\n\tdescribe(description) {\n\t\tconst instance = this.instance;\n\t\tinstance.description = description;\n\t\treturn instance;\n\t}\n\t/**\n\t* Check if this validator can handle the given value's type\n\t* Override this in specific validators to enable type-based routing in union validators\n\t*\n\t* Default: returns true (validator will attempt to validate any type)\n\t*\n\t* @param value - The value to check\n\t* @returns True if this validator can handle this type\n\t*\n\t* @example\n\t* ```ts\n\t* // StringValidator\n\t* public matchesType(value: any): boolean {\n\t* return typeof value === 'string';\n\t* }\n\t*\n\t* // Custom FileValidator\n\t* public matchesType(value: any): boolean {\n\t* return value instanceof UploadedFile;\n\t* }\n\t* ```\n\t*/\n\tmatchesType(_value) {\n\t\treturn true;\n\t}\n\t/**\n\t* Create a copy of this validator with the same configuration\n\t* Copies all rules, mutators, transformers, default values, and settings\n\t*\n\t* @returns A new validator instance with copied configuration\n\t*\n\t* @example\n\t* ```ts\n\t* // Create reusable validator templates\n\t* const baseString = v.string().required().trim().min(3);\n\t* const emailField = baseString.clone().email();\n\t* const usernameField = baseString.clone().alphanumeric().max(20);\n\t*\n\t* // Works with all validators\n\t* const positiveInt = v.int().positive().required();\n\t* const ageField = positiveInt.clone().min(18).max(120);\n\t* ```\n\t*/\n\tclone() {\n\t\tconst Constructor = this.constructor;\n\t\tconst cloned = Object.create(Constructor.prototype);\n\t\tcloned.rules = [...this.rules];\n\t\tcloned.mutators = [...this.mutators];\n\t\tcloned.dataTransformers = [...this.dataTransformers];\n\t\tcloned.defaultValue = this.defaultValue;\n\t\tcloned.shouldOmit = this.shouldOmit;\n\t\tcloned.description = this.description;\n\t\tcloned.attributesText = { ...this.attributesText };\n\t\tcloned.isNullable = this.isNullable;\n\t\tcloned.isOptional = this.isOptional;\n\t\tcloned.requiredRule = this.requiredRule;\n\t\tcloned.catchValue = this.catchValue;\n\t\tcloned.hasCatch = this.hasCatch;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @deprecated This method is no longer needed and does nothing.\n\t* Empty values are now automatically skipped for validation rules by default.\n\t* Only presence validators (required, present, etc.) will check empty values.\n\t* You can safely remove this call from your code.\n\t*/\n\tignoreEmptyValue(_ignoreEmptyValue = true) {\n\t\treturn this;\n\t}\n\t/**\n\t* Omit this field from the validated data output\n\t*\n\t* Field will still be validated but not included in the final result.\n\t* Useful for confirmation fields, captcha, terms acceptance, etc.\n\t*\n\t* @example\n\t* ```ts\n\t* v.object({\n\t* password: v.string().required(),\n\t* confirmPassword: v.string().required().sameAs(\"password\").omit(),\n\t* acceptTerms: v.boolean().required().omit(),\n\t* });\n\t* // Output: { password: \"...\" }\n\t* // confirmPassword and acceptTerms validated but omitted\n\t* ```\n\t*/\n\tomit() {\n\t\tconst instance = this.instance;\n\t\tinstance.shouldOmit = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* @alias omit\n\t*/\n\texclude() {\n\t\treturn this.omit();\n\t}\n\t/**\n\t* Check if this field should be omitted from the output\n\t*/\n\tisOmitted() {\n\t\treturn this.shouldOmit;\n\t}\n\t/**\n\t* Add rule to the validator\n\t*/\n\taddRule(rule, errorMessage, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableRule(rule, errorMessage, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Set the required-condition rule for this field.\n\t*\n\t* Unlike addRule(), this does NOT push to rules[]. The rule is stored in the\n\t* dedicated `requiredRule` slot and is prepended to the validation pipeline\n\t* at runtime. Only one required rule can be active per field — this replaces\n\t* any previously set required rule.\n\t*\n\t* Also marks the field as not optional (isOptional = false).\n\t*\n\t* @example\n\t* ```ts\n\t* // Used internally by required(), requiredIf(), requiredWith(), etc.\n\t* BaseValidator.prototype.required = function(msg) {\n\t* return this.setRequiredRule(requiredRule, msg);\n\t* };\n\t* ```\n\t*/\n\tsetRequiredRule(rule, errorMessage, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.isOptional = false;\n\t\tinstance.requiredRule = instance.createRule(rule, errorMessage, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add mutable rule\n\t*/\n\taddMutableRule(rule, errorMessage, options = {}) {\n\t\tconst newRule = this.createRule(rule, errorMessage, options);\n\t\tthis.rules.push(newRule);\n\t\treturn newRule;\n\t}\n\t/**\n\t* Create new rule\n\t*/\n\tcreateRule(rule, errorMessage, options = {}) {\n\t\tconst newRule = {\n\t\t\t...clone(rule),\n\t\t\tcontext: {\n\t\t\t\terrorMessage,\n\t\t\t\toptions,\n\t\t\t\tattributesList: this.attributesText,\n\t\t\t\ttranslatedAttributes: this.translatedAttributes,\n\t\t\t\ttranslationParams: {},\n\t\t\t\ttranslatableParams: {}\n\t\t\t}\n\t\t};\n\t\tif (errorMessage) newRule.errorMessage = errorMessage;\n\t\tif (rule.sortOrder === void 0) newRule.sortOrder = this.rules.length + 1;\n\t\treturn newRule;\n\t}\n\t/**\n\t* Use a custom or pre-built validation rule\n\t*\n\t* @param rule - The validation rule to apply\n\t* @param options - Rule options including errorMessage and any rule-specific options\n\t*\n\t* @example\n\t* ```ts\n\t* import { hexColorRule } from \"@warlock.js/seal\";\n\t*\n\t* v.string().useRule(hexColorRule, { errorMessage: \"Invalid color\" });\n\t* ```\n\t*\n\t* @example\n\t* ```ts\n\t* // With rule options\n\t* v.string().useRule(myCustomRule, {\n\t* customOption: true,\n\t* errorMessage: \"Custom validation failed\"\n\t* });\n\t* ```\n\t*/\n\tuseRule(rule, options) {\n\t\tconst { errorMessage, ...ruleOptions } = options || {};\n\t\treturn this.addRule(rule, errorMessage, ruleOptions);\n\t}\n\t/**\n\t* Define custom rule\n\t*/\n\trefine(callback) {\n\t\treturn this.addRule({\n\t\t\tname: \"custom\",\n\t\t\tasync validate(value, context) {\n\t\t\t\tconst result = await callback(value, context);\n\t\t\t\tif (result) {\n\t\t\t\t\tthis.context.errorMessage = result;\n\t\t\t\t\treturn invalidRule(this, context);\n\t\t\t\t}\n\t\t\t\treturn VALID_RULE;\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Add mutator to the validator\n\t*/\n\taddMutator(mutator, options = {}) {\n\t\tconst instance = this.instance;\n\t\tinstance.addMutableMutator(mutator, options);\n\t\treturn instance;\n\t}\n\t/**\n\t* Add mutable mutator\n\t*/\n\taddMutableMutator(mutator, options = {}) {\n\t\tthis.mutators.push({\n\t\t\tmutate: mutator,\n\t\t\tcontext: {\n\t\t\t\toptions,\n\t\t\t\tctx: {}\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Set default value for the field. The default is used when the input is\n\t* absent (`undefined`); it then flows through the rule pipeline.\n\t*\n\t* Brands the return type with `{ hasDefault: true }` so `Infer<>` treats\n\t* the field as guaranteed-present even when chained with `.optional()`.\n\t*/\n\tdefault(value) {\n\t\tconst instance = this.instance;\n\t\tinstance.defaultValue = value;\n\t\treturn instance;\n\t}\n\t/**\n\t* Fallback to a value when validation fails.\n\t*\n\t* Complementary to `.default()`: `.default(x)` fires when input is **absent**,\n\t* `.catch(y)` fires when input is **present but invalid**. Combine them when\n\t* you want both behaviours: `.optional().default(x).catch(y)`.\n\t*\n\t* The fallback can be a value or a callback `(errors, originalInput) => fallback`.\n\t* The callback variant is the only side-channel for the swallowed errors —\n\t* use it to log/alert before the fallback substitutes.\n\t*\n\t* Brands the return type with `{ hasCatch: true }` so `Infer<>` treats the\n\t* field as guaranteed-present (the catch ensures a value will always exist).\n\t*\n\t* **Scope (v1).** Catch is honoured for **leaf validators** (string, number,\n\t* boolean, date, …) and for fields inside containers. It is a **no-op on\n\t* container validators themselves** (`v.object`, `v.array`, `v.record`,\n\t* `v.tuple`, `v.discriminatedUnion`) — those use their own iteration logic\n\t* that bypasses the catch hook in `BaseValidator.validate()`.\n\t*\n\t* @example\n\t* ```ts\n\t* v.int().min(0).catch(3) // bad number → 3\n\t* v.string().in([\"us\", \"eu\"]).catch(\"us\") // unknown enum → \"us\"\n\t* v.string().catch((errors, input) => {\n\t* console.warn(`bad user value: ${JSON.stringify(input)}`, errors);\n\t* return \"anonymous\";\n\t* })\n\t* ```\n\t*/\n\tcatch(fallback) {\n\t\tconst instance = this.instance;\n\t\tinstance.catchValue = fallback;\n\t\tinstance.hasCatch = true;\n\t\treturn instance;\n\t}\n\t/**\n\t* Mutate the data\n\t*/\n\tasync mutate(data, context) {\n\t\tlet mutatedData = data;\n\t\tfor (const mutator of this.mutators) {\n\t\t\tmutator.context.ctx = context;\n\t\t\tmutatedData = await mutator.mutate(mutatedData, mutator.context);\n\t\t}\n\t\treturn mutatedData;\n\t}\n\t/**\n\t* Set the label for the validator that will be matching the :input attribute\n\t*/\n\tlabel(label) {\n\t\tconst instance = this.instance;\n\t\tinstance.attributesText.input = label;\n\t\treturn instance;\n\t}\n\t/**\n\t* Validate the data\n\t*/\n\tasync validate(data, context) {\n\t\tif (data === null && this.isNullable) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: null\n\t\t};\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst errors = [];\n\t\tlet isValid = true;\n\t\tconst isFirstErrorOnly = context.configurations?.firstErrorOnly ?? true;\n\t\tconst isEmpty = isEmptyValue(valueForRules);\n\t\tconst skipEmptyRules = this.isOptional ? valueForRules === void 0 : isEmpty;\n\t\tconst rulesToRun = this.requiredRule ? [this.requiredRule, ...this.rules] : this.rules;\n\t\tfor (const rule of rulesToRun) {\n\t\t\tif ((rule.requiresValue ?? true) && skipEmptyRules) continue;\n\t\t\tthis.setRuleAttributesList(rule);\n\t\t\tconst result = await rule.validate(mutatedData, context);\n\t\t\tif (result.isValid === false) {\n\t\t\t\tisValid = false;\n\t\t\t\terrors.push({\n\t\t\t\t\ttype: rule.name,\n\t\t\t\t\terror: result.error,\n\t\t\t\t\tinput: result.path ?? context.path\n\t\t\t\t});\n\t\t\t\tif (isFirstErrorOnly) break;\n\t\t\t}\n\t\t}\n\t\tconst result = {\n\t\t\tisValid,\n\t\t\terrors,\n\t\t\tdata: mutatedData !== void 0 ? await this.startTransformationPipeline(mutatedData, context) : void 0\n\t\t};\n\t\tif (result.isValid === false && this.hasCatch) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: typeof this.catchValue === \"function\" ? await this.catchValue(result.errors, data) : this.catchValue\n\t\t};\n\t\treturn result;\n\t}\n\t/**\n\t* Set rule attributes list\n\t*/\n\tsetRuleAttributesList(rule) {\n\t\trule.context.attributesList = typeof this.attributesText[rule.name] === \"object\" ? this.attributesText[rule.name] : this.attributesText;\n\t}\n\t/**\n\t* Standard Schema V1 compliance.\n\t*\n\t* Allows this validator to be used with any Standard Schema-aware library\n\t* (OpenAI structured outputs, LangGraph, TanStack Form, Conform, Valibot adapters, etc.)\n\t* without extra adapters.\n\t*\n\t* Delegates to the `validate()` factory so all `configureSeal()` options\n\t* (translations, firstErrorOnly) are picked up automatically at call time.\n\t*\n\t* Includes Standard JSON Schema support via `jsonSchema.input()` / `jsonSchema.output()`.\n\t*\n\t* ## How Standard Schema libraries consume this\n\t*\n\t* You pass the **schema object itself** to the library — they internally read\n\t* `schema[\"~standard\"]`. Do NOT pass `schema[\"~standard\"]` directly.\n\t*\n\t* @example\n\t* ```ts\n\t* const schema = v.object({ name: v.string().required() });\n\t*\n\t* // TanStack Form — pass schema, library reads [\"~standard\"] internally\n\t* const form = useForm({ validators: { onChange: schema } });\n\t*\n\t* // Conform (Remix) — same pattern\n\t* const [form] = useForm({ onValidate({ formData }) {\n\t* return parseWithStandardSchema(formData, { schema });\n\t* }});\n\t*\n\t* // Direct validation (lower level — most apps don't need this)\n\t* const result = await schema[\"~standard\"].validate({ name: \"Hasan\" });\n\t* // → { value: { name: \"Hasan\" } } on success\n\t* // → { issues: [{ message: \"...\", path: [{ key: \"name\" }] }] } on failure\n\t*\n\t* // JSON Schema for OpenAI / LangChain tool calling\n\t* const parameters = schema[\"~standard\"].jsonSchema.input({ target: \"openai-strict\" });\n\t* // → { type: \"object\", properties: {...}, required: [...], additionalProperties: false }\n\t* ```\n\t*\n\t* @note Cross-field rules (sameAs, requiredIf, requiredWith) rely on sibling values\n\t* available in the full validation context. When called on a standalone scalar validator,\n\t* sibling data is absent and those rules will not evaluate correctly.\n\t* Always call on the parent ObjectValidator for full-payload validation.\n\t*/\n\tget [\"~standard\"]() {\n\t\treturn {\n\t\t\tversion: 1,\n\t\t\tvendor: \"seal\",\n\t\t\ttypes: void 0,\n\t\t\tvalidate: async (value) => {\n\t\t\t\treturn mapToStandardResult(await validate(this, value));\n\t\t\t},\n\t\t\tjsonSchema: {\n\t\t\t\tinput: (options) => this.toJsonSchema(options.target),\n\t\t\t\toutput: (options) => this.toJsonSchema(options.target)\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Generate a JSON Schema representation of this validator.\n\t*\n\t* Supports targets: `\"draft-2020-12\"` (default), `\"draft-07\"`, `\"openapi-3.0\"`.\n\t*\n\t* Subclasses override this to describe their specific constraints.\n\t* The base implementation returns `{}` (permissive — accepts anything),\n\t* which is correct for validators with no representable JSON Schema constraints.\n\t*\n\t* @note Rules that cannot be expressed in JSON Schema are silently omitted:\n\t* - Cross-field rules: sameAs, requiredIf, requiredWith, requiredWithout\n\t* - Custom callbacks: refine()\n\t* - Framework-specific runtime rules (core/cascade plugins)\n\t* These rules still run normally at validation time — only absent from JSON Schema.\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().min(3).max(50).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", minLength: 3, maxLength: 50 }\n\t*\n\t* v.object({ name: v.string().required(), age: v.int().optional() })\n\t* .toJsonSchema(\"draft-07\")\n\t* // → { type: \"object\", properties: { name: { type: \"string\" }, age: { type: \"integer\" } }, required: [\"name\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\treturn {};\n\t}\n};\n\n//#endregion\nexport { BaseValidator };\n//# sourceMappingURL=base-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/any-validator.ts\n/**\n* Any validator - accepts any value\n*/\nvar AnyValidator = class extends BaseValidator {\n\tconstructor(..._args) {\n\t\tsuper(..._args);\n\t\tthis.requiredRule = null;\n\t\tthis.isOptional = true;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Any validator accepts anything. In JSON Schema, an empty object `{}`\n\t* is the permissive schema that accepts any valid JSON value.\n\t*\n\t* @example\n\t* ```ts\n\t* v.any().toJsonSchema(\"draft-2020-12\")\n\t* // → {}\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {};\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { AnyValidator };\n//# sourceMappingURL=any-validator.mjs.map","import { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/mutators/array-mutators.ts\n/** Reverse array order */\nconst flipArrayMutator = async (value) => {\n\treturn value.reverse();\n};\n/** Reverse array order (alias) */\nconst reverseArrayMutator = async (value) => {\n\treturn value.reverse();\n};\n/** Sort array */\nconst sortArrayMutator = async (value, context) => {\n\tif (!Array.isArray(value)) return value;\n\tconst sortDirection = context?.options.direction ?? \"asc\";\n\tconst sortByKey = context?.options.key ?? null;\n\treturn value.sort((a, b) => {\n\t\tif (sortByKey) {\n\t\t\tconst aValue = get(a, sortByKey);\n\t\t\tconst bValue = get(b, sortByKey);\n\t\t\tif (sortDirection === \"asc\") return aValue - bValue;\n\t\t\treturn bValue - aValue;\n\t\t}\n\t\tif (sortDirection === \"asc\") return a - b;\n\t\treturn b - a;\n\t});\n};\n/** Make array have only unique values */\nconst uniqueArrayMutator = async (value) => {\n\treturn [...new Set(value)];\n};\n/** Remove empty elements from array */\nconst removeEmptyArrayElementsMutator = async (value) => {\n\treturn value.filter((item) => !isEmptyValue(item));\n};\n\n//#endregion\nexport { flipArrayMutator, removeEmptyArrayElementsMutator, reverseArrayMutator, sortArrayMutator, uniqueArrayMutator };\n//# sourceMappingURL=array-mutators.mjs.map","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),Y=_.prototype;return O.prototype=Y,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){Y[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","import dayjs from \"dayjs\";\n\n//#region ../seal/src/mutators/date-mutators.ts\n/**\n* Convert value to Date object\n* Returns Invalid Date if value cannot be converted\n*/\nconst dateMutator = async (value) => {\n\tif (!value) return;\n\tif (value instanceof Date) return value;\n\treturn new Date(value);\n};\n/** Convert date to ISO string format */\nconst toISOStringMutator = async (value) => {\n\treturn new Date(value).toISOString();\n};\n/** Convert date to Unix timestamp (milliseconds) */\nconst toTimestampMutator = async (value) => {\n\treturn new Date(value).getTime();\n};\n/** Convert date to start of day (00:00:00) */\nconst toStartOfDayMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Convert date to end of day (23:59:59.999) */\nconst toEndOfDayMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n/** Add or subtract days from date */\nconst addDaysMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst days = context?.options.days ?? 0;\n\tdate.setDate(date.getDate() + days);\n\treturn date;\n};\n/** Add or subtract months from date */\nconst addMonthsMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst months = context?.options.months ?? 0;\n\tdate.setMonth(date.getMonth() + months);\n\treturn date;\n};\n/** Add or subtract years from date */\nconst addYearsMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst years = context?.options.years ?? 0;\n\tdate.setFullYear(date.getFullYear() + years);\n\treturn date;\n};\n/** Add or subtract hours from date */\nconst addHoursMutator = async (value, context) => {\n\tconst date = new Date(value);\n\tconst hours = context?.options.hours ?? 0;\n\tdate.setHours(date.getHours() + hours);\n\treturn date;\n};\n/** Convert date to UTC */\nconst toUTCMutator = async (value) => {\n\tconst date = new Date(value);\n\treturn new Date(date.toUTCString());\n};\n/** Convert date to specific format using dayjs */\nconst toFormatMutator = async (value, context) => {\n\tconst format = context?.options.format ?? \"YYYY-MM-DD\";\n\treturn dayjs(value).format(format);\n};\n/** Convert to date only (remove time) */\nconst toDateOnlyMutator = async (value) => {\n\treturn new Date(value).toISOString().split(\"T\")[0];\n};\n/** Convert to time only (HH:MM:SS) */\nconst toTimeOnlyMutator = async (value) => {\n\treturn new Date(value).toTimeString().split(\" \")[0];\n};\n/** Set to start of month */\nconst toStartOfMonthMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setDate(1);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Set to end of month */\nconst toEndOfMonthMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(date.getMonth() + 1);\n\tdate.setDate(0);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n/** Set to start of year */\nconst toStartOfYearMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(0);\n\tdate.setDate(1);\n\tdate.setHours(0, 0, 0, 0);\n\treturn date;\n};\n/** Set to end of year */\nconst toEndOfYearMutator = async (value) => {\n\tconst date = new Date(value);\n\tdate.setMonth(11);\n\tdate.setDate(31);\n\tdate.setHours(23, 59, 59, 999);\n\treturn date;\n};\n\n//#endregion\nexport { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toDateOnlyMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toFormatMutator, toISOStringMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toTimeOnlyMutator, toTimestampMutator, toUTCMutator };\n//# sourceMappingURL=date-mutators.mjs.map","import { round } from \"@mongez/reinforcements\";\nimport { isNumeric } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/mutators/number-mutators.ts\n/** Convert value to number */\nconst numberMutator = async (value) => {\n\tif (!value) return value;\n\treturn Number(value);\n};\n/** Round number to specified decimals */\nconst roundNumberMutator = async (value, context) => {\n\treturn round(value, context?.options?.decimals ?? 2);\n};\n/** Convert to boolean */\nconst booleanMutator = async (value) => {\n\tif (value === \"true\") return true;\n\tif (value === \"false\") return false;\n\treturn Boolean(value);\n};\nconst numericMutator = async (value) => {\n\tif (!isNumeric(value)) return value;\n\treturn Number(value);\n};\n/** Absolute value mutator */\nconst absMutator = async (value) => {\n\treturn Math.abs(Number(value));\n};\n/** Ceil mutator */\nconst ceilMutator = async (value) => {\n\treturn Math.ceil(Number(value));\n};\n/** Floor mutator */\nconst floorMutator = async (value) => {\n\treturn Math.floor(Number(value));\n};\n/**\n* Round mutator\n* Supports decimal precision via options.decimals\n*/\nconst roundMutator = async (value, context) => {\n\tconst decimals = context?.options?.decimals ?? 0;\n\tif (decimals === 0) return Math.round(Number(value));\n\treturn round(Number(value), decimals);\n};\n/**\n* To fixed mutator — rounds to a fixed number of decimal places, as a number.\n*\n* `Number.prototype.toFixed` returns a *string*, which the number validator's\n* own type rule then rejected: `v.number().toFixed(2)` could never produce a\n* valid result. Coercing back to a number keeps the method usable where it\n* lives. For the fixed-point string form, format at the edge instead of asking\n* a number schema to output a string.\n*/\nconst toFixedMutator = async (value, context) => {\n\tconst decimals = context?.options?.decimals ?? 2;\n\treturn Number(Number(value).toFixed(decimals));\n};\n\n//#endregion\nexport { absMutator, booleanMutator, ceilMutator, floorMutator, numberMutator, numericMutator, roundMutator, roundNumberMutator, toFixedMutator };\n//# sourceMappingURL=number-mutators.mjs.map","import { trim } from \"@mongez/reinforcements\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/mutators/object-mutators.ts\n/** Strip unknown keys from object */\nconst stripUnknownMutator = async (value, context) => {\n\tconst allowedKeys = [...context?.ctx.schema ? Object.keys(context.ctx.schema) : [], ...context?.options.allowedKeys ?? []];\n\tconst result = {};\n\tfor (const key in value) if (allowedKeys.includes(key)) result[key] = value[key];\n\treturn result;\n};\n/** Trim all string values in object */\nconst objectTrimMutator = async (value, context) => {\n\tif (!isPlainObject(value)) return value;\n\tconst result = {};\n\tconst recursive = context?.options.recursive ?? false;\n\tfor (const key in value) {\n\t\tconst item = value[key];\n\t\tif (recursive) if (Array.isArray(item)) result[key] = await Promise.all(item.map(async (i) => typeof i === \"string\" ? trim(i) : await objectTrimMutator(i, context)));\n\t\telse if (isPlainObject(item)) result[key] = await objectTrimMutator(item, context);\n\t\telse result[key] = typeof item === \"string\" ? trim(item) : item;\n\t\telse result[key] = typeof item === \"string\" ? trim(item) : item;\n\t}\n\treturn result;\n};\n/** Parse JSON string */\nconst jsonMutator = async (value) => {\n\ttry {\n\t\treturn JSON.parse(value);\n\t} catch {\n\t\treturn value;\n\t}\n};\n\n//#endregion\nexport { jsonMutator, objectTrimMutator, stripUnknownMutator };\n//# sourceMappingURL=object-mutators.mjs.map","//#region ../seal/src/mutators/scalar-mutators.ts\nconst stringMutator = async (value) => {\n\tif ([void 0, null].includes(value)) return value;\n\treturn String(value);\n};\n\n//#endregion\nexport { stringMutator };\n//# sourceMappingURL=scalar-mutators.mjs.map","import { capitalize, ltrim, readMoreChars, rtrim, toCamelCase, toKebabCase, toSnakeCase, toStudlyCase, trim } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/mutators/string-mutators.ts\n/** Convert string to lowercase */\nconst lowercaseMutator = async (value) => {\n\treturn value?.toString().toLowerCase();\n};\n/** Convert string to uppercase */\nconst uppercaseMutator = async (value) => {\n\treturn value?.toString().toUpperCase();\n};\n/** Capitalize only the first letter of the string */\nconst capitalizeMutator = async (value) => {\n\tconst str = value?.toString();\n\treturn str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n};\n/** Capitalize the first letter of each word (Title Case) */\nconst titleCaseMutator = async (value) => {\n\treturn capitalize(value?.toString());\n};\n/** Convert value to string */\nconst stringifyMutator = async (value) => {\n\tif (!value && value !== 0) return \"\";\n\tif (typeof value === \"string\") return value;\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n};\n/** Trim whitespace */\nconst trimMutator = async (value, context) => {\n\treturn trim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/**\n* Strip HTML tags with a naive `<...>` regex.\n*\n* This is a **tag stripper, not an XSS sanitizer**: it is not a parser, so\n* malformed/nested markup, attribute payloads, or content re-introduced\n* later in a pipeline can defeat it. Do not rely on this alone to make\n* untrusted rich text safe to render — use a real parser-based sanitizer\n* (e.g. DOMPurify / sanitize-html) for that.\n*/\nconst stripTagsMutator = async (value) => {\n\treturn value?.toString().replace(/<[^>]*>?/gm, \"\");\n};\n/**\n* @deprecated Renamed to {@link stripTagsMutator} — the old name implied\n* XSS safety this tag-stripping regex does not provide. Kept as an alias\n* for backward compatibility; switch to `stripTagsMutator`.\n*/\nconst safeHtmlMutator = stripTagsMutator;\n/** HTML escape */\nconst htmlEscapeMutator = async (value) => {\n\treturn value?.toString().replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n/** Remove special characters */\nconst removeSpecialCharactersMutator = async (value) => {\n\treturn value?.toString().replace(/[^a-zA-Z0-9]/g, \"\");\n};\n/** URL decode */\nconst urlDecodeMutator = async (value) => {\n\treturn decodeURIComponent(value);\n};\n/** URL encode */\nconst urlEncodeMutator = async (value) => {\n\treturn encodeURIComponent(value);\n};\n/** Convert to camelCase */\nconst camelCaseMutator = async (value) => {\n\treturn toCamelCase(value?.toString());\n};\n/** Convert to PascalCase */\nconst pascalCaseMutator = async (value) => {\n\treturn toStudlyCase(value?.toString());\n};\n/** Convert to snake_case */\nconst snakeCaseMutator = async (value) => {\n\treturn toSnakeCase(value?.toString());\n};\n/** Convert to kebab-case */\nconst kebabCaseMutator = async (value) => {\n\treturn toKebabCase(value?.toString());\n};\n/** Convert to URL-friendly slug */\nconst slugMutator = async (value) => {\n\treturn value?.toString().toLowerCase().trim().replace(/[^\\w\\s-]/g, \"\").replace(/[\\s_]+/g, \"-\").replace(/--+/g, \"-\").replace(/^-+|-+$/g, \"\");\n};\n/** Trim from the left/start */\nconst ltrimMutator = async (value, context) => {\n\treturn ltrim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/** Trim from the right/end */\nconst rtrimMutator = async (value, context) => {\n\treturn rtrim(value?.toString(), context?.options?.needle ?? \" \");\n};\n/** Base64 encode */\nconst base64EncodeMutator = async (value) => {\n\treturn Buffer.from(value?.toString()).toString(\"base64\");\n};\n/** Base64 decode */\nconst base64DecodeMutator = async (value) => {\n\treturn Buffer.from(value?.toString(), \"base64\").toString(\"utf-8\");\n};\n/** Replace substring or pattern */\nconst replaceMutator = async (value, context) => {\n\tconst { search, replace } = context?.options;\n\tif (!search) return value?.toString();\n\treturn value?.toString().replace(search, replace ?? \"\");\n};\n/** Replace all occurrences of substring or pattern */\nconst replaceAllMutator = async (value, context) => {\n\tconst { search, replace } = context?.options;\n\tif (!search) return value?.toString();\n\tconst searchValue = typeof search === \"string\" ? new RegExp(search, \"g\") : search;\n\treturn value?.toString().replace(searchValue, replace ?? \"\");\n};\n/** Append/suffix text to the end */\nconst appendMutator = async (value, context) => {\n\tconst suffix = context?.options?.suffix ?? \"\";\n\treturn value?.toString() + suffix;\n};\n/** Prepend/prefix text to the beginning */\nconst prependMutator = async (value, context) => {\n\treturn (context?.options?.prefix ?? \"\") + value?.toString();\n};\n/** Reverse the string */\nconst reverseMutator = async (value) => {\n\treturn value?.toString().split(\"\").reverse().join(\"\");\n};\n/** Truncate to a maximum length */\nconst truncateMutator = async (value, context) => {\n\tconst str = value?.toString();\n\treturn readMoreChars(str, context?.options?.maxLength ?? 100, context?.options?.suffix ?? \"...\");\n};\n/** Trim multiple whitespace into single space */\nconst trimMultipleWhitespaceMutator = async (value) => {\n\treturn value?.toString().replace(/\\s+/g, \" \");\n};\n/** Pad string from the start to reach target length */\nconst padStartMutator = async (value, context) => {\n\tconst length = context?.options?.length ?? 0;\n\tconst char = context?.options?.char ?? \" \";\n\treturn value?.toString().padStart(length, char);\n};\n/** Pad string from the end to reach target length */\nconst padEndMutator = async (value, context) => {\n\tconst length = context?.options?.length ?? 0;\n\tconst char = context?.options?.char ?? \" \";\n\treturn value?.toString().padEnd(length, char);\n};\n/** Repeat string N times */\nconst repeatMutator = async (value, context) => {\n\tconst count = context?.options?.count ?? 1;\n\treturn value?.toString()?.repeat(count);\n};\n/** Mask part of string */\nconst maskMutator = async (value, context) => {\n\tconst str = value?.toString();\n\tconst maskChar = context?.options?.char ?? \"*\";\n\tconst start = context?.options?.start ?? 0;\n\tconst end = context?.options?.end ?? str?.length;\n\tconst visibleStart = str?.substring(0, start);\n\tconst visibleEnd = str?.substring(end);\n\tconst maskedLength = end - start;\n\treturn visibleStart + maskChar.repeat(maskedLength) + visibleEnd;\n};\n/** Unescape HTML entities */\nconst unescapeHtmlMutator = async (value) => {\n\treturn value?.toString().replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/"/g, \"\\\"\").replace(/'/g, \"'\");\n};\n/** Keep only alphabetic characters */\nconst alphaOnlyMutator = async (value) => {\n\treturn value.toString().replace(/[^a-zA-Z]/g, \"\");\n};\n/** Keep only alphanumeric characters */\nconst alphanumericOnlyMutator = async (value) => {\n\treturn value.toString().replace(/[^a-zA-Z0-9]/g, \"\");\n};\n/** Remove all numeric characters */\nconst removeNumbersMutator = async (value) => {\n\treturn value.toString().replace(/[0-9]/g, \"\");\n};\n\n//#endregion\nexport { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, safeHtmlMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator };\n//# sourceMappingURL=string-mutators.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/core/equal.ts\n/**\n* Equal rule - value must be equal to a specific value\n*/\nconst equalRule = {\n\tname: \"equal\",\n\tdefaultErrorMessage: \"The :input must be equal to :value\",\n\tasync validate(value, context) {\n\t\tif (value !== this.context.options.value) {\n\t\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { equalRule };\n//# sourceMappingURL=equal.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/core/forbidden.ts\n/**\n* Forbidden rule - value must not be present\n*/\nconst forbiddenRule = {\n\tname: \"forbidden\",\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tif (!isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { forbiddenRule };\n//# sourceMappingURL=forbidden.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/core/union.ts\n/**\n* Union rule - value must match at least one of the provided validators\n*/\nconst unionRule = {\n\tname: \"union\",\n\tdefaultErrorMessage: \"Value must match one of the allowed types\",\n\tasync validate(value, context) {\n\t\tconst validators = this.context.options.validators;\n\t\tconst firstErrorOnly = context.configurations?.firstErrorOnly ?? true;\n\t\tconst allErrors = [];\n\t\tfor (const validator of validators) {\n\t\t\tif (!validator.matchesType(value)) continue;\n\t\t\tconst result = await validator.validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tconst errorMsg = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\tallErrors.push(errorMsg);\n\t\t\tif (firstErrorOnly) break;\n\t\t}\n\t\tif (allErrors.length > 0) this.context.errorMessage = firstErrorOnly ? allErrors[0] : allErrors.join(\"; \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { unionRule };\n//# sourceMappingURL=union.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/core/when.ts\n/**\n* When rule - conditional validation based on another field value\n*/\nconst whenRule = {\n\tname: \"when\",\n\tdescription: \"Apply conditional validation based on another field value\",\n\tasync validate(value, context) {\n\t\tconst fieldToCheck = this.context.options.field;\n\t\tconst conditions = this.context.options.is;\n\t\tconst otherwise = this.context.options.otherwise;\n\t\tconst fieldValue = (this.context.options.scope || \"global\") === \"global\" ? get(context.allValues, fieldToCheck) : get(context.parent, fieldToCheck);\n\t\tconst fieldValueKey = String(fieldValue);\n\t\tif (conditions[fieldValueKey]) {\n\t\t\tconst result = await conditions[fieldValueKey].validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tthis.context.errorMessage = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\tif (otherwise) {\n\t\t\tconst result = await otherwise.validate(value, context);\n\t\t\tif (result.isValid) return VALID_RULE;\n\t\t\tthis.context.errorMessage = result.errors?.[0]?.error || \"Validation failed\";\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { whenRule };\n//# sourceMappingURL=when.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/alpha.ts\n/**\n* Alpha rule - allows only alphabetic characters\n*/\nconst alphaRule = {\n\tname: \"alpha\",\n\tdefaultErrorMessage: \"The :input must contain only alphabetic characters\",\n\tasync validate(value, context) {\n\t\tif (/^[a-zA-Z]+$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* AlphaNumeric rule - allows only alphanumeric characters\n*/\nconst alphaNumericRule = {\n\tname: \"alphaNumeric\",\n\tdefaultErrorMessage: \"The :input must contain only alphanumeric characters\",\n\tasync validate(value, context) {\n\t\tif (/^[a-zA-Z0-9]+$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Numeric string rule - allows only numeric characters\n*/\nconst isNumericRule = {\n\tname: \"numeric\",\n\tdefaultErrorMessage: \"The :input must contain only numeric characters\",\n\tasync validate(value, context) {\n\t\tif (/^[0-9]+$/.test(String(value))) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { alphaNumericRule, alphaRule, isNumericRule };\n//# sourceMappingURL=alpha.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/credit-card.ts\n/**\n* Credit card rule - validates credit card number\n*/\nconst isCreditCardRule = {\n\tname: \"creditCard\",\n\tdefaultErrorMessage: \"The :input must be a valid credit card number\",\n\tasync validate(value, context) {\n\t\tconst cardNumber = String(value).replace(/\\s/g, \"\");\n\t\tif (!/^\\d+$/.test(cardNumber)) return invalidRule(this, context);\n\t\tlet sum = 0;\n\t\tlet isEven = false;\n\t\tfor (let i = cardNumber.length - 1; i >= 0; i--) {\n\t\t\tlet digit = parseInt(cardNumber[i], 10);\n\t\t\tif (isEven) {\n\t\t\t\tdigit *= 2;\n\t\t\t\tif (digit > 9) digit -= 9;\n\t\t\t}\n\t\t\tsum += digit;\n\t\t\tisEven = !isEven;\n\t\t}\n\t\tif (sum % 10 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { isCreditCardRule };\n//# sourceMappingURL=credit-card.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmail } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/rules/string/email.ts\n/**\n* Email rule - validates email format\n*/\nconst emailRule = {\n\tname: \"email\",\n\tdefaultErrorMessage: \"The :input must be a valid email address\",\n\tasync validate(value, context) {\n\t\tif (isEmail(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { emailRule };\n//# sourceMappingURL=email.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/id-formats.ts\n/**\n* Modern ID format validators — UUID, CUID, ULID, nanoid.\n*\n* Each rule asserts the value is a string in the canonical format for its\n* identifier scheme. Rules are intentionally strict (variant nibbles checked\n* for UUID, character classes enforced for ULID's Crockford base32, etc.)\n* so \"looks-like-but-not-valid\" inputs are rejected.\n*/\nconst UUID_ANY = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\nconst UUID_BY_VERSION = {\n\t1: /^[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t3: /^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t4: /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t5: /^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t6: /^[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n\t7: /^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i\n};\n/**\n* UUID rule — value must be a valid UUID. Optionally restrict to a specific version.\n*\n* @example\n* v.string().uuid() // any RFC 4122 UUID\n* v.string().uuid(4) // only v4 (random)\n* v.string().uuid(7) // only v7 (timestamp-ordered)\n*/\nconst uuidRule = {\n\tname: \"uuid\",\n\tdefaultErrorMessage: \"The :input must be a valid UUID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst version = this.context.options.version;\n\t\tif ((version ? UUID_BY_VERSION[version] : UUID_ANY).test(value)) return VALID_RULE;\n\t\tif (version !== void 0) this.context.translationParams.version = version;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* CUID rule — value must be a valid CUID.\n*\n* Defaults to CUID2 (24 chars, lowercase, starts with letter — see\n* https://github.com/paralleldrive/cuid2). Pass `{ version: 1 }` for legacy\n* CUID1 format (starts with \"c\", ≥25 chars).\n*\n* @example\n* v.string().cuid() // CUID2\n* v.string().cuid({ version: 1 }) // legacy CUID1\n*/\nconst cuidRule = {\n\tname: \"cuid\",\n\tdefaultErrorMessage: \"The :input must be a valid CUID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst version = this.context.options.version ?? 2;\n\t\tif ((version === 1 ? /^c[a-z0-9]{24,}$/ : /^[a-z][a-z0-9]{23}$/).test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.version = version;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* ULID rule — value must be a valid ULID (26 chars, Crockford base32).\n*\n* Crockford base32 excludes the letters I, L, O, U to avoid ambiguity.\n*\n* @example\n* v.string().ulid()\n*/\nconst ulidRule = {\n\tname: \"ulid\",\n\tdefaultErrorMessage: \"The :input must be a valid ULID\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tif (/^[0-9A-HJKMNP-TV-Z]{26}$/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* nanoid rule — value must be a valid nanoid string.\n*\n* Default length is 21 (standard nanoid). URL-safe alphabet:\n* A–Z, a–z, 0–9, `_`, `-`.\n*\n* @example\n* v.string().nanoid() // 21 chars (default)\n* v.string().nanoid(10) // 10 chars\n*/\nconst nanoidRule = {\n\tname: \"nanoid\",\n\tdefaultErrorMessage: \"The :input must be a valid nanoid\",\n\tasync validate(value, context) {\n\t\tif (typeof value !== \"string\") return invalidRule(this, context);\n\t\tconst length = this.context.options.length ?? 21;\n\t\tif (new RegExp(`^[A-Za-z0-9_-]{${length}}$`).test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.length = length;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { cuidRule, nanoidRule, ulidRule, uuidRule };\n//# sourceMappingURL=id-formats.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/ip.ts\n/**\n* Pure, dependency-free re-implementation of Node's `net.isIP`/`isIPv4`/`isIPv6`.\n* Mirrors the exact regex Node uses internally (lib/internal/net.js) so that\n* behavior stays identical while remaining runnable in the browser (no `net` import).\n*/\nconst v4Seg = \"(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\";\nconst v4Str = `(${v4Seg}[.]){3}${v4Seg}`;\nconst IPv4Reg = new RegExp(`^${v4Str}$`);\nconst v6Seg = \"(?:[0-9a-fA-F]{1,4})\";\nconst IPv6Reg = new RegExp(`^((?:${v6Seg}:){7}(?:${v6Seg}|:)|(?:${v6Seg}:){6}(?:${v4Str}|:${v6Seg}|:)|(?:${v6Seg}:){5}(?::${v4Str}|(:${v6Seg}){1,2}|:)|(?:${v6Seg}:){4}(?:(:${v6Seg}){0,1}:${v4Str}|(:${v6Seg}){1,3}|:)|(?:${v6Seg}:){3}(?:(:${v6Seg}){0,2}:${v4Str}|(:${v6Seg}){1,4}|:)|(?:${v6Seg}:){2}(?:(:${v6Seg}){0,3}:${v4Str}|(:${v6Seg}){1,5}|:)|(?:${v6Seg}:){1}(?:(:${v6Seg}){0,4}:${v4Str}|(:${v6Seg}){1,6}|:)|(?::((?::${v6Seg}){0,5}:${v4Str}|(?::${v6Seg}){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?\\$`);\nfunction isIPv4(value) {\n\treturn IPv4Reg.test(value);\n}\nfunction isIPv6(value) {\n\treturn IPv6Reg.test(value);\n}\n/**\n* Returns 4 or 6 when `value` is a valid IPv4/IPv6 address, otherwise 0.\n* Signature mirrors Node's `net.isIP` for drop-in behavior parity.\n*/\nfunction isIP(value) {\n\tif (isIPv4(value)) return 4;\n\tif (isIPv6(value)) return 6;\n\treturn 0;\n}\n/**\n* IP rule - validates IP address (v4 or v6)\n*/\nconst ipRule = {\n\tname: \"ip\",\n\tdefaultErrorMessage: \"The :input must be a valid IP address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* IPv4 rule - validates IPv4 address\n*/\nconst ip4Rule = {\n\tname: \"ip4\",\n\tdefaultErrorMessage: \"The :input must be a valid IPv4 address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value) === 4) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* IPv6 rule - validates IPv6 address\n*/\nconst ip6Rule = {\n\tname: \"ip6\",\n\tdefaultErrorMessage: \"The :input must be a valid IPv6 address\",\n\tasync validate(value, context) {\n\t\tif (isIP(value) === 6) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 };\n//# sourceMappingURL=ip.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/pattern.ts\n/**\n* Pattern rule - validates against regex pattern\n*/\nconst patternRule = {\n\tname: \"pattern\",\n\tdefaultErrorMessage: \"The :input does not match the required pattern\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.pattern.test(value)) return VALID_RULE;\n\t\tthis.context.translationParams.pattern = this.context.options.pattern.toString();\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { patternRule };\n//# sourceMappingURL=pattern.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/string-comparison.ts\n/**\n* Starts with rule\n*/\nconst startsWithRule = {\n\tname: \"startsWith\",\n\tdefaultErrorMessage: \"The :input must start with :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).startsWith(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Ends with rule\n*/\nconst endsWithRule = {\n\tname: \"endsWith\",\n\tdefaultErrorMessage: \"The :input must end with :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).endsWith(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Contains rule\n*/\nconst containsRule = {\n\tname: \"contains\",\n\tdefaultErrorMessage: \"The :input must contain :value\",\n\tasync validate(value, context) {\n\t\tif (String(value).includes(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Not contains rule\n*/\nconst notContainsRule = {\n\tname: \"notContains\",\n\tdefaultErrorMessage: \"The :input must not contain :value\",\n\tasync validate(value, context) {\n\t\tif (!String(value).includes(this.context.options.value)) return VALID_RULE;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { containsRule, endsWithRule, notContainsRule, startsWithRule };\n//# sourceMappingURL=string-comparison.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/strong-password-rule.ts\n/**\n* Strong Password rule - validates password strength\n* Requirements:\n* - At least 8 characters\n* - At least 1 uppercase letter\n* - At least 1 lowercase letter\n* - At least 1 number\n* - At least 1 special character\n*/\nconst strongPasswordRule = {\n\tname: \"strongPassword\",\n\tdefaultErrorMessage: \"The :input must be at least 8 characters and contain at least one uppercase letter, one lowercase letter, one number, and one special character\",\n\tasync validate(value, context) {\n\t\tconst password = String(value);\n\t\tconst minLength = this.context.options.minLength ?? 8;\n\t\tif (password.length < minLength) return invalidRule(this, context);\n\t\tif (!/[A-Z]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[a-z]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[0-9]/.test(password)) return invalidRule(this, context);\n\t\tif (!/[!@#$%^&*()_+\\-=[\\]{};':\"\\\\|,.<>/?]/.test(password)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { strongPasswordRule };\n//# sourceMappingURL=strong-password-rule.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/url.ts\n/**\n* URL rule - validates URL format\n*/\nconst urlRule = {\n\tname: \"url\",\n\tdefaultErrorMessage: \"The :input must be a valid URL\",\n\tasync validate(value, context) {\n\t\ttry {\n\t\t\tnew URL(value);\n\t\t\treturn VALID_RULE;\n\t\t} catch {\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t}\n};\n\n//#endregion\nexport { urlRule };\n//# sourceMappingURL=url.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/string/without-whitespace.ts\n/**\n* Without whitespace rule - value must not contain whitespace\n*/\nconst withoutWhitespaceRule = {\n\tname: \"withoutWhitespace\",\n\tdefaultErrorMessage: \"The :input must not contain whitespace\",\n\tasync validate(value, context) {\n\t\tif (!/\\s/.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { withoutWhitespaceRule };\n//# sourceMappingURL=without-whitespace.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/number/number-rules.ts\n/**\n* Min rule - value must be equal or greater than minimum\n* Supports field names with sibling scope\n*/\nconst minRule = {\n\tname: \"min\",\n\tdefaultErrorMessage: \"The :input must be at least :min\",\n\tasync validate(value, context) {\n\t\tconst { min, scope = \"global\" } = this.context.options;\n\t\tlet compareMin;\n\t\tif (typeof min === \"number\") {\n\t\t\tcompareMin = min;\n\t\t\tthis.context.translationParams.min = min;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, min);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.min = min;\n\t\t\tcompareMin = Number(fieldValue);\n\t\t\tif (isNaN(compareMin)) return VALID_RULE;\n\t\t}\n\t\tif (value >= compareMin) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max rule - value must be equal or less than maximum\n* Supports field names with sibling scope\n*/\nconst maxRule = {\n\tname: \"max\",\n\tdefaultErrorMessage: \"The :input must equal to or less than :max\",\n\tasync validate(value, context) {\n\t\tconst { max, scope = \"global\" } = this.context.options;\n\t\tlet compareMax;\n\t\tif (typeof max === \"number\") {\n\t\t\tcompareMax = max;\n\t\t\tthis.context.translationParams.max = max;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, max);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.max = max;\n\t\t\tcompareMax = Number(fieldValue);\n\t\t\tif (isNaN(compareMax)) return VALID_RULE;\n\t\t}\n\t\tif (value <= compareMax) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Greater than rule - value must be strictly greater than minimum\n* Supports field names with sibling scope\n*/\nconst greaterThanRule = {\n\tname: \"greaterThan\",\n\tdefaultErrorMessage: \"The :input must be greater than :value\",\n\tasync validate(value, context) {\n\t\tconst { value: compareValue, scope = \"global\" } = this.context.options;\n\t\tlet compareNumber;\n\t\tif (typeof compareValue === \"number\") {\n\t\t\tcompareNumber = compareValue;\n\t\t\tthis.context.translationParams.value = compareValue;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, compareValue);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.value = compareValue;\n\t\t\tcompareNumber = Number(fieldValue);\n\t\t\tif (isNaN(compareNumber)) return VALID_RULE;\n\t\t}\n\t\tif (value > compareNumber) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Less than rule - value must be strictly less than maximum\n* Supports field names with sibling scope\n*/\nconst lessThanRule = {\n\tname: \"lessThan\",\n\tdefaultErrorMessage: \"The :input must be less than :value\",\n\tasync validate(value, context) {\n\t\tconst { value: compareValue, scope = \"global\" } = this.context.options;\n\t\tlet compareNumber;\n\t\tif (typeof compareValue === \"number\") {\n\t\t\tcompareNumber = compareValue;\n\t\t\tthis.context.translationParams.value = compareValue;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, compareValue);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.value = compareValue;\n\t\t\tcompareNumber = Number(fieldValue);\n\t\t\tif (isNaN(compareNumber)) return VALID_RULE;\n\t\t}\n\t\tif (value < compareNumber) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Positive rule - value must be greater than 0\n*/\nconst positiveRule = {\n\tname: \"positive\",\n\tdefaultErrorMessage: \"The :input must be a positive number\",\n\tasync validate(value, context) {\n\t\tif (value > 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Negative rule - value must be less than 0\n*/\nconst negativeRule = {\n\tname: \"negative\",\n\tdefaultErrorMessage: \"The :input must be a negative number\",\n\tasync validate(value, context) {\n\t\tif (value < 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Odd rule - value must be an odd number\n*/\nconst oddRule = {\n\tname: \"odd\",\n\tdefaultErrorMessage: \"The :input must be an odd number\",\n\tasync validate(value, context) {\n\t\tif (value % 2 !== 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Even rule - value must be an even number\n*/\nconst evenRule = {\n\tname: \"even\",\n\tdefaultErrorMessage: \"The :input must be an even number\",\n\tasync validate(value, context) {\n\t\tif (value % 2 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Modulo rule - value must be divisible by given number\n*/\nconst moduloRule = {\n\tname: \"modulo\",\n\tdefaultErrorMessage: \"The :input must be divisible by :value\",\n\tasync validate(value, context) {\n\t\tif (value % this.context.options.value === 0) return VALID_RULE;\n\t\tthis.context.translationParams.value = this.context.options.value;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between rule - value must be between the given two numbers (Inclusive)\n* Supports field names with sibling scope\n*/\nconst betweenNumbersRule = {\n\tname: \"betweenNumbers\",\n\tdefaultErrorMessage: \"The :input must be between :min and :max\",\n\tasync validate(value, context) {\n\t\tconst { min, max, scope = \"global\" } = this.context.options;\n\t\tlet compareMin;\n\t\tif (typeof min === \"number\") {\n\t\t\tcompareMin = min;\n\t\t\tthis.context.translationParams.min = min;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, min);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.min = min;\n\t\t\tcompareMin = Number(fieldValue);\n\t\t\tif (isNaN(compareMin)) return VALID_RULE;\n\t\t}\n\t\tlet compareMax;\n\t\tif (typeof max === \"number\") {\n\t\t\tcompareMax = max;\n\t\t\tthis.context.translationParams.max = max;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, max);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.max = max;\n\t\t\tcompareMax = Number(fieldValue);\n\t\t\tif (isNaN(compareMax)) return VALID_RULE;\n\t\t}\n\t\tif (value >= compareMin && value <= compareMax) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule };\n//# sourceMappingURL=number-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/length/length-rules.ts\n/**\n* Min length rule - validates minimum length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst minLengthRule = {\n\tname: \"minLength\",\n\tdefaultErrorMessage: \"The :input must be at least :minLength characters long\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) >= this.context.options.minLength) return VALID_RULE;\n\t\tthis.context.translationParams.minLength = this.context.options.minLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max length rule - validates maximum length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst maxLengthRule = {\n\tname: \"maxLength\",\n\tdefaultErrorMessage: \"The :input must not exceed :maxLength characters\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) <= this.context.options.maxLength) return VALID_RULE;\n\t\tthis.context.translationParams.maxLength = this.context.options.maxLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between length rule - validates length is between min and max (inclusive)\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst betweenLengthRule = {\n\tname: \"betweenLength\",\n\tdefaultErrorMessage: \"The :input must be between :minLength and :maxLength characters long\",\n\tasync validate(value, context) {\n\t\tconst length = typeof value?.length === \"number\" ? value.length : String(value || \"\").length;\n\t\tif (length >= this.context.options.minLength && length <= this.context.options.maxLength) return VALID_RULE;\n\t\tthis.context.translationParams.minLength = this.context.options.minLength;\n\t\tthis.context.translationParams.maxLength = this.context.options.maxLength;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Length rule - validates exact length\n* Works for any value with a length property (strings, arrays, etc.)\n*/\nconst lengthRule = {\n\tname: \"length\",\n\tdefaultErrorMessage: \"The :input must be exactly :length characters long\",\n\tasync validate(value, context) {\n\t\tif ((typeof value?.length === \"number\" ? value.length : String(value || \"\").length) === this.context.options.length) return VALID_RULE;\n\t\tthis.context.translationParams.length = this.context.options.length;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min words rule - validates minimum word count\n*/\nconst minWordsRule = {\n\tname: \"minWords\",\n\tdefaultErrorMessage: \"The :input must be at least :minWords words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length >= this.context.options.minWords) return VALID_RULE;\n\t\tthis.context.translationParams.minWords = this.context.options.minWords;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max words rule - validates maximum word count\n*/\nconst maxWordsRule = {\n\tname: \"maxWords\",\n\tdefaultErrorMessage: \"The :input must be at most :maxWords words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length <= this.context.options.maxWords) return VALID_RULE;\n\t\tthis.context.translationParams.maxWords = this.context.options.maxWords;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Words rule - validates exact word count\n*/\nconst wordsRule = {\n\tname: \"words\",\n\tdefaultErrorMessage: \"The :input must be exactly :words words\",\n\tasync validate(value, context) {\n\t\tif (String(value || \"\").split(\" \").length === this.context.options.words) return VALID_RULE;\n\t\tthis.context.translationParams.words = this.context.options.words;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule };\n//# sourceMappingURL=length-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/array/array-rules.ts\n/**\n* Unique array rule - array must contain unique values\n*/\nconst uniqueArrayRule = {\n\tname: \"uniqueArray\",\n\tdescription: \"The array must contain unique values\",\n\tdefaultErrorMessage: \"The :input must contain unique values\",\n\tasync validate(value, context) {\n\t\tif (new Set(value).size === value.length) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Sorted array rule - array must be sorted\n*/\nconst sortedArrayRule = {\n\tname: \"sortedArray\",\n\tdescription: \"The array must be sorted\",\n\tdefaultErrorMessage: \"The :input must be sorted\",\n\tasync validate(value, context) {\n\t\tif (!Array.isArray(value) || value.length <= 1) return VALID_RULE;\n\t\tconst direction = this.context.options.direction ?? \"asc\";\n\t\tthis.context.translatableParams.direction = direction;\n\t\tfor (let i = 0; i < value.length - 1; i++) {\n\t\t\tconst current = value[i];\n\t\t\tconst next = value[i + 1];\n\t\t\tif (direction === \"asc\") {\n\t\t\t\tif (current > next) return invalidRule(this, context);\n\t\t\t} else if (current < next) return invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { sortedArrayRule, uniqueArrayRule };\n//# sourceMappingURL=array-rules.mjs.map","//#region ../seal/src/types/date-types.ts\n/**\n* Week day numbers mapping\n*/\nconst WEEK_DAYS = {\n\tsunday: 0,\n\tmonday: 1,\n\ttuesday: 2,\n\twednesday: 3,\n\tthursday: 4,\n\tfriday: 5,\n\tsaturday: 6\n};\n\n//#endregion\nexport { WEEK_DAYS };\n//# sourceMappingURL=date-types.mjs.map","import { isDateValue } from \"../../helpers/date-helpers.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { WEEK_DAYS } from \"../../types/date-types.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date.ts\n/**\n* Date rule - validates date format\n*/\nconst dateRule = {\n\tname: \"date\",\n\tdefaultErrorMessage: \"The :input must be a valid date\",\n\tasync validate(value, context) {\n\t\tif (value instanceof Date && !isNaN(value.getTime())) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min date rule - date must be >= given date or field\n* Smart detection: date value or field name\n*/\nconst minDateRule = {\n\tname: \"minDate\",\n\tdescription: \"The field must be at least the given date or field\",\n\tdefaultErrorMessage: \"The :input must be at least :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) >= compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max date rule - date must be <= given date or field\n* Smart detection: date value or field name\n*/\nconst maxDateRule = {\n\tname: \"maxDate\",\n\tdefaultErrorMessage: \"The :input must be at most :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) <= compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From today rule - date must be today or in the future\n*/\nconst fromTodayRule = {\n\tname: \"fromToday\",\n\tdefaultErrorMessage: \"The :input must be today or in the future\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate >= today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before today rule - date must be before today\n*/\nconst beforeTodayRule = {\n\tname: \"beforeToday\",\n\tdefaultErrorMessage: \"The :input must be before today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate < today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From hour rule - time must be from specific hour onwards\n*/\nconst fromHourRule = {\n\tname: \"fromHour\",\n\tdefaultErrorMessage: \"The :input must be from :hour:00 onwards\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getHours() >= this.context.options.hour) return VALID_RULE;\n\t\tthis.context.translationParams.hour = this.context.options.hour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before hour rule - time must be before specific hour\n*/\nconst beforeHourRule = {\n\tname: \"beforeHour\",\n\tdefaultErrorMessage: \"The :input must be before :hour:00\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getHours() < this.context.options.hour) return VALID_RULE;\n\t\tthis.context.translationParams.hour = this.context.options.hour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between hours rule - time must be between start and end hours\n*/\nconst betweenHoursRule = {\n\tname: \"betweenHours\",\n\tdefaultErrorMessage: \"The :input must be between :startHour:00 and :endHour:00\",\n\tasync validate(value, context) {\n\t\tconst hour = new Date(value).getHours();\n\t\tconst { startHour, endHour } = this.context.options;\n\t\tif (hour >= startHour && hour <= endHour) return VALID_RULE;\n\t\tthis.context.translationParams.startHour = startHour;\n\t\tthis.context.translationParams.endHour = endHour;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* From minute rule - time must be from specific minute onwards\n*/\nconst fromMinuteRule = {\n\tname: \"fromMinute\",\n\tdefaultErrorMessage: \"The :input must be from minute :minute onwards\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMinutes() >= this.context.options.minute) return VALID_RULE;\n\t\tthis.context.translationParams.minute = this.context.options.minute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Before minute rule - time must be before specific minute\n*/\nconst beforeMinuteRule = {\n\tname: \"beforeMinute\",\n\tdefaultErrorMessage: \"The :input must be before minute :minute\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMinutes() < this.context.options.minute) return VALID_RULE;\n\t\tthis.context.translationParams.minute = this.context.options.minute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between minutes rule - time must be between start and end minutes\n*/\nconst betweenMinutesRule = {\n\tname: \"betweenMinutes\",\n\tdefaultErrorMessage: \"The :input must be between minute :startMinute and :endMinute\",\n\tasync validate(value, context) {\n\t\tconst minute = new Date(value).getMinutes();\n\t\tconst { startMinute, endMinute } = this.context.options;\n\t\tif (minute >= startMinute && minute <= endMinute) return VALID_RULE;\n\t\tthis.context.translationParams.startMinute = startMinute;\n\t\tthis.context.translationParams.endMinute = endMinute;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Age rule - calculate age from date\n*/\nconst ageRule = {\n\tname: \"age\",\n\tdefaultErrorMessage: \"The :input must be exactly :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age === this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min age rule - minimum age requirement\n*/\nconst minAgeRule = {\n\tname: \"minAge\",\n\tdefaultErrorMessage: \"The :input must be at least :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age >= this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max age rule - maximum age requirement\n*/\nconst maxAgeRule = {\n\tname: \"maxAge\",\n\tdefaultErrorMessage: \"The :input must be at most :years years old\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tif (age <= this.context.options.years) return VALID_RULE;\n\t\tthis.context.translationParams.years = this.context.options.years;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Week day rule - date must be specific weekday\n*/\nconst weekDayRule = {\n\tname: \"weekDay\",\n\tdefaultErrorMessage: \"The :input must be a :day\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getDay() === WEEK_DAYS[this.context.options.day]) return VALID_RULE;\n\t\tthis.context.translatableParams.day = this.context.options.day;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule };\n//# sourceMappingURL=date.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-comparison-rules.ts\n/**\n* Between dates rule - date must be between start and end dates\n*/\nconst betweenDatesRule = {\n\tname: \"betweenDates\",\n\tdefaultErrorMessage: \"The :input must be between :startDate and :endDate\",\n\tasync validate(value, context) {\n\t\tconst { startDate, endDate } = this.context.options;\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate >= startDate && inputDate <= endDate) {\n\t\t\tthis.context.translationParams.startDate = startDate.toISOString();\n\t\t\tthis.context.translationParams.endDate = endDate.toISOString();\n\t\t\treturn VALID_RULE;\n\t\t}\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Today rule - date must be exactly today\n*/\nconst todayRule = {\n\tname: \"today\",\n\tdefaultErrorMessage: \"The :input must be today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate.getTime() === today.getTime()) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Past rule - date must be in the past\n*/\nconst pastRule = {\n\tname: \"past\",\n\tdefaultErrorMessage: \"The :input must be in the past\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tif (new Date(value) < now) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Future rule - date must be in the future\n*/\nconst futureRule = {\n\tname: \"future\",\n\tdefaultErrorMessage: \"The :input must be in the future\",\n\tasync validate(value, context) {\n\t\tif (value > /* @__PURE__ */ new Date()) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* After today rule - date must be after today (not including today)\n*/\nconst afterTodayRule = {\n\tname: \"afterToday\",\n\tdefaultErrorMessage: \"The :input must be after today\",\n\tasync validate(value, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\ttoday.setHours(0, 0, 0, 0);\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate > today) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule };\n//# sourceMappingURL=date-comparison-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { WEEK_DAYS } from \"../../types/date-types.mjs\";\n\n//#region ../seal/src/rules/date/date-day-rules.ts\n/**\n* Weekend rule - date must be Saturday or Sunday\n*/\nconst weekendRule = {\n\tname: \"weekend\",\n\tdefaultErrorMessage: \"The :input must be a weekend (Saturday or Sunday)\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek === 0 || dayOfWeek === 6) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Weekday rule - date must be Monday through Friday\n*/\nconst weekdayRule = {\n\tname: \"weekday\",\n\tdefaultErrorMessage: \"The :input must be a weekday (Monday-Friday)\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek >= 1 && dayOfWeek <= 5) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Weekdays rule - date must be one of specified weekdays\n*/\nconst weekdaysRule = {\n\tname: \"weekdays\",\n\tdefaultErrorMessage: \"The :input must be one of: :days\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tconst { days } = this.context.options;\n\t\tif (days.map((day) => WEEK_DAYS[day]).includes(dayOfWeek)) return VALID_RULE;\n\t\tdays.forEach((day) => {\n\t\t\tthis.context.translatableParams[day] = day;\n\t\t});\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Business day rule - date must be Monday-Friday (no weekends)\n*/\nconst businessDayRule = {\n\tname: \"businessDay\",\n\tdefaultErrorMessage: \"The :input must be a business day\",\n\tasync validate(value, context) {\n\t\tconst dayOfWeek = new Date(value).getDay();\n\t\tif (dayOfWeek >= 1 && dayOfWeek <= 5) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { businessDayRule, weekdayRule, weekdaysRule, weekendRule };\n//# sourceMappingURL=date-day-rules.mjs.map","import { isDateValue } from \"../../helpers/date-helpers.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date-field-comparison-rules.ts\n/**\n* Before field rule - date must be < given date or field\n* Smart detection: date value or field name\n* Supports both global and sibling scope\n*/\nconst beforeFieldRule = {\n\tname: \"beforeField\",\n\tdescription: \"The date must be before the given date or field\",\n\tdefaultErrorMessage: \"The :input must be before :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) compareDate = new Date(dateOrField);\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t}\n\t\tif (new Date(value) < compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* After field rule - date must be > given date or field\n* Smart detection: date value or field name\n* Supports both global and sibling scope\n*/\nconst afterFieldRule = {\n\tname: \"afterField\",\n\tdescription: \"The date must be after the given date or field\",\n\tdefaultErrorMessage: \"The :input must be after :dateOrField\",\n\tasync validate(value, context) {\n\t\tconst { dateOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDate;\n\t\tif (isDateValue(dateOrField)) {\n\t\t\tcompareDate = new Date(dateOrField);\n\t\t\tthis.context.translationParams.dateOrField = compareDate.toISOString();\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dateOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tcompareDate = new Date(fieldValue);\n\t\t\tthis.context.translatableParams.dateOrField = fieldValue;\n\t\t}\n\t\tif (new Date(value) > compareDate) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Same as field rule - date must be the same as another field's date\n* Supports both global and sibling scope\n*/\nconst sameAsFieldDateRule = {\n\tname: \"sameAsFieldDate\",\n\tdescription: \"The date must be the same as another field's date\",\n\tdefaultErrorMessage: \"The :input must be the same as :field\",\n\tasync validate(value, context) {\n\t\tconst { field, scope = \"global\" } = this.context.options;\n\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, field);\n\t\tif (fieldValue === void 0 || value === void 0) {\n\t\t\tthis.context.translatableParams.field = fieldValue;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\tconst inputDate = new Date(value);\n\t\tinputDate.setHours(0, 0, 0, 0);\n\t\tconst compareDate = new Date(fieldValue);\n\t\tcompareDate.setHours(0, 0, 0, 0);\n\t\tif (inputDate.getTime() === compareDate.getTime()) return VALID_RULE;\n\t\tthis.context.translatableParams.field = fieldValue;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { afterFieldRule, beforeFieldRule, sameAsFieldDateRule };\n//# sourceMappingURL=date-field-comparison-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/date/date-period-rules.ts\nconst MONTHS = {\n\t1: \"january\",\n\t2: \"february\",\n\t3: \"march\",\n\t4: \"april\",\n\t5: \"may\",\n\t6: \"june\",\n\t7: \"july\",\n\t8: \"august\",\n\t9: \"september\",\n\t10: \"october\",\n\t11: \"november\",\n\t12: \"december\"\n};\n/**\n* Month rule - date must be in specific month (1-12)\n*/\nconst monthRule = {\n\tname: \"month\",\n\tdefaultErrorMessage: \"The :input must be in month :month\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getMonth() + 1 === this.context.options.month) return VALID_RULE;\n\t\tthis.context.translatableParams.month = MONTHS[this.context.options.month];\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Year rule - date must be in specific year\n*/\nconst yearRule = {\n\tname: \"year\",\n\tdefaultErrorMessage: \"The :input must be in year :year\",\n\tasync validate(value, context) {\n\t\tif (new Date(value).getFullYear() === this.context.options.year) return VALID_RULE;\n\t\tthis.context.translationParams.year = this.context.options.year;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between years rule - date must be between start and end years\n* Supports field names with sibling scope\n*/\nconst betweenYearsRule = {\n\tname: \"betweenYears\",\n\tdefaultErrorMessage: \"The :input must be between :startYear and :endYear\",\n\tasync validate(value, context) {\n\t\tconst { startYear, endYear, scope = \"global\" } = this.context.options;\n\t\tconst inputYear = new Date(value).getFullYear();\n\t\tlet compareStartYear;\n\t\tif (typeof startYear === \"number\") compareStartYear = startYear;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startYear);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareStartYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareStartYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndYear;\n\t\tif (typeof endYear === \"number\") compareEndYear = endYear;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endYear);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareEndYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareEndYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputYear >= compareStartYear && inputYear <= compareEndYear) return VALID_RULE;\n\t\tthis.context.translationParams.startYear = compareStartYear;\n\t\tthis.context.translationParams.endYear = compareEndYear;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between months rule - date must be between start and end months (1-12)\n* Supports field names with sibling scope\n*/\nconst betweenMonthsRule = {\n\tname: \"betweenMonths\",\n\tdefaultErrorMessage: \"The :input must be between month :startMonth and :endMonth\",\n\tasync validate(value, context) {\n\t\tconst { startMonth, endMonth, scope = \"global\" } = this.context.options;\n\t\tconst inputMonth = new Date(value).getMonth() + 1;\n\t\tlet compareStartMonth;\n\t\tif (typeof startMonth === \"number\") {\n\t\t\tcompareStartMonth = startMonth;\n\t\t\tthis.context.translatableParams.startMonth = MONTHS[compareStartMonth];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startMonth);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.startMonth = startMonth;\n\t\t\tif (fieldValue instanceof Date) compareStartMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareStartMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndMonth;\n\t\tif (typeof endMonth === \"number\") {\n\t\t\tcompareEndMonth = endMonth;\n\t\t\tthis.context.translatableParams.endMonth = MONTHS[compareEndMonth];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endMonth);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.endMonth = endMonth;\n\t\t\tif (fieldValue instanceof Date) compareEndMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareEndMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputMonth >= compareStartMonth && inputMonth <= compareEndMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between days rule - date must be between start and end days (1-31)\n* Supports field names with sibling scope\n*/\nconst betweenDaysRule = {\n\tname: \"betweenDays\",\n\tdefaultErrorMessage: \"The :input must be between day :startDay and :endDay\",\n\tasync validate(value, context) {\n\t\tconst { startDay, endDay, scope = \"global\" } = this.context.options;\n\t\tconst inputDay = new Date(value).getDate();\n\t\tlet compareStartDay;\n\t\tif (typeof startDay === \"number\") compareStartDay = startDay;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, startDay);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareStartDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareStartDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareStartDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tlet compareEndDay;\n\t\tif (typeof endDay === \"number\") compareEndDay = endDay;\n\t\telse {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, endDay);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tif (fieldValue instanceof Date) compareEndDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareEndDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareEndDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (inputDay >= compareStartDay && inputDay <= compareEndDay) return VALID_RULE;\n\t\tthis.context.translationParams.startDay = compareStartDay;\n\t\tthis.context.translationParams.endDay = compareEndDay;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Quarter rule - date must be in specific quarter (1-4)\n*/\nconst quarterRule = {\n\tname: \"quarter\",\n\tdefaultErrorMessage: \"The :input must be in quarter :quarter\",\n\tasync validate(value, context) {\n\t\tconst month = new Date(value).getMonth() + 1;\n\t\tif (Math.ceil(month / 3) === this.context.options.quarter) return VALID_RULE;\n\t\tthis.context.translationParams.quarter = this.context.options.quarter;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Between times rule - time must be between start and end times (HH:MM format)\n*/\nconst betweenTimesRule = {\n\tname: \"betweenTimes\",\n\tdefaultErrorMessage: \"The :input must be between :startTime and :endTime\",\n\tasync validate(value, context) {\n\t\tconst inputDate = new Date(value);\n\t\tconst inputHour = inputDate.getHours();\n\t\tconst inputMinute = inputDate.getMinutes();\n\t\tconst inputTimeInMinutes = inputHour * 60 + inputMinute;\n\t\tconst { startTime, endTime } = this.context.options;\n\t\tconst [startHour, startMinute] = startTime.split(\":\").map(Number);\n\t\tconst startTimeInMinutes = startHour * 60 + startMinute;\n\t\tconst [endHour, endMinute] = endTime.split(\":\").map(Number);\n\t\tconst endTimeInMinutes = endHour * 60 + endMinute;\n\t\tif (inputTimeInMinutes >= startTimeInMinutes && inputTimeInMinutes <= endTimeInMinutes) return VALID_RULE;\n\t\tthis.context.translationParams.startTime = startTime;\n\t\tthis.context.translationParams.endTime = endTime;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min year rule - year must be >= given year or field\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minYearRule = {\n\tname: \"minYear\",\n\tdescription: \"The date year must be at least the given year or field\",\n\tdefaultErrorMessage: \"The :input year must be higher than :yearOrField\",\n\tasync validate(value, context) {\n\t\tconst { yearOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareYear;\n\t\tif (typeof yearOrField === \"number\") {\n\t\t\tcompareYear = yearOrField;\n\t\t\tthis.context.translationParams.yearOrField = yearOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, yearOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.yearOrField = yearOrField;\n\t\t\tif (fieldValue instanceof Date) compareYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getFullYear() >= compareYear) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max year rule - year must be <= given year or field\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxYearRule = {\n\tname: \"maxYear\",\n\tdescription: \"The date year must be at most the given year or field\",\n\tdefaultErrorMessage: \"The :input year must be at most :yearOrField\",\n\tasync validate(value, context) {\n\t\tconst { yearOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareYear;\n\t\tif (typeof yearOrField === \"number\") {\n\t\t\tcompareYear = yearOrField;\n\t\t\tthis.context.translationParams.yearOrField = compareYear;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, yearOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.yearOrField = yearOrField;\n\t\t\tif (fieldValue instanceof Date) compareYear = fieldValue.getFullYear();\n\t\t\telse if (typeof fieldValue === \"number\") compareYear = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareYear = date.getFullYear();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getFullYear() <= compareYear) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min month rule - month must be >= given month or field (1-12)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minMonthRule = {\n\tname: \"minMonth\",\n\tdescription: \"The date month must be at least the given month or field\",\n\tdefaultErrorMessage: \"The :input month must be at least :monthOrField\",\n\tasync validate(value, context) {\n\t\tconst { monthOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareMonth;\n\t\tif (typeof monthOrField === \"number\") {\n\t\t\tcompareMonth = monthOrField;\n\t\t\tthis.context.translationParams.monthOrField = compareMonth;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, monthOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.monthOrField = monthOrField;\n\t\t\tif (fieldValue instanceof Date) compareMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getMonth() + 1 >= compareMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max month rule - month must be <= given month or field (1-12)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxMonthRule = {\n\tname: \"maxMonth\",\n\tdescription: \"The date month must be at most the given month or field\",\n\tdefaultErrorMessage: \"The :input month must be at most :monthOrField\",\n\tasync validate(value, context) {\n\t\tconst { monthOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareMonth;\n\t\tif (typeof monthOrField === \"number\") {\n\t\t\tcompareMonth = monthOrField;\n\t\t\tthis.context.translatableParams.monthOrField = MONTHS[monthOrField];\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, monthOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.monthOrField = monthOrField;\n\t\t\tif (fieldValue instanceof Date) compareMonth = fieldValue.getMonth() + 1;\n\t\t\telse if (typeof fieldValue === \"number\") compareMonth = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareMonth = date.getMonth() + 1;\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getMonth() + 1 <= compareMonth) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Min day rule - day must be >= given day or field (1-31)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst minDayRule = {\n\tname: \"minDay\",\n\tdescription: \"The date day must be at least the given day or field\",\n\tdefaultErrorMessage: \"The :input day must be higher than :dayOrField\",\n\tasync validate(value, context) {\n\t\tconst { dayOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDay;\n\t\tif (typeof dayOrField === \"number\") {\n\t\t\tcompareDay = dayOrField;\n\t\t\tthis.context.translationParams.dayOrField = dayOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dayOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.dayOrField = dayOrField;\n\t\t\tif (fieldValue instanceof Date) compareDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getDate() >= compareDay) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Max day rule - day must be <= given day or field (1-31)\n* Smart detection: number or field name\n* Supports both global and sibling scope\n*/\nconst maxDayRule = {\n\tname: \"maxDay\",\n\tdescription: \"The date day must be at most the given day or field\",\n\tdefaultErrorMessage: \"The :input day must be at most :dayOrField\",\n\tasync validate(value, context) {\n\t\tconst { dayOrField, scope = \"global\" } = this.context.options;\n\t\tlet compareDay;\n\t\tif (typeof dayOrField === \"number\") {\n\t\t\tcompareDay = dayOrField;\n\t\t\tthis.context.translationParams.dayOrField = dayOrField;\n\t\t} else {\n\t\t\tconst fieldValue = get(scope === \"sibling\" ? context.parent : context.allValues, dayOrField);\n\t\t\tif (fieldValue === void 0) return VALID_RULE;\n\t\t\tthis.context.translatableParams.dayOrField = dayOrField;\n\t\t\tif (fieldValue instanceof Date) compareDay = fieldValue.getDate();\n\t\t\telse if (typeof fieldValue === \"number\") compareDay = fieldValue;\n\t\t\telse {\n\t\t\t\tconst date = new Date(fieldValue);\n\t\t\t\tif (!isNaN(date.getTime())) compareDay = date.getDate();\n\t\t\t\telse return VALID_RULE;\n\t\t\t}\n\t\t}\n\t\tif (new Date(value).getDate() <= compareDay) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule };\n//# sourceMappingURL=date-period-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-relative-rules.ts\n/**\n* Within days rule - date must be within X days from now (past or future)\n*/\nconst withinDaysRule = {\n\tname: \"withinDays\",\n\tdefaultErrorMessage: \"The :input must be within :days days from now\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tconst diffTime = Math.abs(inputDate.getTime() - now.getTime());\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Within past days rule - date must be within X days in the past\n*/\nconst withinPastDaysRule = {\n\tname: \"withinPastDays\",\n\tdefaultErrorMessage: \"The :input must be within the past :days days\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate > now) return invalidRule(this, context);\n\t\tconst diffTime = now.getTime() - inputDate.getTime();\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Within future days rule - date must be within X days in the future\n*/\nconst withinFutureDaysRule = {\n\tname: \"withinFutureDays\",\n\tdefaultErrorMessage: \"The :input must be within the next :days days\",\n\tasync validate(value, context) {\n\t\tconst now = /* @__PURE__ */ new Date();\n\t\tconst inputDate = new Date(value);\n\t\tif (inputDate < now) return invalidRule(this, context);\n\t\tconst diffTime = inputDate.getTime() - now.getTime();\n\t\tif (Math.ceil(diffTime / (1e3 * 60 * 60 * 24)) <= this.context.options.days) return VALID_RULE;\n\t\tthis.context.translationParams.days = this.context.options.days;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { withinDaysRule, withinFutureDaysRule, withinPastDaysRule };\n//# sourceMappingURL=date-relative-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/date/date-special-rules.ts\n/**\n* Birthday rule - valid birthday (not in future, reasonable age)\n*/\nconst birthdayRule = {\n\tname: \"birthday\",\n\tdefaultErrorMessage: \"The :input must be a valid birthday\",\n\tasync validate(birthDate, context) {\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tif (birthDate > today) return invalidRule(this, context);\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tconst minAge = this.context.options.minAge ?? 0;\n\t\tif (age < minAge) return invalidRule(this, context);\n\t\tconst maxAge = this.context.options.maxAge ?? 150;\n\t\tif (age > maxAge) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Between age rule - age must be between min and max years\n*/\nconst betweenAgeRule = {\n\tname: \"betweenAge\",\n\tdefaultErrorMessage: \"Age must be between :minAge and :maxAge years\",\n\tasync validate(value, context) {\n\t\tconst birthDate = new Date(value);\n\t\tconst today = /* @__PURE__ */ new Date();\n\t\tlet age = today.getFullYear() - birthDate.getFullYear();\n\t\tconst monthDiff = today.getMonth() - birthDate.getMonth();\n\t\tif (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) age--;\n\t\tconst { minAge, maxAge } = this.context.options;\n\t\tif (age >= minAge && age <= maxAge) return VALID_RULE;\n\t\tthis.context.translationParams.minAge = minAge;\n\t\tthis.context.translationParams.maxAge = maxAge;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Leap year rule - date must be in a leap year\n*/\nconst leapYearRule = {\n\tname: \"leapYear\",\n\tdefaultErrorMessage: \"The :input must be in a leap year\",\n\tasync validate(value, context) {\n\t\tconst year = new Date(value).getFullYear();\n\t\tif (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { betweenAgeRule, birthdayRule, leapYearRule };\n//# sourceMappingURL=date-special-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/color/color-rules.ts\n/**\n* Color validation regex patterns\n*/\nconst colorValidationRegex = {\n\thex: /^#([0-9a-f]{3}){1,2}$/i,\n\trgb: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n\trgba: /^rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(0?\\.\\d+|1)\\)$/,\n\thsl: /^hsl\\((\\d{1,3}),\\s*(\\d{1,3})%?,\\s*(\\d{1,3})%?\\)$/\n};\n/**\n* Generic color rule - validates any color format\n*/\nconst colorRule = {\n\tname: \"color\",\n\tdefaultErrorMessage: \"The :input must be a valid color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hex.test(value) || colorValidationRegex.rgb.test(value) || colorValidationRegex.rgba.test(value) || colorValidationRegex.hsl.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Hex color rule\n*/\nconst hexColorRule = {\n\tname: \"hexColor\",\n\tdefaultErrorMessage: \"The :input must be a valid hex color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hex.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* RGB color rule\n*/\nconst rgbColorRule = {\n\tname: \"rgbColor\",\n\tdefaultErrorMessage: \"The :input must be a valid RGB color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.rgb.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* RGBA color rule\n*/\nconst rgbaColorRule = {\n\tname: \"rgbaColor\",\n\tdefaultErrorMessage: \"The :input must be a valid RGBA color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.rgba.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* HSL color rule\n*/\nconst hslColorRule = {\n\tname: \"hslColor\",\n\tdefaultErrorMessage: \"The :input must be a valid HSL color\",\n\tasync validate(value, context) {\n\t\tif (colorValidationRegex.hsl.test(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Light color rule\n*/\nconst lightColorRule = {\n\tname: \"lightColor\",\n\tdefaultErrorMessage: \"The :input must be a light color\",\n\tasync validate(value, context) {\n\t\tif (!colorValidationRegex.hex.test(value)) return invalidRule(this, context);\n\t\tconst hex = value.replace(\"#\", \"\");\n\t\tconst r = parseInt(hex.substring(0, 2), 16);\n\t\tconst g = parseInt(hex.substring(2, 4), 16);\n\t\tconst b = parseInt(hex.substring(4, 6), 16);\n\t\tif ((r * 299 + g * 587 + b * 114) / 1e3 > 155) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Dark color rule\n*/\nconst darkColorRule = {\n\tname: \"darkColor\",\n\tdefaultErrorMessage: \"The :input must be a dark color\",\n\tasync validate(value, context) {\n\t\tif (!colorValidationRegex.hex.test(value)) return invalidRule(this, context);\n\t\tconst hex = value.replace(\"#\", \"\");\n\t\tconst r = parseInt(hex.substring(0, 2), 16);\n\t\tconst g = parseInt(hex.substring(2, 4), 16);\n\t\tconst b = parseInt(hex.substring(4, 6), 16);\n\t\tif ((r * 299 + g * 587 + b * 114) / 1e3 <= 155) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule };\n//# sourceMappingURL=color-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-if-rules.ts\n/**\n* Required if rule - field is required if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst requiredIfRule = {\n\tname: \"requiredIf\",\n\tdescription: \"The field is required if another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue === expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if empty rule - field is required if another field is empty\n* Supports both global and sibling scope\n*/\nconst requiredIfEmptyRule = {\n\tname: \"requiredIfEmpty\",\n\tdescription: \"The field is required if :field is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && isEmptyValue(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if not empty rule - field is required if another field is not empty\n* Supports both global and sibling scope\n*/\nconst requiredIfNotEmptyRule = {\n\tname: \"requiredIfNotEmpty\",\n\tdescription: \"The field is required if :field is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && !isEmptyValue(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if in rule - field is required if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst requiredIfInRule = {\n\tname: \"requiredIfIn\",\n\tdescription: \"The field is required if :field value is in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && values.includes(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.values = this.context.options.values.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if not in rule - field is required if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst requiredIfNotInRule = {\n\tname: \"requiredIfNotIn\",\n\tdescription: \"The field is required if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && !values.includes(fieldValue)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.values = this.context.options.values.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Get multiple field values based on scope\n*/\nfunction getFieldsValues(rule, context) {\n\tconst { fields, scope = \"global\" } = rule.context.options;\n\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\treturn fields.map((field) => get(source, field));\n}\n/**\n* Required if all empty rule - field is required if ALL specified fields are empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAllEmptyRule = {\n\tname: \"requiredIfAllEmpty\",\n\tdescription: \"The field is required if all :fields are empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst allEmpty = getFieldsValues(this, context).every((v) => isEmptyValue(v));\n\t\tif (isEmptyValue(value) && allEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if any empty rule - field is required if ANY of the specified fields is empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAnyEmptyRule = {\n\tname: \"requiredIfAnyEmpty\",\n\tdescription: \"The field is required if any of the :fields is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst anyEmpty = getFieldsValues(this, context).some((v) => isEmptyValue(v));\n\t\tif (isEmptyValue(value) && anyEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if all not empty rule - field is required if ALL specified fields are NOT empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAllNotEmptyRule = {\n\tname: \"requiredIfAllNotEmpty\",\n\tdescription: \"The field is required if all :fields are not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst allNotEmpty = getFieldsValues(this, context).every((v) => !isEmptyValue(v));\n\t\tif (isEmptyValue(value) && allNotEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required if any not empty rule - field is required if ANY of the specified fields is NOT empty\n* Supports both global and sibling scope\n*/\nconst requiredIfAnyNotEmptyRule = {\n\tname: \"requiredIfAnyNotEmpty\",\n\tdescription: \"The field is required if any of the :fields is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst anyNotEmpty = getFieldsValues(this, context).some((v) => !isEmptyValue(v));\n\t\tif (isEmptyValue(value) && anyNotEmpty) {\n\t\t\tthis.context.options.fields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule };\n//# sourceMappingURL=required-if-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/required-unless-rules.ts\n/**\n* Required unless rule - field is required unless another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst requiredUnlessRule = {\n\tname: \"requiredUnless\",\n\tdescription: \"The field is required unless another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue !== expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.value = this.context.options.value;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredUnlessRule };\n//# sourceMappingURL=required-unless-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/required-when-rule.ts\n/**\n* Required when callback returns true.\n*\n* The callback receives only the SchemaContext (not the value),\n* because \"required\" is about surrounding conditions, not the field itself.\n*\n* @example\n* ```ts\n* v.string().requiredWhen((context) => {\n* return context.allData.notificationMethod === 'email';\n* })\n* ```\n*/\nconst requiredWhenRule = {\n\tname: \"requiredWhen\",\n\tdefaultErrorMessage: \"The :input is required\",\n\trequiresValue: false,\n\tsortOrder: -2,\n\tasync validate(value, context) {\n\t\tif (await this.context.options.callback?.(context) && isEmptyValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWhenRule };\n//# sourceMappingURL=required-when-rule.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-with-rules.ts\n/**\n* Required with rule - field is required if another field is present\n* Supports both global and sibling scope\n*/\nconst requiredWithRule = {\n\tname: \"requiredWith\",\n\tdescription: \"The field is required if another field is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue !== void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required with all rule - field is required if all specified fields are present\n* Supports both global and sibling scope\n*/\nconst requiredWithAllRule = {\n\tname: \"requiredWithAll\",\n\tdescription: \"The field is required if all specified fields are present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allPresent = fields.every((field) => get(source, field) !== void 0);\n\t\tif (isEmptyValue(value) && allPresent) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required with any rule - field is required if any of the specified fields is present\n* Supports both global and sibling scope\n*/\nconst requiredWithAnyRule = {\n\tname: \"requiredWithAny\",\n\tdescription: \"The field is required if any of the specified fields is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyPresent = fields.some((field) => get(source, field) !== void 0);\n\t\tif (isEmptyValue(value) && anyPresent) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWithAllRule, requiredWithAnyRule, requiredWithRule };\n//# sourceMappingURL=required-with-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/required-without-rules.ts\n/**\n* Required without rule - field is required if another field is missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutRule = {\n\tname: \"requiredWithout\",\n\tdescription: \"The field is required if another field is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (isEmptyValue(value) && fieldValue === void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required without all rule - field is required if all specified fields are missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutAllRule = {\n\tname: \"requiredWithoutAll\",\n\tdescription: \"The field is required if all specified fields are missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allMissing = fields.every((field) => get(source, field) === void 0);\n\t\tif (isEmptyValue(value) && allMissing) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Required without any rule - field is required if any of the specified fields is missing\n* Supports both global and sibling scope\n*/\nconst requiredWithoutAnyRule = {\n\tname: \"requiredWithoutAny\",\n\tdescription: \"The field is required if any of the specified fields is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input is required\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyMissing = fields.some((field) => get(source, field) === void 0);\n\t\tif (isEmptyValue(value) && anyMissing) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule };\n//# sourceMappingURL=required-without-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/present-if-rules.ts\n/**\n* Present if rule - field must be present if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst presentIfRule = {\n\tname: \"presentIf\",\n\tdescription: \"The field must be present if another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue === expectedValue) {\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if empty rule - field must be present if another field is empty\n* Supports both global and sibling scope\n*/\nconst presentIfEmptyRule = {\n\tname: \"presentIfEmpty\",\n\tdescription: \"The field must be present if another field is empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if not empty rule - field must be present if another field is not empty\n* Supports both global and sibling scope\n*/\nconst presentIfNotEmptyRule = {\n\tname: \"presentIfNotEmpty\",\n\tdescription: \"The field must be present if another field is not empty\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && !isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if in rule - field must be present if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst presentIfInRule = {\n\tname: \"presentIfIn\",\n\tdescription: \"The field must be present if another field's value is in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && values.includes(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present if not in rule - field must be present if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst presentIfNotInRule = {\n\tname: \"presentIfNotIn\",\n\tdescription: \"The field must be present if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && !values.includes(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule };\n//# sourceMappingURL=present-if-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/conditional/present-unless-rules.ts\n/**\n* Present unless rule - field must be present unless another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst presentUnlessRule = {\n\tname: \"presentUnless\",\n\tdescription: \"The field must be present unless another field equals a specific value\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue !== expectedValue) {\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentUnlessRule };\n//# sourceMappingURL=present-unless-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/present-with-rules.ts\n/**\n* Present with rule - field must be present if another field is present\n* Supports both global and sibling scope\n*/\nconst presentWithRule = {\n\tname: \"presentWith\",\n\tdescription: \"The field must be present if another field is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue !== void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present with all rule - field must be present if all specified fields are present\n* Supports both global and sibling scope\n*/\nconst presentWithAllRule = {\n\tname: \"presentWithAll\",\n\tdescription: \"The field must be present if all specified fields are present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allPresent = fields.every((field) => get(source, field) !== void 0);\n\t\tif (value === void 0 && allPresent) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present with any rule - field must be present if any of the specified fields is present\n* Supports both global and sibling scope\n*/\nconst presentWithAnyRule = {\n\tname: \"presentWithAny\",\n\tdescription: \"The field must be present if any of the specified fields is present\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyPresent = fields.some((field) => get(source, field) !== void 0);\n\t\tif (value === void 0 && anyPresent) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentWithAllRule, presentWithAnyRule, presentWithRule };\n//# sourceMappingURL=present-with-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { get } from \"@mongez/reinforcements\";\n\n//#region ../seal/src/rules/conditional/present-without-rules.ts\n/**\n* Present without rule - field must be present if another field is missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutRule = {\n\tname: \"presentWithout\",\n\tdescription: \"The field must be present if another field is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (value === void 0 && fieldValue === void 0) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present without all rule - field must be present if all specified fields are missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutAllRule = {\n\tname: \"presentWithoutAll\",\n\tdescription: \"The field must be present if all specified fields are missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst allMissing = fields.every((field) => get(source, field) === void 0);\n\t\tif (value === void 0 && allMissing) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Present without any rule - field must be present if any of the specified fields is missing\n* Supports both global and sibling scope\n*/\nconst presentWithoutAnyRule = {\n\tname: \"presentWithoutAny\",\n\tdescription: \"The field must be present if any of the specified fields is missing\",\n\tsortOrder: -2,\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input field must be present\",\n\tasync validate(value, context) {\n\t\tconst { fields, scope = \"global\" } = this.context.options;\n\t\tconst source = scope === \"sibling\" ? context.parent : context.allValues;\n\t\tconst anyMissing = fields.some((field) => get(source, field) === void 0);\n\t\tif (value === void 0 && anyMissing) {\n\t\t\tfields.forEach((field) => {\n\t\t\t\tthis.context.translatableParams.field = field;\n\t\t\t});\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule };\n//# sourceMappingURL=present-without-rules.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/conditional/forbidden-if-rules.ts\n/**\n* Forbidden if rule - field is forbidden if another field equals a specific value\n* Supports both global and sibling scope\n*/\nconst forbiddenIfRule = {\n\tname: \"forbiddenIf\",\n\tdescription: \"The field is forbidden if another field equals a specific value\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && fieldValue === expectedValue) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\tthis.context.translationParams.value = expectedValue;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not rule - field is forbidden if another field does NOT equal a specific value\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotRule = {\n\tname: \"forbiddenIfNot\",\n\tdescription: \"The field is forbidden if another field does NOT equal a specific value\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && fieldValue !== expectedValue) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if empty rule - field is forbidden if another field is empty\n* Supports both global and sibling scope\n*/\nconst forbiddenIfEmptyRule = {\n\tname: \"forbiddenIfEmpty\",\n\tdescription: \"The field is forbidden if another field is empty\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not empty rule - field is forbidden if another field is not empty\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotEmptyRule = {\n\tname: \"forbiddenIfNotEmpty\",\n\tdescription: \"The field is forbidden if another field is not empty\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && !isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if in rule - field is forbidden if another field's value is in the given array\n* Supports both global and sibling scope\n*/\nconst forbiddenIfInRule = {\n\tname: \"forbiddenIfIn\",\n\tdescription: \"The field is forbidden if another field's value is in the given array\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && values.includes(fieldValue)) {\n\t\t\tthis.context.translationParams.values = values.join(\", \");\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Forbidden if not in rule - field is forbidden if another field's value is NOT in the given array\n* Supports both global and sibling scope\n*/\nconst forbiddenIfNotInRule = {\n\tname: \"forbiddenIfNotIn\",\n\tdescription: \"The field is forbidden if another field's value is NOT in the given array\",\n\tsortOrder: -2,\n\tdefaultErrorMessage: \"The :input is forbidden\",\n\tasync validate(value, context) {\n\t\tconst { values } = this.context.options;\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tif (!isEmptyValue(value) && !values.includes(fieldValue)) {\n\t\t\tthis.context.translationParams.values = values.join(\", \");\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule };\n//# sourceMappingURL=forbidden-if-rules.mjs.map","import { VALID_RULE, invalidRule, resolveTranslation } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/enum.ts\n/**\n* Enum rule - value must be one of the enum values\n*/\nconst enumRule = {\n\tname: \"enum\",\n\tdefaultErrorMessage: \"The :input must be one of the following values: :enum\",\n\tasync validate(value, context) {\n\t\tconst enumValues = this.context.options.enum;\n\t\tif (enumValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.enum = enumValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* In rule - value must be in the given array\n*/\nconst inRule = {\n\tname: \"in\",\n\tdefaultErrorMessage: \"The :input must be one of the following values: :values\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.values.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.values = this.context.options.values.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Allowed values rule - value must be one of allowed values\n*/\nconst allowedValuesRule = {\n\tname: \"allowedValues\",\n\tdefaultErrorMessage: \"The :input must be one of the allowed values\",\n\tasync validate(value, context) {\n\t\tif (this.context.options.allowedValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.allowedValues = this.context.options.allowedValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Not allowed values rule - value must not be in forbidden list\n*/\nconst notAllowedValuesRule = {\n\tname: \"notAllowedValues\",\n\tdefaultErrorMessage: \"The :input contains a forbidden value\",\n\tasync validate(value, context) {\n\t\tif (!this.context.options.notAllowedValues.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.notAllowedValues = this.context.options.notAllowedValues.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { allowedValuesRule, enumRule, inRule, notAllowedValuesRule };\n//# sourceMappingURL=enum.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/equals-field-rules.ts\n/**\n* Equals field rule - value must equal another field's value\n* Supports both global and sibling scope\n*/\nconst equalsFieldRule = {\n\tname: \"equalsField\",\n\tdescription: \"The value must equal another field's value\",\n\tsortOrder: -1,\n\trequiresValue: true,\n\tdefaultErrorMessage: \"The :input must match the :field field\",\n\tasync validate(value, context) {\n\t\tif (value !== getFieldValue(this, context)) {\n\t\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Not equals field rule - value must NOT equal another field's value\n* Supports both global and sibling scope\n*/\nconst notEqualsFieldRule = {\n\tname: \"notEqualsField\",\n\tdescription: \"The value must NOT equal another field's value\",\n\tsortOrder: -1,\n\trequiresValue: true,\n\tdefaultErrorMessage: \"The :input must not match the :field field\",\n\tasync validate(value, context) {\n\t\tif (value === getFieldValue(this, context)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { equalsFieldRule, notEqualsFieldRule };\n//# sourceMappingURL=equals-field-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/instanceof.ts\n/**\n* InstanceOf rule - value must be an instance of the given constructor.\n*\n* Uses the `instanceof` operator at runtime. Useful for class instances\n* not representable in JSON Schema (File, Buffer, custom domain classes).\n*/\nconst instanceofRule = {\n\tname: \"instanceof\",\n\tdefaultErrorMessage: \"The :input must be an instance of :name\",\n\tasync validate(value, context) {\n\t\tif (value instanceof this.context.options.ctor) return VALID_RULE;\n\t\tthis.context.translationParams.name = this.context.options.name;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { instanceofRule };\n//# sourceMappingURL=instanceof.mjs.map","import { VALID_RULE, invalidRule, resolveTranslation } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/literal.ts\n/**\n* Literal rule - value must be strictly equal to one of the literal values.\n*\n* Uses === (referential / strict equality), so distinguishes 1 from \"1\",\n* true from \"true\", etc. Mirrors `v.string().oneOf([...])` but at the\n* literal type level (TypeScript narrows to the union of literals).\n*/\nconst literalRule = {\n\tname: \"literal\",\n\trequiresValue: false,\n\tdefaultErrorMessage: \"The :input must be one of the following values: :values\",\n\tasync validate(value, context) {\n\t\tif (value === void 0) return VALID_RULE;\n\t\tif (this.context.options.values.includes(value)) return VALID_RULE;\n\t\tthis.context.translationParams.values = this.context.options.values.map((v) => resolveTranslation({\n\t\t\tkey: String(v),\n\t\t\trawValue: String(v),\n\t\t\trule: this,\n\t\t\tcontext\n\t\t})).join(\", \");\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { literalRule };\n//# sourceMappingURL=literal.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isObject, isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/rules/common/type-rules.ts\n/**\n* String rule - validates string type\n*/\nconst stringRule = {\n\tname: \"string\",\n\tdefaultErrorMessage: \"The :input must be a string\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"string\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Number rule - validates number type\n*/\nconst numberRule = {\n\tname: \"number\",\n\tdefaultErrorMessage: \"The :input must be a number\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"number\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Boolean rule - validates boolean type\n*/\nconst booleanRule = {\n\tname: \"boolean\",\n\tdefaultErrorMessage: \"The :input must be a boolean\",\n\tasync validate(value, context) {\n\t\tif (typeof value === \"boolean\") return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Int rule - validates integer type\n*/\nconst intRule = {\n\tname: \"int\",\n\tdefaultErrorMessage: \"The :input must be an integer\",\n\tasync validate(value, context) {\n\t\tif (Number.isInteger(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Float rule - validates float type\n*/\nconst floatRule = {\n\tname: \"float\",\n\tdefaultErrorMessage: \"The :input must be a float\",\n\tasync validate(value, context) {\n\t\tif (Number.isFinite(value) && !Number.isInteger(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Scalar rule - validates scalar value (string, number, or boolean)\n*/\nconst scalarRule = {\n\tname: \"scalar\",\n\tdefaultErrorMessage: \"The :input must be a scalar value\",\n\tasync validate(value, context) {\n\t\tif ([\n\t\t\t\"string\",\n\t\t\t\"number\",\n\t\t\t\"boolean\"\n\t\t].includes(typeof value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Object rule - validates object type\n*/\nconst objectRule = {\n\tname: \"object\",\n\tdefaultErrorMessage: \"The :input must be an object\",\n\tasync validate(value, context) {\n\t\tif (!!isObject(value) && value !== null) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Object rule - validates object type\n*/\nconst plainObjectRule = {\n\tname: \"plainObject\",\n\tdefaultErrorMessage: \"The :input must be an object\",\n\tasync validate(value, context) {\n\t\tif (!!isPlainObject(value) && value !== null) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Array rule - validates array type\n*/\nconst arrayRule = {\n\tname: \"array\",\n\tdefaultErrorMessage: \"The :input must be an array\",\n\tasync validate(value, context) {\n\t\tif (Array.isArray(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n\n//#endregion\nexport { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule };\n//# sourceMappingURL=type-rules.mjs.map","import { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\n\n//#region ../seal/src/rules/common/unknown-key.ts\n/**\n* Unknown key rule - validates that object doesn't have unknown keys\n*/\nconst unknownKeyRule = {\n\tname: \"unknownKeys\",\n\tdefaultErrorMessage: \"The :input contains unknown keys: :unknownKeys\",\n\tasync validate(value, context) {\n\t\tconst schema = this.context.options.schema;\n\t\tconst allowedKeys = [...Object.keys(schema), ...this.context.options.allowedKeys || []];\n\t\tconst unknownKeys = Object.keys(value).filter((key) => !allowedKeys.includes(key));\n\t\tif (unknownKeys.length > 0) {\n\t\t\tthis.context.translationParams.unknownKeys = unknownKeys.join(\", \");\n\t\t\treturn invalidRule(this, context);\n\t\t}\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { unknownKeyRule };\n//# sourceMappingURL=unknown-key.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { flipArrayMutator, sortArrayMutator, uniqueArrayMutator } from \"../mutators/array-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { betweenLengthRule, lengthRule, maxLengthRule, minLengthRule } from \"../rules/length/length-rules.mjs\";\nimport { sortedArrayRule, uniqueArrayRule } from \"../rules/array/array-rules.mjs\";\nimport { arrayRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/array-validator.ts\n/**\n* Array validator class\n*/\nvar ArrayValidator = class extends BaseValidator {\n\tconstructor(validator, errorMessage) {\n\t\tsuper();\n\t\tthis.validator = validator;\n\t\tthis.addMutableRule(arrayRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an array type\n\t*/\n\tmatchesType(value) {\n\t\treturn Array.isArray(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.validator = this.validator.clone();\n\t\treturn cloned;\n\t}\n\t/** Reverse array order */\n\tflip() {\n\t\treturn this.addMutator(flipArrayMutator);\n\t}\n\t/** Reverse array order (alias) */\n\treverse() {\n\t\treturn this.addMutator(flipArrayMutator);\n\t}\n\t/** Make it has only unique values */\n\tonlyUnique() {\n\t\treturn this.addMutator(uniqueArrayMutator);\n\t}\n\t/** Sort array */\n\tsort(direction = \"asc\", key) {\n\t\treturn this.addMutator(sortArrayMutator, {\n\t\t\tdirection,\n\t\t\tkey\n\t\t});\n\t}\n\t/** Array length must be greater than the given length */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** Array length must be less than the given length */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/** Array length must be of the given length */\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/**\n\t* Array length must be between min and max (inclusive)\n\t*\n\t* @param min - Minimum length (inclusive)\n\t* @param max - Maximum length (inclusive)\n\t*\n\t* @example\n\t* ```ts\n\t* v.array(v.string()).between(1, 10) // Array must have 1 to 10 items\n\t* v.array(v.number()).lengthBetween(5, 20) // Same using alias\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenLengthRule, errorMessage, {\n\t\t\tminLength: min,\n\t\t\tmaxLength: max\n\t\t});\n\t}\n\t/**\n\t* Alias for between() - array length between min and max\n\t*/\n\tlengthBetween(min, max, errorMessage) {\n\t\treturn this.between(min, max, errorMessage);\n\t}\n\t/** Array must have unique values */\n\tunique(errorMessage) {\n\t\treturn this.addRule(uniqueArrayRule, errorMessage);\n\t}\n\t/** Array must be sorted */\n\tsorted(direction = \"asc\", errorMessage) {\n\t\treturn this.addRule(sortedArrayRule, errorMessage, { direction });\n\t}\n\t/** Mutate the data */\n\tmutate(data, context) {\n\t\tif (!Array.isArray(data)) return data;\n\t\treturn super.mutate([...data], context);\n\t}\n\t/** Validate array\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional array\n\t* fields would silently materialise as `[]` in the validated output.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!Array.isArray(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tconst validationPromises = mutatedData.map(async (value, index) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue,\n\t\t\t\tkey: index.toString(),\n\t\t\t\tpath: setKeyPath(context.path, index.toString())\n\t\t\t};\n\t\t\tconst childResult = await this.validator.validate(value, childContext);\n\t\t\tmutatedData[index] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Recursively generates JSON Schema for the array items.\n\t*\n\t* @example\n\t* ```ts\n\t* v.array(v.string().min(1)).minLength(1).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"array\", items: { type: \"string\", minLength: 1 }, minItems: 1 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\titems: this.validator.toJsonSchema(target)\n\t\t};\n\t\tconst minOpts = getRuleOptions(this.rules, \"minLength\");\n\t\tif (minOpts?.minLength !== void 0) schema.minItems = minOpts.minLength;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"maxLength\");\n\t\tif (maxOpts?.maxLength !== void 0) schema.maxItems = maxOpts.maxLength;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenLength\");\n\t\tif (betweenOpts) {\n\t\t\tif (betweenOpts.minLength !== void 0) schema.minItems = betweenOpts.minLength;\n\t\t\tif (betweenOpts.maxLength !== void 0) schema.maxItems = betweenOpts.maxLength;\n\t\t}\n\t\tconst lengthOpts = getRuleOptions(this.rules, \"length\");\n\t\tif (lengthOpts?.length !== void 0) {\n\t\t\tschema.minItems = lengthOpts.length;\n\t\t\tschema.maxItems = lengthOpts.length;\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { ArrayValidator };\n//# sourceMappingURL=array-validator.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { equalRule } from \"../../rules/core/equal.mjs\";\nimport { whenRule } from \"../../rules/core/when.mjs\";\nimport { equalsFieldRule, notEqualsFieldRule } from \"../../rules/common/equals-field-rules.mjs\";\nimport \"../../rules/index.mjs\";\n\n//#region ../seal/src/validators/methods/equality-conditional-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst equalityConditionalMethodsApplied = true;\n/**\n* Value must be equal to the given value\n*/\nBaseValidator.prototype.equal = function(value, errorMessage) {\n\treturn this.addRule(equalRule, errorMessage, { value });\n};\n/**\n* Value must be the same as another field's value\n*/\nBaseValidator.prototype.sameAs = function(field, errorMessage) {\n\treturn this.addRule(equalsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value must be the same as another sibling field's value\n*/\nBaseValidator.prototype.sameAsSibling = function(field, errorMessage) {\n\treturn this.addRule(equalsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value must be different from another field's value\n*/\nBaseValidator.prototype.differentFrom = function(field, errorMessage) {\n\treturn this.addRule(notEqualsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value must be different from another sibling field's value\n*/\nBaseValidator.prototype.differentFromSibling = function(field, errorMessage) {\n\treturn this.addRule(notEqualsFieldRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Apply different validation rules based on another field's value (global scope)\n*\n* Use this when you need to apply completely different validators\n* based on another field's value (not just required/optional).\n*\n* @param field - Field name to check (can be nested with dot notation)\n* @param options - Validation options per field value\n*\n* @example\n* ```ts\n* // Different allowed values based on user type\n* v.object({\n* userType: v.string().in(['admin', 'user']),\n* role: v.string().when('userType', {\n* is: {\n* admin: v.string().in(['super', 'moderator']),\n* user: v.string().in(['member', 'guest'])\n* },\n* otherwise: v.string().optional()\n* })\n* })\n*\n* // Different validation rules based on type\n* v.object({\n* contactType: v.string().in(['email', 'phone']),\n* contact: v.string().when('contactType', {\n* is: {\n* email: v.string().email(),\n* phone: v.string().pattern(/^\\d{10}$/)\n* }\n* })\n* })\n* ```\n* @category Conditional Validation\n*/\nBaseValidator.prototype.when = function(field, options) {\n\treturn this.addRule(whenRule, void 0, {\n\t\tfield,\n\t\tis: options.is,\n\t\totherwise: options.otherwise,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Apply different validation rules based on sibling field's value\n*\n* Use this for nested objects where you need to check a field\n* within the same parent object.\n*\n* @param siblingField - Sibling field name to check\n* @param options - Validation options per field value\n*\n* @example\n* ```ts\n* // Array of users with role-based permissions\n* v.array(v.object({\n* userType: v.string().in(['admin', 'user']),\n* permissions: v.string().whenSibling('userType', {\n* is: {\n* admin: v.string().in(['read', 'write', 'delete']),\n* user: v.string().in(['read'])\n* }\n* })\n* }))\n* ```\n* @category Conditional Validation\n*/\nBaseValidator.prototype.whenSibling = function(siblingField, options) {\n\treturn this.addRule(whenRule, void 0, {\n\t\tfield: siblingField,\n\t\tis: options.is,\n\t\totherwise: options.otherwise,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { equalityConditionalMethodsApplied };\n//# sourceMappingURL=equality-conditional-methods.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { forbiddenRule } from \"../../rules/core/forbidden.mjs\";\nimport { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from \"../../rules/conditional/forbidden-if-rules.mjs\";\n\n//#region ../seal/src/validators/methods/forbidden-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst forbiddenMethodsApplied = true;\n/**\n* Value is forbidden to be present\n*/\nBaseValidator.prototype.forbidden = function(errorMessage) {\n\treturn this.addRule(forbiddenRule, errorMessage);\n};\n/**\n* Value is forbidden if another field equals a specific value (global scope)\n*/\nBaseValidator.prototype.forbiddenIf = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field equals a specific value (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfSibling = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field does NOT equal a specific value (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNot = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfNotRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field does NOT equal a specific value (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotSibling = function(field, value, errorMessage) {\n\treturn this.addRule(forbiddenIfNotRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field is empty (global scope)\n*/\nBaseValidator.prototype.forbiddenIfEmpty = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field is empty (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field is not empty (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNotEmpty = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field is not empty (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(forbiddenIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is in the given array (global scope)\n*/\nBaseValidator.prototype.forbiddenIfIn = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is in the given array (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is NOT in the given array (global scope)\n*/\nBaseValidator.prototype.forbiddenIfNotIn = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is forbidden if another field's value is NOT in the given array (sibling scope)\n*/\nBaseValidator.prototype.forbiddenIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(forbiddenIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { forbiddenMethodsApplied };\n//# sourceMappingURL=forbidden-methods.mjs.map","import { BaseValidator } from \"../base-validator.mjs\";\nimport { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from \"../../rules/conditional/present-if-rules.mjs\";\nimport { presentUnlessRule } from \"../../rules/conditional/present-unless-rules.mjs\";\nimport { presentWithAllRule, presentWithAnyRule, presentWithRule } from \"../../rules/conditional/present-with-rules.mjs\";\nimport { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from \"../../rules/conditional/present-without-rules.mjs\";\n\n//#region ../seal/src/validators/methods/present-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n*/\nconst presentMethodsApplied = true;\n/**\n* Field must be present if another field exists\n*/\nBaseValidator.prototype.presentWith = function(field, errorMessage) {\n\treturn this.addRule(presentWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field exists\n*/\nBaseValidator.prototype.presentWithSibling = function(field, errorMessage) {\n\treturn this.addRule(presentWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is missing\n*/\nBaseValidator.prototype.presentWithout = function(field, errorMessage) {\n\treturn this.addRule(presentWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is missing\n*/\nBaseValidator.prototype.presentWithoutSibling = function(field, errorMessage) {\n\treturn this.addRule(presentWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field equals a specific value\n*/\nBaseValidator.prototype.presentIf = function(field, value, errorMessage) {\n\treturn this.addRule(presentIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field equals a specific value\n*/\nBaseValidator.prototype.presentIfSibling = function(field, value, errorMessage) {\n\treturn this.addRule(presentIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present unless another field equals a specific value\n*/\nBaseValidator.prototype.presentUnless = function(field, value, errorMessage) {\n\treturn this.addRule(presentUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present unless another sibling field equals a specific value\n*/\nBaseValidator.prototype.presentUnlessSibling = function(field, value, errorMessage) {\n\treturn this.addRule(presentUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is empty\n*/\nBaseValidator.prototype.presentIfEmpty = function(field, errorMessage) {\n\treturn this.addRule(presentIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is empty\n*/\nBaseValidator.prototype.presentIfEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(presentIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field is not empty\n*/\nBaseValidator.prototype.presentIfNotEmpty = function(field, errorMessage) {\n\treturn this.addRule(presentIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field is not empty\n*/\nBaseValidator.prototype.presentIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.addRule(presentIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field's value is in the given array\n*/\nBaseValidator.prototype.presentIfIn = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field's value is in the given array\n*/\nBaseValidator.prototype.presentIfInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if another field's value is NOT in the given array\n*/\nBaseValidator.prototype.presentIfNotIn = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if another sibling field's value is NOT in the given array\n*/\nBaseValidator.prototype.presentIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.addRule(presentIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if all specified fields exist\n*/\nBaseValidator.prototype.presentWithAll = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if all specified sibling fields exist\n*/\nBaseValidator.prototype.presentWithAllSiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if all specified fields are missing\n*/\nBaseValidator.prototype.presentWithoutAll = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if all specified sibling fields are missing\n*/\nBaseValidator.prototype.presentWithoutAllSiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if any of the specified fields exists\n*/\nBaseValidator.prototype.presentWithAny = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if any of the specified sibling fields exists\n*/\nBaseValidator.prototype.presentWithAnySiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Field must be present if any of the specified fields is missing\n*/\nBaseValidator.prototype.presentWithoutAny = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Field must be present if any of the specified sibling fields is missing\n*/\nBaseValidator.prototype.presentWithoutAnySiblings = function(fields, errorMessage) {\n\treturn this.addRule(presentWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n\n//#endregion\nexport { presentMethodsApplied };\n//# sourceMappingURL=present-methods.mjs.map","import { presentRule, requiredRule } from \"../../rules/core/required.mjs\";\nimport { BaseValidator } from \"../base-validator.mjs\";\nimport { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from \"../../rules/conditional/required-if-rules.mjs\";\nimport { requiredUnlessRule } from \"../../rules/conditional/required-unless-rules.mjs\";\nimport { requiredWhenRule } from \"../../rules/conditional/required-when-rule.mjs\";\nimport { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from \"../../rules/conditional/required-with-rules.mjs\";\nimport { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from \"../../rules/conditional/required-without-rules.mjs\";\n\n//#region ../seal/src/validators/methods/required-methods.ts\n/**\n* Marker re-exported by the validators barrel so the dts bundler keeps this\n* module (and its `declare module` augmentation) in the bundled `.d.ts`.\n* Without a real export, side-effect-only augmentation modules get tree-shaken\n* out of the published types, dropping every chainable rule method.\n*/\nconst requiredMethodsApplied = true;\n/**\n* This value must be present and has a value\n*/\nBaseValidator.prototype.required = function(errorMessage) {\n\treturn this.setRequiredRule(requiredRule, errorMessage);\n};\n/**\n* Value must be present but not necessarily has a value\n*/\nBaseValidator.prototype.present = function(errorMessage) {\n\treturn this.setRequiredRule(presentRule, errorMessage);\n};\n/**\n* Mark the field as optional — it may be absent or empty without validation errors.\n* Clears any previously set required rule.\n*\n* The return type is branded with `{ isOptional: true }` so schema inference\n* can mark this key as optional in the inferred TypeScript type.\n*/\nBaseValidator.prototype.optional = function() {\n\tconst instance = this.instance;\n\tinstance.isOptional = true;\n\tinstance.requiredRule = null;\n\treturn instance;\n};\n/**\n* Sugar — equivalent to `.optional().nullable()`.\n*/\nBaseValidator.prototype.nullish = function() {\n\treturn this.optional().nullable();\n};\n/**\n* Value is required if another field exists\n*/\nBaseValidator.prototype.requiredWith = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field exists\n*/\nBaseValidator.prototype.requiredWithSibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is missing\n*/\nBaseValidator.prototype.requiredWithout = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is missing\n*/\nBaseValidator.prototype.requiredWithoutSibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field equals a specific value\n*/\nBaseValidator.prototype.requiredIf = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field equals a specific value\n*/\nBaseValidator.prototype.requiredIfSibling = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredIfRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required unless another field equals a specific value\n*/\nBaseValidator.prototype.requiredUnless = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required unless another sibling field equals a specific value\n*/\nBaseValidator.prototype.requiredUnlessSibling = function(field, value, errorMessage) {\n\treturn this.setRequiredRule(requiredUnlessRule, errorMessage, {\n\t\tfield,\n\t\tvalue,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is empty\n*/\nBaseValidator.prototype.requiredIfEmpty = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is empty\n*/\nBaseValidator.prototype.requiredIfEmptySibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field is not empty\n*/\nBaseValidator.prototype.requiredIfNotEmpty = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field is not empty\n*/\nBaseValidator.prototype.requiredIfNotEmptySibling = function(field, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotEmptyRule, errorMessage, {\n\t\tfield,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ALL specified fields are empty\n*/\nBaseValidator.prototype.requiredIfAllEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ALL specified sibling fields are empty\n*/\nBaseValidator.prototype.requiredIfAllEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ANY of the specified fields is empty\n*/\nBaseValidator.prototype.requiredIfAnyEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ANY of the specified sibling fields is empty\n*/\nBaseValidator.prototype.requiredIfAnyEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ALL specified fields are NOT empty\n*/\nBaseValidator.prototype.requiredIfAllNotEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ALL specified sibling fields are NOT empty\n*/\nBaseValidator.prototype.requiredIfAllNotEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAllNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if ANY of the specified fields is NOT empty\n*/\nBaseValidator.prototype.requiredIfAnyNotEmpty = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if ANY of the specified sibling fields is NOT empty\n*/\nBaseValidator.prototype.requiredIfAnyNotEmptySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredIfAnyNotEmptyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field's value is in the given array\n*/\nBaseValidator.prototype.requiredIfIn = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field's value is in the given array\n*/\nBaseValidator.prototype.requiredIfInSibling = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if another field's value is NOT in the given array\n*/\nBaseValidator.prototype.requiredIfNotIn = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if another sibling field's value is NOT in the given array\n*/\nBaseValidator.prototype.requiredIfNotInSibling = function(field, values, errorMessage) {\n\treturn this.setRequiredRule(requiredIfNotInRule, errorMessage, {\n\t\tfield,\n\t\tvalues,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if all specified fields exist\n*/\nBaseValidator.prototype.requiredWithAll = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if all specified sibling fields exist\n*/\nBaseValidator.prototype.requiredWithAllSiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if all specified fields are missing\n*/\nBaseValidator.prototype.requiredWithoutAll = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if all specified sibling fields are missing\n*/\nBaseValidator.prototype.requiredWithoutAllSiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAllRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if any of the specified fields exists\n*/\nBaseValidator.prototype.requiredWithAny = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if any of the specified sibling fields exists\n*/\nBaseValidator.prototype.requiredWithAnySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Value is required if any of the specified fields is missing\n*/\nBaseValidator.prototype.requiredWithoutAny = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"global\"\n\t});\n};\n/**\n* Value is required if any of the specified sibling fields is missing\n*/\nBaseValidator.prototype.requiredWithoutAnySiblings = function(fields, errorMessage) {\n\treturn this.setRequiredRule(requiredWithoutAnyRule, errorMessage, {\n\t\tfields,\n\t\tscope: \"sibling\"\n\t});\n};\n/**\n* Make this field required based on a custom callback.\n* Callback receives only SchemaContext — the framework handles empty-value checking.\n*/\nBaseValidator.prototype.requiredWhen = function(callback, errorMessage) {\n\treturn this.setRequiredRule(requiredWhenRule, errorMessage, { callback });\n};\n\n//#endregion\nexport { requiredMethodsApplied };\n//# sourceMappingURL=required-methods.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\nimport { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from \"../rules/common/enum.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/primitive-validator.ts\n/**\n* Abstract base validator for primitive-typed fields (string, number, boolean).\n*\n* Provides value-membership rules that are meaningful for any single primitive value\n* but not for complex structures (object, array).\n*\n* Do NOT expose this on the `v` factory — it is an inheritance-only base class.\n*\n* Hierarchy:\n* BaseValidator\n* └── PrimitiveValidator ← enum, in, oneOf, allowsOnly, forbids, notIn\n* ├── StringValidator\n* ├── NumberValidator\n* │ └── FloatValidator\n* ├── BooleanValidator\n* └── ScalarValidator (extends PrimitiveValidator, adds asNumber/asString/accepted/declined)\n*\n* @example\n* class MyValidator extends PrimitiveValidator {\n* // inherits: in(), forbids(), enum(), oneOf(), allowsOnly(), notIn()\n* }\n*/\nvar PrimitiveValidator = class extends BaseValidator {\n\t/**\n\t* Value must be one of the enum's values\n\t*\n\t* @example\n\t* v.string().enum(Direction) // Direction is a TS enum\n\t*/\n\tenum(values, errorMessage) {\n\t\treturn this.addRule(enumRule, errorMessage, { enum: Object.values(values) });\n\t}\n\t/**\n\t* Value must be one of the given values\n\t*\n\t* @example\n\t* v.string().in([\"admin\", \"user\", \"guest\"])\n\t* v.number().in([1, 2, 3])\n\t*/\n\tin(values, errorMessage) {\n\t\treturn this.addRule(inRule, errorMessage, { values });\n\t}\n\t/**\n\t* Alias for `in()`\n\t*\n\t* @example\n\t* v.string().oneOf([\"active\", \"inactive\"])\n\t*/\n\toneOf(values, errorMessage) {\n\t\treturn this.in(values, errorMessage);\n\t}\n\t/**\n\t* Value must be one of the allowed values (stricter variant)\n\t*\n\t* @example\n\t* v.string().allowsOnly([\"yes\", \"no\"])\n\t*/\n\tallowsOnly(values, errorMessage) {\n\t\treturn this.addRule(allowedValuesRule, errorMessage, { allowedValues: values });\n\t}\n\t/**\n\t* Value must NOT be one of the given values\n\t*\n\t* @example\n\t* v.string().forbids([\"banned\", \"blacklisted\"])\n\t* v.number().forbids([0, -1])\n\t*/\n\tforbids(values, errorMessage) {\n\t\treturn this.addRule(notAllowedValuesRule, errorMessage, { notAllowedValues: values });\n\t}\n\t/**\n\t* Alias for `forbids()`\n\t*\n\t* @example\n\t* v.string().notIn([\"OK\", \"NOT OK\"])\n\t*/\n\tnotIn(values, errorMessage) {\n\t\treturn this.forbids(values, errorMessage);\n\t}\n};\n\n//#endregion\nexport { PrimitiveValidator };\n//# sourceMappingURL=primitive-validator.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/scalar/accepted-rule.ts\nconst isAcceptedValue = (value) => {\n\treturn [\n\t\t\"1\",\n\t\t\"true\",\n\t\t\"yes\",\n\t\t\"y\",\n\t\t\"on\",\n\t\t1,\n\t\ttrue,\n\t\t\"Yes\",\n\t\t\"Y\",\n\t\t\"On\"\n\t].includes(value);\n};\n/**\n* Validate value as accepted if it equals:\n* 1 | \"1\" | true | \"true\" | \"yes\" | \"y\" | \"on\"\n*/\nconst acceptedRule = {\n\tname: \"accepted\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tdescription: \"The value must be accepted if it equals: 1 | '1' | true | 'true' | 'yes' | 'y' | 'on' | 1 | true | 'Yes' | 'Y' | 'On'\",\n\tasync validate(value, context) {\n\t\tif (isAcceptedValue(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Accepted value if another field's value equals to a specific value\n*/\nconst acceptedIfRule = {\n\tname: \"acceptedIf\",\n\tdescription: \"The field must be accepted if :field's value equals to :value\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue !== expectedValue) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is not equal to the given value\n*/\nconst acceptedUnlessRule = {\n\tname: \"acceptedUnless\",\n\tdescription: \"The field must be accepted if :field's value is not equal to :value\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue === expectedValue) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is required\n*/\nconst acceptedIfRequiredRule = {\n\tname: \"acceptedIfRequired\",\n\tdescription: \"The field must be accepted if :field is required\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is present\n*/\nconst acceptedIfPresentRule = {\n\tname: \"acceptedIfPresent\",\n\tdescription: \"The field must be accepted if :field is present\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue === void 0) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Accepted if another field is missing\n*/\nconst acceptedWithoutRule = {\n\tname: \"acceptedWithout\",\n\tdescription: \"The field must be accepted if :field is missing\",\n\tdefaultErrorMessage: \"The :input must be accepted\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue !== void 0) return invalidRule(this, context);\n\t\tif (!isAcceptedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule };\n//# sourceMappingURL=accepted-rule.mjs.map","import { getFieldValue } from \"../../helpers/get-field-value.mjs\";\nimport { VALID_RULE, invalidRule } from \"../../helpers/validation-helpers.mjs\";\nimport \"../../helpers/index.mjs\";\nimport { isEmptyValue } from \"../../helpers/is-empty-value.mjs\";\n\n//#region ../seal/src/rules/scalar/declined-rule.ts\nconst isDeclinedValue = (value) => {\n\treturn [\n\t\t\"0\",\n\t\t\"false\",\n\t\t\"no\",\n\t\t\"n\",\n\t\t\"off\",\n\t\t0,\n\t\tfalse,\n\t\t\"No\",\n\t\t\"N\",\n\t\t\"Off\"\n\t].includes(value);\n};\n/**\n* Validate value as declined if it equals:\n* 0 | \"0\" | false | \"false\" | \"no\" | \"n\" | \"off\" | 0 | false | \"No\" | \"N\" | \"Off\"\n*/\nconst declinedRule = {\n\tname: \"declined\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tdescription: \"The value must be declined if it equals: 0 | '0' | false | 'false' | 'no' | 'n' | 'off' | 0 | false | 'No' | 'N' | 'Off'\",\n\tasync validate(value, context) {\n\t\tif (isDeclinedValue(value)) return VALID_RULE;\n\t\treturn invalidRule(this, context);\n\t}\n};\n/**\n* Declined value if another field's value equals to a specific value\n*/\nconst declinedIfRule = {\n\tname: \"declinedIf\",\n\tdescription: \"The field must be declined if :field's value equals to :value\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue !== expectedValue) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is not equal to the given value\n*/\nconst declinedUnlessRule = {\n\tname: \"declinedUnless\",\n\tdescription: \"The field must be declined if :field's value is not equal to :value\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tconst { value: expectedValue } = this.context.options;\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tthis.context.translatableParams.value = this.context.options.value;\n\t\tif (fieldValue === expectedValue) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is required\n*/\nconst declinedIfRequiredRule = {\n\tname: \"declinedIfRequired\",\n\tdescription: \"The field must be declined if :field is required\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (isEmptyValue(fieldValue)) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is present\n*/\nconst declinedIfPresentRule = {\n\tname: \"declinedIfPresent\",\n\tdescription: \"The field must be declined if :field is present\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue === void 0) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n/**\n* Declined if another field is missing\n*/\nconst declinedWithoutRule = {\n\tname: \"declinedWithout\",\n\tdescription: \"The field must be declined if :field is missing\",\n\tdefaultErrorMessage: \"The :input must be declined\",\n\tasync validate(value, context) {\n\t\tconst fieldValue = getFieldValue(this, context);\n\t\tthis.context.translatableParams.field = this.context.options.field;\n\t\tif (fieldValue !== void 0) return invalidRule(this, context);\n\t\tif (!isDeclinedValue(value)) return invalidRule(this, context);\n\t\treturn VALID_RULE;\n\t}\n};\n\n//#endregion\nexport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule };\n//# sourceMappingURL=declined-rule.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { booleanRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\nimport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule } from \"../rules/scalar/accepted-rule.mjs\";\nimport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule } from \"../rules/scalar/declined-rule.mjs\";\nimport \"../rules/scalar/index.mjs\";\n\n//#region ../seal/src/validators/boolean-validator.ts\n/**\n* Boolean validator class\n*\n* Extends PrimitiveValidator — inherits enum/in/oneOf/allowsOnly/forbids/notIn.\n* Defines accepted/declined directly as real methods (not ScalarValidator field copies)\n* so they survive cloning correctly.\n*/\nvar BooleanValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(booleanRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a boolean type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"boolean\";\n\t}\n\t/** Value must be accepted (true, \"yes\", 1, \"on\", etc.) */\n\taccepted(errorMessage) {\n\t\treturn this.addRule(acceptedRule, errorMessage);\n\t}\n\t/** Value must be accepted if another field equals a value */\n\tacceptedIf(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be accepted unless another field equals a value */\n\tacceptedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be accepted if another field is required */\n\tacceptedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfRequiredRule, errorMessage, { field });\n\t}\n\t/** Value must be accepted if another field is present */\n\tacceptedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfPresentRule, errorMessage, { field });\n\t}\n\t/** Value must be accepted if another field is missing */\n\tacceptedWithout(field, errorMessage) {\n\t\treturn this.addRule(acceptedWithoutRule, errorMessage, { field });\n\t}\n\t/** Value must be declined (false, \"no\", 0, \"off\", etc.) */\n\tdeclined(errorMessage) {\n\t\treturn this.addRule(declinedRule, errorMessage);\n\t}\n\t/** Value must be declined if another field equals a value */\n\tdeclinedIf(field, value, errorMessage) {\n\t\treturn this.addRule(declinedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be declined unless another field equals a value */\n\tdeclinedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(declinedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/** Value must be declined if another field is required */\n\tdeclinedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(declinedIfRequiredRule, errorMessage, { field });\n\t}\n\t/** Value must be declined if another field is present */\n\tdeclinedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(declinedIfPresentRule, errorMessage, { field });\n\t}\n\t/** Value must be declined if another field is missing */\n\tdeclinedWithout(field, errorMessage) {\n\t\treturn this.addRule(declinedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* Value must be strictly true (not \"yes\", \"on\", 1, etc.)\n\t* @alias accepted - strict version\n\t*/\n\tmustBeTrue(errorMessage) {\n\t\treturn this.equal(true, errorMessage);\n\t}\n\t/**\n\t* Value must be strictly false (not \"no\", \"off\", 0, etc.)\n\t* @alias declined - strict version\n\t*/\n\tmustBeFalse(errorMessage) {\n\t\treturn this.equal(false, errorMessage);\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* @note accepted/declined rules and all cross-field boolean rules\n\t* are not representable in JSON Schema and are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.boolean().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"boolean\" }\n\t*\n\t* v.boolean().nullable().toJsonSchema(\"openapi-3.0\")\n\t* // → { type: \"boolean\", nullable: true }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { type: \"boolean\" };\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { BooleanValidator };\n//# sourceMappingURL=boolean-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/computed-validator.ts\n/**\n* Computed field validator\n*\n* Computes a value based on other validated fields in the schema.\n* The computed value is persisted and can optionally be validated.\n*\n* @example\n* ```ts\n* // Basic computed field\n* const schema = v.object({\n* title: v.string().required(),\n* slug: v.computed(data => slugify(data.title)),\n* });\n*\n* // With result validation\n* const schema = v.object({\n* title: v.string().required(),\n* slug: v.computed(\n* data => slugify(data.title),\n* v.string().minLength(3)\n* ),\n* });\n*\n* // Async computation\n* const schema = v.object({\n* image: v.string().url(),\n* thumbnail: v.computed(async data => {\n* return await generateThumbnail(data.image);\n* }),\n* });\n* ```\n*/\nvar ComputedValidator = class extends BaseValidator {\n\t/**\n\t* Create a new computed field validator\n\t*\n\t* @param callback - Function to compute the value from validated data\n\t* @param resultValidator - Optional validator to validate the computed result\n\t*/\n\tconstructor(callback, resultValidator) {\n\t\tsuper();\n\t\tthis.callback = callback;\n\t\tthis.resultValidator = resultValidator;\n\t}\n\t/**\n\t* Execute the callback and optionally validate the result\n\t*/\n\tasync validate(data, context) {\n\t\ttry {\n\t\t\tconst result = await this.callback(data, context);\n\t\t\tif (this.resultValidator) {\n\t\t\t\tconst validation = await this.resultValidator.validate(result, context);\n\t\t\t\tif (!validation.isValid) return {\n\t\t\t\t\tisValid: false,\n\t\t\t\t\terrors: validation.errors,\n\t\t\t\t\tdata: void 0\n\t\t\t\t};\n\t\t\t\treturn {\n\t\t\t\t\tisValid: true,\n\t\t\t\t\terrors: [],\n\t\t\t\t\tdata: validation.data\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tisValid: true,\n\t\t\t\terrors: [],\n\t\t\t\tdata: result\n\t\t\t};\n\t\t} catch (error) {\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors: [{\n\t\t\t\t\ttype: \"computed\",\n\t\t\t\t\terror: error instanceof Error ? error.message : \"Computed field callback failed\",\n\t\t\t\t\tinput: context.path\n\t\t\t\t}],\n\t\t\t\tdata: void 0\n\t\t\t};\n\t\t}\n\t}\n\t/**\n\t* Clone this validator with all its configuration\n\t* Critical for ObjectValidator.clone(), extend(), merge(), etc.\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.callback = this.callback;\n\t\tcloned.resultValidator = this.resultValidator?.clone();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Computed fields don't have a specific type to match\n\t*/\n\tmatchesType(value) {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Computed fields are server-side runtime values — they have no input schema\n\t* and cannot be represented in JSON Schema. Calling this method is always a\n\t* programming error.\n\t*\n\t* @throws Error Always throws — computed/managed fields have no JSON Schema representation.\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\tthrow new Error(\"[Seal] toJsonSchema() is not supported on ComputedValidator / ManagedValidator. Computed fields are runtime-only and have no input JSON Schema representation. ObjectValidator.toJsonSchema() automatically skips computed fields — do not call toJsonSchema() on a computed validator directly.\");\n\t}\n};\n\n//#endregion\nexport { ComputedValidator };\n//# sourceMappingURL=computed-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { isDateValue } from \"../helpers/date-helpers.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toUTCMutator } from \"../mutators/date-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from \"../rules/date/date.mjs\";\nimport { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from \"../rules/date/date-comparison-rules.mjs\";\nimport { businessDayRule, weekdaysRule, weekendRule } from \"../rules/date/date-day-rules.mjs\";\nimport { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from \"../rules/date/date-field-comparison-rules.mjs\";\nimport { betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from \"../rules/date/date-period-rules.mjs\";\nimport { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from \"../rules/date/date-relative-rules.mjs\";\nimport { betweenAgeRule, birthdayRule, leapYearRule } from \"../rules/date/date-special-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport dayjs from \"dayjs\";\n\n//#region ../seal/src/validators/date-validator.ts\n/**\n* Date validator class\n*/\nvar DateValidator = class extends BaseValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableMutator(dateMutator);\n\t\tthis.addMutableRule(dateRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a Date type\n\t*/\n\tmatchesType(value) {\n\t\treturn isDateValue(value);\n\t}\n\t/**\n\t* Convert date to ISO string format\n\t* @category transformer\n\t*/\n\ttoISOString() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? data.toISOString() : data);\n\t}\n\t/** Convert date to Unix timestamp (milliseconds) */\n\ttoTimestamp() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? data.getTime() : data);\n\t}\n\t/** Convert date to specific format using dayjs */\n\ttoFormat(format) {\n\t\treturn this.addTransformer((data, { options }) => data instanceof Date ? dayjs(data).format(options.format) : data, { format });\n\t}\n\t/** Convert to date only (remove time, returns YYYY-MM-DD) */\n\ttoDateOnly() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? dayjs(data).format(\"YYYY-MM-DD\") : data, { __jsonSchemaFormat: \"date\" });\n\t}\n\t/** Convert to time only (returns HH:MM:SS) */\n\ttoTimeOnly() {\n\t\treturn this.addTransformer((data) => data instanceof Date ? dayjs(data).format(\"HH:mm:ss\") : data, { __jsonSchemaFormat: \"time\" });\n\t}\n\t/**\n\t* Convert date to start of day (00:00:00)\n\t* @category mutator\n\t*/\n\ttoStartOfDay() {\n\t\treturn this.addMutator(toStartOfDayMutator);\n\t}\n\t/** Convert date to end of day (23:59:59.999) */\n\ttoEndOfDay() {\n\t\treturn this.addMutator(toEndOfDayMutator);\n\t}\n\t/** Add or subtract days from date */\n\taddDays(days) {\n\t\treturn this.addMutator(addDaysMutator, { days });\n\t}\n\t/** Add or subtract months from date */\n\taddMonths(months) {\n\t\treturn this.addMutator(addMonthsMutator, { months });\n\t}\n\t/** Add or subtract years from date */\n\taddYears(years) {\n\t\treturn this.addMutator(addYearsMutator, { years });\n\t}\n\t/** Add or subtract hours from date */\n\taddHours(hours) {\n\t\treturn this.addMutator(addHoursMutator, { hours });\n\t}\n\t/** Convert date to UTC */\n\ttoUTC() {\n\t\treturn this.addMutator(toUTCMutator);\n\t}\n\t/** Set to start of month */\n\ttoStartOfMonth() {\n\t\treturn this.addMutator(toStartOfMonthMutator);\n\t}\n\t/** Set to end of month */\n\ttoEndOfMonth() {\n\t\treturn this.addMutator(toEndOfMonthMutator);\n\t}\n\t/** Set to start of year */\n\ttoStartOfYear() {\n\t\treturn this.addMutator(toStartOfYearMutator);\n\t}\n\t/** Set to end of year */\n\ttoEndOfYear() {\n\t\treturn this.addMutator(toEndOfYearMutator);\n\t}\n\t/**\n\t* Date must be greater than or equal to the given date or field (inclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @param dateOrField - Date, timestamp, date string, or field name\n\t*\n\t* @example\n\t* ```ts\n\t* // Value comparison\n\t* v.date().min('2024-01-01')\n\t* v.date().min(new Date())\n\t* v.date().min(1698278400000)\n\t*\n\t* // Field comparison\n\t* v.date().min('startsAt')\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tmin(dateOrField, errorMessage) {\n\t\treturn this.addRule(minDateRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be less than or equal to the given date or field (inclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tmax(dateOrField, errorMessage) {\n\t\treturn this.addRule(maxDateRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be strictly less than the given date or field (exclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tbefore(dateOrField, errorMessage) {\n\t\treturn this.addRule(beforeFieldRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be strictly greater than the given date or field (exclusive)\n\t*\n\t* Smart detection:\n\t* - Date instance, timestamp, or date string (with - or /) → value comparison\n\t* - Plain string → field comparison\n\t*\n\t* @category Validation Rule\n\t*/\n\tafter(dateOrField, errorMessage) {\n\t\treturn this.addRule(afterFieldRule, errorMessage, {\n\t\t\tdateOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/** Date must be between start and end dates */\n\tbetween(startDate, endDate, errorMessage) {\n\t\treturn this.addRule(betweenDatesRule, errorMessage, {\n\t\t\tstartDate,\n\t\t\tendDate\n\t\t});\n\t}\n\t/** Date must be exactly today */\n\ttoday(errorMessage) {\n\t\treturn this.addRule(todayRule, errorMessage);\n\t}\n\t/** Date must be today or in the future */\n\tfromToday(errorMessage) {\n\t\treturn this.addRule(fromTodayRule, errorMessage);\n\t}\n\t/** Date must be before today */\n\tbeforeToday(errorMessage) {\n\t\treturn this.addRule(beforeTodayRule, errorMessage);\n\t}\n\t/** Date must be after today (not including today) */\n\tafterToday(errorMessage) {\n\t\treturn this.addRule(afterTodayRule, errorMessage);\n\t}\n\t/** Date must be in the past */\n\tpast(errorMessage) {\n\t\treturn this.addRule(pastRule, errorMessage);\n\t}\n\t/** Date must be in the future */\n\tfuture(errorMessage) {\n\t\treturn this.addRule(futureRule, errorMessage);\n\t}\n\t/**\n\t* Date must be >= sibling field value (inclusive)\n\t* @category Validation Rule\n\t*/\n\tminSibling(field, errorMessage) {\n\t\treturn this.addRule(minDateRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be <= sibling field value (inclusive)\n\t* @category Validation Rule\n\t*/\n\tmaxSibling(field, errorMessage) {\n\t\treturn this.addRule(maxDateRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be < sibling field value (exclusive)\n\t* @category Validation Rule\n\t*/\n\tbeforeSibling(field, errorMessage) {\n\t\treturn this.addRule(beforeFieldRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be > sibling field value (exclusive)\n\t* @category Validation Rule\n\t*/\n\tafterSibling(field, errorMessage) {\n\t\treturn this.addRule(afterFieldRule, errorMessage, {\n\t\t\tdateOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Date must be the same as another field's date */\n\tsameAsField(field, errorMessage) {\n\t\treturn this.addRule(sameAsFieldDateRule, errorMessage, {\n\t\t\tfield,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/** Date must be the same as another sibling field's date */\n\tsameAsFieldSibling(field, errorMessage) {\n\t\treturn this.addRule(sameAsFieldDateRule, errorMessage, {\n\t\t\tfield,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Time must be from specific hour onwards (0-23) */\n\tfromHour(hour, errorMessage) {\n\t\treturn this.addRule(fromHourRule, errorMessage, { hour });\n\t}\n\t/** Time must be before specific hour (0-23) */\n\tbeforeHour(hour, errorMessage) {\n\t\treturn this.addRule(beforeHourRule, errorMessage, { hour });\n\t}\n\t/** Time must be between start and end hours (0-23) */\n\tbetweenHours(startHour, endHour, errorMessage) {\n\t\treturn this.addRule(betweenHoursRule, errorMessage, {\n\t\t\tstartHour,\n\t\t\tendHour\n\t\t});\n\t}\n\t/** Time must be from specific minute onwards (0-59) */\n\tfromMinute(minute, errorMessage) {\n\t\treturn this.addRule(fromMinuteRule, errorMessage, { minute });\n\t}\n\t/** Time must be before specific minute (0-59) */\n\tbeforeMinute(minute, errorMessage) {\n\t\treturn this.addRule(beforeMinuteRule, errorMessage, { minute });\n\t}\n\t/** Time must be between start and end minutes (0-59) */\n\tbetweenMinutes(startMinute, endMinute, errorMessage) {\n\t\treturn this.addRule(betweenMinutesRule, errorMessage, {\n\t\t\tstartMinute,\n\t\t\tendMinute\n\t\t});\n\t}\n\t/** Time must be between start and end times (HH:MM format) */\n\tbetweenTimes(startTime, endTime, errorMessage) {\n\t\treturn this.addRule(betweenTimesRule, errorMessage, {\n\t\t\tstartTime,\n\t\t\tendTime\n\t\t});\n\t}\n\t/** Age must be exactly the given years */\n\tage(years, errorMessage) {\n\t\treturn this.addRule(ageRule, errorMessage, { years });\n\t}\n\t/** Minimum age requirement */\n\tminAge(years, errorMessage) {\n\t\treturn this.addRule(minAgeRule, errorMessage, { years });\n\t}\n\t/** Maximum age requirement */\n\tmaxAge(years, errorMessage) {\n\t\treturn this.addRule(maxAgeRule, errorMessage, { years });\n\t}\n\t/** Age must be between min and max years */\n\tbetweenAge(minAge, maxAge, errorMessage) {\n\t\treturn this.addRule(betweenAgeRule, errorMessage, {\n\t\t\tminAge,\n\t\t\tmaxAge\n\t\t});\n\t}\n\t/** Date must be specific weekday */\n\tweekDay(day, errorMessage) {\n\t\treturn this.addRule(weekDayRule, errorMessage, { day });\n\t}\n\t/** Date must be one of specified weekdays */\n\tweekdays(days, errorMessage) {\n\t\treturn this.addRule(weekdaysRule, errorMessage, { days });\n\t}\n\t/** Date must be a weekend (Saturday or Sunday) */\n\tweekend(errorMessage) {\n\t\treturn this.addRule(weekendRule, errorMessage);\n\t}\n\t/** Date must be a business day (Monday-Friday) */\n\tbusinessDay(errorMessage) {\n\t\treturn this.addRule(businessDayRule, errorMessage);\n\t}\n\t/** Date must match specific format */\n\tformat(format, errorMessage) {\n\t\treturn this.addRule(dateRule, errorMessage, { format });\n\t}\n\t/** Date must be within X days from now (past or future) */\n\twithinDays(days, errorMessage) {\n\t\treturn this.addRule(withinDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be within X days in the past */\n\twithinPastDays(days, errorMessage) {\n\t\treturn this.addRule(withinPastDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be within X days in the future */\n\twithinFutureDays(days, errorMessage) {\n\t\treturn this.addRule(withinFutureDaysRule, errorMessage, { days });\n\t}\n\t/** Date must be in specific month (1-12) */\n\tmonth(month, errorMessage) {\n\t\treturn this.addRule(monthRule, errorMessage, { month });\n\t}\n\t/** Date must be in specific year */\n\tyear(year, errorMessage) {\n\t\treturn this.addRule(yearRule, errorMessage, { year });\n\t}\n\t/**\n\t* Date must be between start and end years\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenYears(startYear, endYear, errorMessage) {\n\t\treturn this.addRule(betweenYearsRule, errorMessage, {\n\t\t\tstartYear,\n\t\t\tendYear,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between start and end months (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenMonths(startMonth, endMonth, errorMessage) {\n\t\treturn this.addRule(betweenMonthsRule, errorMessage, {\n\t\t\tstartMonth,\n\t\t\tendMonth,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between start and end days (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetweenDays(startDay, endDay, errorMessage) {\n\t\treturn this.addRule(betweenDaysRule, errorMessage, {\n\t\t\tstartDay,\n\t\t\tendDay,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field years\n\t* @category Validation Rule\n\t*/\n\tbetweenYearsSibling(startYearField, endYearField, errorMessage) {\n\t\treturn this.addRule(betweenYearsRule, errorMessage, {\n\t\t\tstartYear: startYearField,\n\t\t\tendYear: endYearField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field months\n\t* @category Validation Rule\n\t*/\n\tbetweenMonthsSibling(startMonthField, endMonthField, errorMessage) {\n\t\treturn this.addRule(betweenMonthsRule, errorMessage, {\n\t\t\tstartMonth: startMonthField,\n\t\t\tendMonth: endMonthField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Date must be between sibling field days\n\t* @category Validation Rule\n\t*/\n\tbetweenDaysSibling(startDayField, endDayField, errorMessage) {\n\t\treturn this.addRule(betweenDaysRule, errorMessage, {\n\t\t\tstartDay: startDayField,\n\t\t\tendDay: endDayField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Year must be >= given year or field\n\t* Smart detection: number or field name\n\t*\n\t* @example\n\t* ```ts\n\t* // Value comparison\n\t* v.date().minYear(2024)\n\t*\n\t* // Field comparison\n\t* v.date().minYear('startYear')\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tminYear(yearOrField, errorMessage) {\n\t\treturn this.addRule(minYearRule, errorMessage, {\n\t\t\tyearOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Year must be <= given year or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxYear(yearOrField, errorMessage) {\n\t\treturn this.addRule(maxYearRule, errorMessage, {\n\t\t\tyearOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Month must be >= given month or field (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tminMonth(monthOrField, errorMessage) {\n\t\treturn this.addRule(minMonthRule, errorMessage, {\n\t\t\tmonthOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Month must be <= given month or field (1-12)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxMonth(monthOrField, errorMessage) {\n\t\treturn this.addRule(maxMonthRule, errorMessage, {\n\t\t\tmonthOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Day must be >= given day or field (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tminDay(dayOrField, errorMessage) {\n\t\treturn this.addRule(minDayRule, errorMessage, {\n\t\t\tdayOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Day must be <= given day or field (1-31)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmaxDay(dayOrField, errorMessage) {\n\t\treturn this.addRule(maxDayRule, errorMessage, {\n\t\t\tdayOrField,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Year must be >= sibling field year\n\t* @category Validation Rule\n\t*/\n\tminYearSibling(field, errorMessage) {\n\t\treturn this.addRule(minYearRule, errorMessage, {\n\t\t\tyearOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Year must be <= sibling field year\n\t* @category Validation Rule\n\t*/\n\tmaxYearSibling(field, errorMessage) {\n\t\treturn this.addRule(maxYearRule, errorMessage, {\n\t\t\tyearOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Month must be >= sibling field month\n\t* @category Validation Rule\n\t*/\n\tminMonthSibling(field, errorMessage) {\n\t\treturn this.addRule(minMonthRule, errorMessage, {\n\t\t\tmonthOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Month must be <= sibling field month\n\t* @category Validation Rule\n\t*/\n\tmaxMonthSibling(field, errorMessage) {\n\t\treturn this.addRule(maxMonthRule, errorMessage, {\n\t\t\tmonthOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Day must be >= sibling field day\n\t* @category Validation Rule\n\t*/\n\tminDaySibling(field, errorMessage) {\n\t\treturn this.addRule(minDayRule, errorMessage, {\n\t\t\tdayOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Day must be <= sibling field day\n\t* @category Validation Rule\n\t*/\n\tmaxDaySibling(field, errorMessage) {\n\t\treturn this.addRule(maxDayRule, errorMessage, {\n\t\t\tdayOrField: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/** Date must be in specific quarter (1-4) */\n\tquarter(quarter, errorMessage) {\n\t\treturn this.addRule(quarterRule, errorMessage, { quarter });\n\t}\n\t/** Valid birthday (not in future, reasonable age) */\n\tbirthday(minAge, maxAge, errorMessage) {\n\t\treturn this.addRule(birthdayRule, errorMessage, {\n\t\t\tminAge,\n\t\t\tmaxAge\n\t\t});\n\t}\n\t/** Date must be in a leap year */\n\tleapYear(errorMessage) {\n\t\treturn this.addRule(leapYearRule, errorMessage);\n\t}\n\t/**\n\t* Set default value as current time of exeuction\n\t*/\n\tdefaultNow() {\n\t\treturn this.default(() => /* @__PURE__ */ new Date());\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Maps DateValidator to JSON Schema format keywords.\n\t* Default is `date-time`. If `.toDateOnly()` or `.toTimeOnly()` are used,\n\t* falls back to `date` or `time` formats respectively.\n\t*\n\t* @example\n\t* ```ts\n\t* v.date().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", format: \"date-time\" }\n\t*\n\t* v.date().toDateOnly().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", format: \"date\" }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"string\",\n\t\t\tformat: \"date-time\"\n\t\t};\n\t\tconst dateOpts = getRuleOptions(this.rules, \"date\");\n\t\tif (dateOpts?.format === \"YYYY-MM-DD\") schema.format = \"date\";\n\t\telse if (dateOpts?.format === \"HH:mm:ss\") schema.format = \"time\";\n\t\tif (schema.format === \"date-time\") for (const t of this.dataTransformers) {\n\t\t\tconst hint = t.options?.__jsonSchemaFormat;\n\t\t\tif (hint === \"date\" || hint === \"time\") {\n\t\t\t\tschema.format = hint;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst userFormat = t.options?.format;\n\t\t\tif (userFormat === \"YYYY-MM-DD\") {\n\t\t\t\tschema.format = \"date\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (userFormat === \"HH:mm:ss\") {\n\t\t\t\tschema.format = \"time\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { DateValidator };\n//# sourceMappingURL=date-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { isEmptyValue } from \"../helpers/is-empty-value.mjs\";\nimport { presentRule } from \"../rules/core/required.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { literalRule } from \"../rules/common/literal.mjs\";\n\n//#region ../seal/src/validators/literal-validator.ts\n/**\n* Literal validator class\n*\n* Accepts a fixed tuple of primitive literal values (string, number, boolean).\n* The TypeScript type narrows to the union of those literals — `v.literal(\"a\", \"b\")`\n* infers as `\"a\" | \"b\"`, not `string`. Use for discriminator fields, enum-like\n* unions of constants, and any case where `oneOf([...])` would lose literal types.\n*\n* @example\n* v.literal(\"items\") // type: \"items\"\n* v.literal(\"draft\", \"published\") // type: \"draft\" | \"published\"\n* v.literal(1, 2, 3) // type: 1 | 2 | 3\n* v.literal(true) // type: true\n*/\nvar LiteralValidator = class extends BaseValidator {\n\tconstructor(values, errorMessage) {\n\t\tsuper();\n\t\tthis.values = values;\n\t\tthis.addMutableRule(literalRule, errorMessage, { values });\n\t\tif (values.some((value) => isEmptyValue(value))) this.requiredRule = this.createRule(presentRule);\n\t}\n\t/**\n\t* Check if value is one of the configured literals\n\t*/\n\tmatchesType(value) {\n\t\treturn this.values.includes(value);\n\t}\n\t/**\n\t* Clone the validator, preserving the literal `values` set.\n\t*\n\t* The base `clone()` only copies `BaseValidator` fields, so without this\n\t* override a cloned literal loses its public `values` array — which breaks\n\t* any consumer that reads it (e.g. `discriminatedUnion` branch routing).\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.values = this.values;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Single literal → `{ const: <value> }`. Multiple → `{ enum: [...] }`.\n\t*\n\t* @example\n\t* ```ts\n\t* v.literal(\"items\").toJsonSchema()\n\t* // → { const: \"items\" }\n\t*\n\t* v.literal(\"draft\", \"published\").toJsonSchema()\n\t* // → { enum: [\"draft\", \"published\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = this.values.length === 1 ? { const: this.values[0] } : { enum: [...this.values] };\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { LiteralValidator };\n//# sourceMappingURL=literal-validator.mjs.map","import { applyNullable, wrapNullableStrict } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { LiteralValidator } from \"./literal-validator.mjs\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/discriminated-union-validator.ts\n/**\n* Discriminated union validator — routes payloads by a shared discriminator field.\n*\n* Plain `v.union()` falls back to `matchesType()` to pick a branch, which is\n* coarse for object-vs-object unions (every branch matches \"is plain object\").\n* Discriminated union reads a known field's value and routes directly to the\n* matching branch, producing precise errors instead of confused mash from the\n* wrong branch.\n*\n* **Construction-time validation.** Every branch must:\n* - Be an `ObjectValidator`\n* - Declare the discriminator field\n* - Type the discriminator as `v.literal(...)` (single or multi-literal both work)\n* - Not collide with another branch's literal values\n*\n* Misconfigurations throw eagerly so tests catch them at schema-build time.\n*\n* @example\n* ```ts\n* const email = v.object({ type: v.literal(\"email\"), email: v.string().email() });\n* const sms = v.object({ type: v.literal(\"sms\"), phone: v.string() });\n* const push = v.object({ type: v.literal(\"push\"), deviceId: v.string() });\n*\n* const notif = v.discriminatedUnion(\"type\", [email, sms, push]);\n*\n* await validate(notif, { type: \"sms\", phone: \"555-1234\" });\n* // → routes to sms branch only; errors (if any) come from sms\n* ```\n*\n* @see `domains/seal/plans/2026-05-12-discriminated-union.md`\n*/\nvar DiscriminatedUnionValidator = class DiscriminatedUnionValidator extends BaseValidator {\n\tconstructor(discriminator, validators) {\n\t\tsuper();\n\t\tthis.discriminator = discriminator;\n\t\tthis.validators = validators;\n\t\tthis.branches = DiscriminatedUnionValidator.buildBranchMap(discriminator, validators);\n\t}\n\t/**\n\t* Walk every branch, pull out the discriminator's literal values, and build\n\t* the lookup map. Throws on misconfiguration (missing discriminator,\n\t* non-literal discriminator, duplicate literal value).\n\t*/\n\tstatic buildBranchMap(discriminator, validators) {\n\t\tconst map = /* @__PURE__ */ new Map();\n\t\tfor (const branch of validators) {\n\t\t\tconst discriminatorValidator = branch.schema?.[discriminator];\n\t\t\tif (!discriminatorValidator) throw new Error(`[Seal] discriminatedUnion: branch missing discriminator field \"${discriminator}\"`);\n\t\t\tif (!(discriminatorValidator instanceof LiteralValidator)) throw new Error(`[Seal] discriminatedUnion: discriminator \"${discriminator}\" must be v.literal(...) on every branch`);\n\t\t\tfor (const value of discriminatorValidator.values) {\n\t\t\t\tif (map.has(value)) throw new Error(`[Seal] discriminatedUnion: duplicate discriminator value \"${String(value)}\"`);\n\t\t\t\tmap.set(value, branch);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\tasync validate(data, context) {\n\t\tif (data === null && this.isNullable) return {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: null\n\t\t};\n\t\tif (!isPlainObject(data)) return {\n\t\t\tisValid: false,\n\t\t\terrors: [{\n\t\t\t\ttype: \"discriminatedUnion\",\n\t\t\t\terror: `Expected object with discriminator field \"${this.discriminator}\"`,\n\t\t\t\tinput: context.key || context.path || \"value\"\n\t\t\t}],\n\t\t\tdata: void 0\n\t\t};\n\t\tconst discriminatorValue = data[this.discriminator];\n\t\tconst branch = this.branches.get(discriminatorValue);\n\t\tif (!branch) {\n\t\t\tconst allowed = [...this.branches.keys()].map((k) => String(k)).join(\", \");\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors: [{\n\t\t\t\t\ttype: \"discriminatedUnion\",\n\t\t\t\t\terror: `Field \"${this.discriminator}\" must be one of: ${allowed}`,\n\t\t\t\t\tinput: this.discriminator\n\t\t\t\t}],\n\t\t\t\tdata: void 0\n\t\t\t};\n\t\t}\n\t\treturn branch.validate(data, context);\n\t}\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.discriminator = this.discriminator;\n\t\tcloned.validators = this.validators.map((v) => v.clone());\n\t\tcloned.branches = DiscriminatedUnionValidator.buildBranchMap(cloned.discriminator, cloned.validators);\n\t\treturn cloned;\n\t}\n\t/**\n\t* Emit `oneOf` of branch schemas. Each branch's own `toJsonSchema()` handles\n\t* its `properties.{discriminator}.const` and the surrounding required/optional\n\t* structure — we just enumerate.\n\t*\n\t* For `openai-strict`: the per-branch ObjectValidator already inflates\n\t* `required` to include every field; `oneOf` is OpenAI-accepted as long as\n\t* each branch passes strict rules independently.\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { oneOf: this.validators.map((v) => v.toJsonSchema(target)) };\n\t\tif (this.isNullable) {\n\t\t\tif (target === \"openai-strict\") return wrapNullableStrict(schema);\n\t\t\tapplyNullable(schema, target);\n\t\t}\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { DiscriminatedUnionValidator };\n//# sourceMappingURL=discriminated-union-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { absMutator, ceilMutator, floorMutator, roundMutator, toFixedMutator } from \"../mutators/number-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from \"../rules/number/number-rules.mjs\";\nimport { lengthRule, maxLengthRule, minLengthRule } from \"../rules/length/length-rules.mjs\";\nimport { numberRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\n\n//#region ../seal/src/validators/number-validator.ts\n/**\n* Number validator class - base for Int and Float validators\n*/\nvar NumberValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(numberRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a number type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"number\" && !isNaN(value);\n\t}\n\t/**\n\t* Value must be equal or higher than the given number or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmin(min, errorMessage) {\n\t\treturn this.addRule(minRule, errorMessage, {\n\t\t\tmin,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be equal or less than the given number or field\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tmax(max, errorMessage) {\n\t\treturn this.addRule(maxRule, errorMessage, {\n\t\t\tmax,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be >= sibling field value\n\t* @category Validation Rule\n\t*/\n\tminSibling(field, errorMessage) {\n\t\treturn this.addRule(minRule, errorMessage, {\n\t\t\tmin: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value must be <= sibling field value\n\t* @category Validation Rule\n\t*/\n\tmaxSibling(field, errorMessage) {\n\t\treturn this.addRule(maxRule, errorMessage, {\n\t\t\tmax: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value must be strictly greater than the given number or field (>)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tgreaterThan(value, errorMessage) {\n\t\treturn this.addRule(greaterThanRule, errorMessage, {\n\t\t\tvalue,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be strictly less than the given number or field (<)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tlessThan(value, errorMessage) {\n\t\treturn this.addRule(lessThanRule, errorMessage, {\n\t\t\tvalue,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Alias for greaterThan() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tgt(value, errorMessage) {\n\t\treturn this.greaterThan(value, errorMessage);\n\t}\n\t/**\n\t* Alias for lessThan() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tlt(value, errorMessage) {\n\t\treturn this.lessThan(value, errorMessage);\n\t}\n\t/**\n\t* Value must be > sibling field value\n\t* @category Validation Rule\n\t*/\n\tgreaterThanSibling(field, errorMessage) {\n\t\treturn this.addRule(greaterThanRule, errorMessage, {\n\t\t\tvalue: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Alias for greaterThanSibling() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tgtSibling(field, errorMessage) {\n\t\treturn this.greaterThanSibling(field, errorMessage);\n\t}\n\t/**\n\t* Value must be < sibling field value\n\t* @category Validation Rule\n\t*/\n\tlessThanSibling(field, errorMessage) {\n\t\treturn this.addRule(lessThanRule, errorMessage, {\n\t\t\tvalue: field,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Alias for lessThanSibling() - shorter syntax\n\t* @category Validation Rule\n\t*/\n\tltSibling(field, errorMessage) {\n\t\treturn this.lessThanSibling(field, errorMessage);\n\t}\n\t/** Value must be a modulo of the given number */\n\tmodulo(value, errorMessage) {\n\t\treturn this.addRule(moduloRule, errorMessage, { value });\n\t}\n\t/**\n\t* Alias for modulo() - Value must be divisible by the given number\n\t*/\n\tdivisibleBy(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/**\n\t* Alias for modulo() - Value must be a multiple of the given number\n\t*/\n\tmultipleOf(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/**\n\t* Alias for modulo() - Value must be a multiple of the given number\n\t*/\n\tmodulusOf(value, errorMessage) {\n\t\treturn this.modulo(value, errorMessage);\n\t}\n\t/** Accept only numbers higher than 0 */\n\tpositive(errorMessage) {\n\t\treturn this.addRule(positiveRule, errorMessage);\n\t}\n\t/** Accept only negative numbers */\n\tnegative(errorMessage) {\n\t\treturn this.addRule(negativeRule, errorMessage);\n\t}\n\t/** Accept only odd numbers */\n\todd(errorMessage) {\n\t\treturn this.addRule(oddRule, errorMessage);\n\t}\n\t/** Accept only even numbers */\n\teven(errorMessage) {\n\t\treturn this.addRule(evenRule, errorMessage);\n\t}\n\t/**\n\t* Accept only numbers between the given two numbers or fields (Inclusive)\n\t* Smart detection: number or field name\n\t*\n\t* @category Validation Rule\n\t*/\n\tbetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenNumbersRule, errorMessage, {\n\t\t\tmin,\n\t\t\tmax,\n\t\t\tscope: \"global\"\n\t\t});\n\t}\n\t/**\n\t* Value must be between sibling field values\n\t* @category Validation Rule\n\t*/\n\tbetweenSibling(minField, maxField, errorMessage) {\n\t\treturn this.addRule(betweenNumbersRule, errorMessage, {\n\t\t\tmin: minField,\n\t\t\tmax: maxField,\n\t\t\tscope: \"sibling\"\n\t\t});\n\t}\n\t/**\n\t* Value (as a string) must be exactly this many characters.\n\t* Useful for fixed-format numeric codes (e.g. 4-digit PIN).\n\t*/\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/** Value (as string representation) length must be ≥ min */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** Value (as string representation) length must be ≤ max */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/**\n\t* Convert value to its absolute value\n\t*/\n\tabs() {\n\t\treturn this.addMutator(absMutator);\n\t}\n\t/**\n\t* Round value up to the nearest integer\n\t*/\n\tceil() {\n\t\treturn this.addMutator(ceilMutator);\n\t}\n\t/**\n\t* Round value down to the nearest integer\n\t*/\n\tfloor() {\n\t\treturn this.addMutator(floorMutator);\n\t}\n\t/**\n\t* Round value to the nearest integer or specified decimals\n\t*/\n\tround(decimals = 0) {\n\t\treturn this.addMutator(roundMutator, { decimals });\n\t}\n\t/**\n\t* Round to a fixed number of decimal places, keeping the value a **number**.\n\t*\n\t* `v.number().toFixed(2)` on `3.14159` yields `3.14`, not `\"3.14\"` — a number\n\t* schema has to output a number, or its own type rule rejects the result.\n\t* Format to a fixed-point *string* at the presentation edge instead.\n\t*\n\t* @example\n\t* v.number().toFixed(2) // 3.14159 → 3.14\n\t*/\n\ttoFixed(decimals = 2) {\n\t\treturn this.addMutator(toFixedMutator, { decimals });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Returns `{ type: \"number\" }` with numeric constraint keywords.\n\t* IntValidator overrides `type` to `\"integer\"`.\n\t*\n\t* @note Sibling-scoped rules (minSibling, maxSibling, etc.) are not representable\n\t* in JSON Schema and are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.number().min(0).max(100).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"number\", minimum: 0, maximum: 100 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.buildNumberJsonSchema(\"number\", target);\n\t}\n\t/**\n\t* Shared logic for number/integer JSON Schema generation.\n\t* Called by NumberValidator.toJsonSchema() (→ type: \"number\")\n\t* and IntValidator.toJsonSchema() (→ type: \"integer\").\n\t*/\n\tbuildNumberJsonSchema(type, target) {\n\t\tconst schema = { type };\n\t\tconst minOpts = getRuleOptions(this.rules, \"min\");\n\t\tif (minOpts?.min !== void 0 && typeof minOpts.min === \"number\") schema.minimum = minOpts.min;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"max\");\n\t\tif (maxOpts?.max !== void 0 && typeof maxOpts.max === \"number\") schema.maximum = maxOpts.max;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenNumbers\");\n\t\tif (betweenOpts) {\n\t\t\tif (typeof betweenOpts.min === \"number\") schema.minimum = betweenOpts.min;\n\t\t\tif (typeof betweenOpts.max === \"number\") schema.maximum = betweenOpts.max;\n\t\t}\n\t\tconst gtOpts = getRuleOptions(this.rules, \"greaterThan\");\n\t\tif (gtOpts?.value !== void 0 && typeof gtOpts.value === \"number\") if (target === \"draft-07\") {\n\t\t\tschema.minimum = gtOpts.value;\n\t\t\tschema.exclusiveMinimum = true;\n\t\t} else schema.exclusiveMinimum = gtOpts.value;\n\t\tconst ltOpts = getRuleOptions(this.rules, \"lessThan\");\n\t\tif (ltOpts?.value !== void 0 && typeof ltOpts.value === \"number\") if (target === \"draft-07\") {\n\t\t\tschema.maximum = ltOpts.value;\n\t\t\tschema.exclusiveMaximum = true;\n\t\t} else schema.exclusiveMaximum = ltOpts.value;\n\t\tconst moduloOpts = getRuleOptions(this.rules, \"modulo\");\n\t\tif (moduloOpts?.value !== void 0 && typeof moduloOpts.value === \"number\") schema.multipleOf = moduloOpts.value;\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) schema.enum = inOpts.values;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { NumberValidator };\n//# sourceMappingURL=number-validator.mjs.map","import { floatRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\n\n//#region ../seal/src/validators/float-validator.ts\n/**\n* Float validator class\n*/\nvar FloatValidator = class extends NumberValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(floatRule, errorMessage);\n\t}\n};\n\n//#endregion\nexport { FloatValidator };\n//# sourceMappingURL=float-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\nimport { instanceofRule } from \"../rules/common/instanceof.mjs\";\n\n//#region ../seal/src/validators/instanceof-validator.ts\n/**\n* InstanceOf validator class\n*\n* Validates that the value is an instance of the given constructor (`value instanceof Ctor`).\n* Useful for File uploads, Buffer/Uint8Array payloads, and custom domain classes —\n* anywhere a runtime class identity is the right contract.\n*\n* Note: `Date` is already covered by `v.date()` with richer date-specific rules;\n* reach for `v.instanceof(Date)` only when you specifically want raw `instanceof`\n* semantics with no normalization.\n*\n* @example\n* v.instanceof(File) // type: File\n* v.instanceof(Buffer) // type: Buffer\n* v.instanceof(MyClass) // type: MyClass\n*/\nvar InstanceOfValidator = class extends BaseValidator {\n\tconstructor(ctor, errorMessage) {\n\t\tsuper();\n\t\tthis.ctor = ctor;\n\t\tthis.addMutableRule(instanceofRule, errorMessage, {\n\t\t\tctor,\n\t\t\tname: ctor.name || \"instance\"\n\t\t});\n\t}\n\t/**\n\t* Check if value is an instance of the configured constructor\n\t*/\n\tmatchesType(value) {\n\t\treturn value instanceof this.ctor;\n\t}\n\t/**\n\t* Clone the validator, preserving the target constructor.\n\t*\n\t* The base `clone()` only copies `BaseValidator` fields, so without this\n\t* override a cloned `instanceof` validator loses its `ctor` reference and\n\t* `matchesType()` would throw on the next call.\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.ctor = this.ctor;\n\t\treturn cloned;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Class instances are not representable in JSON Schema — returns an empty\n\t* schema (permissive). Consumers serializing to OpenAPI should attach an\n\t* appropriate format manually if needed (e.g. `{ type: \"string\", format: \"binary\" }`\n\t* for `File`).\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\treturn {};\n\t}\n};\n\n//#endregion\nexport { InstanceOfValidator };\n//# sourceMappingURL=instanceof-validator.mjs.map","import { intRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\n\n//#region ../seal/src/validators/int-validator.ts\n/**\n* Integer validator class\n*/\nvar IntValidator = class extends NumberValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(intRule, errorMessage);\n\t}\n\t/**\n\t* @inheritdoc — returns `{ type: \"integer\" }` instead of `{ type: \"number\" }`\n\t*\n\t* @example\n\t* ```ts\n\t* v.int().min(1).max(100).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"integer\", minimum: 1, maximum: 100 }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.buildNumberJsonSchema(\"integer\", target);\n\t}\n};\n\n//#endregion\nexport { IntValidator };\n//# sourceMappingURL=int-validator.mjs.map","import { BaseValidator } from \"./base-validator.mjs\";\n\n//#region ../seal/src/validators/lazy-validator.ts\n/**\n* Lazy validator — defers resolution of the inner validator until validate-time.\n*\n* Solves the chicken-and-egg of self-referencing schemas. JavaScript evaluates\n* an object literal before the `const` binding completes, so this can't work:\n*\n* ```ts\n* const categorySchema = v.object({\n* name: v.string(),\n* children: v.array(categorySchema), // ❌ ReferenceError\n* });\n* ```\n*\n* Wrap the recursive reference in `v.lazy(() => …)` — the thunk isn't invoked\n* during construction, only when `validate()` is called:\n*\n* ```ts\n* type Category = { name: string; children: Category[] };\n*\n* const categorySchema: ObjectValidator<...> = v.object({\n* name: v.string(),\n* children: v.array(v.lazy(() => categorySchema)),\n* });\n*\n* type T = Infer<typeof categorySchema>;\n* // { name: string; children: T[] } ← recursive type\n* ```\n*\n* The thunk is memoized — it's invoked once on the first validate (or\n* `matchesType` / `toJsonSchema`) call and the result is cached. The thunk is\n* expected to return a stable validator; calling it on every validate would be\n* wasteful and could mask bugs where the user accidentally returns a fresh\n* validator each time.\n*\n* **JSON Schema caveat.** v1 uses simple resolve-and-delegate — recursive\n* schemas will infinite-loop in `toJsonSchema()`. If you need JSON Schema for\n* a recursive shape, generate it manually with `$defs` + `$ref` until v2 lands.\n*\n* @see `domains/seal/plans/2026-05-12-lazy-validator.md`\n*/\nvar LazyValidator = class extends BaseValidator {\n\tconstructor(thunk) {\n\t\tsuper();\n\t\tthis.thunk = thunk;\n\t\tthis.requiredRule = null;\n\t\tthis.isOptional = true;\n\t}\n\t/**\n\t* Resolve the inner validator. Memoizes the result so subsequent calls\n\t* don't re-execute the thunk.\n\t*/\n\tresolve() {\n\t\tif (this.resolvedValidator === void 0) this.resolvedValidator = this.thunk();\n\t\treturn this.resolvedValidator;\n\t}\n\tasync validate(data, context) {\n\t\treturn this.resolve().validate(data, context);\n\t}\n\tmatchesType(value) {\n\t\treturn this.resolve().matchesType(value);\n\t}\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.thunk = this.thunk;\n\t\tcloned.resolvedValidator = void 0;\n\t\treturn cloned;\n\t}\n\t/**\n\t* JSON Schema generation — simple resolve-and-delegate.\n\t*\n\t* **Recursive schemas will infinite-loop.** Until v2 adds `$ref` + `$defs`\n\t* generation, callers needing JSON Schema for recursive shapes must build\n\t* the schema manually.\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn this.resolve().toJsonSchema(target);\n\t}\n};\n\n//#endregion\nexport { LazyValidator };\n//# sourceMappingURL=lazy-validator.mjs.map","import { ComputedValidator } from \"./computed-validator.mjs\";\n\n//#region ../seal/src/validators/managed-validator.ts\n/**\n* Managed field validator\n*\n* The callback is optional - if not provided, the framework can inject the value.\n* @example\n* ```ts\n* // With callback (framework executes it)\n* const schema = v.object({\n* name: v.string(),\n* createdAt: v.managed(() => new Date()),\n* updatedAt: v.managed(() => new Date()),\n* });\n*\n* // Without callback (framework injects value)\n* const schema = v.object({\n* name: v.string(),\n* id: v.managed(() => 1),\n* });\n* ```\n*/\nvar ManagedValidator = class extends ComputedValidator {\n\t/**\n\t* Create a new managed field validator\n\t*\n\t* @param callback - Optional function to generate the value\n\t* @param resultValidator - Optional validator to validate the generated result\n\t*/\n\tconstructor(callback, resultValidator) {\n\t\tconst computedCallback = (_data, context) => callback(context);\n\t\tsuper(computedCallback, resultValidator);\n\t}\n};\n\n//#endregion\nexport { ManagedValidator };\n//# sourceMappingURL=managed-validator.mjs.map","import { numericMutator } from \"../mutators/number-mutators.mjs\";\nimport { NumberValidator } from \"./number-validator.mjs\";\nimport { isNumeric } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/numeric-validator.ts\n/**\n* Numeric validator class - base for Int and Float validators either as number or string\n*/\nvar NumericValidator = class extends NumberValidator {\n\t/**\n\t* Constructor\n\t*/\n\tconstructor(errorMessage) {\n\t\tsuper(errorMessage);\n\t\tthis.addMutableMutator(numericMutator);\n\t}\n\t/**\n\t* Check if value is a numeric type\n\t*/\n\tmatchesType(value) {\n\t\treturn isNumeric(value);\n\t}\n};\n\n//#endregion\nexport { NumericValidator };\n//# sourceMappingURL=numeric-validator.mjs.map","import { applyNullable, wrapNullableStrict } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { objectTrimMutator, stripUnknownMutator } from \"../mutators/object-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { objectRule } from \"../rules/common/type-rules.mjs\";\nimport { unknownKeyRule } from \"../rules/common/unknown-key.mjs\";\nimport \"../rules/index.mjs\";\nimport { ComputedValidator } from \"./computed-validator.mjs\";\nimport { except } from \"@mongez/reinforcements\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/object-validator.ts\n/**\n* Object validator class with generic schema type for proper type inference.\n*\n* Threads two distinct inferred shapes into `BaseValidator`'s `TInput`/`TOutput`:\n*\n* - `TInput` = `InferInputObjectShape<TSchema>` — what `~standard.validate()`\n* accepts (caller's pre-validation payload; defaults/catches make\n* keys optional)\n* - `TOutput` = `InferOutputObjectShape<TSchema>` — what `~standard.validate()`\n* returns on success (post-default, post-catch shape; guaranteed\n* keys are required)\n*\n* Both helpers are used directly (not the full `Infer.*` walker) to avoid a\n* recursive class-base evaluation that would otherwise occur when the\n* brand-aware widening tries to inspect the class type.\n*/\nvar ObjectValidator = class ObjectValidator extends BaseValidator {\n\tconstructor(schema, errorMessage) {\n\t\tsuper();\n\t\tthis.schema = schema;\n\t\tthis.shouldAllowUnknown = false;\n\t\tthis.allowedKeys = [];\n\t\tthis.hasUnknownKeyRule = false;\n\t\tthis.addMutableRule(objectRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an object type (plain object, not array or date)\n\t*/\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\t/** Strip unknown keys from the data */\n\tstripUnknown() {\n\t\tconst validator = this.instance;\n\t\treturn validator.addMutator(stripUnknownMutator, { get allowedKeys() {\n\t\t\treturn validator.allowedKeys;\n\t\t} });\n\t}\n\t/** Add list of allowed keys that could be in the data but not necessarily validated */\n\tallow(...keys) {\n\t\tconst validator = this.instance;\n\t\tvalidator.allowedKeys.push(...keys);\n\t\treturn validator;\n\t}\n\t/** Trim values of the object properties */\n\ttrim(recursive = true) {\n\t\treturn this.instance.addMutator(objectTrimMutator, { recursive });\n\t}\n\t/** Whether to allow unknown properties\n\t* Please note it will allow only unknown direct children keys, not nested children keys\n\t*/\n\tallowUnknown(allow = true) {\n\t\tconst validator = this.instance;\n\t\tvalidator.shouldAllowUnknown = allow;\n\t\treturn validator;\n\t}\n\t/**\n\t* Create a copy of this object validator with the same configuration\n\t* Copies schema, rules, mutators, transformers, and object-specific settings\n\t*\n\t* @returns A new ObjectValidator instance with copied configuration\n\t*\n\t* @example\n\t* ```ts\n\t* const baseUser = v.object({ name: v.string() }).allowUnknown();\n\t* const userCopy = baseUser.clone();\n\t* // userCopy has the same schema and allowUnknown setting\n\t* ```\n\t*/\n\tclone(keys) {\n\t\tconst cloned = super.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key in this.schema) {\n\t\t\tif (keys && !keys.includes(key)) continue;\n\t\t\tnewSchema[key] = this.schema[key].clone();\n\t\t}\n\t\tcloned.schema = newSchema;\n\t\tcloned.shouldAllowUnknown = this.shouldAllowUnknown;\n\t\tcloned.allowedKeys = [...this.allowedKeys];\n\t\treturn cloned;\n\t}\n\t/**\n\t* Extend this schema with additional fields\n\t* Clones the current validator and adds new fields to the schema\n\t* **Keeps original configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* If an ObjectValidator is provided, only its schema is used - its configuration is ignored.\n\t* This is useful for creating reusable field collections that can be added to different schemas.\n\t*\n\t* @param schemaOrValidator - Plain schema object or ObjectValidator to extend with\n\t* @returns A new ObjectValidator with merged schema and original configuration\n\t*\n\t* @example\n\t* ```ts\n\t* // Extend with plain schema\n\t* const baseUser = v.object({\n\t* name: v.string().required(),\n\t* email: v.string().email().required()\n\t* }).allowUnknown();\n\t*\n\t* const adminUser = baseUser.extend({\n\t* role: v.string().in(['admin', 'superadmin']).required()\n\t* });\n\t* // adminUser has: name, email, role\n\t* // adminUser keeps: allowUnknown() from base ✅\n\t*\n\t* // Extend with ObjectValidator (only schema is used)\n\t* const auditFields = v.object({\n\t* createdAt: v.date().required(),\n\t* updatedAt: v.date().required()\n\t* }).stripUnknown(); // This config is ignored!\n\t*\n\t* const fullUser = baseUser.extend(auditFields);\n\t* // fullUser has: name, email, createdAt, updatedAt\n\t* // fullUser keeps: allowUnknown() from base (NOT stripUnknown from auditFields) ✅\n\t*\n\t* // Chain multiple extends\n\t* const complexSchema = baseUser\n\t* .extend(auditFields)\n\t* .extend({ metadata: v.object({}) });\n\t* ```\n\t*/\n\textend(schemaOrValidator) {\n\t\tconst extended = this.clone();\n\t\tconst schemaToAdd = schemaOrValidator instanceof ObjectValidator ? schemaOrValidator.schema : schemaOrValidator;\n\t\tfor (const key in schemaToAdd) extended.schema[key] = schemaToAdd[key].clone();\n\t\treturn extended;\n\t}\n\t/**\n\t* Merge with another ObjectValidator\n\t* Clones current validator, merges schemas, and **overrides configuration** with other validator's config\n\t*\n\t* Unlike extend(), merge() combines both schemas AND configurations.\n\t* The other validator's configuration (allowUnknown, stripUnknown, etc.) takes precedence.\n\t*\n\t* @param validator - Another ObjectValidator to merge with\n\t* @returns A new ObjectValidator with merged schema and configuration\n\t*\n\t* @example\n\t* ```ts\n\t* const baseUser = v.object({\n\t* name: v.string().required()\n\t* }).allowUnknown();\n\t*\n\t* const timestamps = v.object({\n\t* createdAt: v.date().required(),\n\t* updatedAt: v.date().required()\n\t* }).stripUnknown();\n\t*\n\t* const merged = baseUser.merge(timestamps);\n\t* // merged has: name, createdAt, updatedAt\n\t* // merged config: stripUnknown() from timestamps (overrides allowUnknown) ✅\n\t*\n\t* // Chain multiple merges\n\t* const full = baseUser.merge(timestamps).merge(softDeleteSchema);\n\t* ```\n\t*/\n\tmerge(validator) {\n\t\tconst merged = this.clone();\n\t\tfor (const key in validator.schema) merged.schema[key] = validator.schema[key].clone();\n\t\tmerged.shouldAllowUnknown = validator.shouldAllowUnknown;\n\t\tmerged.allowedKeys = [...merged.allowedKeys, ...validator.allowedKeys];\n\t\tmerged.rules.push(...validator.rules);\n\t\tmerged.mutators.push(...validator.mutators);\n\t\tmerged.dataTransformers.push(...validator.dataTransformers);\n\t\tmerged.attributesText = {\n\t\t\t...merged.attributesText,\n\t\t\t...validator.attributesText\n\t\t};\n\t\tmerged.translatedAttributes = {\n\t\t\t...merged.translatedAttributes,\n\t\t\t...validator.translatedAttributes\n\t\t};\n\t\treturn merged;\n\t}\n\t/**\n\t* Create a new schema with only the specified fields\n\t* Clones the current validator and keeps only the selected fields\n\t* **Preserves all configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* @param keys - Field names to keep in the schema\n\t* @returns A new ObjectValidator with only the picked fields\n\t*\n\t* @example\n\t* ```ts\n\t* const fullUser = v.object({\n\t* id: v.int().required(),\n\t* name: v.string().required(),\n\t* email: v.string().email().required(),\n\t* password: v.string().required(),\n\t* role: v.string()\n\t* }).allowUnknown();\n\t*\n\t* // For login - only need email and password\n\t* const loginSchema = fullUser.pick('email', 'password');\n\t* // loginSchema has: { email, password }\n\t* // loginSchema keeps: allowUnknown() ✅\n\t*\n\t* // For public profile\n\t* const publicSchema = fullUser.pick('id', 'name', 'role');\n\t* // publicSchema has: { id, name, role }\n\t* ```\n\t*/\n\tpick(...keys) {\n\t\tconst picked = this.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key of keys) if (key in picked.schema) newSchema[key] = picked.schema[key];\n\t\tpicked.schema = newSchema;\n\t\treturn picked;\n\t}\n\t/**\n\t* Mark all or the given schema fields as optional\n\t*/\n\tpartial(...keys) {\n\t\tconst validationSchema = this.clone();\n\t\tif (keys.length === 0) keys = Object.keys(validationSchema.schema);\n\t\tfor (const key of keys) validationSchema.schema[key] = validationSchema.schema[key].optional();\n\t\treturn validationSchema;\n\t}\n\t/**\n\t* Make the all or the given fields as required\n\t*/\n\trequiredFields(...keys) {\n\t\tconst validationSchema = this.clone();\n\t\tif (keys.length === 0) keys = Object.keys(validationSchema.schema);\n\t\tfor (const key of keys) validationSchema.schema[key] = validationSchema.schema[key].required();\n\t\treturn validationSchema;\n\t}\n\t/**\n\t* Create a new schema excluding the specified fields\n\t* Clones the current validator and removes the specified fields\n\t* **Preserves all configuration** (allowUnknown, stripUnknown, etc.)\n\t*\n\t* @param keys - Field names to exclude from the schema\n\t* @returns A new ObjectValidator without the excluded fields\n\t*\n\t* @example\n\t* ```ts\n\t* const fullUser = v.object({\n\t* id: v.int().required(),\n\t* name: v.string().required(),\n\t* email: v.string().email().required(),\n\t* password: v.string().required(),\n\t* role: v.string()\n\t* }).allowUnknown();\n\t*\n\t* // For updates - exclude id\n\t* const updateSchema = fullUser.without('id');\n\t* // updateSchema has: { name, email, password, role }\n\t* // updateSchema keeps: allowUnknown() ✅\n\t*\n\t* // For public API - exclude sensitive fields\n\t* const publicSchema = fullUser.without('password', 'role');\n\t* // publicSchema has: { id, name, email }\n\t*\n\t* // Combine with other methods\n\t* const patchSchema = fullUser.without('id', 'password');\n\t* // patchSchema has: { name, email, role }\n\t* ```\n\t*/\n\twithout(...keys) {\n\t\tconst filtered = this.clone();\n\t\tconst newSchema = {};\n\t\tfor (const key in filtered.schema) if (!keys.includes(key)) newSchema[key] = filtered.schema[key];\n\t\tfiltered.schema = newSchema;\n\t\treturn filtered;\n\t}\n\t/** Mutate the data */\n\tmutate(data, context) {\n\t\tif (!isPlainObject(data)) return data;\n\t\treturn super.mutate({ ...data }, context);\n\t}\n\t/** Validate the data */\n\tasync validate(data, context = { path: \"\" }) {\n\t\tcontext.schema = this.schema;\n\t\tconst mutatedData = await this.mutate(data, context);\n\t\tif (this.shouldAllowUnknown === false && !this.hasUnknownKeyRule) {\n\t\t\tthis.hasUnknownKeyRule = true;\n\t\t\tconst rule = this.addMutableRule(unknownKeyRule, void 0, {\n\t\t\t\tallowedKeys: this.allowedKeys,\n\t\t\t\tschema: this.schema\n\t\t\t});\n\t\t\tthis.setRuleAttributesList(rule);\n\t\t}\n\t\tconst result = await super.validate(mutatedData, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (data === void 0) return result;\n\t\tconst errors = [];\n\t\tconst validatedData = {};\n\t\tconst validationPromises = Object.keys(this.schema).filter((key) => !this.isComputedValidator(this.schema[key])).map(async (key) => {\n\t\t\tconst validator = this.schema[key];\n\t\t\tconst value = mutatedData?.[key] !== void 0 ? mutatedData[key] : validator.getDefaultValue();\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue,\n\t\t\t\tkey,\n\t\t\t\tpath: setKeyPath(context.path, key)\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(value, childContext);\n\t\t\tif (childResult.data !== void 0 && !validator.isOmitted()) validatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\tif (errors.length > 0) return {\n\t\t\tisValid: false,\n\t\t\terrors,\n\t\t\tdata: void 0\n\t\t};\n\t\tconst computedFields = this.getComputedFields();\n\t\tconst computedPromises = Object.keys(computedFields).map(async (key) => {\n\t\t\tconst validator = computedFields[key];\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: validatedData,\n\t\t\t\tvalue: void 0\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(validatedData, childContext);\n\t\t\tif (childResult.data !== void 0 && !validator.isOmitted()) validatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(computedPromises);\n\t\tif (errors.length > 0) return {\n\t\t\tisValid: false,\n\t\t\terrors,\n\t\t\tdata: void 0\n\t\t};\n\t\tconst cleanedData = removeUndefinedValues(validatedData);\n\t\tconst transformedData = await this.startTransformationPipeline(cleanedData, context);\n\t\treturn {\n\t\t\tisValid: true,\n\t\t\terrors: [],\n\t\t\tdata: this.shouldAllowUnknown === false ? transformedData : {\n\t\t\t\t...transformedData,\n\t\t\t\t...except(mutatedData, Object.keys(this.schema))\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Check if a validator is a computed or managed field\n\t* ManagedValidator extends ComputedValidator, so instanceof catches both\n\t*/\n\tisComputedValidator(validator) {\n\t\treturn validator instanceof ComputedValidator;\n\t}\n\t/**\n\t* Get all computed/managed fields from the schema\n\t*/\n\tgetComputedFields() {\n\t\tconst computed = {};\n\t\tfor (const [key, validator] of Object.entries(this.schema)) if (validator instanceof ComputedValidator) computed[key] = validator;\n\t\treturn computed;\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Recursively generates JSON Schema for all input fields in the schema.\n\t* Computed/managed fields are skipped — they have no input representation.\n\t*\n\t* **Standard targets** (`draft-2020-12`, `draft-07`, `openapi-3.0`):\n\t* - Fields marked `.optional()` are excluded from `required`.\n\t*\n\t* **`openai-strict` target** (OpenAI Structured Outputs):\n\t* - ALL fields appear in `required` — OpenAI rejects schemas with optional fields.\n\t* - Optional fields are instead expressed as nullable types:\n\t* `{ type: [\"string\", \"null\"] }` so the model can output `null` for them.\n\t* - Recursively applies `openai-strict` to all nested objects.\n\t*\n\t* @example\n\t* ```ts\n\t* v.object({\n\t* name: v.string().required(),\n\t* age: v.int().optional(),\n\t* }).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\",\n\t* // properties: { name: { type: \"string\" }, age: { type: \"integer\" } },\n\t* // required: [\"name\"], additionalProperties: false }\n\t*\n\t* v.object({\n\t* name: v.string().required(),\n\t* age: v.int().optional(),\n\t* }).toJsonSchema(\"openai-strict\")\n\t* // → { type: \"object\",\n\t* // properties: { name: { type: \"string\" }, age: { type: [\"integer\", \"null\"] } },\n\t* // required: [\"name\", \"age\"], ← all fields\n\t* // additionalProperties: false }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst properties = {};\n\t\tconst required = [];\n\t\tconst isOpenAIStrict = target === \"openai-strict\";\n\t\tfor (const [key, validator] of Object.entries(this.schema)) {\n\t\t\tif (validator instanceof ComputedValidator) continue;\n\t\t\tlet fieldSchema = validator.toJsonSchema(target);\n\t\t\tif (isOpenAIStrict) {\n\t\t\t\tif (validator.isOptional) fieldSchema = wrapNullableStrict(fieldSchema);\n\t\t\t\trequired.push(key);\n\t\t\t} else if (!validator.isOptional) required.push(key);\n\t\t\tproperties[key] = fieldSchema;\n\t\t}\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tproperties\n\t\t};\n\t\tif (required.length > 0) schema.required = required;\n\t\tif (!this.shouldAllowUnknown) schema.additionalProperties = false;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n/** Recursively remove undefined values from an object */\nfunction removeUndefinedValues(obj, visited = /* @__PURE__ */ new WeakMap()) {\n\tif (obj === null) return obj;\n\tif (Array.isArray(obj)) return obj.map((item) => removeUndefinedValues(item, visited));\n\tif (!isPlainObject(obj)) return obj;\n\tif (visited.has(obj)) return visited.get(obj);\n\tconst result = {};\n\tvisited.set(obj, result);\n\tfor (const [key, value] of Object.entries(obj)) if (value !== void 0) result[key] = removeUndefinedValues(value, visited);\n\treturn result;\n}\n\n//#endregion\nexport { ObjectValidator };\n//# sourceMappingURL=object-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { objectRule, plainObjectRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { isPlainObject } from \"@mongez/supportive-is\";\n\n//#region ../seal/src/validators/record-validator.ts\n/**\n* Record validator class - validates objects with dynamic keys and consistent value types\n*\n* @example\n* ```ts\n* // Translations object\n* v.record(v.string())\n* // Valid: { en: \"Hello\", ar: \"مرحبا\", fr: \"Bonjour\" }\n*\n* // User preferences\n* v.record(v.union([v.string(), v.number(), v.boolean()]))\n* // Valid: { theme: \"dark\", fontSize: 16, notifications: true }\n* ```\n*/\nvar RecordValidator = class extends BaseValidator {\n\tconstructor(valueValidator, errorMessage) {\n\t\tsuper();\n\t\tthis.valueValidator = valueValidator;\n\t\tthis.addMutableRule(objectRule, errorMessage);\n\t}\n\t/**\n\t* Validate it as plain object\n\t*/\n\tplainObject(errorMessage) {\n\t\treturn this.addRule(plainObjectRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a plain object type\n\t*/\n\tmatchesType(value) {\n\t\treturn isPlainObject(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.valueValidator = this.valueValidator.clone();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Validate record - iterate all keys and validate each value\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional record\n\t* fields would silently materialise as `{}` in the validated output.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!isPlainObject(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tconst validationPromises = Object.keys(mutatedData).map(async (key) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue: mutatedData[key],\n\t\t\t\tkey,\n\t\t\t\tpath: setKeyPath(context.path, key)\n\t\t\t};\n\t\t\tconst childResult = await this.valueValidator.validate(mutatedData[key], childContext);\n\t\t\tmutatedData[key] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Generates `{ type: \"object\", additionalProperties: <valueSchema> }` —\n\t* the standard JSON Schema for a dictionary/map with homogeneous values.\n\t*\n\t* @example\n\t* ```ts\n\t* v.record(v.string()).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\", additionalProperties: { type: \"string\" } }\n\t*\n\t* v.record(v.union([v.string(), v.number()])).toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"object\", additionalProperties: { oneOf: [{ type: \"string\" }, { type: \"number\" }] } }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tadditionalProperties: this.valueValidator.toJsonSchema(target)\n\t\t};\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { RecordValidator };\n//# sourceMappingURL=record-validator.mjs.map","import { getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { VALID_RULE, invalidRule } from \"../helpers/validation-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { numberMutator } from \"../mutators/number-mutators.mjs\";\nimport { stringMutator } from \"../mutators/scalar-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\nimport { acceptedIfPresentRule, acceptedIfRequiredRule, acceptedIfRule, acceptedRule, acceptedUnlessRule, acceptedWithoutRule } from \"../rules/scalar/accepted-rule.mjs\";\nimport { declinedIfPresentRule, declinedIfRequiredRule, declinedIfRule, declinedRule, declinedUnlessRule, declinedWithoutRule } from \"../rules/scalar/declined-rule.mjs\";\nimport \"../rules/scalar/index.mjs\";\n\n//#region ../seal/src/validators/scalar-validator.ts\n/**\n* Scalar validator class\n*\n* Core validator for scalar values (string, number, boolean).\n* Extends PrimitiveValidator (inherits enum/in/oneOf/allowsOnly/forbids/notIn)\n* and additionally provides type-coercion mutators and accepted/declined rules.\n*\n* Database methods (unique, exists, etc.) are injected by the framework\n*/\nvar ScalarValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule({\n\t\t\tname: \"scalar\",\n\t\t\tdefaultErrorMessage: \"The :input must be a scalar value\",\n\t\t\tasync validate(value, context) {\n\t\t\t\tif ([\n\t\t\t\t\t\"string\",\n\t\t\t\t\t\"number\",\n\t\t\t\t\t\"boolean\"\n\t\t\t\t].includes(typeof value)) return VALID_RULE;\n\t\t\t\treturn invalidRule(this, context);\n\t\t\t}\n\t\t}, errorMessage);\n\t}\n\t/**\n\t* Add matches type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\";\n\t}\n\t/**\n\t* Mutate the scalar value to be number\n\t*/\n\tasNumber() {\n\t\treturn this.addMutator(numberMutator);\n\t}\n\t/**\n\t* Mutate the scalar value to be string\n\t*/\n\tasString() {\n\t\treturn this.addMutator(stringMutator);\n\t}\n\t/**\n\t* Accepted value\n\t* The value will be valid if it equals 1 | \"1\" | true | \"true\" | \"yes\" | \"y\" | \"on\"\n\t*/\n\taccepted(errorMessage) {\n\t\treturn this.addRule(acceptedRule, errorMessage);\n\t}\n\t/**\n\t* Accepted value if another field's value equals to a specific value\n\t*/\n\tacceptedIf(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Accepted value if another field's value is not equal to the given value\n\t*/\n\tacceptedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(acceptedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Accepted value if another field is required\n\t*/\n\tacceptedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfRequiredRule, errorMessage, { field });\n\t}\n\t/**\n\t* Accepted value if another field is present\n\t*/\n\tacceptedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(acceptedIfPresentRule, errorMessage, { field });\n\t}\n\t/**\n\t* Accepted value if another field is missing\n\t*/\n\tacceptedWithout(field, errorMessage) {\n\t\treturn this.addRule(acceptedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value\n\t* The value will be valid if it equals 0 | \"0\" | false | \"false\" | \"no\" | \"n\" | \"off\"\n\t*/\n\tdeclined(errorMessage) {\n\t\treturn this.addRule(declinedRule, errorMessage);\n\t}\n\t/**\n\t* Declined value if another field's value equals to a specific value\n\t*/\n\tdeclinedIf(field, value, errorMessage) {\n\t\treturn this.addRule(declinedIfRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Declined value if another field's value is not equal to the given value\n\t*/\n\tdeclinedUnless(field, value, errorMessage) {\n\t\treturn this.addRule(declinedUnlessRule, errorMessage, {\n\t\t\tfield,\n\t\t\tvalue\n\t\t});\n\t}\n\t/**\n\t* Declined value if another field is required\n\t*/\n\tdeclinedIfRequired(field, errorMessage) {\n\t\treturn this.addRule(declinedIfRequiredRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value if another field is present\n\t*/\n\tdeclinedIfPresent(field, errorMessage) {\n\t\treturn this.addRule(declinedIfPresentRule, errorMessage, { field });\n\t}\n\t/**\n\t* Declined value if another field is missing\n\t*/\n\tdeclinedWithout(field, errorMessage) {\n\t\treturn this.addRule(declinedWithoutRule, errorMessage, { field });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* A scalar accepts string | number | boolean. If `.in()` / `.enum()` is used,\n\t* output collapses to a simple `enum` list instead.\n\t*\n\t* @example\n\t* ```ts\n\t* v.scalar().toJsonSchema(\"draft-2020-12\")\n\t* // → { oneOf: [{ type: \"string\" }, { type: \"number\" }, { type: \"boolean\" }] }\n\t*\n\t* v.scalar().in([\"active\", \"inactive\"]).toJsonSchema(\"draft-2020-12\")\n\t* // → { enum: [\"active\", \"inactive\"] }\n\t* ```\n\t*/\n\ttoJsonSchema(_target = \"draft-2020-12\") {\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) return { enum: inOpts.values };\n\t\tconst enumOpts = getRuleOptions(this.rules, \"enum\");\n\t\tif (enumOpts?.enum && Array.isArray(enumOpts.enum)) return { enum: enumOpts.enum };\n\t\treturn { oneOf: [\n\t\t\t{ type: \"string\" },\n\t\t\t{ type: \"number\" },\n\t\t\t{ type: \"boolean\" }\n\t\t] };\n\t}\n};\n\n//#endregion\nexport { ScalarValidator };\n//# sourceMappingURL=scalar-validator.mjs.map","import { applyNullable, getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator } from \"../mutators/string-mutators.mjs\";\nimport \"../mutators/index.mjs\";\nimport { alphaNumericRule, alphaRule, isNumericRule } from \"../rules/string/alpha.mjs\";\nimport { isCreditCardRule } from \"../rules/string/credit-card.mjs\";\nimport { emailRule } from \"../rules/string/email.mjs\";\nimport { cuidRule, nanoidRule, ulidRule, uuidRule } from \"../rules/string/id-formats.mjs\";\nimport { ip4Rule, ip6Rule, ipRule } from \"../rules/string/ip.mjs\";\nimport { patternRule } from \"../rules/string/pattern.mjs\";\nimport { containsRule, endsWithRule, notContainsRule, startsWithRule } from \"../rules/string/string-comparison.mjs\";\nimport { strongPasswordRule } from \"../rules/string/strong-password-rule.mjs\";\nimport { urlRule } from \"../rules/string/url.mjs\";\nimport { withoutWhitespaceRule } from \"../rules/string/without-whitespace.mjs\";\nimport { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from \"../rules/length/length-rules.mjs\";\nimport { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from \"../rules/color/color-rules.mjs\";\nimport { stringRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\nimport { PrimitiveValidator } from \"./primitive-validator.mjs\";\n\n//#region ../seal/src/validators/string-validator.ts\n/**\n* String validator class\n*/\nvar StringValidator = class extends PrimitiveValidator {\n\tconstructor(errorMessage) {\n\t\tsuper();\n\t\tthis.addMutableRule(stringRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is a string type\n\t*/\n\tmatchesType(value) {\n\t\treturn typeof value === \"string\";\n\t}\n\t/**\n\t* Stringify the value if not a string\n\t*/\n\ttoString() {\n\t\treturn this.addMutator(stringifyMutator);\n\t}\n\t/** Convert string to uppercase */\n\tuppercase() {\n\t\treturn this.addMutator(uppercaseMutator);\n\t}\n\t/** Convert string to lowercase */\n\tlowercase() {\n\t\treturn this.addMutator(lowercaseMutator);\n\t}\n\t/** Capitalize only the first letter of the string */\n\tcapitalize() {\n\t\treturn this.addMutator(capitalizeMutator);\n\t}\n\t/** Capitalize the first letter of each word (Title Case) */\n\ttitleCase() {\n\t\treturn this.addMutator(titleCaseMutator);\n\t}\n\t/** Convert to camelCase */\n\tcamelCase() {\n\t\treturn this.addMutator(camelCaseMutator);\n\t}\n\t/** Convert to PascalCase */\n\tpascalCase() {\n\t\treturn this.addMutator(pascalCaseMutator);\n\t}\n\t/** Convert to snake_case */\n\tsnakeCase() {\n\t\treturn this.addMutator(snakeCaseMutator);\n\t}\n\t/** Convert to kebab-case */\n\tkebabCase() {\n\t\treturn this.addMutator(kebabCaseMutator);\n\t}\n\t/**\n\t* Trim the given needle from the string\n\t* If no needle is provided, the default is a single space\n\t*/\n\ttrim(needle) {\n\t\treturn this.addMutator(trimMutator, { needle });\n\t}\n\t/** Trim from the left/start */\n\tltrim(needle) {\n\t\treturn this.addMutator(ltrimMutator, { needle });\n\t}\n\t/** Trim from the right/end */\n\trtrim(needle) {\n\t\treturn this.addMutator(rtrimMutator, { needle });\n\t}\n\t/** Trim multiple whitespace into single space */\n\ttrimMultipleWhitespace() {\n\t\treturn this.addMutator(trimMultipleWhitespaceMutator);\n\t}\n\t/** Pad string from the start to reach target length */\n\tpadStart(length, char = \" \") {\n\t\treturn this.addMutator(padStartMutator, {\n\t\t\tlength,\n\t\t\tchar\n\t\t});\n\t}\n\t/** Pad string from the end to reach target length */\n\tpadEnd(length, char = \" \") {\n\t\treturn this.addMutator(padEndMutator, {\n\t\t\tlength,\n\t\t\tchar\n\t\t});\n\t}\n\t/**\n\t* Strip HTML tags with a naive `<...>` regex.\n\t*\n\t* This is a **tag stripper, not an XSS sanitizer**: it is not a parser,\n\t* so malformed/nested markup or content re-introduced later in a\n\t* pipeline can defeat it. Do not rely on this alone to make untrusted\n\t* rich text safe to render — use a real parser-based sanitizer (e.g.\n\t* DOMPurify / sanitize-html) for that.\n\t*/\n\tstripTags() {\n\t\treturn this.addMutator(stripTagsMutator);\n\t}\n\t/**\n\t* @deprecated Renamed to {@link StringValidator.stripTags} — the old\n\t* name implied XSS safety this tag-stripping regex does not provide.\n\t* Kept as an alias for backward compatibility; switch to `.stripTags()`.\n\t*/\n\tsafeHtml() {\n\t\treturn this.stripTags();\n\t}\n\t/** HTML escape special characters */\n\thtmlEscape() {\n\t\treturn this.addMutator(htmlEscapeMutator);\n\t}\n\t/** Unescape HTML entities */\n\tunescapeHtml() {\n\t\treturn this.addMutator(unescapeHtmlMutator);\n\t}\n\t/**\n\t* Remove special characters\n\t* This will remove all characters that are not alphanumeric or whitespace\n\t*/\n\tremoveSpecialCharacters() {\n\t\treturn this.addMutator(removeSpecialCharactersMutator);\n\t}\n\t/** Convert to only alphabetic characters */\n\ttoAlpha() {\n\t\treturn this.addMutator(alphaOnlyMutator);\n\t}\n\t/** Convert to only alphanumeric characters */\n\ttoAlphanumeric() {\n\t\treturn this.addMutator(alphanumericOnlyMutator);\n\t}\n\t/** Remove all numeric characters */\n\tremoveNumbers() {\n\t\treturn this.addMutator(removeNumbersMutator);\n\t}\n\t/** URL decode */\n\turlDecode() {\n\t\treturn this.addMutator(urlDecodeMutator);\n\t}\n\t/** URL encode */\n\turlEncode() {\n\t\treturn this.addMutator(urlEncodeMutator);\n\t}\n\t/** Convert to URL-friendly slug */\n\tslug() {\n\t\treturn this.addMutator(slugMutator);\n\t}\n\t/** Base64 encode */\n\tbase64Encode() {\n\t\treturn this.addMutator(base64EncodeMutator);\n\t}\n\t/** Base64 decode */\n\tbase64Decode() {\n\t\treturn this.addMutator(base64DecodeMutator);\n\t}\n\t/** Replace substring or pattern */\n\treplace(search, replace) {\n\t\treturn this.addMutator(replaceMutator, {\n\t\t\tsearch,\n\t\t\treplace\n\t\t});\n\t}\n\t/** Replace all occurrences of substring or pattern */\n\treplaceAll(search, replace) {\n\t\treturn this.addMutator(replaceAllMutator, {\n\t\t\tsearch,\n\t\t\treplace\n\t\t});\n\t}\n\t/** Append/suffix text to the end */\n\tappend(suffix) {\n\t\treturn this.addMutator(appendMutator, { suffix });\n\t}\n\t/** Prepend/prefix text to the beginning */\n\tprepend(prefix) {\n\t\treturn this.addMutator(prependMutator, { prefix });\n\t}\n\t/** Reverse the string */\n\treverse() {\n\t\treturn this.addMutator(reverseMutator);\n\t}\n\t/** Truncate to a maximum length */\n\ttruncate(maxLength, suffix = \"...\") {\n\t\treturn this.addMutator(truncateMutator, {\n\t\t\tmaxLength,\n\t\t\tsuffix\n\t\t});\n\t}\n\t/** Repeat string N times */\n\trepeat(count) {\n\t\treturn this.addMutator(repeatMutator, { count });\n\t}\n\t/** Mask part of string */\n\tmask(start, end, char = \"*\") {\n\t\treturn this.addMutator(maskMutator, {\n\t\t\tstart,\n\t\t\tend,\n\t\t\tchar\n\t\t});\n\t}\n\t/** Value must be a valid email */\n\temail(errorMessage) {\n\t\treturn this.addRule(emailRule, errorMessage);\n\t}\n\t/** Value must be a valid URL */\n\turl(errorMessage) {\n\t\treturn this.addRule(urlRule, errorMessage);\n\t}\n\t/** Value can not have whitespace */\n\twithoutWhitespace(errorMessage) {\n\t\treturn this.addRule(withoutWhitespaceRule, errorMessage);\n\t}\n\t/** Value must match the given pattern */\n\tpattern(pattern, errorMessage) {\n\t\treturn this.addRule(patternRule, errorMessage, { pattern });\n\t}\n\t/**\n\t* Value must be a strong password\n\t* Requirements:\n\t* - At least 8 characters\n\t* - At least 1 uppercase letter\n\t* - At least 1 lowercase letter\n\t* - At least 1 number\n\t* - At least 1 special character\n\t*/\n\tstrongPassword(minLength, errorMessage) {\n\t\treturn this.addRule(strongPasswordRule, errorMessage, { minLength });\n\t}\n\t/** Value must be exactly the given number of words */\n\twords(words, errorMessage) {\n\t\treturn this.addRule(wordsRule, errorMessage, { words });\n\t}\n\t/** Value must be at least the given number of words */\n\tminWords(words, errorMessage) {\n\t\treturn this.addRule(minWordsRule, errorMessage, { minWords: words });\n\t}\n\t/** Value must be at most the given number of words */\n\tmaxWords(words, errorMessage) {\n\t\treturn this.addRule(maxWordsRule, errorMessage, { maxWords: words });\n\t}\n\t/** Value length must be greater than the given length */\n\tminLength(length, errorMessage) {\n\t\treturn this.addRule(minLengthRule, errorMessage, { minLength: length });\n\t}\n\t/** @alias minLength */\n\tmin(min, errorMessage) {\n\t\treturn this.minLength(min, errorMessage);\n\t}\n\t/** Value length must be less than the given length */\n\tmaxLength(length, errorMessage) {\n\t\treturn this.addRule(maxLengthRule, errorMessage, { maxLength: length });\n\t}\n\t/** @alias maxLength */\n\tmax(max, errorMessage) {\n\t\treturn this.maxLength(max, errorMessage);\n\t}\n\t/** Value must be of the given length */\n\tlength(length, errorMessage) {\n\t\treturn this.addRule(lengthRule, errorMessage, { length });\n\t}\n\t/**\n\t* String length must be between min and max (inclusive)\n\t*\n\t* @param min - Minimum length (inclusive)\n\t* @param max - Maximum length (inclusive)\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().between(5, 10) // Length: 5 to 10 characters\n\t* v.string().lengthBetween(8, 20) // Same using alias\n\t* ```\n\t*\n\t* @category Validation Rule\n\t*/\n\tlengthBetween(min, max, errorMessage) {\n\t\treturn this.addRule(betweenLengthRule, errorMessage, {\n\t\t\tminLength: min,\n\t\t\tmaxLength: max\n\t\t});\n\t}\n\t/** Allow only alphabetic characters */\n\talpha(errorMessage) {\n\t\treturn this.addRule(alphaRule, errorMessage);\n\t}\n\t/** Allow only alphanumeric characters */\n\talphanumeric(errorMessage) {\n\t\treturn this.addRule(alphaNumericRule, errorMessage);\n\t}\n\t/** Allow only numeric characters */\n\tnumeric(errorMessage) {\n\t\treturn this.addRule(isNumericRule, errorMessage);\n\t}\n\t/** Value must starts with the given string */\n\tstartsWith(value, errorMessage) {\n\t\treturn this.addRule(startsWithRule, errorMessage, { value });\n\t}\n\t/** Value must ends with the given string */\n\tendsWith(value, errorMessage) {\n\t\treturn this.addRule(endsWithRule, errorMessage, { value });\n\t}\n\t/** Value must contain the given string */\n\tcontains(value, errorMessage) {\n\t\treturn this.addRule(containsRule, errorMessage, { value });\n\t}\n\t/** Value must not contain the given string */\n\tnotContains(value, errorMessage) {\n\t\treturn this.addRule(notContainsRule, errorMessage, { value });\n\t}\n\t/** Value must be a valid IP address */\n\tip(errorMessage) {\n\t\treturn this.addRule(ipRule, errorMessage);\n\t}\n\t/** Value must be a valid IPv4 address */\n\tip4(errorMessage) {\n\t\treturn this.addRule(ip4Rule, errorMessage);\n\t}\n\t/** Value must be a valid IPv6 address */\n\tip6(errorMessage) {\n\t\treturn this.addRule(ip6Rule, errorMessage);\n\t}\n\t/** Check if the string matches a credit card number */\n\tcreditCard(errorMessage) {\n\t\treturn this.addRule(isCreditCardRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid color */\n\tcolor(errorMessage) {\n\t\treturn this.addRule(colorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid hex color */\n\thexColor(errorMessage) {\n\t\treturn this.addRule(hexColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid HSL color */\n\thslColor(errorMessage) {\n\t\treturn this.addRule(hslColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid RGB color */\n\trgbColor(errorMessage) {\n\t\treturn this.addRule(rgbColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid RGBA color */\n\trgbaColor(errorMessage) {\n\t\treturn this.addRule(rgbaColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid light color */\n\tlightColor(errorMessage) {\n\t\treturn this.addRule(lightColorRule, errorMessage);\n\t}\n\t/** Determine if the value is a valid dark color */\n\tdarkColor(errorMessage) {\n\t\treturn this.addRule(darkColorRule, errorMessage);\n\t}\n\t/**\n\t* Value must be a valid UUID. Optionally restrict to a specific version.\n\t*\n\t* @example\n\t* v.string().uuid() // any RFC 4122 UUID\n\t* v.string().uuid(4) // only v4 (random)\n\t* v.string().uuid(7) // only v7 (timestamp-ordered)\n\t*/\n\tuuid(version, errorMessage) {\n\t\treturn this.addRule(uuidRule, errorMessage, { version });\n\t}\n\t/**\n\t* Value must be a valid CUID. Defaults to CUID2; pass `{ version: 1 }` for legacy.\n\t*\n\t* @example\n\t* v.string().cuid() // CUID2\n\t* v.string().cuid({ version: 1 }) // legacy CUID1\n\t*/\n\tcuid(options) {\n\t\tconst { errorMessage, version } = options ?? {};\n\t\treturn this.addRule(cuidRule, errorMessage, { version });\n\t}\n\t/** Value must be a valid ULID (26 chars, Crockford base32). */\n\tulid(errorMessage) {\n\t\treturn this.addRule(ulidRule, errorMessage);\n\t}\n\t/**\n\t* Value must be a valid nanoid string. Default length is 21.\n\t*\n\t* @example\n\t* v.string().nanoid() // 21 chars (default)\n\t* v.string().nanoid(10) // 10 chars\n\t*/\n\tnanoid(length, errorMessage) {\n\t\treturn this.addRule(nanoidRule, errorMessage, { length });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Maps String-specific rule options to JSON Schema keywords.\n\t* Non-representable rules (cross-field, refine, color rules, etc.) are silently omitted.\n\t*\n\t* @example\n\t* ```ts\n\t* v.string().min(2).max(100).email().toJsonSchema(\"draft-2020-12\")\n\t* // → { type: \"string\", minLength: 2, maxLength: 100, format: \"email\" }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst schema = { type: \"string\" };\n\t\tconst minOpts = getRuleOptions(this.rules, \"minLength\");\n\t\tif (minOpts?.minLength !== void 0) schema.minLength = minOpts.minLength;\n\t\tconst maxOpts = getRuleOptions(this.rules, \"maxLength\");\n\t\tif (maxOpts?.maxLength !== void 0) schema.maxLength = maxOpts.maxLength;\n\t\tconst betweenOpts = getRuleOptions(this.rules, \"betweenLength\");\n\t\tif (betweenOpts) {\n\t\t\tif (betweenOpts.minLength !== void 0) schema.minLength = betweenOpts.minLength;\n\t\t\tif (betweenOpts.maxLength !== void 0) schema.maxLength = betweenOpts.maxLength;\n\t\t}\n\t\tconst lengthOpts = getRuleOptions(this.rules, \"length\");\n\t\tif (lengthOpts?.length !== void 0) {\n\t\t\tschema.minLength = lengthOpts.length;\n\t\t\tschema.maxLength = lengthOpts.length;\n\t\t}\n\t\tconst patternOpts = getRuleOptions(this.rules, \"pattern\");\n\t\tif (patternOpts?.pattern instanceof RegExp) schema.pattern = patternOpts.pattern.source;\n\t\tif (getRuleOptions(this.rules, \"email\") !== void 0 || this.rules.some((r) => r.name === \"email\")) schema.format = \"email\";\n\t\telse if (this.rules.some((r) => r.name === \"url\")) schema.format = \"uri\";\n\t\telse if (this.rules.some((r) => r.name === \"ip\")) schema.format = \"ipv4\";\n\t\telse if (this.rules.some((r) => r.name === \"ip4\")) schema.format = \"ipv4\";\n\t\telse if (this.rules.some((r) => r.name === \"ip6\")) schema.format = \"ipv6\";\n\t\telse if (this.rules.some((r) => r.name === \"uuid\")) schema.format = \"uuid\";\n\t\telse if (this.rules.some((r) => r.name === \"hexColor\")) schema.format = \"color\";\n\t\tif (!schema.format) {\n\t\t\tconst cuidOpts = getRuleOptions(this.rules, \"cuid\");\n\t\t\tif (cuidOpts) schema.pattern = cuidOpts.version === 1 ? \"^c[a-z0-9]{24,}$\" : \"^[a-z][a-z0-9]{23}$\";\n\t\t\tif (this.rules.some((r) => r.name === \"ulid\")) schema.pattern = \"^[0-9A-HJKMNP-TV-Z]{26}$\";\n\t\t\tconst nanoidOpts = getRuleOptions(this.rules, \"nanoid\");\n\t\t\tif (nanoidOpts) schema.pattern = `^[A-Za-z0-9_-]{${nanoidOpts.length ?? 21}}$`;\n\t\t}\n\t\tconst inOpts = getRuleOptions(this.rules, \"in\");\n\t\tif (inOpts?.values && Array.isArray(inOpts.values)) schema.enum = inOpts.values;\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { StringValidator };\n//# sourceMappingURL=string-validator.mjs.map","import { applyNullable } from \"../standard-schema/json-schema.mjs\";\nimport { setKeyPath } from \"../helpers/path-helpers.mjs\";\nimport \"../helpers/index.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { arrayRule } from \"../rules/common/type-rules.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/tuple-validator.ts\n/**\n* Tuple validator class - validates fixed-length arrays with position-specific types\n*\n* @example\n* ```ts\n* // RGB color tuple\n* v.tuple([v.number(), v.number(), v.number()])\n* // Valid: [255, 128, 0]\n* // Invalid: [255, 128] (too short)\n*\n* // Mixed types\n* v.tuple([v.string(), v.int(), v.boolean()])\n* // Valid: [\"John\", 25, true]\n* ```\n*/\nvar TupleValidator = class extends BaseValidator {\n\tconstructor(validators, errorMessage) {\n\t\tsuper();\n\t\tthis.validators = validators;\n\t\tthis.addMutableRule(arrayRule, errorMessage);\n\t}\n\t/**\n\t* Check if value is an array type\n\t*/\n\tmatchesType(value) {\n\t\treturn Array.isArray(value);\n\t}\n\t/**\n\t* Clone the validator\n\t*/\n\tclone() {\n\t\tconst cloned = super.clone();\n\t\tcloned.validators = this.validators.map((v) => v.clone());\n\t\treturn cloned;\n\t}\n\t/**\n\t* Validate tuple - check length then validate each position\n\t*\n\t* Absent input (and absent without `.default()`) propagates as `data: undefined`\n\t* so the parent ObjectValidator can omit the key. Without this, optional tuple\n\t* fields would silently materialise as `[]` in the validated output and then\n\t* fail the length check.\n\t*/\n\tasync validate(data, context) {\n\t\tconst valueForRules = data ?? this.getDefaultValue();\n\t\tconst mutatedData = await this.mutate(valueForRules, context);\n\t\tconst result = await super.validate(data, context);\n\t\tif (result.isValid === false) return result;\n\t\tif (mutatedData === void 0 || mutatedData === null) return result;\n\t\tif (!Array.isArray(mutatedData)) return result;\n\t\tconst errors = [];\n\t\tif (mutatedData.length !== this.validators.length) {\n\t\t\terrors.push({\n\t\t\t\ttype: \"tuple\",\n\t\t\t\tinput: context.key || \"value\",\n\t\t\t\terror: `Expected exactly ${this.validators.length} items, but got ${mutatedData.length}`\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tisValid: false,\n\t\t\t\terrors,\n\t\t\t\tdata: mutatedData\n\t\t\t};\n\t\t}\n\t\tconst validationPromises = this.validators.map(async (validator, index) => {\n\t\t\tconst childContext = {\n\t\t\t\t...context,\n\t\t\t\tparent: mutatedData,\n\t\t\t\tvalue: mutatedData[index],\n\t\t\t\tkey: index.toString(),\n\t\t\t\tpath: setKeyPath(context.path, index.toString())\n\t\t\t};\n\t\t\tconst childResult = await validator.validate(mutatedData[index], childContext);\n\t\t\tmutatedData[index] = childResult.data;\n\t\t\tif (childResult.isValid === false) errors.push(...childResult.errors);\n\t\t});\n\t\tawait Promise.all(validationPromises);\n\t\treturn {\n\t\t\tisValid: errors.length === 0,\n\t\t\terrors,\n\t\t\tdata: await this.startTransformationPipeline(mutatedData, context)\n\t\t};\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Tuple keyword diverges between targets:\n\t* - `draft-2020-12` → `prefixItems` + `items: false` (exact length enforced)\n\t* - `draft-07` → `items` as array + `additionalItems: false`\n\t* - `openapi-3.0` → same as draft-07 (OpenAPI 3.0 is based on draft-07)\n\t*\n\t* @example\n\t* ```ts\n\t* v.tuple([v.string(), v.int(), v.boolean()]).toJsonSchema(\"draft-2020-12\")\n\t* // → {\n\t* // type: \"array\",\n\t* // prefixItems: [{ type: \"string\" }, { type: \"integer\" }, { type: \"boolean\" }],\n\t* // items: false,\n\t* // minItems: 3,\n\t* // maxItems: 3\n\t* // }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\tconst itemSchemas = this.validators.map((v) => v.toJsonSchema(target));\n\t\tconst length = this.validators.length;\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\tminItems: length,\n\t\t\tmaxItems: length\n\t\t};\n\t\tif (target === \"draft-2020-12\") {\n\t\t\tschema.prefixItems = itemSchemas;\n\t\t\tschema.items = false;\n\t\t} else {\n\t\t\tschema.items = itemSchemas;\n\t\t\tschema.additionalItems = false;\n\t\t}\n\t\tif (this.isNullable) applyNullable(schema, target);\n\t\treturn schema;\n\t}\n};\n\n//#endregion\nexport { TupleValidator };\n//# sourceMappingURL=tuple-validator.mjs.map","import { getRuleOptions } from \"../standard-schema/json-schema.mjs\";\nimport { BaseValidator } from \"./base-validator.mjs\";\nimport { unionRule } from \"../rules/core/union.mjs\";\nimport \"../rules/index.mjs\";\n\n//#region ../seal/src/validators/union-validator.ts\n/**\n* Union validator class - validates value against multiple validator types\n*\n* Tries each validator in order until one passes. If a validator's matchesType()\n* returns false, it's skipped for optimization. First validator that both matches\n* the type and passes validation wins.\n*\n* @example\n* ```ts\n* // Accept email or username\n* const identifier = v.union([\n* v.string().email(),\n* v.string().alphanumeric().min(3).max(20)\n* ]);\n*\n* // Accept different types\n* const customValue = v.union([\n* v.string().required(),\n* v.number().required(),\n* v.boolean().required(),\n* v.file().required()\n* ]);\n* ```\n*/\nvar UnionValidator = class extends BaseValidator {\n\t/**\n\t* Set the validators to try for union validation\n\t*\n\t* @param validators - Array of validators to try\n\t* @param errorMessage - Optional custom error message if all validators fail\n\t* @returns This validator for chaining\n\t*\n\t* @example\n\t* ```ts\n\t* new UnionValidator()\n\t* .union([v.string(), v.number()], 'Must be string or number');\n\t* ```\n\t*/\n\tunion(validators, errorMessage) {\n\t\treturn this.addRule(unionRule, errorMessage, { validators });\n\t}\n\t/**\n\t* @inheritdoc\n\t*\n\t* Generates `{ oneOf: [...] }` by mapping each sub-validator to its JSON Schema.\n\t*\n\t* @example\n\t* ```ts\n\t* v.union([v.string(), v.number()]).toJsonSchema(\"draft-2020-12\")\n\t* // → { oneOf: [{ type: \"string\" }, { type: \"number\" }] }\n\t* ```\n\t*/\n\ttoJsonSchema(target = \"draft-2020-12\") {\n\t\treturn { oneOf: (getRuleOptions(this.rules, \"union\")?.validators ?? []).map((v) => v.toJsonSchema(target)) };\n\t}\n};\n\n//#endregion\nexport { UnionValidator };\n//# sourceMappingURL=union-validator.mjs.map","import { validate } from \"./validate.mjs\";\nimport { AnyValidator } from \"../validators/any-validator.mjs\";\nimport { ArrayValidator } from \"../validators/array-validator.mjs\";\nimport \"../validators/methods/equality-conditional-methods.mjs\";\nimport \"../validators/methods/forbidden-methods.mjs\";\nimport \"../validators/methods/present-methods.mjs\";\nimport \"../validators/methods/required-methods.mjs\";\nimport { BooleanValidator } from \"../validators/boolean-validator.mjs\";\nimport { ComputedValidator } from \"../validators/computed-validator.mjs\";\nimport { DateValidator } from \"../validators/date-validator.mjs\";\nimport { LiteralValidator } from \"../validators/literal-validator.mjs\";\nimport { DiscriminatedUnionValidator } from \"../validators/discriminated-union-validator.mjs\";\nimport { NumberValidator } from \"../validators/number-validator.mjs\";\nimport { FloatValidator } from \"../validators/float-validator.mjs\";\nimport { InstanceOfValidator } from \"../validators/instanceof-validator.mjs\";\nimport { IntValidator } from \"../validators/int-validator.mjs\";\nimport { LazyValidator } from \"../validators/lazy-validator.mjs\";\nimport { ManagedValidator } from \"../validators/managed-validator.mjs\";\nimport { NumericValidator } from \"../validators/numeric-validator.mjs\";\nimport { ObjectValidator } from \"../validators/object-validator.mjs\";\nimport { RecordValidator } from \"../validators/record-validator.mjs\";\nimport { ScalarValidator } from \"../validators/scalar-validator.mjs\";\nimport { StringValidator } from \"../validators/string-validator.mjs\";\nimport { TupleValidator } from \"../validators/tuple-validator.mjs\";\nimport { UnionValidator } from \"../validators/union-validator.mjs\";\n\n//#region ../seal/src/factory/validators.ts\n/**\n* Seal factory object - creates instances of validators\n*\n* Use 'v' to create validation schemas (seals) for your data\n*/\nconst v = {\n\t/** Create an object validator */\n\tobject: (schema, errorMessage) => new ObjectValidator(schema, errorMessage),\n\t/** Create an any validator */\n\tany: () => new AnyValidator(),\n\t/** Create an array validator */\n\tarray: (validator, errorMessage) => new ArrayValidator(validator, errorMessage),\n\t/** Create a record validator - object with dynamic keys and consistent value types */\n\trecord: (validator, errorMessage) => new RecordValidator(validator || v.any(), errorMessage),\n\t/** Create a tuple validator - fixed-length array with position-specific types */\n\ttuple: (validators, errorMessage) => new TupleValidator(validators, errorMessage),\n\t/** Create a date validator */\n\tdate: (errorMessage) => new DateValidator(errorMessage),\n\t/**\n\t* Create a literal validator — narrows to the union of given literal values\n\t*\n\t* @example\n\t* v.literal(\"items\") // type: \"items\"\n\t* v.literal(\"draft\", \"published\") // type: \"draft\" | \"published\"\n\t* v.literal(1, 2, 3) // type: 1 | 2 | 3\n\t*/\n\tliteral: (...values) => new LiteralValidator(values),\n\t/**\n\t* Create an instanceof validator — value must be `instanceof` the constructor\n\t*\n\t* @example\n\t* v.instanceof(File) // type: File\n\t* v.instanceof(Buffer) // type: Buffer\n\t* v.instanceof(MyClass) // type: MyClass\n\t*/\n\tinstanceof: (ctor, errorMessage) => new InstanceOfValidator(ctor, errorMessage),\n\t/**\n\t* Create a lazy validator — defers resolution of the inner validator until\n\t* validate-time. Use for recursive or forward-referenced schemas.\n\t*\n\t* @example\n\t* type Category = { name: string; children: Category[] };\n\t*\n\t* const category: ObjectValidator<...> = v.object({\n\t* name: v.string(),\n\t* children: v.array(v.lazy(() => category)),\n\t* });\n\t*/\n\tlazy: (thunk) => new LazyValidator(thunk),\n\t/** Create a string validator */\n\tstring: (errorMessage) => new StringValidator(errorMessage),\n\t/** Create an email validator */\n\temail: (emailErrorMessage, errorMessage) => new StringValidator(errorMessage).email(emailErrorMessage),\n\t/**\n\t* Create an enum validator — preserves the literal union of accepted\n\t* values in the inferred Standard Schema output.\n\t*\n\t* Two input shapes:\n\t* - Tuple of literals: `v.enum([\"draft\", \"published\"])` →\n\t* `StandardSchemaV1<\"draft\" | \"published\">`\n\t* - TypeScript enum object: `v.enum(Status)` →\n\t* `StandardSchemaV1<Status[keyof Status]>`\n\t*\n\t* Implementation is loosely typed; the public `ValidatorV.enum`\n\t* surface declares the precise overloads.\n\t*/\n\tenum: ((values, errorMessage) => Array.isArray(values) ? new StringValidator().oneOf(values, errorMessage) : new ScalarValidator().enum(values, errorMessage)),\n\t/** Create a number validator */\n\tnumber: (errorMessage) => new NumberValidator(errorMessage),\n\t/** Create a numeric validator */\n\tnumeric: (errorMessage) => new NumericValidator(errorMessage),\n\t/** Create an integer validator */\n\tint: (errorMessage) => new IntValidator(errorMessage),\n\t/** Create a float validator */\n\tfloat: (errorMessage) => new FloatValidator(errorMessage),\n\t/** Create a boolean validator */\n\tboolean: (errorMessage) => new BooleanValidator(errorMessage),\n\t/** Create a scalar validator */\n\tscalar: (errorMessage) => new ScalarValidator(errorMessage),\n\t/** Create a union validator - validates against multiple types */\n\tunion: (validators, errorMessage) => new UnionValidator().union(validators, errorMessage),\n\t/**\n\t* Create a discriminated union — routes payloads by a shared literal\n\t* discriminator field. Each branch must be a `v.object(...)` with the\n\t* discriminator typed as `v.literal(...)`.\n\t*\n\t* @example\n\t* const email = v.object({ type: v.literal(\"email\"), email: v.string().email() });\n\t* const sms = v.object({ type: v.literal(\"sms\"), phone: v.string() });\n\t* const notif = v.discriminatedUnion(\"type\", [email, sms]);\n\t* // type T = Infer<typeof notif>;\n\t* // → { type: \"email\", email: string } | { type: \"sms\", phone: string }\n\t*/\n\tdiscriminatedUnion: (discriminator, validators) => new DiscriminatedUnionValidator(discriminator, validators),\n\t/** Create a computed field validator - derives value from other validated fields */\n\tcomputed: (callback, resultValidator) => new ComputedValidator(callback, resultValidator),\n\t/** Create a managed field validator - framework-injected value */\n\tmanaged: (callback, resultValidator) => new ManagedValidator(callback, resultValidator),\n\t/** Validate data against a schema */\n\tvalidate\n};\n\n//#endregion\nexport { v };\n//# sourceMappingURL=validators.mjs.map","import { log } from \"@warlock.js/logger\";\nimport { v } from \"@warlock.js/seal\";\nimport { randomUUID } from \"node:crypto\";\n\n//#region ../herald/src/drivers/rabbitmq/rabbitmq-channel.ts\n/**\n* RabbitMQ Channel Implementation\n*\n* Wraps a RabbitMQ queue/exchange with a unified API.\n*\n* @template TPayload - The typed payload\n*/\nvar RabbitMQChannel = class {\n\t/**\n\t* Create a new RabbitMQ channel\n\t*/\n\tconstructor(name, amqpChannel, options) {\n\t\tthis.subscriptions = /* @__PURE__ */ new Map();\n\t\tthis.asserted = false;\n\t\tthis.name = name;\n\t\tthis.amqpChannel = amqpChannel;\n\t\tthis.options = options ?? {};\n\t}\n\t/**\n\t* Assert the queue exists\n\t*/\n\tasync assert() {\n\t\tif (this.asserted) return;\n\t\tconst queueOptions = {\n\t\t\tdurable: this.options.durable ?? true,\n\t\t\tautoDelete: this.options.autoDelete ?? false,\n\t\t\texclusive: this.options.exclusive ?? false,\n\t\t\tmessageTtl: this.options.messageTtl,\n\t\t\tmaxLength: this.options.maxLength,\n\t\t\tdeadLetterExchange: this.options.deadLetter?.channel ? \"\" : void 0,\n\t\t\tdeadLetterRoutingKey: this.options.deadLetter?.channel\n\t\t};\n\t\tawait this.amqpChannel.assertQueue(this.name, queueOptions);\n\t\tthis.asserted = true;\n\t}\n\t/**\n\t* Publish a message\n\t*/\n\tasync publish(payload, options) {\n\t\tawait this.assert();\n\t\tif (this.options.schema) {\n\t\t\tconst context = {\n\t\t\t\tallValues: payload,\n\t\t\t\tvalue: payload\n\t\t\t};\n\t\t\tconst result = await v.validate(this.options.schema, payload, { context });\n\t\t\tif (!result.isValid) throw new Error(`Message validation failed: ${JSON.stringify(result.errors)}`);\n\t\t\tpayload = result.data;\n\t\t}\n\t\tconst messageId = randomUUID();\n\t\tconst timestamp = /* @__PURE__ */ new Date();\n\t\tconst messageContent = JSON.stringify({\n\t\t\tpayload,\n\t\t\tmetadata: {\n\t\t\t\tmessageId,\n\t\t\t\ttimestamp: timestamp.toISOString(),\n\t\t\t\tcorrelationId: options?.correlationId,\n\t\t\t\theaders: options?.headers\n\t\t\t}\n\t\t});\n\t\tconst publishOptions = {\n\t\t\tpersistent: options?.persistent ?? true,\n\t\t\tmessageId,\n\t\t\ttimestamp: timestamp.getTime(),\n\t\t\tcorrelationId: options?.correlationId,\n\t\t\texpiration: options?.expiration?.toString(),\n\t\t\tpriority: options?.priority,\n\t\t\theaders: options?.headers\n\t\t};\n\t\tif (options?.delay) publishOptions.headers = {\n\t\t\t...publishOptions.headers,\n\t\t\t\"x-delay\": options.delay\n\t\t};\n\t\tthis.amqpChannel.sendToQueue(this.name, Buffer.from(messageContent), publishOptions);\n\t}\n\t/**\n\t* Publish multiple messages\n\t*/\n\tasync publishBatch(messages, options) {\n\t\tfor (const payload of messages) await this.publish(payload, options);\n\t}\n\t/**\n\t* Subscribe to messages\n\t*\n\t* Smart auto-ack behavior (when autoAck is not true):\n\t* - If handler completes successfully without explicit ack/nack/reject → auto-ack\n\t* - If handler throws an error → auto-nack (with retry if configured)\n\t* - If handler explicitly calls ack/nack/reject → respects that call\n\t*/\n\tasync subscribe(handler, options) {\n\t\tawait this.assert();\n\t\tconst subscriptionId = options?.consumerId ?? randomUUID();\n\t\tif (options?.prefetch) await this.amqpChannel.prefetch(options.prefetch);\n\t\tconst isFireAndForget = options?.autoAck === true;\n\t\tconst consumerOptions = {\n\t\t\tnoAck: isFireAndForget,\n\t\t\texclusive: options?.exclusive ?? false,\n\t\t\tconsumerTag: options?.group ?? subscriptionId\n\t\t};\n\t\tconst { consumerTag } = await this.amqpChannel.consume(this.name, async (msg) => {\n\t\t\tif (!msg) return;\n\t\t\tlet ackHandled = isFireAndForget;\n\t\t\tlet parsedMessage;\n\t\t\ttry {\n\t\t\t\tconst content = JSON.parse(msg.content.toString());\n\t\t\t\tlet payload = content.payload;\n\t\t\t\tif (this.options.schema) {\n\t\t\t\t\tconst context = {\n\t\t\t\t\t\tallValues: payload,\n\t\t\t\t\t\tvalue: payload\n\t\t\t\t\t};\n\t\t\t\t\tconst result = await v.validate(this.options.schema, payload, { context });\n\t\t\t\t\tif (!result.isValid) {\n\t\t\t\t\t\tthis.amqpChannel.nack(msg, false, false);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tpayload = result.data;\n\t\t\t\t}\n\t\t\t\tconst metadata = {\n\t\t\t\t\tmessageId: msg.properties.messageId || content.metadata?.messageId || randomUUID(),\n\t\t\t\t\ttimestamp: new Date(msg.properties.timestamp || content.metadata?.timestamp),\n\t\t\t\t\tcorrelationId: msg.properties.correlationId || content.metadata?.correlationId,\n\t\t\t\t\treplyTo: msg.properties.replyTo,\n\t\t\t\t\tpriority: msg.properties.priority,\n\t\t\t\t\theaders: msg.properties.headers,\n\t\t\t\t\tretryCount: msg.properties.headers?.[\"x-retry-count\"] || 0,\n\t\t\t\t\toriginalChannel: this.name\n\t\t\t\t};\n\t\t\t\tconst message = {\n\t\t\t\t\tmetadata,\n\t\t\t\t\tpayload,\n\t\t\t\t\traw: msg\n\t\t\t\t};\n\t\t\t\tparsedMessage = message;\n\t\t\t\tawait handler(message, {\n\t\t\t\t\tack: async () => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.ack(msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tnack: async (requeue = true) => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.nack(msg, false, requeue);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treject: async () => {\n\t\t\t\t\t\tif (!ackHandled) {\n\t\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\t\tthis.amqpChannel.reject(msg, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treply: async (replyPayload) => {\n\t\t\t\t\t\tif (msg.properties.replyTo) {\n\t\t\t\t\t\t\tconst replyContent = JSON.stringify({\n\t\t\t\t\t\t\t\tpayload: replyPayload,\n\t\t\t\t\t\t\t\tmetadata: {\n\t\t\t\t\t\t\t\t\tmessageId: randomUUID(),\n\t\t\t\t\t\t\t\t\ttimestamp: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\t\t\t\t\t\t\tcorrelationId: msg.properties.correlationId\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tthis.amqpChannel.sendToQueue(msg.properties.replyTo, Buffer.from(replyContent), { correlationId: msg.properties.correlationId });\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tretry: async (delay) => {\n\t\t\t\t\t\tif (ackHandled) return;\n\t\t\t\t\t\tackHandled = true;\n\t\t\t\t\t\tawait this.retryOrGiveUp(msg, metadata.retryCount || 0, options, message, delay);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif (!ackHandled) this.amqpChannel.ack(msg);\n\t\t\t} catch (error) {\n\t\t\t\tif (ackHandled) return;\n\t\t\t\tif (options?.retry) {\n\t\t\t\t\tconst currentRetryCount = msg.properties.headers?.[\"x-retry-count\"] || 0;\n\t\t\t\t\tawait this.retryOrGiveUp(msg, currentRetryCount, options, parsedMessage);\n\t\t\t\t} else this.amqpChannel.nack(msg, false, false);\n\t\t\t}\n\t\t}, consumerOptions);\n\t\tconst subscription = new RabbitMQSubscription(subscriptionId, this.name, consumerTag, this.amqpChannel);\n\t\tthis.subscriptions.set(subscriptionId, subscription);\n\t\treturn subscription;\n\t}\n\t/**\n\t* Unsubscribe by consumer ID\n\t*/\n\tasync unsubscribeById(consumerId) {\n\t\tconst subscription = this.subscriptions.get(consumerId);\n\t\tif (subscription) {\n\t\t\tawait subscription.unsubscribe();\n\t\t\tthis.subscriptions.delete(consumerId);\n\t\t}\n\t}\n\t/**\n\t* Stop consuming messages on this channel.\n\t* Cancels all active subscriptions gracefully.\n\t*/\n\tasync stopConsuming() {\n\t\tconst cancellations = Array.from(this.subscriptions.values()).map((sub) => sub.unsubscribe());\n\t\tawait Promise.all(cancellations);\n\t}\n\t/**\n\t* Send message to dead-letter queue\n\t*/\n\tasync sendToDeadLetter(message, deadLetterChannel) {\n\t\tconst content = JSON.stringify({\n\t\t\tpayload: message.payload,\n\t\t\tmetadata: {\n\t\t\t\t...message.metadata,\n\t\t\t\toriginalChannel: this.name\n\t\t\t}\n\t\t});\n\t\tthis.amqpChannel.sendToQueue(deadLetterChannel, Buffer.from(content), { persistent: true });\n\t}\n\t/**\n\t* Dead-letter a message whose body couldn't be parsed into a {@link Message}\n\t* (e.g. `JSON.parse` itself threw before an envelope existed). Forwards the\n\t* raw AMQP bytes/properties as-is rather than re-deriving a payload, so a\n\t* malformed message isn't lost.\n\t*/\n\tsendToDeadLetterRaw(msg, deadLetterChannel) {\n\t\tthis.amqpChannel.sendToQueue(deadLetterChannel, msg.content, {\n\t\t\t...msg.properties,\n\t\t\tpersistent: true\n\t\t});\n\t}\n\t/**\n\t* Bounded retry shared by the explicit `ctx.retry()` call and the automatic\n\t* catch when a handler throws without calling it itself — so both paths\n\t* honor the same cap instead of the automatic path silently requeueing\n\t* forever (see `subscribe()`'s catch block).\n\t*\n\t* Under the cap: republishes with an incremented `x-retry-count` header —\n\t* NOT a plain `nack(msg, false, true)`, which redelivers the original\n\t* message untouched and never advances the counter.\n\t*\n\t* At/over the cap: dead-letters if configured, otherwise drops the message\n\t* with a loud `log.error` (never a silent drop) so an operator can see a\n\t* poison message was discarded instead of it vanishing without a trace.\n\t*/\n\tasync retryOrGiveUp(msg, currentRetryCount, options, parsedMessage, delay) {\n\t\tconst retryCount = currentRetryCount + 1;\n\t\tconst maxRetries = options?.retry?.maxRetries ?? 3;\n\t\tif (retryCount > maxRetries) {\n\t\t\tif (options?.deadLetter) if (parsedMessage) await this.sendToDeadLetter(parsedMessage, options.deadLetter.channel);\n\t\t\telse this.sendToDeadLetterRaw(msg, options.deadLetter.channel);\n\t\t\telse {\n\t\t\t\tlog.error(\"herald\", \"poison-message\", `Dropping message on channel \"${this.name}\" after ${retryCount - 1} failed ${retryCount - 1 === 1 ? \"retry\" : \"retries\"} (maxRetries: ${maxRetries}) with no dead-letter channel configured.`, {\n\t\t\t\t\tchannel: this.name,\n\t\t\t\t\tretryCount: retryCount - 1,\n\t\t\t\t\tmaxRetries\n\t\t\t\t});\n\t\t\t\tthis.amqpChannel.reject(msg, false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.amqpChannel.ack(msg);\n\t\t\treturn;\n\t\t}\n\t\tconst headers = {\n\t\t\t...msg.properties.headers,\n\t\t\t\"x-retry-count\": retryCount\n\t\t};\n\t\tif (delay) headers[\"x-delay\"] = delay;\n\t\tthis.amqpChannel.sendToQueue(this.name, msg.content, {\n\t\t\t...msg.properties,\n\t\t\theaders\n\t\t});\n\t\tthis.amqpChannel.ack(msg);\n\t}\n\t/**\n\t* Request-response pattern\n\t*/\n\tasync request(payload, options) {\n\t\tawait this.assert();\n\t\tconst correlationId = randomUUID();\n\t\tconst timeout = options?.timeout ?? 3e4;\n\t\tconst { queue: replyQueue } = await this.amqpChannel.assertQueue(\"\", {\n\t\t\texclusive: true,\n\t\t\tautoDelete: true\n\t\t});\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst timeoutId = setTimeout(() => {\n\t\t\t\treject(/* @__PURE__ */ new Error(`Request timeout after ${timeout}ms`));\n\t\t\t}, timeout);\n\t\t\tthis.amqpChannel.consume(replyQueue, (msg) => {\n\t\t\t\tif (msg?.properties.correlationId === correlationId) {\n\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t\tresolve(JSON.parse(msg.content.toString()).payload);\n\t\t\t\t}\n\t\t\t}, { noAck: true });\n\t\t\tconst messageContent = JSON.stringify({\n\t\t\t\tpayload,\n\t\t\t\tmetadata: {\n\t\t\t\t\tmessageId: randomUUID(),\n\t\t\t\t\ttimestamp: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\t\t\tcorrelationId\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.amqpChannel.sendToQueue(this.name, Buffer.from(messageContent), {\n\t\t\t\tcorrelationId,\n\t\t\t\treplyTo: replyQueue,\n\t\t\t\texpiration: timeout.toString(),\n\t\t\t\t...options\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Register response handler for RPC\n\t*/\n\tasync respond(handler) {\n\t\treturn this.subscribe(async (message, ctx) => {\n\t\t\tconst response = await handler(message, ctx);\n\t\t\tawait ctx.reply(response);\n\t\t\tawait ctx.ack();\n\t\t});\n\t}\n\t/**\n\t* Get queue statistics\n\t*/\n\tasync stats() {\n\t\tawait this.assert();\n\t\tconst queueInfo = await this.amqpChannel.checkQueue(this.name);\n\t\treturn {\n\t\t\tname: this.name,\n\t\t\tmessageCount: queueInfo.messageCount,\n\t\t\tconsumerCount: queueInfo.consumerCount\n\t\t};\n\t}\n\t/**\n\t* Purge all messages\n\t*/\n\tasync purge() {\n\t\tawait this.assert();\n\t\treturn (await this.amqpChannel.purgeQueue(this.name)).messageCount;\n\t}\n\t/**\n\t* Check if queue exists\n\t*/\n\tasync exists() {\n\t\ttry {\n\t\t\tawait this.amqpChannel.checkQueue(this.name);\n\t\t\treturn true;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}\n\t/**\n\t* Delete the queue\n\t*/\n\tasync delete() {\n\t\tfor (const subscription of this.subscriptions.values()) await subscription.unsubscribe();\n\t\tthis.subscriptions.clear();\n\t\ttry {\n\t\t\tawait this.amqpChannel.deleteQueue(this.name);\n\t\t} catch {}\n\t\tthis.asserted = false;\n\t}\n};\n/**\n* RabbitMQ Subscription Implementation\n*/\nvar RabbitMQSubscription = class {\n\tconstructor(id, channel, consumerTag, amqpChannel) {\n\t\tthis._isActive = true;\n\t\tthis.id = id;\n\t\tthis.channel = channel;\n\t\tthis.consumerTag = consumerTag;\n\t\tthis.amqpChannel = amqpChannel;\n\t}\n\tasync unsubscribe() {\n\t\tif (!this._isActive) return;\n\t\tawait this.amqpChannel.cancel(this.consumerTag);\n\t\tthis._isActive = false;\n\t}\n\tasync pause() {\n\t\tawait this.amqpChannel.cancel(this.consumerTag);\n\t}\n\tasync resume() {\n\t\tthrow new Error(\"Resume is not supported for RabbitMQ. Please create a new subscription.\");\n\t}\n\tisActive() {\n\t\treturn this._isActive;\n\t}\n};\n\n//#endregion\nexport { RabbitMQChannel };\n//# sourceMappingURL=rabbitmq-channel.mjs.map","import { prepareConsumerSubscription } from \"../../message-managers/prepare-consumer-subscription.mjs\";\nimport { RabbitMQChannel } from \"./rabbitmq-channel.mjs\";\nimport { EventEmitter } from \"node:events\";\n\n//#region ../herald/src/drivers/rabbitmq/rabbitmq-driver.ts\n/**\n* The single amqplib load, shared by every caller.\n*\n* Memoized as a promise rather than as a resolved value so the loader stays\n* idempotent: without it, two callers arriving before the first `import()`\n* settles would each start their own load and the last writer would win, so a\n* caller could end up observing a module instance it never awaited.\n*\n* Resolves to `undefined` when amqplib is not installed.\n*/\nlet amqplibModulePromise;\n/**\n* Installation instructions for amqplib\n*/\nconst AMQPLIB_INSTALL_INSTRUCTIONS = `\nRabbitMQ driver requires the amqplib package.\nInstall it with:\n\n npx warlock add herald --driver=rabbitmq\n\nOr manually:\n\n npm install amqplib\n pnpm add amqplib\n yarn add amqplib\n`.trim();\n/**\n* Strip `user:password@` credentials from any `amqp(s)://` URL embedded in a\n* string. The connection URL carries plaintext broker credentials, and\n* amqplib/Node's URL parser commonly echoes the offending URL verbatim in a\n* malformed-URL error (e.g. an unencoded `@`/`:` in the password) — applied\n* to every error `connect()` surfaces so a credential never reaches whatever\n* the host app does with a thrown connection error (console.error,\n* structured logging, an error tracker).\n*/\nfunction redactAmqpCredentials(message) {\n\treturn message.replace(/(amqps?:\\/\\/)[^/@\\s]+@/gi, \"$1****:****@\");\n}\n/**\n* Load amqplib, reusing the single shared load for every caller.\n*\n* @returns The amqplib module, or `undefined` when it is not installed.\n*/\nfunction loadAmqplibModule() {\n\tif (!amqplibModulePromise) amqplibModulePromise = import(\"amqplib\").catch(() => void 0);\n\treturn amqplibModulePromise;\n}\n/**\n* RabbitMQ Driver\n*\n* Implementation of BrokerDriverContract for RabbitMQ/AMQP.\n*\n* **Important:** This driver requires the `amqplib` package to be installed.\n* Install it with: `npx warlock add herald --driver=rabbitmq` or `npm install amqplib`\n*\n* @example\n* ```typescript\n* const driver = new RabbitMQDriver({\n* driver: \"rabbitmq\",\n* host: \"localhost\",\n* port: 5672,\n* username: \"guest\",\n* password: \"guest\",\n* });\n*\n* await driver.connect();\n* const channel = driver.channel(\"user.created\");\n* ```\n*/\nvar RabbitMQDriver = class {\n\t/**\n\t* Create a new RabbitMQ driver\n\t*\n\t* @param options - RabbitMQ connection options\n\t*/\n\tconstructor(options) {\n\t\tthis.name = \"rabbitmq\";\n\t\tthis.consumers = [];\n\t\tthis.events = new EventEmitter();\n\t\tthis.channels = /* @__PURE__ */ new Map();\n\t\tthis.connection = null;\n\t\tthis.amqpChannel = null;\n\t\tthis._isConnected = false;\n\t\tthis.options = options;\n\t}\n\t/**\n\t* Whether connected to RabbitMQ\n\t*/\n\tget isConnected() {\n\t\treturn this._isConnected;\n\t}\n\t/**\n\t* Subscribe the given consumer class to the driver\n\t*\n\t* @param consumer - Consumer class to subscribe\n\t*\n\t* @example\n\t* ```typescript\n\t* driver.subscribe(UserUpdatedConsumer);\n\t* ```\n\t*/\n\tsubscribe(Consumer) {\n\t\tif (this.isConnected) this.channel(Consumer.eventName).subscribe(prepareConsumerSubscription(Consumer, (error, eventName) => {\n\t\t\tthis.events.emit(\"error\", error, eventName);\n\t\t}), { consumerId: Consumer.consumerId });\n\t\telse this.consumers.push(Consumer);\n\t\treturn () => {\n\t\t\tthis.unsubscribe(Consumer);\n\t\t};\n\t}\n\t/**\n\t* Unsubscribe the given consumer\n\t*/\n\tunsubscribe(Consumer) {\n\t\tif (this.isConnected) this.channel(Consumer.eventName).unsubscribeById(Consumer.consumerId);\n\t\tconst index = this.consumers.indexOf(Consumer);\n\t\tif (index > -1) this.consumers.splice(index, 1);\n\t}\n\t/**\n\t* Publish the given event message.\n\t* Auto-creates the channel if it hasn't been accessed before.\n\t*/\n\tpublish(event) {\n\t\tthis.channel(event.eventName).publish(event.serialize());\n\t}\n\t/**\n\t* Connect to RabbitMQ\n\t*/\n\tasync connect() {\n\t\tconst amqplib = await loadAmqplibModule();\n\t\tif (!amqplib) throw new Error(`amqplib is not installed.\\n\\n${AMQPLIB_INSTALL_INSTRUCTIONS}`);\n\t\ttry {\n\t\t\tconst url = this.buildConnectionUrl();\n\t\t\tconst connectOptions = {\n\t\t\t\theartbeat: this.options.heartbeat ?? 60,\n\t\t\t\ttimeout: this.options.connectionTimeout,\n\t\t\t\t...this.options.clientOptions\n\t\t\t};\n\t\t\tthis.connection = await amqplib.connect(url, connectOptions);\n\t\t\tthis.amqpChannel = await this.connection.createChannel();\n\t\t\tif (this.options.prefetch) await this.amqpChannel.prefetch(this.options.prefetch);\n\t\t\tthis._isConnected = true;\n\t\t\tthis.events.emit(\"connected\");\n\t\t\tfor (const consumer of this.consumers) this.subscribe(consumer);\n\t\t\tthis.consumers.length = 0;\n\t\t\tthis.connection.on(\"close\", () => {\n\t\t\t\tthis._isConnected = false;\n\t\t\t\tthis.events.emit(\"disconnected\");\n\t\t\t\tif (this.options.reconnect !== false) this.handleReconnect();\n\t\t\t});\n\t\t\tthis.connection.on(\"error\", (error) => {\n\t\t\t\tthis.events.emit(\"error\", error);\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tthis._isConnected = false;\n\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\tthrow new Error(`Failed to connect to RabbitMQ: ${redactAmqpCredentials(message)}`);\n\t\t}\n\t}\n\t/**\n\t* Build connection URL from options\n\t*/\n\tbuildConnectionUrl() {\n\t\tif (this.options.uri) return this.options.uri;\n\t\tconst protocol = \"amqp\";\n\t\tconst host = this.options.host ?? \"localhost\";\n\t\tconst port = this.options.port ?? 5672;\n\t\tconst vhost = this.options.vhost ?? \"/\";\n\t\treturn `${protocol}://${encodeURIComponent(this.options.username ?? \"guest\")}:${encodeURIComponent(this.options.password ?? \"guest\")}@${host}:${port}/${encodeURIComponent(vhost)}`;\n\t}\n\t/**\n\t* Handle reconnection\n\t*/\n\tasync handleReconnect() {\n\t\tconst delay = this.options.reconnectDelay ?? 5e3;\n\t\tlet attempt = 0;\n\t\tconst tryReconnect = async () => {\n\t\t\tattempt++;\n\t\t\tthis.events.emit(\"reconnecting\", attempt);\n\t\t\ttry {\n\t\t\t\tawait this.connect();\n\t\t\t} catch {\n\t\t\t\tsetTimeout(tryReconnect, delay);\n\t\t\t}\n\t\t};\n\t\tsetTimeout(tryReconnect, delay);\n\t}\n\t/**\n\t* Disconnect from RabbitMQ\n\t*/\n\tasync disconnect() {\n\t\tif (this.amqpChannel) {\n\t\t\ttry {\n\t\t\t\tawait this.amqpChannel.close();\n\t\t\t} catch {}\n\t\t\tthis.amqpChannel = null;\n\t\t}\n\t\tif (this.connection) {\n\t\t\ttry {\n\t\t\t\tawait this.connection.close();\n\t\t\t} catch {}\n\t\t\tthis.connection = null;\n\t\t}\n\t\tthis._isConnected = false;\n\t\tthis.events.emit(\"disconnected\");\n\t}\n\t/**\n\t* Register event listener\n\t*/\n\ton(event, listener) {\n\t\tthis.events.on(event, listener);\n\t}\n\t/**\n\t* Remove event listener\n\t*/\n\toff(event, listener) {\n\t\tthis.events.off(event, listener);\n\t}\n\t/**\n\t* Get or create a channel\n\t*/\n\tchannel(name, options) {\n\t\tconst existing = this.channels.get(name);\n\t\tif (existing) return existing;\n\t\tconst channel = new RabbitMQChannel(name, this.amqpChannel, options);\n\t\tthis.channels.set(name, channel);\n\t\treturn channel;\n\t}\n\t/**\n\t* Start consuming messages\n\t*/\n\tasync startConsuming() {}\n\t/**\n\t* Stop consuming messages from all subscribed channels.\n\t* Gracefully cancels all active consumers.\n\t*/\n\tasync stopConsuming() {\n\t\tconst stops = Array.from(this.channels.values()).map((channel) => channel.stopConsuming());\n\t\tawait Promise.all(stops);\n\t}\n\t/**\n\t* Health check\n\t*/\n\tasync healthCheck() {\n\t\tif (!this._isConnected || !this.connection) return {\n\t\t\thealthy: false,\n\t\t\terror: \"Not connected to RabbitMQ\"\n\t\t};\n\t\tconst start = Date.now();\n\t\ttry {\n\t\t\tawait this.amqpChannel.checkQueue(\"amq.rabbitmq.reply-to\").catch(() => {});\n\t\t\treturn {\n\t\t\t\thealthy: true,\n\t\t\t\tlatency: Date.now() - start\n\t\t\t};\n\t\t} catch (error) {\n\t\t\treturn {\n\t\t\t\thealthy: false,\n\t\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t\t\tlatency: Date.now() - start\n\t\t\t};\n\t\t}\n\t}\n\t/**\n\t* Get all channel names\n\t*/\n\tgetChannelNames() {\n\t\treturn Array.from(this.channels.keys());\n\t}\n\t/**\n\t* Close a specific channel\n\t*/\n\tasync closeChannel(name) {\n\t\tconst channel = this.channels.get(name);\n\t\tif (channel) {\n\t\t\tawait channel.delete();\n\t\t\tthis.channels.delete(name);\n\t\t}\n\t}\n\t/**\n\t* Get the raw AMQP channel (for advanced use)\n\t*/\n\tgetRawChannel() {\n\t\treturn this.amqpChannel;\n\t}\n\t/**\n\t* Get the raw connection (for advanced use)\n\t*/\n\tgetRawConnection() {\n\t\treturn this.connection;\n\t}\n};\n\n//#endregion\nexport { RabbitMQDriver };\n//# sourceMappingURL=rabbitmq-driver.mjs.map","//#region ../herald/src/communicators/broker.ts\n/**\n* Broker - wrapper around a driver with metadata\n*\n* Similar to DataSource in @warlock.js/cascade\n*\n* @example\n* ```typescript\n* const broker = new Broker({\n* name: \"default\",\n* driver: rabbitMQDriver,\n* isDefault: true,\n* });\n*\n* // Get a channel\n* const channel = broker.channel(\"user.created\");\n* ```\n*/\nvar Broker = class {\n\t/**\n\t* Create a new Broker\n\t*\n\t* @param options - Broker configuration\n\t*/\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.driver = options.driver;\n\t\tthis.isDefault = Boolean(options.isDefault);\n\t}\n\t/**\n\t* Subscribe the given consumer\n\t*/\n\tsubscribe(consumer) {\n\t\treturn this.driver.subscribe(consumer);\n\t}\n\t/**\n\t* Publish the given event message\n\t*/\n\tpublish(event) {\n\t\tthis.driver.publish(event);\n\t}\n\t/**\n\t* Get or create a channel\n\t*\n\t* @param name - Channel name\n\t* @param options - Channel options\n\t* @returns Channel instance\n\t*\n\t* @example\n\t* ```typescript\n\t* // Simple channel\n\t* const channel = broker.channel(\"notifications\");\n\t*\n\t* // Typed channel with schema\n\t* const orderChannel = broker.channel<OrderPayload>(\"orders\", {\n\t* schema: OrderSchema,\n\t* durable: true,\n\t* });\n\t* ```\n\t*/\n\tchannel(name, options) {\n\t\treturn this.driver.channel(name, options);\n\t}\n\t/**\n\t* Check if the broker is connected\n\t*/\n\tget isConnected() {\n\t\treturn this.driver.isConnected;\n\t}\n\t/**\n\t* Connect the underlying driver\n\t*/\n\tasync connect() {\n\t\tawait this.driver.connect();\n\t}\n\t/**\n\t* Disconnect the underlying driver\n\t*/\n\tasync disconnect() {\n\t\tawait this.driver.disconnect();\n\t}\n\t/**\n\t* Start consuming messages\n\t*/\n\tasync startConsuming() {\n\t\tawait this.driver.startConsuming();\n\t}\n\t/**\n\t* Stop consuming messages\n\t*/\n\tasync stopConsuming() {\n\t\tawait this.driver.stopConsuming();\n\t}\n\t/**\n\t* Health check\n\t*/\n\tasync healthCheck() {\n\t\treturn this.driver.healthCheck();\n\t}\n};\n\n//#endregion\nexport { Broker };\n//# sourceMappingURL=broker.mjs.map","import { Broker } from \"./broker.mjs\";\nimport { EventEmitter } from \"node:events\";\n\n//#region ../herald/src/communicators/broker-registry.ts\n/**\n* Error thrown when a broker is not found\n*/\nvar MissingBrokerError = class extends Error {\n\tconstructor(message, brokerName) {\n\t\tsuper(message);\n\t\tthis.name = \"MissingBrokerError\";\n\t\tthis.brokerName = brokerName;\n\t}\n};\n/**\n* Broker Registry\n*\n* Maintains registry of named brokers.\n* Similar to DataSourceRegistry in @warlock.js/cascade\n*\n* @example\n* ```typescript\n* // Register a broker\n* brokerRegistry.register({\n* name: \"default\",\n* driver: rabbitMQDriver,\n* isDefault: true,\n* });\n*\n* // Get the default broker\n* const comm = brokerRegistry.get();\n*\n* // Get a specific broker by name\n* const analytics = brokerRegistry.get(\"analytics\");\n*\n* // Listen for events\n* brokerRegistry.on(\"connected\", (comm) => {\n* console.log(`${comm.name} connected`);\n* });\n* ```\n*/\nvar BrokerRegistry = class {\n\tconstructor() {\n\t\tthis.sources = /* @__PURE__ */ new Map();\n\t\tthis.events = new EventEmitter();\n\t}\n\t/**\n\t* Register a new broker\n\t*\n\t* Sets up event forwarding from the driver to the registry.\n\t*\n\t* @param options - Broker configuration\n\t* @returns The registered broker instance\n\t*\n\t* @example\n\t* ```typescript\n\t* const broker = brokerRegistry.register({\n\t* name: \"primary\",\n\t* driver: myDriver,\n\t* isDefault: true,\n\t* });\n\t* ```\n\t*/\n\tregister(options) {\n\t\tconst broker = new Broker(options);\n\t\tthis.sources.set(broker.name, broker);\n\t\tconst isNewDefault = broker.isDefault || !this.defaultSource;\n\t\tif (isNewDefault) this.defaultSource = broker;\n\t\tthis.events.emit(\"registered\", broker);\n\t\tif (isNewDefault) this.events.emit(\"default-registered\", broker);\n\t\tbroker.driver.on(\"connected\", () => {\n\t\t\tthis.events.emit(\"connected\", broker);\n\t\t});\n\t\tbroker.driver.on(\"disconnected\", () => {\n\t\t\tthis.events.emit(\"disconnected\", broker);\n\t\t});\n\t\treturn broker;\n\t}\n\t/**\n\t* Clear all registered brokers\n\t*/\n\tclear() {\n\t\tthis.defaultSource = void 0;\n\t\tthis.sources.clear();\n\t}\n\t/**\n\t* Listen for registry events\n\t*\n\t* @param event - Event to listen for\n\t* @param listener - Callback function\n\t*\n\t* @example\n\t* ```typescript\n\t* brokerRegistry.on(\"registered\", (comm) => {\n\t* console.log(`Broker \"${comm.name}\" registered`);\n\t* });\n\t*\n\t* brokerRegistry.on(\"connected\", (comm) => {\n\t* console.log(`Broker \"${comm.name}\" connected`);\n\t* });\n\t* ```\n\t*/\n\ton(event, listener) {\n\t\tthis.events.on(event, listener);\n\t}\n\t/**\n\t* Listen for a registry event once\n\t*\n\t* @param event - Event to listen for\n\t* @param listener - Callback function\n\t*/\n\tonce(event, listener) {\n\t\tthis.events.once(event, listener);\n\t}\n\t/**\n\t* Remove an event listener\n\t*\n\t* @param event - Event to stop listening for\n\t* @param listener - Callback to remove\n\t*/\n\toff(event, listener) {\n\t\tthis.events.off(event, listener);\n\t}\n\t/**\n\t* Get a broker by name or the default one\n\t*\n\t* @param name - Optional broker name\n\t* @returns Broker instance\n\t* @throws MissingBrokerError if not found\n\t*\n\t* @example\n\t* ```typescript\n\t* // Get default broker\n\t* const comm = brokerRegistry.get();\n\t*\n\t* // Get specific broker\n\t* const analytics = brokerRegistry.get(\"analytics\");\n\t* ```\n\t*/\n\tget(name) {\n\t\tif (name !== void 0) {\n\t\t\tconst source = this.sources.get(name);\n\t\t\tif (!source) throw new MissingBrokerError(`Broker \"${name}\" is not registered.`, name);\n\t\t\treturn source;\n\t\t}\n\t\tif (!this.defaultSource) throw new MissingBrokerError(\"No default broker registered.\");\n\t\treturn this.defaultSource;\n\t}\n\t/**\n\t* Check if a broker exists\n\t*\n\t* @param name - Broker name to check\n\t* @returns True if exists\n\t*/\n\thas(name) {\n\t\treturn this.sources.has(name);\n\t}\n\t/**\n\t* Check if any brokers are registered\n\t*/\n\thasAny() {\n\t\treturn this.sources.size > 0;\n\t}\n\t/**\n\t* Get all registered brokers\n\t*\n\t* @returns Array of all brokers\n\t*\n\t* @example\n\t* ```typescript\n\t* // Disconnect all brokers\n\t* for (const comm of brokerRegistry.getAll()) {\n\t* await comm.disconnect();\n\t* }\n\t* ```\n\t*/\n\tgetAll() {\n\t\treturn Array.from(this.sources.values());\n\t}\n\t/**\n\t* Get all broker names\n\t*\n\t* @returns Array of broker names\n\t*/\n\tgetNames() {\n\t\treturn Array.from(this.sources.keys());\n\t}\n\t/**\n\t* Get the default broker (if any)\n\t*\n\t* @returns Default broker or undefined\n\t*/\n\tgetDefault() {\n\t\treturn this.defaultSource;\n\t}\n};\n/**\n* Global broker registry instance\n*/\nconst brokerRegistry = new BrokerRegistry();\n\n//#endregion\nexport { MissingBrokerError, brokerRegistry };\n//# sourceMappingURL=broker-registry.mjs.map","import { brokerRegistry } from \"../communicators/broker-registry.mjs\";\nimport \"../communicators/index.mjs\";\n\n//#region ../herald/src/utils/connect-to-broker.ts\n/**\n* Connect to a message broker and register it.\n*\n* This is a high-level utility function that simplifies connection setup\n* for most projects. It handles driver instantiation, connection,\n* broker creation, and automatic registration.\n*\n* **Supported Drivers:**\n* - `rabbitmq` (default) - RabbitMQ/AMQP driver\n* - `kafka` - Apache Kafka driver (coming soon)\n*\n* @param options - Connection configuration options\n* @returns A connected and registered Broker instance\n* @throws {Error} If connection fails or driver is not implemented\n*\n* @example\n* ```typescript\n* // RabbitMQ connection\n* const broker = await connectToBroker({\n* driver: \"rabbitmq\",\n* host: \"localhost\",\n* port: 5672,\n* username: \"guest\",\n* password: \"guest\",\n* });\n*\n* // Use the broker\n* await broker.channel(\"user.created\").publish({ userId: 1 });\n* ```\n*\n* @example\n* ```typescript\n* // Multiple brokers\n* await connectToBroker({\n* driver: \"rabbitmq\",\n* name: \"notifications\",\n* isDefault: true,\n* host: process.env.RABBITMQ_HOST,\n* });\n*\n* await connectToBroker({\n* driver: \"rabbitmq\",\n* name: \"analytics\",\n* host: process.env.ANALYTICS_RABBITMQ_HOST,\n* });\n*\n* // Use default broker\n* herald().channel(\"notifications\").publish({ ... });\n*\n* // Use specific broker\n* herald(\"analytics\").channel(\"events\").publish({ ... });\n* ```\n*/\nasync function connectToBroker(options) {\n\tconst driverType = options.driver ?? \"rabbitmq\";\n\tconst brokerName = options.name ?? \"default\";\n\tconst isDefault = options.isDefault ?? true;\n\tlet driver;\n\tswitch (driverType) {\n\t\tcase \"rabbitmq\": {\n\t\t\tconst rabbitOptions = options;\n\t\t\tconst { RabbitMQDriver } = await import(\"../drivers/rabbitmq/rabbitmq-driver.mjs\");\n\t\t\tdriver = new RabbitMQDriver(rabbitOptions);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"kafka\": throw new Error(\"Kafka driver is not yet implemented. Coming soon! For now, please use RabbitMQ.\");\n\t\tdefault: throw new Error(`Unknown driver: \"${driverType}\". Supported drivers: rabbitmq, kafka`);\n\t}\n\tconst broker = brokerRegistry.register({\n\t\tname: brokerName,\n\t\tdriver,\n\t\tisDefault\n\t});\n\ttry {\n\t\tawait driver.connect();\n\t} catch (error) {\n\t\tthrow new Error(`Failed to connect to ${driverType}: ${error instanceof Error ? error.message : String(error)}`);\n\t}\n\treturn broker;\n}\n/**\n* Get a broker by name or the default one.\n*\n* This is the main entry point for using brokers in your application.\n* Named after the package — `herald()` carries your messages!\n*\n* @param name - Optional broker name (uses default if not provided)\n* @returns Broker instance\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* // Get default broker\n* const channel = herald().channel(\"user.created\");\n* await channel.publish({ userId: 1 });\n*\n* // Get specific broker\n* const analyticsChannel = herald(\"analytics\").channel(\"events\");\n* await analyticsChannel.publish({ event: \"page_view\" });\n*\n* // Subscribe to messages\n* herald()\n* .channel<UserPayload>(\"user.created\")\n* .subscribe(async (message, ctx) => {\n* console.log(\"User created:\", message.payload);\n* await ctx.ack();\n* });\n* ```\n*/\nfunction herald(name) {\n\treturn brokerRegistry.get(name);\n}\n/**\n* Get channel instance for the given name from default broker.\n*\n* Shorthand for `herald().channel(name, options)`.\n*\n* @param name - Channel name\n* @param options - Optional channel options\n* @returns Channel instance\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* ```typescript\n* const channel = heraldChannel(\"user.created\");\n* await channel.publish({ userId: 1 });\n* ```\n*/\nfunction heraldChannel(name, options) {\n\treturn herald().channel(name, options);\n}\n/**\n* Publish an EventMessage to the default broker.\n*\n* @param event - Event message to publish\n* @returns Promise that resolves when the event is published\n* @throws Error if the broker is not connected\n*\n* @example\n* ```typescript\n* await publishEvent(new UserUpdatedEvent({ id: 1, name: \"John Doe\" }));\n* ```\n*/\nasync function publishEvent(event) {\n\treturn herald().publish(event);\n}\n/**\n* Subscribe an EventConsumer class to the default broker.\n*\n* @param Consumer - Event consumer class\n* @returns Unsubscribe function\n* @throws MissingBrokerError if broker not found\n*\n* @example\n* ```typescript\n* await subscribeConsumer(UserUpdatedConsumer);\n* ```\n*/\nasync function subscribeConsumer(Consumer) {\n\treturn herald().subscribe(Consumer);\n}\n\n//#endregion\nexport { connectToBroker, herald, heraldChannel, publishEvent, subscribeConsumer };\n//# sourceMappingURL=connect-to-broker.mjs.map","import { brokerRegistry } from \"../communicators/broker-registry.mjs\";\nimport \"../communicators/index.mjs\";\n\n//#region ../herald/src/decorators/consumable.ts\nconst pendingSubscribers = /* @__PURE__ */ new Set();\n/**\n* Register the consumer to the broker\n*/\nfunction Consumable(options) {\n\treturn function(target) {\n\t\tconst brokerName = options?.broker;\n\t\ttry {\n\t\t\tconst currentBroker = brokerRegistry.get(brokerName);\n\t\t\tif (currentBroker?.isConnected) currentBroker.subscribe(target);\n\t\t\telse pendingSubscribers.add({\n\t\t\t\tConsumer: target,\n\t\t\t\toptions\n\t\t\t});\n\t\t} catch {\n\t\t\tpendingSubscribers.add({\n\t\t\t\tConsumer: target,\n\t\t\t\toptions\n\t\t\t});\n\t\t}\n\t};\n}\nbrokerRegistry.on(\"connected\", (broker) => {\n\tfor (const { Consumer, options } of pendingSubscribers) {\n\t\tif (options?.broker && broker.name !== options.broker) continue;\n\t\tbroker.subscribe(Consumer);\n\t}\n});\n\n//#endregion\nexport { Consumable, pendingSubscribers };\n//# sourceMappingURL=consumable.mjs.map","import { Consumable } from \"../decorators/consumable.mjs\";\nimport \"../decorators/index.mjs\";\nimport { v } from \"@warlock.js/seal\";\nimport { randomUUID } from \"crypto\";\n\n//#region ../herald/src/message-managers/event-consumer.ts\n/**\n* This class is used to be part of the Herald Event Consumer Manager.\n* It should be used to consume events from Either RabbitMQ or Kafka through Herald\n*\n* It's highly recommended using it instead of declaring manual channel namd and subscribing to event\n*/\nvar EventConsumer = class {\n\tstatic get consumerId() {\n\t\tif (!this._consumerId) this._consumerId = randomUUID();\n\t\treturn this._consumerId;\n\t}\n\tget eventName() {\n\t\treturn this.constructor.eventName;\n\t}\n\t/**\n\t* Determine whether this is accepted version to be used by this consumer\n\t*/\n\tstatic isAcceptedVersion(version) {\n\t\tif (this.minVersion && version < this.minVersion) return false;\n\t\tif (this.maxVersion && version > this.maxVersion) return false;\n\t\treturn true;\n\t}\n\t/**\n\t* Validate the given data\n\t*/\n\tasync validate(data) {\n\t\tif (!this.schema) return;\n\t\treturn await v.validate(this.schema, data);\n\t}\n};\n/**\n* A shorthand to define an event consumer without declaring an entire class\n*/\nfunction defineConsumer(eventName, options) {\n\tconst Class = class AnnouncedConsumer extends EventConsumer {\n\t\tconstructor(..._args) {\n\t\t\tsuper(..._args);\n\t\t\tthis.schema = options.schema;\n\t\t}\n\t\tstatic {\n\t\t\tthis.eventName = eventName;\n\t\t}\n\t\tasync handle(payload, event) {\n\t\t\tif (options.validate) {\n\t\t\t\tconst result = await options.validate(payload);\n\t\t\t\tif (!result || !result.isValid) return;\n\t\t\t}\n\t\t\treturn options.handle(payload, event);\n\t\t}\n\t};\n\tConsumable()(Class);\n\treturn Class;\n}\n\n//#endregion\nexport { EventConsumer, defineConsumer };\n//# sourceMappingURL=event-consumer.mjs.map","import { randomUUID } from \"crypto\";\n\n//#region ../herald/src/message-managers/event-message.ts\nvar EventMessage = class {\n\t/**\n\t* Data that will be sent with the event (Payload)\n\t*/\n\ttoJSON() {\n\t\tif (!this.data) throw new Error(`no Data is defined for Event: ${this.eventName}`);\n\t\treturn this.data;\n\t}\n\tconstructor(data) {\n\t\tthis.data = data;\n\t}\n\t/**\n\t* Serialize the event to be ready for publishing.\n\t* Delegates payload resolution to toJSON() — override toJSON() to customize.\n\t*\n\t* @throws Error if toJSON() throws (e.g. no data provided)\n\t*/\n\tserialize() {\n\t\treturn {\n\t\t\tpayload: this.toJSON(),\n\t\t\tmetadata: this.metadata,\n\t\t\tmessageId: this.messageId ?? randomUUID(),\n\t\t\teventName: this.eventName,\n\t\t\tversion: this.version,\n\t\t\toccurredAt: /* @__PURE__ */ new Date(),\n\t\t\t__through: \"EventMessage\"\n\t\t};\n\t}\n};\n/**\n* A shorthand to define an event without declaring an entire class.\n*\n* This factory function creates an EventMessage subclass that transforms\n* input data (IncomingData) into a different output format (OutgoingData).\n*\n* @template IncomingData - The type of data passed to the constructor\n* @template OutgoingData - The type of data returned by toJSON()\n*\n* @example\n* ```typescript\n* const UserCreatedEvent = defineEvent<User, { id: number; name: string }>(\n* \"user.created\",\n* { toJSON: (user) => user.only([\"id\", \"name\"]) }\n* );\n*\n* publishEvent(new UserCreatedEvent(user));\n* ```\n*/\nfunction defineEvent(eventName, options = {}) {\n\treturn class AnnouncedEvent extends EventMessage {\n\t\tconstructor(data) {\n\t\t\tsuper(data);\n\t\t\tthis.eventName = eventName;\n\t\t\tthis.schema = options.schema;\n\t\t}\n\t\ttoJSON() {\n\t\t\tif (!options.toJSON) return this.data;\n\t\t\treturn options.toJSON(this.data);\n\t\t}\n\t};\n}\n\n//#endregion\nexport { EventMessage, defineEvent };\n//# sourceMappingURL=event-message.mjs.map","import { herald } from \"./utils/connect-to-broker.mjs\";\n\n//#region ../herald/src/use-case-broadcast.ts\n/**\n* Channel adapter that publishes use-case broadcast events onto a herald broker.\n*\n* Register it in the use-cases config so successful use cases fan out to the bus:\n*\n* @example\n* // src/config/use-cases.ts\n* import { heraldBroadcast } from \"@warlock.js/herald\";\n*\n* export default {\n* broadcast: {\n* enabled: true,\n* channels: [heraldBroadcast({ broker: \"default\" })],\n* },\n* } satisfies UseCaseConfigurations;\n*\n* @param options - Optional broker name (defaults to the default broker)\n*/\nfunction heraldBroadcast(options) {\n\treturn { async broadcast(event) {\n\t\tawait herald(options?.broker).channel(event.event).publish(event.payload);\n\t} };\n}\n\n//#endregion\nexport { heraldBroadcast };\n//# sourceMappingURL=use-case-broadcast.mjs.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"mappings":";;;;;;;AACA,SAAS,4BAA4B,UAAU,SAAS;CACvD,MAAM,WAAW,OAAO,SAAS,QAAQ;EACxC,MAAM,WAAW,QAAQ;EACzB,IAAI,eAAe,SAAS;EAC5B,IAAI,SAAS,SACZ;OAAI,CAAC,SAAS,kBAAkB,OAAO,SAAS,OAAO,CAAC,GAAG;IAC1D,IAAI,IAAI;IACR;GACD;;EAED,MAAM,WAAW,IAAI,SAAS;EAC9B,IAAI,SAAS,QAAQ;GACpB,MAAM,SAAS,MAAM,SAAS,SAAS,YAAY;GACnD,IAAI,CAAC,UAAU,OAAO,YAAY,OAAO;IACxC,IAAI,KAAK;IACT;GACD;GACA,eAAe,OAAO;EACvB;EACA,IAAI;GACH,MAAM,SAAS,OAAO,cAAc;IACnC,SAAS;IACT,WAAW,SAAS;IACpB,WAAW,QAAQ,SAAS;IAC5B,YAAY,SAAS,aAAa,IAAI,KAAK,SAAS,UAAU,IAAI,KAAK;IACvE,UAAU,SAAS;IACnB,SAAS,SAAS;IAClB;GACD,CAAC;GACD,IAAI,IAAI;EACT,SAAS,OAAO;GACf,MAA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