@qqbrowser/qbot-dsh 0.0.1 → 0.0.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.
Files changed (485) hide show
  1. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  2. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  3. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  4. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  5. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  6. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  7. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  8. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  10. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  11. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  12. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  13. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  14. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  15. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  16. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  17. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  18. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  19. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  20. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  21. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  22. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  23. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  24. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  25. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  26. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  27. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  28. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  32. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  40. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  43. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  45. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  47. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  58. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  61. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  64. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  65. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  66. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  67. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  68. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  70. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  72. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  75. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  77. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  78. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  79. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  80. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  81. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  82. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  83. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  84. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  85. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  87. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  89. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  91. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  93. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  95. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  97. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  98. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  99. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  101. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  103. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  105. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  106. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  108. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  110. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  112. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  114. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  116. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  118. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  120. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  124. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  131. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  136. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  138. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  140. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  141. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  147. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  150. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  151. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  153. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  155. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  156. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  157. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  165. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  171. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  172. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  174. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  176. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +1 -1
  178. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +1 -1
  179. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  192. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  193. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  194. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  195. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  196. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  197. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  198. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  199. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  200. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  201. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  202. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  203. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  204. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  205. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  206. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  207. package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +1 -1
  208. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +1 -1
  209. package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +1 -1
  210. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +1 -1
  211. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +1 -1
  212. package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +1 -1
  213. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +1 -1
  214. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +1 -1
  215. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  216. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  217. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  218. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  219. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  220. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  221. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  222. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  223. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  224. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  225. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  226. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  227. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  228. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  229. package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +1 -1
  230. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  231. package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +1 -1
  232. package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +1 -1
  233. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +1 -1
  234. package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +1 -1
  235. package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
  236. package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +1 -1
  237. package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +1 -1
  238. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +1 -1
  239. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +1 -1
  240. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +1 -1
  241. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +1 -1
  242. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +1 -1
  243. package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +1 -1
  244. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +1 -1
  245. package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +1 -1
  246. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +1 -1
  247. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +1 -1
  248. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +1 -1
  249. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +1 -1
  250. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +1 -1
  251. package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +1 -1
  252. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +1 -1
  253. package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +1 -1
  254. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +1 -1
  255. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +1 -1
  256. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +1 -1
  257. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +1 -1
  258. package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +1 -1
  259. package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +1 -1
  260. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  261. package/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +1 -1
  262. package/node_modules/micromark-util-character/dev/index.js +1 -1
  263. package/node_modules/micromark-util-character/index.js +1 -1
  264. package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +1 -1
  265. package/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +1 -1
  266. package/node_modules/oniguruma-to-es/dist/cjs/index.js +2 -2
  267. package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -1
  268. package/node_modules/oniguruma-to-es/dist/index.min.js +2 -2
  269. package/node_modules/sharp/dist/libvips.mjs +1 -1
  270. package/node_modules/sharp/dist/sharp.mjs +1 -1
  271. package/node_modules/sharp/dist/utility.mjs +1 -1
  272. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  273. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  274. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  275. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  276. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  277. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  278. package/node_modules/typebox/build/guard/string.mjs +1 -1
  279. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  280. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  281. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  282. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  283. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  284. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  285. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  286. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  287. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  288. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  289. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  290. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  291. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  292. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  293. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  294. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  295. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  296. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  297. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  298. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  299. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  300. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  301. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  302. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  303. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  304. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  305. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  306. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  307. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  308. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  309. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  310. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  311. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  312. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  313. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  314. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  315. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  316. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  317. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  318. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  319. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  320. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  321. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  322. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  323. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  324. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  325. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  326. package/node_modules/typebox/build/type/action/_add_immutable.mjs +1 -0
  327. package/node_modules/typebox/build/type/action/_add_optional.mjs +1 -0
  328. package/node_modules/typebox/build/type/action/_add_readonly.mjs +1 -0
  329. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +1 -0
  330. package/node_modules/typebox/build/type/action/_remove_optional.mjs +1 -0
  331. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +1 -0
  332. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  333. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  334. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  335. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  336. package/node_modules/typebox/build/type/action/with.mjs +1 -0
  337. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  338. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  339. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  340. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  341. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  342. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  343. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  344. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  345. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  346. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  347. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  348. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  349. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  350. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  351. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  352. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  353. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -0
  354. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +1 -0
  355. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  356. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +1 -0
  357. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  358. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  359. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  360. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  361. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  362. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  363. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  364. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  365. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  366. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  367. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +1 -0
  368. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  369. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  370. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -0
  371. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +1 -0
  372. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  373. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +1 -0
  374. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  375. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  376. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  377. package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
  378. package/node_modules/typebox/build/type/engine/priority/priority.mjs +1 -0
  379. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -0
  380. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +1 -0
  381. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  382. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +1 -0
  383. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  384. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  385. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  386. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  387. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  388. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  389. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  390. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +1 -0
  391. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  392. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  393. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  394. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  395. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  396. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  397. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  398. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +1 -0
  399. package/node_modules/typebox/build/type/extends/dependent.mjs +1 -0
  400. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  401. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  402. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  403. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  404. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  405. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  406. package/node_modules/typebox/build/type/extends/record.mjs +1 -0
  407. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  408. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  409. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  410. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  411. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  412. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  413. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  414. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  415. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  416. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  417. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  418. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  419. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  420. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  421. package/node_modules/typebox/build/type/types/dependent.mjs +1 -0
  422. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  423. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  424. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  425. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  426. package/node_modules/typebox/build/typebox.mjs +1 -1
  427. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  428. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  429. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  430. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  431. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  432. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  433. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  434. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  435. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  436. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  437. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  438. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  439. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  440. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  441. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  442. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  443. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  444. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  445. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  446. package/node_modules/typebox/build/value/index.mjs +1 -1
  447. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  448. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  449. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  450. package/node_modules/typebox/build/value/value.mjs +1 -1
  451. package/node_modules/typebox/package.json +1 -1
  452. package/package.json +1 -1
  453. package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -1
  454. package/node_modules/typebox/build/schema/types/_guard.mjs +0 -1
  455. package/node_modules/typebox/build/type/action/_optional.mjs +0 -1
  456. package/node_modules/typebox/build/type/action/_readonly.mjs +0 -1
  457. package/node_modules/typebox/build/type/action/awaited.mjs +0 -1
  458. package/node_modules/typebox/build/type/action/options.mjs +0 -1
  459. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -1
  460. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -1
  461. package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
  462. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +0 -1
  463. package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -1
  464. package/node_modules/typebox/build/type/extends/iterator.mjs +0 -1
  465. package/node_modules/typebox/build/type/extends/promise.mjs +0 -1
  466. package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -1
  467. package/node_modules/typebox/build/type/types/base.mjs +0 -1
  468. package/node_modules/typebox/build/type/types/iterator.mjs +0 -1
  469. package/node_modules/typebox/build/type/types/promise.mjs +0 -1
  470. package/node_modules/typebox/build/value/clean/from_base.mjs +0 -1
  471. package/node_modules/typebox/build/value/convert/from_base.mjs +0 -1
  472. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -1
  473. package/node_modules/typebox/build/value/create/from_base.mjs +0 -1
  474. package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -1
  475. package/node_modules/typebox/build/value/create/from_promise.mjs +0 -1
  476. package/node_modules/typebox/build/value/default/from_base.mjs +0 -1
  477. package/node_modules/typebox/build/value/mutate/error.mjs +0 -1
  478. package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -1
  479. package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -1
  480. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -1
  481. package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -1
  482. package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
  483. package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -1
  484. package/node_modules/typebox/build/value/repair/from_base.mjs +0 -1
  485. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
@@ -30,7 +30,7 @@ var pn=Object.defineProperty;var l=(Z,ue)=>pn(Z,"name",{value:ue,configurable:!0
30
30
  | &&
31
31
  | .
32
32
  `.replace(/\s+/g,""),"gsu");function _r(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");let n=Zr(r.flags),o=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX(){return o.at(-1)},numOpenGroups:0,popModX(){o.pop()},pushModX(c){o.push(c)},replaceCurrentModX(c){o[o.length-1]=c},singleline:r.rules.singleline},i=[],s;for(re.lastIndex=0;s=re.exec(e);){let c=Nr(a,e,s[0],re.lastIndex);c.tokens?i.push(...c.tokens):c.token&&i.push(c.token),c.lastIndex!==void 0&&(re.lastIndex=c.lastIndex)}let u=[],p=0;i.filter(c=>c.type==="GroupOpen").forEach(c=>{c.kind==="capturing"?c.number=++p:c.raw==="("&&u.push(c)}),p||u.forEach((c,f)=>{c.kind="capturing",c.number=f+1});let d=p||u.length;return{tokens:i.map(c=>c.type==="EscapedNumber"?Qr(c,d):c).flat(),flags:n}}l(_r,"Ze");function Nr(e,t,r,n){let[o,a]=r;if(r==="["||r==="[^"){let i=Mr(t,r,n);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(o==="\\"){if("AbBGyYzZ".includes(a))return{token:Pe(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Tr(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Re(r)}}if(a==="K")return{token:Be("keep",r)};if(a==="N"||a==="R")return{token:U("newline",r,{negate:a==="N"})};if(a==="O")return{token:U("any",r)};if(a==="X")return{token:U("text_segment",r)};let i=Fe(r,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(o==="("){if(a==="*")return{token:Vr(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:jr(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:W("group",r)};if(r==="(?>")return{token:W("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:W(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:W("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:W("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Dr(r)}}if(e.getCurrentModX()){if(r==="#"){let i=t.indexOf(`
33
- `,n);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(r)){let i=/\s+/y;return i.lastIndex=n,{lastIndex:i.exec(t)?i.lastIndex:n}}}if(r===".")return{token:U("dot",r)};if(r==="^"||r==="$"){let i=e.singleline?{"^":x`\A`,$:x`\Z`}[r]:r;return{token:Pe(i,r)}}return r==="|"?{token:Fr(r)}:de.test(r)?{tokens:Kr(r)}:{token:M(O(r),r)}}l(Nr,"Br");function Mr(e,t,r){let n=[Ue(t[1]==="^",t)],o=1,a;for(fe.lastIndex=r;a=fe.exec(e);){let i=a[0];if(i[0]==="["&&i[1]!==":")o++,n.push(Ue(i[1]==="^",i));else if(i==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(M(93,i));else if(o--,n.push(Pr(i)),!o)break}else{let s=Lr(i);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:fe.lastIndex||e.length}}l(Mr,"Vr");function Lr(e){if(e[0]==="\\")return Fe(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ce.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return U("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Rr(e):e==="&&"?Ur(e):M(O(e),e)}l(Lr,"zr");function Fe(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return zr(e);if("dDhHsSwW".includes(r))return Hr(e);if(e.startsWith(x`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Xr(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let n=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),a=new TextEncoder;return[...o].map(i=>{let s=[...a.encode(i)].map(u=>`\\x${u.toString(16)}`).join("");return M(O(i),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return M(qr(e),e);if(De.has(r))return M(De.get(r),e);if(/\d/.test(r))return Br(t,e);if(e==="\\")throw new Error(x`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return M(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}l(Fe,"Qe");function Fr(e){return{type:"Alternator",raw:e}}l(Fr,"Wr");function Pe(e,t){return{type:"Assertion",kind:e,raw:t}}l(Pe,"Be");function Re(e){return{type:"Backreference",raw:e}}l(Re,"qe");function M(e,t){return{type:"Character",value:e,raw:t}}l(M,"N");function Pr(e){return{type:"CharacterClassClose",raw:e}}l(Pr,"Hr");function Rr(e){return{type:"CharacterClassHyphen",raw:e}}l(Rr,"jr");function Ur(e){return{type:"CharacterClassIntersector",raw:e}}l(Ur,"Xr");function Ue(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}l(Ue,"Ve");function U(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}l(U,"T");function Be(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:T(r.flags),raw:t}}l(Be,"Je");function Br(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}l(Br,"Zr");function Dr(e){return{type:"GroupClose",raw:e}}l(Dr,"Qr");function W(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}l(W,"X");function Gr(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}l(Gr,"qr");function Or(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}l(Or,"Jr");function Tr(e){return{type:"Subroutine",raw:e}}l(Tr,"Kr");var Wr=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),De=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function zr(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return M(O(t.toUpperCase())-64,e)}l(zr,"et");function jr(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let o=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=Oe(r),i=Oe(n),s={};if(a&&(s.enable=a),i&&(s.disable=i),e.endsWith(")"))return t.replaceCurrentModX(o),Be("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(o),t.numOpenGroups++,W("group",e,{...(a||i)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}l(jr,"rt");function Vr(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:o}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let a=o?o.split(",").filter(d=>d!=="").map(d=>/^[+-]?\d+$/.test(d)?+d:d):[],[i,s,u]=a,p=Wr.has(r)?r.toLowerCase():"custom";switch(p){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(a.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(a.length!==3)throw new Error(`Named callout must have three arguments "${a}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${p}"`)}return Gr(p,n??null,o?.split(",")??null,e)}l(Vr,"tt");function Ge(e){let t=null,r,n;if(e[0]==="{"){let{minStr:o,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+o>i||a&&+a>i)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+o,n=a===void 0?+o:a===""?1/0:+a,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Or(t,r,n,e)}l(Ge,"We");function Hr(e){let t=e[1].toLowerCase();return U({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}l(Hr,"nt");function Xr(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return U("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}l(Xr,"st");function Oe(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}l(Oe,"He");function Zr(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}l(Zr,"at");function qr(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}l(qr,"ot");function Qr(e,t){let{raw:r,inCharClass:n}=e,o=r.slice(1);if(!n&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=t))return[Re(r)];let a=[],i=o.match(/^[0-7]+|\d/g);for(let s=0;s<i.length;s++){let u=i[s],p;if(s===0&&u!=="8"&&u!=="9"){if(p=parseInt(u,8),p>127)throw new Error(x`Octal encoded byte above 177 unsupported "${r}"`)}else p=O(u);a.push(M(p,(s===0?"\\":"")+u))}return a}l(Qr,"it");function Kr(e){let t=[],r=new RegExp(de,"gy"),n;for(;n=r.exec(e);){let o=n[0];if(o[0]==="{"){let a=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(o);if(a){let{min:i,max:s}=a.groups;if(+i>+s&&o.endsWith("?")){r.lastIndex--,t.push(Ge(o.slice(0,-1)));continue}}}t.push(Ge(o))}return t}l(Kr,"ut");function Te(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}l(Te,"pe");function Yr(e){return Jr.has(e.type)}l(Yr,"Ke");var Jr=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function We(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=_r(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),o=l((f,h)=>{let g=n.tokens[a.nextIndex];switch(a.parent=f,a.nextIndex++,g.type){case"Alternator":return B();case"Assertion":return et(g);case"Backreference":return rt(g,a);case"Character":return te(g.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return tt(g,a,h);case"CharacterClassOpen":return nt(g,a,h);case"CharacterSet":return at(g,a);case"Directive":return pt(g.kind,{flags:g.flags});case"GroupOpen":return ot(g,a,h);case"NamedCallout":return dt(g.kind,g.tag,g.arguments);case"Quantifier":return it(g,a);case"Subroutine":return st(g,a);default:throw new Error(`Unexpected token type "${g.type}"`)}},"a"),a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:o},i=gt(ct(n.flags)),s=i.body[0];for(;a.nextIndex<n.tokens.length;){let f=o(s,{});f.type==="Alternative"?(i.body.push(f),s=f):s.body.push(f)}let{capturingGroups:u,hasNumberedRef:p,namedGroupsByName:d,subroutines:c}=a;if(p&&d.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:f}of c)if(typeof f=="number"){if(f>u.length)throw new Error("Subroutine uses a group number that's not defined");f&&(u[f-1].isSubroutined=!0)}else if(d.has(f)){if(d.get(f).length>1)throw new Error(x`Subroutine uses a duplicate group name "\g<${f}>"`);d.get(f)[0].isSubroutined=!0}else throw new Error(x`Subroutine uses a group name that's not defined "\g<${f}>"`);return i}l(We,"de");function et({kind:e}){return ge(T({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===x`\B`||e===x`\Y`})}l(et,"lt");function rt({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),o=l((a,i=!1)=>{let s=t.capturingGroups.length,u=!1;if(a>s)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,he(i?s+1-a:a,{orphan:u})},"a");if(r){let a=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(a)return o(+a.groups.num,!!a.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return he(n)}return o(+n)}l(rt,"pt");function tt(e,t,r){let{tokens:n,walk:o}=t,a=t.parent,i=a.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let u=o(a,{...r,isCheckingRangeEnd:!0});if(i.type==="Character"&&u.type==="Character")return a.body.pop(),ut(i,u);throw new Error("Invalid character class range")}return te(O("-"))}l(tt,"ft");function nt({negate:e},t,r){let{tokens:n,walk:o}=t,a=[ne()],i=n[t.nextIndex],s=qe(i);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")a.push(ne()),t.nextIndex++;else{let p=a.at(-1);p.body.push(o(p,r))}s=qe(n[t.nextIndex],i)}let u=ne({negate:e});return a.length===1?u.body=a[0].body:(u.kind="intersection",u.body=a.map(p=>p.body.length===1?p.body[0]:p)),t.nextIndex++,u}l(nt,"dt");function at({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:o,skipPropertyNameValidation:a,unicodePropertyMap:i}=n;if(e==="property"){let s=ae(r);if(ce.has(s)&&!i?.has(s))e="posix",r=s;else return z(r,{negate:t,normalizeUnknownPropertyNames:o,skipPropertyNameValidation:a,unicodePropertyMap:i})}return e==="posix"?ft(r,{negate:t}):we(e,{negate:t})}l(at,"gt");function ot(e,t,r){let{tokens:n,capturingGroups:o,namedGroupsByName:a,skipLookbehindValidation:i,walk:s}=t,u=ht(e),p=u.type==="AbsenceFunction",d=Ze(u),c=d&&u.negate;if(u.type==="CapturingGroup"&&(o.push(u),u.name&&Sr(a,u.name,[]).push(u)),p&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Qe(n[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")u.body.push(B()),t.nextIndex++;else{let h=u.body.at(-1),g=s(h,{...r,isInAbsenceFunction:r.isInAbsenceFunction||p,isInLookbehind:r.isInLookbehind||d,isInNegLookbehind:r.isInNegLookbehind||c});if(h.body.push(g),(d||r.isInLookbehind)&&!i){let y="Lookbehind includes a pattern not allowed by Oniguruma";if(c||r.isInNegLookbehind){if(Xe(g)||g.type==="CapturingGroup")throw new Error(y)}else if(Xe(g)||Ze(g)&&g.negate)throw new Error(y)}}f=Qe(n[t.nextIndex])}return t.nextIndex++,u}l(ot,"ht");function it({kind:e,min:t,max:r},n){let o=n.parent,a=o.body.at(-1);if(!a||!Yr(a))throw new Error("Quantifier requires a repeatable token");let i=je(e,t,r,a);return o.body.pop(),i}l(it,"mt");function st({raw:e},t){let{capturingGroups:r,subroutines:n}=t,o=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(a){let s=+a.groups.num,u=r.length;if(t.hasNumberedRef=!0,o={"":s,"+":u+s,"-":u+1-s}[a.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);let i=Ve(o);return n.push(i),i}l(st,"wt");function lt(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Q(t?.body)}}l(lt,"Ct");function B(e){return{type:"Alternative",body:He(e?.body)}}l(B,"L");function ge(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}l(ge,"ge");function he(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}l(he,"fe");function ze(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!wt(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Q(t?.body)}}l(ze,"ke");function te(e,t){let r={useLastValid:!1,...t};if(e>1114111){let n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}l(te,"Z");function ne(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:He(e?.body)}}l(ne,"re");function ut(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}l(ut,"yt");function we(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}l(we,"he");function pt(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:T(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}l(pt,"bt");function ct(e){return{type:"Flags",...e}}l(ct,"xt");function N(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Q(e?.body)}}l(N,"S");function D(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Q(e?.body)}}l(D,"O");function dt(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}l(dt,"kt");function ft(e,t){let r=!!t?.negate;if(!ce.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}l(ft,"Et");function je(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}l(je,"Ee");function gt(e,t){return{type:"Regex",body:Q(t?.body),flags:e}}l(gt,"At");function Ve(e){return{type:"Subroutine",ref:e}}l(Ve,"Ae");function z(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(ae(e));if(!n){if(r.normalizeUnknownPropertyNames)n=yt(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(x`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}l(z,"B");function ht({flags:e,kind:t,name:r,negate:n,number:o}){switch(t){case"absence_repeater":return lt("repeater");case"atomic":return N({atomic:!0});case"capturing":return ze(o,{name:r});case"group":return N({flags:e});case"lookahead":case"lookbehind":return D({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}l(ht,"It");function Q(e){if(e===void 0)e=[B()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}l(Q,"te");function He(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}l(He,"nr");function Xe(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}l(Xe,"Ye");function Ze(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}l(Ze,"er");function wt(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}l(wt,"$t");function yt(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}l(yt,"St");function ae(e){return e.replace(/[- _]+/g,"").toLowerCase()}l(ae,"Q");function qe(e,t){let r=t;return T(e,`Unclosed character class${r?.type==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}l(qe,"rr");function Qe(e){return T(e,"Unclosed group")}l(Qe,"tr");var mt="[ -\r ]",bt=new Set([C(304),C(305)]),L=w`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ke(e){if(bt.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),o=xt.get(r),a=Ct.get(r),i=kt.get(r);return[...n].length===1&&t.add(n),i&&t.add(i),o&&t.add(o),t.add(r),a&&t.add(a),[...t]}l(Ke,"$e");var ye=new Map(`C Other
33
+ `,n);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(r)){let i=/\s+/y;return i.lastIndex=n,{lastIndex:i.exec(t)?i.lastIndex:n}}}if(r===".")return{token:U("dot",r)};if(r==="^"||r==="$"){let i=e.singleline?{"^":x`\A`,$:x`\Z`}[r]:r;return{token:Pe(i,r)}}return r==="|"?{token:Fr(r)}:de.test(r)?{tokens:Kr(r)}:{token:M(O(r),r)}}l(Nr,"Br");function Mr(e,t,r){let n=[Ue(t[1]==="^",t)],o=1,a;for(fe.lastIndex=r;a=fe.exec(e);){let i=a[0];if(i[0]==="["&&i[1]!==":")o++,n.push(Ue(i[1]==="^",i));else if(i==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(M(93,i));else if(o--,n.push(Pr(i)),!o)break}else{let s=Lr(i);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:fe.lastIndex||e.length}}l(Mr,"Vr");function Lr(e){if(e[0]==="\\")return Fe(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ce.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return U("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Rr(e):e==="&&"?Ur(e):M(O(e),e)}l(Lr,"zr");function Fe(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return zr(e);if("dDhHsSwW".includes(r))return Hr(e);if(e.startsWith(x`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Xr(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{let n=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),a=new TextEncoder;return[...o].map(i=>{let s=[...a.encode(i)].map(u=>`\\x${u.toString(16)}`).join("");return M(O(i),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return M(qr(e),e);if(De.has(r))return M(De.get(r),e);if(/\d/.test(r))return Br(t,e);if(e==="\\")throw new Error(x`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return M(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}l(Fe,"Qe");function Fr(e){return{type:"Alternator",raw:e}}l(Fr,"Wr");function Pe(e,t){return{type:"Assertion",kind:e,raw:t}}l(Pe,"Be");function Re(e){return{type:"Backreference",raw:e}}l(Re,"qe");function M(e,t){return{type:"Character",value:e,raw:t}}l(M,"N");function Pr(e){return{type:"CharacterClassClose",raw:e}}l(Pr,"Hr");function Rr(e){return{type:"CharacterClassHyphen",raw:e}}l(Rr,"jr");function Ur(e){return{type:"CharacterClassIntersector",raw:e}}l(Ur,"Xr");function Ue(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}l(Ue,"Ve");function U(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}l(U,"T");function Be(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:T(r.flags),raw:t}}l(Be,"Je");function Br(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}l(Br,"Zr");function Dr(e){return{type:"GroupClose",raw:e}}l(Dr,"Qr");function W(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}l(W,"X");function Gr(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}l(Gr,"qr");function Or(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}l(Or,"Jr");function Tr(e){return{type:"Subroutine",raw:e}}l(Tr,"Kr");var Wr=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),De=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function zr(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return M(O(t.toUpperCase())-64,e)}l(zr,"et");function jr(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let o=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=Oe(r),i=Oe(n),s={};if(a&&(s.enable=a),i&&(s.disable=i),e.endsWith(")"))return t.replaceCurrentModX(o),Be("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(o),t.numOpenGroups++,W("group",e,{...(a||i)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}l(jr,"rt");function Vr(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:o}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let a=o?o.split(",").filter(d=>d!=="").map(d=>/^[+-]?\d+$/.test(d)?+d:d):[],[i,s,u]=a,p=Wr.has(r)?r.toLowerCase():"custom";switch(p){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(a.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(a.length!==3)throw new Error(`Named callout must have three arguments "${a}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${p}"`)}return Gr(p,n??null,o?.split(",")??null,e)}l(Vr,"tt");function Ge(e){let t=null,r,n;if(e[0]==="{"){let{minStr:o,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+o>i||a&&+a>i)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+o,n=a===void 0?+o:a===""?1/0:+a,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Or(t,r,n,e)}l(Ge,"We");function Hr(e){let t=e[1].toLowerCase();return U({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}l(Hr,"nt");function Xr(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return U("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}l(Xr,"st");function Oe(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}l(Oe,"He");function Zr(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}l(Zr,"at");function qr(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}l(qr,"ot");function Qr(e,t){let{raw:r,inCharClass:n}=e,o=r.slice(1);if(!n&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=t))return[Re(r)];let a=[],i=o.match(/^[0-7]+|\d/g);for(let s=0;s<i.length;s++){let u=i[s],p;if(s===0&&u!=="8"&&u!=="9"){if(p=parseInt(u,8),p>127)throw new Error(x`Octal encoded byte above 177 unsupported "${r}"`)}else p=O(u);a.push(M(p,(s===0?"\\":"")+u))}return a}l(Qr,"it");function Kr(e){let t=[],r=new RegExp(de,"gy"),n;for(;n=r.exec(e);){let o=n[0];if(o[0]==="{"){let a=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(o);if(a){let{min:i,max:s}=a.groups;if(+i>+s&&o.endsWith("?")){r.lastIndex--,t.push(Ge(o.slice(0,-1)));continue}}}t.push(Ge(o))}return t}l(Kr,"ut");function Te(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}l(Te,"pe");function Yr(e){return Jr.has(e.type)}l(Yr,"Ke");var Jr=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function We(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=_r(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),o=l((f,h)=>{let g=n.tokens[a.nextIndex];switch(a.parent=f,a.nextIndex++,g.type){case"Alternator":return B();case"Assertion":return et(g);case"Backreference":return rt(g,a);case"Character":return te(g.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return tt(g,a,h);case"CharacterClassOpen":return nt(g,a,h);case"CharacterSet":return at(g,a);case"Directive":return pt(g.kind,{flags:g.flags});case"GroupOpen":return ot(g,a,h);case"NamedCallout":return dt(g.kind,g.tag,g.arguments);case"Quantifier":return it(g,a);case"Subroutine":return st(g,a);default:throw new Error(`Unexpected token type "${g.type}"`)}},"a"),a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:o},i=gt(ct(n.flags)),s=i.body[0];for(;a.nextIndex<n.tokens.length;){let f=o(s,{});f.type==="Alternative"?(i.body.push(f),s=f):s.body.push(f)}let{capturingGroups:u,hasNumberedRef:p,namedGroupsByName:d,subroutines:c}=a;if(p&&d.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:f}of c)if(typeof f=="number"){if(f>u.length)throw new Error("Subroutine uses a group number that's not defined");f&&(u[f-1].isSubroutined=!0)}else if(d.has(f)){if(d.get(f).length>1)throw new Error(x`Subroutine uses a duplicate group name "\g<${f}>"`);d.get(f)[0].isSubroutined=!0}else throw new Error(x`Subroutine uses a group name that's not defined "\g<${f}>"`);return i}l(We,"de");function et({kind:e}){return ge(T({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===x`\B`||e===x`\Y`})}l(et,"lt");function rt({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),o=l((a,i=!1)=>{let s=t.capturingGroups.length,u=!1;if(a>s)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,he(i?s+1-a:a,{orphan:u})},"a");if(r){let a=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(a)return o(+a.groups.num,!!a.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return he(n)}return o(+n)}l(rt,"pt");function tt(e,t,r){let{tokens:n,walk:o}=t,a=t.parent,i=a.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let u=o(a,{...r,isCheckingRangeEnd:!0});if(i.type==="Character"&&u.type==="Character")return a.body.pop(),ut(i,u);throw new Error("Invalid character class range")}return te(O("-"))}l(tt,"ft");function nt({negate:e},t,r){let{tokens:n,walk:o}=t,a=[ne()],i=n[t.nextIndex],s=qe(i);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")a.push(ne()),t.nextIndex++;else{let p=a.at(-1);p.body.push(o(p,r))}s=qe(n[t.nextIndex],i)}let u=ne({negate:e});return a.length===1?u.body=a[0].body:(u.kind="intersection",u.body=a.map(p=>p.body.length===1?p.body[0]:p)),t.nextIndex++,u}l(nt,"dt");function at({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:o,skipPropertyNameValidation:a,unicodePropertyMap:i}=n;if(e==="property"){let s=ae(r);if(ce.has(s)&&!i?.has(s))e="posix",r=s;else return z(r,{negate:t,normalizeUnknownPropertyNames:o,skipPropertyNameValidation:a,unicodePropertyMap:i})}return e==="posix"?ft(r,{negate:t}):we(e,{negate:t})}l(at,"gt");function ot(e,t,r){let{tokens:n,capturingGroups:o,namedGroupsByName:a,skipLookbehindValidation:i,walk:s}=t,u=ht(e),p=u.type==="AbsenceFunction",d=Ze(u),c=d&&u.negate;if(u.type==="CapturingGroup"&&(o.push(u),u.name&&Sr(a,u.name,[]).push(u)),p&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Qe(n[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")u.body.push(B()),t.nextIndex++;else{let h=u.body.at(-1),g=s(h,{...r,isInAbsenceFunction:r.isInAbsenceFunction||p,isInLookbehind:r.isInLookbehind||d,isInNegLookbehind:r.isInNegLookbehind||c});if(h.body.push(g),(d||r.isInLookbehind)&&!i){let y="Lookbehind includes a pattern not allowed by Oniguruma";if(c||r.isInNegLookbehind){if(Xe(g)||g.type==="CapturingGroup")throw new Error(y)}else if(Xe(g)||Ze(g)&&g.negate)throw new Error(y)}}f=Qe(n[t.nextIndex])}return t.nextIndex++,u}l(ot,"ht");function it({kind:e,min:t,max:r},n){let o=n.parent,a=o.body.at(-1);if(!a||!Yr(a))throw new Error("Quantifier requires a repeatable token");let i=je(e,t,r,a);return o.body.pop(),i}l(it,"mt");function st({raw:e},t){let{capturingGroups:r,subroutines:n}=t,o=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(a){let s=+a.groups.num,u=r.length;if(t.hasNumberedRef=!0,o={"":s,"+":u+s,"-":u+1-s}[a.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);let i=Ve(o);return n.push(i),i}l(st,"wt");function lt(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Q(t?.body)}}l(lt,"Ct");function B(e){return{type:"Alternative",body:He(e?.body)}}l(B,"L");function ge(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}l(ge,"ge");function he(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}l(he,"fe");function ze(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!wt(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Q(t?.body)}}l(ze,"ke");function te(e,t){let r={useLastValid:!1,...t};if(e>1114111){let n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}l(te,"Z");function ne(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:He(e?.body)}}l(ne,"re");function ut(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}l(ut,"yt");function we(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}l(we,"he");function pt(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:T(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}l(pt,"bt");function ct(e){return{type:"Flags",...e}}l(ct,"xt");function N(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Q(e?.body)}}l(N,"S");function D(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Q(e?.body)}}l(D,"O");function dt(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}l(dt,"kt");function ft(e,t){let r=!!t?.negate;if(!ce.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}l(ft,"Et");function je(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}l(je,"Ee");function gt(e,t){return{type:"Regex",body:Q(t?.body),flags:e}}l(gt,"At");function Ve(e){return{type:"Subroutine",ref:e}}l(Ve,"Ae");function z(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(ae(e));if(!n){if(r.normalizeUnknownPropertyNames)n=yt(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(x`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}l(z,"B");function ht({flags:e,kind:t,name:r,negate:n,number:o}){switch(t){case"absence_repeater":return lt("repeater");case"atomic":return N({atomic:!0});case"capturing":return ze(o,{name:r});case"group":return N({flags:e});case"lookahead":case"lookbehind":return D({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}l(ht,"It");function Q(e){if(e===void 0)e=[B()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}l(Q,"te");function He(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}l(He,"nr");function Xe(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}l(Xe,"Ye");function Ze(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}l(Ze,"er");function wt(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}l(wt,"$t");function yt(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}l(yt,"St");function ae(e){return e.replace(/[- _]+/g,"").toLowerCase()}l(ae,"Q");function qe(e,t){let r=t;return T(e,`Unclosed character class${r?.type==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}l(qe,"rr");function Qe(e){return T(e,"Unclosed group")}l(Qe,"tr");var mt="[ -\r ]",bt=new Set([C(304),C(305)]),L=w`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ke(e){if(bt.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),o=xt.get(r),a=Ct.get(r),i=kt.get(r);return[...n].length===1&&t.add(n),i&&t.add(i),o&&t.add(o),t.add(r),a&&t.add(a),[...t]}l(Ke,"$e");var ye=new Map(`C Other
34
34
  Cc Control cntrl
35
35
  Cf Format
36
36
  Cn Unassigned
@@ -123,7 +123,7 @@ XID_Continue XIDC
123
123
  XID_Start XIDS`.split(/\s/).map(e=>[ae(e),e])),Ct=new Map([["s",C(383)],[C(383),"s"]]),kt=new Map([[C(223),C(7838)],[C(107),C(8490)],[C(229),C(8491)],[C(969),C(8486)]]),xt=new Map([P(453),P(456),P(459),P(498),...me(8072,8079),...me(8088,8095),...me(8104,8111),P(8124),P(8140),P(8188)]),Et=new Map([["alnum",w`[\p{Alpha}\p{Nd}]`],["alpha",w`\p{Alpha}`],["ascii",w`\p{ASCII}`],["blank",w`[\p{Zs}\t]`],["cntrl",w`\p{Cc}`],["digit",w`\p{Nd}`],["graph",w`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",w`\p{Lower}`],["print",w`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",w`[\p{P}\p{S}]`],["space",w`\p{space}`],["upper",w`\p{Upper}`],["word",w`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",w`\p{AHex}`]]);function $t(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r}l($t,"Nt");function P(e){let t=C(e);return[t.toLowerCase(),t]}l(P,"R");function me(e,t){return $t(e,t).map(r=>P(r))}l(me,"Ie");var Ye=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function K(e,t,r=null){function n(a,i){for(let s=0;s<a.length;s++){let u=o(a[s],i,s,a);s=Math.max(-1,s+u)}}l(n,"n");function o(a,i=null,s=null,u=null){let p=0,d=!1,c={node:a,parent:i,key:s,container:u,root:e,remove(){oe(u).splice(Math.max(0,j(s)+p),1),p--,d=!0},removeAllNextSiblings(){return oe(u).splice(j(s)+1)},removeAllPrevSiblings(){let k=j(s)+p;return p-=k,oe(u).splice(0,Math.max(0,k))},replaceWith(k,$={}){let A=!!$.traverse;u?u[Math.max(0,j(s)+p)]=k:T(i,"Can't replace root node")[s]=k,A&&o(k,i,s,u),d=!0},replaceWithMultiple(k,$={}){let A=!!$.traverse;if(oe(u).splice(Math.max(0,j(s)+p),1,...k),p+=k.length-1,A){let E=0;for(let S=0;S<k.length;S++)E+=o(k[S],i,j(s)+S+E,u)}d=!0},skip(){d=!0}},{type:f}=a,h=t["*"],g=t[f],y=typeof h=="function"?h:h?.enter,m=typeof g=="function"?g:g?.enter;if(y?.(c,r),m?.(c,r),!d)switch(f){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":o(a.min,a,"min"),o(a.max,a,"max");break;case"Quantifier":o(a.body,a,"body");break;case"Regex":n(a.body,a),o(a.flags,a,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return g?.exit?.(c,r),h?.exit?.(c,r),p}return l(o,"a"),o(e),e}l(K,"V");function oe(e){if(!Array.isArray(e))throw new Error("Container expected");return e}l(oe,"me");function j(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}l(j,"q");function At(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Je(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:pe(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};K(e,vt,n);let o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};K(e,It,a);let i={groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer};return K(e,St,i),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}l(At,"ir");var vt={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:o}=e;if(o==="repeater"){let a=N();a.body[0].body.push(D({negate:!0,body:n}),z("Any"));let i=N();i.body[0].body.push(je("greedy",0,1/0,a)),r(b(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let o=e.body.filter(a=>a.kind==="flags");for(let a=r+1;a<t.body.length;a++){let i=t.body[a];q(n,i,[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=tr(t.get(e));if(r){let n=N({flags:r});n.body[0].body=e.body,e.body=[b(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:o,remove:a,replaceWith:i},s){let{kind:u,negate:p}=e,{asciiWordBoundaries:d,avoidSubclass:c,supportedGNodes:f,wordIsAscii:h}=s;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${p?"Y":"y"}"`);if(u==="line_end")i(b(D({body:[B({body:[ge("string_end")]}),B({body:[te(10)]})]}),t));else if(u==="line_start")i(b(F(w`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(f.has(e))o.flags.sticky=!0,a();else{let g=n[r-1];if(g&&Pt(g))i(b(D({negate:!0}),t));else{if(c)throw new Error(w`Uses "\G" in a way that requires a subclass`);i(R(ge("string_start"),t)),s.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")i(b(F(w`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!h&&!d){let g=`(?:(?<=${L})(?!${L})|(?<!${L})(?=${L}))`,y=`(?:(?<=${L})(?=${L})|(?<!${L})(?!${L}))`;i(b(F(p?y:g),t))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ce(r)&&(r=be(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Ce(n)&&(n=be(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let n=ne({body:[e]});r(b(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:o,digitIsAscii:a,spaceIsAscii:i,wordIsAscii:s}){let{kind:u,negate:p,value:d}=e;if(a&&(u==="digit"||d==="digit")){r(R(we("digit",{negate:p}),t));return}if(i&&(u==="space"||d==="space")){r(b(ke(F(mt),p),t));return}if(s&&(u==="word"||d==="word")){r(R(we("word",{negate:p}),t));return}if(u==="any")r(R(z("Any"),t));else if(u==="digit")r(R(z("Nd",{negate:p}),t));else if(u!=="dot")if(u==="text_segment"){if(n==="strict")throw new Error(w`Use of "\X" requires non-strict accuracy`);let c="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=w`\p{RI}{2}|${c}(?:\u200D${c})*`;r(b(F(w`(?>\r\n|${o?w`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(u==="hex")r(R(z("AHex",{negate:p}),t));else if(u==="newline")r(b(F(p?`[^
124
124
  ]`:`(?>\r
125
125
  ?|[
126
- \v\f…\u2028\u2029])`),t));else if(u==="posix")if(!o&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let c={graph:"!-~",print:" -~"}[d];p&&(c=`\0-${C(c.codePointAt(0)-1)}${C(c.codePointAt(2)+1)}-􏿿`),r(b(F(`[${c}]`),t))}else r(b(ke(F(Et.get(d)),p),t));else if(u==="property")ye.has(ae(d))||(e.key="sc");else if(u==="space")r(R(z("space",{negate:p}),t));else if(u==="word")r(b(ke(F(L),p),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:o,removeAllPrevSiblings:a,removeAllNextSiblings:i}){let{kind:s,flags:u}=e;if(s==="flags")if(!u.enable&&!u.disable)n();else{let p=N({flags:u});p.body[0].body=i(),o(b(p,t),{traverse:!0})}else if(s==="keep"){let p=r.body[0],d=r.body.length===1&&Te(p,{type:"Group"})&&p.body[0].body.length===1?p.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(w`Uses "\K" in a way that's unsupported`);let c=D({behind:!0});c.body[0].body=a(),o(b(c,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if(n==="fail")r(b(D({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=N();t.body[0].body.push(e.body),e.body=b(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,o=!1;for(let a of e.body)if(a.body.length===1&&a.body[0].kind==="search_start")a.body.pop();else{let i=ar(a.body);i?(n=!0,Array.isArray(i)?r.push(...i):r.push(i)):o=!0}n&&!o&&r.forEach(a=>t.add(a))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(w`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ce(r)&&(r=be(r,t),e.ref=r)}},It={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:o}=e;n||r.set(e,[...t.get(o).map(({node:a})=>a)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:o,groupsByName:a,multiplexCapturesToLeftByRef:i,openRefs:s,reffedNodesByReferencer:u}){let p=o.get(e);if(p&&s.has(e.number)){let c=R(rr(e.number),t);u.set(c,s.get(e.number)),r(c);return}s.set(e.number,e),i.set(e.number,[]),e.name&&q(i,e.name,[]);let d=i.get(e.name??e.number);for(let c=0;c<d.length;c++){let f=d[c];if(p===f.node||p&&p===f.origin||e===f.origin){d.splice(c,1);break}}if(i.get(e.number).push({node:e,origin:p}),e.name&&i.get(e.name).push({node:e,origin:p}),e.name){let c=q(a,e.name,new Map),f=!1;if(p)f=!0;else for(let h of c.values())if(!h.hasDuplicateNameToRemove){f=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ee(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:o,ref:a}=e;if(o){let d=t;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===a||d.number===a)););n.reffedNodesByReferencer.set(e,d);return}let i=n.subroutineRefMap.get(a),s=a===0,u=s?rr(0):er(i,n.groupOriginByCopy,null),p=u;if(!s){let d=tr(Mt(i,f=>f.type==="Group"&&!!f.flags)),c=d?ee(n.globalFlags,d):n.globalFlags;_t(c,n.currentFlags)||(p=N({flags:Lt(c)}),p.body[0].body.push(u))}r(b(p,t),{traverse:!s})}},St={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let o=n.reffedNodesByReferencer.get(e).filter(a=>Nt(a,e));if(!o.length)r(b(D({negate:!0}),t));else if(o.length>1){let a=N({atomic:!0,body:o.reverse().map(i=>B({body:[he(i.number)]}))});r(b(a,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){let o=ze();e.body.at(-1).body.push(o)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Je(e){K(e,{"*"({node:t,parent:r}){t.parent=r}})}l(Je,"ur");function _t(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}l(_t,"Ut");function Nt(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let n=nr(r.parent);for(let o of n){if(o===r)break;if(o===e||or(o,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}l(Nt,"Ot");function er(e,t,r,n){let o=Array.isArray(e)?[]:{};for(let[a,i]of Object.entries(e))a==="parent"?o.parent=Array.isArray(r)?n:r:i&&typeof i=="object"?o[a]=er(i,t,o,r):(a==="type"&&i==="CapturingGroup"&&t.set(o,t.get(e)??e),o[a]=i);return o}l(er,"cr");function rr(e){let t=Ve(e);return t.isRecursive=!0,t}l(rr,"or");function Mt(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}l(Mt,"Rt");function be(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}l(be,"_e");function tr(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(o=>{n.enable?.[o]&&(delete r.disable[o],r.enable[o]=!0),n.disable?.[o]&&(r.disable[o]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}l(tr,"lr");function Lt({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}l(Lt,"Dt");function nr(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}l(nr,"pr");function ar(e){let t=e.find(r=>r.kind==="search_start"||Rt(r,{negate:!1})||!Ft(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let n of t.body){let o=ar(n.body);if(!o)return null;Array.isArray(o)?r.push(...o):r.push(o)}return r}return null}l(ar,"fr");function or(e,t){let r=nr(e)??[];for(let n of r)if(n===t||or(n,t))return!0;return!1}l(or,"dr");function Ft({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}l(Ft,"Tt");function Pt(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}l(Pt,"Bt");function Rt(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Te(e.body[0],{type:"Assertion",kind:"search_start"})}l(Rt,"Vt");function Ce(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}l(Ce,"ve");function F(e,t){let r=We(e,{...t,unicodePropertyMap:ye}).body;return r.length>1||r[0].body.length>1?N({body:r}):r[0].body[0]}l(F,"P");function ke(e,t){return e.negate=t,e}l(ke,"Fe");function R(e,t){return e.parent=t,e}l(R,"D");function b(e,t){return Je(e),e.parent=t,e}l(b,"b");function Ut(e,t){let r=Ne(t),n=pe(r.target,"ES2024"),o=pe(r.target,"ES2025"),a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,s=null;if(!o){let h=[e.flags.ignoreCase];K(e,Bt,{getCurrentModI:l(()=>h.at(-1),"getCurrentModI"),popModI(){h.pop()},pushModI(g){h.push(g)},setHasCasedChar(){h.at(-1)?i=!0:s=!0}})}let u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!s)},p=e,d={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:p,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!o&&i&&s),useFlagMods:o,useFlagV:n,verbose:r.verbose};function c(h){return d.lastNode=p,p=h,vr(Dt[h.type],`Unexpected node type "${h.type}"`)(h,d,c)}l(c,"l");let f={pattern:e.body.map(c).join("|"),flags:c(e.flags),options:{...e.options}};return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],d.captureMap.forEach((h,g)=>{h.hidden&&f._hiddenCaptures.push(g),h.transferTo&&q(f._captureTransfers,h.transferTo,[]).push(g)}),f}l(Ut,"wr");var Bt={"*":{enter({node:e},t){if(lr(e)){let r=t.getCurrentModI();t.pushModI(e.flags?ee({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){lr(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){xe(C(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),sr(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Ye.has(e.value)&&t.setHasCasedChar()}},Dt={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?w`\B`:w`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:o,number:a}=e,i={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(i.hidden=!0,a>s.number&&(i.transferTo=s.number)),t.captureMap.set(a,i),`(${o?`?<${o}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=C(e),n=V(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&xe(r)){let o=Ke(r);return t.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:o,parent:a}=e,{body:i}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");_.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(ur)&&(i=[te(45),...i.filter(p=>!ur(p))]);let s=l(()=>`[${o?"^":""}${i.map(r).join(n==="intersection"?"&&":"")}]`,"i");if(!t.inCharClass){if((!t.useFlagV||_.bugNestedClassIgnoresNegation)&&!o){let d=i.filter(c=>c.type==="CharacterClass"&&c.kind==="union"&&c.negate);if(d.length){let c=N(),f=c.body[0];return c.parent=a,f.parent=c,i=i.filter(h=>!d.includes(h)),e.body=i,i.length?(e.parent=f,f.body.push(e)):c.body.pop(),d.forEach(h=>{let g=B({body:[h]});h.parent=g,g.parent=c,c.body.push(g)}),r(c)}}t.inCharClass=!0;let p=s();return t.inCharClass=!1,p}let u=i[0];if(n==="union"&&!o&&u&&((!t.useFlagV||!t.verbose)&&a.kind==="union"&&!(_.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind==="intersection"&&i.length===1&&u.type!=="CharacterClassRange"))return i.map(r).join("");if(!t.useFlagV&&a.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=V(r,o),i=V(n,o),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let u=sr(e);zt(u).forEach(p=>{s.add(Array.isArray(p)?`${V(p[0],o)}-${V(p[1],o)}`:V(p,o))})}return`${a}-${i}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},o){if(e==="dot")return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":w`[^\n]`;if(e==="digit")return t?w`\D`:w`\d`;if(e==="property"){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&Ye.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?w`\P`:w`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?w`\W`:w`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},o,a){let i=o.currentFlags;r&&(o.currentFlags=ee(i,r));let s=t.map(a).join("|"),u=!o.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!o.useFlagMods||!r)?s:`(?${jt(e,r,o.useFlagMods)}${s})`;return o.currentFlags=i,u},LookaroundAssertion({body:e,kind:t,negate:r},n,o){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(o).join("|")})`},Quantifier(e,t,r){return r(e.body)+Vt(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return t===0?`(?R=${n})`:w`\g<${t}&R=${n}>`}},Gt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Ot=new Set(["-","\\","]","^","["]),Tt=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),ir=new Map([[9,w`\t`],[10,w`\n`],[11,w`\v`],[12,w`\f`],[13,w`\r`],[8232,w`\u2028`],[8233,w`\u2029`],[65279,w`\uFEFF`]]),Wt=/^\p{Cased}$/u;function xe(e){return Wt.test(e)}l(xe,"Me");function sr(e,t){let r=!!t?.firstOnly,n=e.min.value,o=e.max.value,a=[];if(n<65&&(o===65535||o>=131071)||n===65536&&o>=131071)return a;for(let i=n;i<=o;i++){let s=C(i);if(!xe(s))continue;let u=Ke(s).filter(p=>{let d=p.codePointAt(0);return d<n||d>o});if(u.length&&(a.push(...u),r))break}return a}l(sr,"Cr");function V(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(ir.has(e))return ir.get(e);if(e<32||e>126&&e<160||e>262143||t&&Ht(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let o=r?n?Tt:Ot:Gt,a=C(e);return(o.has(a)?"\\":"")+a}l(V,"J");function zt(e){let t=e.map(o=>o.codePointAt(0)).sort((o,a)=>o-a),r=[],n=null;for(let o=0;o<t.length;o++)t[o+1]===t[o]+1?n??=t[o]:n===null?r.push(t[o]):(r.push([n,t[o]]),n=null);return r}l(zt,"Qt");function jt(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:o,disable:a}=t;n=(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")+(a?"-":"")+(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")}return`${n}:`}l(jt,"qt");function Vt({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}l(Vt,"Jt");function lr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}l(lr,"hr");function Ht(e){return e>47&&e<58}l(Ht,"Kt");function ur({type:e,value:t}){return e==="Character"&&t===45}l(ur,"mr");var pr=class Ie extends RegExp{static{l(this,"e")}#r=new Map;#e=null;#n;#t=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){let o=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");let a=t;super(a,r),this.#n=a.source,a instanceof Ie&&(this.#r=a.#r,this.#t=a.#t,this.#a=a.#a,this.rawOptions=a.rawOptions)}else{let a={hiddenCaptures:[],strategy:null,transfers:[],...n};super(o?"":t,r),this.#n=t,this.#r=Zt(a.hiddenCaptures,a.transfers),this.#a=a.strategy,this.rawOptions=n??{}}o||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:o,...a}=this.rawOptions;this.#e=new Ie(this.#n,this.flags,a)}let r=this.global||this.sticky,n=this.lastIndex;if(this.#a==="clip_search"&&r&&n){this.lastIndex=0;let o=this.#o(t.slice(n));return o&&(Xt(o,n,t,this.hasIndices),this.lastIndex+=n),o}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#r.size)return r;let n=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);let a=[0];for(let i=1;i<n.length;i++){let{hidden:s,transferTo:u}=this.#r.get(i)??{};if(s?a.push(null):(a.push(r.length),r.push(n[i]),this.hasIndices&&r.indices.push(o[i])),u&&n[i]!==void 0){let p=a[u];if(!p)throw new Error(`Invalid capture transfer to "${p}"`);if(r[p]=n[i],this.hasIndices&&(r.indices[p]=o[i]),r.groups){this.#t||(this.#t=qt(this.source));let d=this.#t.get(u);d&&(r.groups[d]=n[i],this.hasIndices&&(r.indices.groups[d]=o[i]))}}}return r}};function Xt(e,t,r,n){if(e.index+=t,e.input=r,n){let o=e.indices;for(let i=0;i<o.length;i++){let s=o[i];s&&(o[i]=[s[0]+t,s[1]+t])}let a=o.groups;a&&Object.keys(a).forEach(i=>{let s=a[i];s&&(a[i]=[s[0]+t,s[1]+t])})}}l(Xt,"Yt");function Zt(e,t){let r=new Map;for(let n of e)r.set(n,{hidden:!0});for(let[n,o]of t)for(let a of o)q(r,a,{}).transferTo=n;return r}l(Zt,"en");function qt(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,n=0,o=0,a;for(;a=t.exec(e);){let{0:i,groups:{capture:s,name:u}}=a;i==="["?n++:n?i==="]"&&n--:s&&(o++,u&&r.set(o,u))}return r}l(qt,"rn");var Qt=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Kt(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}l(Kt,"br");function Yt(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}l(Yt,"xr");var v=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ee(e,t,r,n){let o=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],i=0,s="";for(let u of e.matchAll(o)){let{0:p,groups:{$skip:d}}=u;if(!d&&(!n||n===v.DEFAULT==!i)){r instanceof Function?s+=r(u,{context:i?v.CHAR_CLASS:v.DEFAULT,negated:a[a.length-1]}):s+=r;continue}p[0]==="["?(i++,a.push(p[1]==="^")):p==="]"&&i&&(i--,a.pop()),s+=p}return s}l(Ee,"ae");function cr(e,t,r,n){Ee(e,t,r,n)}l(cr,"Ne");function Jt(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;let o=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=r;let a=0,i;for(;i=o.exec(e);){let{0:s,groups:{$skip:u}}=i;if(!u&&(!n||n===v.DEFAULT==!a))return i;s==="["?a++:s==="]"&&a&&a--,o.lastIndex==i.index&&o.lastIndex++}return null}l(Jt,"tn");function ie(e,t,r){return!!Jt(e,t,0,r)}l(ie,"oe");function en(e,t){let r=/\\?./gsu;r.lastIndex=t;let n=e.length,o=0,a=1,i;for(;i=r.exec(e);){let[s]=i;if(s==="[")o++;else if(o)s==="]"&&o--;else if(s==="(")a++;else if(s===")"&&(a--,!a)){n=i.index;break}}return e.slice(t,n)}l(en,"kr");var dr=new RegExp(String.raw`(?<noncapturingStart>${Qt})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function rn(e,t){let r=t?.hiddenCaptures??[],n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};let o="(?>",a="(?:(?=(",i=[0],s=[],u=0,p=0,d=NaN,c;do{c=!1;let f=0,h=0,g=!1,y;for(dr.lastIndex=Number.isNaN(d)?0:d+a.length;y=dr.exec(e);){let{0:m,index:k,groups:{capturingStart:$,noncapturingStart:A}}=y;if(m==="[")f++;else if(f)m==="]"&&f--;else if(m===o&&!g)d=k,g=!0;else if(g&&A)h++;else if($)g?h++:(u++,i.push(u+p));else if(m===")"&&g){if(!h){p++;let E=u+p;if(e=`${e.slice(0,d)}${a}${e.slice(d+o.length,k)}))<$$${E}>)${e.slice(k+1)}`,c=!0,s.push(E),Kt(r,E),n.size){let S=new Map;n.forEach((le,H)=>{S.set(H>=E?H+1:H,le.map(X=>X>=E?X+1:X))}),n=S}break}h--}}}while(c);return r.push(...s),e=Ee(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:h,wrappedBackrefNum:g}})=>{if(h){let y=+h;if(y>i.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${i[y]}`}return`\\${g}`},v.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}l(rn,"Pe");var fr=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,$e=new RegExp(String.raw`
126
+ \v\f…\u2028\u2029])`),t));else if(u==="posix")if(!o&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let c={graph:"!-~",print:" -~"}[d];p&&(c=`\0-${C(c.codePointAt(0)-1)}${C(c.codePointAt(2)+1)}-􏿿`),r(b(F(`[${c}]`),t))}else r(b(ke(F(Et.get(d)),p),t));else if(u==="property")ye.has(ae(d))||(e.key="sc");else if(u==="space")r(R(z("space",{negate:p}),t));else if(u==="word")r(b(ke(F(L),p),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:o,removeAllPrevSiblings:a,removeAllNextSiblings:i}){let{kind:s,flags:u}=e;if(s==="flags")if(!u.enable&&!u.disable)n();else{let p=N({flags:u});p.body[0].body=i(),o(b(p,t),{traverse:!0})}else if(s==="keep"){let p=r.body[0],d=r.body.length===1&&Te(p,{type:"Group"})&&p.body[0].body.length===1?p.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(w`Uses "\K" in a way that's unsupported`);let c=D({behind:!0});c.body[0].body=a(),o(b(c,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if(n==="fail")r(b(D({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=N();t.body[0].body.push(e.body),e.body=b(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,o=!1;for(let a of e.body)if(a.body.length===1&&a.body[0].kind==="search_start")a.body.pop();else{let i=ar(a.body);i?(n=!0,Array.isArray(i)?r.push(...i):r.push(i)):o=!0}n&&!o&&r.forEach(a=>t.add(a))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(w`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ce(r)&&(r=be(r,t),e.ref=r)}},It={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:o}=e;n||r.set(e,[...t.get(o).map(({node:a})=>a)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:o,groupsByName:a,multiplexCapturesToLeftByRef:i,openRefs:s,reffedNodesByReferencer:u}){let p=o.get(e);if(p&&s.has(e.number)){let c=R(rr(e.number),t);u.set(c,s.get(e.number)),r(c);return}s.set(e.number,e),i.set(e.number,[]),e.name&&q(i,e.name,[]);let d=i.get(e.name??e.number);for(let c=0;c<d.length;c++){let f=d[c];if(p===f.node||p&&p===f.origin||e===f.origin){d.splice(c,1);break}}if(i.get(e.number).push({node:e,origin:p}),e.name&&i.get(e.name).push({node:e,origin:p}),e.name){let c=q(a,e.name,new Map),f=!1;if(p)f=!0;else for(let h of c.values())if(!h.hasDuplicateNameToRemove){f=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ee(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:o,ref:a}=e;if(o){let d=t;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===a||d.number===a)););n.reffedNodesByReferencer.set(e,d);return}let i=n.subroutineRefMap.get(a),s=a===0,u=s?rr(0):er(i,n.groupOriginByCopy,null),p=u;if(!s){let d=tr(Mt(i,f=>f.type==="Group"&&!!f.flags)),c=d?ee(n.globalFlags,d):n.globalFlags;_t(c,n.currentFlags)||(p=N({flags:Lt(c)}),p.body[0].body.push(u))}r(b(p,t),{traverse:!s})}},St={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let o=n.reffedNodesByReferencer.get(e).filter(a=>Nt(a,e));if(!o.length)r(b(D({negate:!0}),t));else if(o.length>1){let a=N({atomic:!0,body:o.reverse().map(i=>B({body:[he(i.number)]}))});r(b(a,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){let o=ze();e.body.at(-1).body.push(o)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Je(e){K(e,{"*"({node:t,parent:r}){t.parent=r}})}l(Je,"ur");function _t(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}l(_t,"Ut");function Nt(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let n=nr(r.parent);for(let o of n){if(o===r)break;if(o===e||or(o,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}l(Nt,"Ot");function er(e,t,r,n){let o=Array.isArray(e)?[]:{};for(let[a,i]of Object.entries(e))a==="parent"?o.parent=Array.isArray(r)?n:r:i&&typeof i=="object"?o[a]=er(i,t,o,r):(a==="type"&&i==="CapturingGroup"&&t.set(o,t.get(e)??e),o[a]=i);return o}l(er,"cr");function rr(e){let t=Ve(e);return t.isRecursive=!0,t}l(rr,"or");function Mt(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}l(Mt,"Rt");function be(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}l(be,"_e");function tr(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(o=>{n.enable?.[o]&&(delete r.disable[o],r.enable[o]=!0),n.disable?.[o]&&(r.disable[o]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}l(tr,"lr");function Lt({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}l(Lt,"Dt");function nr(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}l(nr,"pr");function ar(e){let t=e.find(r=>r.kind==="search_start"||Rt(r,{negate:!1})||!Ft(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let n of t.body){let o=ar(n.body);if(!o)return null;Array.isArray(o)?r.push(...o):r.push(o)}return r}return null}l(ar,"fr");function or(e,t){let r=nr(e)??[];for(let n of r)if(n===t||or(n,t))return!0;return!1}l(or,"dr");function Ft({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}l(Ft,"Tt");function Pt(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}l(Pt,"Bt");function Rt(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Te(e.body[0],{type:"Assertion",kind:"search_start"})}l(Rt,"Vt");function Ce(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}l(Ce,"ve");function F(e,t){let r=We(e,{...t,unicodePropertyMap:ye}).body;return r.length>1||r[0].body.length>1?N({body:r}):r[0].body[0]}l(F,"P");function ke(e,t){return e.negate=t,e}l(ke,"Fe");function R(e,t){return e.parent=t,e}l(R,"D");function b(e,t){return Je(e),e.parent=t,e}l(b,"b");function Ut(e,t){let r=Ne(t),n=pe(r.target,"ES2024"),o=pe(r.target,"ES2025"),a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,s=null;if(!o){let h=[e.flags.ignoreCase];K(e,Bt,{getCurrentModI:l(()=>h.at(-1),"getCurrentModI"),popModI(){h.pop()},pushModI(g){h.push(g)},setHasCasedChar(){h.at(-1)?i=!0:s=!0}})}let u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!s)},p=e,d={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:p,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!o&&i&&s),useFlagMods:o,useFlagV:n,verbose:r.verbose};function c(h){return d.lastNode=p,p=h,vr(Dt[h.type],`Unexpected node type "${h.type}"`)(h,d,c)}l(c,"l");let f={pattern:e.body.map(c).join("|"),flags:c(e.flags),options:{...e.options}};return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],d.captureMap.forEach((h,g)=>{h.hidden&&f._hiddenCaptures.push(g),h.transferTo&&q(f._captureTransfers,h.transferTo,[]).push(g)}),f}l(Ut,"wr");var Bt={"*":{enter({node:e},t){if(lr(e)){let r=t.getCurrentModI();t.pushModI(e.flags?ee({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){lr(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){xe(C(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),sr(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Ye.has(e.value)&&t.setHasCasedChar()}},Dt={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?w`\B`:w`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:o,number:a}=e,i={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(i.hidden=!0,a>s.number&&(i.transferTo=s.number)),t.captureMap.set(a,i),`(${o?`?<${o}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=C(e),n=V(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&xe(r)){let o=Ke(r);return t.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:o,parent:a}=e,{body:i}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");_.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(ur)&&(i=[te(45),...i.filter(p=>!ur(p))]);let s=l(()=>`[${o?"^":""}${i.map(r).join(n==="intersection"?"&&":"")}]`,"i");if(!t.inCharClass){if((!t.useFlagV||_.bugNestedClassIgnoresNegation)&&!o){let d=i.filter(c=>c.type==="CharacterClass"&&c.kind==="union"&&c.negate);if(d.length){let c=N(),f=c.body[0];return c.parent=a,f.parent=c,i=i.filter(h=>!d.includes(h)),e.body=i,i.length?(e.parent=f,f.body.push(e)):c.body.pop(),d.forEach(h=>{let g=B({body:[h]});h.parent=g,g.parent=c,c.body.push(g)}),r(c)}}t.inCharClass=!0;let p=s();return t.inCharClass=!1,p}let u=i[0];if(n==="union"&&!o&&u&&((!t.useFlagV||!t.verbose)&&a.kind==="union"&&!(_.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind==="intersection"&&i.length===1&&u.type!=="CharacterClassRange"))return i.map(r).join("");if(!t.useFlagV&&a.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=V(r,o),i=V(n,o),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let u=sr(e);zt(u).forEach(p=>{s.add(Array.isArray(p)?`${V(p[0],o)}-${V(p[1],o)}`:V(p,o))})}return`${a}-${i}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},o){if(e==="dot")return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":w`[^\n]`;if(e==="digit")return t?w`\D`:w`\d`;if(e==="property"){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&Ye.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?w`\P`:w`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?w`\W`:w`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},o,a){let i=o.currentFlags;r&&(o.currentFlags=ee(i,r));let s=t.map(a).join("|"),u=!o.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!o.useFlagMods||!r)?s:`(?${jt(e,r,o.useFlagMods)}${s})`;return o.currentFlags=i,u},LookaroundAssertion({body:e,kind:t,negate:r},n,o){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(o).join("|")})`},Quantifier(e,t,r){return r(e.body)+Vt(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return t===0?`(?R=${n})`:w`\g<${t}&R=${n}>`}},Gt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Ot=new Set(["-","\\","]","^","["]),Tt=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),ir=new Map([[9,w`\t`],[10,w`\n`],[11,w`\v`],[12,w`\f`],[13,w`\r`],[8232,w`\u2028`],[8233,w`\u2029`],[65279,w`\uFEFF`]]),Wt=new RegExp("^\\p{Cased}$","u");function xe(e){return Wt.test(e)}l(xe,"Me");function sr(e,t){let r=!!t?.firstOnly,n=e.min.value,o=e.max.value,a=[];if(n<65&&(o===65535||o>=131071)||n===65536&&o>=131071)return a;for(let i=n;i<=o;i++){let s=C(i);if(!xe(s))continue;let u=Ke(s).filter(p=>{let d=p.codePointAt(0);return d<n||d>o});if(u.length&&(a.push(...u),r))break}return a}l(sr,"Cr");function V(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(ir.has(e))return ir.get(e);if(e<32||e>126&&e<160||e>262143||t&&Ht(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let o=r?n?Tt:Ot:Gt,a=C(e);return(o.has(a)?"\\":"")+a}l(V,"J");function zt(e){let t=e.map(o=>o.codePointAt(0)).sort((o,a)=>o-a),r=[],n=null;for(let o=0;o<t.length;o++)t[o+1]===t[o]+1?n??=t[o]:n===null?r.push(t[o]):(r.push([n,t[o]]),n=null);return r}l(zt,"Qt");function jt(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:o,disable:a}=t;n=(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")+(a?"-":"")+(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")}return`${n}:`}l(jt,"qt");function Vt({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}l(Vt,"Jt");function lr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}l(lr,"hr");function Ht(e){return e>47&&e<58}l(Ht,"Kt");function ur({type:e,value:t}){return e==="Character"&&t===45}l(ur,"mr");var pr=class Ie extends RegExp{static{l(this,"e")}#r=new Map;#e=null;#n;#t=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){let o=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");let a=t;super(a,r),this.#n=a.source,a instanceof Ie&&(this.#r=a.#r,this.#t=a.#t,this.#a=a.#a,this.rawOptions=a.rawOptions)}else{let a={hiddenCaptures:[],strategy:null,transfers:[],...n};super(o?"":t,r),this.#n=t,this.#r=Zt(a.hiddenCaptures,a.transfers),this.#a=a.strategy,this.rawOptions=n??{}}o||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:o,...a}=this.rawOptions;this.#e=new Ie(this.#n,this.flags,a)}let r=this.global||this.sticky,n=this.lastIndex;if(this.#a==="clip_search"&&r&&n){this.lastIndex=0;let o=this.#o(t.slice(n));return o&&(Xt(o,n,t,this.hasIndices),this.lastIndex+=n),o}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#r.size)return r;let n=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);let a=[0];for(let i=1;i<n.length;i++){let{hidden:s,transferTo:u}=this.#r.get(i)??{};if(s?a.push(null):(a.push(r.length),r.push(n[i]),this.hasIndices&&r.indices.push(o[i])),u&&n[i]!==void 0){let p=a[u];if(!p)throw new Error(`Invalid capture transfer to "${p}"`);if(r[p]=n[i],this.hasIndices&&(r.indices[p]=o[i]),r.groups){this.#t||(this.#t=qt(this.source));let d=this.#t.get(u);d&&(r.groups[d]=n[i],this.hasIndices&&(r.indices.groups[d]=o[i]))}}}return r}};function Xt(e,t,r,n){if(e.index+=t,e.input=r,n){let o=e.indices;for(let i=0;i<o.length;i++){let s=o[i];s&&(o[i]=[s[0]+t,s[1]+t])}let a=o.groups;a&&Object.keys(a).forEach(i=>{let s=a[i];s&&(a[i]=[s[0]+t,s[1]+t])})}}l(Xt,"Yt");function Zt(e,t){let r=new Map;for(let n of e)r.set(n,{hidden:!0});for(let[n,o]of t)for(let a of o)q(r,a,{}).transferTo=n;return r}l(Zt,"en");function qt(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,n=0,o=0,a;for(;a=t.exec(e);){let{0:i,groups:{capture:s,name:u}}=a;i==="["?n++:n?i==="]"&&n--:s&&(o++,u&&r.set(o,u))}return r}l(qt,"rn");var Qt=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Kt(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}l(Kt,"br");function Yt(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}l(Yt,"xr");var v=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ee(e,t,r,n){let o=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],i=0,s="";for(let u of e.matchAll(o)){let{0:p,groups:{$skip:d}}=u;if(!d&&(!n||n===v.DEFAULT==!i)){r instanceof Function?s+=r(u,{context:i?v.CHAR_CLASS:v.DEFAULT,negated:a[a.length-1]}):s+=r;continue}p[0]==="["?(i++,a.push(p[1]==="^")):p==="]"&&i&&(i--,a.pop()),s+=p}return s}l(Ee,"ae");function cr(e,t,r,n){Ee(e,t,r,n)}l(cr,"Ne");function Jt(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;let o=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=r;let a=0,i;for(;i=o.exec(e);){let{0:s,groups:{$skip:u}}=i;if(!u&&(!n||n===v.DEFAULT==!a))return i;s==="["?a++:s==="]"&&a&&a--,o.lastIndex==i.index&&o.lastIndex++}return null}l(Jt,"tn");function ie(e,t,r){return!!Jt(e,t,0,r)}l(ie,"oe");function en(e,t){let r=/\\?./gsu;r.lastIndex=t;let n=e.length,o=0,a=1,i;for(;i=r.exec(e);){let[s]=i;if(s==="[")o++;else if(o)s==="]"&&o--;else if(s==="(")a++;else if(s===")"&&(a--,!a)){n=i.index;break}}return e.slice(t,n)}l(en,"kr");var dr=new RegExp(String.raw`(?<noncapturingStart>${Qt})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function rn(e,t){let r=t?.hiddenCaptures??[],n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};let o="(?>",a="(?:(?=(",i=[0],s=[],u=0,p=0,d=NaN,c;do{c=!1;let f=0,h=0,g=!1,y;for(dr.lastIndex=Number.isNaN(d)?0:d+a.length;y=dr.exec(e);){let{0:m,index:k,groups:{capturingStart:$,noncapturingStart:A}}=y;if(m==="[")f++;else if(f)m==="]"&&f--;else if(m===o&&!g)d=k,g=!0;else if(g&&A)h++;else if($)g?h++:(u++,i.push(u+p));else if(m===")"&&g){if(!h){p++;let E=u+p;if(e=`${e.slice(0,d)}${a}${e.slice(d+o.length,k)}))<$$${E}>)${e.slice(k+1)}`,c=!0,s.push(E),Kt(r,E),n.size){let S=new Map;n.forEach((le,H)=>{S.set(H>=E?H+1:H,le.map(X=>X>=E?X+1:X))}),n=S}break}h--}}}while(c);return r.push(...s),e=Ee(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:h,wrappedBackrefNum:g}})=>{if(h){let y=+h;if(y>i.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${i[y]}`}return`\\${g}`},v.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}l(rn,"Pe");var fr=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,$e=new RegExp(String.raw`
127
127
  \\(?: \d+
128
128
  | c[A-Za-z]
129
129
  | [gk]<[^>]+>
@@ -1 +1 @@
1
- var v=Object.defineProperty;var e=(r,s)=>v(r,"name",{value:s,configurable:!0});import{spawnSync as t}from"node:child_process";import{createHash as _}from"node:crypto";import o from"semver";import l from"detect-libc";import c from"../package.json";const L=process.env.npm_package_config_libvips||c.config.libvips,u=o.coerce(L).version,P=["darwin-arm64","darwin-x64","freebsd-arm64","freebsd-x64","linux-arm","linux-arm64","linux-ppc64","linux-riscv64","linux-s390x","linux-wasm32","linux-x64","linuxmusl-arm64","linuxmusl-x64","win32-arm64","win32-ia32","win32-x64"],p={encoding:"utf8",shell:!0},x=e(r=>{r instanceof Error?console.error(`sharp: Installation error: ${r.message}`):console.log(`sharp: ${r}`)},"log"),m=e(()=>l.isNonGlibcLinuxSync()?l.familySync():"","runtimeLibc"),y=e(()=>`${process.platform}${m()}-${process.arch}`,"runtimePlatformArch"),n=e(()=>{if(f())return"wasm32";const{npm_config_arch:r,npm_config_platform:s,npm_config_libc:i}=process.env,h=typeof i=="string"?i:m();return`${s||process.platform}${h}-${r||process.arch}`},"buildPlatformArch"),$=e(()=>{try{return require(`@img/sharp-libvips-dev-${n()}/include`)}catch{try{return require("@img/sharp-libvips-dev/include")}catch{}}return""},"buildSharpLibvipsIncludeDir"),w=e(()=>{try{return require("@img/sharp-libvips-dev/cplusplus")}catch{}return""},"buildSharpLibvipsCPlusPlusDir"),S=e(()=>{try{return require(`@img/sharp-libvips-dev-${n()}/lib`)}catch{try{return require(`@img/sharp-libvips-${n()}/lib`)}catch{}}return""},"buildSharpLibvipsLibDir"),I=e(()=>{if(process.release?.name==="node"&&process.versions&&!o.satisfies(process.versions.node,c.engines.node))return{found:process.versions.node,expected:c.engines.node}},"isUnsupportedNodeRuntime"),f=e(()=>{const{CC:r}=process.env;return!!r?.endsWith("/emcc")},"isEmscripten"),B=e(()=>process.platform==="darwin"&&process.arch==="x64"?(t("sysctl sysctl.proc_translated",p).stdout||"").trim()==="sysctl.proc_translated: 1":!1,"isRosetta"),d=e(r=>_("sha512").update(r).digest("hex"),"sha512"),k=e(()=>{try{const r=d(`imgsharp-libvips-${n()}`),s=o.coerce(c.optionalDependencies[`@img/sharp-libvips-${n()}`],{includePrerelease:!0}).version;return d(`${r}npm:${s}`).slice(0,10)}catch{}return""},"yarnLocator"),A=e(()=>t(`node-gyp rebuild --directory=src ${f()?"--nodedir=emscripten":""}`,{...p,stdio:"inherit"}).status,"spawnRebuild"),b=e(()=>process.platform!=="win32"?(t("pkg-config --modversion vips-cpp",{...p,env:{...process.env,PKG_CONFIG_PATH:g()}}).stdout||"").trim():"","globalLibvipsVersion"),G=e(()=>{try{const r=(t("brew",["--prefix"],{encoding:"utf8"}).stdout||"").trim();if(r)return`${r}/lib/pkgconfig`}catch{}},"getBrewPkgConfigPath"),R=e(()=>{try{const r=(t("pkg-config",["--variable","pc_path","pkg-config"],{encoding:"utf8"}).stdout||"").trim();if(r)return r}catch{}},"getPkgConfigPath"),g=e(()=>process.platform!=="win32"?[G(),R(),process.env.PKG_CONFIG_PATH].filter(Boolean).join(":"):"","pkgConfigPath"),a=e((r,s,i)=>(i&&i(`Detected ${s}, skipping search for globally-installed libvips`),r),"skipSearch"),V=e(r=>{if(process.env.SHARP_IGNORE_GLOBAL_LIBVIPS)return a(!1,"SHARP_IGNORE_GLOBAL_LIBVIPS",r);if(process.env.SHARP_FORCE_GLOBAL_LIBVIPS)return a(!0,"SHARP_FORCE_GLOBAL_LIBVIPS",r);if(B())return a(!1,"Rosetta",r);const s=b();return!!s&&o.gte(s,u)},"useGlobalLibvips");export default{minimumLibvipsVersion:u,prebuiltPlatforms:P,buildPlatformArch:n,buildSharpLibvipsIncludeDir:$,buildSharpLibvipsCPlusPlusDir:w,buildSharpLibvipsLibDir:S,isUnsupportedNodeRuntime:I,runtimePlatformArch:y,log:x,yarnLocator:k,spawnRebuild:A,globalLibvipsVersion:b,pkgConfigPath:g,useGlobalLibvips:V};
1
+ var v=Object.defineProperty;var e=(r,s)=>v(r,"name",{value:s,configurable:!0});import{spawnSync as t}from"node:child_process";import{createHash as _}from"node:crypto";import o from"semver";import l from"detect-libc";import c from"../package.json"with{type:"json"};const L=process.env.npm_package_config_libvips||c.config.libvips,u=o.coerce(L).version,P=["darwin-arm64","darwin-x64","freebsd-arm64","freebsd-x64","linux-arm","linux-arm64","linux-ppc64","linux-riscv64","linux-s390x","linux-wasm32","linux-x64","linuxmusl-arm64","linuxmusl-x64","win32-arm64","win32-ia32","win32-x64"],p={encoding:"utf8",shell:!0},x=e(r=>{r instanceof Error?console.error(`sharp: Installation error: ${r.message}`):console.log(`sharp: ${r}`)},"log"),m=e(()=>l.isNonGlibcLinuxSync()?l.familySync():"","runtimeLibc"),y=e(()=>`${process.platform}${m()}-${process.arch}`,"runtimePlatformArch"),n=e(()=>{if(f())return"wasm32";const{npm_config_arch:r,npm_config_platform:s,npm_config_libc:i}=process.env,h=typeof i=="string"?i:m();return`${s||process.platform}${h}-${r||process.arch}`},"buildPlatformArch"),$=e(()=>{try{return require(`@img/sharp-libvips-dev-${n()}/include`)}catch{try{return require("@img/sharp-libvips-dev/include")}catch{}}return""},"buildSharpLibvipsIncludeDir"),w=e(()=>{try{return require("@img/sharp-libvips-dev/cplusplus")}catch{}return""},"buildSharpLibvipsCPlusPlusDir"),S=e(()=>{try{return require(`@img/sharp-libvips-dev-${n()}/lib`)}catch{try{return require(`@img/sharp-libvips-${n()}/lib`)}catch{}}return""},"buildSharpLibvipsLibDir"),I=e(()=>{if(process.release?.name==="node"&&process.versions&&!o.satisfies(process.versions.node,c.engines.node))return{found:process.versions.node,expected:c.engines.node}},"isUnsupportedNodeRuntime"),f=e(()=>{const{CC:r}=process.env;return!!r?.endsWith("/emcc")},"isEmscripten"),B=e(()=>process.platform==="darwin"&&process.arch==="x64"?(t("sysctl sysctl.proc_translated",p).stdout||"").trim()==="sysctl.proc_translated: 1":!1,"isRosetta"),d=e(r=>_("sha512").update(r).digest("hex"),"sha512"),k=e(()=>{try{const r=d(`imgsharp-libvips-${n()}`),s=o.coerce(c.optionalDependencies[`@img/sharp-libvips-${n()}`],{includePrerelease:!0}).version;return d(`${r}npm:${s}`).slice(0,10)}catch{}return""},"yarnLocator"),A=e(()=>t(`node-gyp rebuild --directory=src ${f()?"--nodedir=emscripten":""}`,{...p,stdio:"inherit"}).status,"spawnRebuild"),b=e(()=>process.platform!=="win32"?(t("pkg-config --modversion vips-cpp",{...p,env:{...process.env,PKG_CONFIG_PATH:g()}}).stdout||"").trim():"","globalLibvipsVersion"),G=e(()=>{try{const r=(t("brew",["--prefix"],{encoding:"utf8"}).stdout||"").trim();if(r)return`${r}/lib/pkgconfig`}catch{}},"getBrewPkgConfigPath"),R=e(()=>{try{const r=(t("pkg-config",["--variable","pc_path","pkg-config"],{encoding:"utf8"}).stdout||"").trim();if(r)return r}catch{}},"getPkgConfigPath"),g=e(()=>process.platform!=="win32"?[G(),R(),process.env.PKG_CONFIG_PATH].filter(Boolean).join(":"):"","pkgConfigPath"),a=e((r,s,i)=>(i&&i(`Detected ${s}, skipping search for globally-installed libvips`),r),"skipSearch"),V=e(r=>{if(process.env.SHARP_IGNORE_GLOBAL_LIBVIPS)return a(!1,"SHARP_IGNORE_GLOBAL_LIBVIPS",r);if(process.env.SHARP_FORCE_GLOBAL_LIBVIPS)return a(!0,"SHARP_FORCE_GLOBAL_LIBVIPS",r);if(B())return a(!1,"Rosetta",r);const s=b();return!!s&&o.gte(s,u)},"useGlobalLibvips");export default{minimumLibvipsVersion:u,prebuiltPlatforms:P,buildPlatformArch:n,buildSharpLibvipsIncludeDir:$,buildSharpLibvipsCPlusPlusDir:w,buildSharpLibvipsLibDir:S,isUnsupportedNodeRuntime:I,runtimePlatformArch:y,log:x,yarnLocator:k,spawnRebuild:A,globalLibvipsVersion:b,pkgConfigPath:g,useGlobalLibvips:V};
@@ -1,2 +1,2 @@
1
- import{createRequire as d}from"node:module";import{familySync as b,versionSync as x}from"detect-libc";import g from"./libvips.mjs";import f from"../package.json";const i=d(import.meta.url),{version:u}=f,{runtimePlatformArch:w,isUnsupportedNodeRuntime:c,prebuiltPlatforms:k,minimumLibvipsVersion:v}=g,n=w();let s;const o=[];try{s=i(`../src/build/Release/sharp-${n}-${u}.node`)}catch(r){o.push(r)}if(!s)try{s=i(`../src/build/Release/sharp-wasm32-${u}.node`)}catch(r){o.push(r)}if(!s)try{switch(n){case"darwin-arm64":s=i("@img/sharp-darwin-arm64/sharp.node");break;case"darwin-x64":s=i("@img/sharp-darwin-x64/sharp.node");break;case"linux-arm":s=i("@img/sharp-linux-arm/sharp.node");break;case"linux-arm64":s=i("@img/sharp-linux-arm64/sharp.node");break;case"linux-ppc64":s=i("@img/sharp-linux-ppc64/sharp.node");break;case"linux-riscv64":s=i("@img/sharp-linux-riscv64/sharp.node");break;case"linux-s390x":s=i("@img/sharp-linux-s390x/sharp.node");break;case"linux-x64":s=i("@img/sharp-linux-x64/sharp.node");break;case"linuxmusl-arm64":s=i("@img/sharp-linuxmusl-arm64/sharp.node");break;case"linuxmusl-x64":s=i("@img/sharp-linuxmusl-x64/sharp.node");break;case"win32-arm64":s=i("@img/sharp-win32-arm64/sharp.node");break;case"win32-ia32":s=i("@img/sharp-win32-ia32/sharp.node");break;case"win32-x64":s=i("@img/sharp-win32-x64/sharp.node");break;case"freebsd-arm64":case"freebsd-x64":s=i("@img/sharp-freebsd-wasm32/sharp.node");break;case"linux-wasm32":s=i("@img/sharp-webcontainers-wasm32/sharp.node");break}if(s&&["linux-x64","linuxmusl-x64"].includes(n)&&!s._isUsingX64V2()){const r=new Error("Prebuilt binaries for Linux x64 require v2 microarchitecture");r.code="Unsupported CPU",o.push(r),s=null}s&&process.versions.electron&&n.startsWith("linux")&&process.emitWarning("Binaries provided by Electron for use on Linux may be incompatible with sharp - see https://sharp.pixelplumbing.com/install#electron-and-linux",{code:"SharpElectronLinux"})}catch(r){o.push(r)}if(!s)try{s=i("@img/sharp-wasm32/sharp.node")}catch(r){o.push(r)}if(!s){const[r,m,h]=["linux","darwin","win32"].map(e=>n.startsWith(e)),a=[`Could not load the "sharp" module using the ${n} runtime`];o.forEach(e=>{e.code.endsWith("MODULE_NOT_FOUND")||a.push(`${e.code}: ${e.message}`)});const t=o.map(e=>e.message).join(" ");if(a.push("Possible solutions:"),c()){const{found:e,expected:p}=c();a.push("- Please upgrade Node.js:",` Found ${e}`,` Requires ${p}`)}else if(k.includes(n)){const[e,p]=n.split("-"),l=e.endsWith("musl")?" --libc=musl":"";a.push("- Ensure optional dependencies can be installed:"," npm install --include=optional sharp","- Ensure your package manager supports multi-platform installation:"," See https://sharp.pixelplumbing.com/install#cross-platform","- Add platform-specific dependencies:",` npm install --os=${e.replace("musl","")}${l} --cpu=${p} sharp`)}else a.push(`- Manually install libvips >= ${v}`," See https://sharp.pixelplumbing.com/install#building-from-source","- Add WebAssembly-based dependencies:"," npm install sharp @img/sharp-wasm32");if(r&&/(symbol not found|CXXABI_)/i.test(t))try{const{config:e}=i(`@img/sharp-libvips-${n}/package`),p=`${b()} ${x()}`,l=`${e.musl?"musl":"glibc"} ${e.musl||e.glibc}`;a.push("- Update your OS:",` Found ${p}`,` Requires ${l}`)}catch{}throw r&&/\/snap\/core[0-9]{2}/.test(t)&&a.push("- Remove the Node.js Snap, which does not support native modules"," snap remove node"),m&&/Incompatible library version/.test(t)&&a.push("- Update Homebrew:"," brew update && brew upgrade vips"),o.some(e=>e.code==="ERR_DLOPEN_DISABLED")&&a.push("- Run Node.js without using the --no-addons flag"),h&&/The specified procedure could not be found/.test(t)&&a.push("- Using the canvas package on Windows?"," See https://sharp.pixelplumbing.com/install#canvas-and-windows","- Check for outdated versions of sharp in the dependency tree:"," npm ls sharp"),a.push("- Consult the installation documentation:"," See https://sharp.pixelplumbing.com/install"),new Error(a.join(`
1
+ import{createRequire as d}from"node:module";import{familySync as b,versionSync as x}from"detect-libc";import g from"./libvips.mjs";import f from"../package.json"with{type:"json"};const i=d(import.meta.url),{version:u}=f,{runtimePlatformArch:w,isUnsupportedNodeRuntime:c,prebuiltPlatforms:k,minimumLibvipsVersion:v}=g,n=w();let s;const o=[];try{s=i(`../src/build/Release/sharp-${n}-${u}.node`)}catch(r){o.push(r)}if(!s)try{s=i(`../src/build/Release/sharp-wasm32-${u}.node`)}catch(r){o.push(r)}if(!s)try{switch(n){case"darwin-arm64":s=i("@img/sharp-darwin-arm64/sharp.node");break;case"darwin-x64":s=i("@img/sharp-darwin-x64/sharp.node");break;case"linux-arm":s=i("@img/sharp-linux-arm/sharp.node");break;case"linux-arm64":s=i("@img/sharp-linux-arm64/sharp.node");break;case"linux-ppc64":s=i("@img/sharp-linux-ppc64/sharp.node");break;case"linux-riscv64":s=i("@img/sharp-linux-riscv64/sharp.node");break;case"linux-s390x":s=i("@img/sharp-linux-s390x/sharp.node");break;case"linux-x64":s=i("@img/sharp-linux-x64/sharp.node");break;case"linuxmusl-arm64":s=i("@img/sharp-linuxmusl-arm64/sharp.node");break;case"linuxmusl-x64":s=i("@img/sharp-linuxmusl-x64/sharp.node");break;case"win32-arm64":s=i("@img/sharp-win32-arm64/sharp.node");break;case"win32-ia32":s=i("@img/sharp-win32-ia32/sharp.node");break;case"win32-x64":s=i("@img/sharp-win32-x64/sharp.node");break;case"freebsd-arm64":case"freebsd-x64":s=i("@img/sharp-freebsd-wasm32/sharp.node");break;case"linux-wasm32":s=i("@img/sharp-webcontainers-wasm32/sharp.node");break}if(s&&["linux-x64","linuxmusl-x64"].includes(n)&&!s._isUsingX64V2()){const r=new Error("Prebuilt binaries for Linux x64 require v2 microarchitecture");r.code="Unsupported CPU",o.push(r),s=null}s&&process.versions.electron&&n.startsWith("linux")&&process.emitWarning("Binaries provided by Electron for use on Linux may be incompatible with sharp - see https://sharp.pixelplumbing.com/install#electron-and-linux",{code:"SharpElectronLinux"})}catch(r){o.push(r)}if(!s)try{s=i("@img/sharp-wasm32/sharp.node")}catch(r){o.push(r)}if(!s){const[r,m,h]=["linux","darwin","win32"].map(e=>n.startsWith(e)),a=[`Could not load the "sharp" module using the ${n} runtime`];o.forEach(e=>{e.code.endsWith("MODULE_NOT_FOUND")||a.push(`${e.code}: ${e.message}`)});const t=o.map(e=>e.message).join(" ");if(a.push("Possible solutions:"),c()){const{found:e,expected:p}=c();a.push("- Please upgrade Node.js:",` Found ${e}`,` Requires ${p}`)}else if(k.includes(n)){const[e,p]=n.split("-"),l=e.endsWith("musl")?" --libc=musl":"";a.push("- Ensure optional dependencies can be installed:"," npm install --include=optional sharp","- Ensure your package manager supports multi-platform installation:"," See https://sharp.pixelplumbing.com/install#cross-platform","- Add platform-specific dependencies:",` npm install --os=${e.replace("musl","")}${l} --cpu=${p} sharp`)}else a.push(`- Manually install libvips >= ${v}`," See https://sharp.pixelplumbing.com/install#building-from-source","- Add WebAssembly-based dependencies:"," npm install sharp @img/sharp-wasm32");if(r&&/(symbol not found|CXXABI_)/i.test(t))try{const{config:e}=i(`@img/sharp-libvips-${n}/package`),p=`${b()} ${x()}`,l=`${e.musl?"musl":"glibc"} ${e.musl||e.glibc}`;a.push("- Update your OS:",` Found ${p}`,` Requires ${l}`)}catch{}throw r&&/\/snap\/core[0-9]{2}/.test(t)&&a.push("- Remove the Node.js Snap, which does not support native modules"," snap remove node"),m&&/Incompatible library version/.test(t)&&a.push("- Update Homebrew:"," brew update && brew upgrade vips"),o.some(e=>e.code==="ERR_DLOPEN_DISABLED")&&a.push("- Run Node.js without using the --no-addons flag"),h&&/The specified procedure could not be found/.test(t)&&a.push("- Using the canvas package on Windows?"," See https://sharp.pixelplumbing.com/install#canvas-and-windows","- Check for outdated versions of sharp in the dependency tree:"," npm ls sharp"),a.push("- Consult the installation documentation:"," See https://sharp.pixelplumbing.com/install"),new Error(a.join(`
2
2
  `))}export default s;
@@ -1 +1 @@
1
- var b=Object.defineProperty;var t=(e,n)=>b(e,"name",{value:n,configurable:!0});import v from"node:events";import{createRequire as p}from"node:module";import{availableParallelism as y}from"node:os";import s from"detect-libc";import r from"./is.mjs";import h from"./libvips.mjs";import i from"./sharp.mjs";import d from"../package.json";const l=p(import.meta.url),u=h.runtimePlatformArch(),f=i.libvipsVersion(),o=i.format();o.heif.output.alias=["avif","heic"],o.jpeg.output.alias=["jpe","jpg"],o.tiff.output.alias=["tif"],o.jp2.output.alias=["j2c","j2k","jp2","jpx"];const g={nearest:"nearest",bilinear:"bilinear",bicubic:"bicubic",locallyBoundedBicubic:"lbb",nohalo:"nohalo",vertexSplitQuadraticBasisSpline:"vsqbs"};let a={vips:f.semver};if(!f.isGlobal)if(f.isWasm)try{a=l("@img/sharp-wasm32/versions")}catch{}else try{a=l(`@img/sharp-${u}/versions`)}catch{try{a=l(`@img/sharp-libvips-${u}/versions`)}catch{}}a.sharp=d.version,a.heif&&o.heif&&(o.heif.input.fileSuffix=[".avif"],o.heif.output.alias=["avif"]);function m(e){if(r.bool(e))return e?i.cache(50,20,100):i.cache(0,0,0);if(r.object(e)){for(const n of["memory","files","items"]){const c=e[n];if(r.defined(c)&&!(r.integer(c)&&c>=0))throw r.invalidParameterError(n,"a positive integer",c)}return i.cache(e.memory,e.files,e.items)}else return i.cache()}t(m,"cache"),m(!0);function j(e){return i.concurrency(r.integer(e)?e:null)}t(j,"concurrency"),!process.env.MALLOC_ARENA_MAX&&s.familySync()===s.GLIBC&&!i._isUsingJemalloc()?i.concurrency(1):s.familySync()===s.MUSL&&i.concurrency()===1024&&i.concurrency(y());const A=new v.EventEmitter;function k(){return i.counters()}t(k,"counters");function w(e){return i.simd(r.bool(e)?e:null)}t(w,"simd");function E(e){if(r.object(e))if(Array.isArray(e.operation)&&e.operation.every(r.string))i.block(e.operation,!0);else throw r.invalidParameterError("operation","Array<string>",e.operation);else throw r.invalidParameterError("options","object",e)}t(E,"block");function P(e){if(r.object(e))if(Array.isArray(e.operation)&&e.operation.every(r.string))i.block(e.operation,!1);else throw r.invalidParameterError("operation","Array<string>",e.operation);else throw r.invalidParameterError("options","object",e)}t(P,"unblock");export default t(e=>{e.cache=m,e.concurrency=j,e.counters=k,e.simd=w,e.format=o,e.interpolators=g,e.versions=a,e.queue=A,e.block=E,e.unblock=P},"default");
1
+ var b=Object.defineProperty;var t=(e,n)=>b(e,"name",{value:n,configurable:!0});import v from"node:events";import{createRequire as p}from"node:module";import{availableParallelism as y}from"node:os";import s from"detect-libc";import r from"./is.mjs";import h from"./libvips.mjs";import i from"./sharp.mjs";import d from"../package.json"with{type:"json"};const l=p(import.meta.url),u=h.runtimePlatformArch(),f=i.libvipsVersion(),o=i.format();o.heif.output.alias=["avif","heic"],o.jpeg.output.alias=["jpe","jpg"],o.tiff.output.alias=["tif"],o.jp2.output.alias=["j2c","j2k","jp2","jpx"];const g={nearest:"nearest",bilinear:"bilinear",bicubic:"bicubic",locallyBoundedBicubic:"lbb",nohalo:"nohalo",vertexSplitQuadraticBasisSpline:"vsqbs"};let a={vips:f.semver};if(!f.isGlobal)if(f.isWasm)try{a=l("@img/sharp-wasm32/versions")}catch{}else try{a=l(`@img/sharp-${u}/versions`)}catch{try{a=l(`@img/sharp-libvips-${u}/versions`)}catch{}}a.sharp=d.version,a.heif&&o.heif&&(o.heif.input.fileSuffix=[".avif"],o.heif.output.alias=["avif"]);function m(e){if(r.bool(e))return e?i.cache(50,20,100):i.cache(0,0,0);if(r.object(e)){for(const n of["memory","files","items"]){const c=e[n];if(r.defined(c)&&!(r.integer(c)&&c>=0))throw r.invalidParameterError(n,"a positive integer",c)}return i.cache(e.memory,e.files,e.items)}else return i.cache()}t(m,"cache"),m(!0);function j(e){return i.concurrency(r.integer(e)?e:null)}t(j,"concurrency"),!process.env.MALLOC_ARENA_MAX&&s.familySync()===s.GLIBC&&!i._isUsingJemalloc()?i.concurrency(1):s.familySync()===s.MUSL&&i.concurrency()===1024&&i.concurrency(y());const A=new v.EventEmitter;function k(){return i.counters()}t(k,"counters");function w(e){return i.simd(r.bool(e)?e:null)}t(w,"simd");function E(e){if(r.object(e))if(Array.isArray(e.operation)&&e.operation.every(r.string))i.block(e.operation,!0);else throw r.invalidParameterError("operation","Array<string>",e.operation);else throw r.invalidParameterError("options","object",e)}t(E,"block");function P(e){if(r.object(e))if(Array.isArray(e.operation)&&e.operation.every(r.string))i.block(e.operation,!1);else throw r.invalidParameterError("operation","Array<string>",e.operation);else throw r.invalidParameterError("options","object",e)}t(P,"unblock");export default t(e=>{e.cache=m,e.concurrency=j,e.counters=k,e.simd=w,e.format=o,e.interpolators=g,e.versions=a,e.queue=A,e.block=E,e.unblock=P},"default");
@@ -1 +1 @@
1
- var u=Object.defineProperty;var h=(o,t)=>u(o,"name",{value:t,configurable:!0});import{Settings as n}from"../system/settings/index.mjs";import{Arguments as c}from"../system/arguments/index.mjs";import{Base as l}from"../type/index.mjs";import{Errors as a,Clean as C,Convert as d,Create as p,Default as R,Decode as f,Encode as m,HasCodec as x,Parser as y,ParseError as T}from"../value/index.mjs";import{Build as E,BuildResult as b,EvaluateResult as k}from"../schema/index.mjs";export class Validator extends l{static{h(this,"Validator")}constructor(...t){super();const e=c.Match(t,{3:(s,r,i)=>[s,r,i],2:(s,r)=>[s,r]});if(e.length===3&&e[1]instanceof b&&e[2]instanceof k){const[s,r,i]=e;this.hasCodec=s,this.buildResult=r,this.evaluateResult=i}else{const[s,r]=e;this.hasCodec=x(s,r),this.buildResult=E(s,r),this.evaluateResult=this.buildResult.Evaluate()}}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(t){return this.evaluateResult.Check(t)}Parse(t){if(this.Check(t))return t;if(n.Get().correctiveParse)return y(this.Context(),this.Type(),t);throw new T(t,this.Errors(t))}Errors(t){return this.IsAccelerated()&&this.Check(t)?[]:a(this.Context(),this.Type(),t)}Clean(t){return C(this.Context(),this.Type(),t)}Convert(t){return d(this.Context(),this.Type(),t)}Create(){return p(this.Context(),this.Type())}Default(t){return R(this.Context(),this.Type(),t)}Decode(t){return this.hasCodec?f(this.Context(),this.Type(),t):this.Parse(t)}Encode(t){return this.hasCodec?m(this.Context(),this.Type(),t):this.Parse(t)}Clone(){return new Validator(this.hasCodec,this.buildResult,this.evaluateResult)}}
1
+ var i=Object.defineProperty;var s=(r,t)=>i(r,"name",{value:t,configurable:!0});import{Settings as h}from"../system/settings/index.mjs";import{Errors as o,Clean as n,Convert as u,Create as c,Default as a,Decode as C,Encode as l,HasCodec as d,Parser as p,ParseError as x}from"../value/index.mjs";import{Build as T}from"../schema/index.mjs";export class Validator{static{s(this,"Validator")}constructor(t,e){this.hasCodec=d(t,e),this.buildResult=T(t,e),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(t){return this.evaluateResult.Check(t)}Parse(t){if(this.Check(t))return t;if(h.Get().correctiveParse)return p(this.Context(),this.Type(),t);throw new x(t,this.Errors(t))}Errors(t){return this.IsAccelerated()&&this.Check(t)?[]:o(this.Context(),this.Type(),t)}Clean(t){return n(this.Context(),this.Type(),t)}Convert(t){return u(this.Context(),this.Type(),t)}Create(){return c(this.Context(),this.Type())}Default(t){return a(this.Context(),this.Type(),t)}Decode(t){return this.hasCodec?C(this.Context(),this.Type(),t):this.Parse(t)}Encode(t){return this.hasCodec?l(this.Context(),this.Type(),t):this.Parse(t)}}
@@ -1 +1 @@
1
- var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import*as l from"./_puny.mjs";function I(n){return/\p{Mn}/u.test(String.fromCodePoint(n))}t(I,"IsNonspacingMark");function h(n){return/\p{Mc}/u.test(String.fromCodePoint(n))}t(h,"IsSpacingCombiningMark");function p(n){return/\p{Me}/u.test(String.fromCodePoint(n))}t(p,"IsEnclosingMark");function C(n){return I(n)||h(n)||p(n)}t(C,"IsCombiningMark");const S=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),m=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function A(n){return/\p{Script=Greek}/u.test(String.fromCodePoint(n))}t(A,"IsGreek");function k(n){return/\p{Script=Hebrew}/u.test(String.fromCodePoint(n))}t(k,"IsHebrew");function P(n){return/\p{Script=Hiragana}/u.test(String.fromCodePoint(n))}t(P,"IsHiragana");function L(n){return/\p{Script=Katakana}/u.test(String.fromCodePoint(n))}t(L,"IsKatakana");function M(n){return/\p{Script=Han}/u.test(String.fromCodePoint(n))}t(M,"IsHan");function w(n){return n>=1632&&n<=1641}t(w,"IsArabicIndicDigit");function H(n){return n>=1776&&n<=1785}t(H,"IsExtendedArabicIndicDigit");function D(n){return m.has(n)}t(D,"IsVirama");function u(n){if(n.length===0)return!1;const e=[...n].map(i=>i.codePointAt(0)),r=e.length;if(e[0]===45||e[r-1]===45||r>=4&&e[2]===45&&e[3]===45||C(e[0]))return!1;let a=!1,o=!1,x=!1;for(let i=0;i<r;i++){const f=e[i];if(S.has(f))return!1;(P(f)||L(f)||M(f))&&(a=!0),w(f)&&(o=!0),H(f)&&(x=!0);const s=e[i-1],c=e[i+1];switch(f){case 183:if(s!==108||c!==108)return!1;break;case 885:if(c===void 0||!A(c))return!1;break;case 1523:case 1524:if(s===void 0||!k(s))return!1;break;case 8205:if(s===void 0||!D(s))return!1;break;case 12539:break}}return!(n.includes("・")&&!a||o&&x)}t(u,"IsUnicodeLabel");function y(n){if(n.charCodeAt(0)===45||n.charCodeAt(n.length-1)===45||n.length>=4&&n.charCodeAt(2)===45&&n.charCodeAt(3)===45)return!1;for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);if(!(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45))return!1}return!0}t(y,"IsAsciiLabel");function d(n){return n.toLowerCase().startsWith("xn--")}t(d,"IsPuny");function b(n){try{return u(l.Decode(n.slice(4)))}catch{return!1}}t(b,"IsPunyLabel");export function IsIdnLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):u(n)}t(IsIdnLabel,"IsIdnLabel");export function IsLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):y(n)}t(IsLabel,"IsLabel");
1
+ var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import{Unreachable as h}from"../system/unreachable/index.mjs";import*as I from"./_puny.mjs";function p(n){return new RegExp("\\p{Mn}","u").test(String.fromCodePoint(n))}t(p,"IsNonspacingMark");function C(n){return new RegExp("\\p{Mc}","u").test(String.fromCodePoint(n))}t(C,"IsSpacingCombiningMark");function S(n){return new RegExp("\\p{Me}","u").test(String.fromCodePoint(n))}t(S,"IsEnclosingMark");function m(n){return p(n)||C(n)||S(n)}t(m,"IsCombiningMark");const k=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),A=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function P(n){return new RegExp("\\p{Script=Greek}","u").test(String.fromCodePoint(n))}t(P,"IsGreek");function L(n){return new RegExp("\\p{Script=Hebrew}","u").test(String.fromCodePoint(n))}t(L,"IsHebrew");function H(n){return new RegExp("\\p{Script=Hiragana}","u").test(String.fromCodePoint(n))}t(H,"IsHiragana");function M(n){return new RegExp("\\p{Script=Katakana}","u").test(String.fromCodePoint(n))}t(M,"IsKatakana");function w(n){return new RegExp("\\p{Script=Han}","u").test(String.fromCodePoint(n))}t(w,"IsHan");function y(n){return n>=1632&&n<=1641}t(y,"IsArabicIndicDigit");function D(n){return n>=1776&&n<=1785}t(D,"IsExtendedArabicIndicDigit");function u(n){return A.has(n)}t(u,"IsVirama");function d(n){if(n.length===0)return h();const e=[...n].map(f=>f.codePointAt(0)),r=e.length;if(e[0]===45||e[r-1]===45||r>=4&&e[2]===45&&e[3]===45||m(e[0]))return!1;let a=!1,o=!1,x=!1;for(let f=0;f<r;f++){const s=e[f];if(k.has(s))return!1;(H(s)||M(s)||w(s))&&(a=!0),y(s)&&(o=!0),D(s)&&(x=!0);const i=e[f-1],c=e[f+1];switch(s){case 183:if(i!==108||c!==108)return!1;break;case 885:if(c===void 0||!P(c))return!1;break;case 1523:case 1524:if(i===void 0||!L(i))return!1;break;case 8204:if(i===void 0||i<128&&!u(i))return!1;break;case 8205:if(i===void 0||!u(i))return!1;break;case 12539:break}}return!(n.includes("・")&&!a||o&&x)}t(d,"IsUnicodeLabel");function E(n){if(n.charCodeAt(0)===45||n.charCodeAt(n.length-1)===45||n.length>=4&&n.charCodeAt(2)===45&&n.charCodeAt(3)===45)return!1;for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);if(!(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45))return!1}return!0}t(E,"IsAsciiLabel");function b(n){return n.toLowerCase().startsWith("xn--")}t(b,"IsPuny");function l(n){try{const e=n.slice(4).toLowerCase();if(e.lastIndexOf("-")===0)return!1;const a=I.Decode(e);return a?d(a):!1}catch{return!1}}t(l,"IsPunyLabel");export function IsIdnLabel(n){return n.length===0||n.length>63?!1:b(n)?l(n):d(n)}t(IsIdnLabel,"IsIdnLabel");export function IsLabel(n){return n.length===0||n.length>63?!1:b(n)?l(n):E(n)}t(IsLabel,"IsLabel");
@@ -1 +1 @@
1
- var U=Object.defineProperty;var O=(o,E)=>U(o,"name",{value:E,configurable:!0});const A=36,h=1,l=26,f=38,M=700,x=72,T=128;function Y(o,E,i){o=i?Math.floor(o/700):o>>1,o+=Math.floor(o/E);let t=0;for(;o>455;)o=Math.floor(o/35),t+=36;return t+Math.floor(36*o/(o+38))}O(Y,"Adapt");export function Decode(o){const E=[];let i=128,t=0,c=72;const _=o.lastIndexOf("-");if(_>0)for(let e=0;e<_;e++){const N=o.charCodeAt(e);if(N>=128)throw new Error("Invalid punycode: non-basic before delimiter");E.push(N)}let D=_<0?0:_+1;for(;D<o.length;){const e=t;let N=1,C=36;for(;;){if(D>=o.length)throw new Error("Invalid punycode: unexpected end of input");const n=o.charCodeAt(D++);let r;if(n>=97&&n<=122)r=n-97;else if(n>=48&&n<=57)r=n-48+26;else if(n>=65&&n<=90)r=n-65;else throw new Error("Invalid punycode: bad digit character");t+=r*N;const I=C<=c?1:C>=c+26?26:C-c;if(r<I)break;N*=36-I,C+=36}const P=E.length+1;c=Y(t-e,P,e===0),i+=Math.floor(t/P),t%=P,E.splice(t,0,i),t++}return globalThis.String.fromCodePoint(...E)}O(Decode,"Decode");
1
+ var u=Object.defineProperty;var E=(o,n)=>u(o,"name",{value:n,configurable:!0});import{Unreachable as w}from"../system/unreachable/index.mjs";const r=36,d=1,N=26,C=38,A=700,D=72,P=128;function _(o,n,s){o=s?Math.floor(o/A):o>>1,o+=Math.floor(o/n);let t=0;for(;o>(r-d)*N>>1;)o=Math.floor(o/(r-d)),t+=r;return t+Math.floor((r-d+1)*o/(o+C))}E(_,"Adapt");export function Decode(o){const n=[];let s=P,t=0,h=D;const l=o.lastIndexOf("-");if(l>0)for(let i=0;i<l;i++){const c=o.charCodeAt(i);if(c>=128)throw new Error("Invalid punycode: non-basic before delimiter");n.push(c)}let x=l<0?0:l+1;for(;x<o.length;){const i=t;let c=1,f=r;for(;;){if(x>=o.length)throw new Error("Invalid punycode: unexpected end of input");const e=o.charCodeAt(x++);let I;if(e>=97&&e<=122)I=e-97;else if(e>=48&&e<=57)I=e-48+26;else if(e>=65&&e<=90)w();else throw new Error("Invalid punycode: bad digit character");t+=I*c;const a=f<=h?d:f>=h+N?N:f-h;if(I<a)break;c*=r-a,f+=r}const p=n.length+1;h=_(t-i,p,i===0),s+=Math.floor(t/p),t%=p,n.splice(t,0,s),t++}return globalThis.String.fromCodePoint(...n)}E(Decode,"Decode");
@@ -1 +1 @@
1
- var n=Object.defineProperty;var t=(u,i)=>n(u,"name",{value:i,configurable:!0});const f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;export function IsUuid(u){return f.test(u)}t(IsUuid,"IsUuid");
1
+ var n=Object.defineProperty;var f=(t,i)=>n(t,"name",{value:i,configurable:!0});const u=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;export function IsUuid(t){return u.test(t)}f(IsUuid,"IsUuid");
@@ -1 +1 @@
1
- var i=Object.defineProperty;var n=(t,r)=>i(t,"name",{value:r,configurable:!0});import*as o from"./guard.mjs";const $=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function c(t){return $.test(t)}n(c,"IsIdentifier");export function And(t,r){return`(${t} && ${r})`}n(And,"And");export function Or(t,r){return`(${t} || ${r})`}n(Or,"Or");export function Not(t){return`!(${t})`}n(Not,"Not");export function IsArray(t){return`Array.isArray(${t})`}n(IsArray,"IsArray");export function IsAsyncIterator(t){return`Guard.IsAsyncIterator(${t})`}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return`typeof ${t} === "bigint"`}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return`typeof ${t} === "boolean"`}n(IsBoolean,"IsBoolean");export function IsInteger(t){return`Number.isInteger(${t})`}n(IsInteger,"IsInteger");export function IsIterator(t){return`Guard.IsIterator(${t})`}n(IsIterator,"IsIterator");export function IsNull(t){return`${t} === null`}n(IsNull,"IsNull");export function IsNumber(t){return`Number.isFinite(${t})`}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return And(IsObject(t),Not(IsArray(t)))}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return`typeof ${t} === "object" && ${t} !== null`}n(IsObject,"IsObject");export function IsString(t){return`typeof ${t} === "string"`}n(IsString,"IsString");export function IsSymbol(t){return`typeof ${t} === "symbol"`}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return`${t} === undefined`}n(IsUndefined,"IsUndefined");export function IsFunction(t){return`typeof ${t} === "function"`}n(IsFunction,"IsFunction");export function IsConstructor(t){return`Guard.IsConstructor(${t})`}n(IsConstructor,"IsConstructor");export function IsEqual(t,r){return`${t} === ${r}`}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return`${t} > ${r}`}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return`${t} < ${r}`}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return`${t} <= ${r}`}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return`${t} >= ${r}`}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMinLength(t,r){return`Guard.IsMinLength(${t}, ${r})`}n(IsMinLength,"IsMinLength");export function IsMaxLength(t,r){return`Guard.IsMaxLength(${t}, ${r})`}n(IsMaxLength,"IsMaxLength");export function Every(t,r,e,u){return o.IsEqual(r,"0")?`${t}.every((${e[0]}, ${e[1]}) => ${u})`:`((value, callback) => { for(let index = ${r}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${e[0]}, ${e[1]}) => ${u})`}n(Every,"Every");export function Entries(t){return`Object.entries(${t})`}n(Entries,"Entries");export function Keys(t){return`Object.getOwnPropertyNames(${t})`}n(Keys,"Keys");export function HasPropertyKey(t,r){return o.IsEqual(r,'"__proto__"')||o.IsEqual(r,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${r})`:`${r} in ${t}`}n(HasPropertyKey,"HasPropertyKey");export function IsDeepEqual(t,r){return`Guard.IsDeepEqual(${t}, ${r})`}n(IsDeepEqual,"IsDeepEqual");export function ArrayLiteral(t){return`[${t.join(", ")}]`}n(ArrayLiteral,"ArrayLiteral");export function ArrowFunction(t,r){return`((${t.join(", ")}) => ${r})`}n(ArrowFunction,"ArrowFunction");export function Call(t,r){return`${t}(${r.join(", ")})`}n(Call,"Call");export function New(t,r){return`new ${t}(${r.join(", ")})`}n(New,"New");export function Member(t,r){return`${t}${c(r)?`.${r}`:`[${Constant(r)}]`}`}n(Member,"Member");export function Constant(t){return o.IsString(t)?JSON.stringify(t):`${t}`}n(Constant,"Constant");export function Ternary(t,r,e){return`(${t} ? ${r} : ${e})`}n(Ternary,"Ternary");export function Statements(t){return`{ ${t.join("; ")}; }`}n(Statements,"Statements");export function ConstDeclaration(t,r){return`const ${t} = ${r}`}n(ConstDeclaration,"ConstDeclaration");export function If(t,r){return`if(${t}) { ${r} }`}n(If,"If");export function Return(t){return`return ${t}`}n(Return,"Return");export function ReduceAnd(t){return o.IsEqual(t.length,0)?"true":t.reduce((r,e)=>And(r,e))}n(ReduceAnd,"ReduceAnd");export function ReduceOr(t){return o.IsEqual(t.length,0)?"false":t.reduce((r,e)=>Or(r,e))}n(ReduceOr,"ReduceOr");export function PrefixIncrement(t){return`++${t}`}n(PrefixIncrement,"PrefixIncrement");export function MultipleOf(t,r){return`Guard.IsMultipleOf(${t}, ${r})`}n(MultipleOf,"MultipleOf");
1
+ var i=Object.defineProperty;var r=(t,n)=>i(t,"name",{value:n,configurable:!0});import*as o from"./guard.mjs";const $=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function c(t){return $.test(t)}r(c,"IsIdentifier");export function And(t,n){return`(${t} && ${n})`}r(And,"And");export function Or(t,n){return`(${t} || ${n})`}r(Or,"Or");export function Not(t){return`!(${t})`}r(Not,"Not");export function IsArray(t){return`Array.isArray(${t})`}r(IsArray,"IsArray");export function IsBigInt(t){return`typeof ${t} === "bigint"`}r(IsBigInt,"IsBigInt");export function IsBoolean(t){return`typeof ${t} === "boolean"`}r(IsBoolean,"IsBoolean");export function IsInteger(t){return`Number.isInteger(${t})`}r(IsInteger,"IsInteger");export function IsNull(t){return`${t} === null`}r(IsNull,"IsNull");export function IsNumber(t){return`Number.isFinite(${t})`}r(IsNumber,"IsNumber");export function IsObjectNotArray(t){return And(IsObject(t),Not(IsArray(t)))}r(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return`typeof ${t} === "object" && ${t} !== null`}r(IsObject,"IsObject");export function IsString(t){return`typeof ${t} === "string"`}r(IsString,"IsString");export function IsSymbol(t){return`typeof ${t} === "symbol"`}r(IsSymbol,"IsSymbol");export function IsUndefined(t){return`${t} === undefined`}r(IsUndefined,"IsUndefined");export function IsFunction(t){return`typeof ${t} === "function"`}r(IsFunction,"IsFunction");export function IsConstructor(t){return`Guard.IsConstructor(${t})`}r(IsConstructor,"IsConstructor");export function IsEqual(t,n){return`${t} === ${n}`}r(IsEqual,"IsEqual");export function IsGreaterThan(t,n){return`${t} > ${n}`}r(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,n){return`${t} < ${n}`}r(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,n){return`${t} <= ${n}`}r(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,n){return`${t} >= ${n}`}r(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMinLength(t,n){return`Guard.IsMinLength(${t}, ${n})`}r(IsMinLength,"IsMinLength");export function IsMaxLength(t,n){return`Guard.IsMaxLength(${t}, ${n})`}r(IsMaxLength,"IsMaxLength");export function Every(t,n,e,u){return o.IsEqual(n,"0")?`${t}.every((${e[0]}, ${e[1]}) => ${u})`:`((value, callback) => { for(let index = ${n}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${e[0]}, ${e[1]}) => ${u})`}r(Every,"Every");export function Entries(t){return`Object.entries(${t})`}r(Entries,"Entries");export function Keys(t){return`Object.getOwnPropertyNames(${t})`}r(Keys,"Keys");export function HasPropertyKey(t,n){return o.IsEqual(n,'"__proto__"')||o.IsEqual(n,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${n})`:`${n} in ${t}`}r(HasPropertyKey,"HasPropertyKey");export function IsDeepEqual(t,n){return`Guard.IsDeepEqual(${t}, ${n})`}r(IsDeepEqual,"IsDeepEqual");export function ArrayLiteral(t){return`[${t.join(", ")}]`}r(ArrayLiteral,"ArrayLiteral");export function ArrowFunction(t,n){return`((${t.join(", ")}) => ${n})`}r(ArrowFunction,"ArrowFunction");export function Call(t,n){return`${t}(${n.join(", ")})`}r(Call,"Call");export function New(t,n){return`new ${t}(${n.join(", ")})`}r(New,"New");export function Member(t,n){return`${t}${c(n)?`.${n}`:`[${Constant(n)}]`}`}r(Member,"Member");export function Constant(t){return o.IsString(t)?JSON.stringify(t):`${t}`}r(Constant,"Constant");export function Ternary(t,n,e){return`(${t} ? ${n} : ${e})`}r(Ternary,"Ternary");export function Statements(t){return`{ ${t.join("; ")}; }`}r(Statements,"Statements");export function ConstDeclaration(t,n){return`const ${t} = ${n}`}r(ConstDeclaration,"ConstDeclaration");export function If(t,n){return`if(${t}) { ${n} }`}r(If,"If");export function Return(t){return`return ${t}`}r(Return,"Return");export function ReduceAnd(t){return o.IsEqual(t.length,0)?"true":t.reduce((n,e)=>And(n,e))}r(ReduceAnd,"ReduceAnd");export function ReduceOr(t){return o.IsEqual(t.length,0)?"false":t.reduce((n,e)=>Or(n,e))}r(ReduceOr,"ReduceOr");export function PrefixIncrement(t){return`++${t}`}r(PrefixIncrement,"PrefixIncrement");export function MultipleOf(t,n){return`Guard.IsMultipleOf(${t}, ${n})`}r(MultipleOf,"MultipleOf");
@@ -1 +1 @@
1
- var c=Object.defineProperty;var n=(t,r)=>c(t,"name",{value:r,configurable:!0});import*as s from"./string.mjs";export function IsArray(t){return Array.isArray(t)}n(IsArray,"IsArray");export function IsAsyncIterator(t){return IsObject(t)&&Symbol.asyncIterator in t}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return IsEqual(typeof t,"bigint")}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return IsEqual(typeof t,"boolean")}n(IsBoolean,"IsBoolean");export function IsConstructor(t){if(IsUndefined(t)||!IsFunction(t))return!1;const r=Function.prototype.toString.call(t);return!!(/^class\s/.test(r)||/\[native code\]/.test(r))}n(IsConstructor,"IsConstructor");export function IsFunction(t){return IsEqual(typeof t,"function")}n(IsFunction,"IsFunction");export function IsInteger(t){return Number.isInteger(t)}n(IsInteger,"IsInteger");export function IsIterator(t){return IsObject(t)&&Symbol.iterator in t}n(IsIterator,"IsIterator");export function IsNull(t){return IsEqual(t,null)}n(IsNull,"IsNull");export function IsNumber(t){return Number.isFinite(t)}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return IsObject(t)&&!IsArray(t)}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return IsEqual(typeof t,"object")&&!IsNull(t)}n(IsObject,"IsObject");export function IsString(t){return IsEqual(typeof t,"string")}n(IsString,"IsString");export function IsSymbol(t){return IsEqual(typeof t,"symbol")}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return IsEqual(t,void 0)}n(IsUndefined,"IsUndefined");export function IsEqual(t,r){return t===r}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return t>r}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return t<r}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return t<=r}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return t>=r}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMultipleOf(t,r){if(IsBigInt(t)||IsBigInt(r))return BigInt(t)%BigInt(r)===0n;const o=1e-10;if(!IsNumber(t)||IsInteger(t)&&1/r%1===0)return!0;const e=t%r;return Math.min(Math.abs(e),Math.abs(e-r))<o}n(IsMultipleOf,"IsMultipleOf");export function IsClassInstance(t){if(!IsObject(t))return!1;const r=globalThis.Object.getPrototypeOf(t);return IsNull(r)?!1:IsEqual(typeof r.constructor,"function")&&!(IsEqual(r.constructor,globalThis.Object)||IsEqual(r.constructor.name,"Object"))}n(IsClassInstance,"IsClassInstance");export function IsValueLike(t){return IsBigInt(t)||IsBoolean(t)||IsNull(t)||IsNumber(t)||IsString(t)||IsUndefined(t)}n(IsValueLike,"IsValueLike");export function GraphemeCount(t){return s.GraphemeCount(t)}n(GraphemeCount,"GraphemeCount");export function IsMaxLength(t,r){return s.IsMaxLengthFast(t,r)}n(IsMaxLength,"IsMaxLength");export function IsMinLength(t,r){return s.IsMinLengthFast(t,r)}n(IsMinLength,"IsMinLength");export function Every(t,r,o){for(let e=r;e<t.length;e++)if(!o(t[e],e))return!1;return!0}n(Every,"Every");export function EveryAll(t,r,o){let e=!0;for(let u=r;u<t.length;u++)o(t[u],u)||(e=!1);return e}n(EveryAll,"EveryAll");export function TakeLeft(t,r,o){return IsEqual(t.length,0)?o():r(t[0],t.slice(1))}n(TakeLeft,"TakeLeft");export function IsUnsafePropertyKey(t){return IsEqual(t,"__proto__")||IsEqual(t,"constructor")||IsEqual(t,"prototype")}n(IsUnsafePropertyKey,"IsUnsafePropertyKey");export function HasPropertyKey(t,r){return IsUnsafePropertyKey(r)?Object.prototype.hasOwnProperty.call(t,r):r in t}n(HasPropertyKey,"HasPropertyKey");export function EntriesRegExp(t){return Keys(t).map(r=>[new RegExp(`^${r}$`),t[r]])}n(EntriesRegExp,"EntriesRegExp");export function Entries(t){return Object.entries(t)}n(Entries,"Entries");export function Keys(t){return Object.getOwnPropertyNames(t)}n(Keys,"Keys");export function Symbols(t){return Object.getOwnPropertySymbols(t)}n(Symbols,"Symbols");export function Values(t){return Object.values(t)}n(Values,"Values");function f(t,r){if(!IsObject(r))return!1;const o=Keys(t);return IsEqual(o.length,Keys(r).length)&&o.every(e=>IsDeepEqual(t[e],r[e]))}n(f,"DeepEqualObject");function p(t,r){return IsArray(r)&&IsEqual(t.length,r.length)&&t.every((o,e)=>IsDeepEqual(t[e],r[e]))}n(p,"DeepEqualArray");export function IsDeepEqual(t,r){return IsArray(t)?p(t,r):IsObject(t)?f(t,r):IsEqual(t,r)}n(IsDeepEqual,"IsDeepEqual");
1
+ var c=Object.defineProperty;var r=(t,n)=>c(t,"name",{value:n,configurable:!0});import*as s from"./string.mjs";export function IsArray(t){return Array.isArray(t)}r(IsArray,"IsArray");export function IsBigInt(t){return IsEqual(typeof t,"bigint")}r(IsBigInt,"IsBigInt");export function IsBoolean(t){return IsEqual(typeof t,"boolean")}r(IsBoolean,"IsBoolean");export function IsConstructor(t){if(IsUndefined(t)||!IsFunction(t))return!1;const n=Function.prototype.toString.call(t);return!!(/^class\s/.test(n)||/\[native code\]/.test(n))}r(IsConstructor,"IsConstructor");export function IsFunction(t){return IsEqual(typeof t,"function")}r(IsFunction,"IsFunction");export function IsInteger(t){return Number.isInteger(t)}r(IsInteger,"IsInteger");export function IsNull(t){return IsEqual(t,null)}r(IsNull,"IsNull");export function IsNumber(t){return Number.isFinite(t)}r(IsNumber,"IsNumber");export function IsObjectNotArray(t){return IsObject(t)&&!IsArray(t)}r(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return IsEqual(typeof t,"object")&&!IsNull(t)}r(IsObject,"IsObject");export function IsString(t){return IsEqual(typeof t,"string")}r(IsString,"IsString");export function IsSymbol(t){return IsEqual(typeof t,"symbol")}r(IsSymbol,"IsSymbol");export function IsUndefined(t){return IsEqual(t,void 0)}r(IsUndefined,"IsUndefined");export function IsEqual(t,n){return t===n}r(IsEqual,"IsEqual");export function IsGreaterThan(t,n){return t>n}r(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,n){return t<n}r(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,n){return t<=n}r(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,n){return t>=n}r(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMultipleOf(t,n){if(IsBigInt(t)||IsBigInt(n))return BigInt(t)%BigInt(n)===0n;const o=1e-10;if(!IsNumber(t)||IsInteger(t)&&1/n%1===0)return!0;const e=t%n;return Math.min(Math.abs(e),Math.abs(e-n),Math.abs(e+n))<o}r(IsMultipleOf,"IsMultipleOf");export function IsClassInstance(t){if(!IsObject(t))return!1;const n=globalThis.Object.getPrototypeOf(t);return IsNull(n)?!1:IsEqual(typeof n.constructor,"function")&&!(IsEqual(n.constructor,globalThis.Object)||IsEqual(n.constructor.name,"Object"))}r(IsClassInstance,"IsClassInstance");export function IsValueLike(t){return IsBigInt(t)||IsBoolean(t)||IsNull(t)||IsNumber(t)||IsString(t)||IsUndefined(t)}r(IsValueLike,"IsValueLike");export function GraphemeCount(t){return s.GraphemeCount(t)}r(GraphemeCount,"GraphemeCount");export function IsMaxLength(t,n){return s.IsMaxLengthFast(t,n)}r(IsMaxLength,"IsMaxLength");export function IsMinLength(t,n){return s.IsMinLengthFast(t,n)}r(IsMinLength,"IsMinLength");export function Every(t,n,o){for(let e=n;e<t.length;e++)if(!o(t[e],e))return!1;return!0}r(Every,"Every");export function EveryAll(t,n,o){let e=!0;for(let u=n;u<t.length;u++)o(t[u],u)||(e=!1);return e}r(EveryAll,"EveryAll");export function ShiftLeft(t,n,o){return IsEqual(t.length,0)?o():n(t[0],t.slice(1))}r(ShiftLeft,"ShiftLeft");export function IsUnsafePropertyKey(t){return IsEqual(t,"__proto__")||IsEqual(t,"constructor")||IsEqual(t,"prototype")}r(IsUnsafePropertyKey,"IsUnsafePropertyKey");export function HasPropertyKey(t,n){return IsUnsafePropertyKey(n)?Object.prototype.hasOwnProperty.call(t,n):n in t}r(HasPropertyKey,"HasPropertyKey");export function EntriesRegExp(t){return Keys(t).map(n=>[new RegExp(`^${n}$`),t[n]])}r(EntriesRegExp,"EntriesRegExp");export function Entries(t){return Object.entries(t)}r(Entries,"Entries");export function Keys(t){return Object.getOwnPropertyNames(t)}r(Keys,"Keys");export function Symbols(t){return Object.getOwnPropertySymbols(t)}r(Symbols,"Symbols");export function Values(t){return Object.values(t)}r(Values,"Values");function f(t,n){if(!IsObject(n))return!1;const o=Keys(t);return IsEqual(o.length,Keys(n).length)&&o.every(e=>IsDeepEqual(t[e],n[e]))}r(f,"DeepEqualObject");function p(t,n){return IsArray(n)&&IsEqual(t.length,n.length)&&t.every((o,e)=>IsDeepEqual(t[e],n[e]))}r(p,"DeepEqualArray");export function IsDeepEqual(t,n){return IsArray(t)?p(t,n):IsObject(t)?f(t,n):IsEqual(t,n)}r(IsDeepEqual,"IsDeepEqual");
@@ -1 +1 @@
1
- var h=Object.defineProperty;var i=(t,e)=>h(t,"name",{value:e,configurable:!0});function o(t,e,n){return t>=e&&t<=n}i(o,"IsBetween");function x(t){return o(t,127462,127487)}i(x,"IsRegionalIndicator");function d(t){return o(t,65024,65039)}i(d,"IsVariationSelector");function g(t){return o(t,768,879)||o(t,6832,6911)||o(t,7616,7679)||o(t,65056,65071)}i(g,"IsCombiningMark");function c(t){return t>65535?2:1}i(c,"CodePointLength");function u(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(g(n)||d(n))e+=c(n);else break}return e}i(u,"ConsumeModifiers");function f(t,e){const n=t.codePointAt(e);let r=e+c(n);for(r=u(t,r);r<t.length-1&&t[r]==="‍";){const s=t.codePointAt(r+1);r+=1+c(s),r=u(t,r)}return x(n)&&r<t.length&&x(t.codePointAt(r))&&(r+=c(t.codePointAt(r))),r}i(f,"NextGraphemeClusterIndex");function F(t){return o(t,55296,56319)||o(t,768,879)||t===8205}i(F,"IsGraphemeCodePoint");export function GraphemeCount(t){let e=0,n=0;for(;n<t.length;)n=f(t,n),e++;return e}i(GraphemeCount,"GraphemeCount");function C(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>=e)return!0;return!1}i(C,"IsMinLength");function I(t,e){let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>e)return!1;return!0}i(I,"IsMaxLength");export function IsMinLengthFast(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return C(t,e);if(n++,n>=e)return!0}return!1}i(IsMinLengthFast,"IsMinLengthFast");export function IsMaxLengthFast(t,e){let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return I(t,e);if(n++,n>e)return!1}return!0}i(IsMaxLengthFast,"IsMaxLengthFast");
1
+ var g=Object.defineProperty;var i=(t,e)=>g(t,"name",{value:e,configurable:!0});function o(t,e,n){return t>=e&&t<=n}i(o,"IsBetween");function I(t){return t===8205}i(I,"IsZeroWidthJoiner");function C(t){return o(t,55296,56319)}i(C,"IsHighSurrogate");function u(t){return o(t,127462,127487)}i(u,"IsRegionalIndicator");function s(t){return o(t,65024,65039)}i(s,"IsVariationSelector");function x(t){return o(t,768,879)||o(t,6832,6911)||o(t,7616,7679)||o(t,65056,65071)}i(x,"IsCombiningMark");function c(t){return t>65535?2:1}i(c,"CodePointLength");function h(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(x(n)||s(n))e+=c(n);else break}return e}i(h,"ConsumeModifiers");function f(t,e){const n=t.codePointAt(e);let r=e+c(n);for(r=h(t,r);r<t.length-1&&t[r]==="‍";){const d=t.codePointAt(r+1);r+=1+c(d),r=h(t,r)}return u(n)&&r<t.length&&u(t.codePointAt(r))&&(r+=c(t.codePointAt(r))),r}i(f,"NextGraphemeClusterIndex");function F(t){return C(t)||x(t)||s(t)||I(t)}i(F,"IsGraphemeCodePoint");export function GraphemeCount(t){let e=0,n=0;for(;n<t.length;)n=f(t,n),e++;return e}i(GraphemeCount,"GraphemeCount");function l(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>=e)return!0;return!1}i(l,"IsMinLength");function A(t,e){let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>e)return!1;return!0}i(A,"IsMaxLength");export function IsMinLengthFast(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return l(t,e);if(n++,n>=e)return!0}return!1}i(IsMinLengthFast,"IsMinLengthFast");export function IsMaxLengthFast(t,e){let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return A(t,e);if(n++,n>e)return!1}return!0}i(IsMaxLengthFast,"IsMaxLengthFast");
@@ -1 +1 @@
1
- var l=Object.defineProperty;var c=(n,t)=>l(n,"name",{value:t,configurable:!0});import*as f from"../types/index.mjs";import{Hashing as u}from"../../system/hashing/index.mjs";import{EmitGuard as a}from"../../guard/index.mjs";import{BuildSchema as p}from"./schema.mjs";const i=new Map;function m(n,t,e,r){return n.UseUnevaluated()?a.Call(`check_${e}`,["context",r]):a.Call(`check_${e}`,[r])}c(m,"CreateCallExpression");function C(n,t,e,r){const o=p(n,t,e,"value");return t.UseUnevaluated()?a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["context","value"],o)):a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["value"],o))}c(C,"CreateFunctionExpression");export function ResetFunctions(){i.clear()}c(ResetFunctions,"ResetFunctions");export function GetFunctions(){return[...i.values()]}c(GetFunctions,"GetFunctions");export function CreateFunction(n,t,e,r){const o=f.IsSchemaObject(e)?u.Hash({__baseURL:n.BaseURL().href,...e}):u.Hash(e),s=m(t,e,o,r);return i.has(o)||(i.set(o,""),i.set(o,C(n,t,e,o))),s}c(CreateFunction,"CreateFunction");
1
+ var f=Object.defineProperty;var a=(n,e)=>f(n,"name",{value:e,configurable:!0});import{Hashing as p}from"../../system/hashing/index.mjs";import{EmitGuard as c}from"../../guard/index.mjs";import{BuildSchema as C}from"./schema.mjs";const l=[0],u=new Map,s=new Map;function m(){return p.Hash(l[0]++)}a(m,"NextName");function x(n,e){u.has(n)||u.set(n,new Map);const t=u.get(n);if(t.has(e))return t.get(e);const r=m();return t.set(e,r),r}a(x,"CreateName");function h(n,e,t,r){return n.UseUnevaluated()?c.Call(`check_${t}`,["context",r]):c.Call(`check_${t}`,[r])}a(h,"CreateCallExpression");function F(n,e,t,r){const o=C(n,e,t,"value");return e.UseUnevaluated()?c.ConstDeclaration(`check_${r}`,c.ArrowFunction(["context","value"],o)):c.ConstDeclaration(`check_${r}`,c.ArrowFunction(["value"],o))}a(F,"CreateFunctionExpression");export function ResetFunctions(){l[0]=0,u.clear(),s.clear()}a(ResetFunctions,"ResetFunctions");export function GetFunctions(){return[...s.values()]}a(GetFunctions,"GetFunctions");export function CreateFunction(n,e,t,r){const o=x(t,n.BaseURL().href),i=h(e,t,o,r);return s.has(o)||(s.set(o,""),s.set(o,F(n,e,t,o))),i}a(CreateFunction,"CreateFunction");
@@ -1 +1 @@
1
- var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function BuildBooleanSchema(r,o,e,a){return e?n.Constant(!0):n.Constant(!1)}t(BuildBooleanSchema,"BuildBooleanSchema");export function CheckBooleanSchema(r,o,e,a){return e}t(CheckBooleanSchema,"CheckBooleanSchema");export function ErrorBooleanSchema(r,o,e,a,u,c){return CheckBooleanSchema(r,o,u,c)||o.AddError({keyword:"boolean",schemaPath:e,instancePath:a,params:{}})}t(ErrorBooleanSchema,"ErrorBooleanSchema");
1
+ var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function BuildSchemaBoolean(r,o,e,a){return e?n.Constant(!0):n.Constant(!1)}t(BuildSchemaBoolean,"BuildSchemaBoolean");export function CheckSchemaBoolean(r,o,e,a){return e}t(CheckSchemaBoolean,"CheckSchemaBoolean");export function ErrorSchemaBoolean(r,o,e,a,u,c){return CheckSchemaBoolean(r,o,u,c)||o.AddError({keyword:"boolean",schemaPath:e,instancePath:a,params:{}})}t(ErrorSchemaBoolean,"ErrorSchemaBoolean");
@@ -1 +1 @@
1
- export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_guard.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";
1
+ export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";
@@ -1 +1 @@
1
- var O=Object.defineProperty;var C=(i,o)=>O(i,"name",{value:o,configurable:!0});import*as I from"../types/index.mjs";import{BuildRefine as R,CheckRefine as A,ErrorRefine as S}from"./_refine.mjs";import{BuildGuard as g,CheckGuard as D,ErrorGuard as N}from"./_guard.mjs";import{EmitGuard as n,Guard as M}from"../../guard/index.mjs";import{BuildAdditionalItems as U,CheckAdditionalItems as q,ErrorAdditionalItems as b}from"./additionalItems.mjs";import{BuildAdditionalProperties as L,CheckAdditionalProperties as j,ErrorAdditionalProperties as T}from"./additionalProperties.mjs";import{BuildAllOf as G,CheckAllOf as H,ErrorAllOf as F}from"./allOf.mjs";import{BuildAnyOf as w,CheckAnyOf as K,ErrorAnyOf as z}from"./anyOf.mjs";import{BuildBooleanSchema as J,CheckBooleanSchema as Q,ErrorBooleanSchema as V}from"./boolean.mjs";import{BuildConst as W,CheckConst as X,ErrorConst as Y}from"./const.mjs";import{BuildContains as Z,CheckContains as _,ErrorContains as $}from"./contains.mjs";import{BuildDependencies as P,CheckDependencies as l,ErrorDependencies as x}from"./dependencies.mjs";import{BuildDependentRequired as s,CheckDependentRequired as k,ErrorDependentRequired as m}from"./dependentRequired.mjs";import{BuildDependentSchemas as v,CheckDependentSchemas as e,ErrorDependentSchemas as t}from"./dependentSchemas.mjs";import{BuildDynamicRef as h,CheckDynamicRef as c,ErrorDynamicRef as a}from"./dynamicRef.mjs";import{BuildEnum as rr,CheckEnum as ir,ErrorEnum as Ir}from"./enum.mjs";import{BuildExclusiveMaximum as pr,CheckExclusiveMaximum as or,ErrorExclusiveMaximum as fr}from"./exclusiveMaximum.mjs";import{BuildExclusiveMinimum as dr,CheckExclusiveMinimum as ur,ErrorExclusiveMinimum as nr}from"./exclusiveMinimum.mjs";import{BuildFormat as Mr,CheckFormat as Cr,ErrorFormat as Er}from"./format.mjs";import{BuildIf as Br,CheckIf as yr,ErrorIf as Or}from"./if.mjs";import{BuildItems as Rr,CheckItems as Ar,ErrorItems as Sr}from"./items.mjs";import{BuildMaxContains as gr,CheckMaxContains as Dr,ErrorMaxContains as Nr}from"./maxContains.mjs";import{BuildMaximum as Ur,CheckMaximum as qr,ErrorMaximum as br}from"./maximum.mjs";import{BuildMaxItems as Lr,CheckMaxItems as jr,ErrorMaxItems as Tr}from"./maxItems.mjs";import{BuildMaxLength as Gr,CheckMaxLength as Hr,ErrorMaxLength as Fr}from"./maxLength.mjs";import{BuildMaxProperties as wr,CheckMaxProperties as Kr,ErrorMaxProperties as zr}from"./maxProperties.mjs";import{BuildMinContains as Jr,CheckMinContains as Qr,ErrorMinContains as Vr}from"./minContains.mjs";import{BuildMinimum as Wr,CheckMinimum as Xr,ErrorMinimum as Yr}from"./minimum.mjs";import{BuildMinItems as Zr,CheckMinItems as _r,ErrorMinItems as $r}from"./minItems.mjs";import{BuildMinLength as Pr,CheckMinLength as lr,ErrorMinLength as xr}from"./minLength.mjs";import{BuildMinProperties as sr,CheckMinProperties as kr,ErrorMinProperties as mr}from"./minProperties.mjs";import{BuildMultipleOf as vr,CheckMultipleOf as er,ErrorMultipleOf as tr}from"./multipleOf.mjs";import{BuildNot as hr,CheckNot as cr,ErrorNot as ar}from"./not.mjs";import{BuildOneOf as ri,CheckOneOf as ii,ErrorOneOf as Ii}from"./oneOf.mjs";import{BuildPattern as pi,CheckPattern as oi,ErrorPattern as fi}from"./pattern.mjs";import{BuildPatternProperties as di,CheckPatternProperties as ui,ErrorPatternProperties as ni}from"./patternProperties.mjs";import{BuildPrefixItems as Mi,CheckPrefixItems as Ci,ErrorPrefixItems as Ei}from"./prefixItems.mjs";import{BuildProperties as Bi,CheckProperties as yi,ErrorProperties as Oi}from"./properties.mjs";import{BuildPropertyNames as Ri,CheckPropertyNames as Ai,ErrorPropertyNames as Si}from"./propertyNames.mjs";import{BuildRecursiveRef as gi,CheckRecursiveRef as Di,ErrorRecursiveRef as Ni}from"./recursiveRef.mjs";import{BuildRef as Ui,CheckRef as qi,ErrorRef as bi}from"./ref.mjs";import{BuildRequired as Li,CheckRequired as ji,ErrorRequired as Ti}from"./required.mjs";import{BuildType as Gi,CheckType as Hi,ErrorType as Fi}from"./type.mjs";import{BuildUnevaluatedItems as wi,CheckUnevaluatedItems as Ki,ErrorUnevaluatedItems as zi}from"./unevaluatedItems.mjs";import{BuildUnevaluatedProperties as Ji,CheckUnevaluatedProperties as Qi,ErrorUnevaluatedProperties as Vi}from"./unevaluatedProperties.mjs";import{BuildUniqueItems as Wi,CheckUniqueItems as Xi,ErrorUniqueItems as Yi}from"./uniqueItems.mjs";function y(i,o){return I.IsType(i)&&(M.IsArray(i.type)&&i.type.includes(o)||M.IsEqual(i.type,o))}C(y,"HasTypeName");function Zi(i){return y(i,"object")}C(Zi,"HasObjectType");function _i(i){return I.IsSchemaObject(i)&&(I.IsAdditionalProperties(i)||I.IsDependencies(i)||I.IsDependentRequired(i)||I.IsDependentSchemas(i)||I.IsProperties(i)||I.IsPatternProperties(i)||I.IsPropertyNames(i)||I.IsMinProperties(i)||I.IsMaxProperties(i)||I.IsRequired(i)||I.IsUnevaluatedProperties(i))}C(_i,"HasObjectKeywords");function $i(i){return y(i,"array")}C($i,"HasArrayType");function Pi(i){return I.IsSchemaObject(i)&&(I.IsAdditionalItems(i)||I.IsItems(i)||I.IsContains(i)||I.IsMaxContains(i)||I.IsMaxItems(i)||I.IsMinContains(i)||I.IsMinItems(i)||I.IsPrefixItems(i)||I.IsUnevaluatedItems(i)||I.IsUniqueItems(i))}C(Pi,"HasArrayKeywords");function li(i){return y(i,"string")}C(li,"HasStringType");function xi(i){return I.IsSchemaObject(i)&&(I.IsMinLength(i)||I.IsMaxLength(i)||I.IsFormat(i)||I.IsPattern(i))}C(xi,"HasStringKeywords");function si(i){return y(i,"number")||y(i,"bigint")}C(si,"HasNumberType");function ki(i){return I.IsSchemaObject(i)&&(I.IsMinimum(i)||I.IsMaximum(i)||I.IsExclusiveMaximum(i)||I.IsExclusiveMinimum(i)||I.IsMultipleOf(i))}C(ki,"HasNumberKeywords");export function BuildSchemaPushStack(i,o,r,p){return o.UseUnevaluated()?n.And(n.And(o.Push(),BuildSchema(i,o,r,p)),o.Pop()):BuildSchema(i,o,r,p)}C(BuildSchemaPushStack,"BuildSchemaPushStack");export function BuildSchema(i,o,r,p){i.Push(r);const f=[];if(I.IsBooleanSchema(r))return J(i,o,r,p);if(I.IsType(r)&&f.push(Gi(i,o,r,p)),_i(r)){const u=[];I.IsRequired(r)&&u.push(Li(i,o,r,p)),I.IsAdditionalProperties(r)&&u.push(L(i,o,r,p)),I.IsDependencies(r)&&u.push(P(i,o,r,p)),I.IsDependentRequired(r)&&u.push(s(i,o,r,p)),I.IsDependentSchemas(r)&&u.push(v(i,o,r,p)),I.IsPatternProperties(r)&&u.push(di(i,o,r,p)),I.IsProperties(r)&&u.push(Bi(i,o,r,p)),I.IsPropertyNames(r)&&u.push(Ri(i,o,r,p)),I.IsMinProperties(r)&&u.push(sr(i,o,r,p)),I.IsMaxProperties(r)&&u.push(wr(i,o,r,p));const E=n.ReduceAnd(u),B=n.Or(n.Not(n.IsObjectNotArray(p)),E);f.push(Zi(r)?E:B)}if(Pi(r)){const u=[];I.IsAdditionalItems(r)&&u.push(U(i,o,r,p)),I.IsContains(r)&&u.push(Z(i,o,r,p)),I.IsItems(r)&&u.push(Rr(i,o,r,p)),I.IsMaxContains(r)&&u.push(gr(i,o,r,p)),I.IsMaxItems(r)&&u.push(Lr(i,o,r,p)),I.IsMinContains(r)&&u.push(Jr(i,o,r,p)),I.IsMinItems(r)&&u.push(Zr(i,o,r,p)),I.IsPrefixItems(r)&&u.push(Mi(i,o,r,p)),I.IsUniqueItems(r)&&u.push(Wi(i,o,r,p));const E=n.ReduceAnd(u),B=n.Or(n.Not(n.IsArray(p)),E);f.push($i(r)?E:B)}if(xi(r)){const u=[];I.IsMaxLength(r)&&u.push(Gr(i,o,r,p)),I.IsMinLength(r)&&u.push(Pr(i,o,r,p)),I.IsFormat(r)&&u.push(Mr(i,o,r,p)),I.IsPattern(r)&&u.push(pi(i,o,r,p));const E=n.ReduceAnd(u),B=n.Or(n.Not(n.IsString(p)),E);f.push(li(r)?E:B)}if(ki(r)){const u=[];I.IsExclusiveMaximum(r)&&u.push(pr(i,o,r,p)),I.IsExclusiveMinimum(r)&&u.push(dr(i,o,r,p)),I.IsMaximum(r)&&u.push(Ur(i,o,r,p)),I.IsMinimum(r)&&u.push(Wr(i,o,r,p)),I.IsMultipleOf(r)&&u.push(vr(i,o,r,p));const E=n.ReduceAnd(u),B=n.Or(n.Not(n.Or(n.IsNumber(p),n.IsBigInt(p))),E);f.push(si(r)?E:B)}I.IsRef(r)&&f.push(Ui(i,o,r,p)),I.IsRecursiveRef(r)&&f.push(gi(i,o,r,p)),I.IsDynamicRef(r)&&f.push(h(i,o,r,p)),I.IsGuard(r)&&f.push(g(i,o,r,p)),I.IsConst(r)&&f.push(W(i,o,r,p)),I.IsEnum(r)&&f.push(rr(i,o,r,p)),I.IsIf(r)&&f.push(Br(i,o,r,p)),I.IsNot(r)&&f.push(hr(i,o,r,p)),I.IsAllOf(r)&&f.push(G(i,o,r,p)),I.IsAnyOf(r)&&f.push(w(i,o,r,p)),I.IsOneOf(r)&&f.push(ri(i,o,r,p)),I.IsUnevaluatedItems(r)&&f.push(n.Or(n.Not(n.IsArray(p)),wi(i,o,r,p))),I.IsUnevaluatedProperties(r)&&f.push(n.Or(n.Not(n.IsObject(p)),Ji(i,o,r,p))),I.IsRefine(r)&&f.push(R(i,o,r,p));const d=n.ReduceAnd(f);return i.Pop(r),d}C(BuildSchema,"BuildSchema");export function CheckSchemaPushStack(i,o,r,p){return o.Push()&&CheckSchema(i,o,r,p)&&o.Pop()}C(CheckSchemaPushStack,"CheckSchemaPushStack");export function CheckSchema(i,o,r,p){i.Push(r);const f=I.IsBooleanSchema(r)?Q(i,o,r,p):(!I.IsType(r)||Hi(i,o,r,p))&&(!(M.IsObject(p)&&!M.IsArray(p))||(!I.IsRequired(r)||ji(i,o,r,p))&&(!I.IsAdditionalProperties(r)||j(i,o,r,p))&&(!I.IsDependencies(r)||l(i,o,r,p))&&(!I.IsDependentRequired(r)||k(i,o,r,p))&&(!I.IsDependentSchemas(r)||e(i,o,r,p))&&(!I.IsPatternProperties(r)||ui(i,o,r,p))&&(!I.IsProperties(r)||yi(i,o,r,p))&&(!I.IsPropertyNames(r)||Ai(i,o,r,p))&&(!I.IsMinProperties(r)||kr(i,o,r,p))&&(!I.IsMaxProperties(r)||Kr(i,o,r,p)))&&(!M.IsArray(p)||(!I.IsAdditionalItems(r)||q(i,o,r,p))&&(!I.IsContains(r)||_(i,o,r,p))&&(!I.IsItems(r)||Ar(i,o,r,p))&&(!I.IsMaxContains(r)||Dr(i,o,r,p))&&(!I.IsMaxItems(r)||jr(i,o,r,p))&&(!I.IsMinContains(r)||Qr(i,o,r,p))&&(!I.IsMinItems(r)||_r(i,o,r,p))&&(!I.IsPrefixItems(r)||Ci(i,o,r,p))&&(!I.IsUniqueItems(r)||Xi(i,o,r,p)))&&(!M.IsString(p)||(!I.IsMaxLength(r)||Hr(i,o,r,p))&&(!I.IsMinLength(r)||lr(i,o,r,p))&&(!I.IsFormat(r)||Cr(i,o,r,p))&&(!I.IsPattern(r)||oi(i,o,r,p)))&&(!(M.IsNumber(p)||M.IsBigInt(p))||(!I.IsExclusiveMaximum(r)||or(i,o,r,p))&&(!I.IsExclusiveMinimum(r)||ur(i,o,r,p))&&(!I.IsMaximum(r)||qr(i,o,r,p))&&(!I.IsMinimum(r)||Xr(i,o,r,p))&&(!I.IsMultipleOf(r)||er(i,o,r,p)))&&(!I.IsRef(r)||qi(i,o,r,p))&&(!I.IsRecursiveRef(r)||Di(i,o,r,p))&&(!I.IsDynamicRef(r)||c(i,o,r,p))&&(!I.IsGuard(r)||D(i,o,r,p))&&(!I.IsConst(r)||X(i,o,r,p))&&(!I.IsEnum(r)||ir(i,o,r,p))&&(!I.IsIf(r)||yr(i,o,r,p))&&(!I.IsNot(r)||cr(i,o,r,p))&&(!I.IsAllOf(r)||H(i,o,r,p))&&(!I.IsAnyOf(r)||K(i,o,r,p))&&(!I.IsOneOf(r)||ii(i,o,r,p))&&(!I.IsUnevaluatedItems(r)||!M.IsArray(p)||Ki(i,o,r,p))&&(!I.IsUnevaluatedProperties(r)||!M.IsObject(p)||Qi(i,o,r,p))&&(!I.IsRefine(r)||A(i,o,r,p));return i.Pop(r),f}C(CheckSchema,"CheckSchema");export function ErrorSchemaPushStack(i,o,r,p,f,d){return o.Push()&&ErrorSchema(i,o,r,p,f,d)&&o.Pop()}C(ErrorSchemaPushStack,"ErrorSchemaPushStack");export function ErrorSchema(i,o,r,p,f,d){i.Push(f);const u=I.IsBooleanSchema(f)?V(i,o,r,p,f,d):!!(+(!I.IsType(f)||Fi(i,o,r,p,f,d))&+(!(M.IsObject(d)&&!M.IsArray(d))||!!(+(!I.IsRequired(f)||Ti(i,o,r,p,f,d))&+(!I.IsAdditionalProperties(f)||T(i,o,r,p,f,d))&+(!I.IsDependencies(f)||x(i,o,r,p,f,d))&+(!I.IsDependentRequired(f)||m(i,o,r,p,f,d))&+(!I.IsDependentSchemas(f)||t(i,o,r,p,f,d))&+(!I.IsPatternProperties(f)||ni(i,o,r,p,f,d))&+(!I.IsProperties(f)||Oi(i,o,r,p,f,d))&+(!I.IsPropertyNames(f)||Si(i,o,r,p,f,d))&+(!I.IsMinProperties(f)||mr(i,o,r,p,f,d))&+(!I.IsMaxProperties(f)||zr(i,o,r,p,f,d))))&+(!M.IsArray(d)||!!(+(!I.IsAdditionalItems(f)||b(i,o,r,p,f,d))&+(!I.IsContains(f)||$(i,o,r,p,f,d))&+(!I.IsItems(f)||Sr(i,o,r,p,f,d))&+(!I.IsMaxContains(f)||Nr(i,o,r,p,f,d))&+(!I.IsMaxItems(f)||Tr(i,o,r,p,f,d))&+(!I.IsMinContains(f)||Vr(i,o,r,p,f,d))&+(!I.IsMinItems(f)||$r(i,o,r,p,f,d))&+(!I.IsPrefixItems(f)||Ei(i,o,r,p,f,d))&+(!I.IsUniqueItems(f)||Yi(i,o,r,p,f,d))))&+(!M.IsString(d)||!!(+(!I.IsMaxLength(f)||Fr(i,o,r,p,f,d))&+(!I.IsMinLength(f)||xr(i,o,r,p,f,d))&+(!I.IsFormat(f)||Er(i,o,r,p,f,d))&+(!I.IsPattern(f)||fi(i,o,r,p,f,d))))&+(!(M.IsNumber(d)||M.IsBigInt(d))||!!(+(!I.IsExclusiveMaximum(f)||fr(i,o,r,p,f,d))&+(!I.IsExclusiveMinimum(f)||nr(i,o,r,p,f,d))&+(!I.IsMaximum(f)||br(i,o,r,p,f,d))&+(!I.IsMinimum(f)||Yr(i,o,r,p,f,d))&+(!I.IsMultipleOf(f)||tr(i,o,r,p,f,d))))&+(!I.IsRef(f)||bi(i,o,r,p,f,d))&+(!I.IsRecursiveRef(f)||Ni(i,o,r,p,f,d))&+(!I.IsDynamicRef(f)||a(i,o,r,p,f,d))&+(!I.IsGuard(f)||N(i,o,r,p,f,d))&+(!I.IsConst(f)||Y(i,o,r,p,f,d))&+(!I.IsEnum(f)||Ir(i,o,r,p,f,d))&+(!I.IsIf(f)||Or(i,o,r,p,f,d))&+(!I.IsNot(f)||ar(i,o,r,p,f,d))&+(!I.IsAllOf(f)||F(i,o,r,p,f,d))&+(!I.IsAnyOf(f)||z(i,o,r,p,f,d))&+(!I.IsOneOf(f)||Ii(i,o,r,p,f,d))&+(!I.IsUnevaluatedItems(f)||!M.IsArray(d)||zi(i,o,r,p,f,d))&+(!I.IsUnevaluatedProperties(f)||!M.IsObject(d)||Vi(i,o,r,p,f,d)))&&(!I.IsRefine(f)||S(i,o,r,p,f,d));return i.Pop(f),u}C(ErrorSchema,"ErrorSchema");
1
+ var O=Object.defineProperty;var C=(i,o)=>O(i,"name",{value:o,configurable:!0});import*as I from"../types/index.mjs";import{BuildRefine as R,CheckRefine as A,ErrorRefine as S}from"./_refine.mjs";import{EmitGuard as u,Guard as M}from"../../guard/index.mjs";import{BuildAdditionalItems as g,CheckAdditionalItems as D,ErrorAdditionalItems as N}from"./additionalItems.mjs";import{BuildAdditionalProperties as q,CheckAdditionalProperties as U,ErrorAdditionalProperties as b}from"./additionalProperties.mjs";import{BuildAllOf as L,CheckAllOf as j,ErrorAllOf as T}from"./allOf.mjs";import{BuildAnyOf as H,CheckAnyOf as F,ErrorAnyOf as w}from"./anyOf.mjs";import{BuildSchemaBoolean as G,CheckSchemaBoolean as K,ErrorSchemaBoolean as P}from"./boolean.mjs";import{BuildConst as z,CheckConst as J,ErrorConst as Q}from"./const.mjs";import{BuildContains as V,CheckContains as W,ErrorContains as X}from"./contains.mjs";import{BuildDependencies as Y,CheckDependencies as Z,ErrorDependencies as _}from"./dependencies.mjs";import{BuildDependentRequired as $,CheckDependentRequired as l,ErrorDependentRequired as x}from"./dependentRequired.mjs";import{BuildDependentSchemas as s,CheckDependentSchemas as k,ErrorDependentSchemas as m}from"./dependentSchemas.mjs";import{BuildDynamicRef as v,CheckDynamicRef as e,ErrorDynamicRef as t}from"./dynamicRef.mjs";import{BuildEnum as h,CheckEnum as c,ErrorEnum as a}from"./enum.mjs";import{BuildExclusiveMaximum as rr,CheckExclusiveMaximum as ir,ErrorExclusiveMaximum as Ir}from"./exclusiveMaximum.mjs";import{BuildExclusiveMinimum as pr,CheckExclusiveMinimum as or,ErrorExclusiveMinimum as fr}from"./exclusiveMinimum.mjs";import{BuildFormat as dr,CheckFormat as nr,ErrorFormat as ur}from"./format.mjs";import{BuildIf as Mr,CheckIf as Cr,ErrorIf as Er}from"./if.mjs";import{BuildItems as Br,CheckItems as yr,ErrorItems as Or}from"./items.mjs";import{BuildMaxContains as Rr,CheckMaxContains as Ar,ErrorMaxContains as Sr}from"./maxContains.mjs";import{BuildMaximum as gr,CheckMaximum as Dr,ErrorMaximum as Nr}from"./maximum.mjs";import{BuildMaxItems as qr,CheckMaxItems as Ur,ErrorMaxItems as br}from"./maxItems.mjs";import{BuildMaxLength as Lr,CheckMaxLength as jr,ErrorMaxLength as Tr}from"./maxLength.mjs";import{BuildMaxProperties as Hr,CheckMaxProperties as Fr,ErrorMaxProperties as wr}from"./maxProperties.mjs";import{BuildMinContains as Gr,CheckMinContains as Kr,ErrorMinContains as Pr}from"./minContains.mjs";import{BuildMinimum as zr,CheckMinimum as Jr,ErrorMinimum as Qr}from"./minimum.mjs";import{BuildMinItems as Vr,CheckMinItems as Wr,ErrorMinItems as Xr}from"./minItems.mjs";import{BuildMinLength as Yr,CheckMinLength as Zr,ErrorMinLength as _r}from"./minLength.mjs";import{BuildMinProperties as $r,CheckMinProperties as lr,ErrorMinProperties as xr}from"./minProperties.mjs";import{BuildMultipleOf as sr,CheckMultipleOf as kr,ErrorMultipleOf as mr}from"./multipleOf.mjs";import{BuildNot as vr,CheckNot as er,ErrorNot as tr}from"./not.mjs";import{BuildOneOf as hr,CheckOneOf as cr,ErrorOneOf as ar}from"./oneOf.mjs";import{BuildPattern as ri,CheckPattern as ii,ErrorPattern as Ii}from"./pattern.mjs";import{BuildPatternProperties as pi,CheckPatternProperties as oi,ErrorPatternProperties as fi}from"./patternProperties.mjs";import{BuildPrefixItems as di,CheckPrefixItems as ni,ErrorPrefixItems as ui}from"./prefixItems.mjs";import{BuildProperties as Mi,CheckProperties as Ci,ErrorProperties as Ei}from"./properties.mjs";import{BuildPropertyNames as Bi,CheckPropertyNames as yi,ErrorPropertyNames as Oi}from"./propertyNames.mjs";import{BuildRecursiveRef as Ri,CheckRecursiveRef as Ai,ErrorRecursiveRef as Si}from"./recursiveRef.mjs";import{BuildRef as gi,CheckRef as Di,ErrorRef as Ni}from"./ref.mjs";import{BuildRequired as qi,CheckRequired as Ui,ErrorRequired as bi}from"./required.mjs";import{BuildType as Li,CheckType as ji,ErrorType as Ti}from"./type.mjs";import{BuildUnevaluatedItems as Hi,CheckUnevaluatedItems as Fi,ErrorUnevaluatedItems as wi}from"./unevaluatedItems.mjs";import{BuildUnevaluatedProperties as Gi,CheckUnevaluatedProperties as Ki,ErrorUnevaluatedProperties as Pi}from"./unevaluatedProperties.mjs";import{BuildUniqueItems as zi,CheckUniqueItems as Ji,ErrorUniqueItems as Qi}from"./uniqueItems.mjs";function y(i,o){return I.IsType(i)&&(M.IsArray(i.type)&&M.IsGreaterThan(i.type.length,0)&&M.Every(i.type,0,r=>M.IsEqual(r,o))||M.IsEqual(i.type,o))}C(y,"HasTypeName");function Vi(i){return y(i,"object")}C(Vi,"HasObjectType");function Wi(i){return I.IsSchemaObject(i)&&(I.IsAdditionalProperties(i)||I.IsDependencies(i)||I.IsDependentRequired(i)||I.IsDependentSchemas(i)||I.IsProperties(i)||I.IsPatternProperties(i)||I.IsPropertyNames(i)||I.IsMinProperties(i)||I.IsMaxProperties(i)||I.IsRequired(i)||I.IsUnevaluatedProperties(i))}C(Wi,"HasObjectKeywords");function Xi(i){return y(i,"array")}C(Xi,"HasArrayType");function Yi(i){return I.IsSchemaObject(i)&&(I.IsAdditionalItems(i)||I.IsItems(i)||I.IsContains(i)||I.IsMaxContains(i)||I.IsMaxItems(i)||I.IsMinContains(i)||I.IsMinItems(i)||I.IsPrefixItems(i)||I.IsUnevaluatedItems(i)||I.IsUniqueItems(i))}C(Yi,"HasArrayKeywords");function Zi(i){return y(i,"string")}C(Zi,"HasStringType");function _i(i){return I.IsSchemaObject(i)&&(I.IsMinLength(i)||I.IsMaxLength(i)||I.IsFormat(i)||I.IsPattern(i))}C(_i,"HasStringKeywords");function $i(i){return y(i,"number")||y(i,"bigint")}C($i,"HasNumberType");function li(i){return I.IsSchemaObject(i)&&(I.IsMinimum(i)||I.IsMaximum(i)||I.IsExclusiveMaximum(i)||I.IsExclusiveMinimum(i)||I.IsMultipleOf(i))}C(li,"HasNumberKeywords");export function BuildSchemaPushStack(i,o,r,p){return o.UseUnevaluated()?u.And(u.And(o.Push(),BuildSchema(i,o,r,p)),o.Pop()):BuildSchema(i,o,r,p)}C(BuildSchemaPushStack,"BuildSchemaPushStack");export function BuildSchema(i,o,r,p){i.Push(r);const f=[];if(I.IsSchemaBoolean(r))return G(i,o,r,p);if(I.IsType(r)&&f.push(Li(i,o,r,p)),Wi(r)){const n=[];I.IsRequired(r)&&n.push(qi(i,o,r,p)),I.IsAdditionalProperties(r)&&n.push(q(i,o,r,p)),I.IsDependencies(r)&&n.push(Y(i,o,r,p)),I.IsDependentRequired(r)&&n.push($(i,o,r,p)),I.IsDependentSchemas(r)&&n.push(s(i,o,r,p)),I.IsPatternProperties(r)&&n.push(pi(i,o,r,p)),I.IsProperties(r)&&n.push(Mi(i,o,r,p)),I.IsPropertyNames(r)&&n.push(Bi(i,o,r,p)),I.IsMinProperties(r)&&n.push($r(i,o,r,p)),I.IsMaxProperties(r)&&n.push(Hr(i,o,r,p));const E=u.ReduceAnd(n),B=u.Or(u.Not(u.IsObjectNotArray(p)),E);f.push(Vi(r)?E:B)}if(Yi(r)){const n=[];I.IsAdditionalItems(r)&&n.push(g(i,o,r,p)),I.IsContains(r)&&n.push(V(i,o,r,p)),I.IsItems(r)&&n.push(Br(i,o,r,p)),I.IsMaxContains(r)&&n.push(Rr(i,o,r,p)),I.IsMaxItems(r)&&n.push(qr(i,o,r,p)),I.IsMinContains(r)&&n.push(Gr(i,o,r,p)),I.IsMinItems(r)&&n.push(Vr(i,o,r,p)),I.IsPrefixItems(r)&&n.push(di(i,o,r,p)),I.IsUniqueItems(r)&&n.push(zi(i,o,r,p));const E=u.ReduceAnd(n),B=u.Or(u.Not(u.IsArray(p)),E);f.push(Xi(r)?E:B)}if(_i(r)){const n=[];I.IsMaxLength(r)&&n.push(Lr(i,o,r,p)),I.IsMinLength(r)&&n.push(Yr(i,o,r,p)),I.IsFormat(r)&&n.push(dr(i,o,r,p)),I.IsPattern(r)&&n.push(ri(i,o,r,p));const E=u.ReduceAnd(n),B=u.Or(u.Not(u.IsString(p)),E);f.push(Zi(r)?E:B)}if(li(r)){const n=[];I.IsExclusiveMaximum(r)&&n.push(rr(i,o,r,p)),I.IsExclusiveMinimum(r)&&n.push(pr(i,o,r,p)),I.IsMaximum(r)&&n.push(gr(i,o,r,p)),I.IsMinimum(r)&&n.push(zr(i,o,r,p)),I.IsMultipleOf(r)&&n.push(sr(i,o,r,p));const E=u.ReduceAnd(n),B=u.Or(u.Not(u.Or(u.IsNumber(p),u.IsBigInt(p))),E);f.push($i(r)?E:B)}I.IsRef(r)&&f.push(gi(i,o,r,p)),I.IsRecursiveRef(r)&&f.push(Ri(i,o,r,p)),I.IsDynamicRef(r)&&f.push(v(i,o,r,p)),I.IsConst(r)&&f.push(z(i,o,r,p)),I.IsEnum(r)&&f.push(h(i,o,r,p)),I.IsIf(r)&&f.push(Mr(i,o,r,p)),I.IsNot(r)&&f.push(vr(i,o,r,p)),I.IsAllOf(r)&&f.push(L(i,o,r,p)),I.IsAnyOf(r)&&f.push(H(i,o,r,p)),I.IsOneOf(r)&&f.push(hr(i,o,r,p)),I.IsUnevaluatedItems(r)&&f.push(u.Or(u.Not(u.IsArray(p)),Hi(i,o,r,p))),I.IsUnevaluatedProperties(r)&&f.push(u.Or(u.Not(u.IsObject(p)),Gi(i,o,r,p))),I.IsRefine(r)&&f.push(R(i,o,r,p));const d=u.ReduceAnd(f);return i.Pop(r),d}C(BuildSchema,"BuildSchema");export function CheckSchemaPushStack(i,o,r,p){return o.Push()&&CheckSchema(i,o,r,p)&&o.Pop()}C(CheckSchemaPushStack,"CheckSchemaPushStack");export function CheckSchema(i,o,r,p){i.Push(r);const f=I.IsSchemaBoolean(r)?K(i,o,r,p):(!I.IsType(r)||ji(i,o,r,p))&&(!(M.IsObject(p)&&!M.IsArray(p))||(!I.IsRequired(r)||Ui(i,o,r,p))&&(!I.IsAdditionalProperties(r)||U(i,o,r,p))&&(!I.IsDependencies(r)||Z(i,o,r,p))&&(!I.IsDependentRequired(r)||l(i,o,r,p))&&(!I.IsDependentSchemas(r)||k(i,o,r,p))&&(!I.IsPatternProperties(r)||oi(i,o,r,p))&&(!I.IsProperties(r)||Ci(i,o,r,p))&&(!I.IsPropertyNames(r)||yi(i,o,r,p))&&(!I.IsMinProperties(r)||lr(i,o,r,p))&&(!I.IsMaxProperties(r)||Fr(i,o,r,p)))&&(!M.IsArray(p)||(!I.IsAdditionalItems(r)||D(i,o,r,p))&&(!I.IsContains(r)||W(i,o,r,p))&&(!I.IsItems(r)||yr(i,o,r,p))&&(!I.IsMaxContains(r)||Ar(i,o,r,p))&&(!I.IsMaxItems(r)||Ur(i,o,r,p))&&(!I.IsMinContains(r)||Kr(i,o,r,p))&&(!I.IsMinItems(r)||Wr(i,o,r,p))&&(!I.IsPrefixItems(r)||ni(i,o,r,p))&&(!I.IsUniqueItems(r)||Ji(i,o,r,p)))&&(!M.IsString(p)||(!I.IsMaxLength(r)||jr(i,o,r,p))&&(!I.IsMinLength(r)||Zr(i,o,r,p))&&(!I.IsFormat(r)||nr(i,o,r,p))&&(!I.IsPattern(r)||ii(i,o,r,p)))&&(!(M.IsNumber(p)||M.IsBigInt(p))||(!I.IsExclusiveMaximum(r)||ir(i,o,r,p))&&(!I.IsExclusiveMinimum(r)||or(i,o,r,p))&&(!I.IsMaximum(r)||Dr(i,o,r,p))&&(!I.IsMinimum(r)||Jr(i,o,r,p))&&(!I.IsMultipleOf(r)||kr(i,o,r,p)))&&(!I.IsRef(r)||Di(i,o,r,p))&&(!I.IsRecursiveRef(r)||Ai(i,o,r,p))&&(!I.IsDynamicRef(r)||e(i,o,r,p))&&(!I.IsConst(r)||J(i,o,r,p))&&(!I.IsEnum(r)||c(i,o,r,p))&&(!I.IsIf(r)||Cr(i,o,r,p))&&(!I.IsNot(r)||er(i,o,r,p))&&(!I.IsAllOf(r)||j(i,o,r,p))&&(!I.IsAnyOf(r)||F(i,o,r,p))&&(!I.IsOneOf(r)||cr(i,o,r,p))&&(!I.IsUnevaluatedItems(r)||!M.IsArray(p)||Fi(i,o,r,p))&&(!I.IsUnevaluatedProperties(r)||!M.IsObject(p)||Ki(i,o,r,p))&&(!I.IsRefine(r)||A(i,o,r,p));return i.Pop(r),f}C(CheckSchema,"CheckSchema");export function ErrorSchemaPushStack(i,o,r,p,f,d){return o.Push()&&ErrorSchema(i,o,r,p,f,d)&&o.Pop()}C(ErrorSchemaPushStack,"ErrorSchemaPushStack");export function ErrorSchema(i,o,r,p,f,d){i.Push(f);const n=I.IsSchemaBoolean(f)?P(i,o,r,p,f,d):!!(+(!I.IsType(f)||Ti(i,o,r,p,f,d))&+(!(M.IsObject(d)&&!M.IsArray(d))||!!(+(!I.IsRequired(f)||bi(i,o,r,p,f,d))&+(!I.IsAdditionalProperties(f)||b(i,o,r,p,f,d))&+(!I.IsDependencies(f)||_(i,o,r,p,f,d))&+(!I.IsDependentRequired(f)||x(i,o,r,p,f,d))&+(!I.IsDependentSchemas(f)||m(i,o,r,p,f,d))&+(!I.IsPatternProperties(f)||fi(i,o,r,p,f,d))&+(!I.IsProperties(f)||Ei(i,o,r,p,f,d))&+(!I.IsPropertyNames(f)||Oi(i,o,r,p,f,d))&+(!I.IsMinProperties(f)||xr(i,o,r,p,f,d))&+(!I.IsMaxProperties(f)||wr(i,o,r,p,f,d))))&+(!M.IsArray(d)||!!(+(!I.IsAdditionalItems(f)||N(i,o,r,p,f,d))&+(!I.IsContains(f)||X(i,o,r,p,f,d))&+(!I.IsItems(f)||Or(i,o,r,p,f,d))&+(!I.IsMaxContains(f)||Sr(i,o,r,p,f,d))&+(!I.IsMaxItems(f)||br(i,o,r,p,f,d))&+(!I.IsMinContains(f)||Pr(i,o,r,p,f,d))&+(!I.IsMinItems(f)||Xr(i,o,r,p,f,d))&+(!I.IsPrefixItems(f)||ui(i,o,r,p,f,d))&+(!I.IsUniqueItems(f)||Qi(i,o,r,p,f,d))))&+(!M.IsString(d)||!!(+(!I.IsMaxLength(f)||Tr(i,o,r,p,f,d))&+(!I.IsMinLength(f)||_r(i,o,r,p,f,d))&+(!I.IsFormat(f)||ur(i,o,r,p,f,d))&+(!I.IsPattern(f)||Ii(i,o,r,p,f,d))))&+(!(M.IsNumber(d)||M.IsBigInt(d))||!!(+(!I.IsExclusiveMaximum(f)||Ir(i,o,r,p,f,d))&+(!I.IsExclusiveMinimum(f)||fr(i,o,r,p,f,d))&+(!I.IsMaximum(f)||Nr(i,o,r,p,f,d))&+(!I.IsMinimum(f)||Qr(i,o,r,p,f,d))&+(!I.IsMultipleOf(f)||mr(i,o,r,p,f,d))))&+(!I.IsRef(f)||Ni(i,o,r,p,f,d))&+(!I.IsRecursiveRef(f)||Si(i,o,r,p,f,d))&+(!I.IsDynamicRef(f)||t(i,o,r,p,f,d))&+(!I.IsConst(f)||Q(i,o,r,p,f,d))&+(!I.IsEnum(f)||a(i,o,r,p,f,d))&+(!I.IsIf(f)||Er(i,o,r,p,f,d))&+(!I.IsNot(f)||tr(i,o,r,p,f,d))&+(!I.IsAllOf(f)||T(i,o,r,p,f,d))&+(!I.IsAnyOf(f)||w(i,o,r,p,f,d))&+(!I.IsOneOf(f)||ar(i,o,r,p,f,d))&+(!I.IsUnevaluatedItems(f)||!M.IsArray(d)||wi(i,o,r,p,f,d))&+(!I.IsUnevaluatedProperties(f)||!M.IsObject(d)||Pi(i,o,r,p,f,d)))&&(!I.IsRefine(f)||S(i,o,r,p,f,d));return i.Pop(f),n}C(ErrorSchema,"ErrorSchema");