likec4 1.28.1 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1552) hide show
  1. package/__app__/src/main.js +267 -234
  2. package/dist/cli/index.mjs +694 -690
  3. package/dist/index.d.mts +42 -2
  4. package/dist/index.mjs +1 -1
  5. package/dist/shared/likec4.BHE-zBYQ.mjs +2462 -0
  6. package/dist/shared/{likec4.CYGgfB-B.mjs → likec4.CN01ZZwj.mjs} +8 -8
  7. package/dist/shared/likec4.DallBlZf.d.mts +35545 -0
  8. package/dist/vite-plugin/index.d.mts +3 -1
  9. package/dist/vite-plugin/index.mjs +1 -1
  10. package/icons/all.d.ts +12 -2
  11. package/icons/all.js +9 -0
  12. package/icons/aws/activate.js +1 -21
  13. package/icons/aws/alexa-for-business.js +1 -21
  14. package/icons/aws/amplify.js +1 -21
  15. package/icons/aws/apache-mxnet-on-aws.js +1 -21
  16. package/icons/aws/api-gateway.js +1 -21
  17. package/icons/aws/app-config.js +1 -21
  18. package/icons/aws/app-flow.js +1 -21
  19. package/icons/aws/app-mesh.js +1 -21
  20. package/icons/aws/app-runner.js +1 -21
  21. package/icons/aws/app-stream.js +1 -21
  22. package/icons/aws/app-sync.js +1 -21
  23. package/icons/aws/application-auto-scaling.js +1 -21
  24. package/icons/aws/application-composer.js +1 -21
  25. package/icons/aws/application-cost-profiler.js +1 -21
  26. package/icons/aws/application-discovery-service.js +1 -21
  27. package/icons/aws/application-migration-service.js +1 -21
  28. package/icons/aws/artifact.js +1 -21
  29. package/icons/aws/athena.js +1 -21
  30. package/icons/aws/audit-manager.js +1 -21
  31. package/icons/aws/augmented-ai-a2i.js +1 -21
  32. package/icons/aws/aurora.js +1 -21
  33. package/icons/aws/auto-scaling.js +1 -21
  34. package/icons/aws/backint-agent.js +1 -21
  35. package/icons/aws/backup.js +1 -21
  36. package/icons/aws/batch.js +1 -21
  37. package/icons/aws/billing-conductor.js +1 -21
  38. package/icons/aws/bottlerocket.js +1 -21
  39. package/icons/aws/braket.js +1 -21
  40. package/icons/aws/budgets.js +1 -21
  41. package/icons/aws/certificate-manager.js +1 -21
  42. package/icons/aws/chatbot.js +1 -21
  43. package/icons/aws/chime-sdk.js +1 -21
  44. package/icons/aws/chime-voice-connector.js +1 -21
  45. package/icons/aws/chime.js +1 -21
  46. package/icons/aws/clean-rooms.js +1 -21
  47. package/icons/aws/client-vpn.js +1 -21
  48. package/icons/aws/cloud-control-api.js +1 -21
  49. package/icons/aws/cloud-development-kit.js +1 -21
  50. package/icons/aws/cloud-directory.js +1 -21
  51. package/icons/aws/cloud-formation.js +1 -21
  52. package/icons/aws/cloud-front.js +1 -21
  53. package/icons/aws/cloud-hsm.js +1 -21
  54. package/icons/aws/cloud-map.js +1 -21
  55. package/icons/aws/cloud-search.js +1 -21
  56. package/icons/aws/cloud-shell.js +1 -21
  57. package/icons/aws/cloud-trail.js +1 -21
  58. package/icons/aws/cloud-wan.js +1 -21
  59. package/icons/aws/cloud-watch.js +1 -21
  60. package/icons/aws/cloud9.js +1 -21
  61. package/icons/aws/code-artifact.js +1 -21
  62. package/icons/aws/code-build.js +1 -21
  63. package/icons/aws/code-catalyst.js +1 -21
  64. package/icons/aws/code-commit.js +1 -21
  65. package/icons/aws/code-deploy.js +1 -21
  66. package/icons/aws/code-guru.js +1 -21
  67. package/icons/aws/code-pipeline.js +1 -21
  68. package/icons/aws/code-star.js +1 -21
  69. package/icons/aws/code-whisperer.js +1 -21
  70. package/icons/aws/cognito.js +1 -21
  71. package/icons/aws/command-line-interface.js +1 -21
  72. package/icons/aws/comprehend-medical.js +1 -21
  73. package/icons/aws/comprehend.js +1 -21
  74. package/icons/aws/compute-optimizer.js +1 -21
  75. package/icons/aws/config.js +1 -21
  76. package/icons/aws/connect.js +1 -21
  77. package/icons/aws/console-mobile-application.js +1 -21
  78. package/icons/aws/control-tower.js +1 -21
  79. package/icons/aws/corretto.js +1 -21
  80. package/icons/aws/cost-and-usage-report.js +1 -21
  81. package/icons/aws/cost-explorer.js +1 -21
  82. package/icons/aws/data-exchange.js +1 -21
  83. package/icons/aws/data-pipeline.js +1 -21
  84. package/icons/aws/data-sync.js +1 -21
  85. package/icons/aws/data-zone.js +1 -21
  86. package/icons/aws/database-migration-service.js +1 -21
  87. package/icons/aws/deep-composer.js +1 -21
  88. package/icons/aws/deep-learning-amis.js +1 -21
  89. package/icons/aws/deep-learning-containers.js +1 -21
  90. package/icons/aws/deep-lens.js +1 -21
  91. package/icons/aws/deep-racer.js +1 -21
  92. package/icons/aws/detective.js +1 -21
  93. package/icons/aws/dev-ops-guru.js +1 -21
  94. package/icons/aws/device-farm.js +1 -21
  95. package/icons/aws/direct-connect.js +1 -21
  96. package/icons/aws/directory-service.js +1 -21
  97. package/icons/aws/distro-for-open-telemetry.js +1 -21
  98. package/icons/aws/document-db.js +1 -21
  99. package/icons/aws/dynamo-db.js +1 -21
  100. package/icons/aws/ec2-auto-scaling.js +1 -21
  101. package/icons/aws/ec2-image-builder.js +1 -21
  102. package/icons/aws/ec2.js +1 -21
  103. package/icons/aws/ecs-anywhere.js +1 -21
  104. package/icons/aws/efs.js +1 -21
  105. package/icons/aws/eks-anywhere.js +1 -21
  106. package/icons/aws/eks-cloud.js +1 -21
  107. package/icons/aws/eks-distro.js +1 -21
  108. package/icons/aws/elasti-cache.js +1 -21
  109. package/icons/aws/elastic-beanstalk.js +1 -21
  110. package/icons/aws/elastic-block-store.js +1 -21
  111. package/icons/aws/elastic-container-registry.js +1 -21
  112. package/icons/aws/elastic-container-service.js +1 -21
  113. package/icons/aws/elastic-disaster-recovery.js +1 -21
  114. package/icons/aws/elastic-fabric-adapter.js +1 -21
  115. package/icons/aws/elastic-inference.js +1 -21
  116. package/icons/aws/elastic-kubernetes-service.js +1 -21
  117. package/icons/aws/elastic-load-balancing.js +1 -21
  118. package/icons/aws/elastic-transcoder.js +1 -21
  119. package/icons/aws/elemental-appliances-software.js +1 -21
  120. package/icons/aws/elemental-conductor.js +1 -21
  121. package/icons/aws/elemental-delta.js +1 -21
  122. package/icons/aws/elemental-link.js +1 -21
  123. package/icons/aws/elemental-live.js +1 -21
  124. package/icons/aws/elemental-media-connect.js +1 -21
  125. package/icons/aws/elemental-media-convert.js +1 -21
  126. package/icons/aws/elemental-media-live.js +1 -21
  127. package/icons/aws/elemental-media-package.js +1 -21
  128. package/icons/aws/elemental-media-store.js +1 -21
  129. package/icons/aws/elemental-media-tailor.js +1 -21
  130. package/icons/aws/elemental-server.js +1 -21
  131. package/icons/aws/emr.js +1 -21
  132. package/icons/aws/event-bridge.js +1 -21
  133. package/icons/aws/express-workflows.js +1 -21
  134. package/icons/aws/fargate.js +1 -21
  135. package/icons/aws/fault-injection-simulator.js +1 -21
  136. package/icons/aws/file-cache.js +1 -21
  137. package/icons/aws/fin-space.js +1 -21
  138. package/icons/aws/firewall-manager.js +1 -21
  139. package/icons/aws/forecast.js +1 -21
  140. package/icons/aws/fraud-detector.js +1 -21
  141. package/icons/aws/free-rtos.js +1 -21
  142. package/icons/aws/fsx-for-lustre.js +1 -21
  143. package/icons/aws/fsx-for-net-app-ontap.js +1 -21
  144. package/icons/aws/fsx-for-open-zfs.js +1 -21
  145. package/icons/aws/fsx-for-wfs.js +1 -21
  146. package/icons/aws/fsx.js +1 -21
  147. package/icons/aws/game-kit.js +1 -21
  148. package/icons/aws/game-lift.js +1 -21
  149. package/icons/aws/game-sparks.js +1 -21
  150. package/icons/aws/genomics-cli.js +1 -21
  151. package/icons/aws/global-accelerator.js +1 -21
  152. package/icons/aws/glue-data-brew.js +1 -21
  153. package/icons/aws/glue-elastic-views.js +1 -21
  154. package/icons/aws/glue.js +1 -21
  155. package/icons/aws/ground-station.js +1 -21
  156. package/icons/aws/guard-duty.js +1 -21
  157. package/icons/aws/health-lake.js +1 -21
  158. package/icons/aws/honeycode.js +1 -21
  159. package/icons/aws/iam-identity-center.js +1 -21
  160. package/icons/aws/identity-and-access-management.js +1 -21
  161. package/icons/aws/inspector.js +1 -21
  162. package/icons/aws/interactive-video-service.js +1 -21
  163. package/icons/aws/io-t-1-click.js +1 -21
  164. package/icons/aws/io-t-analytics.js +1 -21
  165. package/icons/aws/io-t-button.js +1 -21
  166. package/icons/aws/io-t-core.js +1 -21
  167. package/icons/aws/io-t-device-defender.js +1 -21
  168. package/icons/aws/io-t-device-management.js +1 -21
  169. package/icons/aws/io-t-edu-kit.js +1 -21
  170. package/icons/aws/io-t-events.js +1 -21
  171. package/icons/aws/io-t-express-link.js +1 -21
  172. package/icons/aws/io-t-fleet-wise.js +1 -21
  173. package/icons/aws/io-t-greengrass.js +1 -21
  174. package/icons/aws/io-t-robo-runner.js +1 -21
  175. package/icons/aws/io-t-site-wise.js +1 -21
  176. package/icons/aws/io-t-things-graph.js +1 -21
  177. package/icons/aws/io-t-twin-maker.js +1 -37
  178. package/icons/aws/iq.js +1 -21
  179. package/icons/aws/kendra.js +1 -21
  180. package/icons/aws/key-management-service.js +1 -21
  181. package/icons/aws/keyspaces.js +1 -21
  182. package/icons/aws/kinesis-data-analytics.js +1 -21
  183. package/icons/aws/kinesis-data-streams.js +1 -21
  184. package/icons/aws/kinesis-firehose.js +1 -21
  185. package/icons/aws/kinesis-video-streams.js +1 -21
  186. package/icons/aws/kinesis.js +1 -21
  187. package/icons/aws/lake-formation.js +1 -21
  188. package/icons/aws/lambda.js +1 -21
  189. package/icons/aws/launch-wizard.js +1 -21
  190. package/icons/aws/lex.js +1 -21
  191. package/icons/aws/license-manager.js +1 -21
  192. package/icons/aws/lightsail.js +1 -21
  193. package/icons/aws/local-zones.js +1 -21
  194. package/icons/aws/location-service.js +1 -21
  195. package/icons/aws/lookout-for-equipment.js +1 -21
  196. package/icons/aws/lookout-for-metrics.js +1 -21
  197. package/icons/aws/lookout-for-vision.js +1 -21
  198. package/icons/aws/lumberyard.js +1 -21
  199. package/icons/aws/macie.js +1 -21
  200. package/icons/aws/mainframe-modernization.js +1 -21
  201. package/icons/aws/managed-blockchain.js +1 -21
  202. package/icons/aws/managed-grafana.js +1 -21
  203. package/icons/aws/managed-service-for-prometheus.js +1 -21
  204. package/icons/aws/managed-services.js +1 -21
  205. package/icons/aws/managed-streaming-for-apache-kafka.js +1 -21
  206. package/icons/aws/managed-workflows-for-apache-airflow.js +1 -21
  207. package/icons/aws/management-console.js +1 -21
  208. package/icons/aws/marketplace-dark.js +1 -15
  209. package/icons/aws/marketplace-light.js +1 -15
  210. package/icons/aws/memory-db-for-redis.js +1 -21
  211. package/icons/aws/migration-evaluator.js +1 -21
  212. package/icons/aws/migration-hub.js +1 -21
  213. package/icons/aws/monitron.js +1 -21
  214. package/icons/aws/mq.js +1 -21
  215. package/icons/aws/neptune.js +1 -21
  216. package/icons/aws/network-firewall.js +1 -21
  217. package/icons/aws/neuron.js +1 -21
  218. package/icons/aws/nice-dcv.js +1 -21
  219. package/icons/aws/nice-engin-frame.js +1 -21
  220. package/icons/aws/nimble-studio.js +1 -21
  221. package/icons/aws/nitro-enclaves.js +1 -21
  222. package/icons/aws/omics.js +1 -21
  223. package/icons/aws/open-3d-engine.js +1 -21
  224. package/icons/aws/open-search-service.js +1 -21
  225. package/icons/aws/ops-works.js +1 -21
  226. package/icons/aws/organizations.js +1 -21
  227. package/icons/aws/outposts-family.js +1 -21
  228. package/icons/aws/outposts-rack.js +1 -21
  229. package/icons/aws/outposts-servers.js +1 -21
  230. package/icons/aws/panorama.js +1 -21
  231. package/icons/aws/parallel-cluster.js +1 -21
  232. package/icons/aws/personal-health-dashboard.js +1 -21
  233. package/icons/aws/personalize.js +1 -21
  234. package/icons/aws/pinpoint-apis.js +1 -21
  235. package/icons/aws/pinpoint.js +1 -21
  236. package/icons/aws/polly.js +1 -21
  237. package/icons/aws/private-5g.js +1 -21
  238. package/icons/aws/private-certificate-authority.js +1 -28
  239. package/icons/aws/private-link.js +1 -21
  240. package/icons/aws/professional-services.js +1 -21
  241. package/icons/aws/proton.js +1 -21
  242. package/icons/aws/quantum-ledger-database.js +1 -21
  243. package/icons/aws/quick-sight.js +1 -21
  244. package/icons/aws/rds-on-vmware.js +1 -21
  245. package/icons/aws/rds.js +1 -21
  246. package/icons/aws/re-post.js +1 -21
  247. package/icons/aws/red-hat-open-shift-service-on-aws.js +1 -21
  248. package/icons/aws/redshift.js +1 -21
  249. package/icons/aws/rekognition.js +1 -21
  250. package/icons/aws/reserved-instance-reporting.js +1 -21
  251. package/icons/aws/resilience-hub.js +1 -21
  252. package/icons/aws/resource-access-manager.js +1 -21
  253. package/icons/aws/resource-explorer.js +1 -21
  254. package/icons/aws/robo-maker.js +1 -21
  255. package/icons/aws/route-53.js +1 -21
  256. package/icons/aws/s3-on-outposts.js +1 -21
  257. package/icons/aws/sage-maker-ground-truth.js +1 -21
  258. package/icons/aws/sage-maker-studio-lab.js +1 -21
  259. package/icons/aws/sage-maker.js +1 -21
  260. package/icons/aws/savings-plans.js +1 -21
  261. package/icons/aws/secrets-manager.js +1 -21
  262. package/icons/aws/security-hub.js +1 -21
  263. package/icons/aws/security-lake.js +1 -21
  264. package/icons/aws/server-migration-service.js +1 -21
  265. package/icons/aws/serverless-application-repository.js +1 -21
  266. package/icons/aws/service-catalog.js +1 -21
  267. package/icons/aws/service-management-connector.js +1 -28
  268. package/icons/aws/shield.js +1 -21
  269. package/icons/aws/signer.js +1 -21
  270. package/icons/aws/sim-space-weaver.js +1 -21
  271. package/icons/aws/simple-email-service.js +1 -21
  272. package/icons/aws/simple-notification-service.js +1 -21
  273. package/icons/aws/simple-queue-service.js +1 -21
  274. package/icons/aws/simple-storage-service-glacier.js +1 -21
  275. package/icons/aws/simple-storage-service.js +1 -21
  276. package/icons/aws/site-to-site-vpn.js +1 -21
  277. package/icons/aws/snowball-edge.js +1 -21
  278. package/icons/aws/snowball.js +1 -21
  279. package/icons/aws/snowcone.js +1 -21
  280. package/icons/aws/snowmobile.js +1 -21
  281. package/icons/aws/step-functions.js +1 -21
  282. package/icons/aws/storage-gateway.js +1 -21
  283. package/icons/aws/sumerian.js +1 -21
  284. package/icons/aws/supply-chain.js +1 -21
  285. package/icons/aws/support.js +1 -21
  286. package/icons/aws/systems-manager.js +1 -21
  287. package/icons/aws/tensor-flow-on-aws.js +1 -21
  288. package/icons/aws/textract.js +1 -21
  289. package/icons/aws/thinkbox-deadline.js +1 -21
  290. package/icons/aws/thinkbox-frost.js +1 -21
  291. package/icons/aws/thinkbox-krakatoa.js +1 -21
  292. package/icons/aws/thinkbox-sequoia.js +1 -21
  293. package/icons/aws/thinkbox-stoke.js +1 -21
  294. package/icons/aws/thinkbox-xmesh.js +1 -21
  295. package/icons/aws/timestream.js +1 -21
  296. package/icons/aws/tools-and-sdks.js +1 -21
  297. package/icons/aws/torch-serve.js +1 -21
  298. package/icons/aws/training-certification.js +1 -21
  299. package/icons/aws/transcribe.js +1 -21
  300. package/icons/aws/transfer-family.js +1 -21
  301. package/icons/aws/transit-gateway.js +1 -21
  302. package/icons/aws/translate.js +1 -21
  303. package/icons/aws/trusted-advisor.js +1 -21
  304. package/icons/aws/verified-access.js +1 -21
  305. package/icons/aws/verified-permissions.js +1 -21
  306. package/icons/aws/virtual-private-cloud.js +1 -21
  307. package/icons/aws/vmware-cloud-on-aws.js +1 -21
  308. package/icons/aws/vpc-lattice.js +1 -21
  309. package/icons/aws/waf.js +1 -21
  310. package/icons/aws/wavelength.js +1 -21
  311. package/icons/aws/well-architected-tool.js +1 -21
  312. package/icons/aws/wickr.js +1 -21
  313. package/icons/aws/work-docs-sdk.js +1 -21
  314. package/icons/aws/work-docs.js +1 -21
  315. package/icons/aws/work-link.js +1 -21
  316. package/icons/aws/work-mail.js +1 -21
  317. package/icons/aws/work-spaces-family.js +1 -21
  318. package/icons/aws/x-ray.js +1 -21
  319. package/icons/azure/abs-member.js +1 -32
  320. package/icons/azure/active-directory-connect-health.js +1 -132
  321. package/icons/azure/activity-log.js +1 -33
  322. package/icons/azure/administrative-units.js +1 -102
  323. package/icons/azure/advisor.js +1 -44
  324. package/icons/azure/ai-studio.js +1 -105
  325. package/icons/azure/aks-automatic.js +1 -105
  326. package/icons/azure/aks-istio.js +1 -96
  327. package/icons/azure/alerts.js +1 -29
  328. package/icons/azure/all-resources.js +1 -21
  329. package/icons/azure/analysis-services.js +1 -67
  330. package/icons/azure/anomaly-detector.js +1 -44
  331. package/icons/azure/api-center.js +1 -42
  332. package/icons/azure/api-connections.js +1 -66
  333. package/icons/azure/api-management-services.js +1 -51
  334. package/icons/azure/api-proxy.js +1 -32
  335. package/icons/azure/app-compliance-automation.js +1 -82
  336. package/icons/azure/app-configuration.js +1 -56
  337. package/icons/azure/app-registrations.js +1 -39
  338. package/icons/azure/app-service-certificates.js +1 -42
  339. package/icons/azure/app-service-domains.js +1 -23
  340. package/icons/azure/app-service-environments.js +1 -36
  341. package/icons/azure/app-service-plans.js +1 -66
  342. package/icons/azure/app-services.js +1 -104
  343. package/icons/azure/app-space-component.js +1 -39
  344. package/icons/azure/app-space.js +1 -37
  345. package/icons/azure/applens.js +1 -45
  346. package/icons/azure/application-gateway-containers.js +1 -134
  347. package/icons/azure/application-gateways.js +1 -92
  348. package/icons/azure/application-group.js +1 -21
  349. package/icons/azure/application-insights.js +1 -57
  350. package/icons/azure/application-security-groups.js +1 -54
  351. package/icons/azure/aquila.js +1 -95
  352. package/icons/azure/arc-data-services.js +1 -60
  353. package/icons/azure/arc-kubernetes.js +1 -139
  354. package/icons/azure/arc-machines.js +1 -40
  355. package/icons/azure/arc-postgre-sql.js +1 -73
  356. package/icons/azure/arc-sql-managed-instance.js +1 -75
  357. package/icons/azure/arc-sql-server.js +1 -40
  358. package/icons/azure/atm-multistack.js +1 -59
  359. package/icons/azure/auto-scale.js +1 -43
  360. package/icons/azure/automanaged-vm.js +1 -65
  361. package/icons/azure/automation-accounts.js +1 -62
  362. package/icons/azure/availability-sets.js +1 -70
  363. package/icons/azure/avs-vm.js +1 -32
  364. package/icons/azure/azure-a.js +1 -46
  365. package/icons/azure/azure-ad-b2c.js +1 -129
  366. package/icons/azure/azure-api-for-fhir.js +1 -33
  367. package/icons/azure/azure-applied-ai-services.js +1 -81
  368. package/icons/azure/azure-arc.js +1 -75
  369. package/icons/azure/azure-attestation.js +1 -35
  370. package/icons/azure/azure-backup-center.js +1 -63
  371. package/icons/azure/azure-blockchain-service.js +1 -51
  372. package/icons/azure/azure-center-for-sap.js +1 -37
  373. package/icons/azure/azure-chaos-studio.js +1 -75
  374. package/icons/azure/azure-cloud-shell.js +1 -39
  375. package/icons/azure/azure-communication-services.js +1 -63
  376. package/icons/azure/azure-communications-gateway.js +1 -43
  377. package/icons/azure/azure-compute-galleries.js +1 -35
  378. package/icons/azure/azure-cosmos-db.js +1 -47
  379. package/icons/azure/azure-data-catalog.js +1 -91
  380. package/icons/azure/azure-data-explorer-clusters.js +1 -126
  381. package/icons/azure/azure-database-maria-db-server.js +1 -56
  382. package/icons/azure/azure-database-migration-services.js +1 -83
  383. package/icons/azure/azure-database-my-sql-server.js +1 -56
  384. package/icons/azure/azure-database-postgre-sql-server-group.js +1 -65
  385. package/icons/azure/azure-database-postgre-sql-server.js +1 -57
  386. package/icons/azure/azure-databox-gateway.js +1 -39
  387. package/icons/azure/azure-databricks.js +1 -12
  388. package/icons/azure/azure-deployment-environments.js +1 -65
  389. package/icons/azure/azure-dev-ops.js +1 -21
  390. package/icons/azure/azure-dev-tunnels.js +1 -48
  391. package/icons/azure/azure-edge-hardware-center.js +1 -69
  392. package/icons/azure/azure-experimentation-studio.js +1 -88
  393. package/icons/azure/azure-fileshares.js +1 -46
  394. package/icons/azure/azure-firewall-manager.js +1 -60
  395. package/icons/azure/azure-firewall-policy.js +1 -37
  396. package/icons/azure/azure-hcp-cache.js +1 -23
  397. package/icons/azure/azure-hpc-workbenches.js +1 -112
  398. package/icons/azure/azure-hybrid-center.js +1 -33
  399. package/icons/azure/azure-information-protection.js +1 -95
  400. package/icons/azure/azure-io-t-operations.js +1 -57
  401. package/icons/azure/azure-lighthouse.js +1 -35
  402. package/icons/azure/azure-load-testing.js +1 -78
  403. package/icons/azure/azure-managed-grafana.js +1 -19
  404. package/icons/azure/azure-maps-accounts.js +1 -16
  405. package/icons/azure/azure-media-service.js +1 -107
  406. package/icons/azure/azure-migrate.js +1 -57
  407. package/icons/azure/azure-monitor-dashboard.js +1 -58
  408. package/icons/azure/azure-monitor-pipeline.js +1 -101
  409. package/icons/azure/azure-monitors-for-sap-solutions.js +1 -71
  410. package/icons/azure/azure-net-app-files.js +1 -36
  411. package/icons/azure/azure-network-function-manager-functions.js +1 -94
  412. package/icons/azure/azure-network-function-manager.js +1 -98
  413. package/icons/azure/azure-object-understanding.js +1 -50
  414. package/icons/azure/azure-open-ai.js +1 -29
  415. package/icons/azure/azure-operator-5g-core.js +1 -86
  416. package/icons/azure/azure-operator-insights.js +1 -42
  417. package/icons/azure/azure-operator-nexus.js +1 -87
  418. package/icons/azure/azure-operator-service-manager.js +1 -41
  419. package/icons/azure/azure-orbital.js +1 -115
  420. package/icons/azure/azure-programmable-connectivity.js +1 -168
  421. package/icons/azure/azure-purview-accounts.js +1 -100
  422. package/icons/azure/azure-quotas.js +1 -54
  423. package/icons/azure/azure-red-hat-open-shift.js +1 -44
  424. package/icons/azure/azure-sentinel.js +1 -37
  425. package/icons/azure/azure-service-bus.js +1 -77
  426. package/icons/azure/azure-sphere.js +1 -68
  427. package/icons/azure/azure-spring-apps.js +1 -111
  428. package/icons/azure/azure-sql-edge.js +1 -157
  429. package/icons/azure/azure-sql-server-stretch-databases.js +1 -82
  430. package/icons/azure/azure-sql-vm.js +1 -37
  431. package/icons/azure/azure-sql.js +1 -27
  432. package/icons/azure/azure-stack-edge.js +1 -44
  433. package/icons/azure/azure-stack-hci-sizer.js +1 -90
  434. package/icons/azure/azure-stack.js +1 -54
  435. package/icons/azure/azure-storage-mover.js +1 -120
  436. package/icons/azure/azure-support-center-blue.js +1 -53
  437. package/icons/azure/azure-sustainability.js +1 -75
  438. package/icons/azure/azure-synapse-analytics.js +1 -60
  439. package/icons/azure/azure-token-service.js +1 -46
  440. package/icons/azure/azure-video-indexer.js +1 -82
  441. package/icons/azure/azure-virtual-desktop.js +1 -19
  442. package/icons/azure/azure-vmware-solution.js +1 -57
  443. package/icons/azure/azure-workbooks.js +1 -78
  444. package/icons/azure/azurite.js +1 -34
  445. package/icons/azure/backlog.js +1 -48
  446. package/icons/azure/backup-vault.js +1 -71
  447. package/icons/azure/bare-metal-infrastructure.js +1 -63
  448. package/icons/azure/bastions.js +1 -71
  449. package/icons/azure/batch-accounts.js +1 -52
  450. package/icons/azure/batch-ai.js +1 -56
  451. package/icons/azure/biz-talk.js +1 -39
  452. package/icons/azure/blob-block.js +1 -17
  453. package/icons/azure/blob-page.js +1 -43
  454. package/icons/azure/blockchain-applications.js +1 -43
  455. package/icons/azure/blueprints.js +1 -56
  456. package/icons/azure/bonsai.js +1 -63
  457. package/icons/azure/bot-services.js +1 -43
  458. package/icons/azure/branch.js +1 -43
  459. package/icons/azure/browser.js +1 -16
  460. package/icons/azure/bug.js +1 -26
  461. package/icons/azure/builds.js +1 -48
  462. package/icons/azure/business-process-tracking.js +1 -28
  463. package/icons/azure/cache-redis.js +1 -72
  464. package/icons/azure/cache.js +1 -113
  465. package/icons/azure/capacity-reservation-groups.js +1 -47
  466. package/icons/azure/capacity.js +1 -74
  467. package/icons/azure/cdn-profiles.js +1 -32
  468. package/icons/azure/central-service-instance-for-sap.js +1 -55
  469. package/icons/azure/ceres.js +1 -58
  470. package/icons/azure/change-analysis.js +1 -93
  471. package/icons/azure/client-apps.js +1 -21
  472. package/icons/azure/cloud-services-classic.js +1 -48
  473. package/icons/azure/cloud-services-extended-support.js +1 -78
  474. package/icons/azure/cloud-test.js +1 -58
  475. package/icons/azure/code-optimization.js +1 -146
  476. package/icons/azure/code.js +1 -94
  477. package/icons/azure/cognitive-search.js +1 -26
  478. package/icons/azure/cognitive-services-decisions.js +1 -139
  479. package/icons/azure/cognitive-services.js +1 -42
  480. package/icons/azure/collaborative-service.js +1 -91
  481. package/icons/azure/commit.js +1 -30
  482. package/icons/azure/community-images.js +1 -68
  483. package/icons/azure/compliance-center.js +1 -70
  484. package/icons/azure/compliance.js +1 -35
  485. package/icons/azure/compute-fleet.js +1 -102
  486. package/icons/azure/computer-vision.js +1 -35
  487. package/icons/azure/conditional-access.js +1 -45
  488. package/icons/azure/confidential-ledgers.js +1 -96
  489. package/icons/azure/connected-cache.js +1 -99
  490. package/icons/azure/connected-vehicle-platform.js +1 -111
  491. package/icons/azure/connections.js +1 -54
  492. package/icons/azure/consortium.js +1 -63
  493. package/icons/azure/container-apps-environments.js +1 -66
  494. package/icons/azure/container-instances.js +1 -37
  495. package/icons/azure/container-registries.js +1 -68
  496. package/icons/azure/container-services-deprecated.js +1 -142
  497. package/icons/azure/content-moderators.js +1 -63
  498. package/icons/azure/content-safety.js +1 -88
  499. package/icons/azure/controls-horizontal.js +1 -135
  500. package/icons/azure/controls.js +1 -33
  501. package/icons/azure/cost-alerts.js +1 -28
  502. package/icons/azure/cost-analysis.js +1 -35
  503. package/icons/azure/cost-budgets.js +1 -30
  504. package/icons/azure/cost-export.js +1 -36
  505. package/icons/azure/cost-management-and-billing.js +1 -41
  506. package/icons/azure/cost-management.js +1 -46
  507. package/icons/azure/counter.js +1 -33
  508. package/icons/azure/cubes.js +1 -16
  509. package/icons/azure/custom-ip-prefix.js +1 -51
  510. package/icons/azure/custom-vision.js +1 -59
  511. package/icons/azure/customer-lockbox-for-microsoft-azure.js +1 -64
  512. package/icons/azure/dashboard-hub.js +1 -94
  513. package/icons/azure/dashboard.js +1 -42
  514. package/icons/azure/data-box.js +1 -33
  515. package/icons/azure/data-collection-rules.js +1 -64
  516. package/icons/azure/data-factories.js +1 -42
  517. package/icons/azure/data-lake-analytics.js +1 -43
  518. package/icons/azure/data-lake-storage-gen1.js +1 -49
  519. package/icons/azure/data-lake-store-gen1.js +1 -49
  520. package/icons/azure/data-share-invitations.js +1 -34
  521. package/icons/azure/data-shares.js +1 -67
  522. package/icons/azure/database-instance-for-sap.js +1 -80
  523. package/icons/azure/ddo-s-protection-plans.js +1 -47
  524. package/icons/azure/dedicated-hsm.js +1 -49
  525. package/icons/azure/defender-cm-local-manager.js +1 -175
  526. package/icons/azure/defender-dcs-controller.js +1 -99
  527. package/icons/azure/defender-distributer-control-system.js +1 -67
  528. package/icons/azure/defender-engineering-station.js +1 -115
  529. package/icons/azure/defender-external-management.js +1 -132
  530. package/icons/azure/defender-freezer-monitor.js +1 -217
  531. package/icons/azure/defender-historian.js +1 -53
  532. package/icons/azure/defender-hmi.js +1 -54
  533. package/icons/azure/defender-industrial-packaging-system.js +1 -97
  534. package/icons/azure/defender-industrial-printer.js +1 -51
  535. package/icons/azure/defender-industrial-robot.js +1 -165
  536. package/icons/azure/defender-industrial-scale-system.js +1 -80
  537. package/icons/azure/defender-marquee.js +1 -68
  538. package/icons/azure/defender-meter.js +1 -156
  539. package/icons/azure/defender-plc.js +1 -66
  540. package/icons/azure/defender-pneumatic-device.js +1 -72
  541. package/icons/azure/defender-programable-board.js +1 -126
  542. package/icons/azure/defender-relay.js +1 -67
  543. package/icons/azure/defender-robot-controller.js +1 -123
  544. package/icons/azure/defender-rtu.js +1 -23
  545. package/icons/azure/defender-sensor.js +1 -55
  546. package/icons/azure/defender-slot.js +1 -31
  547. package/icons/azure/defender-web-guiding-system.js +1 -266
  548. package/icons/azure/detonation.js +1 -41
  549. package/icons/azure/dev-console.js +1 -30
  550. package/icons/azure/dev-ops-starter.js +1 -102
  551. package/icons/azure/dev-test-labs.js +1 -46
  552. package/icons/azure/device-compliance.js +1 -62
  553. package/icons/azure/device-configuration.js +1 -66
  554. package/icons/azure/device-enrollment.js +1 -69
  555. package/icons/azure/device-provisioning-services.js +1 -54
  556. package/icons/azure/device-security-apple.js +1 -54
  557. package/icons/azure/device-security-google.js +1 -54
  558. package/icons/azure/device-security-windows.js +1 -54
  559. package/icons/azure/device-update-io-t-hub.js +1 -46
  560. package/icons/azure/devices.js +1 -29
  561. package/icons/azure/diagnostics-settings.js +1 -51
  562. package/icons/azure/digital-twins.js +1 -73
  563. package/icons/azure/disk-encryption-sets.js +1 -63
  564. package/icons/azure/disk-pool.js +1 -92
  565. package/icons/azure/disks-classic.js +1 -74
  566. package/icons/azure/disks-snapshots.js +1 -71
  567. package/icons/azure/disks.js +1 -63
  568. package/icons/azure/dns-multistack.js +1 -49
  569. package/icons/azure/dns-private-resolver.js +1 -50
  570. package/icons/azure/dns-security-policy.js +1 -90
  571. package/icons/azure/dns-zones.js +1 -37
  572. package/icons/azure/download.js +1 -60
  573. package/icons/azure/e-books.js +1 -42
  574. package/icons/azure/edge-management.js +1 -64
  575. package/icons/azure/education.js +1 -42
  576. package/icons/azure/elastic-job-agents.js +1 -61
  577. package/icons/azure/elastic-san.js +1 -65
  578. package/icons/azure/endpoint-analytics.js +1 -83
  579. package/icons/azure/enterprise-applications.js +1 -66
  580. package/icons/azure/entra-connect-health.js +1 -132
  581. package/icons/azure/entra-connect-sync.js +1 -86
  582. package/icons/azure/entra-connect.js +1 -123
  583. package/icons/azure/entra-domain-services.js +1 -105
  584. package/icons/azure/entra-global-secure-access.js +1 -76
  585. package/icons/azure/entra-id-protection.js +1 -74
  586. package/icons/azure/entra-identity-custom-roles.js +1 -62
  587. package/icons/azure/entra-identity-licenses.js +1 -85
  588. package/icons/azure/entra-identity-risky-signins.js +1 -28
  589. package/icons/azure/entra-identity-risky-users.js +1 -28
  590. package/icons/azure/entra-identity-roles-and-administrators.js +1 -53
  591. package/icons/azure/entra-internet-access.js +1 -105
  592. package/icons/azure/entra-managed-identities.js +1 -120
  593. package/icons/azure/entra-private-access.js +1 -104
  594. package/icons/azure/entra-privleged-identity-management.js +1 -120
  595. package/icons/azure/entra-verified-id.js +1 -75
  596. package/icons/azure/error.js +1 -30
  597. package/icons/azure/event-grid-domains.js +1 -75
  598. package/icons/azure/event-grid-subscriptions.js +1 -75
  599. package/icons/azure/event-grid-topics.js +1 -90
  600. package/icons/azure/event-hub-clusters.js +1 -77
  601. package/icons/azure/event-hubs.js +1 -64
  602. package/icons/azure/exchange-access.js +1 -45
  603. package/icons/azure/exchange-on-premises-access.js +1 -39
  604. package/icons/azure/express-route-circuits.js +1 -60
  605. package/icons/azure/express-route-direct.js +1 -61
  606. package/icons/azure/express-route-traffic-collector.js +1 -97
  607. package/icons/azure/extended-security-updates.js +1 -44
  608. package/icons/azure/extensions.js +1 -28
  609. package/icons/azure/external-identities.js +1 -42
  610. package/icons/azure/face-apis.js +1 -19
  611. package/icons/azure/feature-previews.js +1 -21
  612. package/icons/azure/fhir-service.js +1 -60
  613. package/icons/azure/fiji.js +1 -42
  614. package/icons/azure/file.js +1 -29
  615. package/icons/azure/files.js +1 -45
  616. package/icons/azure/firewalls.js +1 -32
  617. package/icons/azure/folder-blank.js +1 -39
  618. package/icons/azure/folder-website.js +1 -123
  619. package/icons/azure/form-recognizers.js +1 -48
  620. package/icons/azure/free-services.js +1 -43
  621. package/icons/azure/front-door-and-cdn-profiles.js +1 -37
  622. package/icons/azure/ftp.js +1 -17
  623. package/icons/azure/function-apps.js +1 -61
  624. package/icons/azure/gear.js +1 -37
  625. package/icons/azure/genomics-accounts.js +1 -68
  626. package/icons/azure/genomics.js +1 -57
  627. package/icons/azure/globe-error.js +1 -42
  628. package/icons/azure/globe-success.js +1 -52
  629. package/icons/azure/globe-warning.js +1 -53
  630. package/icons/azure/groups.js +1 -42
  631. package/icons/azure/guide.js +1 -17
  632. package/icons/azure/hd-insight-clusters.js +1 -71
  633. package/icons/azure/hdi-aks-cluster.js +1 -60
  634. package/icons/azure/heart.js +1 -31
  635. package/icons/azure/help-and-support.js +1 -55
  636. package/icons/azure/host-groups.js +1 -48
  637. package/icons/azure/host-pools.js +1 -19
  638. package/icons/azure/hosts.js +1 -46
  639. package/icons/azure/ic-m-troubleshooting.js +1 -60
  640. package/icons/azure/identity-governance.js +1 -52
  641. package/icons/azure/identity-multi-factor-authentication.js +1 -117
  642. package/icons/azure/identity-secure-score.js +1 -55
  643. package/icons/azure/image-definitions.js +1 -38
  644. package/icons/azure/image-templates.js +1 -43
  645. package/icons/azure/image-versions.js +1 -38
  646. package/icons/azure/image.js +1 -31
  647. package/icons/azure/images.js +1 -37
  648. package/icons/azure/immersive-readers.js +1 -82
  649. package/icons/azure/import-export-jobs.js +1 -25
  650. package/icons/azure/industrial-io-t.js +1 -97
  651. package/icons/azure/information.js +1 -21
  652. package/icons/azure/infrastructure-backup.js +1 -89
  653. package/icons/azure/input-output.js +1 -97
  654. package/icons/azure/instance-pools.js +1 -87
  655. package/icons/azure/integration-accounts.js +1 -52
  656. package/icons/azure/integration-environments.js +1 -94
  657. package/icons/azure/integration-service-environments.js +1 -90
  658. package/icons/azure/internet-analyzer-profiles.js +1 -59
  659. package/icons/azure/intune-app-protection.js +1 -79
  660. package/icons/azure/intune-for-education.js +1 -79
  661. package/icons/azure/intune-trends.js +1 -40
  662. package/icons/azure/intune.js +1 -46
  663. package/icons/azure/io-t-central-applications.js +1 -20
  664. package/icons/azure/io-t-edge.js +1 -25
  665. package/icons/azure/io-t-hub.js +1 -36
  666. package/icons/azure/ip-address-manager.js +1 -63
  667. package/icons/azure/ip-groups.js +1 -45
  668. package/icons/azure/journey-hub.js +1 -30
  669. package/icons/azure/key-vaults.js +1 -61
  670. package/icons/azure/keys.js +1 -97
  671. package/icons/azure/kubernetes-fleet-manager.js +1 -73
  672. package/icons/azure/kubernetes-services.js +1 -142
  673. package/icons/azure/lab-accounts.js +1 -69
  674. package/icons/azure/lab-services.js +1 -46
  675. package/icons/azure/language-understanding.js +1 -25
  676. package/icons/azure/language.js +1 -71
  677. package/icons/azure/launch-portal.js +1 -36
  678. package/icons/azure/learn.js +1 -61
  679. package/icons/azure/load-balancer-hub.js +1 -101
  680. package/icons/azure/load-balancers.js +1 -28
  681. package/icons/azure/load-test.js +1 -61
  682. package/icons/azure/load-testing.js +1 -71
  683. package/icons/azure/local-network-gateways.js +1 -44
  684. package/icons/azure/location.js +1 -34
  685. package/icons/azure/log-analytics-query-pack.js +1 -68
  686. package/icons/azure/log-analytics-workspaces.js +1 -58
  687. package/icons/azure/log-streaming.js +1 -57
  688. package/icons/azure/logic-apps-custom-connector.js +1 -76
  689. package/icons/azure/logic-apps.js +1 -65
  690. package/icons/azure/machine-learning-studio-classic-web-services.js +1 -49
  691. package/icons/azure/machine-learning-studio-web-service-plans.js +1 -84
  692. package/icons/azure/machine-learning-studio-workspaces.js +1 -55
  693. package/icons/azure/machine-learning.js +1 -29
  694. package/icons/azure/machines-azure-arc.js +1 -27
  695. package/icons/azure/maintenance-configuration.js +1 -62
  696. package/icons/azure/managed-applications-center.js +1 -55
  697. package/icons/azure/managed-database.js +1 -79
  698. package/icons/azure/managed-desktop.js +1 -40
  699. package/icons/azure/managed-dev-ops-pools.js +1 -59
  700. package/icons/azure/managed-file-shares.js +1 -59
  701. package/icons/azure/managed-identities.js +1 -66
  702. package/icons/azure/managed-instance-apache-cassandra.js +1 -100
  703. package/icons/azure/managed-service-fabric.js +1 -109
  704. package/icons/azure/management-groups.js +1 -77
  705. package/icons/azure/management-portal.js +1 -23
  706. package/icons/azure/marketplace-management.js +1 -47
  707. package/icons/azure/marketplace.js +1 -38
  708. package/icons/azure/med-tech-service.js +1 -87
  709. package/icons/azure/media-file.js +1 -36
  710. package/icons/azure/media.js +1 -108
  711. package/icons/azure/mesh-applications.js +1 -47
  712. package/icons/azure/metrics-advisor.js +1 -58
  713. package/icons/azure/metrics.js +1 -34
  714. package/icons/azure/microsoft-defender-easm.js +1 -69
  715. package/icons/azure/microsoft-defender-for-cloud.js +1 -61
  716. package/icons/azure/microsoft-defender-for-io-t.js +1 -54
  717. package/icons/azure/microsoft-dev-box.js +1 -143
  718. package/icons/azure/mindaro.js +1 -47
  719. package/icons/azure/mission-landing-zone.js +1 -48
  720. package/icons/azure/mobile-engagement.js +1 -46
  721. package/icons/azure/mobile-networks.js +1 -86
  722. package/icons/azure/mobile.js +1 -28
  723. package/icons/azure/modular-data-center.js +1 -83
  724. package/icons/azure/module.js +1 -25
  725. package/icons/azure/monitor-health-models.js +1 -110
  726. package/icons/azure/monitor.js +1 -61
  727. package/icons/azure/multi-tenancy.js +1 -80
  728. package/icons/azure/multifactor-authentication.js +1 -84
  729. package/icons/azure/my-customers.js +1 -42
  730. package/icons/azure/nat.js +1 -56
  731. package/icons/azure/network-interfaces.js +1 -52
  732. package/icons/azure/network-managers.js +1 -55
  733. package/icons/azure/network-security-groups.js +1 -53
  734. package/icons/azure/network-security-perimeters.js +1 -113
  735. package/icons/azure/network-watcher.js +1 -55
  736. package/icons/azure/notification-hub-namespaces.js +1 -33
  737. package/icons/azure/notification-hubs.js +1 -22
  738. package/icons/azure/offers.js +1 -35
  739. package/icons/azure/on-premises-data-gateways.js +1 -44
  740. package/icons/azure/open-supply-chain-platform.js +1 -111
  741. package/icons/azure/operation-log-classic.js +1 -44
  742. package/icons/azure/oracle-database.js +1 -55
  743. package/icons/azure/os-images-classic.js +1 -60
  744. package/icons/azure/osconfig.js +1 -82
  745. package/icons/azure/outbound-connection.js +1 -24
  746. package/icons/azure/partner-namespace.js +1 -97
  747. package/icons/azure/partner-registration.js +1 -117
  748. package/icons/azure/partner-topic.js +1 -93
  749. package/icons/azure/peering-service.js +1 -27
  750. package/icons/azure/peerings.js +1 -44
  751. package/icons/azure/personalizers.js +1 -99
  752. package/icons/azure/plans.js +1 -40
  753. package/icons/azure/policy.js +1 -34
  754. package/icons/azure/power-bi-embedded.js +1 -69
  755. package/icons/azure/power-platform.js +1 -163
  756. package/icons/azure/power-up.js +1 -42
  757. package/icons/azure/power.js +1 -31
  758. package/icons/azure/powershell.js +1 -30
  759. package/icons/azure/preview-features.js +1 -72
  760. package/icons/azure/private-endpoints.js +1 -80
  761. package/icons/azure/private-link-service.js +1 -83
  762. package/icons/azure/private-link-services.js +1 -72
  763. package/icons/azure/private-link.js +1 -94
  764. package/icons/azure/process-explorer.js +1 -23
  765. package/icons/azure/production-ready-database.js +1 -70
  766. package/icons/azure/proximity-placement-groups.js +1 -71
  767. package/icons/azure/public-ip-addresses-classic.js +1 -36
  768. package/icons/azure/public-ip-addresses.js +1 -19
  769. package/icons/azure/public-ip-prefixes.js +1 -85
  770. package/icons/azure/qn-a-makers.js +1 -61
  771. package/icons/azure/quickstart-center.js +1 -76
  772. package/icons/azure/recent.js +1 -57
  773. package/icons/azure/recovery-services-vaults.js +1 -67
  774. package/icons/azure/region-management.js +1 -42
  775. package/icons/azure/relays.js +1 -45
  776. package/icons/azure/remote-rendering.js +1 -71
  777. package/icons/azure/reservations.js +1 -37
  778. package/icons/azure/reserved-capacity.js +1 -45
  779. package/icons/azure/reserved-ip-addresses-classic.js +1 -38
  780. package/icons/azure/resource-explorer.js +1 -33
  781. package/icons/azure/resource-graph-explorer.js +1 -58
  782. package/icons/azure/resource-group-list.js +1 -48
  783. package/icons/azure/resource-groups.js +1 -40
  784. package/icons/azure/resource-guard.js +1 -46
  785. package/icons/azure/resource-linked.js +1 -51
  786. package/icons/azure/resource-management-private-link.js +1 -61
  787. package/icons/azure/resource-mover.js +1 -20
  788. package/icons/azure/resources-provider.js +1 -27
  789. package/icons/azure/restore-points-collections.js +1 -73
  790. package/icons/azure/restore-points.js +1 -72
  791. package/icons/azure/route-filters.js +1 -39
  792. package/icons/azure/route-tables.js +1 -62
  793. package/icons/azure/rtos.js +1 -64
  794. package/icons/azure/savings-plans.js +1 -75
  795. package/icons/azure/scheduler-job-collections.js +1 -73
  796. package/icons/azure/scheduler.js +1 -75
  797. package/icons/azure/scvmm-management-servers.js +1 -79
  798. package/icons/azure/search-grid.js +1 -48
  799. package/icons/azure/search.js +1 -28
  800. package/icons/azure/security-baselines.js +1 -55
  801. package/icons/azure/security.js +1 -22
  802. package/icons/azure/send-grid-accounts.js +1 -42
  803. package/icons/azure/server-farm.js +1 -65
  804. package/icons/azure/serverless-search.js +1 -65
  805. package/icons/azure/service-catalog-mad.js +1 -65
  806. package/icons/azure/service-endpoint-policies.js +1 -75
  807. package/icons/azure/service-fabric-clusters.js +1 -97
  808. package/icons/azure/service-health.js +1 -45
  809. package/icons/azure/service-providers.js +1 -71
  810. package/icons/azure/shared-image-galleries.js +1 -32
  811. package/icons/azure/signal-r.js +1 -22
  812. package/icons/azure/software-as-a-service.js +1 -65
  813. package/icons/azure/software-updates.js +1 -22
  814. package/icons/azure/solutions.js +1 -58
  815. package/icons/azure/sonic-dash.js +1 -95
  816. package/icons/azure/spatial-anchor-accounts.js +1 -88
  817. package/icons/azure/speech-services.js +1 -43
  818. package/icons/azure/spot-vm.js +1 -40
  819. package/icons/azure/spot-vmss.js +1 -77
  820. package/icons/azure/sql-data-warehouses.js +1 -82
  821. package/icons/azure/sql-database.js +1 -63
  822. package/icons/azure/sql-elastic-pools.js +1 -89
  823. package/icons/azure/sql-managed-instance.js +1 -73
  824. package/icons/azure/sql-server-registries.js +1 -75
  825. package/icons/azure/sql-server.js +1 -46
  826. package/icons/azure/ssd.js +1 -36
  827. package/icons/azure/ssh-keys.js +1 -42
  828. package/icons/azure/ssis-lift-and-shift-ir.js +1 -72
  829. package/icons/azure/stack-hci-premium.js +1 -144
  830. package/icons/azure/static-apps.js +1 -29
  831. package/icons/azure/stor-simple-data-managers.js +1 -57
  832. package/icons/azure/stor-simple-device-managers.js +1 -38
  833. package/icons/azure/storage-accounts-classic.js +1 -53
  834. package/icons/azure/storage-accounts.js +1 -35
  835. package/icons/azure/storage-actions.js +1 -88
  836. package/icons/azure/storage-azure-files.js +1 -47
  837. package/icons/azure/storage-container.js +1 -35
  838. package/icons/azure/storage-explorer.js +1 -38
  839. package/icons/azure/storage-functions.js +1 -57
  840. package/icons/azure/storage-queue.js +1 -24
  841. package/icons/azure/storage-sync-services.js +1 -74
  842. package/icons/azure/stream-analytics-jobs.js +1 -53
  843. package/icons/azure/subnet.js +1 -43
  844. package/icons/azure/subscriptions.js +1 -41
  845. package/icons/azure/system-topic.js +1 -182
  846. package/icons/azure/table.js +1 -23
  847. package/icons/azure/tag.js +1 -28
  848. package/icons/azure/tags.js +1 -46
  849. package/icons/azure/targets-management.js +1 -54
  850. package/icons/azure/template-specs.js +1 -67
  851. package/icons/azure/templates.js +1 -33
  852. package/icons/azure/tenant-properties.js +1 -90
  853. package/icons/azure/tenant-status.js +1 -40
  854. package/icons/azure/test-base.js +1 -56
  855. package/icons/azure/tfs-vc-repository.js +1 -97
  856. package/icons/azure/time-series-data-sets.js +1 -63
  857. package/icons/azure/time-series-insights-access-policies.js +1 -42
  858. package/icons/azure/time-series-insights-environments.js +1 -39
  859. package/icons/azure/time-series-insights-event-sources.js +1 -57
  860. package/icons/azure/toolbox.js +1 -26
  861. package/icons/azure/traffic-manager-profiles.js +1 -47
  862. package/icons/azure/translator-text.js +1 -75
  863. package/icons/azure/troubleshoot.js +1 -38
  864. package/icons/azure/universal-print.js +1 -74
  865. package/icons/azure/update-management-center.js +1 -135
  866. package/icons/azure/updates.js +1 -47
  867. package/icons/azure/user-privacy.js +1 -55
  868. package/icons/azure/user-settings.js +1 -68
  869. package/icons/azure/user-subscriptions.js +1 -104
  870. package/icons/azure/users.js +1 -26
  871. package/icons/azure/verifiable-credentials.js +1 -99
  872. package/icons/azure/verification-as-a-service.js +1 -84
  873. package/icons/azure/versions.js +1 -24
  874. package/icons/azure/video-analyzers.js +1 -42
  875. package/icons/azure/virtual-clusters.js +1 -99
  876. package/icons/azure/virtual-enclaves.js +1 -40
  877. package/icons/azure/virtual-instance-for-sap.js +1 -81
  878. package/icons/azure/virtual-machine.js +1 -52
  879. package/icons/azure/virtual-machines-classic.js +1 -53
  880. package/icons/azure/virtual-network-gateways.js +1 -56
  881. package/icons/azure/virtual-networks-classic.js +1 -86
  882. package/icons/azure/virtual-networks.js +1 -86
  883. package/icons/azure/virtual-router.js +1 -29
  884. package/icons/azure/virtual-visits-builder.js +1 -81
  885. package/icons/azure/virtual-wan-hub.js +1 -72
  886. package/icons/azure/virtual-wans.js +1 -60
  887. package/icons/azure/vm-app-definitions.js +1 -66
  888. package/icons/azure/vm-app-versions.js +1 -91
  889. package/icons/azure/vm-image-version.js +1 -103
  890. package/icons/azure/vm-images-classic.js +1 -60
  891. package/icons/azure/vm-scale-sets.js +1 -60
  892. package/icons/azure/wac-installer.js +1 -121
  893. package/icons/azure/wac.js +1 -56
  894. package/icons/azure/web-app-database.js +1 -177
  895. package/icons/azure/web-application-firewall-policies-waf.js +1 -97
  896. package/icons/azure/web-jobs.js +1 -119
  897. package/icons/azure/web-slots.js +1 -30
  898. package/icons/azure/web-test.js +1 -122
  899. package/icons/azure/website-power.js +1 -90
  900. package/icons/azure/website-staging.js +1 -24
  901. package/icons/azure/windows-notification-services.js +1 -78
  902. package/icons/azure/windows10-core-services.js +1 -61
  903. package/icons/azure/workbooks.js +1 -38
  904. package/icons/azure/worker-container-app.js +1 -91
  905. package/icons/azure/workflow.js +1 -47
  906. package/icons/azure/workspace-gateway.js +1 -86
  907. package/icons/azure/workspaces.js +1 -58
  908. package/icons/gcp/access-context-manager.js +1 -17
  909. package/icons/gcp/administration.js +1 -46
  910. package/icons/gcp/advanced-agent-modeling.js +1 -31
  911. package/icons/gcp/advanced-solutions-lab.js +1 -84
  912. package/icons/gcp/agent-assist.js +1 -12
  913. package/icons/gcp/ai-hub.js +1 -23
  914. package/icons/gcp/ai-platform-unified.js +1 -40
  915. package/icons/gcp/ai-platform.js +1 -23
  916. package/icons/gcp/analytics-hub.js +1 -28
  917. package/icons/gcp/anthos-config-management.js +1 -28
  918. package/icons/gcp/anthos-service-mesh.js +1 -13
  919. package/icons/gcp/anthos.js +1 -11
  920. package/icons/gcp/api-analytics.js +1 -26
  921. package/icons/gcp/api-monetization.js +1 -23
  922. package/icons/gcp/api.js +1 -29
  923. package/icons/gcp/apigee-api-platform.js +1 -35
  924. package/icons/gcp/apigee-sense.js +1 -28
  925. package/icons/gcp/app-engine.js +1 -39
  926. package/icons/gcp/artifact-registry.js +1 -33
  927. package/icons/gcp/asset-inventory.js +1 -19
  928. package/icons/gcp/assured-workloads.js +1 -38
  929. package/icons/gcp/auto-ml-natural-language.js +1 -9
  930. package/icons/gcp/auto-ml-tables.js +1 -19
  931. package/icons/gcp/auto-ml-translation.js +1 -25
  932. package/icons/gcp/auto-ml-video-intelligence.js +1 -25
  933. package/icons/gcp/auto-ml-vision.js +1 -18
  934. package/icons/gcp/auto-ml.js +1 -14
  935. package/icons/gcp/bare-metal-solutions.js +1 -10
  936. package/icons/gcp/batch.js +1 -12
  937. package/icons/gcp/beyondcorp.js +1 -13
  938. package/icons/gcp/big-query.js +1 -28
  939. package/icons/gcp/bigtable.js +1 -116
  940. package/icons/gcp/billing.js +1 -34
  941. package/icons/gcp/binary-authorization.js +1 -22
  942. package/icons/gcp/catalog.js +1 -29
  943. package/icons/gcp/certificate-authority-service.js +1 -33
  944. package/icons/gcp/certificate-manager.js +1 -24
  945. package/icons/gcp/cloud-api-gateway.js +1 -13
  946. package/icons/gcp/cloud-apis.js +1 -18
  947. package/icons/gcp/cloud-armor.js +1 -27
  948. package/icons/gcp/cloud-asset-inventory.js +1 -10
  949. package/icons/gcp/cloud-audit-logs.js +1 -60
  950. package/icons/gcp/cloud-build.js +1 -19
  951. package/icons/gcp/cloud-cdn.js +1 -22
  952. package/icons/gcp/cloud-code.js +1 -16
  953. package/icons/gcp/cloud-composer.js +1 -19
  954. package/icons/gcp/cloud-data-fusion.js +1 -15
  955. package/icons/gcp/cloud-deploy.js +1 -10
  956. package/icons/gcp/cloud-deployment-manager.js +1 -24
  957. package/icons/gcp/cloud-dns.js +1 -21
  958. package/icons/gcp/cloud-domains.js +1 -26
  959. package/icons/gcp/cloud-ekm.js +1 -13
  960. package/icons/gcp/cloud-endpoints.js +1 -26
  961. package/icons/gcp/cloud-external-ip-addresses.js +1 -21
  962. package/icons/gcp/cloud-firewall-rules.js +1 -15
  963. package/icons/gcp/cloud-for-marketing.js +1 -13
  964. package/icons/gcp/cloud-functions.js +1 -45
  965. package/icons/gcp/cloud-generic.js +1 -13
  966. package/icons/gcp/cloud-gpu.js +1 -18
  967. package/icons/gcp/cloud-healthcare-api.js +1 -65
  968. package/icons/gcp/cloud-healthcare-marketplace.js +1 -10
  969. package/icons/gcp/cloud-hsm.js +1 -43
  970. package/icons/gcp/cloud-ids.js +1 -42
  971. package/icons/gcp/cloud-inference-api.js +1 -27
  972. package/icons/gcp/cloud-interconnect.js +1 -15
  973. package/icons/gcp/cloud-jobs-api.js +1 -37
  974. package/icons/gcp/cloud-load-balancing.js +1 -20
  975. package/icons/gcp/cloud-logging.js +1 -35
  976. package/icons/gcp/cloud-media-edge.js +1 -23
  977. package/icons/gcp/cloud-monitoring.js +1 -26
  978. package/icons/gcp/cloud-nat.js +1 -31
  979. package/icons/gcp/cloud-natural-language-api.js +1 -40
  980. package/icons/gcp/cloud-network.js +1 -23
  981. package/icons/gcp/cloud-ops.js +1 -32
  982. package/icons/gcp/cloud-optimization-ai-fleet-routing-api.js +1 -34
  983. package/icons/gcp/cloud-optimization-ai.js +1 -28
  984. package/icons/gcp/cloud-router.js +1 -13
  985. package/icons/gcp/cloud-routes.js +1 -18
  986. package/icons/gcp/cloud-run-for-anthos.js +1 -21
  987. package/icons/gcp/cloud-run.js +1 -13
  988. package/icons/gcp/cloud-scheduler.js +1 -49
  989. package/icons/gcp/cloud-security-scanner.js +1 -21
  990. package/icons/gcp/cloud-shell.js +1 -16
  991. package/icons/gcp/cloud-spanner.js +1 -42
  992. package/icons/gcp/cloud-sql.js +1 -16
  993. package/icons/gcp/cloud-storage.js +1 -22
  994. package/icons/gcp/cloud-tasks.js +1 -101
  995. package/icons/gcp/cloud-test-lab.js +1 -39
  996. package/icons/gcp/cloud-tpu.js +1 -141
  997. package/icons/gcp/cloud-translation-api.js +1 -16
  998. package/icons/gcp/cloud-vision-api.js +1 -40
  999. package/icons/gcp/cloud-vpn.js +1 -23
  1000. package/icons/gcp/compute-engine.js +1 -23
  1001. package/icons/gcp/configuration-management.js +1 -22
  1002. package/icons/gcp/connectivity-test.js +1 -6
  1003. package/icons/gcp/connectors.js +1 -13
  1004. package/icons/gcp/contact-center-ai.js +1 -6
  1005. package/icons/gcp/container-optimized-os.js +1 -13
  1006. package/icons/gcp/container-registry.js +1 -118
  1007. package/icons/gcp/data-catalog.js +1 -25
  1008. package/icons/gcp/data-labeling.js +1 -31
  1009. package/icons/gcp/data-layers.js +1 -11
  1010. package/icons/gcp/data-loss-prevention-api.js +1 -60
  1011. package/icons/gcp/data-qn-a.js +1 -24
  1012. package/icons/gcp/data-studio.js +1 -28
  1013. package/icons/gcp/data-transfer.js +1 -17
  1014. package/icons/gcp/database-migration-service.js +1 -24
  1015. package/icons/gcp/dataflow.js +1 -50
  1016. package/icons/gcp/datalab.js +1 -13
  1017. package/icons/gcp/dataplex.js +1 -15
  1018. package/icons/gcp/datapol.js +1 -70
  1019. package/icons/gcp/dataprep.js +1 -25
  1020. package/icons/gcp/dataproc-metastore.js +1 -12
  1021. package/icons/gcp/dataproc.js +1 -43
  1022. package/icons/gcp/datashare.js +1 -37
  1023. package/icons/gcp/datastore.js +1 -39
  1024. package/icons/gcp/datastream.js +1 -35
  1025. package/icons/gcp/debugger.js +1 -31
  1026. package/icons/gcp/developer-portal.js +1 -24
  1027. package/icons/gcp/dialogflow-cx.js +1 -28
  1028. package/icons/gcp/dialogflow-insights.js +1 -33
  1029. package/icons/gcp/dialogflow.js +1 -16
  1030. package/icons/gcp/document-ai.js +1 -27
  1031. package/icons/gcp/early-access-center.js +1 -12
  1032. package/icons/gcp/error-reporting.js +1 -42
  1033. package/icons/gcp/eventarc.js +1 -24
  1034. package/icons/gcp/filestore.js +1 -22
  1035. package/icons/gcp/financial-services-marketplace.js +1 -21
  1036. package/icons/gcp/firestore.js +1 -30
  1037. package/icons/gcp/fleet-engine.js +1 -10
  1038. package/icons/gcp/free-trial.js +1 -36
  1039. package/icons/gcp/game-servers.js +1 -32
  1040. package/icons/gcp/gce-systems-management.js +1 -13
  1041. package/icons/gcp/genomics.js +1 -23
  1042. package/icons/gcp/gke-on-prem.js +1 -31
  1043. package/icons/gcp/google-cloud-marketplace.js +1 -29
  1044. package/icons/gcp/google-kubernetes-engine.js +1 -23
  1045. package/icons/gcp/google-maps-platform.js +1 -47
  1046. package/icons/gcp/healthcare-nlp-api.js +1 -13
  1047. package/icons/gcp/home.js +1 -25
  1048. package/icons/gcp/identity-and-access-management.js +1 -23
  1049. package/icons/gcp/identity-aware-proxy.js +1 -32
  1050. package/icons/gcp/identity-platform.js +1 -26
  1051. package/icons/gcp/iot-core.js +1 -23
  1052. package/icons/gcp/iot-edge.js +1 -86
  1053. package/icons/gcp/key-access-justifications.js +1 -46
  1054. package/icons/gcp/key-management-service.js +1 -23
  1055. package/icons/gcp/kuberun.js +1 -26
  1056. package/icons/gcp/launcher.js +1 -35
  1057. package/icons/gcp/local-ssd.js +1 -13
  1058. package/icons/gcp/looker.js +1 -46
  1059. package/icons/gcp/managed-service-for-microsoft-active-directory.js +1 -59
  1060. package/icons/gcp/media-translation-api.js +1 -28
  1061. package/icons/gcp/memorystore.js +1 -26
  1062. package/icons/gcp/migrate-for-anthos.js +1 -13
  1063. package/icons/gcp/migrate-for-compute-engine.js +1 -13
  1064. package/icons/gcp/my-cloud.js +1 -21
  1065. package/icons/gcp/network-connectivity-center.js +1 -84
  1066. package/icons/gcp/network-intelligence-center.js +1 -13
  1067. package/icons/gcp/network-security.js +1 -38
  1068. package/icons/gcp/network-tiers.js +1 -53
  1069. package/icons/gcp/network-topology.js +1 -13
  1070. package/icons/gcp/onboarding.js +1 -25
  1071. package/icons/gcp/os-configuration-management.js +1 -13
  1072. package/icons/gcp/os-inventory-management.js +1 -15
  1073. package/icons/gcp/os-patch-management.js +1 -13
  1074. package/icons/gcp/partner-interconnect.js +1 -21
  1075. package/icons/gcp/partner-portal.js +1 -35
  1076. package/icons/gcp/performance-dashboard.js +1 -13
  1077. package/icons/gcp/permissions.js +1 -35
  1078. package/icons/gcp/persistent-disk.js +1 -10
  1079. package/icons/gcp/phishing-protection.js +1 -48
  1080. package/icons/gcp/policy-analyzer.js +1 -13
  1081. package/icons/gcp/premium-network-tier.js +1 -19
  1082. package/icons/gcp/private-connectivity.js +1 -18
  1083. package/icons/gcp/private-service-connect.js +1 -27
  1084. package/icons/gcp/producer-portal.js +1 -21
  1085. package/icons/gcp/profiler.js +1 -29
  1086. package/icons/gcp/project.js +1 -28
  1087. package/icons/gcp/pub-sub.js +1 -41
  1088. package/icons/gcp/quantum-engine.js +1 -27
  1089. package/icons/gcp/quotas.js +1 -42
  1090. package/icons/gcp/real-world-insights.js +1 -19
  1091. package/icons/gcp/recommendations-ai.js +1 -56
  1092. package/icons/gcp/release-notes.js +1 -12
  1093. package/icons/gcp/retail-api.js +1 -22
  1094. package/icons/gcp/risk-manager.js +1 -12
  1095. package/icons/gcp/runtime-config.js +1 -35
  1096. package/icons/gcp/secret-manager.js +1 -13
  1097. package/icons/gcp/security-command-center.js +1 -18
  1098. package/icons/gcp/security-health-advisor.js +1 -61
  1099. package/icons/gcp/security-key-enforcement.js +1 -21
  1100. package/icons/gcp/security.js +1 -27
  1101. package/icons/gcp/service-discovery.js +1 -36
  1102. package/icons/gcp/speech-to-text.js +1 -93
  1103. package/icons/gcp/stackdriver.js +1 -10
  1104. package/icons/gcp/standard-network-tier.js +1 -13
  1105. package/icons/gcp/stream-suite.js +1 -16
  1106. package/icons/gcp/support.js +1 -29
  1107. package/icons/gcp/tensorflow-enterprise.js +1 -13
  1108. package/icons/gcp/text-to-speech.js +1 -24
  1109. package/icons/gcp/tools-for-powershell.js +1 -29
  1110. package/icons/gcp/trace.js +1 -17
  1111. package/icons/gcp/traffic-director.js +1 -44
  1112. package/icons/gcp/transfer-appliance.js +1 -32
  1113. package/icons/gcp/transfer.js +1 -13
  1114. package/icons/gcp/user-preferences.js +1 -35
  1115. package/icons/gcp/vertex-ai.js +1 -48
  1116. package/icons/gcp/video-intelligence-api.js +1 -15
  1117. package/icons/gcp/virtual-private-cloud.js +1 -25
  1118. package/icons/gcp/visual-inspection.js +1 -24
  1119. package/icons/gcp/vmware-engine.js +1 -13
  1120. package/icons/gcp/web-risk.js +1 -55
  1121. package/icons/gcp/web-security-scanner.js +1 -27
  1122. package/icons/gcp/workflows.js +1 -82
  1123. package/icons/gcp/workload-identity-pool.js +1 -24
  1124. package/icons/tech/aarch64.js +1 -48
  1125. package/icons/tech/adobe-illustrator.js +1 -14
  1126. package/icons/tech/adobe-photoshop.js +1 -14
  1127. package/icons/tech/adobe-premiere-pro.js +1 -16
  1128. package/icons/tech/adobe-xd.js +1 -12
  1129. package/icons/tech/adonis-js.js +1 -14
  1130. package/icons/tech/after-effects.js +1 -16
  1131. package/icons/tech/airflow.js +1 -64
  1132. package/icons/tech/akka.js +1 -21
  1133. package/icons/tech/algolia.js +1 -12
  1134. package/icons/tech/alpine-js.js +1 -17
  1135. package/icons/tech/amazon-web-services.js +1 -21
  1136. package/icons/tech/anaconda.js +1 -12
  1137. package/icons/tech/android-studio.js +1 -44
  1138. package/icons/tech/android.js +1 -35
  1139. package/icons/tech/angular-js.js +1 -24
  1140. package/icons/tech/angular.js +1 -37
  1141. package/icons/tech/ansible.js +1 -15
  1142. package/icons/tech/ant-design.js +1 -112
  1143. package/icons/tech/apache.js +1 -222
  1144. package/icons/tech/apl.js +1 -21
  1145. package/icons/tech/appcelerator.js +1 -12
  1146. package/icons/tech/apple-safari.js +1 -39
  1147. package/icons/tech/apple.js +1 -6
  1148. package/icons/tech/appwrite.js +1 -21
  1149. package/icons/tech/arch-linux.js +1 -29
  1150. package/icons/tech/arduino.js +1 -9
  1151. package/icons/tech/argo-cd.js +1 -134
  1152. package/icons/tech/astro.js +1 -62
  1153. package/icons/tech/atom.js +1 -14
  1154. package/icons/tech/autodesk-maya.js +1 -144
  1155. package/icons/tech/autodesk-shot-grid.js +1 -15
  1156. package/icons/tech/awk.js +1 -34
  1157. package/icons/tech/azios.js +1 -12
  1158. package/icons/tech/azure-devops.js +1 -33
  1159. package/icons/tech/azure-sql-database.js +1 -95
  1160. package/icons/tech/azure.js +1 -55
  1161. package/icons/tech/babel.js +1 -15
  1162. package/icons/tech/backbone-js.js +1 -16
  1163. package/icons/tech/ballerina.js +1 -12
  1164. package/icons/tech/bamboo.js +1 -62
  1165. package/icons/tech/bash.js +1 -22
  1166. package/icons/tech/behance.js +1 -19
  1167. package/icons/tech/bitbucket.js +1 -37
  1168. package/icons/tech/blender.js +1 -21
  1169. package/icons/tech/bootstrap.js +1 -78
  1170. package/icons/tech/bower.js +1 -123
  1171. package/icons/tech/browserstack.js +1 -77
  1172. package/icons/tech/bulma.js +1 -6
  1173. package/icons/tech/bun.js +1 -68
  1174. package/icons/tech/c.js +1 -28
  1175. package/icons/tech/cairo-graphics.js +1 -21
  1176. package/icons/tech/cake-php.js +1 -12
  1177. package/icons/tech/canva.js +1 -9
  1178. package/icons/tech/capacitor.js +1 -25
  1179. package/icons/tech/cassandra.js +1 -101
  1180. package/icons/tech/cent-os.js +1 -22
  1181. package/icons/tech/chrome.js +1 -156
  1182. package/icons/tech/circle-ci.js +1 -12
  1183. package/icons/tech/clarity.js +1 -35
  1184. package/icons/tech/clion.js +1 -98
  1185. package/icons/tech/clojure-script.js +1 -39
  1186. package/icons/tech/clojure.js +1 -42
  1187. package/icons/tech/cloudflare-workers.js +1 -196
  1188. package/icons/tech/cloudflare.js +1 -22
  1189. package/icons/tech/cmake.js +1 -11
  1190. package/icons/tech/code-igniter.js +1 -12
  1191. package/icons/tech/code-pen.js +1 -12
  1192. package/icons/tech/codeac.js +1 -12
  1193. package/icons/tech/codecov.js +1 -12
  1194. package/icons/tech/coffee-script.js +1 -12
  1195. package/icons/tech/composer.js +1 -59
  1196. package/icons/tech/confluence.js +1 -57
  1197. package/icons/tech/consul.js +1 -12
  1198. package/icons/tech/contao.js +1 -15
  1199. package/icons/tech/corejs.js +1 -6
  1200. package/icons/tech/cosmosdb.js +1 -52
  1201. package/icons/tech/couchdb.js +1 -12
  1202. package/icons/tech/cplusplus.js +1 -35
  1203. package/icons/tech/crystal.js +1 -12
  1204. package/icons/tech/csharp.js +1 -28
  1205. package/icons/tech/css3.js +1 -25
  1206. package/icons/tech/cucumber.js +1 -12
  1207. package/icons/tech/cypress.js +1 -34
  1208. package/icons/tech/d3js.js +1 -145
  1209. package/icons/tech/dart.js +1 -24
  1210. package/icons/tech/data-grip.js +1 -109
  1211. package/icons/tech/data-spell.js +1 -102
  1212. package/icons/tech/dbeaver.js +1 -56
  1213. package/icons/tech/debian.js +1 -12
  1214. package/icons/tech/deno.js +1 -6
  1215. package/icons/tech/devicon.js +1 -25
  1216. package/icons/tech/digital-ocean.js +1 -9
  1217. package/icons/tech/discord-js.js +1 -56
  1218. package/icons/tech/django-rest.js +1 -35
  1219. package/icons/tech/django.js +1 -9
  1220. package/icons/tech/docker.js +1 -133
  1221. package/icons/tech/doctrine.js +1 -21
  1222. package/icons/tech/dropwizard.js +1 -70
  1223. package/icons/tech/drupal.js +1 -56
  1224. package/icons/tech/eclipse-ceylon.js +1 -44
  1225. package/icons/tech/eclipse-ide.js +1 -99
  1226. package/icons/tech/eclipse-vert-x.js +1 -29
  1227. package/icons/tech/elasticbeats.js +1 -22
  1228. package/icons/tech/elasticsearch.js +1 -28
  1229. package/icons/tech/electron.js +1 -11
  1230. package/icons/tech/eleventy-11ty.js +1 -15
  1231. package/icons/tech/elixir.js +1 -211
  1232. package/icons/tech/elm.js +1 -19
  1233. package/icons/tech/embedded-c.js +1 -42
  1234. package/icons/tech/ember-js.js +1 -16
  1235. package/icons/tech/envoy.js +1 -28
  1236. package/icons/tech/erlang.js +1 -12
  1237. package/icons/tech/eslint.js +1 -21
  1238. package/icons/tech/express.js +1 -6
  1239. package/icons/tech/facebook.js +1 -15
  1240. package/icons/tech/fast-api.js +1 -12
  1241. package/icons/tech/fastify.js +1 -15
  1242. package/icons/tech/fauna.js +1 -12
  1243. package/icons/tech/feathers.js +1 -6
  1244. package/icons/tech/fedora.js +1 -53
  1245. package/icons/tech/figma.js +1 -24
  1246. package/icons/tech/file-zilla.js +1 -29
  1247. package/icons/tech/firebase.js +1 -12
  1248. package/icons/tech/firefox.js +1 -1405
  1249. package/icons/tech/flask.js +1 -12
  1250. package/icons/tech/flutter.js +1 -16
  1251. package/icons/tech/fortran.js +1 -15
  1252. package/icons/tech/foundation.js +1 -240
  1253. package/icons/tech/fsharp.js +1 -10
  1254. package/icons/tech/gatling.js +1 -12
  1255. package/icons/tech/gatsby.js +1 -12
  1256. package/icons/tech/gazebo.js +1 -23
  1257. package/icons/tech/gcc.js +1 -44
  1258. package/icons/tech/gentoo.js +1 -14
  1259. package/icons/tech/ghost.js +1 -27
  1260. package/icons/tech/gimp.js +1 -382
  1261. package/icons/tech/git.js +1 -12
  1262. package/icons/tech/gitbook.js +1 -13
  1263. package/icons/tech/github-actions.js +1 -21
  1264. package/icons/tech/github-codespaces.js +1 -85
  1265. package/icons/tech/github.js +1 -16
  1266. package/icons/tech/gitlab.js +1 -35
  1267. package/icons/tech/gitpod.js +1 -32
  1268. package/icons/tech/gitter.js +1 -6
  1269. package/icons/tech/gnu-emacs.js +1 -15
  1270. package/icons/tech/go-land.js +1 -88
  1271. package/icons/tech/go.js +1 -294
  1272. package/icons/tech/godot-engine.js +1 -56
  1273. package/icons/tech/google-cloud.js +1 -29
  1274. package/icons/tech/google.js +1 -42
  1275. package/icons/tech/gradle.js +1 -12
  1276. package/icons/tech/grafana.js +1 -30
  1277. package/icons/tech/grails.js +1 -21
  1278. package/icons/tech/graphql.js +1 -15
  1279. package/icons/tech/groovy.js +1 -715
  1280. package/icons/tech/grunt-js.js +1 -260
  1281. package/icons/tech/gulp-js.js +1 -14
  1282. package/icons/tech/hadoop.js +1 -36
  1283. package/icons/tech/handlebars.js +1 -9
  1284. package/icons/tech/hardhat.js +1 -98
  1285. package/icons/tech/harvester.js +1 -10
  1286. package/icons/tech/hashicorp-vault.js +1 -12
  1287. package/icons/tech/haskell.js +1 -10
  1288. package/icons/tech/haxe.js +1 -17
  1289. package/icons/tech/helm.js +1 -12
  1290. package/icons/tech/heroku.js +1 -12
  1291. package/icons/tech/hibernate.js +1 -15
  1292. package/icons/tech/homebrew.js +1 -36
  1293. package/icons/tech/html5.js +1 -23
  1294. package/icons/tech/hugo.js +1 -22
  1295. package/icons/tech/ibm-spss-statistics.js +1 -21
  1296. package/icons/tech/ie10.js +1 -12
  1297. package/icons/tech/ifttt.js +1 -6
  1298. package/icons/tech/influxdb.js +1 -14
  1299. package/icons/tech/inkscape.js +1 -573
  1300. package/icons/tech/insomnia.js +1 -44
  1301. package/icons/tech/intellij-idea.js +1 -92
  1302. package/icons/tech/ionic.js +1 -9
  1303. package/icons/tech/jaeger.js +1 -102
  1304. package/icons/tech/jamstack.js +1 -12
  1305. package/icons/tech/jasmine.js +1 -10
  1306. package/icons/tech/java.js +1 -42
  1307. package/icons/tech/javascript.js +1 -15
  1308. package/icons/tech/jeet.js +1 -163
  1309. package/icons/tech/jekyll.js +1 -232
  1310. package/icons/tech/jenkins.js +1 -126
  1311. package/icons/tech/jest.js +1 -12
  1312. package/icons/tech/jetbrains.js +1 -118
  1313. package/icons/tech/jira-align.js +1 -57
  1314. package/icons/tech/jira.js +1 -62
  1315. package/icons/tech/jquery.js +1 -12
  1316. package/icons/tech/json.js +1 -57
  1317. package/icons/tech/jule.js +1 -12
  1318. package/icons/tech/julia.js +1 -49
  1319. package/icons/tech/junit.js +1 -30
  1320. package/icons/tech/jupyter.js +1 -35
  1321. package/icons/tech/k3os.js +1 -6
  1322. package/icons/tech/k3s.js +1 -12
  1323. package/icons/tech/kafka.js +1 -12
  1324. package/icons/tech/kaggle.js +1 -12
  1325. package/icons/tech/karate.js +1 -15
  1326. package/icons/tech/karma.js +1 -21
  1327. package/icons/tech/keras.js +1 -15
  1328. package/icons/tech/kibana.js +1 -10
  1329. package/icons/tech/knex-js.js +1 -12
  1330. package/icons/tech/knockout.js +1 -13
  1331. package/icons/tech/kotlin.js +1 -25
  1332. package/icons/tech/krakenjs.js +1 -14
  1333. package/icons/tech/ktor.js +1 -48
  1334. package/icons/tech/kubernetes.js +1 -10
  1335. package/icons/tech/labview.js +1 -69
  1336. package/icons/tech/laravel.js +1 -15
  1337. package/icons/tech/latex.js +1 -12
  1338. package/icons/tech/less-js.js +1 -14
  1339. package/icons/tech/linkedin.js +1 -21
  1340. package/icons/tech/linux.js +1 -5267
  1341. package/icons/tech/liquibase.js +1 -12
  1342. package/icons/tech/livewire.js +1 -79
  1343. package/icons/tech/llvm.js +1 -36
  1344. package/icons/tech/logstash.js +1 -10
  1345. package/icons/tech/lua.js +1 -28
  1346. package/icons/tech/lumen.js +1 -12
  1347. package/icons/tech/magento.js +1 -12
  1348. package/icons/tech/markdown.js +1 -44
  1349. package/icons/tech/material-ui.js +1 -11
  1350. package/icons/tech/materialize.js +1 -21
  1351. package/icons/tech/matlab.js +1 -73
  1352. package/icons/tech/matplotlib.js +1 -182
  1353. package/icons/tech/maven.js +1 -620
  1354. package/icons/tech/meteor-js.js +1 -12
  1355. package/icons/tech/microsoft-sql-server.js +1 -6
  1356. package/icons/tech/minitab.js +1 -45
  1357. package/icons/tech/mob-x.js +1 -57
  1358. package/icons/tech/mocha.js +1 -21
  1359. package/icons/tech/modx.js +1 -18
  1360. package/icons/tech/moleculer.js +1 -12
  1361. package/icons/tech/mongodb.js +1 -135
  1362. package/icons/tech/mongoose-js.js +1 -29
  1363. package/icons/tech/moodle.js +1 -145
  1364. package/icons/tech/ms-dos.js +1 -78
  1365. package/icons/tech/mysql.js +1 -12
  1366. package/icons/tech/nano.js +1 -12
  1367. package/icons/tech/nerog.js +1 -136
  1368. package/icons/tech/nestjs.js +1 -12
  1369. package/icons/tech/net-core.js +1 -9
  1370. package/icons/tech/net.js +1 -551
  1371. package/icons/tech/network-x.js +1 -58
  1372. package/icons/tech/new4j.js +1 -21
  1373. package/icons/tech/nextjs.js +1 -6
  1374. package/icons/tech/nginx.js +1 -12
  1375. package/icons/tech/nhibernate.js +1 -21
  1376. package/icons/tech/nim.js +1 -29
  1377. package/icons/tech/nimble.js +1 -84
  1378. package/icons/tech/nix.js +1 -25
  1379. package/icons/tech/nodejs.js +1 -12
  1380. package/icons/tech/nodemon.js +1 -21
  1381. package/icons/tech/nodewebkit.js +1 -42
  1382. package/icons/tech/npm.js +1 -12
  1383. package/icons/tech/nuget.js +1 -12
  1384. package/icons/tech/num-py.js +1 -29
  1385. package/icons/tech/nuxt-js.js +1 -28
  1386. package/icons/tech/objective-c.js +1 -9
  1387. package/icons/tech/ocaml.js +1 -96
  1388. package/icons/tech/oh-my-zsh.js +1 -38
  1389. package/icons/tech/okta.js +1 -21
  1390. package/icons/tech/open-al.js +1 -22
  1391. package/icons/tech/open-api.js +1 -139
  1392. package/icons/tech/open-cl.js +1 -42
  1393. package/icons/tech/open-cv.js +1 -28
  1394. package/icons/tech/open-gl.js +1 -35
  1395. package/icons/tech/open-stack.js +1 -12
  1396. package/icons/tech/open-suse.js +1 -15
  1397. package/icons/tech/open-telemetry.js +1 -21
  1398. package/icons/tech/opera.js +1 -32
  1399. package/icons/tech/oracle.js +1 -12
  1400. package/icons/tech/p5js.js +1 -12
  1401. package/icons/tech/packer.js +1 -15
  1402. package/icons/tech/pandas.js +1 -62
  1403. package/icons/tech/perl.js +1 -21
  1404. package/icons/tech/pf-sense.js +1 -6
  1405. package/icons/tech/phalcon.js +1 -32
  1406. package/icons/tech/phoenix-framework.js +1 -12
  1407. package/icons/tech/photon-engine.js +1 -41
  1408. package/icons/tech/php-storm.js +1 -105
  1409. package/icons/tech/php.js +1 -62
  1410. package/icons/tech/playwrite.js +1 -56
  1411. package/icons/tech/ploty.js +1 -28
  1412. package/icons/tech/podman.js +1 -150
  1413. package/icons/tech/polygon.js +1 -15
  1414. package/icons/tech/portainer.js +1 -12
  1415. package/icons/tech/postcss.js +1 -28
  1416. package/icons/tech/postgresql.js +1 -23
  1417. package/icons/tech/postman.js +1 -28
  1418. package/icons/tech/powershell.js +1 -79
  1419. package/icons/tech/processing.js +1 -201
  1420. package/icons/tech/prometheus.js +1 -12
  1421. package/icons/tech/protractor.js +1 -12
  1422. package/icons/tech/purescript.js +1 -16
  1423. package/icons/tech/putty.js +1 -56
  1424. package/icons/tech/pycharm.js +1 -81
  1425. package/icons/tech/pyscript.js +1 -15
  1426. package/icons/tech/pytest.js +1 -21
  1427. package/icons/tech/python-poetry.js +1 -155
  1428. package/icons/tech/python.js +1 -78
  1429. package/icons/tech/pytorch.js +1 -15
  1430. package/icons/tech/qodana.js +1 -52
  1431. package/icons/tech/qt.js +1 -12
  1432. package/icons/tech/quarkus.js +1 -23
  1433. package/icons/tech/quasar.js +1 -15
  1434. package/icons/tech/qwik.js +1 -37
  1435. package/icons/tech/r.js +1 -57
  1436. package/icons/tech/rabbitmq.js +1 -12
  1437. package/icons/tech/rancher.js +1 -6
  1438. package/icons/tech/raspberrypi.js +1 -28
  1439. package/icons/tech/reach.js +1 -27
  1440. package/icons/tech/react-bootstrap.js +1 -12
  1441. package/icons/tech/react.js +1 -9
  1442. package/icons/tech/realm.js +1 -63
  1443. package/icons/tech/red-cube-s-epic-compiler-thingy-programming-re-ct.js +1 -17
  1444. package/icons/tech/redhat.js +1 -22
  1445. package/icons/tech/redis.js +1 -59
  1446. package/icons/tech/redux.js +1 -12
  1447. package/icons/tech/ren-py.js +1 -547
  1448. package/icons/tech/rider.js +1 -38
  1449. package/icons/tech/robot-operating-system-ros.js +1 -15
  1450. package/icons/tech/rocksdb.js +1 -9
  1451. package/icons/tech/rollup-js.js +1 -155
  1452. package/icons/tech/rspec.js +1 -35
  1453. package/icons/tech/rstudio.js +1 -30
  1454. package/icons/tech/ruby-mine.js +1 -52
  1455. package/icons/tech/ruby-on-rails.js +1 -14
  1456. package/icons/tech/ruby.js +1 -359
  1457. package/icons/tech/rust.js +1 -6
  1458. package/icons/tech/salesforce.js +1 -28
  1459. package/icons/tech/sanity.js +1 -22
  1460. package/icons/tech/sass.js +1 -14
  1461. package/icons/tech/scala.js +1 -21
  1462. package/icons/tech/scalingo.js +1 -29
  1463. package/icons/tech/sdl.js +1 -42
  1464. package/icons/tech/selenium.js +1 -15
  1465. package/icons/tech/sema-software.js +1 -15
  1466. package/icons/tech/sequelize.js +1 -34
  1467. package/icons/tech/shopware.js +1 -9
  1468. package/icons/tech/sketch.js +1 -14
  1469. package/icons/tech/slack.js +1 -35
  1470. package/icons/tech/socket-io.js +1 -45
  1471. package/icons/tech/solid-js.js +1 -121
  1472. package/icons/tech/solidity.js +1 -13
  1473. package/icons/tech/sonarqube.js +1 -12
  1474. package/icons/tech/sourcetree.js +1 -12
  1475. package/icons/tech/spark.js +1 -12
  1476. package/icons/tech/splunk.js +1 -12
  1477. package/icons/tech/spring.js +1 -12
  1478. package/icons/tech/sql-developer.js +1 -43
  1479. package/icons/tech/sqlalchemy.js +1 -21
  1480. package/icons/tech/sqlite.js +1 -45
  1481. package/icons/tech/ssh.js +1 -12
  1482. package/icons/tech/stackoverflow.js +1 -15
  1483. package/icons/tech/stata.js +1 -12
  1484. package/icons/tech/storybook.js +1 -12
  1485. package/icons/tech/streamlit.js +1 -31
  1486. package/icons/tech/stylus.js +1 -9
  1487. package/icons/tech/subversion.js +1 -12
  1488. package/icons/tech/svelte.js +1 -23
  1489. package/icons/tech/swagger.js +1 -21
  1490. package/icons/tech/swift.js +1 -21
  1491. package/icons/tech/symfony.js +1 -12
  1492. package/icons/tech/tailwind-css.js +1 -12
  1493. package/icons/tech/tauri.js +1 -35
  1494. package/icons/tech/tensorflow.js +1 -12
  1495. package/icons/tech/terraform.js +1 -16
  1496. package/icons/tech/tex.js +1 -6
  1497. package/icons/tech/the-algorithms.js +1 -12
  1498. package/icons/tech/three-js.js +1 -139
  1499. package/icons/tech/titanium-sdk.js +1 -12
  1500. package/icons/tech/tomcat.js +1 -26
  1501. package/icons/tech/tortoise-git.js +1 -37
  1502. package/icons/tech/tower.js +1 -369
  1503. package/icons/tech/traefik-mesh.js +1 -12
  1504. package/icons/tech/traefik-proxy.js +1 -12
  1505. package/icons/tech/travis-ci.js +1 -12
  1506. package/icons/tech/trello.js +1 -12
  1507. package/icons/tech/twitter.js +1 -12
  1508. package/icons/tech/typescript.js +1 -16
  1509. package/icons/tech/typo3.js +1 -12
  1510. package/icons/tech/ubuntu.js +1 -12
  1511. package/icons/tech/uml.js +1 -29
  1512. package/icons/tech/unity.js +1 -22
  1513. package/icons/tech/unix.js +1 -12
  1514. package/icons/tech/unreal-engine.js +1 -9
  1515. package/icons/tech/uwsgi.js +1 -38
  1516. package/icons/tech/v8.js +1 -109
  1517. package/icons/tech/vagrant.js +1 -21
  1518. package/icons/tech/vala.js +1 -57
  1519. package/icons/tech/vercel.js +1 -6
  1520. package/icons/tech/veutify.js +1 -11
  1521. package/icons/tech/vim.js +1 -82
  1522. package/icons/tech/visualstudio.js +1 -12
  1523. package/icons/tech/vite.js +1 -6
  1524. package/icons/tech/vitejs.js +1 -56
  1525. package/icons/tech/vscode.js +1 -114
  1526. package/icons/tech/vsphere.js +1 -25
  1527. package/icons/tech/vue-storefront.js +1 -22
  1528. package/icons/tech/vue.js +1 -16
  1529. package/icons/tech/vyper.js +1 -17
  1530. package/icons/tech/webassembly.js +1 -12
  1531. package/icons/tech/webflow.js +1 -12
  1532. package/icons/tech/weblate.js +1 -80
  1533. package/icons/tech/webpack.js +1 -21
  1534. package/icons/tech/webstorm.js +1 -80
  1535. package/icons/tech/windows11.js +1 -12
  1536. package/icons/tech/windows8.js +1 -12
  1537. package/icons/tech/woo-commerce.js +1 -22
  1538. package/icons/tech/wordpress.js +1 -70
  1539. package/icons/tech/xamarin.js +1 -12
  1540. package/icons/tech/xcode.js +1 -623
  1541. package/icons/tech/xml.js +1 -51
  1542. package/icons/tech/yaml.js +1 -16
  1543. package/icons/tech/yarn.js +1 -9
  1544. package/icons/tech/yii-framework.js +1 -35
  1545. package/icons/tech/yuno-host.js +1 -15
  1546. package/icons/tech/zend-framework.js +1 -14
  1547. package/icons/tech/zig.js +1 -28
  1548. package/package.json +28 -20
  1549. package/react/index.d.mts +3 -1
  1550. package/react/index.mjs +27 -27
  1551. package/dist/shared/likec4.DRjStDbg.mjs +0 -2209
  1552. package/dist/shared/likec4.DwrogUe0.d.mts +0 -10239
@@ -1,101 +1,101 @@
1
1
  #!/usr/bin/env node
2
- import{h as tt,k as Ph,o as at,q as Es,d as Gt,u as ee,w as Ih,r as Th,s as Nh,v as ct,x as sa,y as Ss,z as Rt,t as jh,e as ia,A as oa,c as Lh,L as rt,B as kh,D as nt,E as Dh,F as xh,n as Mh,G as Bt,H as ar,I as Rs,J as aa,K as qh,M as Hh}from"../shared/likec4.DRjStDbg.mjs";import Se,{hrtime as Uh,cwd as As,exit as ca,stdout as Fh,argv as Vh}from"node:process";import{strictEqual as zh,notStrictEqual as Gh}from"assert";import Os,{resolve as Ue,dirname as Cs,normalize as Bh,relative as Wh,extname as Kh,
3
- basename as Yh}from"path";import{statSync as ua,readdirSync as Xh,readFileSync as Ps,writeFile as Jh}from"fs";import la,{format as fa,inspect as Qh}from"util";import{fileURLToPath as Zh}from"url";import me,{resolve as ye,dirname as At,join as cr,relative as Ot,extname as ur,isAbsolute as Is,basename as Dr}from"node:path";import pe,{existsSync as Ct,copyFileSync as da,readdirSync as ep,rmSync as Ts}from"node:fs";import ha,{mkdtemp as xr,writeFile as Pt,mkdir as ut,stat as Ns,copyFile as tp,rm as rp}from"node:fs/promises";
4
- import lr,{tmpdir as Mr}from"node:os";import{fileURLToPath as pa}from"node:url";import js from"@vitejs/plugin-react";import{C as ma,t as Ls,j as ga,e as ya,N as Wt,L as ks,g as np,a as sp}from"../shared/likec4.CYGgfB-B.mjs";import{build as fr,createServer as ip,preview as op}from"vite";import ap from"node:module";import{sortNaturalByFqn as _a,compareNatural as cp,hasAtLeast as up,invariant as Ds,nonexhaustive as $a,delay as va}from"@likec4/core";import{chromium as ba}from"playwright";import lp from"node:net";
5
- import{setTimeout as fp}from"node:timers/promises";import{promisify as Ie,isDeepStrictEqual as dp}from"node:util";import dr from"node:crypto";import hp from"node:assert";import"tty";import"os";import"crypto";import"net";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"boxen";import"node:child_process";import"node:events";import"node:stream/promises";import"fs/promises";
6
- import"@likec4/core/model";const pp={right:vp,center:bp},mp=0,qr=1,gp=2,Hr=3;class yp{constructor(e){var r;this.width=e.width,this.wrap=(r=e.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...e){const r=this.div(...e);r.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);const r=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...e){
2
+ import{h as tt,k as Ih,o as at,q as Dr,d as Gt,u as K,w as Th,r as Nh,s as jh,v as ct,x as ia,y as Ss,z as Lh,A as Rt,t as kh,e as oa,B as aa,c as Dh,L as rt,D as xh,E as nt,F as Mh,G as qh,n as Hh,H as Bt,I as ar,J as Rs,K as ca,M as Uh,O as Fh}from"../shared/likec4.BHE-zBYQ.mjs";import Se,{hrtime as Vh,cwd as As,exit as ua,stdout as zh,argv as Gh}from"node:process";import{strictEqual as Bh,notStrictEqual as Wh}from"assert";import Os,{resolve as Ue,dirname as Cs,normalize as Kh,relative as Yh,extname as Xh,
3
+ basename as Jh}from"path";import{statSync as la,readdirSync as Qh,readFileSync as Ps,writeFile as Zh}from"fs";import fa,{format as da,inspect as ep}from"util";import{fileURLToPath as tp}from"url";import me,{resolve as ye,dirname as At,join as cr,relative as Ot,extname as ur,isAbsolute as Is,basename as xr}from"node:path";import pe,{existsSync as Ct,copyFileSync as ha,readdirSync as rp,rmSync as Ts}from"node:fs";import pa,{mkdtemp as Mr,writeFile as Pt,mkdir as ut,stat as Ns,copyFile as np,rm as sp}from"node:fs/promises";
4
+ import lr,{tmpdir as qr}from"node:os";import{fileURLToPath as ma}from"node:url";import js from"@vitejs/plugin-react";import{C as ga,t as Ls,j as ya,e as _a,N as Wt,L as ks,g as ip,a as op}from"../shared/likec4.CN01ZZwj.mjs";import{build as fr,createServer as ap,preview as cp}from"vite";import up from"node:module";import{sortNaturalByFqn as $a,compareNatural as lp,hasAtLeast as Ds,invariant as xs,nonexhaustive as va,delay as ba}from"@likec4/core";import{chromium as wa}from"playwright";import fp from"node:net";
5
+ import{setTimeout as dp}from"node:timers/promises";import{promisify as Ie,isDeepStrictEqual as hp}from"node:util";import dr from"node:crypto";import pp from"node:assert";import"tty";import"os";import"crypto";import"net";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"boxen";import"node:child_process";import"node:events";import"node:stream/promises";import"fs/promises";
6
+ import"@likec4/core/model";const mp={right:bp,center:wp},gp=0,Hr=1,yp=2,Ur=3;class _p{constructor(e){var r;this.width=e.width,this.wrap=(r=e.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...e){const r=this.div(...e);r.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);const r=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...e){
7
7
  return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const r=e.split(`
8
8
  `).map(s=>s.split(" "));let n=0;return r.forEach(s=>{s.length>1&&ke.stringWidth(s[0])>n&&(n=Math.min(Math.floor(this.width*.5),ke.stringWidth(s[0])))}),r.forEach(s=>{this.div(...s.map((i,o)=>({text:i.trim(),padding:this.measurePadding(i),width:o===0&&s.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const r=ke.stripAnsi(e);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){const e=[];return this.
9
9
  rows.forEach(r=>{this.rowToString(r,e)}),e.filter(r=>!r.hidden).map(r=>r.text).join(`
10
- `)}rowToString(e,r){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{const{width:c}=e[a],l=this.negatePadding(e[a]);let u=o;if(l>ke.stringWidth(o)&&(u+=" ".repeat(l-ke.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){const h=pp[e[a].align];u=h(u,l),ke.stringWidth(u)<l&&(u+=" ".repeat((c||0)-ke.stringWidth(u)-1))}const d=e[a].padding||[0,0,0,0];d[Hr]&&(i+=" ".repeat(d[Hr])),i+=wa(e[a],u,"| "),i+=u,i+=wa(e[a],u," |"),d[qr]&&(i+=" ".repeat(d[qr])),s===0&&r.length>0&&(i=
10
+ `)}rowToString(e,r){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{const{width:u}=e[a],l=this.negatePadding(e[a]);let c=o;if(l>ke.stringWidth(o)&&(c+=" ".repeat(l-ke.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){const h=mp[e[a].align];c=h(c,l),ke.stringWidth(c)<l&&(c+=" ".repeat((u||0)-ke.stringWidth(c)-1))}const d=e[a].padding||[0,0,0,0];d[Ur]&&(i+=" ".repeat(d[Ur])),i+=Ea(e[a],c,"| "),i+=c,i+=Ea(e[a],c," |"),d[Hr]&&(i+=" ".repeat(d[Hr])),s===0&&r.length>0&&(i=
11
11
  this.renderInline(i,r[r.length-1]))}),r.push({text:i.replace(/ +$/,""),span:e.span})}),r}renderInline(e,r){const n=e.match(/^ */),s=n?n[0].length:0,i=r.text,o=ke.stringWidth(i.trimRight());return r.span?this.wrap?s<o?e:(r.hidden=!0,i.trimRight()+" ".repeat(s-o)+e.trimLeft()):(r.hidden=!0,i+e):e}rasterize(e){const r=[],n=this.columnWidths(e);let s;return e.forEach((i,o)=>{i.width=n[o],this.wrap?s=ke.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
12
12
  `):s=i.text.split(`
13
- `),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[mp]||0).fill("")),s.push(...new Array(i.padding[gp]||0).fill(""))),s.forEach((a,c)=>{r[c]||r.push([]);const l=r[c];for(let u=0;u<o;u++)l[u]===void 0&&l.push("");l.push(a)})}),r}negatePadding(e){let r=e.width||0;return e.padding&&(r-=(e.padding[Hr]||0)+(e.padding[qr]||0)),e.border&&(r-=4),r}columnWidths(e){if(!this.wrap)return e.map(
14
- o=>o.width||ke.stringWidth(o.text));let r=e.length,n=this.width;const s=e.map(o=>{if(o.width)return r--,n-=o.width,o.width}),i=r?Math.floor(n/r):0;return s.map((o,a)=>o===void 0?Math.max(i,_p(e[a])):o)}}function wa(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?r:" ":""}function _p(t){const e=t.padding||[],r=1+(e[Hr]||0)+(e[qr]||0);return t.border?r+4:r}function $p(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function vp(t,e){
15
- t=t.trim();const r=ke.stringWidth(t);return r<e?" ".repeat(e-r)+t:t}function bp(t,e){t=t.trim();const r=ke.stringWidth(t);return r>=e?t:" ".repeat(e-r>>1)+t}let ke;function wp(t,e){return ke=e,new yp({width:t?.width||$p(),wrap:t?.wrap})}const Ea=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Sa(t){return t.replace(Ea,"")}function Ep(t,e){const[r,n]=t.match(Ea)||["",""];t=Sa(t);let s="";for(let i=0;i<t.length;i++)i!==0&&i%e===0&&(s+=
13
+ `),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[gp]||0).fill("")),s.push(...new Array(i.padding[yp]||0).fill(""))),s.forEach((a,u)=>{r[u]||r.push([]);const l=r[u];for(let c=0;c<o;c++)l[c]===void 0&&l.push("");l.push(a)})}),r}negatePadding(e){let r=e.width||0;return e.padding&&(r-=(e.padding[Ur]||0)+(e.padding[Hr]||0)),e.border&&(r-=4),r}columnWidths(e){if(!this.wrap)return e.map(
14
+ o=>o.width||ke.stringWidth(o.text));let r=e.length,n=this.width;const s=e.map(o=>{if(o.width)return r--,n-=o.width,o.width}),i=r?Math.floor(n/r):0;return s.map((o,a)=>o===void 0?Math.max(i,$p(e[a])):o)}}function Ea(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?r:" ":""}function $p(t){const e=t.padding||[],r=1+(e[Ur]||0)+(e[Hr]||0);return t.border?r+4:r}function vp(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function bp(t,e){
15
+ t=t.trim();const r=ke.stringWidth(t);return r<e?" ".repeat(e-r)+t:t}function wp(t,e){t=t.trim();const r=ke.stringWidth(t);return r>=e?t:" ".repeat(e-r>>1)+t}let ke;function Ep(t,e){return ke=e,new _p({width:t?.width||vp(),wrap:t?.wrap})}const Sa=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Ra(t){return t.replace(Sa,"")}function Sp(t,e){const[r,n]=t.match(Sa)||["",""];t=Ra(t);let s="";for(let i=0;i<t.length;i++)i!==0&&i%e===0&&(s+=
16
16
  `
17
- `),s+=t.charAt(i);return r&&n&&(s=`${r}${s}${n}`),s}function Sp(t){return wp(t,{stringWidth:e=>[...e].length,stripAnsi:Sa,wrap:Ep})}function Rp(t,e){let r=Ue(".",t),n;for(ua(r).isDirectory()||(r=Cs(r));;){if(n=e(r,Xh(r)),n)return Ue(r,n);if(r=Cs(n=r),n===r)break}}function hr(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",n=!1;const s=t.match(/^-+/);for(let i=s?s[0].length:0;i<t.length;i++){let o=t.charAt(i);n&&(n=!1,
18
- o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Ra(t,e){const r=t.toLowerCase();e=e||"-";let n="";for(let s=0;s<t.length;s++){const i=r.charAt(s),o=t.charAt(s);i!==o&&s>0?n+=`${e}${r.charAt(s)}`:n+=o}return n}function Aa(t){return t==null?!1:typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^0[^.]/.test(t)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function Ap(t){if(Array.isArray(t))return t.map(o=>typeof o!="string"?o+"":o);t=t.trim();let e=0,
19
- r=null,n=null,s=null;const i=[];for(let o=0;o<t.length;o++){if(r=n,n=t.charAt(o),n===" "&&!s){r!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Be;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(Be||(Be={}));let lt;class Op{constructor(e){lt=e}parse(e,r){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,
20
- envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),s=Ap(e),i=typeof e=="string",o=Cp(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"se\
21
- t-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],u=n.envPrefix,d=a["populate--"],h=d?"--":"_",y=Object.create(null),b=Object.create(null),_=n.__||lt.format,f={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),
22
- configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},g=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,p=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(P){const N=typeof P=="object"?P.key:P,Z=Object.keys(P).map(function(W){return{boolean:"bools",string:"strings",number:"numbers"}[W]}).filter(Boolean).pop();Z&&(f[Z][N]=!0),f.arrays[N]=!0,f.keys.push(N)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(P){f.
23
- bools[P]=!0,f.keys.push(P)}),[].concat(n.string||[]).filter(Boolean).forEach(function(P){f.strings[P]=!0,f.keys.push(P)}),[].concat(n.number||[]).filter(Boolean).forEach(function(P){f.numbers[P]=!0,f.keys.push(P)}),[].concat(n.count||[]).filter(Boolean).forEach(function(P){f.counts[P]=!0,f.keys.push(P)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(P){f.normalize[P]=!0,f.keys.push(P)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([P,N])=>{typeof N=="number"&&(f.nargs[P]=
24
- N,f.keys.push(P))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([P,N])=>{typeof N=="function"&&(f.coercions[P]=N,f.keys.push(P))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(P){f.configs[P]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([P,N])=>{(typeof N=="boolean"||typeof N=="function")&&(f.configs[P]=N)})),x(n.key,o,n.default,f.arrays),Object.keys(c).forEach(function(P){(f.aliases[P]||
25
- []).forEach(function(N){c[N]=c[P]})});let m=null;ne();let $=[];const v=Object.assign(Object.create(null),{_:[]}),E={};for(let P=0;P<s.length;P++){const N=s[P],Z=N.replace(/^-{3,}/,"---");let W,T,te,z,re,le;if(N!=="--"&&/^-/.test(N)&&Q(N))S(N);else if(Z.match(/^---+(=|$)/)){S(N);continue}else if(N.match(/^--.+=/)||!a["short-option-groups"]&&N.match(/^-.+=/))z=N.match(/^--?([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&(w(z[1],f.arrays)?P=F(P,z[1],s,z[2]):w(z[1],f.nargs)!==!1?P=I(P,
26
- z[1],s,z[2]):B(z[1],z[2],!0));else if(N.match(p)&&a["boolean-negation"])z=N.match(p),z!==null&&Array.isArray(z)&&z.length>=2&&(T=z[1],B(T,w(T,f.arrays)?[!1]:!1));else if(N.match(/^--.+/)||!a["short-option-groups"]&&N.match(/^-[^-]+/))z=N.match(/^--?(.+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(T=z[1],w(T,f.arrays)?P=F(P,T,s):w(T,f.nargs)!==!1?P=I(P,T,s):(re=s[P+1],re!==void 0&&(!re.match(/^-/)||re.match(g))&&!w(T,f.bools)&&!w(T,f.counts)||/^(true|false)$/.test(re)?(B(T,re),P++):B(T,oe(T))));else if(N.
17
+ `),s+=t.charAt(i);return r&&n&&(s=`${r}${s}${n}`),s}function Rp(t){return Ep(t,{stringWidth:e=>[...e].length,stripAnsi:Ra,wrap:Sp})}function Ap(t,e){let r=Ue(".",t),n;for(la(r).isDirectory()||(r=Cs(r));;){if(n=e(r,Qh(r)),n)return Ue(r,n);if(r=Cs(n=r),n===r)break}}function hr(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",n=!1;const s=t.match(/^-+/);for(let i=s?s[0].length:0;i<t.length;i++){let o=t.charAt(i);n&&(n=!1,
18
+ o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Aa(t,e){const r=t.toLowerCase();e=e||"-";let n="";for(let s=0;s<t.length;s++){const i=r.charAt(s),o=t.charAt(s);i!==o&&s>0?n+=`${e}${r.charAt(s)}`:n+=o}return n}function Oa(t){return t==null?!1:typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^0[^.]/.test(t)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function Op(t){if(Array.isArray(t))return t.map(o=>typeof o!="string"?o+"":o);t=t.trim();let e=0,
19
+ r=null,n=null,s=null;const i=[];for(let o=0;o<t.length;o++){if(r=n,n=t.charAt(o),n===" "&&!s){r!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Be;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(Be||(Be={}));let lt;class Cp{constructor(e){lt=e}parse(e,r){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,
20
+ envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),s=Op(e),i=typeof e=="string",o=Pp(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"se\
21
+ t-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],c=n.envPrefix,d=a["populate--"],h=d?"--":"_",_=Object.create(null),b=Object.create(null),y=n.__||lt.format,f={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),
22
+ configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},g=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,p=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(P){const N=typeof P=="object"?P.key:P,ee=Object.keys(P).map(function(W){return{boolean:"bools",string:"strings",number:"numbers"}[W]}).filter(Boolean).pop();ee&&(f[ee][N]=!0),f.arrays[N]=!0,f.keys.push(N)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(P){
23
+ f.bools[P]=!0,f.keys.push(P)}),[].concat(n.string||[]).filter(Boolean).forEach(function(P){f.strings[P]=!0,f.keys.push(P)}),[].concat(n.number||[]).filter(Boolean).forEach(function(P){f.numbers[P]=!0,f.keys.push(P)}),[].concat(n.count||[]).filter(Boolean).forEach(function(P){f.counts[P]=!0,f.keys.push(P)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(P){f.normalize[P]=!0,f.keys.push(P)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([P,N])=>{typeof N=="number"&&(f.nargs[P]=
24
+ N,f.keys.push(P))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([P,N])=>{typeof N=="function"&&(f.coercions[P]=N,f.keys.push(P))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(P){f.configs[P]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([P,N])=>{(typeof N=="boolean"||typeof N=="function")&&(f.configs[P]=N)})),x(n.key,o,n.default,f.arrays),Object.keys(u).forEach(function(P){(f.aliases[P]||
25
+ []).forEach(function(N){u[N]=u[P]})});let m=null;ne();let $=[];const v=Object.assign(Object.create(null),{_:[]}),E={};for(let P=0;P<s.length;P++){const N=s[P],ee=N.replace(/^-{3,}/,"---");let W,T,te,z,re,le;if(N!=="--"&&/^-/.test(N)&&Z(N))S(N);else if(ee.match(/^---+(=|$)/)){S(N);continue}else if(N.match(/^--.+=/)||!a["short-option-groups"]&&N.match(/^-.+=/))z=N.match(/^--?([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&(w(z[1],f.arrays)?P=F(P,z[1],s,z[2]):w(z[1],f.nargs)!==!1?P=I(
26
+ P,z[1],s,z[2]):B(z[1],z[2],!0));else if(N.match(p)&&a["boolean-negation"])z=N.match(p),z!==null&&Array.isArray(z)&&z.length>=2&&(T=z[1],B(T,w(T,f.arrays)?[!1]:!1));else if(N.match(/^--.+/)||!a["short-option-groups"]&&N.match(/^-[^-]+/))z=N.match(/^--?(.+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(T=z[1],w(T,f.arrays)?P=F(P,T,s):w(T,f.nargs)!==!1?P=I(P,T,s):(re=s[P+1],re!==void 0&&(!re.match(/^-/)||re.match(g))&&!w(T,f.bools)&&!w(T,f.counts)||/^(true|false)$/.test(re)?(B(T,re),P++):B(T,oe(T))));else if(N.
27
27
  match(/^-.\..+=/))z=N.match(/^-([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&B(z[1],z[2]);else if(N.match(/^-.\..+/)&&!N.match(g))re=s[P+1],z=N.match(/^-(.\..+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(T=z[1],re!==void 0&&!re.match(/^-/)&&!w(T,f.bools)&&!w(T,f.counts)?(B(T,re),P++):B(T,oe(T)));else if(N.match(/^-[^-]+/)&&!N.match(g)){te=N.slice(1,-1).split(""),W=!1;for(let $e=0;$e<te.length;$e++){if(re=N.slice($e+2),te[$e+1]&&te[$e+1]==="="){le=N.slice($e+3),T=te[$e],w(T,f.arrays)?
28
28
  P=F(P,T,s,le):w(T,f.nargs)!==!1?P=I(P,T,s,le):B(T,le),W=!0;break}if(re==="-"){B(te[$e],re);continue}if(/[A-Za-z]/.test(te[$e])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(re)&&w(re,f.bools)===!1){B(te[$e],re),W=!0;break}if(te[$e+1]&&te[$e+1].match(/\W/)){B(te[$e],re),W=!0;break}else B(te[$e],oe(te[$e]))}T=N.slice(-1)[0],!W&&T!=="-"&&(w(T,f.arrays)?P=F(P,T,s):w(T,f.nargs)!==!1?P=I(P,T,s):(re=s[P+1],re!==void 0&&(!/^(-|--)[^-]/.test(re)||re.match(g))&&!w(T,f.bools)&&!w(T,f.counts)||/^(true|false)$/.test(re)?
29
- (B(T,re),P++):B(T,oe(T))))}else if(N.match(/^-[0-9]$/)&&N.match(g)&&w(N.slice(1),f.bools))T=N.slice(1),B(T,oe(T));else if(N==="--"){$=s.slice(P+1);break}else if(a["halt-at-non-option"]){$=s.slice(P);break}else S(N)}G(v,!0),G(v,!1),D(v),K(),U(v,f.aliases,c,!0),X(v),a["set-placeholder-key"]&&se(v),Object.keys(f.counts).forEach(function(P){A(v,P.split("."))||B(P,0)}),d&&$.length&&(v[h]=[]),$.forEach(function(P){v[h].push(P)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(v).filter(P=>P!==
30
- "--"&&P.includes("-")).forEach(P=>{delete v[P]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(P=>o[P])).forEach(P=>{a["camel-case-expansion"]&&P.includes("-")&&delete v[P.split(".").map(N=>hr(N)).join(".")],delete v[P]});function S(P){const N=j("_",P);(typeof N=="string"||typeof N=="number")&&v._.push(N)}function I(P,N,Z,W){let T,te=w(N,f.nargs);if(te=typeof te!="number"||isNaN(te)?1:te,te===0)return J(W)||(m=Error(_("Argument unexpected for: %s",N))),B(N,oe(N)),P;let z=J(W)?0:1;if(a["nar\
31
- gs-eats-options"])Z.length-(P+1)+z<te&&(m=Error(_("Not enough arguments following: %s",N))),z=te;else{for(T=P+1;T<Z.length&&(!Z[T].match(/^-[^0-9]/)||Z[T].match(g)||Q(Z[T]));T++)z++;z<te&&(m=Error(_("Not enough arguments following: %s",N)))}let re=Math.min(z,te);for(!J(W)&&re>0&&(B(N,W),re--),T=P+1;T<re+P+1;T++)B(N,Z[T]);return P+re}function F(P,N,Z,W){let T=[],te=W||Z[P+1];const z=w(N,f.nargs);if(w(N,f.bools)&&!/^(true|false)$/.test(te))T.push(!0);else if(J(te)||J(W)&&/^-/.test(te)&&!g.test(te)&&
32
- !Q(te)){if(c[N]!==void 0){const re=c[N];T=Array.isArray(re)?re:[re]}}else{J(W)||T.push(M(N,W,!0));for(let re=P+1;re<Z.length&&!(!a["greedy-arrays"]&&T.length>0||z&&typeof z=="number"&&T.length>=z||(te=Z[re],/^-/.test(te)&&!g.test(te)&&!Q(te)));re++)P=re,T.push(M(N,te,i))}return typeof z=="number"&&(z&&T.length<z||isNaN(z)&&T.length===0)&&(m=Error(_("Not enough arguments following: %s",N))),B(N,T),P}function B(P,N,Z=i){if(/-/.test(P)&&a["camel-case-expansion"]){const te=P.split(".").map(function(z){
33
- return hr(z)}).join(".");k(P,te)}const W=M(P,N,Z),T=P.split(".");V(v,T,W),f.aliases[P]&&f.aliases[P].forEach(function(te){const z=te.split(".");V(v,z,W)}),T.length>1&&a["dot-notation"]&&(f.aliases[T[0]]||[]).forEach(function(te){let z=te.split(".");const re=[].concat(T);re.shift(),z=z.concat(re),(f.aliases[P]||[]).includes(z.join("."))||V(v,z,W)}),w(P,f.normalize)&&!w(P,f.arrays)&&[P].concat(f.aliases[P]||[]).forEach(function(z){Object.defineProperty(E,z,{enumerable:!0,get(){return N},set(re){N=
34
- typeof re=="string"?lt.normalize(re):re}})})}function k(P,N){f.aliases[P]&&f.aliases[P].length||(f.aliases[P]=[N],y[N]=!0),f.aliases[N]&&f.aliases[N].length||k(N,P)}function M(P,N,Z){Z&&(N=Pp(N)),(w(P,f.bools)||w(P,f.counts))&&typeof N=="string"&&(N=N==="true");let W=Array.isArray(N)?N.map(function(T){return j(P,T)}):j(P,N);return w(P,f.counts)&&(J(W)||typeof W=="boolean")&&(W=xs()),w(P,f.normalize)&&w(P,f.arrays)&&(Array.isArray(N)?W=N.map(T=>lt.normalize(T)):W=lt.normalize(N)),W}function j(P,N){
35
- return!a["parse-positional-numbers"]&&P==="_"||!w(P,f.strings)&&!w(P,f.bools)&&!Array.isArray(N)&&(Aa(N)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${N}`)))||!J(N)&&w(P,f.numbers))&&(N=Number(N)),N}function D(P){const N=Object.create(null);U(N,f.aliases,c),Object.keys(f.configs).forEach(function(Z){const W=P[Z]||N[Z];if(W)try{let T=null;const te=lt.resolve(lt.cwd(),W),z=f.configs[Z];if(typeof z=="function"){try{T=z(te)}catch(re){T=re}if(T instanceof Error){m=T;return}}else T=
36
- lt.require(te);H(T)}catch(T){T.name==="PermissionDenied"?m=T:P[Z]&&(m=Error(_("Invalid JSON config file: %s",W)))}})}function H(P,N){Object.keys(P).forEach(function(Z){const W=P[Z],T=N?N+"."+Z:Z;typeof W=="object"&&W!==null&&!Array.isArray(W)&&a["dot-notation"]?H(W,T):(!A(v,T.split("."))||w(T,f.arrays)&&a["combine-arrays"])&&B(T,W)})}function K(){typeof l<"u"&&l.forEach(function(P){H(P)})}function G(P,N){if(typeof u>"u")return;const Z=typeof u=="string"?u:"",W=lt.env();Object.keys(W).forEach(function(T){
37
- if(Z===""||T.lastIndexOf(Z,0)===0){const te=T.split("__").map(function(z,re){return re===0&&(z=z.substring(Z.length)),hr(z)});(N&&f.configs[te.join(".")]||!N)&&!A(P,te)&&B(te.join("."),W[T])}})}function X(P){let N;const Z=new Set;Object.keys(P).forEach(function(W){if(!Z.has(W)&&(N=w(W,f.coercions),typeof N=="function"))try{const T=j(W,N(P[W]));[].concat(f.aliases[W]||[],W).forEach(te=>{Z.add(te),P[te]=T})}catch(T){m=T}})}function se(P){return f.keys.forEach(N=>{~N.indexOf(".")||typeof P[N]>"u"&&
38
- (P[N]=void 0)}),P}function U(P,N,Z,W=!1){Object.keys(Z).forEach(function(T){A(P,T.split("."))||(V(P,T.split("."),Z[T]),W&&(b[T]=!0),(N[T]||[]).forEach(function(te){A(P,te.split("."))||V(P,te.split("."),Z[T])}))})}function A(P,N){let Z=P;a["dot-notation"]||(N=[N.join(".")]),N.slice(0,-1).forEach(function(T){Z=Z[T]||{}});const W=N[N.length-1];return typeof Z!="object"?!1:W in Z}function V(P,N,Z){let W=P;a["dot-notation"]||(N=[N.join(".")]),N.slice(0,-1).forEach(function(le){le=Oa(le),typeof W=="ob\
39
- ject"&&W[le]===void 0&&(W[le]={}),typeof W[le]!="object"||Array.isArray(W[le])?(Array.isArray(W[le])?W[le].push({}):W[le]=[W[le],{}],W=W[le][W[le].length-1]):W=W[le]});const T=Oa(N[N.length-1]),te=w(N.join("."),f.arrays),z=Array.isArray(Z);let re=a["duplicate-arguments-array"];!re&&w(T,f.nargs)&&(re=!0,(!J(W[T])&&f.nargs[T]===1||Array.isArray(W[T])&&W[T].length===f.nargs[T])&&(W[T]=void 0)),Z===xs()?W[T]=xs(W[T]):Array.isArray(W[T])?re&&te&&z?W[T]=a["flatten-duplicate-arrays"]?W[T].concat(Z):(Array.
40
- isArray(W[T][0])?W[T]:[W[T]]).concat([Z]):!re&&!!te==!!z?W[T]=Z:W[T]=W[T].concat([Z]):W[T]===void 0&&te?W[T]=z?Z:[Z]:re&&!(W[T]===void 0||w(T,f.counts)||w(T,f.bools))?W[T]=[W[T],Z]:W[T]=Z}function x(...P){P.forEach(function(N){Object.keys(N||{}).forEach(function(Z){f.aliases[Z]||(f.aliases[Z]=[].concat(o[Z]||[]),f.aliases[Z].concat(Z).forEach(function(W){if(/-/.test(W)&&a["camel-case-expansion"]){const T=hr(W);T!==Z&&f.aliases[Z].indexOf(T)===-1&&(f.aliases[Z].push(T),y[T]=!0)}}),f.aliases[Z].concat(
41
- Z).forEach(function(W){if(W.length>1&&/[A-Z]/.test(W)&&a["camel-case-expansion"]){const T=Ra(W,"-");T!==Z&&f.aliases[Z].indexOf(T)===-1&&(f.aliases[Z].push(T),y[T]=!0)}}),f.aliases[Z].forEach(function(W){f.aliases[W]=[Z].concat(f.aliases[Z].filter(function(T){return W!==T}))}))})})}function w(P,N){const Z=[].concat(f.aliases[P]||[],P),W=Object.keys(N),T=Z.find(te=>W.includes(te));return T?N[T]:!1}function R(P){const N=Object.keys(f);return[].concat(N.map(W=>f[W])).some(function(W){return Array.isArray(
42
- W)?W.includes(P):W[P]})}function C(P,...N){return[].concat(...N).some(function(W){const T=P.match(W);return T&&R(T[1])})}function Y(P){if(P.match(g)||!P.match(/^-[^-]+/))return!1;let N=!0,Z;const W=P.slice(1).split("");for(let T=0;T<W.length;T++){if(Z=P.slice(T+2),!R(W[T])){N=!1;break}if(W[T+1]&&W[T+1]==="="||Z==="-"||/[A-Za-z]/.test(W[T])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Z)||W[T+1]&&W[T+1].match(/\W/))break}return N}function Q(P){return a["unknown-options-as-args"]&&ie(P)}function ie(P){return P=
43
- P.replace(/^-{3,}/,"--"),P.match(g)||Y(P)?!1:!C(P,/^-+([^=]+?)=[\s\S]*$/,p,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(P){return!w(P,f.bools)&&!w(P,f.counts)&&`${P}`in c?c[P]:L(q(P))}function L(P){return{[Be.BOOLEAN]:!0,[Be.STRING]:"",[Be.NUMBER]:void 0,[Be.ARRAY]:[]}[P]}function q(P){let N=Be.BOOLEAN;return w(P,f.strings)?N=Be.STRING:w(P,f.numbers)?N=Be.NUMBER:w(P,f.bools)?N=Be.BOOLEAN:w(P,f.arrays)&&(N=Be.ARRAY),N}function J(P){return P===void 0}function ne(){
44
- Object.keys(f.counts).find(P=>w(P,f.arrays)?(m=Error(_("Invalid configuration: %s, opts.count excludes opts.array.",P)),!0):w(P,f.nargs)?(m=Error(_("Invalid configuration: %s, opts.count excludes opts.narg.",P)),!0):!1)}return{aliases:Object.assign({},f.aliases),argv:Object.assign(E,v),configuration:a,defaulted:Object.assign({},b),error:m,newAliases:Object.assign({},y)}}}function Cp(t){const e=[],r=Object.create(null);let n=!0;for(Object.keys(t).forEach(function(s){e.push([].concat(t[s],s))});n;){
45
- n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});const i=s.pop();i!==void 0&&typeof i=="string"&&(r[i]=s)}),r}function xs(t){return t!==void 0?t+1:1}function Oa(t){return t==="__proto__"?"___proto___":t}function Pp(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?
46
- t.substring(1,t.length-1):t}var Ms,qs,Hs;const Ca=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Pa=(qs=(Ms=process==null?void 0:process.versions)===null||Ms===void 0?void 0:Ms.node)!==null&&qs!==void 0?qs:(Hs=process==null?void 0:process.version)===null||Hs===void 0?void 0:Hs.slice(1);if(Pa&&Number(Pa.match(/^([^.]+)/)[1])<Ca)throw Error(`yargs parser supports a minimum Node.js version of ${Ca}. Read our version support policy: https://git\
47
- hub.com/yargs/yargs-parser#supported-nodejs-versions`);const Ip=process?process.env:{},Ia=new Op({cwd:process.cwd,env:()=>Ip,format:fa,normalize:Bh,resolve:Ue,require:t=>{if(typeof require<"u")return require(t);if(t.match(/\.json$/))return JSON.parse(Ps(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),pr=function(e,r){return Ia.parse(e.slice(),r).argv};pr.detailed=function(t,e){return Ia.parse(t.slice(),e)},pr.camelCase=hr,pr.decamelize=Ra,pr.looksLikeNumber=Aa;function Ta(){
48
- return Tp()?0:1}function Tp(){return Np()&&!process.defaultApp}function Np(){return!!process.versions.electron}function jp(t){return t.slice(Ta()+1)}function Lp(){return process.argv[Ta()]}class Oe extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Oe)}}const kp={fs:{readFileSync:Ps,writeFile:Jh},format:fa,resolve:Ue,exists:t=>{try{return ua(t).isFile()}catch{return!1}}};let We;class Dp{constructor(e){e=e||{},this.directory=
49
- e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);const r=e.shift();let n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),
50
- !this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),We.format.apply(We.format,[this.cache[this.locale][r]||r].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),r=e.shift(),n=e.shift(),s=e.shift();let i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][s===
51
- 1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const a=[o];return~o.indexOf("%d")&&a.push(s),We.format.apply(We.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this.cache[this.locale][r]=e[r])}_taggedLiteral(e,...r){
52
- let n="";return e.forEach(function(s,i){const o=r[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){const e=this,r=this.writeQueue[0],n=r.directory,s=r.locale,i=r.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);We.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){
53
- let e={};const r=this._resolveLocaleFile(this.directory,this.locale);try{We.fs.readFileSync&&(e=JSON.parse(We.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,r){let n=We.resolve(e,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){const s=We.resolve(e,"./",r.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){
54
- return We.exists(e)}}function xp(t,e){We=e;const r=new Dp(t);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}const Mp=t=>xp(t,kp),qp="require is not supported by ESM",Na="loading a directory of commands is not supported yet for ESM";let mr;try{mr=Zh(import.meta.url)}catch{mr=process.cwd()}const Hp=mr.substring(0,mr.lastIndexOf("node_modules")),Up={assert:{notStrictEqual:Gh,strictEqual:zh},cliui:Sp,
55
- findUp:Rp,getEnv:t=>process.env[t],inspect:Qh,getCallerFile:()=>{throw new Oe(Na)},getProcessArgvBin:Lp,mainFilename:Hp||process.cwd(),Parser:pr,path:{basename:Yh,dirname:Cs,extname:Kh,relative:Wh,resolve:Ue},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Ps,require:()=>{throw new Oe(qp)},requireDirectory:()=>{
56
- throw new Oe(Na)},stringWidth:t=>[...t].length,y18n:Mp({directory:Ue(mr,"../../../locales"),updateFiles:!1})};function Ke(t,e,r,n){r.assert.notStrictEqual(t,e,n)}function ja(t,e){e.assert.strictEqual(typeof t,"string")}function Ur(t){return Object.keys(t)}function Ae(t){return!!t&&!!t.then&&typeof t.then=="function"}function gr(t){const r=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,s=r.shift();if(!s)throw new Error(`No command found in: ${t}`);const i={cmd:s.replace(n,
57
- ""),demanded:[],optional:[]};return r.forEach((o,a)=>{let c=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(c=!0),/^\[/.test(o)?i.optional.push({cmd:o.replace(n,"").split("|"),variadic:c}):i.demanded.push({cmd:o.replace(n,"").split("|"),variadic:c})}),i}const Fp=["first","second","third","fourth","fifth","sixth"];function ce(t,e,r){function n(){return typeof t=="object"?[{demanded:[],optional:[]},t,e]:[gr(`cmd ${t}`),e,r]}try{let s=0;const[i,o,a]=n(),c=[].slice.call(o);for(;c.length&&
58
- c[c.length-1]===void 0;)c.pop();const l=a||c.length;if(l<i.demanded.length)throw new Oe(`Not enough arguments provided. Expected ${i.demanded.length} but received ${c.length}.`);const u=i.demanded.length+i.optional.length;if(l>u)throw new Oe(`Too many arguments provided. Expected max ${u} but received ${l}.`);i.demanded.forEach(d=>{const h=c.shift(),y=La(h);d.cmd.filter(_=>_===y||_==="*").length===0&&ka(y,d.cmd,s),s+=1}),i.optional.forEach(d=>{if(c.length===0)return;const h=c.shift(),y=La(h);d.cmd.
59
- filter(_=>_===y||_==="*").length===0&&ka(y,d.cmd,s),s+=1})}catch(s){console.warn(s.stack)}}function La(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function ka(t,e,r){throw new Oe(`Invalid ${Fp[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}class Vp{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,r,n=!0,s=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[e,r,n],arguments.length),Array.isArray(e)){for(let i=0;i<
60
- e.length;i++){if(typeof e[i]!="function")throw Error("middleware must be a function");const o=e[i];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e=="function"){const i=e;i.applyBeforeValidation=r,i.global=n,i.mutates=s,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,r){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(s=>{const i=[...n[r]||[],r];return s.option?!i.includes(s.option):
61
- !0}),e.option=r,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}}function zp(t){return t?t.map(e=>(e.applyBeforeValidation=!1,e)):[]}function yr(t,e,r,n){return r.reduce((s,i)=>{if(i.applyBeforeValidation!==n)return s;if(i.mutates){if(i.applied)return s;i.applied=!0}if(Ae(
62
- s))return s.then(o=>Promise.all([o,i(o,e)])).then(([o,a])=>Object.assign(o,a));{const o=i(s,e);return Ae(o)?o.then(a=>Object.assign(s,a)):Object.assign(s,o)}},t)}function _r(t,e,r=n=>{throw n}){try{const n=Gp(t)?t():t;return Ae(n)?n.then(s=>e(s)):e(n)}catch(n){return r(n)}}function Gp(t){return typeof t=="function"}function Bp(t){if(typeof require>"u")return null;for(let e=0,r=Object.keys(require.cache),n;e<r.length;e++)if(n=require.cache[r[e]],n.exports===t)return n;return null}const Kt=/(^\*)|(^\$0)/;
63
- class Wp{constructor(e,r,n,s){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=s,this.usage=e,this.globalMiddleware=n,this.validation=r}addDirectory(e,r,n,s){s=s||{},typeof s.recurse!="boolean"&&(s.recurse=!1),Array.isArray(s.extensions)||(s.extensions=["js"]);const i=typeof s.visit=="function"?s.visit:o=>o;s.visit=(o,a,c)=>{const l=i(o,a,c);if(l){if(this.requireCache.has(a))return l;this.requireCache.add(a),this.addHandler(l)}return l},this.shim.requireDirectory(
64
- {require:r,filename:n},e,s)}addHandler(e,r,n,s,i,o){let a=[];const c=zp(i);if(s=s||(()=>{}),Array.isArray(e))if(Yp(e))[e,...a]=e;else for(const l of e)this.addHandler(l);else if(Jp(e)){let l=Array.isArray(e.command)||typeof e.command=="string"?e.command:this.moduleName(e);e.aliases&&(l=[].concat(l).concat(e.aliases)),this.addHandler(l,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}else if(Da(n)){this.addHandler([e].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);
65
- return}if(typeof e=="string"){const l=gr(e);a=a.map(h=>gr(h).cmd);let u=!1;const d=[l.cmd].concat(a).filter(h=>Kt.test(h)?(u=!0,!1):!0);d.length===0&&u&&d.push("$0"),u&&(l.cmd=d[0],a=d.slice(1),e=e.replace(Kt,l.cmd)),a.forEach(h=>{this.aliasMap[h]=l.cmd}),r!==!1&&this.usage.command(e,r,u,a,o),this.handlers[l.cmd]={original:e,description:r,handler:s,builder:n||{},middlewares:c,deprecated:o,demanded:l.demanded,optional:l.optional},u&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){
66
- return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,r,n,s,i,o){const a=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),u=!e;e&&(c.commands.push(e),c.fullCommands.push(a.original));const d=this.applyBuilderUpdateUsageAndParse(u,a,r,n.aliases,l,s,i,o);return Ae(d)?d.then(h=>this.applyMiddlewareAndGetResult(
67
- u,a,h.innerArgv,c,i,h.aliases,r)):this.applyMiddlewareAndGetResult(u,a,d.innerArgv,c,i,d.aliases,r)}applyBuilderUpdateUsageAndParse(e,r,n,s,i,o,a,c){const l=r.builder;let u=n;if(Us(l)){n.getInternalMethods().getUsageInstance().freeze();const d=l(n.getInternalMethods().reset(s),c);if(Ae(d))return d.then(h=>(u=hm(h)?h:n,this.parseAndUpdateUsage(e,r,u,i,o,a)))}else Xp(l)&&(n.getInternalMethods().getUsageInstance().freeze(),u=n.getInternalMethods().reset(s),Object.keys(r.builder).forEach(d=>{u.option(
68
- d,l[d])}));return this.parseAndUpdateUsage(e,r,u,i,o,a)}parseAndUpdateUsage(e,r,n,s,i,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(s,r),r.description);const a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,o);return Ae(a)?a.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(e){return!e.
69
- getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,r){const n=Kt.test(r.original)?r.original.replace(Kt,"").trim():r.original,s=e.filter(i=>!Kt.test(i));return s.push(n),`$0 ${s.join(" ")}`}handleValidationAndGetResult(e,r,n,s,i,o,a,c){if(!o.getInternalMethods().getHasOutput()){const l=o.getInternalMethods().runValidation(i,c,o.parsed.error,e);n=_r(n,u=>(l(u),u))}if(r.handler&&!o.getInternalMethods().
70
- getHasOutput()){o.getInternalMethods().setHasOutput();const l=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,l,!1,!1),n=yr(n,o,a,!1),n=_r(n,u=>{const d=r.handler(u);return Ae(d)?d.then(()=>u):u}),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ae(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(u=>{try{o.getInternalMethods().getUsageInstance().fail(null,u)}catch{}})}return e||(s.commands.pop(),s.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,r,n,s,i,o,a){
71
- let c={};if(i)return n;a.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,s,a));const l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),u=yr(n,a,l,!0);return Ae(u)?u.then(d=>this.handleValidationAndGetResult(e,r,d,s,o,a,l,c)):this.handleValidationAndGetResult(e,r,u,s,o,a,l,c)}populatePositionals(e,r,n,s){r._=r._.slice(n.commands.length);const i=e.demanded.slice(0),o=e.optional.slice(0),a={};for(this.validation.positionalCount(i.length,r._.length);i.length;){
72
- const c=i.shift();this.populatePositional(c,r,a)}for(;o.length;){const c=o.shift();this.populatePositional(c,r,a)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,a,this.cmdToParseOptions(e.original),s),a}populatePositional(e,r,n){const s=e.cmd[0];e.variadic?n[s]=r._.splice(0).map(String):r._.length&&(n[s]=[String(r._.shift())])}cmdToParseOptions(e){const r={array:[],default:{},alias:{},demand:{}},n=gr(e);return n.demanded.forEach(s=>{const[i,...o]=s.cmd;s.variadic&&(r.
73
- array.push(i),r.default[i]=[]),r.alias[i]=o,r.demand[i]=!0}),n.optional.forEach(s=>{const[i,...o]=s.cmd;s.variadic&&(r.array.push(i),r.default[i]=[]),r.alias[i]=o}),r}postProcessPositionals(e,r,n,s){const i=Object.assign({},s.getOptions());i.default=Object.assign(n.default,i.default);for(const l of Object.keys(n.alias))i.alias[l]=(i.alias[l]||[]).concat(n.alias[l]);i.array=i.array.concat(n.array),i.config={};const o=[];if(Object.keys(r).forEach(l=>{r[l].map(u=>{i.configuration["unknown-options-a\
74
- s-args"]&&(i.key[l]=!0),o.push(`--${l}`),o.push(u)})}),!o.length)return;const a=Object.assign({},i.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(o,Object.assign({},i,{configuration:a}));if(c.error)s.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{const l=Object.keys(r);Object.keys(r).forEach(u=>{l.push(...c.aliases[u])}),Object.keys(c.argv).forEach(u=>{l.includes(u)&&(r[u]||(r[u]=c.argv[u]),!this.isInConfigs(s,u)&&!this.isDefaulted(s,u)&&Object.prototype.
75
- hasOwnProperty.call(e,u)&&Object.prototype.hasOwnProperty.call(c.argv,u)&&(Array.isArray(e[u])||Array.isArray(c.argv[u]))?e[u]=[].concat(e[u],c.argv[u]):e[u]=c.argv[u])})}}isDefaulted(e,r){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(e,r){const{configObjects:n}=e.getOptions();return n.some(s=>Object.prototype.hasOwnProperty.call(s,r))||n.some(s=>Object.prototype.hasOwnProperty.call(
76
- s,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const n=Kt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}const r=this.defaultCommand.builder;if(Us(r))return r(e,!0);Da(r)||Object.keys(r).forEach(n=>{e.option(n,r[n])})}moduleName(e){const r=Bp(e);if(!r)throw new Error(`No \
77
- command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(r.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:r,desc:n}){for(const s of[e,r,n]){if(typeof s=="string"||s===!1)return s;Ke(s,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();Ke(e,void 0,this.shim),{handlers:this.
78
- handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function Kp(t,e,r,n){return new Wp(t,e,r,n)}function Da(t){return typeof t=="object"&&!!t.builder&&typeof t.handler=="function"}function Yp(t){return t.every(e=>typeof e=="string")}function Us(t){return typeof t=="function"}function Xp(t){return typeof t=="object"}function Jp(t){return typeof t=="object"&&!Array.isArray(
79
- t)}function $r(t={},e=()=>!0){const r={};return Ur(t).forEach(n=>{e(n,t[n])&&(r[n]=t[n])}),r}function vr(t){typeof process>"u"||[process.stdout,process.stderr].forEach(e=>{const r=e;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(t)})}function Qp(t){return typeof t=="boolean"}function Zp(t,e){const r=e.y18n.__,n={},s=[];n.failFn=function(M){s.push(M)};let i=null,o=null,a=!0;n.showHelpOnFail=function(M=!0,j){const[D,H]=typeof M=="string"?[!0,M]:[M,j];return t.getInternalMethods().
80
- isGlobalContext()&&(o=H),i=H,a=D,n};let c=!1;n.fail=function(M,j){const D=t.getInternalMethods().getLoggerInstance();if(s.length)for(let H=s.length-1;H>=0;--H){const K=s[H];if(Qp(K)){if(j)throw j;if(M)throw Error(M)}else K(M,j,n)}else{if(t.getExitProcess()&&vr(!0),!c){c=!0,a&&(t.showHelp("error"),D.error()),(M||j)&&D.error(M||j);const H=i||o;H&&((M||j)&&D.error(""),D.error(H))}if(j=j||new Oe(M),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,j);throw j}};
81
- let l=[],u=!1;n.usage=(k,M)=>k===null?(u=!0,l=[],n):(u=!1,l.push([k,M||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>u,n.getPositionalGroupName=()=>r("Positionals:");let d=[];n.example=(k,M)=>{d.push([k,M||""])};let h=[];n.command=function(M,j,D,H,K=!1){D&&(h=h.map(G=>(G[2]=!1,G))),h.push([M,j||"",D,H,K])},n.getCommands=()=>h;let y={};n.describe=function(M,j){Array.isArray(M)?M.forEach(D=>{n.describe(D,j)}):typeof M=="object"?Object.keys(M).forEach(D=>{n.describe(D,M[D])}):y[M]=j},n.getDescriptions=
82
- ()=>y;let b=[];n.epilog=k=>{b.push(k)};let _=!1,f;n.wrap=k=>{_=!0,f=k},n.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(_||(f=I(),_=!0),f);const g="__yargsString__:";n.deferY18nLookup=k=>g+k,n.help=function(){if($)return $;m();const M=t.customScriptName?t.$0:e.path.basename(t.$0),j=t.getDemandedOptions(),D=t.getDemandedCommands(),H=t.getDeprecatedOptions(),K=t.getGroups(),G=t.getOptions();let X=[];X=X.concat(Object.keys(y)),X=X.concat(Object.keys(j)),X=X.concat(Object.keys(D)),X=X.concat(Object.
83
- keys(G.default)),X=X.filter(E),X=Object.keys(X.reduce((C,Y)=>(Y!=="_"&&(C[Y]=!0),C),{}));const se=n.getWrap(),U=e.cliui({width:se,wrap:!!se});if(!u){if(l.length)l.forEach(C=>{U.div({text:`${C[0].replace(/\$0/g,M)}`}),C[1]&&U.div({text:`${C[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let C=null;D._?C=`${M} <${r("command")}>
29
+ (B(T,re),P++):B(T,oe(T))))}else if(N.match(/^-[0-9]$/)&&N.match(g)&&w(N.slice(1),f.bools))T=N.slice(1),B(T,oe(T));else if(N==="--"){$=s.slice(P+1);break}else if(a["halt-at-non-option"]){$=s.slice(P);break}else S(N)}G(v,!0),G(v,!1),D(v),Y(),U(v,f.aliases,u,!0),J(v),a["set-placeholder-key"]&&se(v),Object.keys(f.counts).forEach(function(P){A(v,P.split("."))||B(P,0)}),d&&$.length&&(v[h]=[]),$.forEach(function(P){v[h].push(P)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(v).filter(P=>P!==
30
+ "--"&&P.includes("-")).forEach(P=>{delete v[P]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(P=>o[P])).forEach(P=>{a["camel-case-expansion"]&&P.includes("-")&&delete v[P.split(".").map(N=>hr(N)).join(".")],delete v[P]});function S(P){const N=j("_",P);(typeof N=="string"||typeof N=="number")&&v._.push(N)}function I(P,N,ee,W){let T,te=w(N,f.nargs);if(te=typeof te!="number"||isNaN(te)?1:te,te===0)return Q(W)||(m=Error(y("Argument unexpected for: %s",N))),B(N,oe(N)),P;let z=Q(W)?0:1;if(a["na\
31
+ rgs-eats-options"])ee.length-(P+1)+z<te&&(m=Error(y("Not enough arguments following: %s",N))),z=te;else{for(T=P+1;T<ee.length&&(!ee[T].match(/^-[^0-9]/)||ee[T].match(g)||Z(ee[T]));T++)z++;z<te&&(m=Error(y("Not enough arguments following: %s",N)))}let re=Math.min(z,te);for(!Q(W)&&re>0&&(B(N,W),re--),T=P+1;T<re+P+1;T++)B(N,ee[T]);return P+re}function F(P,N,ee,W){let T=[],te=W||ee[P+1];const z=w(N,f.nargs);if(w(N,f.bools)&&!/^(true|false)$/.test(te))T.push(!0);else if(Q(te)||Q(W)&&/^-/.test(te)&&!g.
32
+ test(te)&&!Z(te)){if(u[N]!==void 0){const re=u[N];T=Array.isArray(re)?re:[re]}}else{Q(W)||T.push(M(N,W,!0));for(let re=P+1;re<ee.length&&!(!a["greedy-arrays"]&&T.length>0||z&&typeof z=="number"&&T.length>=z||(te=ee[re],/^-/.test(te)&&!g.test(te)&&!Z(te)));re++)P=re,T.push(M(N,te,i))}return typeof z=="number"&&(z&&T.length<z||isNaN(z)&&T.length===0)&&(m=Error(y("Not enough arguments following: %s",N))),B(N,T),P}function B(P,N,ee=i){if(/-/.test(P)&&a["camel-case-expansion"]){const te=P.split(".").
33
+ map(function(z){return hr(z)}).join(".");k(P,te)}const W=M(P,N,ee),T=P.split(".");V(v,T,W),f.aliases[P]&&f.aliases[P].forEach(function(te){const z=te.split(".");V(v,z,W)}),T.length>1&&a["dot-notation"]&&(f.aliases[T[0]]||[]).forEach(function(te){let z=te.split(".");const re=[].concat(T);re.shift(),z=z.concat(re),(f.aliases[P]||[]).includes(z.join("."))||V(v,z,W)}),w(P,f.normalize)&&!w(P,f.arrays)&&[P].concat(f.aliases[P]||[]).forEach(function(z){Object.defineProperty(E,z,{enumerable:!0,get(){return N},
34
+ set(re){N=typeof re=="string"?lt.normalize(re):re}})})}function k(P,N){f.aliases[P]&&f.aliases[P].length||(f.aliases[P]=[N],_[N]=!0),f.aliases[N]&&f.aliases[N].length||k(N,P)}function M(P,N,ee){ee&&(N=Ip(N)),(w(P,f.bools)||w(P,f.counts))&&typeof N=="string"&&(N=N==="true");let W=Array.isArray(N)?N.map(function(T){return j(P,T)}):j(P,N);return w(P,f.counts)&&(Q(W)||typeof W=="boolean")&&(W=Ms()),w(P,f.normalize)&&w(P,f.arrays)&&(Array.isArray(N)?W=N.map(T=>lt.normalize(T)):W=lt.normalize(N)),W}function j(P,N){
35
+ return!a["parse-positional-numbers"]&&P==="_"||!w(P,f.strings)&&!w(P,f.bools)&&!Array.isArray(N)&&(Oa(N)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${N}`)))||!Q(N)&&w(P,f.numbers))&&(N=Number(N)),N}function D(P){const N=Object.create(null);U(N,f.aliases,u),Object.keys(f.configs).forEach(function(ee){const W=P[ee]||N[ee];if(W)try{let T=null;const te=lt.resolve(lt.cwd(),W),z=f.configs[ee];if(typeof z=="function"){try{T=z(te)}catch(re){T=re}if(T instanceof Error){m=T;return}}else
36
+ T=lt.require(te);H(T)}catch(T){T.name==="PermissionDenied"?m=T:P[ee]&&(m=Error(y("Invalid JSON config file: %s",W)))}})}function H(P,N){Object.keys(P).forEach(function(ee){const W=P[ee],T=N?N+"."+ee:ee;typeof W=="object"&&W!==null&&!Array.isArray(W)&&a["dot-notation"]?H(W,T):(!A(v,T.split("."))||w(T,f.arrays)&&a["combine-arrays"])&&B(T,W)})}function Y(){typeof l<"u"&&l.forEach(function(P){H(P)})}function G(P,N){if(typeof c>"u")return;const ee=typeof c=="string"?c:"",W=lt.env();Object.keys(W).forEach(
37
+ function(T){if(ee===""||T.lastIndexOf(ee,0)===0){const te=T.split("__").map(function(z,re){return re===0&&(z=z.substring(ee.length)),hr(z)});(N&&f.configs[te.join(".")]||!N)&&!A(P,te)&&B(te.join("."),W[T])}})}function J(P){let N;const ee=new Set;Object.keys(P).forEach(function(W){if(!ee.has(W)&&(N=w(W,f.coercions),typeof N=="function"))try{const T=j(W,N(P[W]));[].concat(f.aliases[W]||[],W).forEach(te=>{ee.add(te),P[te]=T})}catch(T){m=T}})}function se(P){return f.keys.forEach(N=>{~N.indexOf(".")||
38
+ typeof P[N]>"u"&&(P[N]=void 0)}),P}function U(P,N,ee,W=!1){Object.keys(ee).forEach(function(T){A(P,T.split("."))||(V(P,T.split("."),ee[T]),W&&(b[T]=!0),(N[T]||[]).forEach(function(te){A(P,te.split("."))||V(P,te.split("."),ee[T])}))})}function A(P,N){let ee=P;a["dot-notation"]||(N=[N.join(".")]),N.slice(0,-1).forEach(function(T){ee=ee[T]||{}});const W=N[N.length-1];return typeof ee!="object"?!1:W in ee}function V(P,N,ee){let W=P;a["dot-notation"]||(N=[N.join(".")]),N.slice(0,-1).forEach(function(le){
39
+ le=Ca(le),typeof W=="object"&&W[le]===void 0&&(W[le]={}),typeof W[le]!="object"||Array.isArray(W[le])?(Array.isArray(W[le])?W[le].push({}):W[le]=[W[le],{}],W=W[le][W[le].length-1]):W=W[le]});const T=Ca(N[N.length-1]),te=w(N.join("."),f.arrays),z=Array.isArray(ee);let re=a["duplicate-arguments-array"];!re&&w(T,f.nargs)&&(re=!0,(!Q(W[T])&&f.nargs[T]===1||Array.isArray(W[T])&&W[T].length===f.nargs[T])&&(W[T]=void 0)),ee===Ms()?W[T]=Ms(W[T]):Array.isArray(W[T])?re&&te&&z?W[T]=a["flatten-duplicate-ar\
40
+ rays"]?W[T].concat(ee):(Array.isArray(W[T][0])?W[T]:[W[T]]).concat([ee]):!re&&!!te==!!z?W[T]=ee:W[T]=W[T].concat([ee]):W[T]===void 0&&te?W[T]=z?ee:[ee]:re&&!(W[T]===void 0||w(T,f.counts)||w(T,f.bools))?W[T]=[W[T],ee]:W[T]=ee}function x(...P){P.forEach(function(N){Object.keys(N||{}).forEach(function(ee){f.aliases[ee]||(f.aliases[ee]=[].concat(o[ee]||[]),f.aliases[ee].concat(ee).forEach(function(W){if(/-/.test(W)&&a["camel-case-expansion"]){const T=hr(W);T!==ee&&f.aliases[ee].indexOf(T)===-1&&(f.aliases[ee].
41
+ push(T),_[T]=!0)}}),f.aliases[ee].concat(ee).forEach(function(W){if(W.length>1&&/[A-Z]/.test(W)&&a["camel-case-expansion"]){const T=Aa(W,"-");T!==ee&&f.aliases[ee].indexOf(T)===-1&&(f.aliases[ee].push(T),_[T]=!0)}}),f.aliases[ee].forEach(function(W){f.aliases[W]=[ee].concat(f.aliases[ee].filter(function(T){return W!==T}))}))})})}function w(P,N){const ee=[].concat(f.aliases[P]||[],P),W=Object.keys(N),T=ee.find(te=>W.includes(te));return T?N[T]:!1}function R(P){const N=Object.keys(f);return[].concat(
42
+ N.map(W=>f[W])).some(function(W){return Array.isArray(W)?W.includes(P):W[P]})}function C(P,...N){return[].concat(...N).some(function(W){const T=P.match(W);return T&&R(T[1])})}function X(P){if(P.match(g)||!P.match(/^-[^-]+/))return!1;let N=!0,ee;const W=P.slice(1).split("");for(let T=0;T<W.length;T++){if(ee=P.slice(T+2),!R(W[T])){N=!1;break}if(W[T+1]&&W[T+1]==="="||ee==="-"||/[A-Za-z]/.test(W[T])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(ee)||W[T+1]&&W[T+1].match(/\W/))break}return N}function Z(P){return a["\
43
+ unknown-options-as-args"]&&ie(P)}function ie(P){return P=P.replace(/^-{3,}/,"--"),P.match(g)||X(P)?!1:!C(P,/^-+([^=]+?)=[\s\S]*$/,p,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(P){return!w(P,f.bools)&&!w(P,f.counts)&&`${P}`in u?u[P]:L(q(P))}function L(P){return{[Be.BOOLEAN]:!0,[Be.STRING]:"",[Be.NUMBER]:void 0,[Be.ARRAY]:[]}[P]}function q(P){let N=Be.BOOLEAN;return w(P,f.strings)?N=Be.STRING:w(P,f.numbers)?N=Be.NUMBER:w(P,f.bools)?N=Be.BOOLEAN:w(P,f.arrays)&&
44
+ (N=Be.ARRAY),N}function Q(P){return P===void 0}function ne(){Object.keys(f.counts).find(P=>w(P,f.arrays)?(m=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",P)),!0):w(P,f.nargs)?(m=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",P)),!0):!1)}return{aliases:Object.assign({},f.aliases),argv:Object.assign(E,v),configuration:a,defaulted:Object.assign({},b),error:m,newAliases:Object.assign({},_)}}}function Pp(t){const e=[],r=Object.create(null);let n=!0;for(Object.
45
+ keys(t).forEach(function(s){e.push([].concat(t[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,u){return u.indexOf(o)===a});const i=s.pop();i!==void 0&&typeof i=="string"&&(r[i]=s)}),r}function Ms(t){return t!==void 0?t+1:1}function Ca(t){return t==="__proto__"?"___proto___":t}function Ip(t){return typeof t==
46
+ "string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var qs,Hs,Us;const Pa=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Ia=(Hs=(qs=process==null?void 0:process.versions)===null||qs===void 0?void 0:qs.node)!==null&&Hs!==void 0?Hs:(Us=process==null?void 0:process.version)===null||Us===void 0?void 0:Us.slice(1);if(Ia&&Number(Ia.match(/^([^.]+)/)[1])<Pa)throw Error(`yargs parser supports a minimum Node.js versi\
47
+ on of ${Pa}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const Tp=process?process.env:{},Ta=new Cp({cwd:process.cwd,env:()=>Tp,format:da,normalize:Kh,resolve:Ue,require:t=>{if(typeof require<"u")return require(t);if(t.match(/\.json$/))return JSON.parse(Ps(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),pr=function(e,r){return Ta.parse(e.slice(),r).argv};pr.detailed=function(t,e){return Ta.parse(t.slice(),e)},pr.camelCase=
48
+ hr,pr.decamelize=Aa,pr.looksLikeNumber=Oa;function Na(){return Np()?0:1}function Np(){return jp()&&!process.defaultApp}function jp(){return!!process.versions.electron}function Lp(t){return t.slice(Na()+1)}function kp(){return process.argv[Na()]}class Oe extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Oe)}}const Dp={fs:{readFileSync:Ps,writeFile:Zh},format:da,resolve:Ue,exists:t=>{try{return la(t).isFile()}catch{return!1}}};
49
+ let We;class xp{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);const r=e.shift();let n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||
50
+ function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),We.format.apply(We.format,[this.cache[this.locale][r]||r].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),r=e.shift(),n=e.shift(),s=e.shift();let i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?r:n;this.
51
+ cache[this.locale][r]&&(o=this.cache[this.locale][r][s===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const a=[o];return~o.indexOf("%d")&&a.push(s),We.format.apply(We.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const r in e)Object.prototype.hasOwnProperty.call(
52
+ e,r)&&(this.cache[this.locale][r]=e[r])}_taggedLiteral(e,...r){let n="";return e.forEach(function(s,i){const o=r[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){const e=this,r=this.writeQueue[0],n=r.directory,s=r.locale,i=r.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);We.fs.writeFile(o,a,"utf-8",function(u){e.writeQueue.
53
+ shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(u)})}_readLocaleFile(){let e={};const r=this._resolveLocaleFile(this.directory,this.locale);try{We.fs.readFileSync&&(e=JSON.parse(We.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,r){let n=We.resolve(e,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){const s=We.resolve(
54
+ e,"./",r.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return We.exists(e)}}function Mp(t,e){We=e;const r=new xp(t);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}const qp=t=>Mp(t,Dp),Hp="require is not supported by ESM",ja="loading a directory of commands is not supported yet for ESM";let mr;try{mr=tp(import.meta.url)}catch{mr=process.cwd()}const Up=mr.substring(
55
+ 0,mr.lastIndexOf("node_modules")),Fp={assert:{notStrictEqual:Wh,strictEqual:Bh},cliui:Rp,findUp:Ap,getEnv:t=>process.env[t],inspect:ep,getCallerFile:()=>{throw new Oe(ja)},getProcessArgvBin:kp,mainFilename:Up||process.cwd(),Parser:pr,path:{basename:Jh,dirname:Cs,extname:Xh,relative:Yh,resolve:Ue},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<
56
+ "u"?process.stdout.columns:null},readFileSync:Ps,require:()=>{throw new Oe(Hp)},requireDirectory:()=>{throw new Oe(ja)},stringWidth:t=>[...t].length,y18n:qp({directory:Ue(mr,"../../../locales"),updateFiles:!1})};function Ke(t,e,r,n){r.assert.notStrictEqual(t,e,n)}function La(t,e){e.assert.strictEqual(typeof t,"string")}function Fr(t){return Object.keys(t)}function Ae(t){return!!t&&!!t.then&&typeof t.then=="function"}function gr(t){const r=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,
57
+ s=r.shift();if(!s)throw new Error(`No command found in: ${t}`);const i={cmd:s.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?i.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):i.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),i}const Vp=["first","second","third","fourth","fifth","sixth"];function ce(t,e,r){function n(){return typeof t=="object"?[{demanded:[],optional:[]},
58
+ t,e]:[gr(`cmd ${t}`),e,r]}try{let s=0;const[i,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();const l=a||u.length;if(l<i.demanded.length)throw new Oe(`Not enough arguments provided. Expected ${i.demanded.length} but received ${u.length}.`);const c=i.demanded.length+i.optional.length;if(l>c)throw new Oe(`Too many arguments provided. Expected max ${c} but received ${l}.`);i.demanded.forEach(d=>{const h=u.shift(),_=ka(h);d.cmd.filter(y=>y===_||y==="*").length===0&&Da(_,d.
59
+ cmd,s),s+=1}),i.optional.forEach(d=>{if(u.length===0)return;const h=u.shift(),_=ka(h);d.cmd.filter(y=>y===_||y==="*").length===0&&Da(_,d.cmd,s),s+=1})}catch(s){console.warn(s.stack)}}function ka(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function Da(t,e,r){throw new Oe(`Invalid ${Vp[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}class zp{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,r,n=!0,s=!1){if(ce("<array|funct\
60
+ ion> [boolean] [boolean] [boolean]",[e,r,n],arguments.length),Array.isArray(e)){for(let i=0;i<e.length;i++){if(typeof e[i]!="function")throw Error("middleware must be a function");const o=e[i];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e=="function"){const i=e;i.applyBeforeValidation=r,i.global=n,i.mutates=s,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,r){const n=this.yargs.getAliases();return this.globalMiddleware=
61
+ this.globalMiddleware.filter(s=>{const i=[...n[r]||[],r];return s.option?!i.includes(s.option):!0}),e.option=r,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}}function Gp(t){return t?t.map(e=>(e.applyBeforeValidation=!1,e)):[]}function yr(t,e,r,n){return r.reduce((s,i)=>{
62
+ if(i.applyBeforeValidation!==n)return s;if(i.mutates){if(i.applied)return s;i.applied=!0}if(Ae(s))return s.then(o=>Promise.all([o,i(o,e)])).then(([o,a])=>Object.assign(o,a));{const o=i(s,e);return Ae(o)?o.then(a=>Object.assign(s,a)):Object.assign(s,o)}},t)}function _r(t,e,r=n=>{throw n}){try{const n=Bp(t)?t():t;return Ae(n)?n.then(s=>e(s)):e(n)}catch(n){return r(n)}}function Bp(t){return typeof t=="function"}function Wp(t){if(typeof require>"u")return null;for(let e=0,r=Object.keys(require.cache),
63
+ n;e<r.length;e++)if(n=require.cache[r[e]],n.exports===t)return n;return null}const Kt=/(^\*)|(^\$0)/;class Kp{constructor(e,r,n,s){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=s,this.usage=e,this.globalMiddleware=n,this.validation=r}addDirectory(e,r,n,s){s=s||{},typeof s.recurse!="boolean"&&(s.recurse=!1),Array.isArray(s.extensions)||(s.extensions=["js"]);const i=typeof s.visit=="function"?s.visit:o=>o;s.visit=(o,a,u)=>{const l=i(o,a,u);if(l){if(this.requireCache.
64
+ has(a))return l;this.requireCache.add(a),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},e,s)}addHandler(e,r,n,s,i,o){let a=[];const u=Gp(i);if(s=s||(()=>{}),Array.isArray(e))if(Xp(e))[e,...a]=e;else for(const l of e)this.addHandler(l);else if(Qp(e)){let l=Array.isArray(e.command)||typeof e.command=="string"?e.command:this.moduleName(e);e.aliases&&(l=[].concat(l).concat(e.aliases)),this.addHandler(l,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);
65
+ return}else if(xa(n)){this.addHandler([e].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e=="string"){const l=gr(e);a=a.map(h=>gr(h).cmd);let c=!1;const d=[l.cmd].concat(a).filter(h=>Kt.test(h)?(c=!0,!1):!0);d.length===0&&c&&d.push("$0"),c&&(l.cmd=d[0],a=d.slice(1),e=e.replace(Kt,l.cmd)),a.forEach(h=>{this.aliasMap[h]=l.cmd}),r!==!1&&this.usage.command(e,r,c,a,o),this.handlers[l.cmd]={original:e,description:r,handler:s,builder:n||{},middlewares:u,deprecated:o,demanded:l.
66
+ demanded,optional:l.optional},c&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,r,n,s,i,o){const a=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),c=!e;e&&(u.commands.push(e),u.fullCommands.push(a.original));const d=this.applyBuilderUpdateUsageAndParse(
67
+ c,a,r,n.aliases,l,s,i,o);return Ae(d)?d.then(h=>this.applyMiddlewareAndGetResult(c,a,h.innerArgv,u,i,h.aliases,r)):this.applyMiddlewareAndGetResult(c,a,d.innerArgv,u,i,d.aliases,r)}applyBuilderUpdateUsageAndParse(e,r,n,s,i,o,a,u){const l=r.builder;let c=n;if(Fs(l)){n.getInternalMethods().getUsageInstance().freeze();const d=l(n.getInternalMethods().reset(s),u);if(Ae(d))return d.then(h=>(c=pm(h)?h:n,this.parseAndUpdateUsage(e,r,c,i,o,a)))}else Jp(l)&&(n.getInternalMethods().getUsageInstance().freeze(),
68
+ c=n.getInternalMethods().reset(s),Object.keys(r.builder).forEach(d=>{c.option(d,l[d])}));return this.parseAndUpdateUsage(e,r,c,i,o,a)}parseAndUpdateUsage(e,r,n,s,i,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(s,r),r.description);const a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,o);return Ae(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):
69
+ {aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,r){const n=Kt.test(r.original)?r.original.replace(Kt,"").trim():r.original,s=e.filter(i=>!Kt.test(i));return s.push(n),`$0 ${s.join(" ")}`}handleValidationAndGetResult(e,r,n,s,i,o,a,u){if(!o.getInternalMethods().getHasOutput()){const l=o.getInternalMethods().runValidation(
70
+ i,u,o.parsed.error,e);n=_r(n,c=>(l(c),c))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();const l=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,l,!1,!1),n=yr(n,o,a,!1),n=_r(n,c=>{const d=r.handler(c);return Ae(d)?d.then(()=>c):c}),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ae(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(c=>{try{o.getInternalMethods().getUsageInstance().fail(null,c)}catch{}})}
71
+ return e||(s.commands.pop(),s.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,r,n,s,i,o,a){let u={};if(i)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,s,a));const l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),c=yr(n,a,l,!0);return Ae(c)?c.then(d=>this.handleValidationAndGetResult(e,r,d,s,o,a,l,u)):this.handleValidationAndGetResult(e,r,c,s,o,a,l,u)}populatePositionals(e,r,n,s){r._=r._.slice(n.commands.length);const i=e.demanded.slice(
72
+ 0),o=e.optional.slice(0),a={};for(this.validation.positionalCount(i.length,r._.length);i.length;){const u=i.shift();this.populatePositional(u,r,a)}for(;o.length;){const u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(e.original),s),a}populatePositional(e,r,n){const s=e.cmd[0];e.variadic?n[s]=r._.splice(0).map(String):r._.length&&(n[s]=[String(r._.shift())])}cmdToParseOptions(e){const r={array:[],default:{},
73
+ alias:{},demand:{}},n=gr(e);return n.demanded.forEach(s=>{const[i,...o]=s.cmd;s.variadic&&(r.array.push(i),r.default[i]=[]),r.alias[i]=o,r.demand[i]=!0}),n.optional.forEach(s=>{const[i,...o]=s.cmd;s.variadic&&(r.array.push(i),r.default[i]=[]),r.alias[i]=o}),r}postProcessPositionals(e,r,n,s){const i=Object.assign({},s.getOptions());i.default=Object.assign(n.default,i.default);for(const l of Object.keys(n.alias))i.alias[l]=(i.alias[l]||[]).concat(n.alias[l]);i.array=i.array.concat(n.array),i.config=
74
+ {};const o=[];if(Object.keys(r).forEach(l=>{r[l].map(c=>{i.configuration["unknown-options-as-args"]&&(i.key[l]=!0),o.push(`--${l}`),o.push(c)})}),!o.length)return;const a=Object.assign({},i.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},i,{configuration:a}));if(u.error)s.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{const l=Object.keys(r);Object.keys(r).forEach(c=>{l.push(...u.aliases[c])}),Object.keys(u.argv).forEach(c=>{l.includes(c)&&
75
+ (r[c]||(r[c]=u.argv[c]),!this.isInConfigs(s,c)&&!this.isDefaulted(s,c)&&Object.prototype.hasOwnProperty.call(e,c)&&Object.prototype.hasOwnProperty.call(u.argv,c)&&(Array.isArray(e[c])||Array.isArray(u.argv[c]))?e[c]=[].concat(e[c],u.argv[c]):e[c]=u.argv[c])})}}isDefaulted(e,r){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(e,r){const{configObjects:n}=e.getOptions();return n.some(s=>Object.
76
+ prototype.hasOwnProperty.call(s,r))||n.some(s=>Object.prototype.hasOwnProperty.call(s,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const n=Kt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}const r=this.defaultCommand.builder;if(Fs(r))return r(e,!0);xa(r)||Object.keys(r).forEach(
77
+ n=>{e.option(n,r[n])})}moduleName(e){const r=Wp(e);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(r.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:r,desc:n}){for(const s of[e,r,n]){if(typeof s=="string"||s===!1)return s;Ke(s,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){
78
+ const e=this.frozens.pop();Ke(e,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function Yp(t,e,r,n){return new Kp(t,e,r,n)}function xa(t){return typeof t=="object"&&!!t.builder&&typeof t.handler=="function"}function Xp(t){return t.every(e=>typeof e=="string")}function Fs(t){return typeof t=="function"}function Jp(t){return typeof t=="\
79
+ object"}function Qp(t){return typeof t=="object"&&!Array.isArray(t)}function $r(t={},e=()=>!0){const r={};return Fr(t).forEach(n=>{e(n,t[n])&&(r[n]=t[n])}),r}function vr(t){typeof process>"u"||[process.stdout,process.stderr].forEach(e=>{const r=e;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(t)})}function Zp(t){return typeof t=="boolean"}function em(t,e){const r=e.y18n.__,n={},s=[];n.failFn=function(M){s.push(M)};let i=null,o=null,a=!0;n.showHelpOnFail=function(M=!0,j){
80
+ const[D,H]=typeof M=="string"?[!0,M]:[M,j];return t.getInternalMethods().isGlobalContext()&&(o=H),i=H,a=D,n};let u=!1;n.fail=function(M,j){const D=t.getInternalMethods().getLoggerInstance();if(s.length)for(let H=s.length-1;H>=0;--H){const Y=s[H];if(Zp(Y)){if(j)throw j;if(M)throw Error(M)}else Y(M,j,n)}else{if(t.getExitProcess()&&vr(!0),!u){u=!0,a&&(t.showHelp("error"),D.error()),(M||j)&&D.error(M||j);const H=i||o;H&&((M||j)&&D.error(""),D.error(H))}if(j=j||new Oe(M),t.getExitProcess())return t.exit(
81
+ 1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,j);throw j}};let l=[],c=!1;n.usage=(k,M)=>k===null?(c=!0,l=[],n):(c=!1,l.push([k,M||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let d=[];n.example=(k,M)=>{d.push([k,M||""])};let h=[];n.command=function(M,j,D,H,Y=!1){D&&(h=h.map(G=>(G[2]=!1,G))),h.push([M,j||"",D,H,Y])},n.getCommands=()=>h;let _={};n.describe=function(M,j){Array.isArray(M)?M.forEach(D=>{n.describe(D,j)}):typeof M==
82
+ "object"?Object.keys(M).forEach(D=>{n.describe(D,M[D])}):_[M]=j},n.getDescriptions=()=>_;let b=[];n.epilog=k=>{b.push(k)};let y=!1,f;n.wrap=k=>{y=!0,f=k},n.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(y||(f=I(),y=!0),f);const g="__yargsString__:";n.deferY18nLookup=k=>g+k,n.help=function(){if($)return $;m();const M=t.customScriptName?t.$0:e.path.basename(t.$0),j=t.getDemandedOptions(),D=t.getDemandedCommands(),H=t.getDeprecatedOptions(),Y=t.getGroups(),G=t.getOptions();let J=[];J=J.concat(Object.
83
+ keys(_)),J=J.concat(Object.keys(j)),J=J.concat(Object.keys(D)),J=J.concat(Object.keys(G.default)),J=J.filter(E),J=Object.keys(J.reduce((C,X)=>(X!=="_"&&(C[X]=!0),C),{}));const se=n.getWrap(),U=e.cliui({width:se,wrap:!!se});if(!c){if(l.length)l.forEach(C=>{U.div({text:`${C[0].replace(/\$0/g,M)}`}),C[1]&&U.div({text:`${C[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let C=null;D._?C=`${M} <${r("command")}>
84
84
  `:C=`${M} [${r("command")}]
85
- `,U.div(`${C}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));const C=t.getInternalMethods().getContext(),Y=C.commands.length?`${C.commands.join(" ")} `:"";t.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((ie,oe)=>ie[0].localeCompare(oe[0])));const Q=M?`${M} `:"";h.forEach(ie=>{const oe=`${Q}${Y}${ie[0].replace(/^\$0 ?/,"")}`;U.span({text:oe,padding:[0,2,0,2],width:p(h,se,`${M}${Y}`)+4},{text:ie[1]});const L=[];ie[2]&&L.push(`[${r("default")}]`),ie[3]&&
86
- ie[3].length&&L.push(`[${r("aliases:")} ${ie[3].join(", ")}]`),ie[4]&&(typeof ie[4]=="string"?L.push(`[${r("deprecated: %s",ie[4])}]`):L.push(`[${r("deprecated")}]`)),L.length?U.div({text:L.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}const A=(Object.keys(G.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);X=X.filter(C=>!t.parsed.newAliases[C]&&A.every(Y=>(G.alias[Y]||[]).indexOf(C)===-1));const V=r("Options:");K[V]||(K[V]=[]),v(X,G.alias,K,V);const x=C=>/^--/.test(Fr(C)),
87
- w=Object.keys(K).filter(C=>K[C].length>0).map(C=>{const Y=K[C].filter(E).map(Q=>{if(A.includes(Q))return Q;for(let ie=0,oe;(oe=A[ie])!==void 0;ie++)if((G.alias[oe]||[]).includes(Q))return oe;return Q});return{groupName:C,normalizedKeys:Y}}).filter(({normalizedKeys:C})=>C.length>0).map(({groupName:C,normalizedKeys:Y})=>{const Q=Y.reduce((ie,oe)=>(ie[oe]=[oe].concat(G.alias[oe]||[]).map(L=>C===n.getPositionalGroupName()?L:(/^[0-9]$/.test(L)?G.boolean.includes(oe)?"-":"--":L.length>1?"--":"-")+L).sort(
88
- (L,q)=>x(L)===x(q)?0:x(L)?1:-1).join(", "),ie),{});return{groupName:C,normalizedKeys:Y,switches:Q}});if(w.filter(({groupName:C})=>C!==n.getPositionalGroupName()).some(({normalizedKeys:C,switches:Y})=>!C.every(Q=>x(Y[Q])))&&w.filter(({groupName:C})=>C!==n.getPositionalGroupName()).forEach(({normalizedKeys:C,switches:Y})=>{C.forEach(Q=>{x(Y[Q])&&(Y[Q]=em(Y[Q],4))})}),w.forEach(({groupName:C,normalizedKeys:Y,switches:Q})=>{U.div(C),Y.forEach(ie=>{const oe=Q[ie];let L=y[ie]||"",q=null;L.includes(g)&&
89
- (L=r(L.substring(g.length))),G.boolean.includes(ie)&&(q=`[${r("boolean")}]`),G.count.includes(ie)&&(q=`[${r("count")}]`),G.string.includes(ie)&&(q=`[${r("string")}]`),G.normalize.includes(ie)&&(q=`[${r("string")}]`),G.array.includes(ie)&&(q=`[${r("array")}]`),G.number.includes(ie)&&(q=`[${r("number")}]`);const J=N=>typeof N=="string"?`[${r("deprecated: %s",N)}]`:`[${r("deprecated")}]`,ne=[ie in H?J(H[ie]):null,q,ie in j?`[${r("required")}]`:null,G.choices&&G.choices[ie]?`[${r("choices:")} ${n.stringifiedValues(
90
- G.choices[ie])}]`:null,S(G.default[ie],G.defaultDescription[ie])].filter(Boolean).join(" ");U.span({text:Fr(oe),padding:[0,2,0,2+xa(oe)],width:p(Q,se)+4},L);const P=t.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;ne&&!P?U.div({text:ne,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),d.length&&(U.div(r("Examples:")),d.forEach(C=>{C[0]=C[0].replace(/\$0/g,M)}),d.forEach(C=>{C[1]===""?U.div({text:C[0],padding:[0,2,0,2]}):U.div({text:C[0],padding:[0,2,0,2],width:p(d,se)+4},{text:C[1]})}),
91
- U.div()),b.length>0){const C=b.map(Y=>Y.replace(/\$0/g,M)).join(`
85
+ `,U.div(`${C}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));const C=t.getInternalMethods().getContext(),X=C.commands.length?`${C.commands.join(" ")} `:"";t.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((ie,oe)=>ie[0].localeCompare(oe[0])));const Z=M?`${M} `:"";h.forEach(ie=>{const oe=`${Z}${X}${ie[0].replace(/^\$0 ?/,"")}`;U.span({text:oe,padding:[0,2,0,2],width:p(h,se,`${M}${X}`)+4},{text:ie[1]});const L=[];ie[2]&&L.push(`[${r("default")}]`),ie[3]&&
86
+ ie[3].length&&L.push(`[${r("aliases:")} ${ie[3].join(", ")}]`),ie[4]&&(typeof ie[4]=="string"?L.push(`[${r("deprecated: %s",ie[4])}]`):L.push(`[${r("deprecated")}]`)),L.length?U.div({text:L.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}const A=(Object.keys(G.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);J=J.filter(C=>!t.parsed.newAliases[C]&&A.every(X=>(G.alias[X]||[]).indexOf(C)===-1));const V=r("Options:");Y[V]||(Y[V]=[]),v(J,G.alias,Y,V);const x=C=>/^--/.test(Vr(C)),
87
+ w=Object.keys(Y).filter(C=>Y[C].length>0).map(C=>{const X=Y[C].filter(E).map(Z=>{if(A.includes(Z))return Z;for(let ie=0,oe;(oe=A[ie])!==void 0;ie++)if((G.alias[oe]||[]).includes(Z))return oe;return Z});return{groupName:C,normalizedKeys:X}}).filter(({normalizedKeys:C})=>C.length>0).map(({groupName:C,normalizedKeys:X})=>{const Z=X.reduce((ie,oe)=>(ie[oe]=[oe].concat(G.alias[oe]||[]).map(L=>C===n.getPositionalGroupName()?L:(/^[0-9]$/.test(L)?G.boolean.includes(oe)?"-":"--":L.length>1?"--":"-")+L).sort(
88
+ (L,q)=>x(L)===x(q)?0:x(L)?1:-1).join(", "),ie),{});return{groupName:C,normalizedKeys:X,switches:Z}});if(w.filter(({groupName:C})=>C!==n.getPositionalGroupName()).some(({normalizedKeys:C,switches:X})=>!C.every(Z=>x(X[Z])))&&w.filter(({groupName:C})=>C!==n.getPositionalGroupName()).forEach(({normalizedKeys:C,switches:X})=>{C.forEach(Z=>{x(X[Z])&&(X[Z]=tm(X[Z],4))})}),w.forEach(({groupName:C,normalizedKeys:X,switches:Z})=>{U.div(C),X.forEach(ie=>{const oe=Z[ie];let L=_[ie]||"",q=null;L.includes(g)&&
89
+ (L=r(L.substring(g.length))),G.boolean.includes(ie)&&(q=`[${r("boolean")}]`),G.count.includes(ie)&&(q=`[${r("count")}]`),G.string.includes(ie)&&(q=`[${r("string")}]`),G.normalize.includes(ie)&&(q=`[${r("string")}]`),G.array.includes(ie)&&(q=`[${r("array")}]`),G.number.includes(ie)&&(q=`[${r("number")}]`);const Q=N=>typeof N=="string"?`[${r("deprecated: %s",N)}]`:`[${r("deprecated")}]`,ne=[ie in H?Q(H[ie]):null,q,ie in j?`[${r("required")}]`:null,G.choices&&G.choices[ie]?`[${r("choices:")} ${n.stringifiedValues(
90
+ G.choices[ie])}]`:null,S(G.default[ie],G.defaultDescription[ie])].filter(Boolean).join(" ");U.span({text:Vr(oe),padding:[0,2,0,2+Ma(oe)],width:p(Z,se)+4},L);const P=t.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;ne&&!P?U.div({text:ne,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),d.length&&(U.div(r("Examples:")),d.forEach(C=>{C[0]=C[0].replace(/\$0/g,M)}),d.forEach(C=>{C[1]===""?U.div({text:C[0],padding:[0,2,0,2]}):U.div({text:C[0],padding:[0,2,0,2],width:p(d,se)+4},{text:C[1]})}),
91
+ U.div()),b.length>0){const C=b.map(X=>X.replace(/\$0/g,M)).join(`
92
92
  `);U.div(`${C}
93
- `)}return U.toString().replace(/\s*$/,"")};function p(k,M,j){let D=0;return Array.isArray(k)||(k=Object.values(k).map(H=>[H])),k.forEach(H=>{D=Math.max(e.stringWidth(j?`${j} ${Fr(H[0])}`:Fr(H[0]))+xa(H[0]),D)}),M&&(D=Math.min(D,parseInt((M*.5).toString(),10))),D}function m(){const k=t.getDemandedOptions(),M=t.getOptions();(Object.keys(M.alias)||[]).forEach(j=>{M.alias[j].forEach(D=>{y[D]&&n.describe(j,y[D]),D in k&&t.demandOption(j,k[D]),M.boolean.includes(D)&&t.boolean(j),M.count.includes(D)&&t.
94
- count(j),M.string.includes(D)&&t.string(j),M.normalize.includes(D)&&t.normalize(j),M.array.includes(D)&&t.array(j),M.number.includes(D)&&t.number(j)})})}let $;n.cacheHelpMessage=function(){$=this.help()},n.clearCachedHelpMessage=function(){$=void 0},n.hasCachedHelpMessage=function(){return!!$};function v(k,M,j,D){let H=[],K=null;return Object.keys(j).forEach(G=>{H=H.concat(j[G])}),k.forEach(G=>{K=[G].concat(M[G]),K.some(X=>H.indexOf(X)!==-1)||j[D].push(G)}),H}function E(k){return t.getOptions().
95
- hiddenOptions.indexOf(k)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}n.showHelp=k=>{const M=t.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:M[k])(n.help())},n.functionDescription=k=>["(",k.name?e.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(M,j){let D="";const H=j||", ",K=[].concat(M);return!M||!K.length||K.forEach(G=>{D.length&&(D+=H),D+=JSON.stringify(G)}),D};function S(k,M){let j=`[${r("default:")} `;if(k===
96
- void 0&&!M)return null;if(M)j+=M;else switch(typeof k){case"string":j+=`"${k}"`;break;case"object":j+=JSON.stringify(k);break;default:j+=k}return`${j}]`}function I(){return e.process.stdColumns?Math.min(80,e.process.stdColumns):80}let F=null;n.version=k=>{F=k},n.showVersion=k=>{const M=t.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:M[k])(F)},n.reset=function(M){return i=null,c=!1,l=[],u=!1,b=[],d=[],h=[],y=$r(y,j=>!M[j]),n};const B=[];return n.freeze=function(){
97
- B.push({failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:b,examples:d,commands:h,descriptions:y})},n.unfreeze=function(M=!1){const j=B.pop();j&&(M?(y={...j.descriptions,...y},h=[...j.commands,...h],l=[...j.usages,...l],d=[...j.examples,...d],b=[...j.epilogs,...b]):{failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:b,examples:d,commands:h,descriptions:y}=j)},n}function Fs(t){return typeof t=="object"}function em(t,e){return Fs(t)?{text:t.text,indentation:t.indentation+e}:
98
- {text:t,indentation:e}}function xa(t){return Fs(t)?t.indentation:0}function Fr(t){return Fs(t)?t.text:t}const tm=`###-begin-{{app_name}}-completions-###
93
+ `)}return U.toString().replace(/\s*$/,"")};function p(k,M,j){let D=0;return Array.isArray(k)||(k=Object.values(k).map(H=>[H])),k.forEach(H=>{D=Math.max(e.stringWidth(j?`${j} ${Vr(H[0])}`:Vr(H[0]))+Ma(H[0]),D)}),M&&(D=Math.min(D,parseInt((M*.5).toString(),10))),D}function m(){const k=t.getDemandedOptions(),M=t.getOptions();(Object.keys(M.alias)||[]).forEach(j=>{M.alias[j].forEach(D=>{_[D]&&n.describe(j,_[D]),D in k&&t.demandOption(j,k[D]),M.boolean.includes(D)&&t.boolean(j),M.count.includes(D)&&t.
94
+ count(j),M.string.includes(D)&&t.string(j),M.normalize.includes(D)&&t.normalize(j),M.array.includes(D)&&t.array(j),M.number.includes(D)&&t.number(j)})})}let $;n.cacheHelpMessage=function(){$=this.help()},n.clearCachedHelpMessage=function(){$=void 0},n.hasCachedHelpMessage=function(){return!!$};function v(k,M,j,D){let H=[],Y=null;return Object.keys(j).forEach(G=>{H=H.concat(j[G])}),k.forEach(G=>{Y=[G].concat(M[G]),Y.some(J=>H.indexOf(J)!==-1)||j[D].push(G)}),H}function E(k){return t.getOptions().
95
+ hiddenOptions.indexOf(k)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}n.showHelp=k=>{const M=t.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:M[k])(n.help())},n.functionDescription=k=>["(",k.name?e.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(M,j){let D="";const H=j||", ",Y=[].concat(M);return!M||!Y.length||Y.forEach(G=>{D.length&&(D+=H),D+=JSON.stringify(G)}),D};function S(k,M){let j=`[${r("default:")} `;if(k===
96
+ void 0&&!M)return null;if(M)j+=M;else switch(typeof k){case"string":j+=`"${k}"`;break;case"object":j+=JSON.stringify(k);break;default:j+=k}return`${j}]`}function I(){return e.process.stdColumns?Math.min(80,e.process.stdColumns):80}let F=null;n.version=k=>{F=k},n.showVersion=k=>{const M=t.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:M[k])(F)},n.reset=function(M){return i=null,u=!1,l=[],c=!1,b=[],d=[],h=[],_=$r(_,j=>!M[j]),n};const B=[];return n.freeze=function(){
97
+ B.push({failMessage:i,failureOutput:u,usages:l,usageDisabled:c,epilogs:b,examples:d,commands:h,descriptions:_})},n.unfreeze=function(M=!1){const j=B.pop();j&&(M?(_={...j.descriptions,..._},h=[...j.commands,...h],l=[...j.usages,...l],d=[...j.examples,...d],b=[...j.epilogs,...b]):{failMessage:i,failureOutput:u,usages:l,usageDisabled:c,epilogs:b,examples:d,commands:h,descriptions:_}=j)},n}function Vs(t){return typeof t=="object"}function tm(t,e){return Vs(t)?{text:t.text,indentation:t.indentation+e}:
98
+ {text:t,indentation:e}}function Ma(t){return Vs(t)?t.indentation:0}function Vr(t){return Vs(t)?t.text:t}const rm=`###-begin-{{app_name}}-completions-###
99
99
  #
100
100
  # yargs command completion script
101
101
  #
@@ -123,7 +123,7 @@ _{{app_name}}_yargs_completions()
123
123
  }
124
124
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
125
125
  ###-end-{{app_name}}-completions-###
126
- `,rm=`#compdef {{app_name}}
126
+ `,nm=`#compdef {{app_name}}
127
127
  ###-begin-{{app_name}}-completions-###
128
128
  #
129
129
  # yargs command completion script
@@ -142,92 +142,92 @@ _{{app_name}}_yargs_completions()
142
142
  }
143
143
  compdef _{{app_name}}_yargs_completions {{app_name}}
144
144
  ###-end-{{app_name}}-completions-###
145
- `;class nm{constructor(e,r,n,s){var i,o,a;this.yargs=e,this.usage=r,this.command=n,this.shim=s,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(e,r,n,s){const i=this.command.getCommandHandlers();for(let a=0,c=e.
146
- length;a<c;++a)if(i[e[a]]&&i[e[a]].builder){const l=i[e[a]].builder;if(Us(l)){this.indexAfterLastReset=a+1;const u=this.yargs.getInternalMethods().reset();return l(u,!0),u.argv}}const o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,r,n),this.choicesFromOptionsCompletions(o,e,r,n),this.choicesFromPositionalsCompletions(o,e,r,n),s(null,o)}commandCompletions(e,r,n){const s=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&s[s.length-1]!==n&&!this.previousArgHasChoices(
147
- r)&&this.usage.getCommands().forEach(i=>{const o=gr(i[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)e.push(o);else{const a=i[1]||"";e.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(e,r,n,s){if((s.match(/^-/)||s===""&&e.length===0)&&!this.previousArgHasChoices(r)){const i=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach(a=>{const c=!!i.configuration["boolean-negation"]&&i.boolean.includes(a);!o.includes(a)&&!i.hiddenOptions.
148
- includes(a)&&!this.argsContainKey(r,a,c)&&this.completeOptionKey(a,e,s,c&&!!i.default[a])})}}choicesFromOptionsCompletions(e,r,n,s){if(this.previousArgHasChoices(r)){const i=this.getPreviousArgChoices(r);i&&i.length>0&&e.push(...i.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(e,r,n,s){if(s===""&&e.length>0&&this.previousArgHasChoices(r))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().
149
- getContext().commands.length+1),a=i[n._.length-o-1];if(!a)return;const c=this.yargs.getOptions().choices[a]||[];for(const l of c)l.startsWith(s)&&e.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let r=e[e.length-1],n="";if(!r.startsWith("-")&&e.length>1&&(n=r,r=e[e.length-2]),!r.startsWith("-"))return;const s=r.replace(/^-+/,""),i=this.yargs.getOptions(),o=[s,...this.yargs.getAliases()[s]||[]];let a;for(const c of o)if(Object.prototype.hasOwnProperty.call(i.key,c)&&Array.
150
- isArray(i.choices[c])){a=i.choices[c];break}if(a)return a.filter(c=>!n||c.startsWith(n))}previousArgHasChoices(e){const r=this.getPreviousArgChoices(e);return r!==void 0&&r.length>0}argsContainKey(e,r,n){const s=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(s(r)||n&&s(`no-${r}`))return!0;if(this.aliases){for(const i of this.aliases[r])if(s(i))return!0}return!1}completeOptionKey(e,r,n,s){var i,o,a,c;let l=e;if(this.zshShell){const y=this.usage.getDescriptions(),b=(o=(i=this===null||this===
151
- void 0?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.find(g=>{const p=y[g];return typeof p=="string"&&p.length>0}),_=b?y[b]:void 0,f=(c=(a=y[e])!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:"";l=`${e.replace(/:/g,"\\:")}:${f.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const u=y=>/^--/.test(y),d=y=>/^[^0-9]$/.test(y),h=!u(n)&&d(e)?"-":"--";r.push(h+l),s&&r.push(h+"no-"+l)}customCompletion(e,r,n,s){if(Ke(this.customCompletionFunction,null,this.
152
- shim),im(this.customCompletionFunction)){const i=this.customCompletionFunction(n,r);return Ae(i)?i.then(o=>{this.shim.process.nextTick(()=>{s(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{s(o,void 0)})}):s(null,i)}else return om(this.customCompletionFunction)?this.customCompletionFunction(n,r,(i=s)=>this.defaultCompletion(e,r,n,i),i=>{s(null,i)}):this.customCompletionFunction(n,r,i=>{s(null,i)})}getCompletion(e,r){const n=e.length?e[e.length-1]:"",s=this.yargs.parse(e,!0),i=this.customCompletionFunction?
153
- o=>this.customCompletion(e,o,n,r):o=>this.defaultCompletion(e,o,n,r);return Ae(s)?s.then(i):i(s)}generateCompletionScript(e,r){let n=this.zshShell?rm:tm;const s=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,s),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function sm(t,e,r,n){return new nm(t,e,r,n)}function im(t){return t.length<3}function om(t){
154
- return t.length>3}function am(t,e){if(t.length===0)return e.length;if(e.length===0)return t.length;const r=[];let n;for(n=0;n<=e.length;n++)r[n]=[n];let s;for(s=0;s<=t.length;s++)r[0][s]=s;for(n=1;n<=e.length;n++)for(s=1;s<=t.length;s++)e.charAt(n-1)===t.charAt(s-1)?r[n][s]=r[n-1][s-1]:n>1&&s>1&&e.charAt(n-2)===t.charAt(s-1)&&e.charAt(n-1)===t.charAt(s-2)?r[n][s]=r[n-2][s-2]+1:r[n][s]=Math.min(r[n-1][s-1]+1,Math.min(r[n][s-1]+1,r[n-1][s]+1));return r[e.length][t.length]}const Ma=["$0","--","_"];
155
- function cm(t,e,r){const n=r.y18n.__,s=r.y18n.__n,i={};i.nonOptionCount=function(d){const h=t.getDemandedCommands(),b=d._.length+(d["--"]?d["--"].length:0)-t.getInternalMethods().getContext().commands.length;h._&&(b<h._.min||b>h._.max)&&(b<h._.min?h._.minMsg!==void 0?e.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,b.toString()).replace(/\$1/,h._.min.toString()):null):e.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",b,b.toString(),
145
+ `;class sm{constructor(e,r,n,s){var i,o,a;this.yargs=e,this.usage=r,this.command=n,this.shim=s,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(e,r,n,s){const i=this.command.getCommandHandlers();for(let a=0,u=e.
146
+ length;a<u;++a)if(i[e[a]]&&i[e[a]].builder){const l=i[e[a]].builder;if(Fs(l)){this.indexAfterLastReset=a+1;const c=this.yargs.getInternalMethods().reset();return l(c,!0),c.argv}}const o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,r,n),this.choicesFromOptionsCompletions(o,e,r,n),this.choicesFromPositionalsCompletions(o,e,r,n),s(null,o)}commandCompletions(e,r,n){const s=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&s[s.length-1]!==n&&!this.previousArgHasChoices(
147
+ r)&&this.usage.getCommands().forEach(i=>{const o=gr(i[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)e.push(o);else{const a=i[1]||"";e.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(e,r,n,s){if((s.match(/^-/)||s===""&&e.length===0)&&!this.previousArgHasChoices(r)){const i=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach(a=>{const u=!!i.configuration["boolean-negation"]&&i.boolean.includes(a);!o.includes(a)&&!i.hiddenOptions.
148
+ includes(a)&&!this.argsContainKey(r,a,u)&&this.completeOptionKey(a,e,s,u&&!!i.default[a])})}}choicesFromOptionsCompletions(e,r,n,s){if(this.previousArgHasChoices(r)){const i=this.getPreviousArgChoices(r);i&&i.length>0&&e.push(...i.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(e,r,n,s){if(s===""&&e.length>0&&this.previousArgHasChoices(r))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().
149
+ getContext().commands.length+1),a=i[n._.length-o-1];if(!a)return;const u=this.yargs.getOptions().choices[a]||[];for(const l of u)l.startsWith(s)&&e.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let r=e[e.length-1],n="";if(!r.startsWith("-")&&e.length>1&&(n=r,r=e[e.length-2]),!r.startsWith("-"))return;const s=r.replace(/^-+/,""),i=this.yargs.getOptions(),o=[s,...this.yargs.getAliases()[s]||[]];let a;for(const u of o)if(Object.prototype.hasOwnProperty.call(i.key,u)&&Array.
150
+ isArray(i.choices[u])){a=i.choices[u];break}if(a)return a.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(e){const r=this.getPreviousArgChoices(e);return r!==void 0&&r.length>0}argsContainKey(e,r,n){const s=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(s(r)||n&&s(`no-${r}`))return!0;if(this.aliases){for(const i of this.aliases[r])if(s(i))return!0}return!1}completeOptionKey(e,r,n,s){var i,o,a,u;let l=e;if(this.zshShell){const _=this.usage.getDescriptions(),b=(o=(i=this===null||this===
151
+ void 0?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.find(g=>{const p=_[g];return typeof p=="string"&&p.length>0}),y=b?_[b]:void 0,f=(u=(a=_[e])!==null&&a!==void 0?a:y)!==null&&u!==void 0?u:"";l=`${e.replace(/:/g,"\\:")}:${f.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const c=_=>/^--/.test(_),d=_=>/^[^0-9]$/.test(_),h=!c(n)&&d(e)?"-":"--";r.push(h+l),s&&r.push(h+"no-"+l)}customCompletion(e,r,n,s){if(Ke(this.customCompletionFunction,null,this.
152
+ shim),om(this.customCompletionFunction)){const i=this.customCompletionFunction(n,r);return Ae(i)?i.then(o=>{this.shim.process.nextTick(()=>{s(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{s(o,void 0)})}):s(null,i)}else return am(this.customCompletionFunction)?this.customCompletionFunction(n,r,(i=s)=>this.defaultCompletion(e,r,n,i),i=>{s(null,i)}):this.customCompletionFunction(n,r,i=>{s(null,i)})}getCompletion(e,r){const n=e.length?e[e.length-1]:"",s=this.yargs.parse(e,!0),i=this.customCompletionFunction?
153
+ o=>this.customCompletion(e,o,n,r):o=>this.defaultCompletion(e,o,n,r);return Ae(s)?s.then(i):i(s)}generateCompletionScript(e,r){let n=this.zshShell?nm:rm;const s=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,s),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function im(t,e,r,n){return new sm(t,e,r,n)}function om(t){return t.length<3}function am(t){
154
+ return t.length>3}function cm(t,e){if(t.length===0)return e.length;if(e.length===0)return t.length;const r=[];let n;for(n=0;n<=e.length;n++)r[n]=[n];let s;for(s=0;s<=t.length;s++)r[0][s]=s;for(n=1;n<=e.length;n++)for(s=1;s<=t.length;s++)e.charAt(n-1)===t.charAt(s-1)?r[n][s]=r[n-1][s-1]:n>1&&s>1&&e.charAt(n-2)===t.charAt(s-1)&&e.charAt(n-1)===t.charAt(s-2)?r[n][s]=r[n-2][s-2]+1:r[n][s]=Math.min(r[n-1][s-1]+1,Math.min(r[n][s-1]+1,r[n-1][s]+1));return r[e.length][t.length]}const qa=["$0","--","_"];
155
+ function um(t,e,r){const n=r.y18n.__,s=r.y18n.__n,i={};i.nonOptionCount=function(d){const h=t.getDemandedCommands(),b=d._.length+(d["--"]?d["--"].length:0)-t.getInternalMethods().getContext().commands.length;h._&&(b<h._.min||b>h._.max)&&(b<h._.min?h._.minMsg!==void 0?e.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,b.toString()).replace(/\$1/,h._.min.toString()):null):e.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",b,b.toString(),
156
156
  h._.min.toString())):b>h._.max&&(h._.maxMsg!==void 0?e.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,b.toString()).replace(/\$1/,h._.max.toString()):null):e.fail(s("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",b,b.toString(),h._.max.toString()))))},i.positionalCount=function(d,h){h<d&&e.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",d+""))},i.requiredArguments=
157
- function(d,h){let y=null;for(const b of Object.keys(h))(!Object.prototype.hasOwnProperty.call(d,b)||typeof d[b]>"u")&&(y=y||{},y[b]=h[b]);if(y){const b=[];for(const f of Object.keys(y)){const g=y[f];g&&b.indexOf(g)<0&&b.push(g)}const _=b.length?`
157
+ function(d,h){let _=null;for(const b of Object.keys(h))(!Object.prototype.hasOwnProperty.call(d,b)||typeof d[b]>"u")&&(_=_||{},_[b]=h[b]);if(_){const b=[];for(const f of Object.keys(_)){const g=_[f];g&&b.indexOf(g)<0&&b.push(g)}const y=b.length?`
158
158
  ${b.join(`
159
- `)}`:"";e.fail(s("Missing required argument: %s","Missing required arguments: %s",Object.keys(y).length,Object.keys(y).join(", ")+_))}},i.unknownArguments=function(d,h,y,b,_=!0){var f;const g=t.getInternalMethods().getCommandInstance().getCommands(),p=[],m=t.getInternalMethods().getContext();if(Object.keys(d).forEach($=>{!Ma.includes($)&&!Object.prototype.hasOwnProperty.call(y,$)&&!Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),$)&&!i.isValidAndSomeAliasIsNotNew($,
160
- h)&&p.push($)}),_&&(m.commands.length>0||g.length>0||b)&&d._.slice(m.commands.length).forEach($=>{g.includes(""+$)||p.push(""+$)}),_){const v=((f=t.getDemandedCommands()._)===null||f===void 0?void 0:f.max)||0,E=m.commands.length+v;E<d._.length&&d._.slice(E).forEach(S=>{S=String(S),!m.commands.includes(S)&&!p.includes(S)&&p.push(S)})}p.length&&e.fail(s("Unknown argument: %s","Unknown arguments: %s",p.length,p.map($=>$.trim()?$:`"${$}"`).join(", ")))},i.unknownCommands=function(d){const h=t.getInternalMethods().
161
- getCommandInstance().getCommands(),y=[],b=t.getInternalMethods().getContext();return(b.commands.length>0||h.length>0)&&d._.slice(b.commands.length).forEach(_=>{h.includes(""+_)||y.push(""+_)}),y.length>0?(e.fail(s("Unknown command: %s","Unknown commands: %s",y.length,y.join(", "))),!0):!1},i.isValidAndSomeAliasIsNotNew=function(d,h){if(!Object.prototype.hasOwnProperty.call(h,d))return!1;const y=t.parsed.newAliases;return[d,...h[d]].some(b=>!Object.prototype.hasOwnProperty.call(y,b)||!y[d])},i.limitedChoices=
162
- function(d){const h=t.getOptions(),y={};if(!Object.keys(h.choices).length)return;Object.keys(d).forEach(f=>{Ma.indexOf(f)===-1&&Object.prototype.hasOwnProperty.call(h.choices,f)&&[].concat(d[f]).forEach(g=>{h.choices[f].indexOf(g)===-1&&g!==void 0&&(y[f]=(y[f]||[]).concat(g))})});const b=Object.keys(y);if(!b.length)return;let _=n("Invalid values:");b.forEach(f=>{_+=`
163
- ${n("Argument: %s, Given: %s, Choices: %s",f,e.stringifiedValues(y[f]),e.stringifiedValues(h.choices[f]))}`}),e.fail(_)};let o={};i.implies=function(d,h){ce("<string|object> [array|number|string]",[d,h],arguments.length),typeof d=="object"?Object.keys(d).forEach(y=>{i.implies(y,d[y])}):(t.global(d),o[d]||(o[d]=[]),Array.isArray(h)?h.forEach(y=>i.implies(d,y)):(Ke(h,void 0,r),o[d].push(h)))},i.getImplied=function(){return o};function a(u,d){const h=Number(d);return d=isNaN(h)?d:h,typeof d=="num\
164
- ber"?d=u._.length>=d:d.match(/^--no-.+/)?(d=d.match(/^--no-(.+)/)[1],d=!Object.prototype.hasOwnProperty.call(u,d)):d=Object.prototype.hasOwnProperty.call(u,d),d}i.implications=function(d){const h=[];if(Object.keys(o).forEach(y=>{const b=y;(o[y]||[]).forEach(_=>{let f=b;const g=_;f=a(d,f),_=a(d,_),f&&!_&&h.push(` ${b} -> ${g}`)})}),h.length){let y=`${n("Implications failed:")}
165
- `;h.forEach(b=>{y+=b}),e.fail(y)}};let c={};i.conflicts=function(d,h){ce("<string|object> [array|string]",[d,h],arguments.length),typeof d=="object"?Object.keys(d).forEach(y=>{i.conflicts(y,d[y])}):(t.global(d),c[d]||(c[d]=[]),Array.isArray(h)?h.forEach(y=>i.conflicts(d,y)):c[d].push(h))},i.getConflicting=()=>c,i.conflicting=function(d){Object.keys(d).forEach(h=>{c[h]&&c[h].forEach(y=>{y&&d[h]!==void 0&&d[y]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",h,y))})}),t.getInternalMethods().
166
- getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(h=>{c[h].forEach(y=>{y&&d[r.Parser.camelCase(h)]!==void 0&&d[r.Parser.camelCase(y)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",h,y))})})},i.recommendCommands=function(d,h){h=h.sort((f,g)=>g.length-f.length);let b=null,_=1/0;for(let f=0,g;(g=h[f])!==void 0;f++){const p=am(d,g);p<=3&&p<_&&(_=p,b=g)}b&&e.fail(n("Did you mean %s?",b))},i.reset=function(d){return o=$r(o,h=>!d[h]),c=$r(c,h=>!d[h]),i};const l=[];return i.
167
- freeze=function(){l.push({implied:o,conflicting:c})},i.unfreeze=function(){const d=l.pop();Ke(d,void 0,r),{implied:o,conflicting:c}=d},i}let Vs=[],br;function zs(t,e,r,n){br=n;let s={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if(typeof t.extends!="string")return s;const i=/\.json|\..*rc$/.test(t.extends);let o=null;if(i)o=lm(e,t.extends);else try{o=require.resolve(t.extends)}catch{return t}um(o),Vs.push(o),s=i?JSON.parse(br.readFileSync(o,"utf8")):require(t.extends),delete t.extends,
168
- s=zs(s,br.path.dirname(o),r,br)}return Vs=[],r?qa(s,t):Object.assign({},s,t)}function um(t){if(Vs.indexOf(t)>-1)throw new Oe(`Circular extended configurations: '${t}'.`)}function lm(t,e){return br.path.resolve(t,e)}function qa(t,e){const r={};function n(s){return s&&typeof s=="object"&&!Array.isArray(s)}Object.assign(r,t);for(const s of Object.keys(e))n(e[s])&&n(r[s])?r[s]=qa(t[s],e[s]):r[s]=e[s];return r}var ae=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");
159
+ `)}`:"";e.fail(s("Missing required argument: %s","Missing required arguments: %s",Object.keys(_).length,Object.keys(_).join(", ")+y))}},i.unknownArguments=function(d,h,_,b,y=!0){var f;const g=t.getInternalMethods().getCommandInstance().getCommands(),p=[],m=t.getInternalMethods().getContext();if(Object.keys(d).forEach($=>{!qa.includes($)&&!Object.prototype.hasOwnProperty.call(_,$)&&!Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),$)&&!i.isValidAndSomeAliasIsNotNew($,
160
+ h)&&p.push($)}),y&&(m.commands.length>0||g.length>0||b)&&d._.slice(m.commands.length).forEach($=>{g.includes(""+$)||p.push(""+$)}),y){const v=((f=t.getDemandedCommands()._)===null||f===void 0?void 0:f.max)||0,E=m.commands.length+v;E<d._.length&&d._.slice(E).forEach(S=>{S=String(S),!m.commands.includes(S)&&!p.includes(S)&&p.push(S)})}p.length&&e.fail(s("Unknown argument: %s","Unknown arguments: %s",p.length,p.map($=>$.trim()?$:`"${$}"`).join(", ")))},i.unknownCommands=function(d){const h=t.getInternalMethods().
161
+ getCommandInstance().getCommands(),_=[],b=t.getInternalMethods().getContext();return(b.commands.length>0||h.length>0)&&d._.slice(b.commands.length).forEach(y=>{h.includes(""+y)||_.push(""+y)}),_.length>0?(e.fail(s("Unknown command: %s","Unknown commands: %s",_.length,_.join(", "))),!0):!1},i.isValidAndSomeAliasIsNotNew=function(d,h){if(!Object.prototype.hasOwnProperty.call(h,d))return!1;const _=t.parsed.newAliases;return[d,...h[d]].some(b=>!Object.prototype.hasOwnProperty.call(_,b)||!_[d])},i.limitedChoices=
162
+ function(d){const h=t.getOptions(),_={};if(!Object.keys(h.choices).length)return;Object.keys(d).forEach(f=>{qa.indexOf(f)===-1&&Object.prototype.hasOwnProperty.call(h.choices,f)&&[].concat(d[f]).forEach(g=>{h.choices[f].indexOf(g)===-1&&g!==void 0&&(_[f]=(_[f]||[]).concat(g))})});const b=Object.keys(_);if(!b.length)return;let y=n("Invalid values:");b.forEach(f=>{y+=`
163
+ ${n("Argument: %s, Given: %s, Choices: %s",f,e.stringifiedValues(_[f]),e.stringifiedValues(h.choices[f]))}`}),e.fail(y)};let o={};i.implies=function(d,h){ce("<string|object> [array|number|string]",[d,h],arguments.length),typeof d=="object"?Object.keys(d).forEach(_=>{i.implies(_,d[_])}):(t.global(d),o[d]||(o[d]=[]),Array.isArray(h)?h.forEach(_=>i.implies(d,_)):(Ke(h,void 0,r),o[d].push(h)))},i.getImplied=function(){return o};function a(c,d){const h=Number(d);return d=isNaN(h)?d:h,typeof d=="num\
164
+ ber"?d=c._.length>=d:d.match(/^--no-.+/)?(d=d.match(/^--no-(.+)/)[1],d=!Object.prototype.hasOwnProperty.call(c,d)):d=Object.prototype.hasOwnProperty.call(c,d),d}i.implications=function(d){const h=[];if(Object.keys(o).forEach(_=>{const b=_;(o[_]||[]).forEach(y=>{let f=b;const g=y;f=a(d,f),y=a(d,y),f&&!y&&h.push(` ${b} -> ${g}`)})}),h.length){let _=`${n("Implications failed:")}
165
+ `;h.forEach(b=>{_+=b}),e.fail(_)}};let u={};i.conflicts=function(d,h){ce("<string|object> [array|string]",[d,h],arguments.length),typeof d=="object"?Object.keys(d).forEach(_=>{i.conflicts(_,d[_])}):(t.global(d),u[d]||(u[d]=[]),Array.isArray(h)?h.forEach(_=>i.conflicts(d,_)):u[d].push(h))},i.getConflicting=()=>u,i.conflicting=function(d){Object.keys(d).forEach(h=>{u[h]&&u[h].forEach(_=>{_&&d[h]!==void 0&&d[_]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",h,_))})}),t.getInternalMethods().
166
+ getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(h=>{u[h].forEach(_=>{_&&d[r.Parser.camelCase(h)]!==void 0&&d[r.Parser.camelCase(_)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",h,_))})})},i.recommendCommands=function(d,h){h=h.sort((f,g)=>g.length-f.length);let b=null,y=1/0;for(let f=0,g;(g=h[f])!==void 0;f++){const p=cm(d,g);p<=3&&p<y&&(y=p,b=g)}b&&e.fail(n("Did you mean %s?",b))},i.reset=function(d){return o=$r(o,h=>!d[h]),u=$r(u,h=>!d[h]),i};const l=[];return i.
167
+ freeze=function(){l.push({implied:o,conflicting:u})},i.unfreeze=function(){const d=l.pop();Ke(d,void 0,r),{implied:o,conflicting:u}=d},i}let zs=[],br;function Gs(t,e,r,n){br=n;let s={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if(typeof t.extends!="string")return s;const i=/\.json|\..*rc$/.test(t.extends);let o=null;if(i)o=fm(e,t.extends);else try{o=require.resolve(t.extends)}catch{return t}lm(o),zs.push(o),s=i?JSON.parse(br.readFileSync(o,"utf8")):require(t.extends),delete t.extends,
168
+ s=Gs(s,br.path.dirname(o),r,br)}return zs=[],r?Ha(s,t):Object.assign({},s,t)}function lm(t){if(zs.indexOf(t)>-1)throw new Oe(`Circular extended configurations: '${t}'.`)}function fm(t,e){return br.path.resolve(t,e)}function Ha(t,e){const r={};function n(s){return s&&typeof s=="object"&&!Array.isArray(s)}Object.assign(r,t);for(const s of Object.keys(e))n(e[s])&&n(r[s])?r[s]=Ha(t[s],e[s]):r[s]=e[s];return r}var ae=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");
169
169
  if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},O=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class d\
170
- id not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Re,It,wr,Fe,De,Vr,gt,Tt,zr,Ve,Gr,ze,st,xe,Ge,Br,Yt,Ce,ue,Wr,Kr,Me,Nt,Xt,jt,yt,Yr,fe,Lt,kt,Dt,de,Xr,it,Ee;function fm(t){return(e=[],r=t.process.cwd(),n)=>{const s=new dm(e,r,n,t);return Object.defineProperty(s,"argv",{get:()=>s.parse(),enumerable:!0}),s.help(),s.version(),s}}const Ha=Symbol("copyDoubleDash"),Ua=Symbol("copyDoubleDash"),Gs=Symbol("deleteFromParserHintObject"),Fa=Symbol("emitWarning"),Va=Symbol("freeze"),za=Symbol(
171
- "getDollarZero"),xt=Symbol("getParserConfiguration"),Ga=Symbol("getUsageConfiguration"),Bs=Symbol("guessLocale"),Ba=Symbol("guessVersion"),Wa=Symbol("parsePositionalNumbers"),Ws=Symbol("pkgUp"),_t=Symbol("populateParserHintArray"),Jt=Symbol("populateParserHintSingleValueDictionary"),Ks=Symbol("populateParserHintArrayDictionary"),Ys=Symbol("populateParserHintDictionary"),Xs=Symbol("sanitizeKey"),Js=Symbol("setKey"),Qs=Symbol("unfreeze"),Ka=Symbol("validateAsync"),Ya=Symbol("getCommandInstance"),Xa=Symbol(
172
- "getContext"),Ja=Symbol("getHasOutput"),Qa=Symbol("getLoggerInstance"),Za=Symbol("getParseContext"),ec=Symbol("getUsageInstance"),tc=Symbol("getValidationInstance"),Jr=Symbol("hasParseCallback"),rc=Symbol("isGlobalContext"),Mt=Symbol("postProcess"),nc=Symbol("rebase"),Zs=Symbol("reset"),Er=Symbol("runYargsParserAndExecuteCommands"),ei=Symbol("runValidation"),sc=Symbol("setHasOutput"),qt=Symbol("kTrackManuallySetKeys");class dm{constructor(e=[],r,n,s){this.customScriptName=!1,this.parsed=!1,Re.set(
173
- this,void 0),It.set(this,void 0),wr.set(this,{commands:[],fullCommands:[]}),Fe.set(this,null),De.set(this,null),Vr.set(this,"show-hidden"),gt.set(this,null),Tt.set(this,!0),zr.set(this,{}),Ve.set(this,!0),Gr.set(this,[]),ze.set(this,void 0),st.set(this,{}),xe.set(this,!1),Ge.set(this,null),Br.set(this,!0),Yt.set(this,void 0),Ce.set(this,""),ue.set(this,void 0),Wr.set(this,void 0),Kr.set(this,{}),Me.set(this,null),Nt.set(this,null),Xt.set(this,{}),jt.set(this,{}),yt.set(this,void 0),Yr.set(this,!1),
174
- fe.set(this,void 0),Lt.set(this,!1),kt.set(this,!1),Dt.set(this,!1),de.set(this,void 0),Xr.set(this,{}),it.set(this,null),Ee.set(this,void 0),ae(this,fe,s,"f"),ae(this,yt,e,"f"),ae(this,It,r,"f"),ae(this,Wr,n,"f"),ae(this,ze,new Vp(this),"f"),this.$0=this[za](),this[Zs](),ae(this,Re,O(this,Re,"f"),"f"),ae(this,de,O(this,de,"f"),"f"),ae(this,Ee,O(this,Ee,"f"),"f"),ae(this,ue,O(this,ue,"f"),"f"),O(this,ue,"f").showHiddenOpt=O(this,Vr,"f"),ae(this,Yt,this[Ua](),"f")}addHelpOpt(e,r){const n="help";return ce(
175
- "[string|boolean] [string]",[e,r],arguments.length),O(this,Ge,"f")&&(this[Gs](O(this,Ge,"f")),ae(this,Ge,null,"f")),e===!1&&r===void 0?this:(ae(this,Ge,typeof e=="string"?e:n,"f"),this.boolean(O(this,Ge,"f")),this.describe(O(this,Ge,"f"),r||O(this,de,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(ce("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;const n=typeof e=="string"?e:O(this,Vr,"f");return this.boolean(
176
- n),this.describe(n,r||O(this,de,"f").deferY18nLookup("Show hidden options")),O(this,ue,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Ks](this.alias.bind(this),"alias",e,r),this}array(e){return ce("<array|string>",[e],arguments.length),this[_t]("array",e),this[qt](e),this}boolean(e){return ce("<array|string>",[e],arguments.length),this[_t]("boolean",e),this[qt](e),this}check(e,r){
177
- return ce("<function> [boolean]",[e,r],arguments.length),this.middleware((n,s)=>_r(()=>e(n,s.getOptions()),i=>(i?(typeof i=="string"||i instanceof Error)&&O(this,de,"f").fail(i.toString(),i):O(this,de,"f").fail(O(this,fe,"f").y18n.__("Argument check failed: %s",e.toString())),n),i=>(O(this,de,"f").fail(i.message?i.message:i.toString(),i),n)),!1,r),this}choices(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Ks](this.choices.bind(this),"choices",e,r),this}coerce(e,r){
170
+ id not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Re,It,wr,Fe,De,zr,gt,Tt,Gr,Ve,Br,ze,st,xe,Ge,Wr,Yt,Ce,ue,Kr,Yr,Me,Nt,Xt,jt,yt,Xr,fe,Lt,kt,Dt,de,Jr,it,Ee;function dm(t){return(e=[],r=t.process.cwd(),n)=>{const s=new hm(e,r,n,t);return Object.defineProperty(s,"argv",{get:()=>s.parse(),enumerable:!0}),s.help(),s.version(),s}}const Ua=Symbol("copyDoubleDash"),Fa=Symbol("copyDoubleDash"),Bs=Symbol("deleteFromParserHintObject"),Va=Symbol("emitWarning"),za=Symbol("freeze"),Ga=Symbol(
171
+ "getDollarZero"),xt=Symbol("getParserConfiguration"),Ba=Symbol("getUsageConfiguration"),Ws=Symbol("guessLocale"),Wa=Symbol("guessVersion"),Ka=Symbol("parsePositionalNumbers"),Ks=Symbol("pkgUp"),_t=Symbol("populateParserHintArray"),Jt=Symbol("populateParserHintSingleValueDictionary"),Ys=Symbol("populateParserHintArrayDictionary"),Xs=Symbol("populateParserHintDictionary"),Js=Symbol("sanitizeKey"),Qs=Symbol("setKey"),Zs=Symbol("unfreeze"),Ya=Symbol("validateAsync"),Xa=Symbol("getCommandInstance"),Ja=Symbol(
172
+ "getContext"),Qa=Symbol("getHasOutput"),Za=Symbol("getLoggerInstance"),ec=Symbol("getParseContext"),tc=Symbol("getUsageInstance"),rc=Symbol("getValidationInstance"),Qr=Symbol("hasParseCallback"),nc=Symbol("isGlobalContext"),Mt=Symbol("postProcess"),sc=Symbol("rebase"),ei=Symbol("reset"),Er=Symbol("runYargsParserAndExecuteCommands"),ti=Symbol("runValidation"),ic=Symbol("setHasOutput"),qt=Symbol("kTrackManuallySetKeys");class hm{constructor(e=[],r,n,s){this.customScriptName=!1,this.parsed=!1,Re.set(
173
+ this,void 0),It.set(this,void 0),wr.set(this,{commands:[],fullCommands:[]}),Fe.set(this,null),De.set(this,null),zr.set(this,"show-hidden"),gt.set(this,null),Tt.set(this,!0),Gr.set(this,{}),Ve.set(this,!0),Br.set(this,[]),ze.set(this,void 0),st.set(this,{}),xe.set(this,!1),Ge.set(this,null),Wr.set(this,!0),Yt.set(this,void 0),Ce.set(this,""),ue.set(this,void 0),Kr.set(this,void 0),Yr.set(this,{}),Me.set(this,null),Nt.set(this,null),Xt.set(this,{}),jt.set(this,{}),yt.set(this,void 0),Xr.set(this,!1),
174
+ fe.set(this,void 0),Lt.set(this,!1),kt.set(this,!1),Dt.set(this,!1),de.set(this,void 0),Jr.set(this,{}),it.set(this,null),Ee.set(this,void 0),ae(this,fe,s,"f"),ae(this,yt,e,"f"),ae(this,It,r,"f"),ae(this,Kr,n,"f"),ae(this,ze,new zp(this),"f"),this.$0=this[Ga](),this[ei](),ae(this,Re,O(this,Re,"f"),"f"),ae(this,de,O(this,de,"f"),"f"),ae(this,Ee,O(this,Ee,"f"),"f"),ae(this,ue,O(this,ue,"f"),"f"),O(this,ue,"f").showHiddenOpt=O(this,zr,"f"),ae(this,Yt,this[Fa](),"f")}addHelpOpt(e,r){const n="help";return ce(
175
+ "[string|boolean] [string]",[e,r],arguments.length),O(this,Ge,"f")&&(this[Bs](O(this,Ge,"f")),ae(this,Ge,null,"f")),e===!1&&r===void 0?this:(ae(this,Ge,typeof e=="string"?e:n,"f"),this.boolean(O(this,Ge,"f")),this.describe(O(this,Ge,"f"),r||O(this,de,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(ce("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;const n=typeof e=="string"?e:O(this,zr,"f");return this.boolean(
176
+ n),this.describe(n,r||O(this,de,"f").deferY18nLookup("Show hidden options")),O(this,ue,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Ys](this.alias.bind(this),"alias",e,r),this}array(e){return ce("<array|string>",[e],arguments.length),this[_t]("array",e),this[qt](e),this}boolean(e){return ce("<array|string>",[e],arguments.length),this[_t]("boolean",e),this[qt](e),this}check(e,r){
177
+ return ce("<function> [boolean]",[e,r],arguments.length),this.middleware((n,s)=>_r(()=>e(n,s.getOptions()),i=>(i?(typeof i=="string"||i instanceof Error)&&O(this,de,"f").fail(i.toString(),i):O(this,de,"f").fail(O(this,fe,"f").y18n.__("Argument check failed: %s",e.toString())),n),i=>(O(this,de,"f").fail(i.message?i.message:i.toString(),i),n)),!1,r),this}choices(e,r){return ce("<object|string|array> [string|array]",[e,r],arguments.length),this[Ys](this.choices.bind(this),"choices",e,r),this}coerce(e,r){
178
178
  if(ce("<object|string|array> [function]",[e,r],arguments.length),Array.isArray(e)){if(!r)throw new Oe("coerce callback must be provided");for(const n of e)this.coerce(n,r);return this}else if(typeof e=="object"){for(const n of Object.keys(e))this.coerce(n,e[n]);return this}if(!r)throw new Oe("coerce callback must be provided");return O(this,ue,"f").key[e]=!0,O(this,ze,"f").addCoerceMiddleware((n,s)=>{let i;return Object.prototype.hasOwnProperty.call(n,e)?_r(()=>(i=s.getAliases(),r(n[e])),a=>{n[e]=
179
- a;const c=s.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&c!==!0)for(const l of i[e])n[l]=a;return n},a=>{throw new Oe(a.message)}):n},e),this}conflicts(e,r){return ce("<string|object> [string|array]",[e,r],arguments.length),O(this,Ee,"f").conflicts(e,r),this}config(e="config",r,n){return ce("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=zs(e,O(this,It,"f"),this[xt]()["deep-merge-config"]||!1,O(this,fe,"\
179
+ a;const u=s.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&u!==!0)for(const l of i[e])n[l]=a;return n},a=>{throw new Oe(a.message)}):n},e),this}conflicts(e,r){return ce("<string|object> [string|array]",[e,r],arguments.length),O(this,Ee,"f").conflicts(e,r),this}config(e="config",r,n){return ce("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=Gs(e,O(this,It,"f"),this[xt]()["deep-merge-config"]||!1,O(this,fe,"\
180
180
  f")),O(this,ue,"f").configObjects=(O(this,ue,"f").configObjects||[]).concat(e),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(e,r||O(this,de,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(s=>{O(this,ue,"f").config[s]=n||!0}),this)}completion(e,r,n){return ce("[string] [string|boolean|function] [function]",[e,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),ae(this,De,e||O(this,De,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion\
181
- script"),this.command(O(this,De,"f"),r),n&&O(this,Fe,"f").registerFunction(n),this}command(e,r,n,s,i,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,s,i,o],arguments.length),O(this,Re,"f").addHandler(e,r,n,s,i,o),this}commands(e,r,n,s,i,o){return this.command(e,r,n,s,i,o)}commandDir(e,r){ce("<string> [object]",[e,r],arguments.length);const n=O(this,Wr,"f")||O(this,fe,"f").require;return O(this,Re,"f").addDirectory(e,n,O(this,fe,
182
- "f").getCallerFile(),r),this}count(e){return ce("<array|string>",[e],arguments.length),this[_t]("count",e),this[qt](e),this}default(e,r,n){return ce("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(ja(e,O(this,fe,"f")),O(this,ue,"f").defaultDescription[e]=n),typeof r=="function"&&(ja(e,O(this,fe,"f")),O(this,ue,"f").defaultDescription[e]||(O(this,ue,"f").defaultDescription[e]=O(this,de,"f").functionDescription(r)),r=r.call()),this[Jt](this.default.bind(this),"default",e,r),this}defaults(e,r,n){
181
+ script"),this.command(O(this,De,"f"),r),n&&O(this,Fe,"f").registerFunction(n),this}command(e,r,n,s,i,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,s,i,o],arguments.length),O(this,Re,"f").addHandler(e,r,n,s,i,o),this}commands(e,r,n,s,i,o){return this.command(e,r,n,s,i,o)}commandDir(e,r){ce("<string> [object]",[e,r],arguments.length);const n=O(this,Kr,"f")||O(this,fe,"f").require;return O(this,Re,"f").addDirectory(e,n,O(this,fe,
182
+ "f").getCallerFile(),r),this}count(e){return ce("<array|string>",[e],arguments.length),this[_t]("count",e),this[qt](e),this}default(e,r,n){return ce("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(La(e,O(this,fe,"f")),O(this,ue,"f").defaultDescription[e]=n),typeof r=="function"&&(La(e,O(this,fe,"f")),O(this,ue,"f").defaultDescription[e]||(O(this,ue,"f").defaultDescription[e]=O(this,de,"f").functionDescription(r)),r=r.call()),this[Jt](this.default.bind(this),"default",e,r),this}defaults(e,r,n){
183
183
  return this.default(e,r,n)}demandCommand(e=1,r,n,s){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,r,n,s],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),O(this,ue,"f").demandedCommands._={min:e,max:r,minMsg:n,maxMsg:s},this}demand(e,r,n){return Array.isArray(r)?(r.forEach(s=>{Ke(n,!0,O(this,fe,"f")),this.demandOption(s,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof e=="number"?(Ke(n,!0,O(this,fe,"f")),this.demandCommand(e,r,n,n)):
184
184
  Array.isArray(e)?e.forEach(s=>{Ke(n,!0,O(this,fe,"f")),this.demandOption(s,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,r){return ce("<object|string|array> [string]",[e,r],arguments.length),this[Jt](this.demandOption.bind(this),"demandedOptions",e,r),this}deprecateOption(e,r){return ce("<string> [string|boolean]",[e,r],arguments.length),O(this,ue,"f").deprecatedOptions[e]=r,this}describe(e,r){return ce("<object|string|array> [str\
185
- ing]",[e,r],arguments.length),this[Js](e,!0),O(this,de,"f").describe(e,r),this}detectLocale(e){return ce("<boolean>",[e],arguments.length),ae(this,Tt,e,"f"),this}env(e){return ce("[string|boolean]",[e],arguments.length),e===!1?delete O(this,ue,"f").envPrefix:O(this,ue,"f").envPrefix=e||"",this}epilogue(e){return ce("<string>",[e],arguments.length),O(this,de,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return ce("<string|array> [string]",[e,r],arguments.length),Array.isArray(
185
+ ing]",[e,r],arguments.length),this[Qs](e,!0),O(this,de,"f").describe(e,r),this}detectLocale(e){return ce("<boolean>",[e],arguments.length),ae(this,Tt,e,"f"),this}env(e){return ce("[string|boolean]",[e],arguments.length),e===!1?delete O(this,ue,"f").envPrefix:O(this,ue,"f").envPrefix=e||"",this}epilogue(e){return ce("<string>",[e],arguments.length),O(this,de,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return ce("<string|array> [string]",[e,r],arguments.length),Array.isArray(
186
186
  e)?e.forEach(n=>this.example(...n)):O(this,de,"f").example(e,r),this}exit(e,r){ae(this,xe,!0,"f"),ae(this,gt,r,"f"),O(this,Ve,"f")&&O(this,fe,"f").process.exit(e)}exitProcess(e=!0){return ce("[boolean]",[e],arguments.length),ae(this,Ve,e,"f"),this}fail(e){if(ce("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new Oe("Invalid first argument. Expected function or boolean 'false'");return O(this,de,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,r){
187
187
  return ce("<array> [function]",[e,r],arguments.length),r?O(this,Fe,"f").getCompletion(e,r):new Promise((n,s)=>{O(this,Fe,"f").getCompletion(e,(i,o)=>{i?s(i):n(o)})})}getDemandedOptions(){return ce([],0),O(this,ue,"f").demandedOptions}getDemandedCommands(){return ce([],0),O(this,ue,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),O(this,ue,"f").deprecatedOptions}getDetectLocale(){return O(this,Tt,"f")}getExitProcess(){return O(this,Ve,"f")}getGroups(){return Object.assign({},O(this,st,
188
188
  "f"),O(this,jt,"f"))}getHelp(){if(ae(this,xe,!0,"f"),!O(this,de,"f").hasCachedHelpMessage()){if(!this.parsed){const r=this[Er](O(this,yt,"f"),void 0,void 0,0,!0);if(Ae(r))return r.then(()=>O(this,de,"f").help())}const e=O(this,Re,"f").runDefaultBuilderOn(this);if(Ae(e))return e.then(()=>O(this,de,"f").help())}return Promise.resolve(O(this,de,"f").help())}getOptions(){return O(this,ue,"f")}getStrict(){return O(this,Lt,"f")}getStrictCommands(){return O(this,kt,"f")}getStrictOptions(){return O(this,
189
189
  Dt,"f")}global(e,r){return ce("<string|array> [boolean]",[e,r],arguments.length),e=[].concat(e),r!==!1?O(this,ue,"f").local=O(this,ue,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{O(this,ue,"f").local.includes(n)||O(this,ue,"f").local.push(n)}),this}group(e,r){ce("<string|array> <string>",[e,r],arguments.length);const n=O(this,jt,"f")[r]||O(this,st,"f")[r];O(this,jt,"f")[r]&&delete O(this,jt,"f")[r];const s={};return O(this,st,"f")[r]=(n||[]).concat(e).filter(i=>s[i]?!1:s[i]=!0),this}hide(e){
190
- return ce("<string>",[e],arguments.length),O(this,ue,"f").hiddenOptions.push(e),this}implies(e,r){return ce("<string|object> [number|string|array]",[e,r],arguments.length),O(this,Ee,"f").implies(e,r),this}locale(e){return ce("[string]",[e],arguments.length),e===void 0?(this[Bs](),O(this,fe,"f").y18n.getLocale()):(ae(this,Tt,!1,"f"),O(this,fe,"f").y18n.setLocale(e),this)}middleware(e,r,n){return O(this,ze,"f").addMiddleware(e,!!r,n)}nargs(e,r){return ce("<string|object|array> [number]",[e,r],arguments.
191
- length),this[Jt](this.nargs.bind(this),"narg",e,r),this}normalize(e){return ce("<array|string>",[e],arguments.length),this[_t]("normalize",e),this}number(e){return ce("<array|string>",[e],arguments.length),this[_t]("number",e),this[qt](e),this}option(e,r){if(ce("<string|object> [object]",[e,r],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof r!="object"&&(r={}),this[qt](e),O(this,it,"f")&&(e==="version"||r?.alias==="version")&&this[Fa](['"version\
190
+ return ce("<string>",[e],arguments.length),O(this,ue,"f").hiddenOptions.push(e),this}implies(e,r){return ce("<string|object> [number|string|array]",[e,r],arguments.length),O(this,Ee,"f").implies(e,r),this}locale(e){return ce("[string]",[e],arguments.length),e===void 0?(this[Ws](),O(this,fe,"f").y18n.getLocale()):(ae(this,Tt,!1,"f"),O(this,fe,"f").y18n.setLocale(e),this)}middleware(e,r,n){return O(this,ze,"f").addMiddleware(e,!!r,n)}nargs(e,r){return ce("<string|object|array> [number]",[e,r],arguments.
191
+ length),this[Jt](this.nargs.bind(this),"narg",e,r),this}normalize(e){return ce("<array|string>",[e],arguments.length),this[_t]("normalize",e),this}number(e){return ce("<array|string>",[e],arguments.length),this[_t]("number",e),this[qt](e),this}option(e,r){if(ce("<string|object> [object]",[e,r],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof r!="object"&&(r={}),this[qt](e),O(this,it,"f")&&(e==="version"||r?.alias==="version")&&this[Va](['"version\
192
192
  " is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
193
193
  `),void 0,"versionWarning"),O(this,ue,"f").key[e]=!0,r.alias&&this.alias(e,r.alias);const n=r.deprecate||r.deprecated;n&&this.deprecateOption(e,n);const s=r.demand||r.required||r.require;s&&this.demand(e,s),r.demandOption&&this.demandOption(e,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(e,r.conflicts),"default"in r&&this.default(e,r.default),r.implies!==void 0&&this.implies(e,r.implies),r.nargs!==void 0&&this.nargs(e,r.nargs),r.config&&this.config(e,r.configParser),
194
194
  r.normalize&&this.normalize(e),r.choices&&this.choices(e,r.choices),r.coerce&&this.coerce(e,r.coerce),r.group&&this.group(e,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(e),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(e),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(e),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(e),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(e),typeof r.global==
195
195
  "boolean"&&this.global(e,r.global),r.defaultDescription&&(O(this,ue,"f").defaultDescription[e]=r.defaultDescription),r.skipValidation&&this.skipValidation(e);const i=r.describe||r.description||r.desc,o=O(this,de,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,e)||typeof i=="string")&&this.describe(e,i),r.hidden&&this.hide(e),r.requiresArg&&this.requiresArg(e)}return this}options(e,r){return this.option(e,r)}parse(e,r,n){ce("[string|array] [function|boolean|object] [function]",[e,
196
- r,n],arguments.length),this[Va](),typeof e>"u"&&(e=O(this,yt,"f")),typeof r=="object"&&(ae(this,Nt,r,"f"),r=n),typeof r=="function"&&(ae(this,Me,r,"f"),r=!1),r||ae(this,yt,e,"f"),O(this,Me,"f")&&ae(this,Ve,!1,"f");const s=this[Er](e,!!r),i=this.parsed;return O(this,Fe,"f").setParsed(this.parsed),Ae(s)?s.then(o=>(O(this,Me,"f")&&O(this,Me,"f").call(this,O(this,gt,"f"),o,O(this,Ce,"f")),o)).catch(o=>{throw O(this,Me,"f")&&O(this,Me,"f")(o,this.parsed.argv,O(this,Ce,"f")),o}).finally(()=>{this[Qs](),
197
- this.parsed=i}):(O(this,Me,"f")&&O(this,Me,"f").call(this,O(this,gt,"f"),s,O(this,Ce,"f")),this[Qs](),this.parsed=i,s)}parseAsync(e,r,n){const s=this.parse(e,r,n);return Ae(s)?s:Promise.resolve(s)}parseSync(e,r,n){const s=this.parse(e,r,n);if(Ae(s))throw new Oe(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return s}parserConfiguration(e){return ce("<object>",[e],arguments.length),ae(this,Kr,e,"f"),this}pkgConf(e,r){ce("<string> [string]",[e,r],arguments.length);
198
- let n=null;const s=this[Ws](r||O(this,It,"f"));return s[e]&&typeof s[e]=="object"&&(n=zs(s[e],r||O(this,It,"f"),this[xt]()["deep-merge-config"]||!1,O(this,fe,"f")),O(this,ue,"f").configObjects=(O(this,ue,"f").configObjects||[]).concat(n)),this}positional(e,r){ce("<string> <object>",[e,r],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=$r(r,(o,a)=>o==="type"&&!["string","number","boole\
199
- an"].includes(a)?!1:n.includes(o));const s=O(this,wr,"f").fullCommands[O(this,wr,"f").fullCommands.length-1],i=s?O(this,Re,"f").cmdToParseOptions(s):{array:[],alias:{},default:{},demand:{}};return Ur(i).forEach(o=>{const a=i[o];Array.isArray(a)?a.indexOf(e)!==-1&&(r[o]=!0):a[e]&&!(o in r)&&(r[o]=a[e])}),this.group(e,O(this,de,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return ce("[boolean]",[e],arguments.length),ae(this,Yr,e,"f"),this}required(e,r,n){return this.demand(
196
+ r,n],arguments.length),this[za](),typeof e>"u"&&(e=O(this,yt,"f")),typeof r=="object"&&(ae(this,Nt,r,"f"),r=n),typeof r=="function"&&(ae(this,Me,r,"f"),r=!1),r||ae(this,yt,e,"f"),O(this,Me,"f")&&ae(this,Ve,!1,"f");const s=this[Er](e,!!r),i=this.parsed;return O(this,Fe,"f").setParsed(this.parsed),Ae(s)?s.then(o=>(O(this,Me,"f")&&O(this,Me,"f").call(this,O(this,gt,"f"),o,O(this,Ce,"f")),o)).catch(o=>{throw O(this,Me,"f")&&O(this,Me,"f")(o,this.parsed.argv,O(this,Ce,"f")),o}).finally(()=>{this[Zs](),
197
+ this.parsed=i}):(O(this,Me,"f")&&O(this,Me,"f").call(this,O(this,gt,"f"),s,O(this,Ce,"f")),this[Zs](),this.parsed=i,s)}parseAsync(e,r,n){const s=this.parse(e,r,n);return Ae(s)?s:Promise.resolve(s)}parseSync(e,r,n){const s=this.parse(e,r,n);if(Ae(s))throw new Oe(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return s}parserConfiguration(e){return ce("<object>",[e],arguments.length),ae(this,Yr,e,"f"),this}pkgConf(e,r){ce("<string> [string]",[e,r],arguments.length);
198
+ let n=null;const s=this[Ks](r||O(this,It,"f"));return s[e]&&typeof s[e]=="object"&&(n=Gs(s[e],r||O(this,It,"f"),this[xt]()["deep-merge-config"]||!1,O(this,fe,"f")),O(this,ue,"f").configObjects=(O(this,ue,"f").configObjects||[]).concat(n)),this}positional(e,r){ce("<string> <object>",[e,r],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=$r(r,(o,a)=>o==="type"&&!["string","number","boole\
199
+ an"].includes(a)?!1:n.includes(o));const s=O(this,wr,"f").fullCommands[O(this,wr,"f").fullCommands.length-1],i=s?O(this,Re,"f").cmdToParseOptions(s):{array:[],alias:{},default:{},demand:{}};return Fr(i).forEach(o=>{const a=i[o];Array.isArray(a)?a.indexOf(e)!==-1&&(r[o]=!0):a[e]&&!(o in r)&&(r[o]=a[e])}),this.group(e,O(this,de,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return ce("[boolean]",[e],arguments.length),ae(this,Xr,e,"f"),this}required(e,r,n){return this.demand(
200
200
  e,r,n)}require(e,r,n){return this.demand(e,r,n)}requiresArg(e){return ce("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&O(this,ue,"f").narg[e]?this:(this[Jt](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,r){return ce("[string] [string]",[e,r],arguments.length),e=e||this.$0,O(this,Yt,"f").log(O(this,Fe,"f").generateCompletionScript(e,r||O(this,De,"f")||"completion")),this}showHelp(e){if(ce("[string|function]",[e],arguments.length),ae(this,xe,!0,
201
201
  "f"),!O(this,de,"f").hasCachedHelpMessage()){if(!this.parsed){const n=this[Er](O(this,yt,"f"),void 0,void 0,0,!0);if(Ae(n))return n.then(()=>{O(this,de,"f").showHelp(e)}),this}const r=O(this,Re,"f").runDefaultBuilderOn(this);if(Ae(r))return r.then(()=>{O(this,de,"f").showHelp(e)}),this}return O(this,de,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,r){return ce("[boolean|string] [string]",[e,r],arguments.length),O(this,de,"f").showHelpOnFail(e,
202
202
  r),this}showVersion(e){return ce("[string|function]",[e],arguments.length),O(this,de,"f").showVersion(e),this}skipValidation(e){return ce("<array|string>",[e],arguments.length),this[_t]("skipValidation",e),this}strict(e){return ce("[boolean]",[e],arguments.length),ae(this,Lt,e!==!1,"f"),this}strictCommands(e){return ce("[boolean]",[e],arguments.length),ae(this,kt,e!==!1,"f"),this}strictOptions(e){return ce("[boolean]",[e],arguments.length),ae(this,Dt,e!==!1,"f"),this}string(e){return ce("<array|\
203
203
  string>",[e],arguments.length),this[_t]("string",e),this[qt](e),this}terminalWidth(){return ce([],0),O(this,fe,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return ce("<object>",[e],arguments.length),ae(this,Tt,!1,"f"),O(this,fe,"f").y18n.updateLocale(e),this}usage(e,r,n,s){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[e,r,n,s],arguments.length),r!==void 0){if(Ke(e,null,O(this,fe,"f")),(e||"").match(/^\$0( |$)/))return this.
204
- command(e,r,n,s);throw new Oe(".usage() description must start with $0 if being used as alias for .command()")}else return O(this,de,"f").usage(e),this}usageConfiguration(e){return ce("<object>",[e],arguments.length),ae(this,Xr,e,"f"),this}version(e,r,n){const s="version";if(ce("[boolean|string] [string] [string]",[e,r,n],arguments.length),O(this,it,"f")&&(this[Gs](O(this,it,"f")),O(this,de,"f").version(void 0),ae(this,it,null,"f")),arguments.length===0)n=this[Ba](),e=s;else if(arguments.length===
205
- 1){if(e===!1)return this;n=e,e=s}else arguments.length===2&&(n=r,r=void 0);return ae(this,it,typeof e=="string"?e:s,"f"),r=r||O(this,de,"f").deferY18nLookup("Show version number"),O(this,de,"f").version(n||void 0),this.boolean(O(this,it,"f")),this.describe(O(this,it,"f"),r),this}wrap(e){return ce("<number|null|undefined>",[e],arguments.length),O(this,de,"f").wrap(e),this}[(Re=new WeakMap,It=new WeakMap,wr=new WeakMap,Fe=new WeakMap,De=new WeakMap,Vr=new WeakMap,gt=new WeakMap,Tt=new WeakMap,zr=new WeakMap,
206
- Ve=new WeakMap,Gr=new WeakMap,ze=new WeakMap,st=new WeakMap,xe=new WeakMap,Ge=new WeakMap,Br=new WeakMap,Yt=new WeakMap,Ce=new WeakMap,ue=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,Me=new WeakMap,Nt=new WeakMap,Xt=new WeakMap,jt=new WeakMap,yt=new WeakMap,Yr=new WeakMap,fe=new WeakMap,Lt=new WeakMap,kt=new WeakMap,Dt=new WeakMap,de=new WeakMap,Xr=new WeakMap,it=new WeakMap,Ee=new WeakMap,Ha)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Ua](){return{
207
- log:(...e)=>{this[Jr]()||console.log(...e),ae(this,xe,!0,"f"),O(this,Ce,"f").length&&ae(this,Ce,O(this,Ce,"f")+`
208
- `,"f"),ae(this,Ce,O(this,Ce,"f")+e.join(" "),"f")},error:(...e)=>{this[Jr]()||console.error(...e),ae(this,xe,!0,"f"),O(this,Ce,"f").length&&ae(this,Ce,O(this,Ce,"f")+`
209
- `,"f"),ae(this,Ce,O(this,Ce,"f")+e.join(" "),"f")}}}[Gs](e){Ur(O(this,ue,"f")).forEach(r=>{if((s=>s==="configObjects")(r))return;const n=O(this,ue,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete O(this,de,"f").getDescriptions()[e]}[Fa](e,r,n){O(this,zr,"f")[n]||(O(this,fe,"f").process.emitWarning(e,r),O(this,zr,"f")[n]=!0)}[Va](){O(this,Gr,"f").push({options:O(this,ue,"f"),configObjects:O(this,ue,"f").configObjects.slice(0),exitProcess:O(
210
- this,Ve,"f"),groups:O(this,st,"f"),strict:O(this,Lt,"f"),strictCommands:O(this,kt,"f"),strictOptions:O(this,Dt,"f"),completionCommand:O(this,De,"f"),output:O(this,Ce,"f"),exitError:O(this,gt,"f"),hasOutput:O(this,xe,"f"),parsed:this.parsed,parseFn:O(this,Me,"f"),parseContext:O(this,Nt,"f")}),O(this,de,"f").freeze(),O(this,Ee,"f").freeze(),O(this,Re,"f").freeze(),O(this,ze,"f").freeze()}[za](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(O(this,fe,"f").process.argv()[0])?r=O(this,fe,"f").
211
- process.argv().slice(1,2):r=O(this,fe,"f").process.argv().slice(0,1),e=r.map(n=>{const s=this[nc](O(this,It,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&s.length<n.length?s:n}).join(" ").trim(),O(this,fe,"f").getEnv("_")&&O(this,fe,"f").getProcessArgvBin()===O(this,fe,"f").getEnv("_")&&(e=O(this,fe,"f").getEnv("_").replace(`${O(this,fe,"f").path.dirname(O(this,fe,"f").process.execPath())}/`,"")),e}[xt](){return O(this,Kr,"f")}[Ga](){return O(this,Xr,"f")}[Bs](){if(!O(this,Tt,"f"))return;const e=O(
212
- this,fe,"f").getEnv("LC_ALL")||O(this,fe,"f").getEnv("LC_MESSAGES")||O(this,fe,"f").getEnv("LANG")||O(this,fe,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Ba](){return this[Ws]().version||"unknown"}[Wa](e){const r=e["--"]?e["--"]:e._;for(let n=0,s;(s=r[n])!==void 0;n++)O(this,fe,"f").Parser.looksLikeNumber(s)&&Number.isSafeInteger(Math.floor(parseFloat(`${s}`)))&&(r[n]=Number(s));return e}[Ws](e){const r=e||"*";if(O(this,Xt,"f")[r])return O(this,Xt,"f")[r];let n={};try{let s=e||
213
- O(this,fe,"f").mainFilename;!e&&O(this,fe,"f").path.extname(s)&&(s=O(this,fe,"f").path.dirname(s));const i=O(this,fe,"f").findUp(s,(o,a)=>{if(a.includes("package.json"))return"package.json"});Ke(i,void 0,O(this,fe,"f")),n=JSON.parse(O(this,fe,"f").readFileSync(i,"utf8"))}catch{}return O(this,Xt,"f")[r]=n||{},O(this,Xt,"f")[r]}[_t](e,r){r=[].concat(r),r.forEach(n=>{n=this[Xs](n),O(this,ue,"f")[e].push(n)})}[Jt](e,r,n,s){this[Ys](e,r,n,s,(i,o,a)=>{O(this,ue,"f")[i][o]=a})}[Ks](e,r,n,s){this[Ys](e,
214
- r,n,s,(i,o,a)=>{O(this,ue,"f")[i][o]=(O(this,ue,"f")[i][o]||[]).concat(a)})}[Ys](e,r,n,s,i){if(Array.isArray(n))n.forEach(o=>{e(o,s)});else if((o=>typeof o=="object")(n))for(const o of Ur(n))e(o,n[o]);else i(r,this[Xs](n),s)}[Xs](e){return e==="__proto__"?"___proto___":e}[Js](e,r){return this[Jt](this[Js].bind(this),"key",e,r),this}[Qs](){var e,r,n,s,i,o,a,c,l,u,d,h;const y=O(this,Gr,"f").pop();Ke(y,void 0,O(this,fe,"f"));let b;e=this,r=this,n=this,s=this,i=this,o=this,a=this,c=this,l=this,u=this,
215
- d=this,h=this,{options:{set value(_){ae(e,ue,_,"f")}}.value,configObjects:b,exitProcess:{set value(_){ae(r,Ve,_,"f")}}.value,groups:{set value(_){ae(n,st,_,"f")}}.value,output:{set value(_){ae(s,Ce,_,"f")}}.value,exitError:{set value(_){ae(i,gt,_,"f")}}.value,hasOutput:{set value(_){ae(o,xe,_,"f")}}.value,parsed:this.parsed,strict:{set value(_){ae(a,Lt,_,"f")}}.value,strictCommands:{set value(_){ae(c,kt,_,"f")}}.value,strictOptions:{set value(_){ae(l,Dt,_,"f")}}.value,completionCommand:{set value(_){
216
- ae(u,De,_,"f")}}.value,parseFn:{set value(_){ae(d,Me,_,"f")}}.value,parseContext:{set value(_){ae(h,Nt,_,"f")}}.value}=y,O(this,ue,"f").configObjects=b,O(this,de,"f").unfreeze(),O(this,Ee,"f").unfreeze(),O(this,Re,"f").unfreeze(),O(this,ze,"f").unfreeze()}[Ka](e,r){return _r(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[Ya].bind(this),getContext:this[Xa].bind(this),getHasOutput:this[Ja].bind(this),getLoggerInstance:this[Qa].bind(this),getParseContext:this[Za].bind(this),getParserConfiguration:this[xt].
217
- bind(this),getUsageConfiguration:this[Ga].bind(this),getUsageInstance:this[ec].bind(this),getValidationInstance:this[tc].bind(this),hasParseCallback:this[Jr].bind(this),isGlobalContext:this[rc].bind(this),postProcess:this[Mt].bind(this),reset:this[Zs].bind(this),runValidation:this[ei].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[sc].bind(this)}}[Ya](){return O(this,Re,"f")}[Xa](){return O(this,wr,"f")}[Ja](){return O(this,xe,"f")}[Qa](){return O(this,Yt,"f")}[Za](){
218
- return O(this,Nt,"f")||{}}[ec](){return O(this,de,"f")}[tc](){return O(this,Ee,"f")}[Jr](){return!!O(this,Me,"f")}[rc](){return O(this,Br,"f")}[Mt](e,r,n,s){return n||Ae(e)||(r||(e=this[Ha](e)),(this[xt]()["parse-positional-numbers"]||this[xt]()["parse-positional-numbers"]===void 0)&&(e=this[Wa](e)),s&&(e=yr(e,this,O(this,ze,"f").getMiddleware(),!1))),e}[Zs](e={}){ae(this,ue,O(this,ue,"f")||{},"f");const r={};r.local=O(this,ue,"f").local||[],r.configObjects=O(this,ue,"f").configObjects||[];const n={};
219
- r.local.forEach(o=>{n[o]=!0,(e[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(O(this,jt,"f"),Object.keys(O(this,st,"f")).reduce((o,a)=>{const c=O(this,st,"f")[a].filter(l=>!(l in n));return c.length>0&&(o[a]=c),o},{})),ae(this,st,{},"f");const s=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],i=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return s.forEach(o=>{r[o]=(O(this,
220
- ue,"f")[o]||[]).filter(a=>!n[a])}),i.forEach(o=>{r[o]=$r(O(this,ue,"f")[o],a=>!n[a])}),r.envPrefix=O(this,ue,"f").envPrefix,ae(this,ue,r,"f"),ae(this,de,O(this,de,"f")?O(this,de,"f").reset(n):Zp(this,O(this,fe,"f")),"f"),ae(this,Ee,O(this,Ee,"f")?O(this,Ee,"f").reset(n):cm(this,O(this,de,"f"),O(this,fe,"f")),"f"),ae(this,Re,O(this,Re,"f")?O(this,Re,"f").reset():Kp(O(this,de,"f"),O(this,Ee,"f"),O(this,ze,"f"),O(this,fe,"f")),"f"),O(this,Fe,"f")||ae(this,Fe,sm(this,O(this,de,"f"),O(this,Re,"f"),O(
221
- this,fe,"f")),"f"),O(this,ze,"f").reset(),ae(this,De,null,"f"),ae(this,Ce,"","f"),ae(this,gt,null,"f"),ae(this,xe,!1,"f"),this.parsed=!1,this}[nc](e,r){return O(this,fe,"f").path.relative(e,r)}[Er](e,r,n,s=0,i=!1){let o=!!n||i;e=e||O(this,yt,"f"),O(this,ue,"f").__=O(this,fe,"f").y18n.__,O(this,ue,"f").configuration=this[xt]();const a=!!O(this,ue,"f").configuration["populate--"],c=Object.assign({},O(this,ue,"f").configuration,{"populate--":!0}),l=O(this,fe,"f").Parser.detailed(e,Object.assign({},
222
- O(this,ue,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),u=Object.assign(l.argv,O(this,Nt,"f"));let d;const h=l.aliases;let y=!1,b=!1;Object.keys(u).forEach(_=>{_===O(this,Ge,"f")&&u[_]?y=!0:_===O(this,it,"f")&&u[_]&&(b=!0)}),u.$0=this.$0,this.parsed=l,s===0&&O(this,de,"f").clearCachedHelpMessage();try{if(this[Bs](),r)return this[Mt](u,a,!!n,!1);O(this,Ge,"f")&&[O(this,Ge,"f")].concat(h[O(this,Ge,"f")]||[]).filter(m=>m.length>1).includes(""+u._[u._.length-1])&&(u._.pop(),y=!0),ae(this,
223
- Br,!1,"f");const _=O(this,Re,"f").getCommands(),f=O(this,Fe,"f").completionKey in u,g=y||f||i;if(u._.length){if(_.length){let p;for(let m=s||0,$;u._[m]!==void 0;m++)if($=String(u._[m]),_.includes($)&&$!==O(this,De,"f")){const v=O(this,Re,"f").runCommand($,this,l,m+1,i,y||b||i);return this[Mt](v,a,!!n,!1)}else if(!p&&$!==O(this,De,"f")){p=$;break}!O(this,Re,"f").hasDefaultCommand()&&O(this,Yr,"f")&&p&&!g&&O(this,Ee,"f").recommendCommands(p,_)}O(this,De,"f")&&u._.includes(O(this,De,"f"))&&!f&&(O(this,
224
- Ve,"f")&&vr(!0),this.showCompletionScript(),this.exit(0))}if(O(this,Re,"f").hasDefaultCommand()&&!g){const p=O(this,Re,"f").runCommand(null,this,l,0,i,y||b||i);return this[Mt](p,a,!!n,!1)}if(f){O(this,Ve,"f")&&vr(!0),e=[].concat(e);const p=e.slice(e.indexOf(`--${O(this,Fe,"f").completionKey}`)+1);return O(this,Fe,"f").getCompletion(p,(m,$)=>{if(m)throw new Oe(m.message);($||[]).forEach(v=>{O(this,Yt,"f").log(v)}),this.exit(0)}),this[Mt](u,!a,!!n,!1)}if(O(this,xe,"f")||(y?(O(this,Ve,"f")&&vr(!0),
225
- o=!0,this.showHelp("log"),this.exit(0)):b&&(O(this,Ve,"f")&&vr(!0),o=!0,O(this,de,"f").showVersion("log"),this.exit(0))),!o&&O(this,ue,"f").skipValidation.length>0&&(o=Object.keys(u).some(p=>O(this,ue,"f").skipValidation.indexOf(p)>=0&&u[p]===!0)),!o){if(l.error)throw new Oe(l.error.message);if(!f){const p=this[ei](h,{},l.error);n||(d=yr(u,this,O(this,ze,"f").getMiddleware(),!0)),d=this[Ka](p,d??u),Ae(d)&&!n&&(d=d.then(()=>yr(u,this,O(this,ze,"f").getMiddleware(),!1)))}}}catch(_){if(_ instanceof
226
- Oe)O(this,de,"f").fail(_.message,_);else throw _}return this[Mt](d??u,a,!!n,!0)}[ei](e,r,n,s){const i={...this.getDemandedOptions()};return o=>{if(n)throw new Oe(n.message);O(this,Ee,"f").nonOptionCount(o),O(this,Ee,"f").requiredArguments(o,i);let a=!1;O(this,kt,"f")&&(a=O(this,Ee,"f").unknownCommands(o)),O(this,Lt,"f")&&!a?O(this,Ee,"f").unknownArguments(o,e,r,!!s):O(this,Dt,"f")&&O(this,Ee,"f").unknownArguments(o,e,{},!1,!1),O(this,Ee,"f").limitedChoices(o),O(this,Ee,"f").implications(o),O(this,
227
- Ee,"f").conflicting(o)}}[sc](){ae(this,xe,!0,"f")}[qt](e){if(typeof e=="string")O(this,ue,"f").key[e]=!0;else for(const r of e)O(this,ue,"f").key[r]=!0}}function hm(t){return!!t&&typeof t.getInternalMethods=="function"}const pm=fm(Up),Sr={type:"string",desc:"<directory> with LikeC4 sources (default is current directory)",normalize:!0,default:".",coerce:ye},Ye={alias:"use-dot-bin",boolean:!0,type:"boolean",desc:'use graphviz binaries ("dot" should be on PATH)',default:!1},ic={boolean:!0,type:"boo\
228
- lean",desc:'use hash history for navigation, e.g. "/#/view" instead of "/view"'},Qr={alias:"o",type:"string",desc:"<directory> output directory",normalize:!0,coerce:ye},ti={alias:"w",type:"string",desc:'prefix for Webcomponents, e.g "c4" generates <c4-view ../>',default:"likec4"},oc={alias:["base-url"],type:"string",desc:'base url the app is being served from, e.g. "/" or "/pages/"'},ac={boolean:!0,type:"boolean",desc:"overview all diagrams as graph [experimental]",default:!1},mm={boolean:!0,type:"\
229
- boolean",desc:"outputs a single self-contained HTML file with all required resources inlined"},gm={alias:"l",type:"string",desc:"ip address of the network interface to listen on",default:"127.0.0.1"},cc=t=>t instanceof URL?pa(t):t;function ym(t,{cwd:e=Se.cwd(),type:r="file",stopAt:n}={}){let s=me.resolve(cc(e)??"");const{root:i}=me.parse(s);for(n=me.resolve(s,cc(n)??i);s&&s!==n&&s!==i;){const o=me.isAbsolute(t)?t:me.join(s,t);try{const a=pe.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||
230
- r==="directory"&&a?.isDirectory())return o}catch{}s=me.dirname(s)}}function _m({cwd:t=Se.cwd()}={}){return ym("package.json",{cwd:t})}const ri=tt("vite"),Zr=At(pa(import.meta.url)),$m=`
204
+ command(e,r,n,s);throw new Oe(".usage() description must start with $0 if being used as alias for .command()")}else return O(this,de,"f").usage(e),this}usageConfiguration(e){return ce("<object>",[e],arguments.length),ae(this,Jr,e,"f"),this}version(e,r,n){const s="version";if(ce("[boolean|string] [string] [string]",[e,r,n],arguments.length),O(this,it,"f")&&(this[Bs](O(this,it,"f")),O(this,de,"f").version(void 0),ae(this,it,null,"f")),arguments.length===0)n=this[Wa](),e=s;else if(arguments.length===
205
+ 1){if(e===!1)return this;n=e,e=s}else arguments.length===2&&(n=r,r=void 0);return ae(this,it,typeof e=="string"?e:s,"f"),r=r||O(this,de,"f").deferY18nLookup("Show version number"),O(this,de,"f").version(n||void 0),this.boolean(O(this,it,"f")),this.describe(O(this,it,"f"),r),this}wrap(e){return ce("<number|null|undefined>",[e],arguments.length),O(this,de,"f").wrap(e),this}[(Re=new WeakMap,It=new WeakMap,wr=new WeakMap,Fe=new WeakMap,De=new WeakMap,zr=new WeakMap,gt=new WeakMap,Tt=new WeakMap,Gr=new WeakMap,
206
+ Ve=new WeakMap,Br=new WeakMap,ze=new WeakMap,st=new WeakMap,xe=new WeakMap,Ge=new WeakMap,Wr=new WeakMap,Yt=new WeakMap,Ce=new WeakMap,ue=new WeakMap,Kr=new WeakMap,Yr=new WeakMap,Me=new WeakMap,Nt=new WeakMap,Xt=new WeakMap,jt=new WeakMap,yt=new WeakMap,Xr=new WeakMap,fe=new WeakMap,Lt=new WeakMap,kt=new WeakMap,Dt=new WeakMap,de=new WeakMap,Jr=new WeakMap,it=new WeakMap,Ee=new WeakMap,Ua)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Fa](){return{
207
+ log:(...e)=>{this[Qr]()||console.log(...e),ae(this,xe,!0,"f"),O(this,Ce,"f").length&&ae(this,Ce,O(this,Ce,"f")+`
208
+ `,"f"),ae(this,Ce,O(this,Ce,"f")+e.join(" "),"f")},error:(...e)=>{this[Qr]()||console.error(...e),ae(this,xe,!0,"f"),O(this,Ce,"f").length&&ae(this,Ce,O(this,Ce,"f")+`
209
+ `,"f"),ae(this,Ce,O(this,Ce,"f")+e.join(" "),"f")}}}[Bs](e){Fr(O(this,ue,"f")).forEach(r=>{if((s=>s==="configObjects")(r))return;const n=O(this,ue,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete O(this,de,"f").getDescriptions()[e]}[Va](e,r,n){O(this,Gr,"f")[n]||(O(this,fe,"f").process.emitWarning(e,r),O(this,Gr,"f")[n]=!0)}[za](){O(this,Br,"f").push({options:O(this,ue,"f"),configObjects:O(this,ue,"f").configObjects.slice(0),exitProcess:O(
210
+ this,Ve,"f"),groups:O(this,st,"f"),strict:O(this,Lt,"f"),strictCommands:O(this,kt,"f"),strictOptions:O(this,Dt,"f"),completionCommand:O(this,De,"f"),output:O(this,Ce,"f"),exitError:O(this,gt,"f"),hasOutput:O(this,xe,"f"),parsed:this.parsed,parseFn:O(this,Me,"f"),parseContext:O(this,Nt,"f")}),O(this,de,"f").freeze(),O(this,Ee,"f").freeze(),O(this,Re,"f").freeze(),O(this,ze,"f").freeze()}[Ga](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(O(this,fe,"f").process.argv()[0])?r=O(this,fe,"f").
211
+ process.argv().slice(1,2):r=O(this,fe,"f").process.argv().slice(0,1),e=r.map(n=>{const s=this[sc](O(this,It,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&s.length<n.length?s:n}).join(" ").trim(),O(this,fe,"f").getEnv("_")&&O(this,fe,"f").getProcessArgvBin()===O(this,fe,"f").getEnv("_")&&(e=O(this,fe,"f").getEnv("_").replace(`${O(this,fe,"f").path.dirname(O(this,fe,"f").process.execPath())}/`,"")),e}[xt](){return O(this,Yr,"f")}[Ba](){return O(this,Jr,"f")}[Ws](){if(!O(this,Tt,"f"))return;const e=O(
212
+ this,fe,"f").getEnv("LC_ALL")||O(this,fe,"f").getEnv("LC_MESSAGES")||O(this,fe,"f").getEnv("LANG")||O(this,fe,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Wa](){return this[Ks]().version||"unknown"}[Ka](e){const r=e["--"]?e["--"]:e._;for(let n=0,s;(s=r[n])!==void 0;n++)O(this,fe,"f").Parser.looksLikeNumber(s)&&Number.isSafeInteger(Math.floor(parseFloat(`${s}`)))&&(r[n]=Number(s));return e}[Ks](e){const r=e||"*";if(O(this,Xt,"f")[r])return O(this,Xt,"f")[r];let n={};try{let s=e||
213
+ O(this,fe,"f").mainFilename;!e&&O(this,fe,"f").path.extname(s)&&(s=O(this,fe,"f").path.dirname(s));const i=O(this,fe,"f").findUp(s,(o,a)=>{if(a.includes("package.json"))return"package.json"});Ke(i,void 0,O(this,fe,"f")),n=JSON.parse(O(this,fe,"f").readFileSync(i,"utf8"))}catch{}return O(this,Xt,"f")[r]=n||{},O(this,Xt,"f")[r]}[_t](e,r){r=[].concat(r),r.forEach(n=>{n=this[Js](n),O(this,ue,"f")[e].push(n)})}[Jt](e,r,n,s){this[Xs](e,r,n,s,(i,o,a)=>{O(this,ue,"f")[i][o]=a})}[Ys](e,r,n,s){this[Xs](e,
214
+ r,n,s,(i,o,a)=>{O(this,ue,"f")[i][o]=(O(this,ue,"f")[i][o]||[]).concat(a)})}[Xs](e,r,n,s,i){if(Array.isArray(n))n.forEach(o=>{e(o,s)});else if((o=>typeof o=="object")(n))for(const o of Fr(n))e(o,n[o]);else i(r,this[Js](n),s)}[Js](e){return e==="__proto__"?"___proto___":e}[Qs](e,r){return this[Jt](this[Qs].bind(this),"key",e,r),this}[Zs](){var e,r,n,s,i,o,a,u,l,c,d,h;const _=O(this,Br,"f").pop();Ke(_,void 0,O(this,fe,"f"));let b;e=this,r=this,n=this,s=this,i=this,o=this,a=this,u=this,l=this,c=this,
215
+ d=this,h=this,{options:{set value(y){ae(e,ue,y,"f")}}.value,configObjects:b,exitProcess:{set value(y){ae(r,Ve,y,"f")}}.value,groups:{set value(y){ae(n,st,y,"f")}}.value,output:{set value(y){ae(s,Ce,y,"f")}}.value,exitError:{set value(y){ae(i,gt,y,"f")}}.value,hasOutput:{set value(y){ae(o,xe,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){ae(a,Lt,y,"f")}}.value,strictCommands:{set value(y){ae(u,kt,y,"f")}}.value,strictOptions:{set value(y){ae(l,Dt,y,"f")}}.value,completionCommand:{set value(y){
216
+ ae(c,De,y,"f")}}.value,parseFn:{set value(y){ae(d,Me,y,"f")}}.value,parseContext:{set value(y){ae(h,Nt,y,"f")}}.value}=_,O(this,ue,"f").configObjects=b,O(this,de,"f").unfreeze(),O(this,Ee,"f").unfreeze(),O(this,Re,"f").unfreeze(),O(this,ze,"f").unfreeze()}[Ya](e,r){return _r(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[Xa].bind(this),getContext:this[Ja].bind(this),getHasOutput:this[Qa].bind(this),getLoggerInstance:this[Za].bind(this),getParseContext:this[ec].bind(this),getParserConfiguration:this[xt].
217
+ bind(this),getUsageConfiguration:this[Ba].bind(this),getUsageInstance:this[tc].bind(this),getValidationInstance:this[rc].bind(this),hasParseCallback:this[Qr].bind(this),isGlobalContext:this[nc].bind(this),postProcess:this[Mt].bind(this),reset:this[ei].bind(this),runValidation:this[ti].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[ic].bind(this)}}[Xa](){return O(this,Re,"f")}[Ja](){return O(this,wr,"f")}[Qa](){return O(this,xe,"f")}[Za](){return O(this,Yt,"f")}[ec](){
218
+ return O(this,Nt,"f")||{}}[tc](){return O(this,de,"f")}[rc](){return O(this,Ee,"f")}[Qr](){return!!O(this,Me,"f")}[nc](){return O(this,Wr,"f")}[Mt](e,r,n,s){return n||Ae(e)||(r||(e=this[Ua](e)),(this[xt]()["parse-positional-numbers"]||this[xt]()["parse-positional-numbers"]===void 0)&&(e=this[Ka](e)),s&&(e=yr(e,this,O(this,ze,"f").getMiddleware(),!1))),e}[ei](e={}){ae(this,ue,O(this,ue,"f")||{},"f");const r={};r.local=O(this,ue,"f").local||[],r.configObjects=O(this,ue,"f").configObjects||[];const n={};
219
+ r.local.forEach(o=>{n[o]=!0,(e[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(O(this,jt,"f"),Object.keys(O(this,st,"f")).reduce((o,a)=>{const u=O(this,st,"f")[a].filter(l=>!(l in n));return u.length>0&&(o[a]=u),o},{})),ae(this,st,{},"f");const s=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],i=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return s.forEach(o=>{r[o]=(O(this,
220
+ ue,"f")[o]||[]).filter(a=>!n[a])}),i.forEach(o=>{r[o]=$r(O(this,ue,"f")[o],a=>!n[a])}),r.envPrefix=O(this,ue,"f").envPrefix,ae(this,ue,r,"f"),ae(this,de,O(this,de,"f")?O(this,de,"f").reset(n):em(this,O(this,fe,"f")),"f"),ae(this,Ee,O(this,Ee,"f")?O(this,Ee,"f").reset(n):um(this,O(this,de,"f"),O(this,fe,"f")),"f"),ae(this,Re,O(this,Re,"f")?O(this,Re,"f").reset():Yp(O(this,de,"f"),O(this,Ee,"f"),O(this,ze,"f"),O(this,fe,"f")),"f"),O(this,Fe,"f")||ae(this,Fe,im(this,O(this,de,"f"),O(this,Re,"f"),O(
221
+ this,fe,"f")),"f"),O(this,ze,"f").reset(),ae(this,De,null,"f"),ae(this,Ce,"","f"),ae(this,gt,null,"f"),ae(this,xe,!1,"f"),this.parsed=!1,this}[sc](e,r){return O(this,fe,"f").path.relative(e,r)}[Er](e,r,n,s=0,i=!1){let o=!!n||i;e=e||O(this,yt,"f"),O(this,ue,"f").__=O(this,fe,"f").y18n.__,O(this,ue,"f").configuration=this[xt]();const a=!!O(this,ue,"f").configuration["populate--"],u=Object.assign({},O(this,ue,"f").configuration,{"populate--":!0}),l=O(this,fe,"f").Parser.detailed(e,Object.assign({},
222
+ O(this,ue,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),c=Object.assign(l.argv,O(this,Nt,"f"));let d;const h=l.aliases;let _=!1,b=!1;Object.keys(c).forEach(y=>{y===O(this,Ge,"f")&&c[y]?_=!0:y===O(this,it,"f")&&c[y]&&(b=!0)}),c.$0=this.$0,this.parsed=l,s===0&&O(this,de,"f").clearCachedHelpMessage();try{if(this[Ws](),r)return this[Mt](c,a,!!n,!1);O(this,Ge,"f")&&[O(this,Ge,"f")].concat(h[O(this,Ge,"f")]||[]).filter(m=>m.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),_=!0),ae(this,
223
+ Wr,!1,"f");const y=O(this,Re,"f").getCommands(),f=O(this,Fe,"f").completionKey in c,g=_||f||i;if(c._.length){if(y.length){let p;for(let m=s||0,$;c._[m]!==void 0;m++)if($=String(c._[m]),y.includes($)&&$!==O(this,De,"f")){const v=O(this,Re,"f").runCommand($,this,l,m+1,i,_||b||i);return this[Mt](v,a,!!n,!1)}else if(!p&&$!==O(this,De,"f")){p=$;break}!O(this,Re,"f").hasDefaultCommand()&&O(this,Xr,"f")&&p&&!g&&O(this,Ee,"f").recommendCommands(p,y)}O(this,De,"f")&&c._.includes(O(this,De,"f"))&&!f&&(O(this,
224
+ Ve,"f")&&vr(!0),this.showCompletionScript(),this.exit(0))}if(O(this,Re,"f").hasDefaultCommand()&&!g){const p=O(this,Re,"f").runCommand(null,this,l,0,i,_||b||i);return this[Mt](p,a,!!n,!1)}if(f){O(this,Ve,"f")&&vr(!0),e=[].concat(e);const p=e.slice(e.indexOf(`--${O(this,Fe,"f").completionKey}`)+1);return O(this,Fe,"f").getCompletion(p,(m,$)=>{if(m)throw new Oe(m.message);($||[]).forEach(v=>{O(this,Yt,"f").log(v)}),this.exit(0)}),this[Mt](c,!a,!!n,!1)}if(O(this,xe,"f")||(_?(O(this,Ve,"f")&&vr(!0),
225
+ o=!0,this.showHelp("log"),this.exit(0)):b&&(O(this,Ve,"f")&&vr(!0),o=!0,O(this,de,"f").showVersion("log"),this.exit(0))),!o&&O(this,ue,"f").skipValidation.length>0&&(o=Object.keys(c).some(p=>O(this,ue,"f").skipValidation.indexOf(p)>=0&&c[p]===!0)),!o){if(l.error)throw new Oe(l.error.message);if(!f){const p=this[ti](h,{},l.error);n||(d=yr(c,this,O(this,ze,"f").getMiddleware(),!0)),d=this[Ya](p,d??c),Ae(d)&&!n&&(d=d.then(()=>yr(c,this,O(this,ze,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof
226
+ Oe)O(this,de,"f").fail(y.message,y);else throw y}return this[Mt](d??c,a,!!n,!0)}[ti](e,r,n,s){const i={...this.getDemandedOptions()};return o=>{if(n)throw new Oe(n.message);O(this,Ee,"f").nonOptionCount(o),O(this,Ee,"f").requiredArguments(o,i);let a=!1;O(this,kt,"f")&&(a=O(this,Ee,"f").unknownCommands(o)),O(this,Lt,"f")&&!a?O(this,Ee,"f").unknownArguments(o,e,r,!!s):O(this,Dt,"f")&&O(this,Ee,"f").unknownArguments(o,e,{},!1,!1),O(this,Ee,"f").limitedChoices(o),O(this,Ee,"f").implications(o),O(this,
227
+ Ee,"f").conflicting(o)}}[ic](){ae(this,xe,!0,"f")}[qt](e){if(typeof e=="string")O(this,ue,"f").key[e]=!0;else for(const r of e)O(this,ue,"f").key[r]=!0}}function pm(t){return!!t&&typeof t.getInternalMethods=="function"}const mm=dm(Fp),Sr={type:"string",desc:"<directory> with LikeC4 sources (default is current directory)",normalize:!0,default:".",coerce:ye},Ye={alias:"use-dot-bin",boolean:!0,type:"boolean",desc:'use graphviz binaries ("dot" should be on PATH)',default:!1},oc={boolean:!0,type:"boo\
228
+ lean",desc:'use hash history for navigation, e.g. "/#/view" instead of "/view"'},Zr={alias:"o",type:"string",desc:"<directory> output directory",normalize:!0,coerce:ye},ri={alias:"w",type:"string",desc:'prefix for Webcomponents, e.g "c4" generates <c4-view ../>',default:"likec4"},ac={alias:["base-url"],type:"string",desc:'base url the app is being served from, e.g. "/" or "/pages/"'},cc={boolean:!0,type:"boolean",desc:"overview all diagrams as graph [experimental]",default:!1},gm={boolean:!0,type:"\
229
+ boolean",desc:"outputs a single self-contained HTML file with all required resources inlined"},ym={alias:"l",type:"string",desc:"ip address of the network interface to listen on",default:"127.0.0.1"},uc=t=>t instanceof URL?ma(t):t;function _m(t,{cwd:e=Se.cwd(),type:r="file",stopAt:n}={}){let s=me.resolve(uc(e)??"");const{root:i}=me.parse(s);for(n=me.resolve(s,uc(n)??i);s&&s!==n&&s!==i;){const o=me.isAbsolute(t)?t:me.join(s,t);try{const a=pe.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||
230
+ r==="directory"&&a?.isDirectory())return o}catch{}s=me.dirname(s)}}function $m({cwd:t=Se.cwd()}={}){return _m("package.json",{cwd:t})}const ni=tt("vite"),en=At(ma(import.meta.url)),vm=`
231
231
  /* prettier-ignore-start */
232
232
  /* eslint-disable */
233
233
 
@@ -236,93 +236,93 @@ r==="directory"&&a?.isDirectory())return o}catch{}s=me.dirname(s)}}function _m({
236
236
  * DO NOT EDIT MANUALLY!
237
237
  ******************************************************************************/
238
238
 
239
- `.trimStart(),vm=`
239
+ `.trimStart(),bm=`
240
240
 
241
241
  /* prettier-ignore-end */
242
- `,ni={banner:$m,footer:vm};function uc(){const t=_m({cwd:Zr});if(!t)throw new Error("likec4 package folder not found");return At(t)}function si(){const t=uc(),e=[ye(t,"__app__"),ye(Zr,"../__app__"),ye(Zr,"../../__app__"),ye(Zr,"../../dist/__app__")],r=Ph(e,Ct);if(!r)throw at.error(`likec4 app root does not exist, tried:
242
+ `,si={banner:vm,footer:bm};function lc(){const t=$m({cwd:en});if(!t)throw new Error("likec4 package folder not found");return At(t)}function ii(){const t=lc(),e=[ye(t,"__app__"),ye(en,"../__app__"),ye(en,"../../__app__"),ye(en,"../../dist/__app__")],r=Ih(e,Ct);if(!r)throw at.error(`likec4 app root does not exist, tried:
243
243
  ${e.join(`
244
- `)}`),new Error("likec4 app root does not exist");return r}async function ii(){const t=await xr(cr(Mr(),".likec4-public-"));return await Pt(cr(t,"likec4-views.js"),`// generated by likec4
245
- `),t}const oi=1e4;function ai(){const t=uc();return{"likec4/icons":ye(t,"icons"),"likec4/react":ye(t,"react"),"likec4/model":ye(t,"dist/model")}}var ci={},lc;function ui(){return lc||(lc=1,function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(n=>n.type===r),t.exceedsLimit=(e,r,n=1,s)=>s===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=s,t.escapeNode=(e,r=0,n)=>{const s=e.
244
+ `)}`),new Error("likec4 app root does not exist");return r}async function oi(){const t=await Mr(cr(qr(),".likec4-public-"));return await Pt(cr(t,"likec4-views.js"),`// generated by likec4
245
+ `),t}const ai=1e4;function ci(){const t=lc();return{"likec4/icons":ye(t,"icons"),"likec4/react":ye(t,"react"),"likec4/model":ye(t,"dist/model")}}var ui={},fc;function li(){return fc||(fc=1,function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(n=>n.type===r),t.exceedsLimit=(e,r,n=1,s)=>s===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=s,t.escapeNode=(e,r=0,n)=>{const s=e.
246
246
  nodes[r];s&&(n&&s.type===n||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type===
247
- "range"&&(n.type="text"),r),[]),t.flatten=(...e)=>{const r=[],n=s=>{for(let i=0;i<s.length;i++){const o=s[i];if(Array.isArray(o)){n(o);continue}o!==void 0&&r.push(o)}return r};return n(e),r}}(ci)),ci}var li,fc;function fi(){if(fc)return li;fc=1;const t=ui();return li=(e,r={})=>{const n=(s,i={})=>{const o=r.escapeInvalid&&t.isInvalidBrace(i),a=s.invalid===!0&&r.escapeInvalid===!0;let c="";if(s.value)return(o||a)&&t.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(const l of s.
248
- nodes)c+=n(l);return c};return n(e)},li}var di,dc;function bm(){return dc||(dc=1,di=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}),di}var hi,hc;function wm(){if(hc)return hi;hc=1;const t=bm(),e=(f,g,p)=>{if(t(f)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(g===void 0||f===g)return String(f);if(t(g)===!1)throw new TypeError("toRegexRange: expected the second argument t\
247
+ "range"&&(n.type="text"),r),[]),t.flatten=(...e)=>{const r=[],n=s=>{for(let i=0;i<s.length;i++){const o=s[i];if(Array.isArray(o)){n(o);continue}o!==void 0&&r.push(o)}return r};return n(e),r}}(ui)),ui}var fi,dc;function di(){if(dc)return fi;dc=1;const t=li();return fi=(e,r={})=>{const n=(s,i={})=>{const o=r.escapeInvalid&&t.isInvalidBrace(i),a=s.invalid===!0&&r.escapeInvalid===!0;let u="";if(s.value)return(o||a)&&t.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(const l of s.
248
+ nodes)u+=n(l);return u};return n(e)},fi}var hi,hc;function wm(){return hc||(hc=1,hi=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}),hi}var pi,pc;function Em(){if(pc)return pi;pc=1;const t=wm(),e=(f,g,p)=>{if(t(f)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(g===void 0||f===g)return String(f);if(t(g)===!1)throw new TypeError("toRegexRange: expected the second argument t\
249
249
  o be a number.");let m={relaxZeros:!0,...p};typeof m.strictZeros=="boolean"&&(m.relaxZeros=m.strictZeros===!1);let $=String(m.relaxZeros),v=String(m.shorthand),E=String(m.capture),S=String(m.wrap),I=f+":"+g+"="+$+v+E+S;if(e.cache.hasOwnProperty(I))return e.cache[I].result;let F=Math.min(f,g),B=Math.max(f,g);if(Math.abs(F-B)===1){let H=f+"|"+g;return m.capture?`(${H})`:m.wrap===!1?H:`(?:${H})`}let k=b(f)||b(g),M={min:f,max:g,a:F,b:B},j=[],D=[];if(k&&(M.isPadded=k,M.maxLen=String(M.max).length),F<
250
- 0){let H=B<0?Math.abs(B):1;D=i(H,Math.abs(F),M,m),F=M.a=0}return B>=0&&(j=i(F,B,M,m)),M.negatives=D,M.positives=j,M.result=r(D,j),m.capture===!0?M.result=`(${M.result})`:m.wrap!==!1&&j.length+D.length>1&&(M.result=`(?:${M.result})`),e.cache[I]=M,M.result};function r(f,g,p){let m=o(f,g,"-",!1)||[],$=o(g,f,"",!1)||[],v=o(f,g,"-?",!0)||[];return m.concat(v).concat($).join("|")}function n(f,g){let p=1,m=1,$=u(f,p),v=new Set([g]);for(;f<=$&&$<=g;)v.add($),p+=1,$=u(f,p);for($=d(g+1,m)-1;f<$&&$<=g;)v.add(
251
- $),m+=1,$=d(g+1,m)-1;return v=[...v],v.sort(c),v}function s(f,g,p){if(f===g)return{pattern:f,count:[],digits:0};let m=a(f,g),$=m.length,v="",E=0;for(let S=0;S<$;S++){let[I,F]=m[S];I===F?v+=I:I!=="0"||F!=="9"?v+=y(I,F):E++}return E&&(v+=p.shorthand===!0?"\\d":"[0-9]"),{pattern:v,count:[E],digits:$}}function i(f,g,p,m){let $=n(f,g),v=[],E=f,S;for(let I=0;I<$.length;I++){let F=$[I],B=s(String(E),String(F),m),k="";if(!p.isPadded&&S&&S.pattern===B.pattern){S.count.length>1&&S.count.pop(),S.count.push(
252
- B.count[0]),S.string=S.pattern+h(S.count),E=F+1;continue}p.isPadded&&(k=_(F,p,m)),B.string=k+B.pattern+h(B.count),v.push(B),E=F+1,S=B}return v}function o(f,g,p,m,$){let v=[];for(let E of f){let{string:S}=E;!m&&!l(g,"string",S)&&v.push(p+S),m&&l(g,"string",S)&&v.push(p+S)}return v}function a(f,g){let p=[];for(let m=0;m<f.length;m++)p.push([f[m],g[m]]);return p}function c(f,g){return f>g?1:g>f?-1:0}function l(f,g,p){return f.some(m=>m[g]===p)}function u(f,g){return Number(String(f).slice(0,-g)+"9".
253
- repeat(g))}function d(f,g){return f-f%Math.pow(10,g)}function h(f){let[g=0,p=""]=f;return p||g>1?`{${g+(p?","+p:"")}}`:""}function y(f,g,p){return`[${f}${g-f===1?"":"-"}${g}]`}function b(f){return/^-?(0+)\d/.test(f)}function _(f,g,p){if(!g.isPadded)return f;let m=Math.abs(g.maxLen-String(f).length),$=p.relaxZeros!==!1;switch(m){case 0:return"";case 1:return $?"0?":"0";case 2:return $?"0{0,2}":"00";default:return $?`0{0,${m}}`:`0{${m}}`}}return e.cache={},e.clearCache=()=>e.cache={},hi=e,hi}var pi,
254
- pc;function mc(){if(pc)return pi;pc=1;const t=la,e=wm(),r=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),n=m=>$=>m===!0?Number($):String($),s=m=>typeof m=="number"||typeof m=="string"&&m!=="",i=m=>Number.isInteger(+m),o=m=>{let $=`${m}`,v=-1;if($[0]==="-"&&($=$.slice(1)),$==="0")return!1;for(;$[++v]==="0";);return v>0},a=(m,$,v)=>typeof m=="string"||typeof $=="string"?!0:v.stringify===!0,c=(m,$,v)=>{if($>0){let E=m[0]==="-"?"-":"";E&&(m=m.slice(1)),m=E+m.padStart(E?$-1:$,"0")}return v===!1?String(
255
- m):m},l=(m,$)=>{let v=m[0]==="-"?"-":"";for(v&&(m=m.slice(1),$--);m.length<$;)m="0"+m;return v?"-"+m:m},u=(m,$,v)=>{m.negatives.sort((B,k)=>B<k?-1:B>k?1:0),m.positives.sort((B,k)=>B<k?-1:B>k?1:0);let E=$.capture?"":"?:",S="",I="",F;return m.positives.length&&(S=m.positives.map(B=>l(String(B),v)).join("|")),m.negatives.length&&(I=`-(${E}${m.negatives.map(B=>l(String(B),v)).join("|")})`),S&&I?F=`${S}|${I}`:F=S||I,$.wrap?`(${E}${F})`:F},d=(m,$,v,E)=>{if(v)return e(m,$,{wrap:!1,...E});let S=String.fromCharCode(
256
- m);if(m===$)return S;let I=String.fromCharCode($);return`[${S}-${I}]`},h=(m,$,v)=>{if(Array.isArray(m)){let E=v.wrap===!0,S=v.capture?"":"?:";return E?`(${S}${m.join("|")})`:m.join("|")}return e(m,$,v)},y=(...m)=>new RangeError("Invalid range arguments: "+t.inspect(...m)),b=(m,$,v)=>{if(v.strictRanges===!0)throw y([m,$]);return[]},_=(m,$)=>{if($.strictRanges===!0)throw new TypeError(`Expected step "${m}" to be a number`);return[]},f=(m,$,v=1,E={})=>{let S=Number(m),I=Number($);if(!Number.isInteger(
257
- S)||!Number.isInteger(I)){if(E.strictRanges===!0)throw y([m,$]);return[]}S===0&&(S=0),I===0&&(I=0);let F=S>I,B=String(m),k=String($),M=String(v);v=Math.max(Math.abs(v),1);let j=o(B)||o(k)||o(M),D=j?Math.max(B.length,k.length,M.length):0,H=j===!1&&a(m,$,E)===!1,K=E.transform||n(H);if(E.toRegex&&v===1)return d(l(m,D),l($,D),!0,E);let G={negatives:[],positives:[]},X=A=>G[A<0?"negatives":"positives"].push(Math.abs(A)),se=[],U=0;for(;F?S>=I:S<=I;)E.toRegex===!0&&v>1?X(S):se.push(c(K(S,U),D,H)),S=F?S-
258
- v:S+v,U++;return E.toRegex===!0?v>1?u(G,E,D):h(se,null,{wrap:!1,...E}):se},g=(m,$,v=1,E={})=>{if(!i(m)&&m.length>1||!i($)&&$.length>1)return b(m,$,E);let S=E.transform||(H=>String.fromCharCode(H)),I=`${m}`.charCodeAt(0),F=`${$}`.charCodeAt(0),B=I>F,k=Math.min(I,F),M=Math.max(I,F);if(E.toRegex&&v===1)return d(k,M,!1,E);let j=[],D=0;for(;B?I>=F:I<=F;)j.push(S(I,D)),I=B?I-v:I+v,D++;return E.toRegex===!0?h(j,null,{wrap:!1,options:E}):j},p=(m,$,v,E={})=>{if($==null&&s(m))return[m];if(!s(m)||!s($))return b(
259
- m,$,E);if(typeof v=="function")return p(m,$,1,{transform:v});if(r(v))return p(m,$,0,v);let S={...E};return S.capture===!0&&(S.wrap=!0),v=v||S.step||1,i(v)?i(m)&&i($)?f(m,$,v,S):g(m,$,Math.max(Math.abs(v),1),S):v!=null&&!r(v)?_(v,S):p(m,$,1,v)};return pi=p,pi}var mi,gc;function Em(){if(gc)return mi;gc=1;const t=mc(),e=ui();return mi=(n,s={})=>{const i=(o,a={})=>{const c=e.isInvalidBrace(a),l=o.invalid===!0&&s.escapeInvalid===!0,u=c===!0||l===!0,d=s.escapeInvalid===!0?"\\":"";let h="";if(o.isOpen===
260
- !0)return d+o.value;if(o.isClose===!0)return console.log("node.isClose",d,o.value),d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){const y=e.reduce(o.nodes),b=t(...y,{...s,wrap:!1,toRegex:!0,strictZeros:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(const y of o.nodes)h+=i(y,o);return h};return i(n)},mi}var gi,
261
- yc;function Sm(){if(yc)return gi;yc=1;const t=mc(),e=fi(),r=ui(),n=(i="",o="",a=!1)=>{const c=[];if(i=[].concat(i),o=[].concat(o),!o.length)return i;if(!i.length)return a?r.flatten(o).map(l=>`{${l}}`):o;for(const l of i)if(Array.isArray(l))for(const u of l)c.push(n(u,o,a));else for(let u of o)a===!0&&typeof u=="string"&&(u=`{${u}}`),c.push(Array.isArray(u)?n(l,u,a):l+u);return r.flatten(c)};return gi=(i,o={})=>{const a=o.rangeLimit===void 0?1e3:o.rangeLimit,c=(l,u={})=>{l.queue=[];let d=u,h=u.queue;
250
+ 0){let H=B<0?Math.abs(B):1;D=i(H,Math.abs(F),M,m),F=M.a=0}return B>=0&&(j=i(F,B,M,m)),M.negatives=D,M.positives=j,M.result=r(D,j),m.capture===!0?M.result=`(${M.result})`:m.wrap!==!1&&j.length+D.length>1&&(M.result=`(?:${M.result})`),e.cache[I]=M,M.result};function r(f,g,p){let m=o(f,g,"-",!1)||[],$=o(g,f,"",!1)||[],v=o(f,g,"-?",!0)||[];return m.concat(v).concat($).join("|")}function n(f,g){let p=1,m=1,$=c(f,p),v=new Set([g]);for(;f<=$&&$<=g;)v.add($),p+=1,$=c(f,p);for($=d(g+1,m)-1;f<$&&$<=g;)v.add(
251
+ $),m+=1,$=d(g+1,m)-1;return v=[...v],v.sort(u),v}function s(f,g,p){if(f===g)return{pattern:f,count:[],digits:0};let m=a(f,g),$=m.length,v="",E=0;for(let S=0;S<$;S++){let[I,F]=m[S];I===F?v+=I:I!=="0"||F!=="9"?v+=_(I,F):E++}return E&&(v+=p.shorthand===!0?"\\d":"[0-9]"),{pattern:v,count:[E],digits:$}}function i(f,g,p,m){let $=n(f,g),v=[],E=f,S;for(let I=0;I<$.length;I++){let F=$[I],B=s(String(E),String(F),m),k="";if(!p.isPadded&&S&&S.pattern===B.pattern){S.count.length>1&&S.count.pop(),S.count.push(
252
+ B.count[0]),S.string=S.pattern+h(S.count),E=F+1;continue}p.isPadded&&(k=y(F,p,m)),B.string=k+B.pattern+h(B.count),v.push(B),E=F+1,S=B}return v}function o(f,g,p,m,$){let v=[];for(let E of f){let{string:S}=E;!m&&!l(g,"string",S)&&v.push(p+S),m&&l(g,"string",S)&&v.push(p+S)}return v}function a(f,g){let p=[];for(let m=0;m<f.length;m++)p.push([f[m],g[m]]);return p}function u(f,g){return f>g?1:g>f?-1:0}function l(f,g,p){return f.some(m=>m[g]===p)}function c(f,g){return Number(String(f).slice(0,-g)+"9".
253
+ repeat(g))}function d(f,g){return f-f%Math.pow(10,g)}function h(f){let[g=0,p=""]=f;return p||g>1?`{${g+(p?","+p:"")}}`:""}function _(f,g,p){return`[${f}${g-f===1?"":"-"}${g}]`}function b(f){return/^-?(0+)\d/.test(f)}function y(f,g,p){if(!g.isPadded)return f;let m=Math.abs(g.maxLen-String(f).length),$=p.relaxZeros!==!1;switch(m){case 0:return"";case 1:return $?"0?":"0";case 2:return $?"0{0,2}":"00";default:return $?`0{0,${m}}`:`0{${m}}`}}return e.cache={},e.clearCache=()=>e.cache={},pi=e,pi}var mi,
254
+ mc;function gc(){if(mc)return mi;mc=1;const t=fa,e=Em(),r=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),n=m=>$=>m===!0?Number($):String($),s=m=>typeof m=="number"||typeof m=="string"&&m!=="",i=m=>Number.isInteger(+m),o=m=>{let $=`${m}`,v=-1;if($[0]==="-"&&($=$.slice(1)),$==="0")return!1;for(;$[++v]==="0";);return v>0},a=(m,$,v)=>typeof m=="string"||typeof $=="string"?!0:v.stringify===!0,u=(m,$,v)=>{if($>0){let E=m[0]==="-"?"-":"";E&&(m=m.slice(1)),m=E+m.padStart(E?$-1:$,"0")}return v===!1?String(
255
+ m):m},l=(m,$)=>{let v=m[0]==="-"?"-":"";for(v&&(m=m.slice(1),$--);m.length<$;)m="0"+m;return v?"-"+m:m},c=(m,$,v)=>{m.negatives.sort((B,k)=>B<k?-1:B>k?1:0),m.positives.sort((B,k)=>B<k?-1:B>k?1:0);let E=$.capture?"":"?:",S="",I="",F;return m.positives.length&&(S=m.positives.map(B=>l(String(B),v)).join("|")),m.negatives.length&&(I=`-(${E}${m.negatives.map(B=>l(String(B),v)).join("|")})`),S&&I?F=`${S}|${I}`:F=S||I,$.wrap?`(${E}${F})`:F},d=(m,$,v,E)=>{if(v)return e(m,$,{wrap:!1,...E});let S=String.fromCharCode(
256
+ m);if(m===$)return S;let I=String.fromCharCode($);return`[${S}-${I}]`},h=(m,$,v)=>{if(Array.isArray(m)){let E=v.wrap===!0,S=v.capture?"":"?:";return E?`(${S}${m.join("|")})`:m.join("|")}return e(m,$,v)},_=(...m)=>new RangeError("Invalid range arguments: "+t.inspect(...m)),b=(m,$,v)=>{if(v.strictRanges===!0)throw _([m,$]);return[]},y=(m,$)=>{if($.strictRanges===!0)throw new TypeError(`Expected step "${m}" to be a number`);return[]},f=(m,$,v=1,E={})=>{let S=Number(m),I=Number($);if(!Number.isInteger(
257
+ S)||!Number.isInteger(I)){if(E.strictRanges===!0)throw _([m,$]);return[]}S===0&&(S=0),I===0&&(I=0);let F=S>I,B=String(m),k=String($),M=String(v);v=Math.max(Math.abs(v),1);let j=o(B)||o(k)||o(M),D=j?Math.max(B.length,k.length,M.length):0,H=j===!1&&a(m,$,E)===!1,Y=E.transform||n(H);if(E.toRegex&&v===1)return d(l(m,D),l($,D),!0,E);let G={negatives:[],positives:[]},J=A=>G[A<0?"negatives":"positives"].push(Math.abs(A)),se=[],U=0;for(;F?S>=I:S<=I;)E.toRegex===!0&&v>1?J(S):se.push(u(Y(S,U),D,H)),S=F?S-
258
+ v:S+v,U++;return E.toRegex===!0?v>1?c(G,E,D):h(se,null,{wrap:!1,...E}):se},g=(m,$,v=1,E={})=>{if(!i(m)&&m.length>1||!i($)&&$.length>1)return b(m,$,E);let S=E.transform||(H=>String.fromCharCode(H)),I=`${m}`.charCodeAt(0),F=`${$}`.charCodeAt(0),B=I>F,k=Math.min(I,F),M=Math.max(I,F);if(E.toRegex&&v===1)return d(k,M,!1,E);let j=[],D=0;for(;B?I>=F:I<=F;)j.push(S(I,D)),I=B?I-v:I+v,D++;return E.toRegex===!0?h(j,null,{wrap:!1,options:E}):j},p=(m,$,v,E={})=>{if($==null&&s(m))return[m];if(!s(m)||!s($))return b(
259
+ m,$,E);if(typeof v=="function")return p(m,$,1,{transform:v});if(r(v))return p(m,$,0,v);let S={...E};return S.capture===!0&&(S.wrap=!0),v=v||S.step||1,i(v)?i(m)&&i($)?f(m,$,v,S):g(m,$,Math.max(Math.abs(v),1),S):v!=null&&!r(v)?y(v,S):p(m,$,1,v)};return mi=p,mi}var gi,yc;function Sm(){if(yc)return gi;yc=1;const t=gc(),e=li();return gi=(n,s={})=>{const i=(o,a={})=>{const u=e.isInvalidBrace(a),l=o.invalid===!0&&s.escapeInvalid===!0,c=u===!0||l===!0,d=s.escapeInvalid===!0?"\\":"";let h="";if(o.isOpen===
260
+ !0)return d+o.value;if(o.isClose===!0)return console.log("node.isClose",d,o.value),d+o.value;if(o.type==="open")return c?d+o.value:"(";if(o.type==="close")return c?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":c?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){const _=e.reduce(o.nodes),b=t(..._,{...s,wrap:!1,toRegex:!0,strictZeros:!0});if(b.length!==0)return _.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(const _ of o.nodes)h+=i(_,o);return h};return i(n)},gi}var yi,
261
+ _c;function Rm(){if(_c)return yi;_c=1;const t=gc(),e=di(),r=li(),n=(i="",o="",a=!1)=>{const u=[];if(i=[].concat(i),o=[].concat(o),!o.length)return i;if(!i.length)return a?r.flatten(o).map(l=>`{${l}}`):o;for(const l of i)if(Array.isArray(l))for(const c of l)u.push(n(c,o,a));else for(let c of o)a===!0&&typeof c=="string"&&(c=`{${c}}`),u.push(Array.isArray(c)?n(l,c,a):l+c);return r.flatten(u)};return yi=(i,o={})=>{const a=o.rangeLimit===void 0?1e3:o.rangeLimit,u=(l,c={})=>{l.queue=[];let d=c,h=c.queue;
262
262
  for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,h=d.queue;if(l.invalid||l.dollar){h.push(n(h.pop(),e(l,o)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){h.push(n(h.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){const f=r.reduce(l.nodes);if(r.exceedsLimit(...f,o.step,a))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let g=t(...f,o);g.length===0&&(g=e(l,o)),h.push(n(h.pop(),g)),l.nodes=[];return}
263
- const y=r.encloseBrace(l);let b=l.queue,_=l;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let f=0;f<l.nodes.length;f++){const g=l.nodes[f];if(g.type==="comma"&&l.type==="brace"){f===1&&b.push(""),b.push("");continue}if(g.type==="close"){h.push(n(h.pop(),b,y));continue}if(g.value&&g.type!=="open"){b.push(n(b.pop(),g.value));continue}g.nodes&&c(g,l)}return b};return r.flatten(c(i))},gi}var yi,_c;function Rm(){return _c||(_c=1,yi={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"\
263
+ const _=r.encloseBrace(l);let b=l.queue,y=l;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,b=y.queue;for(let f=0;f<l.nodes.length;f++){const g=l.nodes[f];if(g.type==="comma"&&l.type==="brace"){f===1&&b.push(""),b.push("");continue}if(g.type==="close"){h.push(n(h.pop(),b,_));continue}if(g.value&&g.type!=="open"){b.push(n(b.pop(),g.value));continue}g.nodes&&u(g,l)}return b};return r.flatten(u(i))},yi}var _i,$c;function Am(){return $c||($c=1,_i={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"\
264
264
  A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"\
265
265
  {",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
266
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}),yi}var _i,$c;function Am(){if($c)return _i;$c=1;const t=fi(),{MAX_LENGTH:e,CHAR_BACKSLASH:r,CHAR_BACKTICK:n,CHAR_COMMA:s,CHAR_DOT:i,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:a,
267
- CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Rm();return _i=(g,p={})=>{if(typeof g!="string")throw new TypeError("Expected a string");const m=p||{},$=typeof m.maxLength=="number"?Math.min(e,m.maxLength):e;if(g.length>$)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${$})`);const v={type:"root",input:g,nodes:[]},E=[v];
268
- let S=v,I=v,F=0;const B=g.length;let k=0,M=0,j;const D=()=>g[k++],H=K=>{if(K.type==="text"&&I.type==="dot"&&(I.type="text"),I&&I.type==="text"&&K.type==="text"){I.value+=K.value;return}return S.nodes.push(K),K.parent=S,K.prev=I,I=K,K};for(H({type:"bos"});k<B;)if(S=E[E.length-1],j=D(),!(j===_||j===b)){if(j===r){H({type:"text",value:(p.keepEscaping?j:"")+D()});continue}if(j===d){H({type:"text",value:"\\"+j});continue}if(j===u){F++;let K;for(;k<B&&(K=D());){if(j+=K,K===u){F++;continue}if(K===r){j+=
269
- D();continue}if(K===d&&(F--,F===0))break}H({type:"text",value:j});continue}if(j===o){S=H({type:"paren",nodes:[]}),E.push(S),H({type:"text",value:j});continue}if(j===a){if(S.type!=="paren"){H({type:"text",value:j});continue}S=E.pop(),H({type:"text",value:j}),S=E[E.length-1];continue}if(j===h||j===y||j===n){const K=j;let G;for(p.keepQuotes!==!0&&(j="");k<B&&(G=D());){if(G===r){j+=G+D();continue}if(G===K){p.keepQuotes===!0&&(j+=G);break}j+=G}H({type:"text",value:j});continue}if(j===c){M++;const G={
270
- type:"brace",open:!0,close:!1,dollar:I.value&&I.value.slice(-1)==="$"||S.dollar===!0,depth:M,commas:0,ranges:0,nodes:[]};S=H(G),E.push(S),H({type:"open",value:j});continue}if(j===l){if(S.type!=="brace"){H({type:"text",value:j});continue}const K="close";S=E.pop(),S.close=!0,H({type:K,value:j}),M--,S=E[E.length-1];continue}if(j===s&&M>0){if(S.ranges>0){S.ranges=0;const K=S.nodes.shift();S.nodes=[K,{type:"text",value:t(S)}]}H({type:"comma",value:j}),S.commas++;continue}if(j===i&&M>0&&S.commas===0){
271
- const K=S.nodes;if(M===0||K.length===0){H({type:"text",value:j});continue}if(I.type==="dot"){if(S.range=[],I.value+=j,I.type="range",S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,I.type="text";continue}S.ranges++,S.args=[];continue}if(I.type==="range"){K.pop();const G=K[K.length-1];G.value+=I.value+j,I=G,S.ranges--;continue}H({type:"dot",value:j});continue}H({type:"text",value:j})}do if(S=E.pop(),S.type!=="root"){S.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type===
272
- "close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});const K=E[E.length-1],G=K.nodes.indexOf(S);K.nodes.splice(G,1,...S.nodes)}while(E.length>0);return H({type:"eos"}),v},_i}var $i,vc;function Om(){if(vc)return $i;vc=1;const t=fi(),e=Em(),r=Sm(),n=Am(),s=(i,o={})=>{let a=[];if(Array.isArray(i))for(const c of i){const l=s.create(c,o);Array.isArray(l)?a.push(...l):a.push(l)}else a=[].concat(s.create(i,o));return o&&o.expand===!0&&o.nodupes===!0&&(a=[...new Set(a)]),a};return s.parse=(i,o={})=>n(
273
- i,o),s.stringify=(i,o={})=>t(typeof i=="string"?s.parse(i,o):i,o),s.compile=(i,o={})=>(typeof i=="string"&&(i=s.parse(i,o)),e(i,o)),s.expand=(i,o={})=>{typeof i=="string"&&(i=s.parse(i,o));let a=r(i,o);return o.noempty===!0&&(a=a.filter(Boolean)),o.nodupes===!0&&(a=[...new Set(a)]),a},s.create=(i,o={})=>i===""||i.length<3?[i]:o.expand!==!0?s.compile(i,o):s.expand(i,o),$i=s,$i}var vi={},bi,bc;function en(){if(bc)return bi;bc=1;const t=Os,e="\\\\/",r=`[^${e}]`,n="\\.",s="\\+",i="\\?",o="\\/",a="(?\
274
- =.)",c="[^/]",l=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${n}{1,2}${l}`,h=`(?!${n})`,y=`(?!${u}${d})`,b=`(?!${n}{0,1}${l})`,_=`(?!${d})`,f=`[^.${o}]`,g=`${c}*?`,p={DOT_LITERAL:n,PLUS_LITERAL:s,QMARK_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:a,QMARK:c,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:f,STAR:g,START_ANCHOR:u},m={...p,SLASH_LITERAL:`[${e}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${n}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${e}])${n}{1,2}(?:[${e}]|$))`,
275
- NO_DOT_SLASH:`(?!${n}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`},$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return bi={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,
266
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}),_i}var $i,vc;function Om(){if(vc)return $i;vc=1;const t=di(),{MAX_LENGTH:e,CHAR_BACKSLASH:r,CHAR_BACKTICK:n,CHAR_COMMA:s,CHAR_DOT:i,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:a,
267
+ CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:_,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=Am();return $i=(g,p={})=>{if(typeof g!="string")throw new TypeError("Expected a string");const m=p||{},$=typeof m.maxLength=="number"?Math.min(e,m.maxLength):e;if(g.length>$)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${$})`);const v={type:"root",input:g,nodes:[]},E=[v];
268
+ let S=v,I=v,F=0;const B=g.length;let k=0,M=0,j;const D=()=>g[k++],H=Y=>{if(Y.type==="text"&&I.type==="dot"&&(I.type="text"),I&&I.type==="text"&&Y.type==="text"){I.value+=Y.value;return}return S.nodes.push(Y),Y.parent=S,Y.prev=I,I=Y,Y};for(H({type:"bos"});k<B;)if(S=E[E.length-1],j=D(),!(j===y||j===b)){if(j===r){H({type:"text",value:(p.keepEscaping?j:"")+D()});continue}if(j===d){H({type:"text",value:"\\"+j});continue}if(j===c){F++;let Y;for(;k<B&&(Y=D());){if(j+=Y,Y===c){F++;continue}if(Y===r){j+=
269
+ D();continue}if(Y===d&&(F--,F===0))break}H({type:"text",value:j});continue}if(j===o){S=H({type:"paren",nodes:[]}),E.push(S),H({type:"text",value:j});continue}if(j===a){if(S.type!=="paren"){H({type:"text",value:j});continue}S=E.pop(),H({type:"text",value:j}),S=E[E.length-1];continue}if(j===h||j===_||j===n){const Y=j;let G;for(p.keepQuotes!==!0&&(j="");k<B&&(G=D());){if(G===r){j+=G+D();continue}if(G===Y){p.keepQuotes===!0&&(j+=G);break}j+=G}H({type:"text",value:j});continue}if(j===u){M++;const G={
270
+ type:"brace",open:!0,close:!1,dollar:I.value&&I.value.slice(-1)==="$"||S.dollar===!0,depth:M,commas:0,ranges:0,nodes:[]};S=H(G),E.push(S),H({type:"open",value:j});continue}if(j===l){if(S.type!=="brace"){H({type:"text",value:j});continue}const Y="close";S=E.pop(),S.close=!0,H({type:Y,value:j}),M--,S=E[E.length-1];continue}if(j===s&&M>0){if(S.ranges>0){S.ranges=0;const Y=S.nodes.shift();S.nodes=[Y,{type:"text",value:t(S)}]}H({type:"comma",value:j}),S.commas++;continue}if(j===i&&M>0&&S.commas===0){
271
+ const Y=S.nodes;if(M===0||Y.length===0){H({type:"text",value:j});continue}if(I.type==="dot"){if(S.range=[],I.value+=j,I.type="range",S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,I.type="text";continue}S.ranges++,S.args=[];continue}if(I.type==="range"){Y.pop();const G=Y[Y.length-1];G.value+=I.value+j,I=G,S.ranges--;continue}H({type:"dot",value:j});continue}H({type:"text",value:j})}do if(S=E.pop(),S.type!=="root"){S.nodes.forEach(J=>{J.nodes||(J.type==="open"&&(J.isOpen=!0),J.type===
272
+ "close"&&(J.isClose=!0),J.nodes||(J.type="text"),J.invalid=!0)});const Y=E[E.length-1],G=Y.nodes.indexOf(S);Y.nodes.splice(G,1,...S.nodes)}while(E.length>0);return H({type:"eos"}),v},$i}var vi,bc;function Cm(){if(bc)return vi;bc=1;const t=di(),e=Sm(),r=Rm(),n=Om(),s=(i,o={})=>{let a=[];if(Array.isArray(i))for(const u of i){const l=s.create(u,o);Array.isArray(l)?a.push(...l):a.push(l)}else a=[].concat(s.create(i,o));return o&&o.expand===!0&&o.nodupes===!0&&(a=[...new Set(a)]),a};return s.parse=(i,o={})=>n(
273
+ i,o),s.stringify=(i,o={})=>t(typeof i=="string"?s.parse(i,o):i,o),s.compile=(i,o={})=>(typeof i=="string"&&(i=s.parse(i,o)),e(i,o)),s.expand=(i,o={})=>{typeof i=="string"&&(i=s.parse(i,o));let a=r(i,o);return o.noempty===!0&&(a=a.filter(Boolean)),o.nodupes===!0&&(a=[...new Set(a)]),a},s.create=(i,o={})=>i===""||i.length<3?[i]:o.expand!==!0?s.compile(i,o):s.expand(i,o),vi=s,vi}var bi={},wi,wc;function tn(){if(wc)return wi;wc=1;const t=Os,e="\\\\/",r=`[^${e}]`,n="\\.",s="\\+",i="\\?",o="\\/",a="(?\
274
+ =.)",u="[^/]",l=`(?:${o}|$)`,c=`(?:^|${o})`,d=`${n}{1,2}${l}`,h=`(?!${n})`,_=`(?!${c}${d})`,b=`(?!${n}{0,1}${l})`,y=`(?!${d})`,f=`[^.${o}]`,g=`${u}*?`,p={DOT_LITERAL:n,PLUS_LITERAL:s,QMARK_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:a,QMARK:u,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:_,NO_DOT_SLASH:b,NO_DOTS_SLASH:y,QMARK_NO_DOT:f,STAR:g,START_ANCHOR:c},m={...p,SLASH_LITERAL:`[${e}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${n}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${e}])${n}{1,2}(?:[${e}]|$))`,
275
+ NO_DOT_SLASH:`(?!${n}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`},$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return wi={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,
276
276
  REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,
277
277
  CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,
278
- CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(v){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${v.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(v){return v===!0?m:p}},bi}var wc;function tn(){return wc||(wc=1,function(t){const e=Os,r=process.
279
- platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:o}=en();t.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),t.hasRegexChars=a=>i.test(a),t.isRegexChar=a=>a.length===1&&t.hasRegexChars(a),t.escapeRegex=a=>a.replace(o,"\\$1"),t.toPosixSlashes=a=>a.replace(n,"/"),t.removeBackslashes=a=>a.replace(s,c=>c==="\\"?"":c),t.supportsLookbehinds=()=>{const a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||
280
- a[0]===8&&a[1]>=10},t.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:r===!0||e.sep==="\\",t.escapeLast=(a,c,l)=>{const u=a.lastIndexOf(c,l);return u===-1?a:a[u-1]==="\\"?t.escapeLast(a,c,u-1):`${a.slice(0,u)}\\${a.slice(u)}`},t.removePrefix=(a,c={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),c.prefix="./"),l},t.wrapOutput=(a,c={},l={})=>{const u=l.contains?"":"^",d=l.contains?"":"$";let h=`${u}(?:${a})${d}`;return c.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}(vi)),vi}var wi,Ec;function Cm(){
281
- if(Ec)return wi;Ec=1;const t=tn(),{CHAR_ASTERISK:e,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:s,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=en(),f=m=>m===a||m===n,g=m=>{m.isPrefix!==!0&&(m.depth=m.isGlobstar?1/0:1)};return wi=(m,$)=>{const v=$||{},E=m.length-1,S=v.parts===!0||v.scanToEnd===!0,I=[],F=[],
282
- B=[];let k=m,M=-1,j=0,D=0,H=!1,K=!1,G=!1,X=!1,se=!1,U=!1,A=!1,V=!1,x=!1,w=!1,R=0,C,Y,Q={value:"",depth:0,isGlob:!1};const ie=()=>M>=E,oe=()=>k.charCodeAt(M+1),L=()=>(C=Y,k.charCodeAt(++M));for(;M<E;){Y=L();let N;if(Y===n){A=Q.backslashes=!0,Y=L(),Y===c&&(U=!0);continue}if(U===!0||Y===c){for(R++;ie()!==!0&&(Y=L());){if(Y===n){A=Q.backslashes=!0,L();continue}if(Y===c){R++;continue}if(U!==!0&&Y===i&&(Y=L())===i){if(H=Q.isBrace=!0,G=Q.isGlob=!0,w=!0,S===!0)continue;break}if(U!==!0&&Y===s){if(H=Q.isBrace=
283
- !0,G=Q.isGlob=!0,w=!0,S===!0)continue;break}if(Y===y&&(R--,R===0)){U=!1,H=Q.isBrace=!0,w=!0;break}}if(S===!0)continue;break}if(Y===a){if(I.push(M),F.push(Q),Q={value:"",depth:0,isGlob:!1},w===!0)continue;if(C===i&&M===j+1){j+=2;continue}D=M+1;continue}if(v.noext!==!0&&(Y===d||Y===r||Y===e||Y===h||Y===o)===!0&&oe()===l){if(G=Q.isGlob=!0,X=Q.isExtglob=!0,w=!0,Y===o&&M===j&&(x=!0),S===!0){for(;ie()!==!0&&(Y=L());){if(Y===n){A=Q.backslashes=!0,Y=L();continue}if(Y===b){G=Q.isGlob=!0,w=!0;break}}continue}
284
- break}if(Y===e){if(C===e&&(se=Q.isGlobstar=!0),G=Q.isGlob=!0,w=!0,S===!0)continue;break}if(Y===h){if(G=Q.isGlob=!0,w=!0,S===!0)continue;break}if(Y===u){for(;ie()!==!0&&(N=L());){if(N===n){A=Q.backslashes=!0,L();continue}if(N===_){K=Q.isBracket=!0,G=Q.isGlob=!0,w=!0;break}}if(S===!0)continue;break}if(v.nonegate!==!0&&Y===o&&M===j){V=Q.negated=!0,j++;continue}if(v.noparen!==!0&&Y===l){if(G=Q.isGlob=!0,S===!0){for(;ie()!==!0&&(Y=L());){if(Y===l){A=Q.backslashes=!0,Y=L();continue}if(Y===b){w=!0;break}}
285
- continue}break}if(G===!0){if(w=!0,S===!0)continue;break}}v.noext===!0&&(X=!1,G=!1);let q=k,J="",ne="";j>0&&(J=k.slice(0,j),k=k.slice(j),D-=j),q&&G===!0&&D>0?(q=k.slice(0,D),ne=k.slice(D)):G===!0?(q="",ne=k):q=k,q&&q!==""&&q!=="/"&&q!==k&&f(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),v.unescape===!0&&(ne&&(ne=t.removeBackslashes(ne)),q&&A===!0&&(q=t.removeBackslashes(q)));const P={prefix:J,input:m,start:j,base:q,glob:ne,isBrace:H,isBracket:K,isGlob:G,isExtglob:X,isGlobstar:se,negated:V,negatedExtglob:x};
286
- if(v.tokens===!0&&(P.maxDepth=0,f(Y)||F.push(Q),P.tokens=F),v.parts===!0||v.tokens===!0){let N;for(let Z=0;Z<I.length;Z++){const W=N?N+1:j,T=I[Z],te=m.slice(W,T);v.tokens&&(Z===0&&j!==0?(F[Z].isPrefix=!0,F[Z].value=J):F[Z].value=te,g(F[Z]),P.maxDepth+=F[Z].depth),(Z!==0||te!=="")&&B.push(te),N=T}if(N&&N+1<m.length){const Z=m.slice(N+1);B.push(Z),v.tokens&&(F[F.length-1].value=Z,g(F[F.length-1]),P.maxDepth+=F[F.length-1].depth)}P.slashes=I,P.parts=B}return P},wi}var Ei,Sc;function Pm(){if(Sc)return Ei;
287
- Sc=1;const t=en(),e=tn(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:o}=t,a=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();const h=`[${u.join("-")}]`;try{new RegExp(h)}catch{return u.map(b=>e.escapeRegex(b)).join("..")}return h},c=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,l=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;const h={...d},y=typeof h.
288
- maxLength=="number"?Math.min(r,h.maxLength):r;let b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);const _={type:"bos",value:"",output:h.prepend||""},f=[_],g=h.capture?"":"?:",p=e.isWindows(d),m=t.globChars(p),$=t.extglobChars(m),{DOT_LITERAL:v,PLUS_LITERAL:E,SLASH_LITERAL:S,ONE_CHAR:I,DOTS_SLASH:F,NO_DOT:B,NO_DOT_SLASH:k,NO_DOTS_SLASH:M,QMARK:j,QMARK_NO_DOT:D,STAR:H,START_ANCHOR:K}=m,G=T=>`(${g}(?:(?!${K}${T.dot?F:v}).)*?)`,X=h.dot?"":B,se=h.dot?
289
- j:D;let U=h.bash===!0?G(h):H;h.capture&&(U=`(${U})`),typeof h.noext=="boolean"&&(h.noextglob=h.noext);const A={input:u,index:-1,start:0,dot:h.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};u=e.removePrefix(u,A),b=u.length;const V=[],x=[],w=[];let R=_,C;const Y=()=>A.index===b-1,Q=A.peek=(T=1)=>u[A.index+T],ie=A.advance=()=>u[++A.index]||"",oe=()=>u.slice(A.index+1),L=(T="",te=0)=>{A.consumed+=T,A.index+=te},q=T=>{A.output+=
290
- T.output!=null?T.output:T.value,L(T.value)},J=()=>{let T=1;for(;Q()==="!"&&(Q(2)!=="("||Q(3)==="?");)ie(),A.start++,T++;return T%2===0?!1:(A.negated=!0,A.start++,!0)},ne=T=>{A[T]++,w.push(T)},P=T=>{A[T]--,w.pop()},N=T=>{if(R.type==="globstar"){const te=A.braces>0&&(T.type==="comma"||T.type==="brace"),z=T.extglob===!0||V.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!te&&!z&&(A.output=A.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=U,A.output+=
291
- R.output)}if(V.length&&T.type!=="paren"&&(V[V.length-1].inner+=T.value),(T.value||T.output)&&q(T),R&&R.type==="text"&&T.type==="text"){R.value+=T.value,R.output=(R.output||"")+T.value;return}T.prev=R,f.push(T),R=T},Z=(T,te)=>{const z={...$[te],conditions:1,inner:""};z.prev=R,z.parens=A.parens,z.output=A.output;const re=(h.capture?"(":"")+z.open;ne("parens"),N({type:T,value:te,output:A.output?"":I}),N({type:"paren",extglob:!0,value:ie(),output:re}),V.push(z)},W=T=>{let te=T.close+(h.capture?")":""),
292
- z;if(T.type==="negate"){let re=U;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(re=G(h)),(re!==U||Y()||/^\)+$/.test(oe()))&&(te=T.close=`)$))${re}`),T.inner.includes("*")&&(z=oe())&&/^\.[^\\/.]+$/.test(z)){const le=l(z,{...d,fastpaths:!1}).output;te=T.close=`)${le})${re})`}T.prev.type==="bos"&&(A.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:C,output:te}),P("parens")};if(h.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let T=!1,te=u.replace(i,(z,re,le,$e,we,ot)=>$e==="\\"?(T=!0,z):
293
- $e==="?"?re?re+$e+(we?j.repeat(we.length):""):ot===0?se+(we?j.repeat(we.length):""):j.repeat(le.length):$e==="."?v.repeat(le.length):$e==="*"?re?re+$e+(we?U:""):U:re?z:`\\${z}`);return T===!0&&(h.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),te===u&&h.contains===!0?(A.output=u,A):(A.output=e.wrapOutput(te,A,d),A)}for(;!Y();){if(C=ie(),C==="\0")continue;if(C==="\\"){const z=Q();if(z==="/"&&h.bash!==!0||z==="."||z===";")continue;if(!z){C+="\\",N({type:"\
294
- text",value:C});continue}const re=/^\\+/.exec(oe());let le=0;if(re&&re[0].length>2&&(le=re[0].length,A.index+=le,le%2!==0&&(C+="\\")),h.unescape===!0?C=ie():C+=ie(),A.brackets===0){N({type:"text",value:C});continue}}if(A.brackets>0&&(C!=="]"||R.value==="["||R.value==="[^")){if(h.posix!==!1&&C===":"){const z=R.value.slice(1);if(z.includes("[")&&(R.posix=!0,z.includes(":"))){const re=R.value.lastIndexOf("["),le=R.value.slice(0,re),$e=R.value.slice(re+2),we=n[$e];if(we){R.value=le+we,A.backtrack=!0,
295
- ie(),!_.output&&f.indexOf(R)===1&&(_.output=I);continue}}}(C==="["&&Q()!==":"||C==="-"&&Q()==="]")&&(C=`\\${C}`),C==="]"&&(R.value==="["||R.value==="[^")&&(C=`\\${C}`),h.posix===!0&&C==="!"&&R.value==="["&&(C="^"),R.value+=C,q({value:C});continue}if(A.quotes===1&&C!=='"'){C=e.escapeRegex(C),R.value+=C,q({value:C});continue}if(C==='"'){A.quotes=A.quotes===1?0:1,h.keepQuotes===!0&&N({type:"text",value:C});continue}if(C==="("){ne("parens"),N({type:"paren",value:C});continue}if(C===")"){if(A.parens===
296
- 0&&h.strictBrackets===!0)throw new SyntaxError(c("opening","("));const z=V[V.length-1];if(z&&A.parens===z.parens+1){W(V.pop());continue}N({type:"paren",value:C,output:A.parens?")":"\\)"}),P("parens");continue}if(C==="["){if(h.nobracket===!0||!oe().includes("]")){if(h.nobracket!==!0&&h.strictBrackets===!0)throw new SyntaxError(c("closing","]"));C=`\\${C}`}else ne("brackets");N({type:"bracket",value:C});continue}if(C==="]"){if(h.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){N({type:"t\
297
- ext",value:C,output:`\\${C}`});continue}if(A.brackets===0){if(h.strictBrackets===!0)throw new SyntaxError(c("opening","["));N({type:"text",value:C,output:`\\${C}`});continue}P("brackets");const z=R.value.slice(1);if(R.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(C=`/${C}`),R.value+=C,q({value:C}),h.literalBrackets===!1||e.hasRegexChars(z))continue;const re=e.escapeRegex(R.value);if(A.output=A.output.slice(0,-R.value.length),h.literalBrackets===!0){A.output+=re,R.value=re;continue}R.value=`(${g}${re}\
298
- |${R.value})`,A.output+=R.value;continue}if(C==="{"&&h.nobrace!==!0){ne("braces");const z={type:"brace",value:C,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};x.push(z),N(z);continue}if(C==="}"){const z=x[x.length-1];if(h.nobrace===!0||!z){N({type:"text",value:C,output:C});continue}let re=")";if(z.dots===!0){const le=f.slice(),$e=[];for(let we=le.length-1;we>=0&&(f.pop(),le[we].type!=="brace");we--)le[we].type!=="dots"&&$e.unshift(le[we].value);re=a($e,h),A.backtrack=!0}if(z.
299
- comma!==!0&&z.dots!==!0){const le=A.output.slice(0,z.outputIndex),$e=A.tokens.slice(z.tokensIndex);z.value=z.output="\\{",C=re="\\}",A.output=le;for(const we of $e)A.output+=we.output||we.value}N({type:"brace",value:C,output:re}),P("braces"),x.pop();continue}if(C==="|"){V.length>0&&V[V.length-1].conditions++,N({type:"text",value:C});continue}if(C===","){let z=C;const re=x[x.length-1];re&&w[w.length-1]==="braces"&&(re.comma=!0,z="|"),N({type:"comma",value:C,output:z});continue}if(C==="/"){if(R.type===
300
- "dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",f.pop(),R=_;continue}N({type:"slash",value:C,output:S});continue}if(C==="."){if(A.braces>0&&R.type==="dot"){R.value==="."&&(R.output=v);const z=x[x.length-1];R.type="dots",R.output+=C,R.value+=C,z.dots=!0;continue}if(A.braces+A.parens===0&&R.type!=="bos"&&R.type!=="slash"){N({type:"text",value:C,output:v});continue}N({type:"dot",value:C,output:v});continue}if(C==="?"){if(!(R&&R.value==="(")&&h.noextglob!==!0&&Q()==="("&&Q(2)!==
301
- "?"){Z("qmark",C);continue}if(R&&R.type==="paren"){const re=Q();let le=C;if(re==="<"&&!e.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(oe()))&&(le=`\\${C}`),N({type:"text",value:C,output:le});continue}if(h.dot!==!0&&(R.type==="slash"||R.type==="bos")){N({type:"qmark",value:C,output:D});continue}N({type:"qmark",value:C,output:j});continue}if(C==="!"){if(h.noextglob!==!0&&Q()==="("&&
302
- (Q(2)!=="?"||!/[!=<:]/.test(Q(3)))){Z("negate",C);continue}if(h.nonegate!==!0&&A.index===0){J();continue}}if(C==="+"){if(h.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){Z("plus",C);continue}if(R&&R.value==="("||h.regex===!1){N({type:"plus",value:C,output:E});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||A.parens>0){N({type:"plus",value:C});continue}N({type:"plus",value:E});continue}if(C==="@"){if(h.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){N({type:"at",extglob:!0,value:C,output:""});
303
- continue}N({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);const z=s.exec(oe());z&&(C+=z[0],A.index+=z[0].length),N({type:"text",value:C});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=C,R.output=U,A.backtrack=!0,A.globstar=!0,L(C);continue}let T=oe();if(h.noextglob!==!0&&/^\([^?]/.test(T)){Z("star",C);continue}if(R.type==="star"){if(h.noglobstar===!0){L(C);continue}const z=R.prev,re=z.prev,le=z.type==="slash"||z.type==="bos",$e=re&&
304
- (re.type==="star"||re.type==="globstar");if(h.bash===!0&&(!le||T[0]&&T[0]!=="/")){N({type:"star",value:C,output:""});continue}const we=A.braces>0&&(z.type==="comma"||z.type==="brace"),ot=V.length&&(z.type==="pipe"||z.type==="paren");if(!le&&z.type!=="paren"&&!we&&!ot){N({type:"star",value:C,output:""});continue}for(;T.slice(0,3)==="/**";){const mt=u[A.index+4];if(mt&&mt!=="/")break;T=T.slice(3),L("/**",3)}if(z.type==="bos"&&Y()){R.type="globstar",R.value+=C,R.output=G(h),A.output=R.output,A.globstar=
305
- !0,L(C);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!$e&&Y()){A.output=A.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=G(h)+(h.strictSlashes?")":"|$)"),R.value+=C,A.globstar=!0,A.output+=z.output+R.output,L(C);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&T[0]==="/"){const mt=T[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=`${G(h)}${S}|${S}${mt})`,R.value+=
306
- C,A.output+=z.output+R.output,A.globstar=!0,L(C+ie()),N({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&T[0]==="/"){R.type="globstar",R.value+=C,R.output=`(?:^|${S}|${G(h)}${S})`,A.output=R.output,A.globstar=!0,L(C+ie()),N({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-R.output.length),R.type="globstar",R.output=G(h),R.value+=C,A.output+=R.output,A.globstar=!0,L(C);continue}const te={type:"star",value:C,output:U};if(h.bash===!0){te.output=".*?",(R.type===
307
- "bos"||R.type==="slash")&&(te.output=X+te.output),N(te);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&h.regex===!0){te.output=C,N(te);continue}(A.index===A.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(A.output+=k,R.output+=k):h.dot===!0?(A.output+=M,R.output+=M):(A.output+=X,R.output+=X),Q()!=="*"&&(A.output+=I,R.output+=I)),N(te)}for(;A.brackets>0;){if(h.strictBrackets===!0)throw new SyntaxError(c("closing","]"));A.output=e.escapeLast(A.output,"["),P("brackets")}for(;A.parens>
308
- 0;){if(h.strictBrackets===!0)throw new SyntaxError(c("closing",")"));A.output=e.escapeLast(A.output,"("),P("parens")}for(;A.braces>0;){if(h.strictBrackets===!0)throw new SyntaxError(c("closing","}"));A.output=e.escapeLast(A.output,"{"),P("braces")}if(h.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${S}?`}),A.backtrack===!0){A.output="";for(const T of A.tokens)A.output+=T.output!=null?T.output:T.value,T.suffix&&(A.output+=T.suffix)}return A};return l.
309
- fastpaths=(u,d)=>{const h={...d},y=typeof h.maxLength=="number"?Math.min(r,h.maxLength):r,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;const _=e.isWindows(d),{DOT_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:$,NO_DOTS:v,NO_DOTS_SLASH:E,STAR:S,START_ANCHOR:I}=t.globChars(_),F=h.dot?v:$,B=h.dot?E:$,k=h.capture?"":"?:",M={negated:!1,prefix:""};let j=h.bash===!0?".*?":S;h.capture&&(j=`(${j})`);const D=X=>X.noglobstar===!0?j:
310
- `(${k}(?:(?!${I}${X.dot?m:f}).)*?)`,H=X=>{switch(X){case"*":return`${F}${p}${j}`;case".*":return`${f}${p}${j}`;case"*.*":return`${F}${j}${f}${p}${j}`;case"*/*":return`${F}${j}${g}${p}${B}${j}`;case"**":return F+D(h);case"**/*":return`(?:${F}${D(h)}${g})?${B}${p}${j}`;case"**/*.*":return`(?:${F}${D(h)}${g})?${B}${j}${f}${p}${j}`;case"**/.*":return`(?:${F}${D(h)}${g})?${f}${p}${j}`;default:{const se=/^(.*?)\.(\w+)$/.exec(X);if(!se)return;const U=H(se[1]);return U?U+f+se[2]:void 0}}},K=e.removePrefix(
311
- u,M);let G=H(K);return G&&h.strictSlashes!==!0&&(G+=`${g}?`),G},Ei=l,Ei}var Si,Rc;function Im(){if(Rc)return Si;Rc=1;const t=Os,e=Cm(),r=Pm(),n=tn(),s=en(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,c,l=!1)=>{if(Array.isArray(a)){const g=a.map(m=>o(m,c,l));return m=>{for(const $ of g){const v=$(m);if(v)return v}return!1}}const u=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const d=c||{},h=n.isWindows(c),y=u?o.compileRe(
312
- a,c):o.makeRe(a,c,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){const g={...c,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,g,l)}const f=(g,p=!1)=>{const{isMatch:m,match:$,output:v}=o.test(g,y,c,{glob:a,posix:h}),E={glob:a,state:b,regex:y,posix:h,input:g,output:v,match:$,isMatch:m};return typeof d.onResult=="function"&&d.onResult(E),m===!1?(E.isMatch=!1,p?E:!1):_(g)?(typeof d.onIgnore=="function"&&d.onIgnore(E),E.isMatch=!1,p?E:!1):(typeof d.onMatch=="function"&&d.onMatch(E),p?
313
- E:!0)};return l&&(f.state=b),f};return o.test=(a,c,l,{glob:u,posix:d}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const h=l||{},y=h.format||(d?n.toPosixSlashes:null);let b=a===u,_=b&&y?y(a):a;return b===!1&&(_=y?y(a):a,b=_===u),(b===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?b=o.matchBase(a,c,l,d):b=c.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(a,c,l,u=n.isWindows(l))=>(c instanceof RegExp?c:o.makeRe(
314
- c,l)).test(t.basename(a)),o.isMatch=(a,c,l)=>o(c,l)(a),o.parse=(a,c)=>Array.isArray(a)?a.map(l=>o.parse(l,c)):r(a,{...c,fastpaths:!1}),o.scan=(a,c)=>e(a,c),o.compileRe=(a,c,l=!1,u=!1)=>{if(l===!0)return a.output;const d=c||{},h=d.contains?"":"^",y=d.contains?"":"$";let b=`${h}(?:${a.output})${y}`;a&&a.negated===!0&&(b=`^(?!${b}).*$`);const _=o.toRegex(b,c);return u===!0&&(_.state=a),_},o.makeRe=(a,c={},l=!1,u=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let d={
315
- negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(d.output=r.fastpaths(a,c)),d.output||(d=r(a,c)),o.compileRe(d,c,l,u)},o.toRegex=(a,c)=>{try{const l=c||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(c&&c.debug===!0)throw l;return/$^/}},o.constants=s,Si=o,Si}var Ri,Ac;function Tm(){return Ac||(Ac=1,Ri=Im()),Ri}var Ai,Oc;function Nm(){if(Oc)return Ai;Oc=1;const t=la,e=Om(),r=Tm(),n=tn(),s=a=>a===""||a==="./",i=a=>{const c=a.indexOf("{");return c>-1&&a.indexOf(
316
- "}",c)>-1},o=(a,c,l)=>{c=[].concat(c),a=[].concat(a);let u=new Set,d=new Set,h=new Set,y=0,b=g=>{h.add(g.output),l&&l.onResult&&l.onResult(g)};for(let g=0;g<c.length;g++){let p=r(String(c[g]),{...l,onResult:b},!0),m=p.state.negated||p.state.negatedExtglob;m&&y++;for(let $ of a){let v=p($,!0);(m?!v.isMatch:v.isMatch)&&(m?u.add(v.output):(u.delete(v.output),d.add(v.output)))}}let f=(y===c.length?[...h]:[...d]).filter(g=>!u.has(g));if(l&&f.length===0){if(l.failglob===!0)throw new Error(`No matches \
317
- found for "${c.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?c.map(g=>g.replace(/\\/g,"")):c}return f};return o.match=o,o.matcher=(a,c)=>r(a,c),o.isMatch=(a,c,l)=>r(c,l)(a),o.any=o.isMatch,o.not=(a,c,l={})=>{c=[].concat(c).map(String);let u=new Set,d=[],h=b=>{l.onResult&&l.onResult(b),d.push(b.output)},y=new Set(o(a,c,{...l,onResult:h}));for(let b of d)y.has(b)||u.add(b);return[...u]},o.contains=(a,c,l)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${t.inspect(
318
- a)}"`);if(Array.isArray(c))return c.some(u=>o.contains(a,u,l));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...l,contains:!0})},o.matchKeys=(a,c,l)=>{if(!n.isObject(a))throw new TypeError("Expected the first argument to be an object");let u=o(Object.keys(a),c,l),d={};for(let h of u)d[h]=a[h];return d},o.some=(a,c,l)=>{let u=[].concat(a);for(let d of[].concat(c)){let h=r(String(d),l);if(u.some(y=>h(y)))return!0}
319
- return!1},o.every=(a,c,l)=>{let u=[].concat(a);for(let d of[].concat(c)){let h=r(String(d),l);if(!u.every(y=>h(y)))return!1}return!0},o.all=(a,c,l)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${t.inspect(a)}"`);return[].concat(c).every(u=>r(u,l)(a))},o.capture=(a,c,l)=>{let u=n.isWindows(l),h=r.makeRe(String(a),{...l,capture:!0}).exec(u?n.toPosixSlashes(c):c);if(h)return h.slice(1).map(y=>y===void 0?"":y)},o.makeRe=(...a)=>r.makeRe(...a),o.scan=(...a)=>r.scan(...a),o.parse=(a,c)=>{
320
- let l=[];for(let u of[].concat(a||[]))for(let d of e(String(u),c))l.push(r.parse(d,c));return l},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!i(a)?[a]:e(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},o.hasBraces=i,Ai=o,Ai}var jm=Nm();const Cc=Es(jm),Lm={useRecommendedBuildConfig:!0,removeViteModuleLoader:!1,deleteInlinedFiles:!0};function km(t,e,r,n=!1){const s=e.
321
- replaceAll(".","\\."),i=new RegExp(`<script([^>]*?) src="(?:[^"]*?/)?${s}"([^>]*)></script>`),o=/"?__VITE_PRELOAD__"?/g,a=r.replace(o,"void 0").replace(/<(\/script>|!--)/g,"\\x3C$1"),c=t.replace(i,(l,u,d)=>`<script${u}${d}>${a.trim()}</script>`);return n?Um(c):c}function Dm(t,e,r){const n=e.replaceAll(".","\\."),s=new RegExp(`<link([^>]*?) href="(?:[^"]*?/)?${n}"([^>]*)>`),i=r.replace('@charset "UTF-8";',"");return t.replace(s,(a,c,l)=>`<style${c}${l}>${i.trim()}</style>`)}const xm=/\.[mc]?js$/,
322
- Mm=/\.css$/,qm=/\.html?$/;function Hm({useRecommendedBuildConfig:t=!0,removeViteModuleLoader:e=!1,inlinePattern:r=[],deleteInlinedFiles:n=!0}=Lm){return{name:"vite:singlefile",config:t?Fm:void 0,enforce:"post",generateBundle(s,i){const o=l=>this.info(`NOTE: asset not inlined: ${l}`);this.info(`
323
- `);const a={html:[],css:[],js:[],other:[]};for(const l of Object.keys(i))qm.test(l)?a.html.push(l):Mm.test(l)?a.css.push(l):xm.test(l)?a.js.push(l):a.other.push(l);const c=[];for(const l of a.html){const u=i[l];let d=u.source;for(const h of a.js){if(r.length&&!Cc.isMatch(h,r)){o(h);continue}const y=i[h];y.code!=null&&(this.info(`Inlining: ${h}`),c.push(h),d=km(d,y.fileName,y.code,e))}for(const h of a.css){if(r.length&&!Cc.isMatch(h,r)){o(h);continue}const y=i[h];this.info(`Inlining: ${h}`),c.push(
324
- h),d=Dm(d,y.fileName,y.source)}u.source=d}if(n)for(const l of c)delete i[l];for(const l of a.other)o(l)}}}const Um=t=>t.replace(/(<script type="module" crossorigin>\s*)\(function(?: polyfill)?\(\)\s*\{[\s\S]*?\}\)\(\);/,'<script type="module">'),Fm=t=>{t.build||(t.build={}),t.build.assetsInlineLimit=()=>!0,t.build.chunkSizeWarningLimit=1e8,t.build.cssCodeSplit=!1,t.base="./",t.build.assetsDir="",t.build.rollupOptions||(t.build.rollupOptions={}),t.build.rollupOptions.output||(t.build.rollupOptions.
325
- output={});const e=r=>{r.inlineDynamicImports=!0};if(Array.isArray(t.build.rollupOptions.output))for(const r of t.build.rollupOptions.output)e(r);else e(t.build.rollupOptions.output)};function Vm(t){const e=new ma;return e.appendTemplate`
278
+ CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(v){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${v.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(v){return v===!0?m:p}},wi}var Ec;function rn(){return Ec||(Ec=1,function(t){const e=Os,r=process.
279
+ platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:o}=tn();t.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),t.hasRegexChars=a=>i.test(a),t.isRegexChar=a=>a.length===1&&t.hasRegexChars(a),t.escapeRegex=a=>a.replace(o,"\\$1"),t.toPosixSlashes=a=>a.replace(n,"/"),t.removeBackslashes=a=>a.replace(s,u=>u==="\\"?"":u),t.supportsLookbehinds=()=>{const a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||
280
+ a[0]===8&&a[1]>=10},t.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:r===!0||e.sep==="\\",t.escapeLast=(a,u,l)=>{const c=a.lastIndexOf(u,l);return c===-1?a:a[c-1]==="\\"?t.escapeLast(a,u,c-1):`${a.slice(0,c)}\\${a.slice(c)}`},t.removePrefix=(a,u={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),u.prefix="./"),l},t.wrapOutput=(a,u={},l={})=>{const c=l.contains?"":"^",d=l.contains?"":"$";let h=`${c}(?:${a})${d}`;return u.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}(bi)),bi}var Ei,Sc;function Pm(){
281
+ if(Sc)return Ei;Sc=1;const t=rn(),{CHAR_ASTERISK:e,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:s,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:_,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:y}=tn(),f=m=>m===a||m===n,g=m=>{m.isPrefix!==!0&&(m.depth=m.isGlobstar?1/0:1)};return Ei=(m,$)=>{const v=$||{},E=m.length-1,S=v.parts===!0||v.scanToEnd===!0,I=[],F=[],
282
+ B=[];let k=m,M=-1,j=0,D=0,H=!1,Y=!1,G=!1,J=!1,se=!1,U=!1,A=!1,V=!1,x=!1,w=!1,R=0,C,X,Z={value:"",depth:0,isGlob:!1};const ie=()=>M>=E,oe=()=>k.charCodeAt(M+1),L=()=>(C=X,k.charCodeAt(++M));for(;M<E;){X=L();let N;if(X===n){A=Z.backslashes=!0,X=L(),X===u&&(U=!0);continue}if(U===!0||X===u){for(R++;ie()!==!0&&(X=L());){if(X===n){A=Z.backslashes=!0,L();continue}if(X===u){R++;continue}if(U!==!0&&X===i&&(X=L())===i){if(H=Z.isBrace=!0,G=Z.isGlob=!0,w=!0,S===!0)continue;break}if(U!==!0&&X===s){if(H=Z.isBrace=
283
+ !0,G=Z.isGlob=!0,w=!0,S===!0)continue;break}if(X===_&&(R--,R===0)){U=!1,H=Z.isBrace=!0,w=!0;break}}if(S===!0)continue;break}if(X===a){if(I.push(M),F.push(Z),Z={value:"",depth:0,isGlob:!1},w===!0)continue;if(C===i&&M===j+1){j+=2;continue}D=M+1;continue}if(v.noext!==!0&&(X===d||X===r||X===e||X===h||X===o)===!0&&oe()===l){if(G=Z.isGlob=!0,J=Z.isExtglob=!0,w=!0,X===o&&M===j&&(x=!0),S===!0){for(;ie()!==!0&&(X=L());){if(X===n){A=Z.backslashes=!0,X=L();continue}if(X===b){G=Z.isGlob=!0,w=!0;break}}continue}
284
+ break}if(X===e){if(C===e&&(se=Z.isGlobstar=!0),G=Z.isGlob=!0,w=!0,S===!0)continue;break}if(X===h){if(G=Z.isGlob=!0,w=!0,S===!0)continue;break}if(X===c){for(;ie()!==!0&&(N=L());){if(N===n){A=Z.backslashes=!0,L();continue}if(N===y){Y=Z.isBracket=!0,G=Z.isGlob=!0,w=!0;break}}if(S===!0)continue;break}if(v.nonegate!==!0&&X===o&&M===j){V=Z.negated=!0,j++;continue}if(v.noparen!==!0&&X===l){if(G=Z.isGlob=!0,S===!0){for(;ie()!==!0&&(X=L());){if(X===l){A=Z.backslashes=!0,X=L();continue}if(X===b){w=!0;break}}
285
+ continue}break}if(G===!0){if(w=!0,S===!0)continue;break}}v.noext===!0&&(J=!1,G=!1);let q=k,Q="",ne="";j>0&&(Q=k.slice(0,j),k=k.slice(j),D-=j),q&&G===!0&&D>0?(q=k.slice(0,D),ne=k.slice(D)):G===!0?(q="",ne=k):q=k,q&&q!==""&&q!=="/"&&q!==k&&f(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),v.unescape===!0&&(ne&&(ne=t.removeBackslashes(ne)),q&&A===!0&&(q=t.removeBackslashes(q)));const P={prefix:Q,input:m,start:j,base:q,glob:ne,isBrace:H,isBracket:Y,isGlob:G,isExtglob:J,isGlobstar:se,negated:V,negatedExtglob:x};
286
+ if(v.tokens===!0&&(P.maxDepth=0,f(X)||F.push(Z),P.tokens=F),v.parts===!0||v.tokens===!0){let N;for(let ee=0;ee<I.length;ee++){const W=N?N+1:j,T=I[ee],te=m.slice(W,T);v.tokens&&(ee===0&&j!==0?(F[ee].isPrefix=!0,F[ee].value=Q):F[ee].value=te,g(F[ee]),P.maxDepth+=F[ee].depth),(ee!==0||te!=="")&&B.push(te),N=T}if(N&&N+1<m.length){const ee=m.slice(N+1);B.push(ee),v.tokens&&(F[F.length-1].value=ee,g(F[F.length-1]),P.maxDepth+=F[F.length-1].depth)}P.slashes=I,P.parts=B}return P},Ei}var Si,Rc;function Im(){
287
+ if(Rc)return Si;Rc=1;const t=tn(),e=rn(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:o}=t,a=(c,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...c,d);c.sort();const h=`[${c.join("-")}]`;try{new RegExp(h)}catch{return c.map(b=>e.escapeRegex(b)).join("..")}return h},u=(c,d)=>`Missing ${c}: "${d}" - use "\\\\${d}" to match literal characters`,l=(c,d)=>{if(typeof c!="string")throw new TypeError("Expected a string");c=o[c]||c;
288
+ const h={...d},_=typeof h.maxLength=="number"?Math.min(r,h.maxLength):r;let b=c.length;if(b>_)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${_}`);const y={type:"bos",value:"",output:h.prepend||""},f=[y],g=h.capture?"":"?:",p=e.isWindows(d),m=t.globChars(p),$=t.extglobChars(m),{DOT_LITERAL:v,PLUS_LITERAL:E,SLASH_LITERAL:S,ONE_CHAR:I,DOTS_SLASH:F,NO_DOT:B,NO_DOT_SLASH:k,NO_DOTS_SLASH:M,QMARK:j,QMARK_NO_DOT:D,STAR:H,START_ANCHOR:Y}=m,G=T=>`(${g}(?:(?!${Y}${T.dot?F:v}).\
289
+ )*?)`,J=h.dot?"":B,se=h.dot?j:D;let U=h.bash===!0?G(h):H;h.capture&&(U=`(${U})`),typeof h.noext=="boolean"&&(h.noextglob=h.noext);const A={input:c,index:-1,start:0,dot:h.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};c=e.removePrefix(c,A),b=c.length;const V=[],x=[],w=[];let R=y,C;const X=()=>A.index===b-1,Z=A.peek=(T=1)=>c[A.index+T],ie=A.advance=()=>c[++A.index]||"",oe=()=>c.slice(A.index+1),L=(T="",te=0)=>{A.consumed+=
290
+ T,A.index+=te},q=T=>{A.output+=T.output!=null?T.output:T.value,L(T.value)},Q=()=>{let T=1;for(;Z()==="!"&&(Z(2)!=="("||Z(3)==="?");)ie(),A.start++,T++;return T%2===0?!1:(A.negated=!0,A.start++,!0)},ne=T=>{A[T]++,w.push(T)},P=T=>{A[T]--,w.pop()},N=T=>{if(R.type==="globstar"){const te=A.braces>0&&(T.type==="comma"||T.type==="brace"),z=T.extglob===!0||V.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!te&&!z&&(A.output=A.output.slice(0,-R.output.length),R.type="star",
291
+ R.value="*",R.output=U,A.output+=R.output)}if(V.length&&T.type!=="paren"&&(V[V.length-1].inner+=T.value),(T.value||T.output)&&q(T),R&&R.type==="text"&&T.type==="text"){R.value+=T.value,R.output=(R.output||"")+T.value;return}T.prev=R,f.push(T),R=T},ee=(T,te)=>{const z={...$[te],conditions:1,inner:""};z.prev=R,z.parens=A.parens,z.output=A.output;const re=(h.capture?"(":"")+z.open;ne("parens"),N({type:T,value:te,output:A.output?"":I}),N({type:"paren",extglob:!0,value:ie(),output:re}),V.push(z)},W=T=>{
292
+ let te=T.close+(h.capture?")":""),z;if(T.type==="negate"){let re=U;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(re=G(h)),(re!==U||X()||/^\)+$/.test(oe()))&&(te=T.close=`)$))${re}`),T.inner.includes("*")&&(z=oe())&&/^\.[^\\/.]+$/.test(z)){const le=l(z,{...d,fastpaths:!1}).output;te=T.close=`)${le})${re})`}T.prev.type==="bos"&&(A.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:C,output:te}),P("parens")};if(h.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(c)){let T=!1,te=c.replace(i,(z,re,le,$e,we,ot)=>$e===
293
+ "\\"?(T=!0,z):$e==="?"?re?re+$e+(we?j.repeat(we.length):""):ot===0?se+(we?j.repeat(we.length):""):j.repeat(le.length):$e==="."?v.repeat(le.length):$e==="*"?re?re+$e+(we?U:""):U:re?z:`\\${z}`);return T===!0&&(h.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),te===c&&h.contains===!0?(A.output=c,A):(A.output=e.wrapOutput(te,A,d),A)}for(;!X();){if(C=ie(),C==="\0")continue;if(C==="\\"){const z=Z();if(z==="/"&&h.bash!==!0||z==="."||z===";")continue;if(!z){
294
+ C+="\\",N({type:"text",value:C});continue}const re=/^\\+/.exec(oe());let le=0;if(re&&re[0].length>2&&(le=re[0].length,A.index+=le,le%2!==0&&(C+="\\")),h.unescape===!0?C=ie():C+=ie(),A.brackets===0){N({type:"text",value:C});continue}}if(A.brackets>0&&(C!=="]"||R.value==="["||R.value==="[^")){if(h.posix!==!1&&C===":"){const z=R.value.slice(1);if(z.includes("[")&&(R.posix=!0,z.includes(":"))){const re=R.value.lastIndexOf("["),le=R.value.slice(0,re),$e=R.value.slice(re+2),we=n[$e];if(we){R.value=le+
295
+ we,A.backtrack=!0,ie(),!y.output&&f.indexOf(R)===1&&(y.output=I);continue}}}(C==="["&&Z()!==":"||C==="-"&&Z()==="]")&&(C=`\\${C}`),C==="]"&&(R.value==="["||R.value==="[^")&&(C=`\\${C}`),h.posix===!0&&C==="!"&&R.value==="["&&(C="^"),R.value+=C,q({value:C});continue}if(A.quotes===1&&C!=='"'){C=e.escapeRegex(C),R.value+=C,q({value:C});continue}if(C==='"'){A.quotes=A.quotes===1?0:1,h.keepQuotes===!0&&N({type:"text",value:C});continue}if(C==="("){ne("parens"),N({type:"paren",value:C});continue}if(C===
296
+ ")"){if(A.parens===0&&h.strictBrackets===!0)throw new SyntaxError(u("opening","("));const z=V[V.length-1];if(z&&A.parens===z.parens+1){W(V.pop());continue}N({type:"paren",value:C,output:A.parens?")":"\\)"}),P("parens");continue}if(C==="["){if(h.nobracket===!0||!oe().includes("]")){if(h.nobracket!==!0&&h.strictBrackets===!0)throw new SyntaxError(u("closing","]"));C=`\\${C}`}else ne("brackets");N({type:"bracket",value:C});continue}if(C==="]"){if(h.nobracket===!0||R&&R.type==="bracket"&&R.value.length===
297
+ 1){N({type:"text",value:C,output:`\\${C}`});continue}if(A.brackets===0){if(h.strictBrackets===!0)throw new SyntaxError(u("opening","["));N({type:"text",value:C,output:`\\${C}`});continue}P("brackets");const z=R.value.slice(1);if(R.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(C=`/${C}`),R.value+=C,q({value:C}),h.literalBrackets===!1||e.hasRegexChars(z))continue;const re=e.escapeRegex(R.value);if(A.output=A.output.slice(0,-R.value.length),h.literalBrackets===!0){A.output+=re,R.value=re;continue}R.value=
298
+ `(${g}${re}|${R.value})`,A.output+=R.value;continue}if(C==="{"&&h.nobrace!==!0){ne("braces");const z={type:"brace",value:C,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};x.push(z),N(z);continue}if(C==="}"){const z=x[x.length-1];if(h.nobrace===!0||!z){N({type:"text",value:C,output:C});continue}let re=")";if(z.dots===!0){const le=f.slice(),$e=[];for(let we=le.length-1;we>=0&&(f.pop(),le[we].type!=="brace");we--)le[we].type!=="dots"&&$e.unshift(le[we].value);re=a($e,h),A.backtrack=
299
+ !0}if(z.comma!==!0&&z.dots!==!0){const le=A.output.slice(0,z.outputIndex),$e=A.tokens.slice(z.tokensIndex);z.value=z.output="\\{",C=re="\\}",A.output=le;for(const we of $e)A.output+=we.output||we.value}N({type:"brace",value:C,output:re}),P("braces"),x.pop();continue}if(C==="|"){V.length>0&&V[V.length-1].conditions++,N({type:"text",value:C});continue}if(C===","){let z=C;const re=x[x.length-1];re&&w[w.length-1]==="braces"&&(re.comma=!0,z="|"),N({type:"comma",value:C,output:z});continue}if(C==="/"){
300
+ if(R.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",f.pop(),R=y;continue}N({type:"slash",value:C,output:S});continue}if(C==="."){if(A.braces>0&&R.type==="dot"){R.value==="."&&(R.output=v);const z=x[x.length-1];R.type="dots",R.output+=C,R.value+=C,z.dots=!0;continue}if(A.braces+A.parens===0&&R.type!=="bos"&&R.type!=="slash"){N({type:"text",value:C,output:v});continue}N({type:"dot",value:C,output:v});continue}if(C==="?"){if(!(R&&R.value==="(")&&h.noextglob!==!0&&Z()===
301
+ "("&&Z(2)!=="?"){ee("qmark",C);continue}if(R&&R.type==="paren"){const re=Z();let le=C;if(re==="<"&&!e.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(oe()))&&(le=`\\${C}`),N({type:"text",value:C,output:le});continue}if(h.dot!==!0&&(R.type==="slash"||R.type==="bos")){N({type:"qmark",value:C,output:D});continue}N({type:"qmark",value:C,output:j});continue}if(C==="!"){if(h.noextglob!==
302
+ !0&&Z()==="("&&(Z(2)!=="?"||!/[!=<:]/.test(Z(3)))){ee("negate",C);continue}if(h.nonegate!==!0&&A.index===0){Q();continue}}if(C==="+"){if(h.noextglob!==!0&&Z()==="("&&Z(2)!=="?"){ee("plus",C);continue}if(R&&R.value==="("||h.regex===!1){N({type:"plus",value:C,output:E});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||A.parens>0){N({type:"plus",value:C});continue}N({type:"plus",value:E});continue}if(C==="@"){if(h.noextglob!==!0&&Z()==="("&&Z(2)!=="?"){N({type:"at",extglob:!0,
303
+ value:C,output:""});continue}N({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);const z=s.exec(oe());z&&(C+=z[0],A.index+=z[0].length),N({type:"text",value:C});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=C,R.output=U,A.backtrack=!0,A.globstar=!0,L(C);continue}let T=oe();if(h.noextglob!==!0&&/^\([^?]/.test(T)){ee("star",C);continue}if(R.type==="star"){if(h.noglobstar===!0){L(C);continue}const z=R.prev,re=z.prev,le=z.type==="slash"||
304
+ z.type==="bos",$e=re&&(re.type==="star"||re.type==="globstar");if(h.bash===!0&&(!le||T[0]&&T[0]!=="/")){N({type:"star",value:C,output:""});continue}const we=A.braces>0&&(z.type==="comma"||z.type==="brace"),ot=V.length&&(z.type==="pipe"||z.type==="paren");if(!le&&z.type!=="paren"&&!we&&!ot){N({type:"star",value:C,output:""});continue}for(;T.slice(0,3)==="/**";){const mt=c[A.index+4];if(mt&&mt!=="/")break;T=T.slice(3),L("/**",3)}if(z.type==="bos"&&X()){R.type="globstar",R.value+=C,R.output=G(h),A.
305
+ output=R.output,A.globstar=!0,L(C);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!$e&&X()){A.output=A.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=G(h)+(h.strictSlashes?")":"|$)"),R.value+=C,A.globstar=!0,A.output+=z.output+R.output,L(C);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&T[0]==="/"){const mt=T[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=`${G(
306
+ h)}${S}|${S}${mt})`,R.value+=C,A.output+=z.output+R.output,A.globstar=!0,L(C+ie()),N({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&T[0]==="/"){R.type="globstar",R.value+=C,R.output=`(?:^|${S}|${G(h)}${S})`,A.output=R.output,A.globstar=!0,L(C+ie()),N({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-R.output.length),R.type="globstar",R.output=G(h),R.value+=C,A.output+=R.output,A.globstar=!0,L(C);continue}const te={type:"star",value:C,output:U};if(h.bash===!0){
307
+ te.output=".*?",(R.type==="bos"||R.type==="slash")&&(te.output=J+te.output),N(te);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&h.regex===!0){te.output=C,N(te);continue}(A.index===A.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(A.output+=k,R.output+=k):h.dot===!0?(A.output+=M,R.output+=M):(A.output+=J,R.output+=J),Z()!=="*"&&(A.output+=I,R.output+=I)),N(te)}for(;A.brackets>0;){if(h.strictBrackets===!0)throw new SyntaxError(u("closing","]"));A.output=e.escapeLast(A.output,"["),
308
+ P("brackets")}for(;A.parens>0;){if(h.strictBrackets===!0)throw new SyntaxError(u("closing",")"));A.output=e.escapeLast(A.output,"("),P("parens")}for(;A.braces>0;){if(h.strictBrackets===!0)throw new SyntaxError(u("closing","}"));A.output=e.escapeLast(A.output,"{"),P("braces")}if(h.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${S}?`}),A.backtrack===!0){A.output="";for(const T of A.tokens)A.output+=T.output!=null?T.output:T.value,T.suffix&&(A.output+=
309
+ T.suffix)}return A};return l.fastpaths=(c,d)=>{const h={...d},_=typeof h.maxLength=="number"?Math.min(r,h.maxLength):r,b=c.length;if(b>_)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${_}`);c=o[c]||c;const y=e.isWindows(d),{DOT_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:$,NO_DOTS:v,NO_DOTS_SLASH:E,STAR:S,START_ANCHOR:I}=t.globChars(y),F=h.dot?v:$,B=h.dot?E:$,k=h.capture?"":"?:",M={negated:!1,prefix:""};let j=h.bash===!0?".*?":S;h.capture&&(j=`(${j})`);const D=J=>J.
310
+ noglobstar===!0?j:`(${k}(?:(?!${I}${J.dot?m:f}).)*?)`,H=J=>{switch(J){case"*":return`${F}${p}${j}`;case".*":return`${f}${p}${j}`;case"*.*":return`${F}${j}${f}${p}${j}`;case"*/*":return`${F}${j}${g}${p}${B}${j}`;case"**":return F+D(h);case"**/*":return`(?:${F}${D(h)}${g})?${B}${p}${j}`;case"**/*.*":return`(?:${F}${D(h)}${g})?${B}${j}${f}${p}${j}`;case"**/.*":return`(?:${F}${D(h)}${g})?${f}${p}${j}`;default:{const se=/^(.*?)\.(\w+)$/.exec(J);if(!se)return;const U=H(se[1]);return U?U+f+se[2]:void 0}}},
311
+ Y=e.removePrefix(c,M);let G=H(Y);return G&&h.strictSlashes!==!0&&(G+=`${g}?`),G},Si=l,Si}var Ri,Ac;function Tm(){if(Ac)return Ri;Ac=1;const t=Os,e=Pm(),r=Im(),n=rn(),s=tn(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,u,l=!1)=>{if(Array.isArray(a)){const g=a.map(m=>o(m,u,l));return m=>{for(const $ of g){const v=$(m);if(v)return v}return!1}}const c=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const d=u||{},h=n.isWindows(
312
+ u),_=c?o.compileRe(a,u):o.makeRe(a,u,!1,!0),b=_.state;delete _.state;let y=()=>!1;if(d.ignore){const g={...u,ignore:null,onMatch:null,onResult:null};y=o(d.ignore,g,l)}const f=(g,p=!1)=>{const{isMatch:m,match:$,output:v}=o.test(g,_,u,{glob:a,posix:h}),E={glob:a,state:b,regex:_,posix:h,input:g,output:v,match:$,isMatch:m};return typeof d.onResult=="function"&&d.onResult(E),m===!1?(E.isMatch=!1,p?E:!1):y(g)?(typeof d.onIgnore=="function"&&d.onIgnore(E),E.isMatch=!1,p?E:!1):(typeof d.onMatch=="functi\
313
+ on"&&d.onMatch(E),p?E:!0)};return l&&(f.state=b),f};return o.test=(a,u,l,{glob:c,posix:d}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const h=l||{},_=h.format||(d?n.toPosixSlashes:null);let b=a===c,y=b&&_?_(a):a;return b===!1&&(y=_?_(a):a,b=y===c),(b===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?b=o.matchBase(a,u,l,d):b=u.exec(y)),{isMatch:!!b,match:b,output:y}},o.matchBase=(a,u,l,c=n.isWindows(l))=>(u instanceof
314
+ RegExp?u:o.makeRe(u,l)).test(t.basename(a)),o.isMatch=(a,u,l)=>o(u,l)(a),o.parse=(a,u)=>Array.isArray(a)?a.map(l=>o.parse(l,u)):r(a,{...u,fastpaths:!1}),o.scan=(a,u)=>e(a,u),o.compileRe=(a,u,l=!1,c=!1)=>{if(l===!0)return a.output;const d=u||{},h=d.contains?"":"^",_=d.contains?"":"$";let b=`${h}(?:${a.output})${_}`;a&&a.negated===!0&&(b=`^(?!${b}).*$`);const y=o.toRegex(b,u);return c===!0&&(y.state=a),y},o.makeRe=(a,u={},l=!1,c=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-e\
315
+ mpty string");let d={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(d.output=r.fastpaths(a,u)),d.output||(d=r(a,u)),o.compileRe(d,u,l,c)},o.toRegex=(a,u)=>{try{const l=u||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(u&&u.debug===!0)throw l;return/$^/}},o.constants=s,Ri=o,Ri}var Ai,Oc;function Nm(){return Oc||(Oc=1,Ai=Tm()),Ai}var Oi,Cc;function jm(){if(Cc)return Oi;Cc=1;const t=fa,e=Cm(),r=Nm(),n=rn(),s=a=>a===""||a==="./",i=a=>{const u=a.indexOf("\
316
+ {");return u>-1&&a.indexOf("}",u)>-1},o=(a,u,l)=>{u=[].concat(u),a=[].concat(a);let c=new Set,d=new Set,h=new Set,_=0,b=g=>{h.add(g.output),l&&l.onResult&&l.onResult(g)};for(let g=0;g<u.length;g++){let p=r(String(u[g]),{...l,onResult:b},!0),m=p.state.negated||p.state.negatedExtglob;m&&_++;for(let $ of a){let v=p($,!0);(m?!v.isMatch:v.isMatch)&&(m?c.add(v.output):(c.delete(v.output),d.add(v.output)))}}let f=(_===u.length?[...h]:[...d]).filter(g=>!c.has(g));if(l&&f.length===0){if(l.failglob===!0)throw new Error(
317
+ `No matches found for "${u.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?u.map(g=>g.replace(/\\/g,"")):u}return f};return o.match=o,o.matcher=(a,u)=>r(a,u),o.isMatch=(a,u,l)=>r(u,l)(a),o.any=o.isMatch,o.not=(a,u,l={})=>{u=[].concat(u).map(String);let c=new Set,d=[],h=b=>{l.onResult&&l.onResult(b),d.push(b.output)},_=new Set(o(a,u,{...l,onResult:h}));for(let b of d)_.has(b)||c.add(b);return[...c]},o.contains=(a,u,l)=>{if(typeof a!="string")throw new TypeError(`Expected a stri\
318
+ ng: "${t.inspect(a)}"`);if(Array.isArray(u))return u.some(c=>o.contains(a,c,l));if(typeof u=="string"){if(s(a)||s(u))return!1;if(a.includes(u)||a.startsWith("./")&&a.slice(2).includes(u))return!0}return o.isMatch(a,u,{...l,contains:!0})},o.matchKeys=(a,u,l)=>{if(!n.isObject(a))throw new TypeError("Expected the first argument to be an object");let c=o(Object.keys(a),u,l),d={};for(let h of c)d[h]=a[h];return d},o.some=(a,u,l)=>{let c=[].concat(a);for(let d of[].concat(u)){let h=r(String(d),l);if(c.
319
+ some(_=>h(_)))return!0}return!1},o.every=(a,u,l)=>{let c=[].concat(a);for(let d of[].concat(u)){let h=r(String(d),l);if(!c.every(_=>h(_)))return!1}return!0},o.all=(a,u,l)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${t.inspect(a)}"`);return[].concat(u).every(c=>r(c,l)(a))},o.capture=(a,u,l)=>{let c=n.isWindows(l),h=r.makeRe(String(a),{...l,capture:!0}).exec(c?n.toPosixSlashes(u):u);if(h)return h.slice(1).map(_=>_===void 0?"":_)},o.makeRe=(...a)=>r.makeRe(...a),o.scan=(...a)=>r.
320
+ scan(...a),o.parse=(a,u)=>{let l=[];for(let c of[].concat(a||[]))for(let d of e(String(c),u))l.push(r.parse(d,u));return l},o.braces=(a,u)=>{if(typeof a!="string")throw new TypeError("Expected a string");return u&&u.nobrace===!0||!i(a)?[a]:e(a,u)},o.braceExpand=(a,u)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...u,expand:!0})},o.hasBraces=i,Oi=o,Oi}var Lm=jm();const Pc=Dr(Lm),km={useRecommendedBuildConfig:!0,removeViteModuleLoader:!1,deleteInlinedFiles:!0};
321
+ function Dm(t,e,r,n=!1){const s=e.replaceAll(".","\\."),i=new RegExp(`<script([^>]*?) src="(?:[^"]*?/)?${s}"([^>]*)></script>`),o=/"?__VITE_PRELOAD__"?/g,a=r.replace(o,"void 0").replace(/<(\/script>|!--)/g,"\\x3C$1"),u=t.replace(i,(l,c,d)=>`<script${c}${d}>${a.trim()}</script>`);return n?Fm(u):u}function xm(t,e,r){const n=e.replaceAll(".","\\."),s=new RegExp(`<link([^>]*?) href="(?:[^"]*?/)?${n}"([^>]*)>`),i=r.replace('@charset "UTF-8";',"");return t.replace(s,(a,u,l)=>`<style${u}${l}>${i.trim()}\
322
+ </style>`)}const Mm=/\.[mc]?js$/,qm=/\.css$/,Hm=/\.html?$/;function Um({useRecommendedBuildConfig:t=!0,removeViteModuleLoader:e=!1,inlinePattern:r=[],deleteInlinedFiles:n=!0}=km){return{name:"vite:singlefile",config:t?Vm:void 0,enforce:"post",generateBundle(s,i){const o=l=>this.info(`NOTE: asset not inlined: ${l}`);this.info(`
323
+ `);const a={html:[],css:[],js:[],other:[]};for(const l of Object.keys(i))Hm.test(l)?a.html.push(l):qm.test(l)?a.css.push(l):Mm.test(l)?a.js.push(l):a.other.push(l);const u=[];for(const l of a.html){const c=i[l];let d=c.source;for(const h of a.js){if(r.length&&!Pc.isMatch(h,r)){o(h);continue}const _=i[h];_.code!=null&&(this.info(`Inlining: ${h}`),u.push(h),d=Dm(d,_.fileName,_.code,e))}for(const h of a.css){if(r.length&&!Pc.isMatch(h,r)){o(h);continue}const _=i[h];this.info(`Inlining: ${h}`),u.push(
324
+ h),d=xm(d,_.fileName,_.source)}c.source=d}if(n)for(const l of u)delete i[l];for(const l of a.other)o(l)}}}const Fm=t=>t.replace(/(<script type="module" crossorigin>\s*)\(function(?: polyfill)?\(\)\s*\{[\s\S]*?\}\)\(\);/,'<script type="module">'),Vm=t=>{t.build||(t.build={}),t.build.assetsInlineLimit=()=>!0,t.build.chunkSizeWarningLimit=1e8,t.build.cssCodeSplit=!1,t.base="./",t.build.assetsDir="",t.build.rollupOptions||(t.build.rollupOptions={}),t.build.rollupOptions.output||(t.build.rollupOptions.
325
+ output={});const e=r=>{r.inlineDynamicImports=!0};if(Array.isArray(t.build.rollupOptions.output))for(const r of t.build.rollupOptions.output)e(r);else e(t.build.rollupOptions.output)};function zm(t){const e=new ga;return e.appendTemplate`
326
326
  /* prettier-ignore-start */
327
327
  /* eslint-disable */
328
328
 
@@ -341,7 +341,7 @@ output={});const e=r=>{r.inlineDynamicImports=!0};if(Array.isArray(t.build.rollu
341
341
  export type LikeC4ViewId = LikeC4ModelTypes['ViewId']
342
342
 
343
343
  /* prettier-ignore-end */
344
- `,Ls(e)}function zm(t){return ga(t,e=>ya`${Gt.stringify(e.id)}`,{separator:" | "})}function Gm(t){const e=Array.from(t),r=new ma;return r.appendTemplate`
344
+ `,Ls(e)}function Gm(t){return ya(t,e=>_a`${Gt.stringify(e.id)}`,{separator:" | "})}function Bm(t){const e=Array.from(t),r=new ga;return r.appendTemplate`
345
345
  /******************************************************************************
346
346
  * This file was generated
347
347
  * DO NOT EDIT MANUALLY!
@@ -353,9 +353,9 @@ output={});const e=r=>{r.inlineDynamicImports=!0};if(Array.isArray(t.build.rollu
353
353
 
354
354
  import type { DiagramView } from 'likec4'
355
355
  `.append(Wt,Wt),e.length===0?(r.append("export {}",Wt),Ls(r)):(r.appendTemplate`
356
- export type LikeC4ViewId = ${zm(e)};
356
+ export type LikeC4ViewId = ${Gm(e)};
357
357
  export const LikeC4Views = {
358
- `.indent({indentation:2,indentedChildren(n){n.appendNewLineIf(e.length>1).append(ga(e,s=>ya`${Gt.stringify(s.id)}: (${Gt.stringify(s)} as unknown) as DiagramView`,{separator:",",appendNewLineIfNotEmpty:!0}))}}).append("} as const satisfies Record<LikeC4ViewId, DiagramView>",Wt,Wt).appendTemplate`
358
+ `.indent({indentation:2,indentedChildren(n){n.appendNewLineIf(e.length>1).append(ya(e,s=>_a`${Gt.stringify(s.id)}: (${Gt.stringify(s)} as unknown) as DiagramView`,{separator:",",appendNewLineIfNotEmpty:!0}))}}).append("} as const satisfies Record<LikeC4ViewId, DiagramView>",Wt,Wt).appendTemplate`
359
359
  export type LikeC4Views = typeof LikeC4Views
360
360
 
361
361
  export function isLikeC4ViewId(value: unknown): value is LikeC4ViewId {
@@ -367,8 +367,8 @@ output={});const e=r=>{r.inlineDynamicImports=!0};if(Array.isArray(t.build.rollu
367
367
  }
368
368
 
369
369
  /* prettier-ignore-end */
370
- `.append(Wt),Ls(r))}function Rr(t){t instanceof Set&&(t=[...t].sort(cp));const e=t.map(r=>` | ${JSON.stringify(r)}`);return e.length===0&&e.push(" never"),e.join(`
371
- `)+";"}function Bm(t){const{fqns:e,tags:r,kinds:n}=_a([...t.elements()]).reduce((o,a)=>(o.fqns.push(a.id),o.kinds.add(a.kind),o.tags.push(...a.tags),o),{fqns:[],kinds:new Set,tags:[]}),s=_a([...t.deployment.elements()]).map(o=>o.id),{viewIds:i}=[...t.views()].reduce((o,a)=>(o.viewIds.add(a.id),o.tags.push(...a.tags),o.tags.push(...a.includedTags),o),{viewIds:new Set,tags:r});return`
370
+ `.append(Wt),Ls(r))}function Rr(t){t instanceof Set&&(t=[...t].sort(lp));const e=t.map(r=>` | ${JSON.stringify(r)}`);return e.length===0&&e.push(" never"),e.join(`
371
+ `)+";"}function Wm(t){const{fqns:e,tags:r,kinds:n}=$a([...t.elements()]).reduce((o,a)=>(o.fqns.push(a.id),o.kinds.add(a.kind),o.tags.push(...a.tags),o),{fqns:[],kinds:new Set,tags:[]}),s=$a([...t.deployment.elements()]).map(o=>o.id),{viewIds:i}=[...t.views()].reduce((o,a)=>(o.viewIds.add(a.id),o.tags.push(...a.tags),o.tags.push(...a.includedTags),o),{viewIds:new Set,tags:r});return`
372
372
  /* prettier-ignore-start */
373
373
  /* eslint-disable */
374
374
 
@@ -450,479 +450,479 @@ export {
450
450
  ReactLikeC4
451
451
  }
452
452
  /* prettier-ignore-end */
453
- `.trimStart()}const Oi=async({languageServices:t,likec4AssetsDir:e,...r})=>{const n=r.customLogger??ri,s=si(),i=r?.useOverviewGraph===!0;n.info(`${ee.cyan("likec4 app root")} ${ee.dim(s)}`);const o=r.outputDir??ye(t.workspace,"dist");n.info(ee.cyan("output")+" "+ee.dim(o));let a="/";r.base&&(a=Ih(r.base),!Th(a)&&a!=="./"&&(a=Nh(a))),a!=="/"&&n.info(`${ee.green("app base url")} ${ee.dim(a)}`);const c=r.webcomponentPrefix??"likec4";return{isDev:!1,likec4AssetsDir:e,webcomponentPrefix:c,root:s,languageServices:t,
454
- clearScreen:!1,base:a,resolve:{conditions:["production"],dedupe:["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react-dom/client"],alias:{...ai(),"likec4/previews":e}},configFile:!1,mode:"production",optimizeDeps:{force:!0,include:["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react/jsx-dev-runtime","react-dom/client"]},define:{WEBCOMPONENT_PREFIX:JSON.stringify(c),__USE_OVERVIEW_GRAPH__:i?"true":"false",__USE_HASH_HISTORY__:r?.useHashHistory===!0?"true":"fal\
455
- se","process.env.NODE_ENV":'"production"'},build:{outDir:o,modulePreload:!1,emptyOutDir:!1,sourcemap:!1,cssCodeSplit:!0,cssMinify:!0,minify:!0,copyPublicDir:!0,chunkSizeWarningLimit:oi,rollupOptions:{treeshake:{preset:"recommended"},output:{hoistTransitiveImports:!1,compact:!0}}},customLogger:n,plugins:[js(),ks({languageServices:t.languageServices,useOverviewGraph:i})].concat(r.outputSingleFile?[Hm()]:[])}};async function Ci({languageServices:t,outDir:e,base:r,webcomponentPrefix:n="likec4",filename:s="\
456
- likec4-views.js"}){const i=ri,o=si();return i.info(ee.cyan("outDir")+" "+ee.dim(e)),{root:o,clearScreen:!1,base:r,configFile:!1,publicDir:!1,mode:"production",resolve:{conditions:["production"],alias:ai()},define:{WEBCOMPONENT_PREFIX:JSON.stringify(n),"process.env.NODE_ENV":'"production"'},esbuild:{...ni},build:{outDir:e,emptyOutDir:!1,sourcemap:!1,minify:!0,assetsInlineLimit:100*1024,chunkSizeWarningLimit:oi,lib:{entry:"src/webcomponent.tsx",fileName(a,c){return s},formats:["iife"],name:"LikeC4\
457
- Views"},rollupOptions:{treeshake:{preset:"recommended"},output:{format:"iife",hoistTransitiveImports:!1,compact:!0}}},customLogger:i,plugins:[js(),ks({languageServices:t.languageServices,useOverviewGraph:!1})]}}const Wm=["favicon.ico","robots.txt"],Km=async({buildWebcomponent:t=!0,webcomponentPrefix:e="likec4",languageServices:r,likec4AssetsDir:n,outputSingleFile:s,...i})=>{n??=await xr(cr(Mr(),".likec4-assets-"));const{isDev:o,...a}=await Oi({...i,languageServices:r,likec4AssetsDir:n,webcomponentPrefix:e,
458
- outputSingleFile:s}),c=await ii();for(const d of Wm){const h=ye(a.root,d);Ct(h)&&da(h,ye(c,d))}const l=await r.viewsService.computedViews(),u=await r.diagrams();if(u.length===0)throw process.exitCode=1,new Error("no views found");if(u.length===l.length?a.customLogger.info(`${ee.dim("workspace:")} ${ee.green("\u2713 all views layouted")}`):a.customLogger.warn(`${ee.dim("workspace:")} ${ee.yellow(`\u2717 layouted ${u.length} of ${l.length} views`)}`),u.forEach(d=>{d.hasLayoutDrift&&a.customLogger.
459
- warn(ee.yellow("drift detected, manual layout can not be applied, view:")+" "+ee.red(d.id))}),t){const d=await Ci({webcomponentPrefix:e,languageServices:r,outDir:c,base:a.base});await fr(d)}if(await fr({...a,publicDir:c,mode:"production"}),s)for(let d of ep(ye(a.build.outDir)).filter(h=>h!=="index.html"))Ts(ye(a.build.outDir,d),{recursive:!0});else{const d=ye(a.build.outDir,"index.html");Ct(d)&&da(d,ye(a.build.outDir,"404.html"))}};function Pc(t){return e=>e.length>1?[t,"run",e[0],"--",...e.slice(
460
- 1)]:[t,"run",e[0]]}function Ym(){return t=>["deno","run",`npm:${t[0]}`,...t.slice(1)]}const Xm={agent:["npm",0],run:Pc("npm"),install:["npm","i",0],frozen:["npm","ci",0],global:["npm","i","-g",0],add:["npm","i",0],upgrade:["npm","update",0],"upgrade-interactive":null,execute:["npx",0],"execute-local":["npx",0],uninstall:["npm","uninstall",0],global_uninstall:["npm","uninstall","-g",0]},Ic={agent:["yarn",0],run:["yarn","run",0],install:["yarn","install",0],frozen:["yarn","install","--frozen-lockf\
461
- ile",0],global:["yarn","global","add",0],add:["yarn","add",0],upgrade:["yarn","upgrade",0],"upgrade-interactive":["yarn","upgrade-interactive",0],execute:["npx",0],"execute-local":["yarn","exec",0],uninstall:["yarn","remove",0],global_uninstall:["yarn","global","remove",0]},Jm={...Ic,frozen:["yarn","install","--immutable",0],upgrade:["yarn","up",0],"upgrade-interactive":["yarn","up","-i",0],execute:["yarn","dlx",0],"execute-local":["yarn","exec",0],global:["npm","i","-g",0],global_uninstall:["np\
462
- m","uninstall","-g",0]},Tc={agent:["pnpm",0],run:["pnpm","run",0],install:["pnpm","i",0],frozen:["pnpm","i","--frozen-lockfile",0],global:["pnpm","add","-g",0],add:["pnpm","add",0],upgrade:["pnpm","update",0],"upgrade-interactive":["pnpm","update","-i",0],execute:["pnpm","dlx",0],"execute-local":["pnpm","exec",0],uninstall:["pnpm","remove",0],global_uninstall:["pnpm","remove","--global",0]},Qm={agent:["bun",0],run:["bun","run",0],install:["bun","install",0],frozen:["bun","install","--frozen-lock\
463
- file",0],global:["bun","add","-g",0],add:["bun","add",0],upgrade:["bun","update",0],"upgrade-interactive":["bun","update",0],execute:["bun","x",0],"execute-local":["bun","x",0],uninstall:["bun","remove",0],global_uninstall:["bun","remove","-g",0]},Zm={agent:["deno",0],run:["deno","task",0],install:["deno","install",0],frozen:["deno","install","--frozen",0],global:["deno","install","-g",0],add:["deno","add",0],upgrade:["deno","outdated","--update",0],"upgrade-interactive":["deno","outdated","--up\
464
- date",0],execute:Ym(),"execute-local":["deno","task","--eval",0],uninstall:["deno","remove",0],global_uninstall:["deno","uninstall","-g",0]},eg={npm:Xm,yarn:Ic,"yarn@berry":Jm,pnpm:Tc,"pnpm@6":{...Tc,run:Pc("pnpm")},bun:Qm,deno:Zm};function tg(t,e,r){const n=eg[t][e];return rg(n,r)}function rg(t,e){if(t==null)return null;const r=typeof t=="function"?t(e):t.flatMap(n=>typeof n=="number"?e:[n]);return{command:r[0],args:r.slice(1)}}const ng=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],Nc={
465
- "bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},jc={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function Pi(t,e){try{const r=await ha.stat(t);return e==="file"?r.isFile():r.isDirectory()}catch{
466
- return!1}}function*sg(t=Se.cwd()){let e=me.resolve(t);const{root:r}=me.parse(e);for(;e&&e!==r;)yield e,e=me.dirname(e)}async function Lc(t,e){return!t||!Pi(t,"file")?null:await ag(t,e)}async function ig(t={}){const{cwd:e,strategies:r=["lockfile","packageManager-field","devEngines-field"],onUnknown:n}=t;for(const s of sg(e))for(const i of r)switch(i){case"lockfile":{for(const o of Object.keys(Nc))if(await Pi(me.join(s,o),"file")){const a=Nc[o],c=await Lc(me.join(s,"package.json"),n);return c||{name:a,
467
- agent:a}}break}case"packageManager-field":case"devEngines-field":{const o=await Lc(me.join(s,"package.json"),n);if(o)return o;break}case"install-metadata":{for(const o of Object.keys(jc)){const a=o.endsWith("/")?"dir":"file";if(await Pi(me.join(s,o),a)){const c=jc[o],l=c==="yarn"?cg(o)?"yarn":"yarn@berry":c;return{name:c,agent:l}}}break}}return null}function og(t){const e=r=>r?.match(/\d+(\.\d+){0,2}/)?.[0]??r;if(typeof t.packageManager=="string"){const[r,n]=t.packageManager.replace(/^\^/,"").split(
468
- "@");return{name:r,ver:e(n)}}if(typeof t.devEngines?.packageManager?.name=="string")return{name:t.devEngines.packageManager.name,ver:e(t.devEngines.packageManager.version)}}async function ag(t,e){try{const r=JSON.parse(await ha.readFile(t,"utf8"));let n;const s=og(r);if(s){const i=s.name,o=s.ver;let a=o;return i==="yarn"&&o&&Number.parseInt(o)>1?(n="yarn@berry",a="berry",{name:i,agent:n,version:a}):i==="pnpm"&&o&&Number.parseInt(o)<7?(n="pnpm@6",{name:i,agent:n,version:a}):ng.includes(i)?(n=i,{name:i,
469
- agent:n,version:a}):e?.(r.packageManager)??null}}catch{}return null}function cg(t){return t.endsWith(".yarn_integrity")}function kc(t){try{return!!ap.createRequire(import.meta.url).resolve(t)}catch(e){return ct.debug(Ss(e)),!1}}async function Ar(){if(kc("react")&&kc("react-dom")){ct.debug("react already installed");return}ct.debug("react not installed");const t=await ig();t||(ct.error`Package manager not detected, please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1));
470
- const e=tg(t.agent,"add",["react","react-dom"]);e||(ct.error`Please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1));try{await sa(e.command,e.args,{stdio:"inherit"})}catch(r){ct.debug(Ss(r)),ct.error`Please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1)}}function Dc(t){if(t.resolvedUrls)return ia(t.resolvedUrls.network)??ia(t.resolvedUrls.local)}function xc(t){if(!t.resolvedUrls)throw new Error("Vite server is not ready, no resolvedUrls");Rt([
471
- ee.green("LikeC4 served at:"),"",ee.dim("Local: ")+t.resolvedUrls.local.join(`
472
- `+"".padEnd(9," ")),t.resolvedUrls.network.length?ee.dim("Network: ")+t.resolvedUrls.network.join(`
473
- `+"".padEnd(9," ")):void 0].filter(e=>jh(e)).join(`
474
- `))}class Mc extends Error{constructor(e){super(`${e} is locked`)}}const Qt={old:new Set,young:new Set},ug=1e3*15,rn=1024,nn=65535;let Or;const lg=()=>{const t=lr.networkInterfaces(),e=new Set([void 0,"0.0.0.0"]);for(const r of Object.values(t))for(const n of r)e.add(n.address);return e},qc=t=>new Promise((e,r)=>{const n=lp.createServer();n.unref(),n.on("error",r),n.listen(t,()=>{const{port:s}=n.address();n.close(()=>{e(s)})})}),Hc=async(t,e)=>{if(t.host||t.port===0)return qc(t);for(const r of e)
475
- try{await qc({port:t.port,host:r})}catch(n){if(!["EADDRNOTAVAIL","EINVAL"].includes(n.code))throw n}return t.port},fg=function*(t){t&&(yield*t),yield 0};async function Ii(t){let e,r=new Set;if(t&&(t.port&&(e=typeof t.port=="number"?[t.port]:t.port),t.exclude)){const s=t.exclude;if(typeof s[Symbol.iterator]!="function")throw new TypeError("The `exclude` option must be an iterable.");for(const i of s){if(typeof i!="number")throw new TypeError("Each item in the `exclude` option must be a number cor\
476
- responding to the port you want excluded.");if(!Number.isSafeInteger(i))throw new TypeError(`Number ${i} in the exclude option is not a safe integer and can't be used`)}r=new Set(s)}Or===void 0&&(Or=setTimeout(()=>{Or=void 0,Qt.old=Qt.young,Qt.young=new Set},ug),Or.unref&&Or.unref());const n=lg();for(const s of fg(e))try{if(r.has(s))continue;let i=await Hc({...t,port:s},n);for(;Qt.old.has(i)||Qt.young.has(i);){if(s!==0)throw new Mc(s);i=await Hc({...t,port:s},n)}return Qt.young.add(i),i}catch(i){
477
- if(!["EADDRINUSE","EACCES"].includes(i.code)&&!(i instanceof Mc))throw i}throw new Error("No available ports found")}function sn(t,e){if(!Number.isInteger(t)||!Number.isInteger(e))throw new TypeError("`from` and `to` must be integer numbers");if(t<rn||t>nn)throw new RangeError(`'from' must be between ${rn} and ${nn}`);if(e<rn||e>nn)throw new RangeError(`'to' must be between ${rn} and ${nn}`);if(t>e)throw new RangeError("`to` must be greater than or equal to `from`");return function*(n,s){for(let i=n;i<=
478
- s;i++)yield i}(t,e)}async function Uc({buildWebcomponent:t=!0,hmr:e=!0,webcomponentPrefix:r="likec4",languageServices:n,likec4AssetsDir:s,openBrowser:i,listen:o,...a}){s??=await xr(cr(Mr(),".likec4-assets-"));const{isDev:c,...l}=await Oi({...a,languageServices:n,likec4AssetsDir:s,webcomponentPrefix:r}),u=await Ii({port:[5173,...sn(61e3,61010),...sn(62002,62010)]}),d=await Ii({port:sn(24678,24690)}),h=await ii();let y;if(t){const _=await Ci({webcomponentPrefix:r,languageServices:n,outDir:h,base:l.
479
- base});y=fr({..._,logLevel:"warn"}).catch(f=>(at.warn("webcomponent build failed",{err:f}),at.warn("Ignoring error and continuing"),Promise.resolve()))}const b=await ip({...l,define:Object.assign({},l.define,e&&{"process.env.NODE_ENV":'"development"'}),mode:e?"development":l.mode,publicDir:h,server:{host:o??"127.0.0.1",allowedHosts:!0,port:u,hmr:e&&{overlay:!0,port:d},fs:{strict:!1},open:i??!c}});return await b.listen(),y&&await y,b}async function dg({browserContext:t,views:e,output:r,logger:n,timeout:s,
480
- maxAttempts:i,outputType:o,theme:a}){let c;const l=e.map(h=>({view:h,attempt:1})),u=[];let d;for(;d=l.shift();){const{view:h,attempt:y}=d,b=`/export/${encodeURIComponent(h.id)}`;try{if(y>1){c&&(c.close({runBeforeUnload:!0}).catch(p=>n.error(`failed to close page: ${p}`)),c=void 0);const g=oa(y*200,{min:200,max:1e3});n.info(ee.cyan(b)+ee.dim(` attempt ${y} of ${i} after ${g}ms`)),await fp(g)}else h.hasLayoutDrift&&n.warn(ee.yellow("Drift detected, manual layout can not be applied, view may be inv\
481
- alid: ")+ee.red(h.id)),n.info(ee.cyan(b));c??=await t.newPage(),await c.setViewportSize({width:h.bounds.width+20*2,height:h.bounds.height+20*2}),await c.goto(b+`?padding=20&theme=${a}`),h.nodes.some(g=>Lh(g.icon)&&g.icon.toLowerCase().startsWith("http"))&&await hg(c,s),await c.waitForSelector(".react-flow.initialized");let _=".";o==="relative"&&(_=h.relativePath??".",_.includes("/")?_=_.slice(0,_.lastIndexOf("/")):_=".");const f=ye(r,_,`${h.id}.png`);await c.screenshot({animations:"disabled",path:f,
482
- omitBackground:!0}),u.push({view:h,path:f})}catch(_){c?.close({runBeforeUnload:!0}).catch(f=>n.error(`failed to close page: ${f}`)),n.error(ee.red("failed "+b+`
483
- `+_)),y<i&&(l.push({view:h,attempt:y+1}),n.info(ee.dim(`retry ${b}`))),c=void 0}}return u}async function hg(t,e){let r=await t.locator("//img").all();if(!r.length)return;const n=r.map(s=>s.evaluate(i=>i.complete||new Promise((o,a)=>{i.onload=o,i.onerror=a}),{timeout:Math.max(3e4,e)}));await Promise.allSettled(n)}async function Fc({logger:t,serverUrl:e,theme:r="light",timeoutMs:n=15e3,views:s,output:i,outputType:o="relative",maxAttempts:a=3}){t.info(`${ee.cyan("export output")} ${ee.dim(i)}`),t.info(
484
- `${ee.cyan("from server")} ${ee.dim(e)}`);const c=ba.executablePath();t.info(ee.cyan("Start chromium")),t.info(ee.dim(c));const l=await ba.launch({chromiumSandbox:!0,headless:!0});t.info(ee.cyan("Color scheme: ")+r);const u=await l.newContext({deviceScaleFactor:2,colorScheme:r,baseURL:e,bypassCSP:!0,ignoreHTTPSErrors:!0,isMobile:!1});u.setDefaultNavigationTimeout(n),u.setDefaultTimeout(n);try{return await dg({browserContext:u,views:s,output:i,outputType:o,logger:t,maxAttempts:a,timeout:n,theme:r})}finally{
485
- t.info(ee.cyan("close chromium")),await u.close(),await l.close()}}async function Vc({path:t,useDotBin:e,theme:r="light",output:n,outputType:s,serverUrl:i,ignore:o=!1,timeoutMs:a=1e4,maxAttempts:c=3}){const l=tt("c4:export"),u=Uh(),d=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});d.ensureSingleProject(),n??=d.workspace;const h=await d.diagrams();if(!up(h,1))throw l.warn("no views found"),new Error("no views found");let y;if(!i&&(l.info(ee.cyan("start preview server")),y=await Uc(
486
- {languageServices:d,buildWebcomponent:!1,openBrowser:!1,useOverviewGraph:!1,hmr:!1}),i=Dc(y),!i))throw l.error("Vite server is not ready, no resolvedUrls"),new Error("Vite server is not ready, no resolvedUrls");try{const b=await Fc({logger:l,serverUrl:i,theme:r,timeoutMs:a,views:h,output:n,outputType:s,maxAttempts:c}),{pretty:_}=kh(u);if(b.length>0&&l.info(ee.green(`exported ${b.length} views in ${_}`)),b.length!==h.length&&(o&&b.length>0?l.info(ee.dim("ignore")+" "+ee.red(`failed ${h.length-b.length}\
487
- out of ${h.length} views`)):l.error(ee.red(`failed ${h.length-b.length} out of ${h.length} views`))),b.length!==h.length&&(b.length===0||!o))throw new Error(`Failed ${h.length-b.length} out of ${h.length} views`)}finally{y&&(l.info(ee.cyan("stop server")),await y.close().catch(b=>{l.error(b)}))}}const{cyan:zc,dim:Gc}=ee;async function pg({path:t,useDotBin:e,useHashHistory:r,webcomponentPrefix:n,useOverview:s=!1,output:i,outputSingleFile:o,base:a}){await Ar();const c=tt("c4:build"),l=await rt.fromWorkspace(
488
- t,{graphviz:e?"binary":"wasm",logger:"vite"}),u=i??ye(l.workspace,"dist");let d=ye(u,"assets");if(s)try{d=ye(u,"assets","previews"),await ut(d,{recursive:!0}),c.info(`${zc("Generate previews")} ${Gc(d)}
489
- `),await Vc({path:t,useDotBin:e,output:d,outputType:"flat",ignore:!0})}catch(h){c.error(ee.red("Failed to generate previews")),c.error(h),c.warn(ee.yellow("Ignore previews and continue build")),Ts(d,{recursive:!0,force:!0}),s=!1}await Km({base:a,useHashHistory:o||r,customLogger:c,useOverviewGraph:s,webcomponentPrefix:n,languageServices:l,likec4AssetsDir:d,outputDir:i,outputSingleFile:o}),s&&(c.info(`${zc("clean previews")} ${Gc(d)}`),Ts(d,{recursive:!0,force:!0}))}const mg={command:"build [path]",
490
- aliases:["bundle"],describe:"Build a static website",builder:t=>t.positional("path",Sr).option("output",{alias:"o",type:"string",desc:"output directory for production build",normalize:!0,coerce:ye}).option("base",oc).option("use-hash-history",ic).option("use-dot",Ye).option("webcomponent-prefix",ti).option("use-overview",ac).option("output-single-file",mm).example(`${ee.green("$0 build -o ./build ./src")}`,ee.gray("Search for likec4 files in 'src' and output static site to 'build'")),handler:async t=>{
491
- await pg({path:t.path,output:t.output,base:t.base,useHashHistory:t["use-hash-history"],useDotBin:t["use-dot"],useOverview:t["use-overview"]??!1,webcomponentPrefix:t["webcomponent-prefix"],outputSingleFile:t["output-single-file"]??!1})}},Ht=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},Ti=new Set(["__proto__","prototype","constructor"]),gg=new Set("0123456789");function on(t){const e=[];let r="",n="start",s=!1;for(const i of t)switch(i){case"\\":{if(n==="index")throw new Error(
492
- "Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=i),n="property",s=!s;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=i;break}if(Ti.has(r))return[];e.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=i;break}if(n==="property"){if(Ti.has(r))return[];e.push(
493
- r),r=""}n="index";break}case"]":{if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!gg.has(i))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=i}}switch(s&&(r+="\\"),n){case"property":{if(Ti.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not \
494
- closed");case"start":{e.push("");break}}return e}function Ni(t,e){if(typeof e!="number"&&Array.isArray(t)){const r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function Bc(t,e){if(Ni(t,e))throw new Error("Cannot use string index")}function yg(t,e,r){if(!Ht(t)||typeof e!="string")return r===void 0?t:r;const n=on(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(Ni(t,i)?t=s===n.length-1?void 0:null:t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===
495
- void 0?r:t}function Wc(t,e,r){if(!Ht(t)||typeof e!="string")return t;const n=t,s=on(e);for(let i=0;i<s.length;i++){const o=s[i];Bc(t,o),i===s.length-1?t[o]=r:Ht(t[o])||(t[o]=typeof s[i+1]=="number"?[]:{}),t=t[o]}return n}function _g(t,e){if(!Ht(t)||typeof e!="string")return!1;const r=on(e);for(let n=0;n<r.length;n++){const s=r[n];if(Bc(t,s),n===r.length-1)return delete t[s],!0;if(t=t[s],!Ht(t))return!1}}function $g(t,e){if(!Ht(t)||typeof e!="string")return!1;const r=on(e);if(r.length===0)return!1;
496
- for(const n of r){if(!Ht(t)||!(n in t)||Ni(t,n))return!1;t=t[n]}return!0}const $t=lr.homedir(),ji=lr.tmpdir(),{env:Zt}=Se,vg=t=>{const e=me.join($t,"Library");return{data:me.join(e,"Application Support",t),config:me.join(e,"Preferences",t),cache:me.join(e,"Caches",t),log:me.join(e,"Logs",t),temp:me.join(ji,t)}},bg=t=>{const e=Zt.APPDATA||me.join($t,"AppData","Roaming"),r=Zt.LOCALAPPDATA||me.join($t,"AppData","Local");return{data:me.join(r,t,"Data"),config:me.join(e,t,"Config"),cache:me.join(r,t,
497
- "Cache"),log:me.join(r,t,"Log"),temp:me.join(ji,t)}},wg=t=>{const e=me.basename($t);return{data:me.join(Zt.XDG_DATA_HOME||me.join($t,".local","share"),t),config:me.join(Zt.XDG_CONFIG_HOME||me.join($t,".config"),t),cache:me.join(Zt.XDG_CACHE_HOME||me.join($t,".cache"),t),log:me.join(Zt.XDG_STATE_HOME||me.join($t,".local","state"),t),temp:me.join(ji,e,t)}};function Eg(t,{suffix:e="nodejs"}={}){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return e&&(t+=`-${e}`),Se.
498
- platform==="darwin"?vg(t):Se.platform==="win32"?bg(t):wg(t)}const vt=(t,e)=>function(...n){return t.apply(void 0,n).catch(e)},ft=(t,e)=>function(...n){try{return t.apply(void 0,n)}catch(s){return e(s)}},Sg=Se.getuid?!Se.getuid():!1,Rg=1e4,qe=()=>{},be={isChangeErrorOk:t=>{if(!be.isNodeError(t))return!1;const{code:e}=t;return e==="ENOSYS"||!Sg&&(e==="EINVAL"||e==="EPERM")},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!be.isNodeError(t))return!1;const{code:e}=t;return e==="EMFILE"||e===
499
- "ENFILE"||e==="EAGAIN"||e==="EBUSY"||e==="EACCESS"||e==="EACCES"||e==="EACCS"||e==="EPERM"},onChangeError:t=>{if(!be.isNodeError(t))throw t;if(!be.isChangeErrorOk(t))throw t}};class Ag{constructor(){this.interval=25,this.intervalId=void 0,this.limit=Rg,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=e=>{this.
500
- queueWaiting.add(e),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=e=>{this.queueWaiting.delete(e),this.queueActive.delete(e)},this.schedule=()=>new Promise(e=>{const r=()=>this.remove(n),n=()=>e(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(const e of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(e),this.queueActive.add(e),e()}}}}}const Og=new Ag,bt=(t,e)=>function(n){
501
- return function s(...i){return Og.schedule().then(o=>{const a=l=>(o(),l),c=l=>{if(o(),Date.now()>=n)throw l;if(e(l)){const u=Math.round(100*Math.random());return new Promise(h=>setTimeout(h,u)).then(()=>s.apply(void 0,i))}throw l};return t.apply(void 0,i).then(a,c)})}},wt=(t,e)=>function(n){return function s(...i){try{return t.apply(void 0,i)}catch(o){if(Date.now()>n)throw o;if(e(o))return s.apply(void 0,i);throw o}}},Te={attempt:{chmod:vt(Ie(pe.chmod),be.onChangeError),chown:vt(Ie(pe.chown),be.
453
+ `.trimStart()}const Ci=async({languageServices:t,likec4AssetsDir:e,...r})=>{const n=r.customLogger??ni,s=ii(),i=r?.useOverviewGraph===!0;n.info(`${K.cyan("likec4 app root")} ${K.dim(s)}`);const o=r.outputDir??ye(t.workspace,"dist");n.info(K.cyan("output")+" "+K.dim(o));let a="/";r.base&&(a=Th(r.base),!Nh(a)&&a!=="./"&&(a=jh(a))),a!=="/"&&n.info(`${K.green("app base url")} ${K.dim(a)}`);const u=r.webcomponentPrefix??"likec4";return{isDev:!1,likec4AssetsDir:e,webcomponentPrefix:u,root:s,languageServices:t,
454
+ clearScreen:!1,base:a,resolve:{conditions:["production"],dedupe:["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react-dom/client"],alias:{...ci(),"likec4/previews":e}},configFile:!1,mode:"production",optimizeDeps:{force:!0,include:["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react/jsx-dev-runtime","react-dom/client"]},define:{WEBCOMPONENT_PREFIX:JSON.stringify(u),__USE_OVERVIEW_GRAPH__:i?"true":"false",__USE_HASH_HISTORY__:r?.useHashHistory===!0?"true":"fal\
455
+ se","process.env.NODE_ENV":'"production"'},build:{outDir:o,modulePreload:!1,emptyOutDir:!1,sourcemap:!1,cssCodeSplit:!0,cssMinify:!0,minify:!0,copyPublicDir:!0,chunkSizeWarningLimit:ai,rollupOptions:{treeshake:{preset:"recommended"},output:{hoistTransitiveImports:!1,compact:!0}}},customLogger:n,plugins:[js(),ks({languageServices:t.languageServices,useOverviewGraph:i})].concat(r.outputSingleFile?[Um()]:[])}};async function Pi({languageServices:t,outDir:e,base:r,webcomponentPrefix:n="likec4",filename:s="\
456
+ likec4-views.js"}){const i=ni,o=ii();return i.info(K.cyan("outDir")+" "+K.dim(e)),{root:o,clearScreen:!1,base:r,configFile:!1,publicDir:!1,mode:"production",resolve:{conditions:["production"],alias:ci()},define:{WEBCOMPONENT_PREFIX:JSON.stringify(n),"process.env.NODE_ENV":'"production"'},esbuild:{...si},build:{outDir:e,emptyOutDir:!1,sourcemap:!1,minify:!0,assetsInlineLimit:100*1024,chunkSizeWarningLimit:ai,lib:{entry:"src/webcomponent.tsx",fileName(a,u){return s},formats:["iife"],name:"LikeC4Vi\
457
+ ews"},rollupOptions:{treeshake:{preset:"recommended"},output:{format:"iife",hoistTransitiveImports:!1,compact:!0}}},customLogger:i,plugins:[js(),ks({languageServices:t.languageServices,useOverviewGraph:!1})]}}const Km=["favicon.ico","robots.txt"],Ym=async({buildWebcomponent:t=!0,webcomponentPrefix:e="likec4",languageServices:r,likec4AssetsDir:n,outputSingleFile:s,...i})=>{n??=await Mr(cr(qr(),".likec4-assets-"));const{isDev:o,...a}=await Ci({...i,languageServices:r,likec4AssetsDir:n,webcomponentPrefix:e,
458
+ outputSingleFile:s}),u=await oi();for(const d of Km){const h=ye(a.root,d);Ct(h)&&ha(h,ye(u,d))}const l=await r.viewsService.computedViews(),c=await r.diagrams();if(c.length===0)throw process.exitCode=1,new Error("no views found");if(c.length===l.length?a.customLogger.info(`${K.dim("workspace:")} ${K.green("\u2713 all views layouted")}`):a.customLogger.warn(`${K.dim("workspace:")} ${K.yellow(`\u2717 layouted ${c.length} of ${l.length} views`)}`),c.forEach(d=>{d.hasLayoutDrift&&a.customLogger.warn(
459
+ K.yellow("drift detected, manual layout can not be applied, view:")+" "+K.red(d.id))}),t){const d=await Pi({webcomponentPrefix:e,languageServices:r,outDir:u,base:a.base});await fr(d)}if(await fr({...a,publicDir:u,mode:"production"}),s)for(let d of rp(ye(a.build.outDir)).filter(h=>h!=="index.html"))Ts(ye(a.build.outDir,d),{recursive:!0});else{const d=ye(a.build.outDir,"index.html");Ct(d)&&ha(d,ye(a.build.outDir,"404.html"))}};function Ic(t){return e=>e.length>1?[t,"run",e[0],"--",...e.slice(1)]:[
460
+ t,"run",e[0]]}function Xm(){return t=>["deno","run",`npm:${t[0]}`,...t.slice(1)]}const Jm={agent:["npm",0],run:Ic("npm"),install:["npm","i",0],frozen:["npm","ci",0],global:["npm","i","-g",0],add:["npm","i",0],upgrade:["npm","update",0],"upgrade-interactive":null,execute:["npx",0],"execute-local":["npx",0],uninstall:["npm","uninstall",0],global_uninstall:["npm","uninstall","-g",0]},Tc={agent:["yarn",0],run:["yarn","run",0],install:["yarn","install",0],frozen:["yarn","install","--frozen-lockfile",
461
+ 0],global:["yarn","global","add",0],add:["yarn","add",0],upgrade:["yarn","upgrade",0],"upgrade-interactive":["yarn","upgrade-interactive",0],execute:["npx",0],"execute-local":["yarn","exec",0],uninstall:["yarn","remove",0],global_uninstall:["yarn","global","remove",0]},Qm={...Tc,frozen:["yarn","install","--immutable",0],upgrade:["yarn","up",0],"upgrade-interactive":["yarn","up","-i",0],execute:["yarn","dlx",0],"execute-local":["yarn","exec",0],global:["npm","i","-g",0],global_uninstall:["npm","u\
462
+ ninstall","-g",0]},Nc={agent:["pnpm",0],run:["pnpm","run",0],install:["pnpm","i",0],frozen:["pnpm","i","--frozen-lockfile",0],global:["pnpm","add","-g",0],add:["pnpm","add",0],upgrade:["pnpm","update",0],"upgrade-interactive":["pnpm","update","-i",0],execute:["pnpm","dlx",0],"execute-local":["pnpm","exec",0],uninstall:["pnpm","remove",0],global_uninstall:["pnpm","remove","--global",0]},Zm={agent:["bun",0],run:["bun","run",0],install:["bun","install",0],frozen:["bun","install","--frozen-lockfile",
463
+ 0],global:["bun","add","-g",0],add:["bun","add",0],upgrade:["bun","update",0],"upgrade-interactive":["bun","update",0],execute:["bun","x",0],"execute-local":["bun","x",0],uninstall:["bun","remove",0],global_uninstall:["bun","remove","-g",0]},eg={agent:["deno",0],run:["deno","task",0],install:["deno","install",0],frozen:["deno","install","--frozen",0],global:["deno","install","-g",0],add:["deno","add",0],upgrade:["deno","outdated","--update",0],"upgrade-interactive":["deno","outdated","--update",
464
+ 0],execute:Xm(),"execute-local":["deno","task","--eval",0],uninstall:["deno","remove",0],global_uninstall:["deno","uninstall","-g",0]},tg={npm:Jm,yarn:Tc,"yarn@berry":Qm,pnpm:Nc,"pnpm@6":{...Nc,run:Ic("pnpm")},bun:Zm,deno:eg};function rg(t,e,r){const n=tg[t][e];return ng(n,r)}function ng(t,e){if(t==null)return null;const r=typeof t=="function"?t(e):t.flatMap(n=>typeof n=="number"?e:[n]);return{command:r[0],args:r.slice(1)}}const sg=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],jc={"bu\
465
+ n.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},Lc={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function Ii(t,e){try{const r=await pa.stat(t);return e==="file"?r.isFile():r.isDirectory()}catch{
466
+ return!1}}function*ig(t=Se.cwd()){let e=me.resolve(t);const{root:r}=me.parse(e);for(;e&&e!==r;)yield e,e=me.dirname(e)}async function kc(t,e){return!t||!Ii(t,"file")?null:await cg(t,e)}async function og(t={}){const{cwd:e,strategies:r=["lockfile","packageManager-field","devEngines-field"],onUnknown:n}=t;for(const s of ig(e))for(const i of r)switch(i){case"lockfile":{for(const o of Object.keys(jc))if(await Ii(me.join(s,o),"file")){const a=jc[o],u=await kc(me.join(s,"package.json"),n);return u||{name:a,
467
+ agent:a}}break}case"packageManager-field":case"devEngines-field":{const o=await kc(me.join(s,"package.json"),n);if(o)return o;break}case"install-metadata":{for(const o of Object.keys(Lc)){const a=o.endsWith("/")?"dir":"file";if(await Ii(me.join(s,o),a)){const u=Lc[o],l=u==="yarn"?ug(o)?"yarn":"yarn@berry":u;return{name:u,agent:l}}}break}}return null}function ag(t){const e=r=>r?.match(/\d+(\.\d+){0,2}/)?.[0]??r;if(typeof t.packageManager=="string"){const[r,n]=t.packageManager.replace(/^\^/,"").split(
468
+ "@");return{name:r,ver:e(n)}}if(typeof t.devEngines?.packageManager?.name=="string")return{name:t.devEngines.packageManager.name,ver:e(t.devEngines.packageManager.version)}}async function cg(t,e){try{const r=JSON.parse(await pa.readFile(t,"utf8"));let n;const s=ag(r);if(s){const i=s.name,o=s.ver;let a=o;return i==="yarn"&&o&&Number.parseInt(o)>1?(n="yarn@berry",a="berry",{name:i,agent:n,version:a}):i==="pnpm"&&o&&Number.parseInt(o)<7?(n="pnpm@6",{name:i,agent:n,version:a}):sg.includes(i)?(n=i,{name:i,
469
+ agent:n,version:a}):e?.(r.packageManager)??null}}catch{}return null}function ug(t){return t.endsWith(".yarn_integrity")}function Dc(t){try{return!!up.createRequire(import.meta.url).resolve(t)}catch(e){return ct.debug(Ss(e)),!1}}async function Ar(){if(Dc("react")&&Dc("react-dom")){ct.debug("react already installed");return}ct.debug("react not installed");const t=await og();t||(ct.error`Package manager not detected, please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1));
470
+ const e=rg(t.agent,"add",["react","react-dom"]);e||(ct.error`Please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1));try{await ia(e.command,e.args,{stdio:"inherit"})}catch(r){ct.debug(Ss(r)),ct.error`Please install dependencies manually: ${"react"} ${"react-dom"}`,process.exit(1)}}var lg=Lh();const fg=Dr(lg);function xc(t){if(t.resolvedUrls)return oa(t.resolvedUrls.network)??oa(t.resolvedUrls.local)}function Mc(t){if(!t.resolvedUrls)throw new Error("Vite server is not r\
471
+ eady, no resolvedUrls");Rt([K.green("LikeC4 served at:"),"",K.dim("Local: ")+t.resolvedUrls.local.join(`
472
+ `+"".padEnd(9," ")),t.resolvedUrls.network.length?K.dim("Network: ")+t.resolvedUrls.network.join(`
473
+ `+"".padEnd(9," ")):void 0].filter(e=>kh(e)).join(`
474
+ `))}class qc extends Error{constructor(e){super(`${e} is locked`)}}const Qt={old:new Set,young:new Set},dg=1e3*15,nn=1024,sn=65535;let Or;const hg=()=>{const t=lr.networkInterfaces(),e=new Set([void 0,"0.0.0.0"]);for(const r of Object.values(t))for(const n of r)e.add(n.address);return e},Hc=t=>new Promise((e,r)=>{const n=fp.createServer();n.unref(),n.on("error",r),n.listen(t,()=>{const{port:s}=n.address();n.close(()=>{e(s)})})}),Uc=async(t,e)=>{if(t.host||t.port===0)return Hc(t);for(const r of e)
475
+ try{await Hc({port:t.port,host:r})}catch(n){if(!["EADDRNOTAVAIL","EINVAL"].includes(n.code))throw n}return t.port},pg=function*(t){t&&(yield*t),yield 0};async function Ti(t){let e,r=new Set;if(t&&(t.port&&(e=typeof t.port=="number"?[t.port]:t.port),t.exclude)){const s=t.exclude;if(typeof s[Symbol.iterator]!="function")throw new TypeError("The `exclude` option must be an iterable.");for(const i of s){if(typeof i!="number")throw new TypeError("Each item in the `exclude` option must be a number cor\
476
+ responding to the port you want excluded.");if(!Number.isSafeInteger(i))throw new TypeError(`Number ${i} in the exclude option is not a safe integer and can't be used`)}r=new Set(s)}Or===void 0&&(Or=setTimeout(()=>{Or=void 0,Qt.old=Qt.young,Qt.young=new Set},dg),Or.unref&&Or.unref());const n=hg();for(const s of pg(e))try{if(r.has(s))continue;let i=await Uc({...t,port:s},n);for(;Qt.old.has(i)||Qt.young.has(i);){if(s!==0)throw new qc(s);i=await Uc({...t,port:s},n)}return Qt.young.add(i),i}catch(i){
477
+ if(!["EADDRINUSE","EACCES"].includes(i.code)&&!(i instanceof qc))throw i}throw new Error("No available ports found")}function on(t,e){if(!Number.isInteger(t)||!Number.isInteger(e))throw new TypeError("`from` and `to` must be integer numbers");if(t<nn||t>sn)throw new RangeError(`'from' must be between ${nn} and ${sn}`);if(e<nn||e>sn)throw new RangeError(`'to' must be between ${nn} and ${sn}`);if(t>e)throw new RangeError("`to` must be greater than or equal to `from`");return function*(n,s){for(let i=n;i<=
478
+ s;i++)yield i}(t,e)}async function Fc({buildWebcomponent:t=!0,hmr:e=!0,webcomponentPrefix:r="likec4",languageServices:n,likec4AssetsDir:s,openBrowser:i,listen:o,...a}){s??=await Mr(cr(qr(),".likec4-assets-"));const{isDev:u,...l}=await Ci({...a,languageServices:n,likec4AssetsDir:s,webcomponentPrefix:r}),c=await Ti({port:[5173,...on(61e3,61010),...on(62002,62010)]}),d=await Ti({port:on(24678,24690)}),h=await oi();let _;if(t){const y=await Pi({webcomponentPrefix:r,languageServices:n,outDir:h,base:l.
479
+ base});_=fr({...y,logLevel:"warn"}).catch(f=>(at.warn("webcomponent build failed",{err:f}),at.warn("Ignoring error and continuing"),Promise.resolve()))}const b=await ap({...l,define:Object.assign({},l.define,e&&{"process.env.NODE_ENV":'"development"'}),mode:e?"development":l.mode,publicDir:h,server:{host:o??"127.0.0.1",allowedHosts:!0,port:c,hmr:e&&{overlay:!0,port:d},fs:{strict:!1},open:i??!u}});return await b.listen(),_&&await _,b}async function mg({browserContext:t,views:e,output:r,logger:n,timeout:s,
480
+ maxAttempts:i,outputType:o,theme:a}){let u;const l=e.map(h=>({view:h,attempt:1})),c=[];let d;for(;d=l.shift();){const{view:h,attempt:_}=d,b=`/export/${encodeURIComponent(h.id)}`;try{if(_>1){u&&(u.close({runBeforeUnload:!0}).catch(p=>n.error(`failed to close page: ${p}`)),u=void 0);const g=aa(_*200,{min:200,max:1e3});n.info(K.cyan(b)+K.dim(` attempt ${_} of ${i} after ${g}ms`)),await dp(g)}else h.hasLayoutDrift&&n.warn(K.yellow("Drift detected, manual layout can not be applied, view may be invali\
481
+ d: ")+K.red(h.id)),n.info(K.cyan(b));u??=await t.newPage(),await u.setViewportSize({width:h.bounds.width+20*2,height:h.bounds.height+20*2}),await u.goto(b+`?padding=20&theme=${a}`),h.nodes.some(g=>Dh(g.icon)&&g.icon.toLowerCase().startsWith("http"))&&await gg(u,s),await u.waitForSelector(".react-flow.initialized");let y=".";o==="relative"&&(y=h.relativePath??".",y.includes("/")?y=y.slice(0,y.lastIndexOf("/")):y=".");const f=ye(r,y,`${h.id}.png`);await u.screenshot({animations:"disabled",path:f,omitBackground:!0}),
482
+ c.push({view:h,path:f})}catch(y){u?.close({runBeforeUnload:!0}).catch(f=>n.error(`failed to close page: ${f}`)),n.error(K.red("failed "+b+`
483
+ `+y)),_<i&&(l.push({view:h,attempt:_+1}),n.info(K.dim(`retry ${b}`))),u=void 0}}return c}async function gg(t,e){let r=await t.locator("//img").all();if(!r.length)return;const n=r.map(s=>s.evaluate(i=>i.complete||new Promise((o,a)=>{i.onload=o,i.onerror=a}),{timeout:Math.max(3e4,e)}));await Promise.allSettled(n)}async function Vc({logger:t,serverUrl:e,theme:r="light",timeoutMs:n=15e3,views:s,output:i,outputType:o="relative",maxAttempts:a=3}){t.info(`${K.cyan("export output")} ${K.dim(i)}`),t.info(
484
+ `${K.cyan("from server")} ${K.dim(e)}`);const u=wa.executablePath();t.info(K.cyan("Start chromium")),t.info(K.dim(u));const l=await wa.launch({chromiumSandbox:!0,headless:!0});t.info(K.cyan("Color scheme: ")+r);const c=await l.newContext({deviceScaleFactor:2,colorScheme:r,baseURL:e,bypassCSP:!0,ignoreHTTPSErrors:!0,isMobile:!1});c.setDefaultNavigationTimeout(n),c.setDefaultTimeout(n);try{return await mg({browserContext:c,views:s,output:i,outputType:o,logger:t,maxAttempts:a,timeout:n,theme:r})}finally{
485
+ t.info(K.cyan("close chromium")),await c.close(),await l.close()}}async function zc({path:t,useDotBin:e,theme:r="light",output:n,outputType:s,serverUrl:i,ignore:o=!1,timeoutMs:a=1e4,maxAttempts:u=3,filter:l}){const c=tt("c4:export"),d=Vh(),h=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});h.ensureSingleProject(),n??=h.workspace;let _=await h.diagrams();if(l&&Ds(l,1)&&Ds(_,1)){const y=fg(l);c.info(`${K.cyan("filter")} ${K.dim(JSON.stringify(l))}`),_=_.filter(f=>y(f.id)?(c.info(
486
+ `${K.green("include")} ${f.id} \u2705`),!0):(c.info(`${K.gray("skip")} ${K.dim(f.id)}`),!1))}if(!Ds(_,1))throw c.warn("no views found"),new Error("no views found");let b;if(!i&&(c.info(K.cyan("start preview server")),b=await Fc({languageServices:h,buildWebcomponent:!1,openBrowser:!1,useOverviewGraph:!1,hmr:!1}),i=xc(b),!i))throw c.error("Vite server is not ready, no resolvedUrls"),new Error("Vite server is not ready, no resolvedUrls");try{const y=await Vc({logger:c,serverUrl:i,theme:r,timeoutMs:a,
487
+ views:_,output:n,outputType:s,maxAttempts:u}),{pretty:f}=xh(d);if(y.length>0&&c.info(K.green(`exported ${y.length} views in ${f}`)),y.length!==_.length&&(o&&y.length>0?c.info(K.dim("ignore")+" "+K.red(`failed ${_.length-y.length} out of ${_.length} views`)):c.error(K.red(`failed ${_.length-y.length} out of ${_.length} views`))),y.length!==_.length&&(y.length===0||!o))throw new Error(`Failed ${_.length-y.length} out of ${_.length} views`)}finally{b&&(c.info(K.cyan("stop server")),await b.close().
488
+ catch(y=>{c.error(y)}))}}const{cyan:Gc,dim:Bc}=K;async function yg({path:t,useDotBin:e,useHashHistory:r,webcomponentPrefix:n,useOverview:s=!1,output:i,outputSingleFile:o,base:a}){await Ar();const u=tt("c4:build"),l=await rt.fromWorkspace(t,{graphviz:e?"binary":"wasm",logger:"vite"}),c=i??ye(l.workspace,"dist");let d=ye(c,"assets");if(s)try{d=ye(c,"assets","previews"),await ut(d,{recursive:!0}),u.info(`${Gc("Generate previews")} ${Bc(d)}
489
+ `),await zc({path:t,useDotBin:e,output:d,outputType:"flat",ignore:!0})}catch(h){u.error(K.red("Failed to generate previews")),u.error(h),u.warn(K.yellow("Ignore previews and continue build")),Ts(d,{recursive:!0,force:!0}),s=!1}await Ym({base:a,useHashHistory:o||r,customLogger:u,useOverviewGraph:s,webcomponentPrefix:n,languageServices:l,likec4AssetsDir:d,outputDir:i,outputSingleFile:o}),s&&(u.info(`${Gc("clean previews")} ${Bc(d)}`),Ts(d,{recursive:!0,force:!0}))}const _g={command:"build [path]",
490
+ aliases:["bundle"],describe:"Build a static website",builder:t=>t.positional("path",Sr).option("output",{alias:"o",type:"string",desc:"output directory for production build",normalize:!0,coerce:ye}).option("base",ac).option("use-hash-history",oc).option("use-dot",Ye).option("webcomponent-prefix",ri).option("use-overview",cc).option("output-single-file",gm).example(`${K.green("$0 build -o ./build ./src")}`,K.gray("Search for likec4 files in 'src' and output static site to 'build'")),handler:async t=>{
491
+ await yg({path:t.path,output:t.output,base:t.base,useHashHistory:t["use-hash-history"],useDotBin:t["use-dot"],useOverview:t["use-overview"]??!1,webcomponentPrefix:t["webcomponent-prefix"],outputSingleFile:t["output-single-file"]??!1})}},Ht=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},Ni=new Set(["__proto__","prototype","constructor"]),$g=new Set("0123456789");function an(t){const e=[];let r="",n="start",s=!1;for(const i of t)switch(i){case"\\":{if(n==="index")throw new Error(
492
+ "Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=i),n="property",s=!s;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=i;break}if(Ni.has(r))return[];e.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=i;break}if(n==="property"){if(Ni.has(r))return[];e.push(
493
+ r),r=""}n="index";break}case"]":{if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!$g.has(i))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=i}}switch(s&&(r+="\\"),n){case"property":{if(Ni.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not \
494
+ closed");case"start":{e.push("");break}}return e}function ji(t,e){if(typeof e!="number"&&Array.isArray(t)){const r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function Wc(t,e){if(ji(t,e))throw new Error("Cannot use string index")}function vg(t,e,r){if(!Ht(t)||typeof e!="string")return r===void 0?t:r;const n=an(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(ji(t,i)?t=s===n.length-1?void 0:null:t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===
495
+ void 0?r:t}function Kc(t,e,r){if(!Ht(t)||typeof e!="string")return t;const n=t,s=an(e);for(let i=0;i<s.length;i++){const o=s[i];Wc(t,o),i===s.length-1?t[o]=r:Ht(t[o])||(t[o]=typeof s[i+1]=="number"?[]:{}),t=t[o]}return n}function bg(t,e){if(!Ht(t)||typeof e!="string")return!1;const r=an(e);for(let n=0;n<r.length;n++){const s=r[n];if(Wc(t,s),n===r.length-1)return delete t[s],!0;if(t=t[s],!Ht(t))return!1}}function wg(t,e){if(!Ht(t)||typeof e!="string")return!1;const r=an(e);if(r.length===0)return!1;
496
+ for(const n of r){if(!Ht(t)||!(n in t)||ji(t,n))return!1;t=t[n]}return!0}const $t=lr.homedir(),Li=lr.tmpdir(),{env:Zt}=Se,Eg=t=>{const e=me.join($t,"Library");return{data:me.join(e,"Application Support",t),config:me.join(e,"Preferences",t),cache:me.join(e,"Caches",t),log:me.join(e,"Logs",t),temp:me.join(Li,t)}},Sg=t=>{const e=Zt.APPDATA||me.join($t,"AppData","Roaming"),r=Zt.LOCALAPPDATA||me.join($t,"AppData","Local");return{data:me.join(r,t,"Data"),config:me.join(e,t,"Config"),cache:me.join(r,t,
497
+ "Cache"),log:me.join(r,t,"Log"),temp:me.join(Li,t)}},Rg=t=>{const e=me.basename($t);return{data:me.join(Zt.XDG_DATA_HOME||me.join($t,".local","share"),t),config:me.join(Zt.XDG_CONFIG_HOME||me.join($t,".config"),t),cache:me.join(Zt.XDG_CACHE_HOME||me.join($t,".cache"),t),log:me.join(Zt.XDG_STATE_HOME||me.join($t,".local","state"),t),temp:me.join(Li,e,t)}};function Ag(t,{suffix:e="nodejs"}={}){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return e&&(t+=`-${e}`),Se.
498
+ platform==="darwin"?Eg(t):Se.platform==="win32"?Sg(t):Rg(t)}const vt=(t,e)=>function(...n){return t.apply(void 0,n).catch(e)},ft=(t,e)=>function(...n){try{return t.apply(void 0,n)}catch(s){return e(s)}},Og=Se.getuid?!Se.getuid():!1,Cg=1e4,qe=()=>{},be={isChangeErrorOk:t=>{if(!be.isNodeError(t))return!1;const{code:e}=t;return e==="ENOSYS"||!Og&&(e==="EINVAL"||e==="EPERM")},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!be.isNodeError(t))return!1;const{code:e}=t;return e==="EMFILE"||e===
499
+ "ENFILE"||e==="EAGAIN"||e==="EBUSY"||e==="EACCESS"||e==="EACCES"||e==="EACCS"||e==="EPERM"},onChangeError:t=>{if(!be.isNodeError(t))throw t;if(!be.isChangeErrorOk(t))throw t}};class Pg{constructor(){this.interval=25,this.intervalId=void 0,this.limit=Cg,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=e=>{this.
500
+ queueWaiting.add(e),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=e=>{this.queueWaiting.delete(e),this.queueActive.delete(e)},this.schedule=()=>new Promise(e=>{const r=()=>this.remove(n),n=()=>e(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(const e of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(e),this.queueActive.add(e),e()}}}}}const Ig=new Pg,bt=(t,e)=>function(n){
501
+ return function s(...i){return Ig.schedule().then(o=>{const a=l=>(o(),l),u=l=>{if(o(),Date.now()>=n)throw l;if(e(l)){const c=Math.round(100*Math.random());return new Promise(h=>setTimeout(h,c)).then(()=>s.apply(void 0,i))}throw l};return t.apply(void 0,i).then(a,u)})}},wt=(t,e)=>function(n){return function s(...i){try{return t.apply(void 0,i)}catch(o){if(Date.now()>n)throw o;if(e(o))return s.apply(void 0,i);throw o}}},Te={attempt:{chmod:vt(Ie(pe.chmod),be.onChangeError),chown:vt(Ie(pe.chown),be.
502
502
  onChangeError),close:vt(Ie(pe.close),qe),fsync:vt(Ie(pe.fsync),qe),mkdir:vt(Ie(pe.mkdir),qe),realpath:vt(Ie(pe.realpath),qe),stat:vt(Ie(pe.stat),qe),unlink:vt(Ie(pe.unlink),qe),chmodSync:ft(pe.chmodSync,be.onChangeError),chownSync:ft(pe.chownSync,be.onChangeError),closeSync:ft(pe.closeSync,qe),existsSync:ft(pe.existsSync,qe),fsyncSync:ft(pe.fsync,qe),mkdirSync:ft(pe.mkdirSync,qe),realpathSync:ft(pe.realpathSync,qe),statSync:ft(pe.statSync,qe),unlinkSync:ft(pe.unlinkSync,qe)},retry:{close:bt(Ie(pe.
503
503
  close),be.isRetriableError),fsync:bt(Ie(pe.fsync),be.isRetriableError),open:bt(Ie(pe.open),be.isRetriableError),readFile:bt(Ie(pe.readFile),be.isRetriableError),rename:bt(Ie(pe.rename),be.isRetriableError),stat:bt(Ie(pe.stat),be.isRetriableError),write:bt(Ie(pe.write),be.isRetriableError),writeFile:bt(Ie(pe.writeFile),be.isRetriableError),closeSync:wt(pe.closeSync,be.isRetriableError),fsyncSync:wt(pe.fsyncSync,be.isRetriableError),openSync:wt(pe.openSync,be.isRetriableError),readFileSync:wt(pe.readFileSync,
504
- be.isRetriableError),renameSync:wt(pe.renameSync,be.isRetriableError),statSync:wt(pe.statSync,be.isRetriableError),writeSync:wt(pe.writeSync,be.isRetriableError),writeFileSync:wt(pe.writeFileSync,be.isRetriableError)}},Cg="utf8",Kc=438,Pg=511,Ig={},Tg=lr.userInfo().uid,Ng=lr.userInfo().gid,jg=1e3,Lg=!!Se.getuid;Se.getuid&&Se.getuid();const Yc=128,kg=t=>t instanceof Error&&"code"in t,Xc=t=>typeof t=="string",Li=t=>t===void 0,Dg=Se.platform==="linux",Jc=Se.platform==="win32",ki=["SIGABRT","SIGALRM",
505
- "SIGHUP","SIGINT","SIGTERM"];Jc||ki.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),Dg&&ki.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");class xg{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const r of this.callbacks)r();e&&(Jc&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?Se.kill(Se.pid,"SIGTERM"):Se.kill(Se.pid,e))}},this.hook=()=>{Se.once("exit",()=>this.exit());for(const e of ki)try{Se.once(
506
- e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}}const Mg=new xg,qg=Mg.register,Ne={store:{},create:t=>{const e=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),s=`.tmp-${Date.now().toString().slice(-10)}${e}`;return`${t}${s}`},get:(t,e,r=!0)=>{const n=Ne.truncate(e(t));return n in Ne.store?Ne.get(t,e,r):(Ne.store[n]=r,[n,()=>delete Ne.store[n]])},purge:t=>{Ne.store[t]&&(delete Ne.store[t],Te.attempt.unlink(t))},
507
- purgeSync:t=>{Ne.store[t]&&(delete Ne.store[t],Te.attempt.unlinkSync(t))},purgeSyncAll:()=>{for(const t in Ne.store)Ne.purgeSync(t)},truncate:t=>{const e=me.basename(t);if(e.length<=Yc)return t;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(e);if(!r)return t;const n=e.length-Yc;return`${t.slice(0,-e.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};qg(Ne.purgeSyncAll);function Qc(t,e,r=Ig){if(Xc(r))return Qc(t,e,{encoding:r});const n=Date.now()+((r.timeout??jg)||-1);let s=null,
508
- i=null,o=null;try{const a=Te.attempt.realpathSync(t),c=!!a;t=a||t,[i,s]=Ne.get(t,r.tmpCreate||Ne.create,r.tmpPurge!==!1);const l=Lg&&Li(r.chown),u=Li(r.mode);if(c&&(l||u)){const d=Te.attempt.statSync(t);d&&(r={...r},l&&(r.chown={uid:d.uid,gid:d.gid}),u&&(r.mode=d.mode))}if(!c){const d=me.dirname(t);Te.attempt.mkdirSync(d,{mode:Pg,recursive:!0})}o=Te.retry.openSync(n)(i,"w",r.mode||Kc),r.tmpCreated&&r.tmpCreated(i),Xc(e)?Te.retry.writeSync(n)(o,e,0,r.encoding||Cg):Li(e)||Te.retry.writeSync(n)(o,e,
509
- 0,e.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?Te.retry.fsyncSync(n)(o):Te.attempt.fsync(o)),Te.retry.closeSync(n)(o),o=null,r.chown&&(r.chown.uid!==Tg||r.chown.gid!==Ng)&&Te.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==Kc&&Te.attempt.chmodSync(i,r.mode);try{Te.retry.renameSync(n)(i,t)}catch(d){if(!kg(d)||d.code!=="ENAMETOOLONG")throw d;Te.retry.renameSync(n)(i,Ne.truncate(t))}s(),i=null}finally{o&&Te.attempt.closeSync(o),i&&Ne.purge(i)}}var an={exports:{}},Di={},dt={},Ut={},xi={},
510
- Mi={},qi={},Zc;function cn(){return Zc||(Zc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(p){if(super(),!t.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){
504
+ be.isRetriableError),renameSync:wt(pe.renameSync,be.isRetriableError),statSync:wt(pe.statSync,be.isRetriableError),writeSync:wt(pe.writeSync,be.isRetriableError),writeFileSync:wt(pe.writeFileSync,be.isRetriableError)}},Tg="utf8",Yc=438,Ng=511,jg={},Lg=lr.userInfo().uid,kg=lr.userInfo().gid,Dg=1e3,xg=!!Se.getuid;Se.getuid&&Se.getuid();const Xc=128,Mg=t=>t instanceof Error&&"code"in t,Jc=t=>typeof t=="string",ki=t=>t===void 0,qg=Se.platform==="linux",Qc=Se.platform==="win32",Di=["SIGABRT","SIGALRM",
505
+ "SIGHUP","SIGINT","SIGTERM"];Qc||Di.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),qg&&Di.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");class Hg{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(const r of this.callbacks)r();e&&(Qc&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?Se.kill(Se.pid,"SIGTERM"):Se.kill(Se.pid,e))}},this.hook=()=>{Se.once("exit",()=>this.exit());for(const e of Di)try{Se.once(
506
+ e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}}const Ug=new Hg,Fg=Ug.register,Ne={store:{},create:t=>{const e=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),s=`.tmp-${Date.now().toString().slice(-10)}${e}`;return`${t}${s}`},get:(t,e,r=!0)=>{const n=Ne.truncate(e(t));return n in Ne.store?Ne.get(t,e,r):(Ne.store[n]=r,[n,()=>delete Ne.store[n]])},purge:t=>{Ne.store[t]&&(delete Ne.store[t],Te.attempt.unlink(t))},
507
+ purgeSync:t=>{Ne.store[t]&&(delete Ne.store[t],Te.attempt.unlinkSync(t))},purgeSyncAll:()=>{for(const t in Ne.store)Ne.purgeSync(t)},truncate:t=>{const e=me.basename(t);if(e.length<=Xc)return t;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(e);if(!r)return t;const n=e.length-Xc;return`${t.slice(0,-e.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};Fg(Ne.purgeSyncAll);function Zc(t,e,r=jg){if(Jc(r))return Zc(t,e,{encoding:r});const n=Date.now()+((r.timeout??Dg)||-1);let s=null,
508
+ i=null,o=null;try{const a=Te.attempt.realpathSync(t),u=!!a;t=a||t,[i,s]=Ne.get(t,r.tmpCreate||Ne.create,r.tmpPurge!==!1);const l=xg&&ki(r.chown),c=ki(r.mode);if(u&&(l||c)){const d=Te.attempt.statSync(t);d&&(r={...r},l&&(r.chown={uid:d.uid,gid:d.gid}),c&&(r.mode=d.mode))}if(!u){const d=me.dirname(t);Te.attempt.mkdirSync(d,{mode:Ng,recursive:!0})}o=Te.retry.openSync(n)(i,"w",r.mode||Yc),r.tmpCreated&&r.tmpCreated(i),Jc(e)?Te.retry.writeSync(n)(o,e,0,r.encoding||Tg):ki(e)||Te.retry.writeSync(n)(o,e,
509
+ 0,e.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?Te.retry.fsyncSync(n)(o):Te.attempt.fsync(o)),Te.retry.closeSync(n)(o),o=null,r.chown&&(r.chown.uid!==Lg||r.chown.gid!==kg)&&Te.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==Yc&&Te.attempt.chmodSync(i,r.mode);try{Te.retry.renameSync(n)(i,t)}catch(d){if(!Mg(d)||d.code!=="ENAMETOOLONG")throw d;Te.retry.renameSync(n)(i,Ne.truncate(t))}s(),i=null}finally{o&&Te.attempt.closeSync(o),i&&Ne.purge(i)}}var cn={exports:{}},xi={},dt={},Ut={},Mi={},
510
+ qi={},Hi={},eu;function un(){return eu||(eu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(p){if(super(),!t.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){
511
511
  return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((m,$)=>`${m}${$}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((m,$)=>($ instanceof r&&(m[$.str]=(m[$.str]||0)+1),m),
512
- {})}}t._Code=n,t.nil=new n("");function s(g,...p){const m=[g[0]];let $=0;for(;$<p.length;)a(m,p[$]),m.push(g[++$]);return new n(m)}t._=s;const i=new n("+");function o(g,...p){const m=[y(g[0])];let $=0;for(;$<p.length;)m.push(i),a(m,p[$]),m.push(i,y(g[++$]));return c(m),new n(m)}t.str=o;function a(g,p){p instanceof n?g.push(...p._items):p instanceof r?g.push(p):g.push(d(p))}t.addCodeArg=a;function c(g){let p=1;for(;p<g.length-1;){if(g[p]===i){const m=l(g[p-1],g[p+1]);if(m!==void 0){g.splice(p-1,3,
513
- m);continue}g[p++]="+"}p++}}function l(g,p){if(p==='""')return g;if(g==='""')return p;if(typeof g=="string")return p instanceof r||g[g.length-1]!=='"'?void 0:typeof p!="string"?`${g.slice(0,-1)}${p}"`:p[0]==='"'?g.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(g instanceof r))return`"${g}${p.slice(1)}`}function u(g,p){return p.emptyStr()?g:g.emptyStr()?p:o`${g}${p}`}t.strConcat=u;function d(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:y(Array.isArray(g)?g.join(
514
- ","):g)}function h(g){return new n(y(g))}t.stringify=h;function y(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=y;function b(g){return typeof g=="string"&&t.IDENTIFIER.test(g)?new n(`.${g}`):s`[${g}]`}t.getProperty=b;function _(g){if(typeof g=="string"&&t.IDENTIFIER.test(g))return new n(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}t.getEsmExportName=_;function f(g){return new n(g.toString())}t.
515
- regexpCode=f}(qi)),qi}var Hi={},eu;function tu(){return eu||(eu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=cn();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};
516
- class s{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof e.Name?l:this.name(l)}name(l){return new e.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this.
517
- _names[l]={prefix:l,index:0}}}t.Scope=s;class i extends e.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:d}){this.value=l,this.scopePath=(0,e._)`.${new e.Name(u)}[${d}]`}}t.ValueScopeName=i;const o=(0,e._)`\n`;class a extends s{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?o:e.nil}}get(){return this._scope}name(l){return new i(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed\
518
- in value");const h=this.toName(l),{prefix:y}=h,b=(d=u.key)!==null&&d!==void 0?d:u.ref;let _=this._values[y];if(_){const p=_.get(b);if(p)return p}else _=this._values[y]=new Map;_.set(b,h);const f=this._scope[y]||(this._scope[y]=[]),g=f.length;return f[g]=u.ref,h.setValue(u,{property:y,itemIndex:g}),h}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e.
519
- _)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},u,d)}_reduceValues(l,u,d={},h){let y=e.nil;for(const b in l){const _=l[b];if(!_)continue;const f=d[b]=d[b]||new Map;_.forEach(g=>{if(f.has(g))return;f.set(g,n.Started);let p=u(g);if(p){const m=this.opts.es5?t.varKinds.var:t.varKinds.const;y=(0,e._)`${y}${m} ${g} = ${p};${this.opts._n}`}else if(p=h?.(g))y=(0,e._)`${y}${p}${this.
520
- opts._n}`;else throw new r(g);f.set(g,n.Completed)})}return y}}t.ValueScope=a}(Hi)),Hi}var ru;function he(){return ru||(ru=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=cn(),r=tu();var n=cn();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,
512
+ {})}}t._Code=n,t.nil=new n("");function s(g,...p){const m=[g[0]];let $=0;for(;$<p.length;)a(m,p[$]),m.push(g[++$]);return new n(m)}t._=s;const i=new n("+");function o(g,...p){const m=[_(g[0])];let $=0;for(;$<p.length;)m.push(i),a(m,p[$]),m.push(i,_(g[++$]));return u(m),new n(m)}t.str=o;function a(g,p){p instanceof n?g.push(...p._items):p instanceof r?g.push(p):g.push(d(p))}t.addCodeArg=a;function u(g){let p=1;for(;p<g.length-1;){if(g[p]===i){const m=l(g[p-1],g[p+1]);if(m!==void 0){g.splice(p-1,3,
513
+ m);continue}g[p++]="+"}p++}}function l(g,p){if(p==='""')return g;if(g==='""')return p;if(typeof g=="string")return p instanceof r||g[g.length-1]!=='"'?void 0:typeof p!="string"?`${g.slice(0,-1)}${p}"`:p[0]==='"'?g.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(g instanceof r))return`"${g}${p.slice(1)}`}function c(g,p){return p.emptyStr()?g:g.emptyStr()?p:o`${g}${p}`}t.strConcat=c;function d(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:_(Array.isArray(g)?g.join(
514
+ ","):g)}function h(g){return new n(_(g))}t.stringify=h;function _(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=_;function b(g){return typeof g=="string"&&t.IDENTIFIER.test(g)?new n(`.${g}`):s`[${g}]`}t.getProperty=b;function y(g){if(typeof g=="string"&&t.IDENTIFIER.test(g))return new n(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}t.getEsmExportName=y;function f(g){return new n(g.toString())}t.
515
+ regexpCode=f}(Hi)),Hi}var Ui={},tu;function ru(){return tu||(tu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=un();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};
516
+ class s{constructor({prefixes:l,parent:c}={}){this._names={},this._prefixes=l,this._parent=c}toName(l){return l instanceof e.Name?l:this.name(l)}name(l){return new e.Name(this._newName(l))}_newName(l){const c=this._names[l]||this._nameGroup(l);return`${l}${c.index++}`}_nameGroup(l){var c,d;if(!((d=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||d===void 0)&&d.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this.
517
+ _names[l]={prefix:l,index:0}}}t.Scope=s;class i extends e.Name{constructor(l,c){super(c),this.prefix=l}setValue(l,{property:c,itemIndex:d}){this.value=l,this.scopePath=(0,e._)`.${new e.Name(c)}[${d}]`}}t.ValueScopeName=i;const o=(0,e._)`\n`;class a extends s{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?o:e.nil}}get(){return this._scope}name(l){return new i(l,this._newName(l))}value(l,c){var d;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed\
518
+ in value");const h=this.toName(l),{prefix:_}=h,b=(d=c.key)!==null&&d!==void 0?d:c.ref;let y=this._values[_];if(y){const p=y.get(b);if(p)return p}else y=this._values[_]=new Map;y.set(b,h);const f=this._scope[_]||(this._scope[_]=[]),g=f.length;return f[g]=c.ref,h.setValue(c,{property:_,itemIndex:g}),h}getValue(l,c){const d=this._values[l];if(d)return d.get(c)}scopeRefs(l,c=this._values){return this._reduceValues(c,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e.
519
+ _)`${l}${d.scopePath}`})}scopeCode(l=this._values,c,d){return this._reduceValues(l,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},c,d)}_reduceValues(l,c,d={},h){let _=e.nil;for(const b in l){const y=l[b];if(!y)continue;const f=d[b]=d[b]||new Map;y.forEach(g=>{if(f.has(g))return;f.set(g,n.Started);let p=c(g);if(p){const m=this.opts.es5?t.varKinds.var:t.varKinds.const;_=(0,e._)`${_}${m} ${g} = ${p};${this.opts._n}`}else if(p=h?.(g))_=(0,e._)`${_}${p}${this.
520
+ opts._n}`;else throw new r(g);f.set(g,n.Completed)})}return _}}t.ValueScope=a}(Ui)),Ui}var nu;function he(){return nu||(nu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=un(),r=ru();var n=un();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,
521
521
  get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,
522
- get:function(){return n.Name}});var s=tu();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e.
523
- _Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class i{optimizeNodes(){return this}optimizeNames(w,R){return this}}class o extends i{constructor(w,R,C){super(),this.varKind=w,this.name=R,this.rhs=C}render({es5:w,_n:R}){const C=w?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${C} ${this.name}${Y};`+R}optimizeNames(w,R){if(w[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,w,R)),this}get names(){
524
- return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(w,R,C){super(),this.lhs=w,this.rhs=R,this.sideEffects=C}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,R){if(!(this.lhs instanceof e.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=D(this.rhs,w,R),this}get names(){const w=this.lhs instanceof e.Name?{}:{...this.lhs.names};return j(w,this.rhs)}}class c extends a{constructor(w,R,C,Y){super(w,C,Y),this.op=R}render({_n:w}){return`${this.
525
- lhs} ${this.op}= ${this.rhs};`+w}}class l extends i{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class u extends i{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class d extends i{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class h extends i{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code}\
526
- ;`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,R){return this.code=D(this.code,w,R),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class y extends i{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((R,C)=>R+C.render(w),"")}optimizeNodes(){const{nodes:w}=this;let R=w.length;for(;R--;){const C=w[R].optimizeNodes();Array.isArray(C)?w.splice(R,1,...C):C?w[R]=C:w.splice(R,1)}return w.length>0?this:void 0}optimizeNames(w,R){
527
- const{nodes:C}=this;let Y=C.length;for(;Y--;){const Q=C[Y];Q.optimizeNames(w,R)||(H(w,Q.names),C.splice(Y,1))}return C.length>0?this:void 0}get names(){return this.nodes.reduce((w,R)=>M(w,R.names),{})}}class b extends y{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class _ extends y{}class f extends b{}f.kind="else";class g extends b{constructor(w,R){super(R),this.condition=w}render(w){let R=`if(${this.condition})`+super.render(w);return this.else&&(R+="else "+this.else.render(w)),R}optimizeNodes(){
528
- super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let R=this.else;if(R){const C=R.optimizeNodes();R=this.else=Array.isArray(C)?new f(C):C}if(R)return w===!1?R instanceof g?R:R.nodes:this.nodes.length?this:new g(K(w),R instanceof g?[R]:R.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,R){var C;if(this.else=(C=this.else)===null||C===void 0?void 0:C.optimizeNames(w,R),!!(super.optimizeNames(w,R)||this.else))return this.condition=D(this.condition,w,R),this}get names(){
529
- const w=super.names;return j(w,this.condition),this.else&&M(w,this.else.names),w}}g.kind="if";class p extends b{}p.kind="for";class m extends p{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,R){if(super.optimizeNames(w,R))return this.iteration=D(this.iteration,w,R),this}get names(){return M(super.names,this.iteration.names)}}class $ extends p{constructor(w,R,C,Y){super(),this.varKind=w,this.name=R,this.from=C,this.to=Y}render(w){const R=w.
530
- es5?r.varKinds.var:this.varKind,{name:C,from:Y,to:Q}=this;return`for(${R} ${C}=${Y}; ${C}<${Q}; ${C}++)`+super.render(w)}get names(){const w=j(super.names,this.from);return j(w,this.to)}}class v extends p{constructor(w,R,C,Y){super(),this.loop=w,this.varKind=R,this.name=C,this.iterable=Y}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,R){if(super.optimizeNames(w,R))return this.iterable=D(this.iterable,w,R),this}get names(){return M(
531
- super.names,this.iterable.names)}}class E extends b{constructor(w,R,C){super(),this.name=w,this.args=R,this.async=C}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}E.kind="func";class S extends y{render(w){return"return "+super.render(w)}}S.kind="return";class I extends b{render(w){let R="try"+super.render(w);return this.catch&&(R+=this.catch.render(w)),this.finally&&(R+=this.finally.render(w)),R}optimizeNodes(){var w,R;return super.optimizeNodes(),
532
- (w=this.catch)===null||w===void 0||w.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(w,R){var C,Y;return super.optimizeNames(w,R),(C=this.catch)===null||C===void 0||C.optimizeNames(w,R),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(w,R),this}get names(){const w=super.names;return this.catch&&M(w,this.catch.names),this.finally&&M(w,this.finally.names),w}}class F extends b{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.
522
+ get:function(){return n.Name}});var s=ru();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e.
523
+ _Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class i{optimizeNodes(){return this}optimizeNames(w,R){return this}}class o extends i{constructor(w,R,C){super(),this.varKind=w,this.name=R,this.rhs=C}render({es5:w,_n:R}){const C=w?r.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${C} ${this.name}${X};`+R}optimizeNames(w,R){if(w[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,w,R)),this}get names(){
524
+ return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(w,R,C){super(),this.lhs=w,this.rhs=R,this.sideEffects=C}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,R){if(!(this.lhs instanceof e.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=D(this.rhs,w,R),this}get names(){const w=this.lhs instanceof e.Name?{}:{...this.lhs.names};return j(w,this.rhs)}}class u extends a{constructor(w,R,C,X){super(w,C,X),this.op=R}render({_n:w}){return`${this.
525
+ lhs} ${this.op}= ${this.rhs};`+w}}class l extends i{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class c extends i{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class d extends i{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class h extends i{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code}\
526
+ ;`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,R){return this.code=D(this.code,w,R),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends i{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((R,C)=>R+C.render(w),"")}optimizeNodes(){const{nodes:w}=this;let R=w.length;for(;R--;){const C=w[R].optimizeNodes();Array.isArray(C)?w.splice(R,1,...C):C?w[R]=C:w.splice(R,1)}return w.length>0?this:void 0}optimizeNames(w,R){
527
+ const{nodes:C}=this;let X=C.length;for(;X--;){const Z=C[X];Z.optimizeNames(w,R)||(H(w,Z.names),C.splice(X,1))}return C.length>0?this:void 0}get names(){return this.nodes.reduce((w,R)=>M(w,R.names),{})}}class b extends _{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class y extends _{}class f extends b{}f.kind="else";class g extends b{constructor(w,R){super(R),this.condition=w}render(w){let R=`if(${this.condition})`+super.render(w);return this.else&&(R+="else "+this.else.render(w)),R}optimizeNodes(){
528
+ super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let R=this.else;if(R){const C=R.optimizeNodes();R=this.else=Array.isArray(C)?new f(C):C}if(R)return w===!1?R instanceof g?R:R.nodes:this.nodes.length?this:new g(Y(w),R instanceof g?[R]:R.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,R){var C;if(this.else=(C=this.else)===null||C===void 0?void 0:C.optimizeNames(w,R),!!(super.optimizeNames(w,R)||this.else))return this.condition=D(this.condition,w,R),this}get names(){
529
+ const w=super.names;return j(w,this.condition),this.else&&M(w,this.else.names),w}}g.kind="if";class p extends b{}p.kind="for";class m extends p{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,R){if(super.optimizeNames(w,R))return this.iteration=D(this.iteration,w,R),this}get names(){return M(super.names,this.iteration.names)}}class $ extends p{constructor(w,R,C,X){super(),this.varKind=w,this.name=R,this.from=C,this.to=X}render(w){const R=w.
530
+ es5?r.varKinds.var:this.varKind,{name:C,from:X,to:Z}=this;return`for(${R} ${C}=${X}; ${C}<${Z}; ${C}++)`+super.render(w)}get names(){const w=j(super.names,this.from);return j(w,this.to)}}class v extends p{constructor(w,R,C,X){super(),this.loop=w,this.varKind=R,this.name=C,this.iterable=X}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,R){if(super.optimizeNames(w,R))return this.iterable=D(this.iterable,w,R),this}get names(){return M(
531
+ super.names,this.iterable.names)}}class E extends b{constructor(w,R,C){super(),this.name=w,this.args=R,this.async=C}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}E.kind="func";class S extends _{render(w){return"return "+super.render(w)}}S.kind="return";class I extends b{render(w){let R="try"+super.render(w);return this.catch&&(R+=this.catch.render(w)),this.finally&&(R+=this.finally.render(w)),R}optimizeNodes(){var w,R;return super.optimizeNodes(),
532
+ (w=this.catch)===null||w===void 0||w.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(w,R){var C,X;return super.optimizeNames(w,R),(C=this.catch)===null||C===void 0||C.optimizeNames(w,R),(X=this.finally)===null||X===void 0||X.optimizeNames(w,R),this}get names(){const w=super.names;return this.catch&&M(w,this.catch.names),this.finally&&M(w,this.finally.names),w}}class F extends b{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.
533
533
  render(w)}}F.kind="catch";class B extends b{render(w){return"finally"+super.render(w)}}B.kind="finally";class k{constructor(w,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?`
534
- `:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new _]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,R){const C=this._extScope.value(w,R);return(this._values[C.prefix]||(this._values[C.prefix]=new Set)).add(C),C}getScopeValue(w,R){return this._extScope.getValue(w,R)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,R,C,Y){
535
- const Q=this._scope.toName(R);return C!==void 0&&Y&&(this._constants[Q.str]=C),this._leafNode(new o(w,Q,C)),Q}const(w,R,C){return this._def(r.varKinds.const,w,R,C)}let(w,R,C){return this._def(r.varKinds.let,w,R,C)}var(w,R,C){return this._def(r.varKinds.var,w,R,C)}assign(w,R,C){return this._leafNode(new a(w,R,C))}add(w,R){return this._leafNode(new c(w,t.operators.ADD,R))}code(w){return typeof w=="function"?w():w!==e.nil&&this._leafNode(new h(w)),this}object(...w){const R=["{"];for(const[C,Y]of w)
536
- R.length>1&&R.push(","),R.push(C),(C!==Y||this.opts.es5)&&(R.push(":"),(0,e.addCodeArg)(R,Y));return R.push("}"),new e._Code(R)}if(w,R,C){if(this._blockNode(new g(w)),R&&C)this.code(R).else().code(C).endIf();else if(R)this.code(R).endIf();else if(C)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new g(w))}else(){return this._elseNode(new f)}endIf(){return this._endBlockNode(g,f)}_for(w,R){return this._blockNode(w),R&&this.code(R).endFor(),this}for(w,R){
537
- return this._for(new m(w),R)}forRange(w,R,C,Y,Q=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(w);return this._for(new $(Q,ie,R,C),()=>Y(ie))}forOf(w,R,C,Y=r.varKinds.const){const Q=this._scope.toName(w);if(this.opts.es5){const ie=R instanceof e.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,e._)`${ie}.length`,oe=>{this.var(Q,(0,e._)`${ie}[${oe}]`),C(Q)})}return this._for(new v("of",Y,Q,R),()=>C(Q))}forIn(w,R,C,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){
538
- if(this.opts.ownProperties)return this.forOf(w,(0,e._)`Object.keys(${R})`,C);const Q=this._scope.toName(w);return this._for(new v("in",Y,Q,R),()=>C(Q))}endFor(){return this._endBlockNode(p)}label(w){return this._leafNode(new l(w))}break(w){return this._leafNode(new u(w))}return(w){const R=new S;if(this._blockNode(R),this.code(w),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(w,R,C){if(!R&&!C)throw new Error('CodeGen: "try" without "c\
539
- atch" and "finally"');const Y=new I;if(this._blockNode(Y),this.code(w),R){const Q=this.name("e");this._currNode=Y.catch=new F(Q),R(Q)}return C&&(this._currNode=Y.finally=new B,this.code(C)),this._endBlockNode(F,B)}throw(w){return this._leafNode(new d(w))}block(w,R){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(R),this}endBlock(w){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const C=this._nodes.length-R;if(C<0||
540
- w!==void 0&&C!==w)throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${w} expected`);return this._nodes.length=R,this}func(w,R=e.nil,C,Y){return this._blockNode(new E(w,R,C)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,R){
534
+ `:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,R){const C=this._extScope.value(w,R);return(this._values[C.prefix]||(this._values[C.prefix]=new Set)).add(C),C}getScopeValue(w,R){return this._extScope.getValue(w,R)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,R,C,X){
535
+ const Z=this._scope.toName(R);return C!==void 0&&X&&(this._constants[Z.str]=C),this._leafNode(new o(w,Z,C)),Z}const(w,R,C){return this._def(r.varKinds.const,w,R,C)}let(w,R,C){return this._def(r.varKinds.let,w,R,C)}var(w,R,C){return this._def(r.varKinds.var,w,R,C)}assign(w,R,C){return this._leafNode(new a(w,R,C))}add(w,R){return this._leafNode(new u(w,t.operators.ADD,R))}code(w){return typeof w=="function"?w():w!==e.nil&&this._leafNode(new h(w)),this}object(...w){const R=["{"];for(const[C,X]of w)
536
+ R.length>1&&R.push(","),R.push(C),(C!==X||this.opts.es5)&&(R.push(":"),(0,e.addCodeArg)(R,X));return R.push("}"),new e._Code(R)}if(w,R,C){if(this._blockNode(new g(w)),R&&C)this.code(R).else().code(C).endIf();else if(R)this.code(R).endIf();else if(C)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new g(w))}else(){return this._elseNode(new f)}endIf(){return this._endBlockNode(g,f)}_for(w,R){return this._blockNode(w),R&&this.code(R).endFor(),this}for(w,R){
537
+ return this._for(new m(w),R)}forRange(w,R,C,X,Z=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(w);return this._for(new $(Z,ie,R,C),()=>X(ie))}forOf(w,R,C,X=r.varKinds.const){const Z=this._scope.toName(w);if(this.opts.es5){const ie=R instanceof e.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,e._)`${ie}.length`,oe=>{this.var(Z,(0,e._)`${ie}[${oe}]`),C(Z)})}return this._for(new v("of",X,Z,R),()=>C(Z))}forIn(w,R,C,X=this.opts.es5?r.varKinds.var:r.varKinds.const){
538
+ if(this.opts.ownProperties)return this.forOf(w,(0,e._)`Object.keys(${R})`,C);const Z=this._scope.toName(w);return this._for(new v("in",X,Z,R),()=>C(Z))}endFor(){return this._endBlockNode(p)}label(w){return this._leafNode(new l(w))}break(w){return this._leafNode(new c(w))}return(w){const R=new S;if(this._blockNode(R),this.code(w),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(w,R,C){if(!R&&!C)throw new Error('CodeGen: "try" without "c\
539
+ atch" and "finally"');const X=new I;if(this._blockNode(X),this.code(w),R){const Z=this.name("e");this._currNode=X.catch=new F(Z),R(Z)}return C&&(this._currNode=X.finally=new B,this.code(C)),this._endBlockNode(F,B)}throw(w){return this._leafNode(new d(w))}block(w,R){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(R),this}endBlock(w){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const C=this._nodes.length-R;if(C<0||
540
+ w!==void 0&&C!==w)throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${w} expected`);return this._nodes.length=R,this}func(w,R=e.nil,C,X){return this._blockNode(new E(w,R,C)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,R){
541
541
  const C=this._currNode;if(C instanceof w||R&&C instanceof R)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${R?`${w.kind}/${R.kind}`:w.kind}"`)}_elseNode(w){const R=this._currNode;if(!(R instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=R.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const R=this._nodes;R[R.length-1]=w}}t.CodeGen=k;function M(x,w){for(const R in w)x[R]=
542
- (x[R]||0)+(w[R]||0);return x}function j(x,w){return w instanceof e._CodeOrName?M(x,w.names):x}function D(x,w,R){if(x instanceof e.Name)return C(x);if(!Y(x))return x;return new e._Code(x._items.reduce((Q,ie)=>(ie instanceof e.Name&&(ie=C(ie)),ie instanceof e._Code?Q.push(...ie._items):Q.push(ie),Q),[]));function C(Q){const ie=R[Q.str];return ie===void 0||w[Q.str]!==1?Q:(delete w[Q.str],ie)}function Y(Q){return Q instanceof e._Code&&Q._items.some(ie=>ie instanceof e.Name&&w[ie.str]===1&&R[ie.str]!==
543
- void 0)}}function H(x,w){for(const R in w)x[R]=(x[R]||0)-(w[R]||0)}function K(x){return typeof x=="boolean"||typeof x=="number"||x===null?!x:(0,e._)`!${V(x)}`}t.not=K;const G=A(t.operators.AND);function X(...x){return x.reduce(G)}t.and=X;const se=A(t.operators.OR);function U(...x){return x.reduce(se)}t.or=U;function A(x){return(w,R)=>w===e.nil?R:R===e.nil?w:(0,e._)`${V(w)} ${x} ${V(R)}`}function V(x){return x instanceof e.Name?x:(0,e._)`(${x})`}}(Mi)),Mi}var ge={},nu;function _e(){if(nu)return ge;
544
- nu=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkStrictMode=ge.getErrorPath=ge.Type=ge.useFunc=ge.setEvaluated=ge.evaluatedPropsToName=ge.mergeEvaluated=ge.eachItem=ge.unescapeJsonPointer=ge.escapeJsonPointer=ge.escapeFragment=ge.unescapeFragment=ge.schemaRefOrVal=ge.schemaHasRulesButRef=ge.schemaHasRules=ge.checkUnknownRules=ge.alwaysValidSchema=ge.toHash=void 0;const t=he(),e=cn();function r(v){const E={};for(const S of v)E[S]=!0;return E}ge.toHash=r;function n(v,E){return typeof E==
542
+ (x[R]||0)+(w[R]||0);return x}function j(x,w){return w instanceof e._CodeOrName?M(x,w.names):x}function D(x,w,R){if(x instanceof e.Name)return C(x);if(!X(x))return x;return new e._Code(x._items.reduce((Z,ie)=>(ie instanceof e.Name&&(ie=C(ie)),ie instanceof e._Code?Z.push(...ie._items):Z.push(ie),Z),[]));function C(Z){const ie=R[Z.str];return ie===void 0||w[Z.str]!==1?Z:(delete w[Z.str],ie)}function X(Z){return Z instanceof e._Code&&Z._items.some(ie=>ie instanceof e.Name&&w[ie.str]===1&&R[ie.str]!==
543
+ void 0)}}function H(x,w){for(const R in w)x[R]=(x[R]||0)-(w[R]||0)}function Y(x){return typeof x=="boolean"||typeof x=="number"||x===null?!x:(0,e._)`!${V(x)}`}t.not=Y;const G=A(t.operators.AND);function J(...x){return x.reduce(G)}t.and=J;const se=A(t.operators.OR);function U(...x){return x.reduce(se)}t.or=U;function A(x){return(w,R)=>w===e.nil?R:R===e.nil?w:(0,e._)`${V(w)} ${x} ${V(R)}`}function V(x){return x instanceof e.Name?x:(0,e._)`(${x})`}}(qi)),qi}var ge={},su;function _e(){if(su)return ge;
544
+ su=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkStrictMode=ge.getErrorPath=ge.Type=ge.useFunc=ge.setEvaluated=ge.evaluatedPropsToName=ge.mergeEvaluated=ge.eachItem=ge.unescapeJsonPointer=ge.escapeJsonPointer=ge.escapeFragment=ge.unescapeFragment=ge.schemaRefOrVal=ge.schemaHasRulesButRef=ge.schemaHasRules=ge.checkUnknownRules=ge.alwaysValidSchema=ge.toHash=void 0;const t=he(),e=un();function r(v){const E={};for(const S of v)E[S]=!0;return E}ge.toHash=r;function n(v,E){return typeof E==
545
545
  "boolean"?E:Object.keys(E).length===0?!0:(s(v,E),!i(E,v.self.RULES.all))}ge.alwaysValidSchema=n;function s(v,E=v.schema){const{opts:S,self:I}=v;if(!S.strictSchema||typeof E=="boolean")return;const F=I.RULES.keywords;for(const B in E)F[B]||$(v,`unknown keyword: "${B}"`)}ge.checkUnknownRules=s;function i(v,E){if(typeof v=="boolean")return!v;for(const S in v)if(E[S])return!0;return!1}ge.schemaHasRules=i;function o(v,E){if(typeof v=="boolean")return!v;for(const S in v)if(S!=="$ref"&&E.all[S])return!0;
546
- return!1}ge.schemaHasRulesButRef=o;function a({topSchemaRef:v,schemaPath:E},S,I,F){if(!F){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,t._)`${S}`}return(0,t._)`${v}${E}${(0,t.getProperty)(I)}`}ge.schemaRefOrVal=a;function c(v){return d(decodeURIComponent(v))}ge.unescapeFragment=c;function l(v){return encodeURIComponent(u(v))}ge.escapeFragment=l;function u(v){return typeof v=="number"?`${v}`:v.replace(/~/g,"~0").replace(/\//g,"~1")}ge.escapeJsonPointer=u;function d(v){
547
- return v.replace(/~1/g,"/").replace(/~0/g,"~")}ge.unescapeJsonPointer=d;function h(v,E){if(Array.isArray(v))for(const S of v)E(S);else E(v)}ge.eachItem=h;function y({mergeNames:v,mergeToName:E,mergeValues:S,resultToName:I}){return(F,B,k,M)=>{const j=k===void 0?B:k instanceof t.Name?(B instanceof t.Name?v(F,B,k):E(F,B,k),k):B instanceof t.Name?(E(F,k,B),B):S(B,k);return M===t.Name&&!(j instanceof t.Name)?I(F,j):j}}ge.mergeEvaluated={props:y({mergeNames:(v,E,S)=>v.if((0,t._)`${S} !== true && ${E} !== undefined`,
548
- ()=>{v.if((0,t._)`${E} === true`,()=>v.assign(S,!0),()=>v.assign(S,(0,t._)`${S} || {}`).code((0,t._)`Object.assign(${S}, ${E})`))}),mergeToName:(v,E,S)=>v.if((0,t._)`${S} !== true`,()=>{E===!0?v.assign(S,!0):(v.assign(S,(0,t._)`${S} || {}`),_(v,S,E))}),mergeValues:(v,E)=>v===!0?!0:{...v,...E},resultToName:b}),items:y({mergeNames:(v,E,S)=>v.if((0,t._)`${S} !== true && ${E} !== undefined`,()=>v.assign(S,(0,t._)`${E} === true ? true : ${S} > ${E} ? ${S} : ${E}`)),mergeToName:(v,E,S)=>v.if((0,t._)`${S} !== true`,
549
- ()=>v.assign(S,E===!0?!0:(0,t._)`${S} > ${E} ? ${S} : ${E}`)),mergeValues:(v,E)=>v===!0?!0:Math.max(v,E),resultToName:(v,E)=>v.var("items",E)})};function b(v,E){if(E===!0)return v.var("props",!0);const S=v.var("props",(0,t._)`{}`);return E!==void 0&&_(v,S,E),S}ge.evaluatedPropsToName=b;function _(v,E,S){Object.keys(S).forEach(I=>v.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}ge.setEvaluated=_;const f={};function g(v,E){return v.scopeValue("func",{ref:E,code:f[E.code]||(f[E.code]=new e._Code(
550
- E.code))})}ge.useFunc=g;var p;(function(v){v[v.Num=0]="Num",v[v.Str=1]="Str"})(p||(ge.Type=p={}));function m(v,E,S){if(v instanceof t.Name){const I=E===p.Num;return S?I?(0,t._)`"[" + ${v} + "]"`:(0,t._)`"['" + ${v} + "']"`:I?(0,t._)`"/" + ${v}`:(0,t._)`"/" + ${v}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,t.getProperty)(v).toString():"/"+u(v)}ge.getErrorPath=m;function $(v,E,S=v.opts.strictSchema){if(S){if(E=`strict mode: ${E}`,S===!0)throw new Error(E);v.self.logger.warn(E)}}return ge.
551
- checkStrictMode=$,ge}var un={},su;function Xe(){if(su)return un;su=1,Object.defineProperty(un,"__esModule",{value:!0});const t=he(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.
552
- Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return un.default=e,un}var iu;function ln(){return iu||(iu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=he(),r=_e(),n=Xe();t.keywordError={message:({keyword:f})=>(0,e.str)`must pass "${f}" keyword validation`},t.keyword$DataError={message:({
553
- keyword:f,schemaType:g})=>g?(0,e.str)`"${f}" keyword must be ${g} ($data)`:(0,e.str)`"${f}" keyword is invalid ($data)`};function s(f,g=t.keywordError,p,m){const{it:$}=f,{gen:v,compositeRule:E,allErrors:S}=$,I=d(f,g,p);m??(E||S)?c(v,I):l($,(0,e._)`[${I}]`)}t.reportError=s;function i(f,g=t.keywordError,p){const{it:m}=f,{gen:$,compositeRule:v,allErrors:E}=m,S=d(f,g,p);c($,S),v||E||l(m,n.default.vErrors)}t.reportExtraError=i;function o(f,g){f.assign(n.default.errors,g),f.if((0,e._)`${n.default.vErrors} !== null`,
546
+ return!1}ge.schemaHasRulesButRef=o;function a({topSchemaRef:v,schemaPath:E},S,I,F){if(!F){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,t._)`${S}`}return(0,t._)`${v}${E}${(0,t.getProperty)(I)}`}ge.schemaRefOrVal=a;function u(v){return d(decodeURIComponent(v))}ge.unescapeFragment=u;function l(v){return encodeURIComponent(c(v))}ge.escapeFragment=l;function c(v){return typeof v=="number"?`${v}`:v.replace(/~/g,"~0").replace(/\//g,"~1")}ge.escapeJsonPointer=c;function d(v){
547
+ return v.replace(/~1/g,"/").replace(/~0/g,"~")}ge.unescapeJsonPointer=d;function h(v,E){if(Array.isArray(v))for(const S of v)E(S);else E(v)}ge.eachItem=h;function _({mergeNames:v,mergeToName:E,mergeValues:S,resultToName:I}){return(F,B,k,M)=>{const j=k===void 0?B:k instanceof t.Name?(B instanceof t.Name?v(F,B,k):E(F,B,k),k):B instanceof t.Name?(E(F,k,B),B):S(B,k);return M===t.Name&&!(j instanceof t.Name)?I(F,j):j}}ge.mergeEvaluated={props:_({mergeNames:(v,E,S)=>v.if((0,t._)`${S} !== true && ${E} !== undefined`,
548
+ ()=>{v.if((0,t._)`${E} === true`,()=>v.assign(S,!0),()=>v.assign(S,(0,t._)`${S} || {}`).code((0,t._)`Object.assign(${S}, ${E})`))}),mergeToName:(v,E,S)=>v.if((0,t._)`${S} !== true`,()=>{E===!0?v.assign(S,!0):(v.assign(S,(0,t._)`${S} || {}`),y(v,S,E))}),mergeValues:(v,E)=>v===!0?!0:{...v,...E},resultToName:b}),items:_({mergeNames:(v,E,S)=>v.if((0,t._)`${S} !== true && ${E} !== undefined`,()=>v.assign(S,(0,t._)`${E} === true ? true : ${S} > ${E} ? ${S} : ${E}`)),mergeToName:(v,E,S)=>v.if((0,t._)`${S} !== true`,
549
+ ()=>v.assign(S,E===!0?!0:(0,t._)`${S} > ${E} ? ${S} : ${E}`)),mergeValues:(v,E)=>v===!0?!0:Math.max(v,E),resultToName:(v,E)=>v.var("items",E)})};function b(v,E){if(E===!0)return v.var("props",!0);const S=v.var("props",(0,t._)`{}`);return E!==void 0&&y(v,S,E),S}ge.evaluatedPropsToName=b;function y(v,E,S){Object.keys(S).forEach(I=>v.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}ge.setEvaluated=y;const f={};function g(v,E){return v.scopeValue("func",{ref:E,code:f[E.code]||(f[E.code]=new e._Code(
550
+ E.code))})}ge.useFunc=g;var p;(function(v){v[v.Num=0]="Num",v[v.Str=1]="Str"})(p||(ge.Type=p={}));function m(v,E,S){if(v instanceof t.Name){const I=E===p.Num;return S?I?(0,t._)`"[" + ${v} + "]"`:(0,t._)`"['" + ${v} + "']"`:I?(0,t._)`"/" + ${v}`:(0,t._)`"/" + ${v}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,t.getProperty)(v).toString():"/"+c(v)}ge.getErrorPath=m;function $(v,E,S=v.opts.strictSchema){if(S){if(E=`strict mode: ${E}`,S===!0)throw new Error(E);v.self.logger.warn(E)}}return ge.
551
+ checkStrictMode=$,ge}var ln={},iu;function Xe(){if(iu)return ln;iu=1,Object.defineProperty(ln,"__esModule",{value:!0});const t=he(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.
552
+ Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return ln.default=e,ln}var ou;function fn(){return ou||(ou=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=he(),r=_e(),n=Xe();t.keywordError={message:({keyword:f})=>(0,e.str)`must pass "${f}" keyword validation`},t.keyword$DataError={message:({
553
+ keyword:f,schemaType:g})=>g?(0,e.str)`"${f}" keyword must be ${g} ($data)`:(0,e.str)`"${f}" keyword is invalid ($data)`};function s(f,g=t.keywordError,p,m){const{it:$}=f,{gen:v,compositeRule:E,allErrors:S}=$,I=d(f,g,p);m??(E||S)?u(v,I):l($,(0,e._)`[${I}]`)}t.reportError=s;function i(f,g=t.keywordError,p){const{it:m}=f,{gen:$,compositeRule:v,allErrors:E}=m,S=d(f,g,p);u($,S),v||E||l(m,n.default.vErrors)}t.reportExtraError=i;function o(f,g){f.assign(n.default.errors,g),f.if((0,e._)`${n.default.vErrors} !== null`,
554
554
  ()=>f.if(g,()=>f.assign((0,e._)`${n.default.vErrors}.length`,g),()=>f.assign(n.default.vErrors,null)))}t.resetErrorsCount=o;function a({gen:f,keyword:g,schemaValue:p,data:m,errsCount:$,it:v}){if($===void 0)throw new Error("ajv implementation error");const E=f.name("err");f.forRange("i",$,n.default.errors,S=>{f.const(E,(0,e._)`${n.default.vErrors}[${S}]`),f.if((0,e._)`${E}.instancePath === undefined`,()=>f.assign((0,e._)`${E}.instancePath`,(0,e.strConcat)(n.default.instancePath,v.errorPath))),f.assign(
555
- (0,e._)`${E}.schemaPath`,(0,e.str)`${v.errSchemaPath}/${g}`),v.opts.verbose&&(f.assign((0,e._)`${E}.schema`,p),f.assign((0,e._)`${E}.data`,m))})}t.extendErrors=a;function c(f,g){const p=f.const("err",g);f.if((0,e._)`${n.default.vErrors} === null`,()=>f.assign(n.default.vErrors,(0,e._)`[${p}]`),(0,e._)`${n.default.vErrors}.push(${p})`),f.code((0,e._)`${n.default.errors}++`)}function l(f,g){const{gen:p,validateName:m,schemaEnv:$}=f;$.$async?p.throw((0,e._)`new ${f.ValidationError}(${g})`):(p.assign(
556
- (0,e._)`${m}.errors`,g),p.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function d(f,g,p){const{createErrors:m}=f.it;return m===!1?(0,e._)`{}`:h(f,g,p)}function h(f,g,p={}){const{gen:m,it:$}=f,v=[y($,p),b(f,p)];return _(f,g,v),m.object(...v)}function y({errorPath:f},{instancePath:g}){const p=g?
557
- (0,e.str)`${f}${(0,r.getErrorPath)(g,r.Type.Str)}`:f;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,p)]}function b({keyword:f,it:{errSchemaPath:g}},{schemaPath:p,parentSchema:m}){let $=m?g:(0,e.str)`${g}/${f}`;return p&&($=(0,e.str)`${$}${(0,r.getErrorPath)(p,r.Type.Str)}`),[u.schemaPath,$]}function _(f,{params:g,message:p},m){const{keyword:$,data:v,schemaValue:E,it:S}=f,{opts:I,propertyName:F,topSchemaRef:B,schemaPath:k}=S;m.push([u.keyword,$],[u.params,typeof g=="function"?
558
- g(f):g||(0,e._)`{}`]),I.messages&&m.push([u.message,typeof p=="function"?p(f):p]),I.verbose&&m.push([u.schema,E],[u.parentSchema,(0,e._)`${B}${k}`],[n.default.data,v]),F&&m.push([u.propertyName,F])}}(xi)),xi}var ou;function Hg(){if(ou)return Ut;ou=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.boolOrEmptySchema=Ut.topBoolOrEmptySchema=void 0;const t=ln(),e=he(),r=Xe(),n={message:"boolean schema is false"};function s(a){const{gen:c,schema:l,validateName:u}=a;l===!1?o(a,!1):typeof l=="obje\
559
- ct"&&l.$async===!0?c.return(r.default.data):(c.assign((0,e._)`${u}.errors`,null),c.return(!0))}Ut.topBoolOrEmptySchema=s;function i(a,c){const{gen:l,schema:u}=a;u===!1?(l.var(c,!1),o(a)):l.var(c,!0)}Ut.boolOrEmptySchema=i;function o(a,c){const{gen:l,data:u}=a,d={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(d,n,void 0,c)}return Ut}var Pe={},Ft={},au;function cu(){if(au)return Ft;au=1,Object.defineProperty(Ft,"__esModule",{value:!0}),
555
+ (0,e._)`${E}.schemaPath`,(0,e.str)`${v.errSchemaPath}/${g}`),v.opts.verbose&&(f.assign((0,e._)`${E}.schema`,p),f.assign((0,e._)`${E}.data`,m))})}t.extendErrors=a;function u(f,g){const p=f.const("err",g);f.if((0,e._)`${n.default.vErrors} === null`,()=>f.assign(n.default.vErrors,(0,e._)`[${p}]`),(0,e._)`${n.default.vErrors}.push(${p})`),f.code((0,e._)`${n.default.errors}++`)}function l(f,g){const{gen:p,validateName:m,schemaEnv:$}=f;$.$async?p.throw((0,e._)`new ${f.ValidationError}(${g})`):(p.assign(
556
+ (0,e._)`${m}.errors`,g),p.return(!1))}const c={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function d(f,g,p){const{createErrors:m}=f.it;return m===!1?(0,e._)`{}`:h(f,g,p)}function h(f,g,p={}){const{gen:m,it:$}=f,v=[_($,p),b(f,p)];return y(f,g,v),m.object(...v)}function _({errorPath:f},{instancePath:g}){const p=g?
557
+ (0,e.str)`${f}${(0,r.getErrorPath)(g,r.Type.Str)}`:f;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,p)]}function b({keyword:f,it:{errSchemaPath:g}},{schemaPath:p,parentSchema:m}){let $=m?g:(0,e.str)`${g}/${f}`;return p&&($=(0,e.str)`${$}${(0,r.getErrorPath)(p,r.Type.Str)}`),[c.schemaPath,$]}function y(f,{params:g,message:p},m){const{keyword:$,data:v,schemaValue:E,it:S}=f,{opts:I,propertyName:F,topSchemaRef:B,schemaPath:k}=S;m.push([c.keyword,$],[c.params,typeof g=="function"?
558
+ g(f):g||(0,e._)`{}`]),I.messages&&m.push([c.message,typeof p=="function"?p(f):p]),I.verbose&&m.push([c.schema,E],[c.parentSchema,(0,e._)`${B}${k}`],[n.default.data,v]),F&&m.push([c.propertyName,F])}}(Mi)),Mi}var au;function Vg(){if(au)return Ut;au=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.boolOrEmptySchema=Ut.topBoolOrEmptySchema=void 0;const t=fn(),e=he(),r=Xe(),n={message:"boolean schema is false"};function s(a){const{gen:u,schema:l,validateName:c}=a;l===!1?o(a,!1):typeof l=="obje\
559
+ ct"&&l.$async===!0?u.return(r.default.data):(u.assign((0,e._)`${c}.errors`,null),u.return(!0))}Ut.topBoolOrEmptySchema=s;function i(a,u){const{gen:l,schema:c}=a;c===!1?(l.var(u,!1),o(a)):l.var(u,!0)}Ut.boolOrEmptySchema=i;function o(a,u){const{gen:l,data:c}=a,d={gen:l,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(d,n,void 0,u)}return Ut}var Pe={},Ft={},cu;function uu(){if(cu)return Ft;cu=1,Object.defineProperty(Ft,"__esModule",{value:!0}),
560
560
  Ft.getRules=Ft.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(s){return typeof s=="string"&&e.has(s)}Ft.isJSONType=r;function n(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return Ft.getRules=n,Ft}var ht={},
561
- uu;function lu(){if(uu)return ht;uu=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.shouldUseRule=ht.shouldUseGroup=ht.schemaHasRulesForType=void 0;function t({schema:n,self:s},i){const o=s.RULES.types[i];return o&&o!==!0&&e(n,o)}ht.schemaHasRulesForType=t;function e(n,s){return s.rules.some(i=>r(n,i))}ht.shouldUseGroup=e;function r(n,s){var i;return n[s.keyword]!==void 0||((i=s.definition.implements)===null||i===void 0?void 0:i.some(o=>n[o]!==void 0))}return ht.shouldUseRule=r,ht}var fu;
562
- function fn(){if(fu)return Pe;fu=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.reportTypeError=Pe.checkDataTypes=Pe.checkDataType=Pe.coerceAndCheckDataType=Pe.getJSONTypes=Pe.getSchemaTypes=Pe.DataType=void 0;const t=cu(),e=lu(),r=ln(),n=he(),s=_e();var i;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(i||(Pe.DataType=i={}));function o(p){const m=a(p.type);if(m.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!m.length&&
563
- p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&m.push("null")}return m}Pe.getSchemaTypes=o;function a(p){const m=Array.isArray(p)?p:p?[p]:[];if(m.every(t.isJSONType))return m;throw new Error("type must be JSONType or JSONType[]: "+m.join(","))}Pe.getJSONTypes=a;function c(p,m){const{gen:$,data:v,opts:E}=p,S=u(m,E.coerceTypes),I=m.length>0&&!(S.length===0&&m.length===1&&(0,e.schemaHasRulesForType)(p,m[0]));if(I){const F=b(m,v,E.strictNumbers,i.Wrong);
564
- $.if(F,()=>{S.length?d(p,m,S):f(p)})}return I}Pe.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(p,m){return m?p.filter($=>l.has($)||m==="array"&&$==="array"):[]}function d(p,m,$){const{gen:v,data:E,opts:S}=p,I=v.let("dataType",(0,n._)`typeof ${E}`),F=v.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&v.if((0,n._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>v.assign(E,(0,n._)`${E}[0]`).assign(I,(0,n._)`typeof ${E}`).
561
+ lu;function fu(){if(lu)return ht;lu=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.shouldUseRule=ht.shouldUseGroup=ht.schemaHasRulesForType=void 0;function t({schema:n,self:s},i){const o=s.RULES.types[i];return o&&o!==!0&&e(n,o)}ht.schemaHasRulesForType=t;function e(n,s){return s.rules.some(i=>r(n,i))}ht.shouldUseGroup=e;function r(n,s){var i;return n[s.keyword]!==void 0||((i=s.definition.implements)===null||i===void 0?void 0:i.some(o=>n[o]!==void 0))}return ht.shouldUseRule=r,ht}var du;
562
+ function dn(){if(du)return Pe;du=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.reportTypeError=Pe.checkDataTypes=Pe.checkDataType=Pe.coerceAndCheckDataType=Pe.getJSONTypes=Pe.getSchemaTypes=Pe.DataType=void 0;const t=uu(),e=fu(),r=fn(),n=he(),s=_e();var i;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(i||(Pe.DataType=i={}));function o(p){const m=a(p.type);if(m.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!m.length&&
563
+ p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&m.push("null")}return m}Pe.getSchemaTypes=o;function a(p){const m=Array.isArray(p)?p:p?[p]:[];if(m.every(t.isJSONType))return m;throw new Error("type must be JSONType or JSONType[]: "+m.join(","))}Pe.getJSONTypes=a;function u(p,m){const{gen:$,data:v,opts:E}=p,S=c(m,E.coerceTypes),I=m.length>0&&!(S.length===0&&m.length===1&&(0,e.schemaHasRulesForType)(p,m[0]));if(I){const F=b(m,v,E.strictNumbers,i.Wrong);
564
+ $.if(F,()=>{S.length?d(p,m,S):f(p)})}return I}Pe.coerceAndCheckDataType=u;const l=new Set(["string","number","integer","boolean","null"]);function c(p,m){return m?p.filter($=>l.has($)||m==="array"&&$==="array"):[]}function d(p,m,$){const{gen:v,data:E,opts:S}=p,I=v.let("dataType",(0,n._)`typeof ${E}`),F=v.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&v.if((0,n._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>v.assign(E,(0,n._)`${E}[0]`).assign(I,(0,n._)`typeof ${E}`).
565
565
  if(b(m,E,S.strictNumbers),()=>v.assign(F,E))),v.if((0,n._)`${F} !== undefined`);for(const k of $)(l.has(k)||k==="array"&&S.coerceTypes==="array")&&B(k);v.else(),f(p),v.endIf(),v.if((0,n._)`${F} !== undefined`,()=>{v.assign(E,F),h(p,F)});function B(k){switch(k){case"string":v.elseIf((0,n._)`${I} == "number" || ${I} == "boolean"`).assign(F,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(F,(0,n._)`""`);return;case"number":v.elseIf((0,n._)`${I} == "boolean" || ${E} === null
566
566
  || (${I} == "string" && ${E} && ${E} == +${E})`).assign(F,(0,n._)`+${E}`);return;case"integer":v.elseIf((0,n._)`${I} === "boolean" || ${E} === null
567
567
  || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(F,(0,n._)`+${E}`);return;case"boolean":v.elseIf((0,n._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(F,!1).elseIf((0,n._)`${E} === "true" || ${E} === 1`).assign(F,!0);return;case"null":v.elseIf((0,n._)`${E} === "" || ${E} === 0 || ${E} === false`),v.assign(F,null);return;case"array":v.elseIf((0,n._)`${I} === "string" || ${I} === "number"
568
- || ${I} === "boolean" || ${E} === null`).assign(F,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:m,parentDataProperty:$},v){p.if((0,n._)`${m} !== undefined`,()=>p.assign((0,n._)`${m}[${$}]`,v))}function y(p,m,$,v=i.Correct){const E=v===i.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(p){case"null":return(0,n._)`${m} ${E} null`;case"array":S=(0,n._)`Array.isArray(${m})`;break;case"object":S=(0,n._)`${m} && typeof ${m} == "object" && !Array.isArray(${m})`;break;case"integer":S=
569
- I((0,n._)`!(${m} % 1) && !isNaN(${m})`);break;case"number":S=I();break;default:return(0,n._)`typeof ${m} ${E} ${p}`}return v===i.Correct?S:(0,n.not)(S);function I(F=n.nil){return(0,n.and)((0,n._)`typeof ${m} == "number"`,F,$?(0,n._)`isFinite(${m})`:n.nil)}}Pe.checkDataType=y;function b(p,m,$,v){if(p.length===1)return y(p[0],m,$,v);let E;const S=(0,s.toHash)(p);if(S.array&&S.object){const I=(0,n._)`typeof ${m} != "object"`;E=S.null?I:(0,n._)`!${m} || ${I}`,delete S.null,delete S.array,delete S.object}else
570
- E=n.nil;S.number&&delete S.integer;for(const I in S)E=(0,n.and)(E,y(I,m,$,v));return E}Pe.checkDataTypes=b;const _={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:m})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${m}}`};function f(p){const m=g(p);(0,r.reportError)(m,_)}Pe.reportTypeError=f;function g(p){const{gen:m,data:$,schema:v}=p,E=(0,s.schemaRefOrVal)(p,v,"type");return{gen:m,keyword:"type",data:$,schema:v.type,schemaCode:E,schemaValue:E,parentSchema:v,params:{},
571
- it:p}}return Pe}var Cr={},du;function Ug(){if(du)return Cr;du=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.assignDefaults=void 0;const t=he(),e=_e();function r(s,i){const{properties:o,items:a}=s.schema;if(i==="object"&&o)for(const c in o)n(s,c,o[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,l)=>n(s,l,c.default))}Cr.assignDefaults=r;function n(s,i,o){const{gen:a,compositeRule:c,data:l,opts:u}=s;if(o===void 0)return;const d=(0,t._)`${l}${(0,t.getProperty)(i)}`;if(c){(0,e.checkStrictMode)(
572
- s,`default is ignored for: ${d}`);return}let h=(0,t._)`${d} === undefined`;u.useDefaults==="empty"&&(h=(0,t._)`${h} || ${d} === null || ${d} === ""`),a.if(h,(0,t._)`${d} = ${(0,t.stringify)(o)}`)}return Cr}var Je={},ve={},hu;function Qe(){if(hu)return ve;hu=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.validateUnion=ve.validateArray=ve.usePattern=ve.callValidateCode=ve.schemaProperties=ve.allSchemaProperties=ve.noPropertyInData=ve.propertyInData=ve.isOwnProperty=ve.hasPropFunc=ve.reportMissingProp=
573
- ve.checkMissingProp=ve.checkReportMissingProp=void 0;const t=he(),e=_e(),r=Xe(),n=_e();function s(p,m){const{gen:$,data:v,it:E}=p;$.if(u($,v,m,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,t._)`${m}`},!0),p.error()})}ve.checkReportMissingProp=s;function i({gen:p,data:m,it:{opts:$}},v,E){return(0,t.or)(...v.map(S=>(0,t.and)(u(p,m,S,$.ownProperties),(0,t._)`${E} = ${S}`)))}ve.checkMissingProp=i;function o(p,m){p.setParams({missingProperty:m},!0),p.error()}ve.reportMissingProp=o;function a(p){
574
- return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}ve.hasPropFunc=a;function c(p,m,$){return(0,t._)`${a(p)}.call(${m}, ${$})`}ve.isOwnProperty=c;function l(p,m,$,v){const E=(0,t._)`${m}${(0,t.getProperty)($)} !== undefined`;return v?(0,t._)`${E} && ${c(p,m,$)}`:E}ve.propertyInData=l;function u(p,m,$,v){const E=(0,t._)`${m}${(0,t.getProperty)($)} === undefined`;return v?(0,t.or)(E,(0,t.not)(c(p,m,$))):E}ve.noPropertyInData=u;function d(p){
575
- return p?Object.keys(p).filter(m=>m!=="__proto__"):[]}ve.allSchemaProperties=d;function h(p,m){return d(m).filter($=>!(0,e.alwaysValidSchema)(p,m[$]))}ve.schemaProperties=h;function y({schemaCode:p,data:m,it:{gen:$,topSchemaRef:v,schemaPath:E,errorPath:S},it:I},F,B,k){const M=k?(0,t._)`${p}, ${m}, ${v}${E}`:m,j=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,S)],[r.default.parentData,I.parentData],[r.default.parentDataProperty,I.parentDataProperty],[r.default.rootData,r.default.rootData]];
576
- I.opts.dynamicRef&&j.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const D=(0,t._)`${M}, ${$.object(...j)}`;return B!==t.nil?(0,t._)`${F}.call(${B}, ${D})`:(0,t._)`${F}(${D})`}ve.callValidateCode=y;const b=(0,t._)`new RegExp`;function _({gen:p,it:{opts:m}},$){const v=m.unicodeRegExp?"u":"",{regExp:E}=m.code,S=E($,v);return p.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,t._)`${E.code==="new RegExp"?b:(0,n.useFunc)(p,E)}(${$}, ${v})`})}ve.usePattern=_;function f(p){const{gen:m,
568
+ || ${I} === "boolean" || ${E} === null`).assign(F,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:m,parentDataProperty:$},v){p.if((0,n._)`${m} !== undefined`,()=>p.assign((0,n._)`${m}[${$}]`,v))}function _(p,m,$,v=i.Correct){const E=v===i.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(p){case"null":return(0,n._)`${m} ${E} null`;case"array":S=(0,n._)`Array.isArray(${m})`;break;case"object":S=(0,n._)`${m} && typeof ${m} == "object" && !Array.isArray(${m})`;break;case"integer":S=
569
+ I((0,n._)`!(${m} % 1) && !isNaN(${m})`);break;case"number":S=I();break;default:return(0,n._)`typeof ${m} ${E} ${p}`}return v===i.Correct?S:(0,n.not)(S);function I(F=n.nil){return(0,n.and)((0,n._)`typeof ${m} == "number"`,F,$?(0,n._)`isFinite(${m})`:n.nil)}}Pe.checkDataType=_;function b(p,m,$,v){if(p.length===1)return _(p[0],m,$,v);let E;const S=(0,s.toHash)(p);if(S.array&&S.object){const I=(0,n._)`typeof ${m} != "object"`;E=S.null?I:(0,n._)`!${m} || ${I}`,delete S.null,delete S.array,delete S.object}else
570
+ E=n.nil;S.number&&delete S.integer;for(const I in S)E=(0,n.and)(E,_(I,m,$,v));return E}Pe.checkDataTypes=b;const y={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:m})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${m}}`};function f(p){const m=g(p);(0,r.reportError)(m,y)}Pe.reportTypeError=f;function g(p){const{gen:m,data:$,schema:v}=p,E=(0,s.schemaRefOrVal)(p,v,"type");return{gen:m,keyword:"type",data:$,schema:v.type,schemaCode:E,schemaValue:E,parentSchema:v,params:{},
571
+ it:p}}return Pe}var Cr={},hu;function zg(){if(hu)return Cr;hu=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.assignDefaults=void 0;const t=he(),e=_e();function r(s,i){const{properties:o,items:a}=s.schema;if(i==="object"&&o)for(const u in o)n(s,u,o[u].default);else i==="array"&&Array.isArray(a)&&a.forEach((u,l)=>n(s,l,u.default))}Cr.assignDefaults=r;function n(s,i,o){const{gen:a,compositeRule:u,data:l,opts:c}=s;if(o===void 0)return;const d=(0,t._)`${l}${(0,t.getProperty)(i)}`;if(u){(0,e.checkStrictMode)(
572
+ s,`default is ignored for: ${d}`);return}let h=(0,t._)`${d} === undefined`;c.useDefaults==="empty"&&(h=(0,t._)`${h} || ${d} === null || ${d} === ""`),a.if(h,(0,t._)`${d} = ${(0,t.stringify)(o)}`)}return Cr}var Je={},ve={},pu;function Qe(){if(pu)return ve;pu=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.validateUnion=ve.validateArray=ve.usePattern=ve.callValidateCode=ve.schemaProperties=ve.allSchemaProperties=ve.noPropertyInData=ve.propertyInData=ve.isOwnProperty=ve.hasPropFunc=ve.reportMissingProp=
573
+ ve.checkMissingProp=ve.checkReportMissingProp=void 0;const t=he(),e=_e(),r=Xe(),n=_e();function s(p,m){const{gen:$,data:v,it:E}=p;$.if(c($,v,m,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,t._)`${m}`},!0),p.error()})}ve.checkReportMissingProp=s;function i({gen:p,data:m,it:{opts:$}},v,E){return(0,t.or)(...v.map(S=>(0,t.and)(c(p,m,S,$.ownProperties),(0,t._)`${E} = ${S}`)))}ve.checkMissingProp=i;function o(p,m){p.setParams({missingProperty:m},!0),p.error()}ve.reportMissingProp=o;function a(p){
574
+ return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}ve.hasPropFunc=a;function u(p,m,$){return(0,t._)`${a(p)}.call(${m}, ${$})`}ve.isOwnProperty=u;function l(p,m,$,v){const E=(0,t._)`${m}${(0,t.getProperty)($)} !== undefined`;return v?(0,t._)`${E} && ${u(p,m,$)}`:E}ve.propertyInData=l;function c(p,m,$,v){const E=(0,t._)`${m}${(0,t.getProperty)($)} === undefined`;return v?(0,t.or)(E,(0,t.not)(u(p,m,$))):E}ve.noPropertyInData=c;function d(p){
575
+ return p?Object.keys(p).filter(m=>m!=="__proto__"):[]}ve.allSchemaProperties=d;function h(p,m){return d(m).filter($=>!(0,e.alwaysValidSchema)(p,m[$]))}ve.schemaProperties=h;function _({schemaCode:p,data:m,it:{gen:$,topSchemaRef:v,schemaPath:E,errorPath:S},it:I},F,B,k){const M=k?(0,t._)`${p}, ${m}, ${v}${E}`:m,j=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,S)],[r.default.parentData,I.parentData],[r.default.parentDataProperty,I.parentDataProperty],[r.default.rootData,r.default.rootData]];
576
+ I.opts.dynamicRef&&j.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const D=(0,t._)`${M}, ${$.object(...j)}`;return B!==t.nil?(0,t._)`${F}.call(${B}, ${D})`:(0,t._)`${F}(${D})`}ve.callValidateCode=_;const b=(0,t._)`new RegExp`;function y({gen:p,it:{opts:m}},$){const v=m.unicodeRegExp?"u":"",{regExp:E}=m.code,S=E($,v);return p.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,t._)`${E.code==="new RegExp"?b:(0,n.useFunc)(p,E)}(${$}, ${v})`})}ve.usePattern=y;function f(p){const{gen:m,
577
577
  data:$,keyword:v,it:E}=p,S=m.name("valid");if(E.allErrors){const F=m.let("valid",!0);return I(()=>m.assign(F,!1)),F}return m.var(S,!0),I(()=>m.break()),S;function I(F){const B=m.const("len",(0,t._)`${$}.length`);m.forRange("i",0,B,k=>{p.subschema({keyword:v,dataProp:k,dataPropType:e.Type.Num},S),m.if((0,t.not)(S),F)})}}ve.validateArray=f;function g(p){const{gen:m,schema:$,keyword:v,it:E}=p;if(!Array.isArray($))throw new Error("ajv implementation error");if($.some(B=>(0,e.alwaysValidSchema)(E,B))&&
578
- !E.opts.unevaluated)return;const I=m.let("valid",!1),F=m.name("_valid");m.block(()=>$.forEach((B,k)=>{const M=p.subschema({keyword:v,schemaProp:k,compositeRule:!0},F);m.assign(I,(0,t._)`${I} || ${F}`),p.mergeValidEvaluated(M,F)||m.if((0,t.not)(I))})),p.result(I,()=>p.reset(),()=>p.error(!0))}return ve.validateUnion=g,ve}var pu;function Fg(){if(pu)return Je;pu=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.validateKeywordUsage=Je.validSchemaType=Je.funcKeywordCode=Je.macroKeywordCode=void 0;
579
- const t=he(),e=Xe(),r=Qe(),n=ln();function s(h,y){const{gen:b,keyword:_,schema:f,parentSchema:g,it:p}=h,m=y.macro.call(p.self,f,g,p),$=l(b,_,m);p.opts.validateSchema!==!1&&p.self.validateSchema(m,!0);const v=b.name("valid");h.subschema({schema:m,schemaPath:t.nil,errSchemaPath:`${p.errSchemaPath}/${_}`,topSchemaRef:$,compositeRule:!0},v),h.pass(v,()=>h.error(!0))}Je.macroKeywordCode=s;function i(h,y){var b;const{gen:_,keyword:f,schema:g,parentSchema:p,$data:m,it:$}=h;c($,y);const v=!m&&y.compile?
580
- y.compile.call($.self,g,p,$):y.validate,E=l(_,f,v),S=_.let("valid");h.block$data(S,I),h.ok((b=y.valid)!==null&&b!==void 0?b:S);function I(){if(y.errors===!1)k(),y.modifying&&o(h),M(()=>h.error());else{const j=y.async?F():B();y.modifying&&o(h),M(()=>a(h,j))}}function F(){const j=_.let("ruleErrs",null);return _.try(()=>k((0,t._)`await `),D=>_.assign(S,!1).if((0,t._)`${D} instanceof ${$.ValidationError}`,()=>_.assign(j,(0,t._)`${D}.errors`),()=>_.throw(D))),j}function B(){const j=(0,t._)`${E}.errors`;
581
- return _.assign(j,null),k(t.nil),j}function k(j=y.async?(0,t._)`await `:t.nil){const D=$.opts.passContext?e.default.this:e.default.self,H=!("compile"in y&&!m||y.schema===!1);_.assign(S,(0,t._)`${j}${(0,r.callValidateCode)(h,E,D,H)}`,y.modifying)}function M(j){var D;_.if((0,t.not)((D=y.valid)!==null&&D!==void 0?D:S),j)}}Je.funcKeywordCode=i;function o(h){const{gen:y,data:b,it:_}=h;y.if(_.parentData,()=>y.assign(b,(0,t._)`${_.parentData}[${_.parentDataProperty}]`))}function a(h,y){const{gen:b}=h;b.
582
- if((0,t._)`Array.isArray(${y})`,()=>{b.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${y} : ${e.default.vErrors}.concat(${y})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function l(h,y,b){if(b===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,t.
583
- stringify)(b)})}function u(h,y,b=!1){return!y.length||y.some(_=>_==="array"?Array.isArray(h):_==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==_||b&&typeof h>"u")}Je.validSchemaType=u;function d({schema:h,opts:y,self:b,errSchemaPath:_},f,g){if(Array.isArray(f.keyword)?!f.keyword.includes(g):f.keyword!==g)throw new Error("ajv implementation error");const p=f.dependencies;if(p?.some(m=>!Object.prototype.hasOwnProperty.call(h,m)))throw new Error(`parent schema must have dependencies o\
584
- f ${g}: ${p.join(",")}`);if(f.validateSchema&&!f.validateSchema(h[g])){const $=`keyword "${g}" value is invalid at path "${_}": `+b.errorsText(f.validateSchema.errors);if(y.validateSchema==="log")b.logger.error($);else throw new Error($)}}return Je.validateKeywordUsage=d,Je}var pt={},mu;function Vg(){if(mu)return pt;mu=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.extendSubschemaMode=pt.extendSubschemaData=pt.getSubschema=void 0;const t=he(),e=_e();function r(i,{keyword:o,schemaProp:a,schema:c,
585
- schemaPath:l,errSchemaPath:u,topSchemaRef:d}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const h=i.schema[o];return a===void 0?{schema:h,schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${i.errSchemaPath}/${o}`}:{schema:h[a],schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(c!==void 0){if(l===void 0||
586
- u===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:d,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}pt.getSubschema=r;function n(i,o,{dataProp:a,dataPropType:c,data:l,dataTypes:u,propertyName:d}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=o;if(a!==void 0){const{errorPath:b,dataPathArr:_,opts:f}=o,
587
- g=h.let("data",(0,t._)`${o.data}${(0,t.getProperty)(a)}`,!0);y(g),i.errorPath=(0,t.str)`${b}${(0,e.getErrorPath)(a,c,f.jsPropertySyntax)}`,i.parentDataProperty=(0,t._)`${a}`,i.dataPathArr=[..._,i.parentDataProperty]}if(l!==void 0){const b=l instanceof t.Name?l:h.let("data",l,!0);y(b),d!==void 0&&(i.propertyName=d)}u&&(i.dataTypes=u);function y(b){i.data=b,i.dataLevel=o.dataLevel+1,i.dataTypes=[],o.definedProperties=new Set,i.parentData=o.data,i.dataNames=[...o.dataNames,b]}}pt.extendSubschemaData=
588
- n;function s(i,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(i.compositeRule=c),l!==void 0&&(i.createErrors=l),u!==void 0&&(i.allErrors=u),i.jtdDiscriminator=o,i.jtdMetadata=a}return pt.extendSubschemaMode=s,pt}var je={},Ui,gu;function yu(){return gu||(gu=1,Ui=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=
589
- n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!==0;){var o=i[s];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),Ui}var Fi={
590
- exports:{}},_u;function zg(){if(_u)return Fi.exports;_u=1;var t=Fi.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),i=s.cb||i;var o=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};e(s,o,a,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords=
591
- {default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(n,s,i,o,a,c,l,u,d,h){if(o&&typeof o=="object"&&!Array.isArray(o)){s(o,a,c,l,u,d,h);for(var y in o){var b=o[y];if(Array.isArray(b)){if(y in t.arrayKeywords)for(var _=0;_<b.length;_++)e(n,s,i,b[_],a+"/"+y+"/"+_,c,a,y,o,_)}else if(y in t.propsKeywords){if(b&&
592
- typeof b=="object")for(var f in b)e(n,s,i,b[f],a+"/"+y+"/"+r(f),c,a,y,o,f)}else(y in t.keywords||n.allKeys&&!(y in t.skipKeywords))&&e(n,s,i,b,a+"/"+y,c,a,y,o)}i(o,a,c,l,u,d,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Fi.exports}var $u;function dn(){if($u)return je;$u=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const t=_e(),e=yu(),r=zg(),n=new Set(["type","format",
593
- "pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(_,f=!0){return typeof _=="boolean"?!0:f===!0?!o(_):f?a(_)<=f:!1}je.inlineRef=s;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(_){for(const f in _){if(i.has(f))return!0;const g=_[f];if(Array.isArray(g)&&g.some(o)||typeof g=="object"&&o(g))return!0}return!1}function a(_){
594
- let f=0;for(const g in _){if(g==="$ref")return 1/0;if(f++,!n.has(g)&&(typeof _[g]=="object"&&(0,t.eachItem)(_[g],p=>f+=a(p)),f===1/0))return 1/0}return f}function c(_,f="",g){g!==!1&&(f=d(f));const p=_.parse(f);return l(_,p)}je.getFullPath=c;function l(_,f){return _.serialize(f).split("#")[0]+"#"}je._getFullPath=l;const u=/#\/?$/;function d(_){return _?_.replace(u,""):""}je.normalizeId=d;function h(_,f,g){return g=d(g),_.resolve(f,g)}je.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function b(_,f){
595
- if(typeof _=="boolean")return{};const{schemaId:g,uriResolver:p}=this.opts,m=d(_[g]||f),$={"":m},v=c(p,m,!1),E={},S=new Set;return r(_,{allKeys:!0},(B,k,M,j)=>{if(j===void 0)return;const D=v+k;let H=$[j];typeof B[g]=="string"&&(H=K.call(this,B[g])),G.call(this,B.$anchor),G.call(this,B.$dynamicAnchor),$[k]=H;function K(X){const se=this.opts.uriResolver.resolve;if(X=d(H?se(H,X):X),S.has(X))throw F(X);S.add(X);let U=this.refs[X];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?I(B,U.schema,
596
- X):X!==d(D)&&(X[0]==="#"?(I(B,E[X],X),E[X]=B):this.refs[X]=D),X}function G(X){if(typeof X=="string"){if(!y.test(X))throw new Error(`invalid anchor "${X}"`);K.call(this,`#${X}`)}}}),E;function I(B,k,M){if(k!==void 0&&!e(B,k))throw F(M)}function F(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return je.getSchemaRefs=b,je}var vu;function Pr(){if(vu)return dt;vu=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.getData=dt.KeywordCxt=dt.validateFunctionCode=void 0;const t=Hg(),
597
- e=fn(),r=lu(),n=fn(),s=Ug(),i=Fg(),o=Vg(),a=he(),c=Xe(),l=dn(),u=_e(),d=ln();function h(L){if(v(L)&&(S(L),$(L))){f(L);return}y(L,()=>(0,t.topBoolOrEmptySchema)(L))}dt.validateFunctionCode=h;function y({gen:L,validateName:q,schema:J,schemaEnv:ne,opts:P},N){P.code.es5?L.func(q,(0,a._)`${c.default.data}, ${c.default.valCxt}`,ne.$async,()=>{L.code((0,a._)`"use strict"; ${p(J,P)}`),_(L,P),L.code(N)}):L.func(q,(0,a._)`${c.default.data}, ${b(P)}`,ne.$async,()=>L.code(p(J,P)).code(N))}function b(L){return(0,a.
598
- _)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${L.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function _(L,q){L.if(c.default.valCxt,()=>{L.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),L.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),L.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),
599
- L.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),q.dynamicRef&&L.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{L.var(c.default.instancePath,(0,a._)`""`),L.var(c.default.parentData,(0,a._)`undefined`),L.var(c.default.parentDataProperty,(0,a._)`undefined`),L.var(c.default.rootData,c.default.data),q.dynamicRef&&L.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function f(L){const{schema:q,opts:J,gen:ne}=L;y(L,()=>{J.$comment&&q.
600
- $comment&&j(L),B(L),ne.let(c.default.vErrors,null),ne.let(c.default.errors,0),J.unevaluated&&g(L),I(L),D(L)})}function g(L){const{gen:q,validateName:J}=L;L.evaluated=q.const("evaluated",(0,a._)`${J}.evaluated`),q.if((0,a._)`${L.evaluated}.dynamicProps`,()=>q.assign((0,a._)`${L.evaluated}.props`,(0,a._)`undefined`)),q.if((0,a._)`${L.evaluated}.dynamicItems`,()=>q.assign((0,a._)`${L.evaluated}.items`,(0,a._)`undefined`))}function p(L,q){const J=typeof L=="object"&&L[q.schemaId];return J&&(q.code.source||
601
- q.code.process)?(0,a._)`/*# sourceURL=${J} */`:a.nil}function m(L,q){if(v(L)&&(S(L),$(L))){E(L,q);return}(0,t.boolOrEmptySchema)(L,q)}function $({schema:L,self:q}){if(typeof L=="boolean")return!L;for(const J in L)if(q.RULES.all[J])return!0;return!1}function v(L){return typeof L.schema!="boolean"}function E(L,q){const{schema:J,gen:ne,opts:P}=L;P.$comment&&J.$comment&&j(L),k(L),M(L);const N=ne.const("_errs",c.default.errors);I(L,N),ne.var(q,(0,a._)`${N} === ${c.default.errors}`)}function S(L){(0,u.
602
- checkUnknownRules)(L),F(L)}function I(L,q){if(L.opts.jtd)return K(L,[],!1,q);const J=(0,e.getSchemaTypes)(L.schema),ne=(0,e.coerceAndCheckDataType)(L,J);K(L,J,!ne,q)}function F(L){const{schema:q,errSchemaPath:J,opts:ne,self:P}=L;q.$ref&&ne.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(q,P.RULES)&&P.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function B(L){const{schema:q,opts:J}=L;q.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,u.checkStrictMode)(L,"default is ignored\
603
- in the schema root")}function k(L){const q=L.schema[L.opts.schemaId];q&&(L.baseId=(0,l.resolveUrl)(L.opts.uriResolver,L.baseId,q))}function M(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function j({gen:L,schemaEnv:q,schema:J,errSchemaPath:ne,opts:P}){const N=J.$comment;if(P.$comment===!0)L.code((0,a._)`${c.default.self}.logger.log(${N})`);else if(typeof P.$comment=="function"){const Z=(0,a.str)`${ne}/$comment`,W=L.scopeValue("root",{ref:q.root});L.code(
604
- (0,a._)`${c.default.self}.opts.$comment(${N}, ${Z}, ${W}.schema)`)}}function D(L){const{gen:q,schemaEnv:J,validateName:ne,ValidationError:P,opts:N}=L;J.$async?q.if((0,a._)`${c.default.errors} === 0`,()=>q.return(c.default.data),()=>q.throw((0,a._)`new ${P}(${c.default.vErrors})`)):(q.assign((0,a._)`${ne}.errors`,c.default.vErrors),N.unevaluated&&H(L),q.return((0,a._)`${c.default.errors} === 0`))}function H({gen:L,evaluated:q,props:J,items:ne}){J instanceof a.Name&&L.assign((0,a._)`${q}.props`,J),
605
- ne instanceof a.Name&&L.assign((0,a._)`${q}.items`,ne)}function K(L,q,J,ne){const{gen:P,schema:N,data:Z,allErrors:W,opts:T,self:te}=L,{RULES:z}=te;if(N.$ref&&(T.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(N,z))){P.block(()=>Y(L,"$ref",z.all.$ref.definition));return}T.jtd||X(L,q),P.block(()=>{for(const le of z.rules)re(le);re(z.post)});function re(le){(0,r.shouldUseGroup)(N,le)&&(le.type?(P.if((0,n.checkDataType)(le.type,Z,T.strictNumbers)),G(L,le),q.length===1&&q[0]===le.type&&J&&(P.else(),
606
- (0,n.reportTypeError)(L)),P.endIf()):G(L,le),W||P.if((0,a._)`${c.default.errors} === ${ne||0}`))}}function G(L,q){const{gen:J,schema:ne,opts:{useDefaults:P}}=L;P&&(0,s.assignDefaults)(L,q.type),J.block(()=>{for(const N of q.rules)(0,r.shouldUseRule)(ne,N)&&Y(L,N.keyword,N.definition,q.type)})}function X(L,q){L.schemaEnv.meta||!L.opts.strictTypes||(se(L,q),L.opts.allowUnionTypes||U(L,q),A(L,L.dataTypes))}function se(L,q){if(q.length){if(!L.dataTypes.length){L.dataTypes=q;return}q.forEach(J=>{x(L.
607
- dataTypes,J)||R(L,`type "${J}" not allowed by context "${L.dataTypes.join(",")}"`)}),w(L,q)}}function U(L,q){q.length>1&&!(q.length===2&&q.includes("null"))&&R(L,"use allowUnionTypes to allow union type keyword")}function A(L,q){const J=L.self.RULES.all;for(const ne in J){const P=J[ne];if(typeof P=="object"&&(0,r.shouldUseRule)(L.schema,P)){const{type:N}=P.definition;N.length&&!N.some(Z=>V(q,Z))&&R(L,`missing type "${N.join(",")}" for keyword "${ne}"`)}}}function V(L,q){return L.includes(q)||q===
608
- "number"&&L.includes("integer")}function x(L,q){return L.includes(q)||q==="integer"&&L.includes("number")}function w(L,q){const J=[];for(const ne of L.dataTypes)x(q,ne)?J.push(ne):q.includes("integer")&&ne==="number"&&J.push("integer");L.dataTypes=J}function R(L,q){const J=L.schemaEnv.baseId+L.errSchemaPath;q+=` at "${J}" (strictTypes)`,(0,u.checkStrictMode)(L,q,L.opts.strictTypes)}class C{constructor(q,J,ne){if((0,i.validateKeywordUsage)(q,J,ne),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=
609
- ne,this.data=q.data,this.schema=q.schema[ne],this.$data=J.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(q,this.schema,ne,this.$data),this.schemaType=J.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=J,this.$data)this.schemaCode=q.gen.const("vSchema",oe(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${ne} value must be ${JSON.stringify(J.schemaType)}`);
610
- ("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=q.gen.const("_errs",c.default.errors))}result(q,J,ne){this.failResult((0,a.not)(q),J,ne)}failResult(q,J,ne){this.gen.if(q),ne?ne():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,J){this.failResult((0,a.not)(q),void 0,J)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.
611
- else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:J}=this;this.fail((0,a._)`${J} !== undefined && (${(0,a.or)(this.invalid$data(),q)})`)}error(q,J,ne){if(J){this.setParams(J),this._error(q,ne),this.setParams({});return}this._error(q,ne)}_error(q,J){(q?d.reportExtraError:d.reportError)(this,this.def.error,J)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');
612
- (0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,J){J?Object.assign(this.params,q):this.params=q}block$data(q,J,ne=a.nil){this.gen.block(()=>{this.check$data(q,ne),J()})}check$data(q=a.nil,J=a.nil){if(!this.$data)return;const{gen:ne,schemaCode:P,schemaType:N,def:Z}=this;ne.if((0,a.or)((0,a._)`${P} === undefined`,J)),q!==a.nil&&ne.assign(q,!0),(N.length||Z.validateSchema)&&(ne.elseIf(this.invalid$data()),this.$dataError(),q!==a.nil&&ne.assign(q,!1)),
613
- ne.else()}invalid$data(){const{gen:q,schemaCode:J,schemaType:ne,def:P,it:N}=this;return(0,a.or)(Z(),W());function Z(){if(ne.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");const T=Array.isArray(ne)?ne:[ne];return(0,a._)`${(0,n.checkDataTypes)(T,J,N.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function W(){if(P.validateSchema){const T=q.scopeValue("validate$data",{ref:P.validateSchema});return(0,a._)`!${T}(${J})`}return a.nil}}subschema(q,J){const ne=(0,o.getSubschema)(
614
- this.it,q);(0,o.extendSubschemaData)(ne,this.it,q),(0,o.extendSubschemaMode)(ne,q);const P={...this.it,...ne,items:void 0,props:void 0};return m(P,J),P}mergeEvaluated(q,J){const{it:ne,gen:P}=this;ne.opts.unevaluated&&(ne.props!==!0&&q.props!==void 0&&(ne.props=u.mergeEvaluated.props(P,q.props,ne.props,J)),ne.items!==!0&&q.items!==void 0&&(ne.items=u.mergeEvaluated.items(P,q.items,ne.items,J)))}mergeValidEvaluated(q,J){const{it:ne,gen:P}=this;if(ne.opts.unevaluated&&(ne.props!==!0||ne.items!==!0))
615
- return P.if(J,()=>this.mergeEvaluated(q,a.Name)),!0}}dt.KeywordCxt=C;function Y(L,q,J,ne){const P=new C(L,J,q);"code"in J?J.code(P,ne):P.$data&&J.validate?(0,i.funcKeywordCode)(P,J):"macro"in J?(0,i.macroKeywordCode)(P,J):(J.compile||J.validate)&&(0,i.funcKeywordCode)(P,J)}const Q=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(L,{dataLevel:q,dataNames:J,dataPathArr:ne}){let P,N;if(L==="")return c.default.rootData;if(L[0]==="/"){if(!Q.test(L))throw new Error(`Invalid JSON\
616
- -pointer: ${L}`);P=L,N=c.default.rootData}else{const te=ie.exec(L);if(!te)throw new Error(`Invalid JSON-pointer: ${L}`);const z=+te[1];if(P=te[2],P==="#"){if(z>=q)throw new Error(T("property/index",z));return ne[q-z]}if(z>q)throw new Error(T("data",z));if(N=J[q-z],!P)return N}let Z=N;const W=P.split("/");for(const te of W)te&&(N=(0,a._)`${N}${(0,a.getProperty)((0,u.unescapeJsonPointer)(te))}`,Z=(0,a._)`${Z} && ${N}`);return Z;function T(te,z){return`Cannot access ${te} ${z} levels up, current le\
617
- vel is ${q}`}}return dt.getData=oe,dt}var hn={},bu;function pn(){if(bu)return hn;bu=1,Object.defineProperty(hn,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return hn.default=t,hn}var mn={},wu;function Ir(){if(wu)return mn;wu=1,Object.defineProperty(mn,"__esModule",{value:!0});const t=dn();class e extends Error{constructor(n,s,i,o){super(o||`can't resolve reference ${i} from id ${s}`),this.missingRef=(0,t.resolveUrl)(
618
- n,s,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return mn.default=e,mn}var He={},Eu;function gn(){if(Eu)return He;Eu=1,Object.defineProperty(He,"__esModule",{value:!0}),He.resolveSchema=He.getCompilingSchema=He.resolveRef=He.compileSchema=He.SchemaEnv=void 0;const t=he(),e=pn(),r=Xe(),n=dn(),s=_e(),i=Pr();class o{constructor(g){var p;this.refs={},this.dynamicAnchors={};let m;typeof g.schema=="object"&&(m=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.
619
- root=g.root||this,this.baseId=(p=g.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(m?.[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=m?.$async,this.refs={}}}He.SchemaEnv=o;function a(f){const g=u.call(this,f);if(g)return g;const p=(0,n.getFullPath)(this.opts.uriResolver,f.root.baseId),{es5:m,lines:$}=this.opts.code,{ownProperties:v}=this.opts,E=new t.CodeGen(this.scope,{es5:m,lines:$,ownProperties:v});let S;f.$async&&(S=E.scopeValue("Erro\
620
- r",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const I=E.scopeName("validate");f.validateName=I;const F={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:f.schema,code:(0,t.stringify)(f.schema)}:{ref:f.schema}),
621
- validateName:I,ValidationError:S,schema:f.schema,schemaEnv:f,rootId:p,baseId:f.baseId||p,schemaPath:t.nil,errSchemaPath:f.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let B;try{this._compilations.add(f),(0,i.validateFunctionCode)(F),E.optimize(this.opts.code.optimize);const k=E.toString();B=`${E.scopeRefs(r.default.scope)}return ${k}`,this.opts.code.process&&(B=this.opts.code.process(B,f));const j=new Function(`${r.default.self}`,`${r.default.scope}`,B)(this,
622
- this.scope.get());if(this.scope.value(I,{ref:j}),j.errors=null,j.schema=f.schema,j.schemaEnv=f,f.$async&&(j.$async=!0),this.opts.code.source===!0&&(j.source={validateName:I,validateCode:k,scopeValues:E._values}),this.opts.unevaluated){const{props:D,items:H}=F;j.evaluated={props:D instanceof t.Name?void 0:D,items:H instanceof t.Name?void 0:H,dynamicProps:D instanceof t.Name,dynamicItems:H instanceof t.Name},j.source&&(j.source.evaluated=(0,t.stringify)(j.evaluated))}return f.validate=j,f}catch(k){
623
- throw delete f.validate,delete f.validateName,B&&this.logger.error("Error compiling schema, function code:",B),k}finally{this._compilations.delete(f)}}He.compileSchema=a;function c(f,g,p){var m;p=(0,n.resolveUrl)(this.opts.uriResolver,g,p);const $=f.refs[p];if($)return $;let v=h.call(this,f,p);if(v===void 0){const E=(m=f.localRefs)===null||m===void 0?void 0:m[p],{schemaId:S}=this.opts;E&&(v=new o({schema:E,schemaId:S,root:f,baseId:g}))}if(v!==void 0)return f.refs[p]=l.call(this,v)}He.resolveRef=
624
- c;function l(f){return(0,n.inlineRef)(f.schema,this.opts.inlineRefs)?f.schema:f.validate?f:a.call(this,f)}function u(f){for(const g of this._compilations)if(d(g,f))return g}He.getCompilingSchema=u;function d(f,g){return f.schema===g.schema&&f.root===g.root&&f.baseId===g.baseId}function h(f,g){let p;for(;typeof(p=this.refs[g])=="string";)g=p;return p||this.schemas[g]||y.call(this,f,g)}function y(f,g){const p=this.opts.uriResolver.parse(g),m=(0,n._getFullPath)(this.opts.uriResolver,p);let $=(0,n.getFullPath)(
625
- this.opts.uriResolver,f.baseId,void 0);if(Object.keys(f.schema).length>0&&m===$)return _.call(this,p,f);const v=(0,n.normalizeId)(m),E=this.refs[v]||this.schemas[v];if(typeof E=="string"){const S=y.call(this,f,E);return typeof S?.schema!="object"?void 0:_.call(this,p,S)}if(typeof E?.schema=="object"){if(E.validate||a.call(this,E),v===(0,n.normalizeId)(g)){const{schema:S}=E,{schemaId:I}=this.opts,F=S[I];return F&&($=(0,n.resolveUrl)(this.opts.uriResolver,$,F)),new o({schema:S,schemaId:I,root:f,baseId:$})}
626
- return _.call(this,p,E)}}He.resolveSchema=y;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _(f,{baseId:g,schema:p,root:m}){var $;if((($=f.fragment)===null||$===void 0?void 0:$[0])!=="/")return;for(const S of f.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const I=p[(0,s.unescapeFragment)(S)];if(I===void 0)return;p=I;const F=typeof p=="object"&&p[this.opts.schemaId];!b.has(S)&&F&&(g=(0,n.resolveUrl)(this.opts.uriResolver,g,F))}let v;
627
- if(typeof p!="boolean"&&p.$ref&&!(0,s.schemaHasRulesButRef)(p,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,g,p.$ref);v=y.call(this,m,S)}const{schemaId:E}=this.opts;if(v=v||new o({schema:p,schemaId:E,root:m,baseId:g}),v.schema!==v.root.schema)return v}return He}const Su="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ru="Meta-schema for $data reference (JSON AnySchema extension proposal)",Au="object",Ou=["$data"],Cu={$data:{type:"string",anyOf:[{format:"\
628
- relative-json-pointer"},{format:"json-pointer"}]}},Pu=!1,Gg={$id:Su,description:Ru,type:Au,required:Ou,properties:Cu,additionalProperties:Pu},Bg={__proto__:null,$id:Su,additionalProperties:Pu,default:Gg,description:Ru,properties:Cu,required:Ou,type:Au},Wg=nt(Bg);var yn={},Tr={exports:{}},Vi,Iu;function Kg(){return Iu||(Iu=1,Vi={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),Vi}var zi,Tu;function Yg(){if(Tu)return zi;Tu=1;const{HEX:t}=Kg(),
629
- e=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(_){if(a(_,".")<3)return{host:_,isIPV4:!1};const f=_.match(e)||[],[g]=f;return g?{host:o(g,"."),isIPV4:!0}:{host:_,isIPV4:!1}}function n(_,f=!1){let g="",p=!0;for(const m of _){if(t[m]===void 0)return;m!=="0"&&p===!0&&(p=!1),p||(g+=m)}return f&&g.length===0&&(g="0"),g}function s(_){let f=0;const g={error:!1,address:"",zone:""},p=[],m=[];let $=!1,v=!1,E=!1;function S(){if(m.length){if($===!1){const I=n(
630
- m);if(I!==void 0)p.push(I);else return g.error=!0,!1}m.length=0}return!0}for(let I=0;I<_.length;I++){const F=_[I];if(!(F==="["||F==="]"))if(F===":"){if(v===!0&&(E=!0),!S())break;if(f++,p.push(":"),f>7){g.error=!0;break}I-1>=0&&_[I-1]===":"&&(v=!0);continue}else if(F==="%"){if(!S())break;$=!0}else{m.push(F);continue}}return m.length&&($?g.zone=m.join(""):E?p.push(m.join("")):p.push(n(m))),g.address=p.join(""),g}function i(_){if(a(_,":")<2)return{host:_,isIPV6:!1};const f=s(_);if(f.error)return{host:_,
631
- isIPV6:!1};{let g=f.address,p=f.address;return f.zone&&(g+="%"+f.zone,p+="%25"+f.zone),{host:g,escapedHost:p,isIPV6:!0}}}function o(_,f){let g="",p=!0;const m=_.length;for(let $=0;$<m;$++){const v=_[$];v==="0"&&p?($+1<=m&&_[$+1]===f||$+1===m)&&(g+=v,p=!1):(v===f?p=!0:p=!1,g+=v)}return g}function a(_,f){let g=0;for(let p=0;p<_.length;p++)_[p]===f&&g++;return g}const c=/^\.\.?\//u,l=/^\/\.(?:\/|$)/u,u=/^\/\.\.(?:\/|$)/u,d=/^\/?(?:.|\n)*?(?=\/|$)/u;function h(_){const f=[];for(;_.length;)if(_.match(
632
- c))_=_.replace(c,"");else if(_.match(l))_=_.replace(l,"/");else if(_.match(u))_=_.replace(u,"/"),f.pop();else if(_==="."||_==="..")_="";else{const g=_.match(d);if(g){const p=g[0];_=_.slice(p.length),f.push(p)}else throw new Error("Unexpected dot segment condition")}return f.join("")}function y(_,f){const g=f!==!0?escape:unescape;return _.scheme!==void 0&&(_.scheme=g(_.scheme)),_.userinfo!==void 0&&(_.userinfo=g(_.userinfo)),_.host!==void 0&&(_.host=g(_.host)),_.path!==void 0&&(_.path=g(_.path)),
633
- _.query!==void 0&&(_.query=g(_.query)),_.fragment!==void 0&&(_.fragment=g(_.fragment)),_}function b(_){const f=[];if(_.userinfo!==void 0&&(f.push(_.userinfo),f.push("@")),_.host!==void 0){let g=unescape(_.host);const p=r(g);if(p.isIPV4)g=p.host;else{const m=i(p.host);m.isIPV6===!0?g=`[${m.escapedHost}]`:g=_.host}f.push(g)}return(typeof _.port=="number"||typeof _.port=="string")&&(f.push(":"),f.push(String(_.port))),f.length?f.join(""):void 0}return zi={recomposeAuthority:b,normalizeComponentEncoding:y,
634
- removeDotSegments:h,normalizeIPv4:r,normalizeIPv6:i,stringArrayToHexStripped:n},zi}var Gi,Nu;function Xg(){if(Nu)return Gi;Nu=1;const t=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(p){return typeof p.secure=="boolean"?p.secure:String(p.scheme).toLowerCase()==="wss"}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const m=String(p.scheme).toLowerCase()==="\
578
+ !E.opts.unevaluated)return;const I=m.let("valid",!1),F=m.name("_valid");m.block(()=>$.forEach((B,k)=>{const M=p.subschema({keyword:v,schemaProp:k,compositeRule:!0},F);m.assign(I,(0,t._)`${I} || ${F}`),p.mergeValidEvaluated(M,F)||m.if((0,t.not)(I))})),p.result(I,()=>p.reset(),()=>p.error(!0))}return ve.validateUnion=g,ve}var mu;function Gg(){if(mu)return Je;mu=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.validateKeywordUsage=Je.validSchemaType=Je.funcKeywordCode=Je.macroKeywordCode=void 0;
579
+ const t=he(),e=Xe(),r=Qe(),n=fn();function s(h,_){const{gen:b,keyword:y,schema:f,parentSchema:g,it:p}=h,m=_.macro.call(p.self,f,g,p),$=l(b,y,m);p.opts.validateSchema!==!1&&p.self.validateSchema(m,!0);const v=b.name("valid");h.subschema({schema:m,schemaPath:t.nil,errSchemaPath:`${p.errSchemaPath}/${y}`,topSchemaRef:$,compositeRule:!0},v),h.pass(v,()=>h.error(!0))}Je.macroKeywordCode=s;function i(h,_){var b;const{gen:y,keyword:f,schema:g,parentSchema:p,$data:m,it:$}=h;u($,_);const v=!m&&_.compile?
580
+ _.compile.call($.self,g,p,$):_.validate,E=l(y,f,v),S=y.let("valid");h.block$data(S,I),h.ok((b=_.valid)!==null&&b!==void 0?b:S);function I(){if(_.errors===!1)k(),_.modifying&&o(h),M(()=>h.error());else{const j=_.async?F():B();_.modifying&&o(h),M(()=>a(h,j))}}function F(){const j=y.let("ruleErrs",null);return y.try(()=>k((0,t._)`await `),D=>y.assign(S,!1).if((0,t._)`${D} instanceof ${$.ValidationError}`,()=>y.assign(j,(0,t._)`${D}.errors`),()=>y.throw(D))),j}function B(){const j=(0,t._)`${E}.errors`;
581
+ return y.assign(j,null),k(t.nil),j}function k(j=_.async?(0,t._)`await `:t.nil){const D=$.opts.passContext?e.default.this:e.default.self,H=!("compile"in _&&!m||_.schema===!1);y.assign(S,(0,t._)`${j}${(0,r.callValidateCode)(h,E,D,H)}`,_.modifying)}function M(j){var D;y.if((0,t.not)((D=_.valid)!==null&&D!==void 0?D:S),j)}}Je.funcKeywordCode=i;function o(h){const{gen:_,data:b,it:y}=h;_.if(y.parentData,()=>_.assign(b,(0,t._)`${y.parentData}[${y.parentDataProperty}]`))}function a(h,_){const{gen:b}=h;b.
582
+ if((0,t._)`Array.isArray(${_})`,()=>{b.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${_} : ${e.default.vErrors}.concat(${_})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function u({schemaEnv:h},_){if(_.async&&!h.$async)throw new Error("async keyword in sync schema")}function l(h,_,b){if(b===void 0)throw new Error(`keyword "${_}" failed to compile`);return h.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,t.
583
+ stringify)(b)})}function c(h,_,b=!1){return!_.length||_.some(y=>y==="array"?Array.isArray(h):y==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==y||b&&typeof h>"u")}Je.validSchemaType=c;function d({schema:h,opts:_,self:b,errSchemaPath:y},f,g){if(Array.isArray(f.keyword)?!f.keyword.includes(g):f.keyword!==g)throw new Error("ajv implementation error");const p=f.dependencies;if(p?.some(m=>!Object.prototype.hasOwnProperty.call(h,m)))throw new Error(`parent schema must have dependencies o\
584
+ f ${g}: ${p.join(",")}`);if(f.validateSchema&&!f.validateSchema(h[g])){const $=`keyword "${g}" value is invalid at path "${y}": `+b.errorsText(f.validateSchema.errors);if(_.validateSchema==="log")b.logger.error($);else throw new Error($)}}return Je.validateKeywordUsage=d,Je}var pt={},gu;function Bg(){if(gu)return pt;gu=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.extendSubschemaMode=pt.extendSubschemaData=pt.getSubschema=void 0;const t=he(),e=_e();function r(i,{keyword:o,schemaProp:a,schema:u,
585
+ schemaPath:l,errSchemaPath:c,topSchemaRef:d}){if(o!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const h=i.schema[o];return a===void 0?{schema:h,schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${i.errSchemaPath}/${o}`}:{schema:h[a],schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(u!==void 0){if(l===void 0||
586
+ c===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:l,topSchemaRef:d,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}pt.getSubschema=r;function n(i,o,{dataProp:a,dataPropType:u,data:l,dataTypes:c,propertyName:d}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=o;if(a!==void 0){const{errorPath:b,dataPathArr:y,opts:f}=o,
587
+ g=h.let("data",(0,t._)`${o.data}${(0,t.getProperty)(a)}`,!0);_(g),i.errorPath=(0,t.str)`${b}${(0,e.getErrorPath)(a,u,f.jsPropertySyntax)}`,i.parentDataProperty=(0,t._)`${a}`,i.dataPathArr=[...y,i.parentDataProperty]}if(l!==void 0){const b=l instanceof t.Name?l:h.let("data",l,!0);_(b),d!==void 0&&(i.propertyName=d)}c&&(i.dataTypes=c);function _(b){i.data=b,i.dataLevel=o.dataLevel+1,i.dataTypes=[],o.definedProperties=new Set,i.parentData=o.data,i.dataNames=[...o.dataNames,b]}}pt.extendSubschemaData=
588
+ n;function s(i,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:u,createErrors:l,allErrors:c}){u!==void 0&&(i.compositeRule=u),l!==void 0&&(i.createErrors=l),c!==void 0&&(i.allErrors=c),i.jtdDiscriminator=o,i.jtdMetadata=a}return pt.extendSubschemaMode=s,pt}var je={},Fi,yu;function _u(){return yu||(yu=1,Fi=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=
589
+ n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!==0;){var o=i[s];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),Fi}var Vi={
590
+ exports:{}},$u;function Wg(){if($u)return Vi.exports;$u=1;var t=Vi.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),i=s.cb||i;var o=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};e(s,o,a,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords=
591
+ {default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(n,s,i,o,a,u,l,c,d,h){if(o&&typeof o=="object"&&!Array.isArray(o)){s(o,a,u,l,c,d,h);for(var _ in o){var b=o[_];if(Array.isArray(b)){if(_ in t.arrayKeywords)for(var y=0;y<b.length;y++)e(n,s,i,b[y],a+"/"+_+"/"+y,u,a,_,o,y)}else if(_ in t.propsKeywords){if(b&&
592
+ typeof b=="object")for(var f in b)e(n,s,i,b[f],a+"/"+_+"/"+r(f),u,a,_,o,f)}else(_ in t.keywords||n.allKeys&&!(_ in t.skipKeywords))&&e(n,s,i,b,a+"/"+_,u,a,_,o)}i(o,a,u,l,c,d,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Vi.exports}var vu;function hn(){if(vu)return je;vu=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const t=_e(),e=_u(),r=Wg(),n=new Set(["type","format",
593
+ "pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(y,f=!0){return typeof y=="boolean"?!0:f===!0?!o(y):f?a(y)<=f:!1}je.inlineRef=s;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(y){for(const f in y){if(i.has(f))return!0;const g=y[f];if(Array.isArray(g)&&g.some(o)||typeof g=="object"&&o(g))return!0}return!1}function a(y){
594
+ let f=0;for(const g in y){if(g==="$ref")return 1/0;if(f++,!n.has(g)&&(typeof y[g]=="object"&&(0,t.eachItem)(y[g],p=>f+=a(p)),f===1/0))return 1/0}return f}function u(y,f="",g){g!==!1&&(f=d(f));const p=y.parse(f);return l(y,p)}je.getFullPath=u;function l(y,f){return y.serialize(f).split("#")[0]+"#"}je._getFullPath=l;const c=/#\/?$/;function d(y){return y?y.replace(c,""):""}je.normalizeId=d;function h(y,f,g){return g=d(g),y.resolve(f,g)}je.resolveUrl=h;const _=/^[a-z_][-a-z0-9._]*$/i;function b(y,f){
595
+ if(typeof y=="boolean")return{};const{schemaId:g,uriResolver:p}=this.opts,m=d(y[g]||f),$={"":m},v=u(p,m,!1),E={},S=new Set;return r(y,{allKeys:!0},(B,k,M,j)=>{if(j===void 0)return;const D=v+k;let H=$[j];typeof B[g]=="string"&&(H=Y.call(this,B[g])),G.call(this,B.$anchor),G.call(this,B.$dynamicAnchor),$[k]=H;function Y(J){const se=this.opts.uriResolver.resolve;if(J=d(H?se(H,J):J),S.has(J))throw F(J);S.add(J);let U=this.refs[J];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?I(B,U.schema,
596
+ J):J!==d(D)&&(J[0]==="#"?(I(B,E[J],J),E[J]=B):this.refs[J]=D),J}function G(J){if(typeof J=="string"){if(!_.test(J))throw new Error(`invalid anchor "${J}"`);Y.call(this,`#${J}`)}}}),E;function I(B,k,M){if(k!==void 0&&!e(B,k))throw F(M)}function F(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return je.getSchemaRefs=b,je}var bu;function Pr(){if(bu)return dt;bu=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.getData=dt.KeywordCxt=dt.validateFunctionCode=void 0;const t=Vg(),
597
+ e=dn(),r=fu(),n=dn(),s=zg(),i=Gg(),o=Bg(),a=he(),u=Xe(),l=hn(),c=_e(),d=fn();function h(L){if(v(L)&&(S(L),$(L))){f(L);return}_(L,()=>(0,t.topBoolOrEmptySchema)(L))}dt.validateFunctionCode=h;function _({gen:L,validateName:q,schema:Q,schemaEnv:ne,opts:P},N){P.code.es5?L.func(q,(0,a._)`${u.default.data}, ${u.default.valCxt}`,ne.$async,()=>{L.code((0,a._)`"use strict"; ${p(Q,P)}`),y(L,P),L.code(N)}):L.func(q,(0,a._)`${u.default.data}, ${b(P)}`,ne.$async,()=>L.code(p(Q,P)).code(N))}function b(L){return(0,a.
598
+ _)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${L.dynamicRef?(0,a._)`, ${u.default.dynamicAnchors}={}`:a.nil}}={}`}function y(L,q){L.if(u.default.valCxt,()=>{L.var(u.default.instancePath,(0,a._)`${u.default.valCxt}.${u.default.instancePath}`),L.var(u.default.parentData,(0,a._)`${u.default.valCxt}.${u.default.parentData}`),L.var(u.default.parentDataProperty,(0,a._)`${u.default.valCxt}.${u.default.parentDataProperty}`),
599
+ L.var(u.default.rootData,(0,a._)`${u.default.valCxt}.${u.default.rootData}`),q.dynamicRef&&L.var(u.default.dynamicAnchors,(0,a._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{L.var(u.default.instancePath,(0,a._)`""`),L.var(u.default.parentData,(0,a._)`undefined`),L.var(u.default.parentDataProperty,(0,a._)`undefined`),L.var(u.default.rootData,u.default.data),q.dynamicRef&&L.var(u.default.dynamicAnchors,(0,a._)`{}`)})}function f(L){const{schema:q,opts:Q,gen:ne}=L;_(L,()=>{Q.$comment&&q.
600
+ $comment&&j(L),B(L),ne.let(u.default.vErrors,null),ne.let(u.default.errors,0),Q.unevaluated&&g(L),I(L),D(L)})}function g(L){const{gen:q,validateName:Q}=L;L.evaluated=q.const("evaluated",(0,a._)`${Q}.evaluated`),q.if((0,a._)`${L.evaluated}.dynamicProps`,()=>q.assign((0,a._)`${L.evaluated}.props`,(0,a._)`undefined`)),q.if((0,a._)`${L.evaluated}.dynamicItems`,()=>q.assign((0,a._)`${L.evaluated}.items`,(0,a._)`undefined`))}function p(L,q){const Q=typeof L=="object"&&L[q.schemaId];return Q&&(q.code.source||
601
+ q.code.process)?(0,a._)`/*# sourceURL=${Q} */`:a.nil}function m(L,q){if(v(L)&&(S(L),$(L))){E(L,q);return}(0,t.boolOrEmptySchema)(L,q)}function $({schema:L,self:q}){if(typeof L=="boolean")return!L;for(const Q in L)if(q.RULES.all[Q])return!0;return!1}function v(L){return typeof L.schema!="boolean"}function E(L,q){const{schema:Q,gen:ne,opts:P}=L;P.$comment&&Q.$comment&&j(L),k(L),M(L);const N=ne.const("_errs",u.default.errors);I(L,N),ne.var(q,(0,a._)`${N} === ${u.default.errors}`)}function S(L){(0,c.
602
+ checkUnknownRules)(L),F(L)}function I(L,q){if(L.opts.jtd)return Y(L,[],!1,q);const Q=(0,e.getSchemaTypes)(L.schema),ne=(0,e.coerceAndCheckDataType)(L,Q);Y(L,Q,!ne,q)}function F(L){const{schema:q,errSchemaPath:Q,opts:ne,self:P}=L;q.$ref&&ne.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(q,P.RULES)&&P.logger.warn(`$ref: keywords ignored in schema at path "${Q}"`)}function B(L){const{schema:q,opts:Q}=L;q.default!==void 0&&Q.useDefaults&&Q.strictSchema&&(0,c.checkStrictMode)(L,"default is ignored\
603
+ in the schema root")}function k(L){const q=L.schema[L.opts.schemaId];q&&(L.baseId=(0,l.resolveUrl)(L.opts.uriResolver,L.baseId,q))}function M(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function j({gen:L,schemaEnv:q,schema:Q,errSchemaPath:ne,opts:P}){const N=Q.$comment;if(P.$comment===!0)L.code((0,a._)`${u.default.self}.logger.log(${N})`);else if(typeof P.$comment=="function"){const ee=(0,a.str)`${ne}/$comment`,W=L.scopeValue("root",{ref:q.root});L.
604
+ code((0,a._)`${u.default.self}.opts.$comment(${N}, ${ee}, ${W}.schema)`)}}function D(L){const{gen:q,schemaEnv:Q,validateName:ne,ValidationError:P,opts:N}=L;Q.$async?q.if((0,a._)`${u.default.errors} === 0`,()=>q.return(u.default.data),()=>q.throw((0,a._)`new ${P}(${u.default.vErrors})`)):(q.assign((0,a._)`${ne}.errors`,u.default.vErrors),N.unevaluated&&H(L),q.return((0,a._)`${u.default.errors} === 0`))}function H({gen:L,evaluated:q,props:Q,items:ne}){Q instanceof a.Name&&L.assign((0,a._)`${q}.props`,
605
+ Q),ne instanceof a.Name&&L.assign((0,a._)`${q}.items`,ne)}function Y(L,q,Q,ne){const{gen:P,schema:N,data:ee,allErrors:W,opts:T,self:te}=L,{RULES:z}=te;if(N.$ref&&(T.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(N,z))){P.block(()=>X(L,"$ref",z.all.$ref.definition));return}T.jtd||J(L,q),P.block(()=>{for(const le of z.rules)re(le);re(z.post)});function re(le){(0,r.shouldUseGroup)(N,le)&&(le.type?(P.if((0,n.checkDataType)(le.type,ee,T.strictNumbers)),G(L,le),q.length===1&&q[0]===le.type&&Q&&(P.
606
+ else(),(0,n.reportTypeError)(L)),P.endIf()):G(L,le),W||P.if((0,a._)`${u.default.errors} === ${ne||0}`))}}function G(L,q){const{gen:Q,schema:ne,opts:{useDefaults:P}}=L;P&&(0,s.assignDefaults)(L,q.type),Q.block(()=>{for(const N of q.rules)(0,r.shouldUseRule)(ne,N)&&X(L,N.keyword,N.definition,q.type)})}function J(L,q){L.schemaEnv.meta||!L.opts.strictTypes||(se(L,q),L.opts.allowUnionTypes||U(L,q),A(L,L.dataTypes))}function se(L,q){if(q.length){if(!L.dataTypes.length){L.dataTypes=q;return}q.forEach(Q=>{
607
+ x(L.dataTypes,Q)||R(L,`type "${Q}" not allowed by context "${L.dataTypes.join(",")}"`)}),w(L,q)}}function U(L,q){q.length>1&&!(q.length===2&&q.includes("null"))&&R(L,"use allowUnionTypes to allow union type keyword")}function A(L,q){const Q=L.self.RULES.all;for(const ne in Q){const P=Q[ne];if(typeof P=="object"&&(0,r.shouldUseRule)(L.schema,P)){const{type:N}=P.definition;N.length&&!N.some(ee=>V(q,ee))&&R(L,`missing type "${N.join(",")}" for keyword "${ne}"`)}}}function V(L,q){return L.includes(q)||
608
+ q==="number"&&L.includes("integer")}function x(L,q){return L.includes(q)||q==="integer"&&L.includes("number")}function w(L,q){const Q=[];for(const ne of L.dataTypes)x(q,ne)?Q.push(ne):q.includes("integer")&&ne==="number"&&Q.push("integer");L.dataTypes=Q}function R(L,q){const Q=L.schemaEnv.baseId+L.errSchemaPath;q+=` at "${Q}" (strictTypes)`,(0,c.checkStrictMode)(L,q,L.opts.strictTypes)}class C{constructor(q,Q,ne){if((0,i.validateKeywordUsage)(q,Q,ne),this.gen=q.gen,this.allErrors=q.allErrors,this.
609
+ keyword=ne,this.data=q.data,this.schema=q.schema[ne],this.$data=Q.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(q,this.schema,ne,this.$data),this.schemaType=Q.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=Q,this.$data)this.schemaCode=q.gen.const("vSchema",oe(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,Q.schemaType,Q.allowUndefined))throw new Error(`${ne} value must be ${JSON.stringify(
610
+ Q.schemaType)}`);("code"in Q?Q.trackErrors:Q.errors!==!1)&&(this.errsCount=q.gen.const("_errs",u.default.errors))}result(q,Q,ne){this.failResult((0,a.not)(q),Q,ne)}failResult(q,Q,ne){this.gen.if(q),ne?ne():this.error(),Q?(this.gen.else(),Q(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,Q){this.failResult((0,a.not)(q),void 0,Q)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.
611
+ endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:Q}=this;this.fail((0,a._)`${Q} !== undefined && (${(0,a.or)(this.invalid$data(),q)})`)}error(q,Q,ne){if(Q){this.setParams(Q),this._error(q,ne),this.setParams({});return}this._error(q,ne)}_error(q,Q){(q?d.reportExtraError:d.reportError)(this,this.def.error,Q)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to k\
612
+ eyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,Q){Q?Object.assign(this.params,q):this.params=q}block$data(q,Q,ne=a.nil){this.gen.block(()=>{this.check$data(q,ne),Q()})}check$data(q=a.nil,Q=a.nil){if(!this.$data)return;const{gen:ne,schemaCode:P,schemaType:N,def:ee}=this;ne.if((0,a.or)((0,a._)`${P} === undefined`,Q)),q!==a.nil&&ne.assign(q,!0),(N.length||ee.validateSchema)&&(ne.elseIf(this.invalid$data()),this.$dataError(),q!==a.
613
+ nil&&ne.assign(q,!1)),ne.else()}invalid$data(){const{gen:q,schemaCode:Q,schemaType:ne,def:P,it:N}=this;return(0,a.or)(ee(),W());function ee(){if(ne.length){if(!(Q instanceof a.Name))throw new Error("ajv implementation error");const T=Array.isArray(ne)?ne:[ne];return(0,a._)`${(0,n.checkDataTypes)(T,Q,N.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function W(){if(P.validateSchema){const T=q.scopeValue("validate$data",{ref:P.validateSchema});return(0,a._)`!${T}(${Q})`}return a.nil}}subschema(q,Q){
614
+ const ne=(0,o.getSubschema)(this.it,q);(0,o.extendSubschemaData)(ne,this.it,q),(0,o.extendSubschemaMode)(ne,q);const P={...this.it,...ne,items:void 0,props:void 0};return m(P,Q),P}mergeEvaluated(q,Q){const{it:ne,gen:P}=this;ne.opts.unevaluated&&(ne.props!==!0&&q.props!==void 0&&(ne.props=c.mergeEvaluated.props(P,q.props,ne.props,Q)),ne.items!==!0&&q.items!==void 0&&(ne.items=c.mergeEvaluated.items(P,q.items,ne.items,Q)))}mergeValidEvaluated(q,Q){const{it:ne,gen:P}=this;if(ne.opts.unevaluated&&(ne.
615
+ props!==!0||ne.items!==!0))return P.if(Q,()=>this.mergeEvaluated(q,a.Name)),!0}}dt.KeywordCxt=C;function X(L,q,Q,ne){const P=new C(L,Q,q);"code"in Q?Q.code(P,ne):P.$data&&Q.validate?(0,i.funcKeywordCode)(P,Q):"macro"in Q?(0,i.macroKeywordCode)(P,Q):(Q.compile||Q.validate)&&(0,i.funcKeywordCode)(P,Q)}const Z=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(L,{dataLevel:q,dataNames:Q,dataPathArr:ne}){let P,N;if(L==="")return u.default.rootData;if(L[0]==="/"){if(!Z.test(L))throw new Error(
616
+ `Invalid JSON-pointer: ${L}`);P=L,N=u.default.rootData}else{const te=ie.exec(L);if(!te)throw new Error(`Invalid JSON-pointer: ${L}`);const z=+te[1];if(P=te[2],P==="#"){if(z>=q)throw new Error(T("property/index",z));return ne[q-z]}if(z>q)throw new Error(T("data",z));if(N=Q[q-z],!P)return N}let ee=N;const W=P.split("/");for(const te of W)te&&(N=(0,a._)`${N}${(0,a.getProperty)((0,c.unescapeJsonPointer)(te))}`,ee=(0,a._)`${ee} && ${N}`);return ee;function T(te,z){return`Cannot access ${te} ${z} leve\
617
+ ls up, current level is ${q}`}}return dt.getData=oe,dt}var pn={},wu;function mn(){if(wu)return pn;wu=1,Object.defineProperty(pn,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return pn.default=t,pn}var gn={},Eu;function Ir(){if(Eu)return gn;Eu=1,Object.defineProperty(gn,"__esModule",{value:!0});const t=hn();class e extends Error{constructor(n,s,i,o){super(o||`can't resolve reference ${i} from id ${s}`),this.missingRef=
618
+ (0,t.resolveUrl)(n,s,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return gn.default=e,gn}var He={},Su;function yn(){if(Su)return He;Su=1,Object.defineProperty(He,"__esModule",{value:!0}),He.resolveSchema=He.getCompilingSchema=He.resolveRef=He.compileSchema=He.SchemaEnv=void 0;const t=he(),e=mn(),r=Xe(),n=hn(),s=_e(),i=Pr();class o{constructor(g){var p;this.refs={},this.dynamicAnchors={};let m;typeof g.schema=="object"&&(m=g.schema),this.schema=g.schema,this.schemaId=
619
+ g.schemaId,this.root=g.root||this,this.baseId=(p=g.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(m?.[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=m?.$async,this.refs={}}}He.SchemaEnv=o;function a(f){const g=c.call(this,f);if(g)return g;const p=(0,n.getFullPath)(this.opts.uriResolver,f.root.baseId),{es5:m,lines:$}=this.opts.code,{ownProperties:v}=this.opts,E=new t.CodeGen(this.scope,{es5:m,lines:$,ownProperties:v});let S;f.$async&&(S=E.
620
+ scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const I=E.scopeName("validate");f.validateName=I;const F={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:f.schema,code:(0,t.stringify)(f.schema)}:
621
+ {ref:f.schema}),validateName:I,ValidationError:S,schema:f.schema,schemaEnv:f,rootId:p,baseId:f.baseId||p,schemaPath:t.nil,errSchemaPath:f.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let B;try{this._compilations.add(f),(0,i.validateFunctionCode)(F),E.optimize(this.opts.code.optimize);const k=E.toString();B=`${E.scopeRefs(r.default.scope)}return ${k}`,this.opts.code.process&&(B=this.opts.code.process(B,f));const j=new Function(`${r.default.self}`,`${r.default.
622
+ scope}`,B)(this,this.scope.get());if(this.scope.value(I,{ref:j}),j.errors=null,j.schema=f.schema,j.schemaEnv=f,f.$async&&(j.$async=!0),this.opts.code.source===!0&&(j.source={validateName:I,validateCode:k,scopeValues:E._values}),this.opts.unevaluated){const{props:D,items:H}=F;j.evaluated={props:D instanceof t.Name?void 0:D,items:H instanceof t.Name?void 0:H,dynamicProps:D instanceof t.Name,dynamicItems:H instanceof t.Name},j.source&&(j.source.evaluated=(0,t.stringify)(j.evaluated))}return f.validate=
623
+ j,f}catch(k){throw delete f.validate,delete f.validateName,B&&this.logger.error("Error compiling schema, function code:",B),k}finally{this._compilations.delete(f)}}He.compileSchema=a;function u(f,g,p){var m;p=(0,n.resolveUrl)(this.opts.uriResolver,g,p);const $=f.refs[p];if($)return $;let v=h.call(this,f,p);if(v===void 0){const E=(m=f.localRefs)===null||m===void 0?void 0:m[p],{schemaId:S}=this.opts;E&&(v=new o({schema:E,schemaId:S,root:f,baseId:g}))}if(v!==void 0)return f.refs[p]=l.call(this,v)}He.
624
+ resolveRef=u;function l(f){return(0,n.inlineRef)(f.schema,this.opts.inlineRefs)?f.schema:f.validate?f:a.call(this,f)}function c(f){for(const g of this._compilations)if(d(g,f))return g}He.getCompilingSchema=c;function d(f,g){return f.schema===g.schema&&f.root===g.root&&f.baseId===g.baseId}function h(f,g){let p;for(;typeof(p=this.refs[g])=="string";)g=p;return p||this.schemas[g]||_.call(this,f,g)}function _(f,g){const p=this.opts.uriResolver.parse(g),m=(0,n._getFullPath)(this.opts.uriResolver,p);let $=(0,n.
625
+ getFullPath)(this.opts.uriResolver,f.baseId,void 0);if(Object.keys(f.schema).length>0&&m===$)return y.call(this,p,f);const v=(0,n.normalizeId)(m),E=this.refs[v]||this.schemas[v];if(typeof E=="string"){const S=_.call(this,f,E);return typeof S?.schema!="object"?void 0:y.call(this,p,S)}if(typeof E?.schema=="object"){if(E.validate||a.call(this,E),v===(0,n.normalizeId)(g)){const{schema:S}=E,{schemaId:I}=this.opts,F=S[I];return F&&($=(0,n.resolveUrl)(this.opts.uriResolver,$,F)),new o({schema:S,schemaId:I,
626
+ root:f,baseId:$})}return y.call(this,p,E)}}He.resolveSchema=_;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(f,{baseId:g,schema:p,root:m}){var $;if((($=f.fragment)===null||$===void 0?void 0:$[0])!=="/")return;for(const S of f.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const I=p[(0,s.unescapeFragment)(S)];if(I===void 0)return;p=I;const F=typeof p=="object"&&p[this.opts.schemaId];!b.has(S)&&F&&(g=(0,n.resolveUrl)(this.opts.uriResolver,
627
+ g,F))}let v;if(typeof p!="boolean"&&p.$ref&&!(0,s.schemaHasRulesButRef)(p,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,g,p.$ref);v=_.call(this,m,S)}const{schemaId:E}=this.opts;if(v=v||new o({schema:p,schemaId:E,root:m,baseId:g}),v.schema!==v.root.schema)return v}return He}const Ru="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Au="Meta-schema for $data reference (JSON AnySchema extension proposal)",Ou="object",Cu=["$data"],Pu={$data:{type:"string",
628
+ anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Iu=!1,Kg={$id:Ru,description:Au,type:Ou,required:Cu,properties:Pu,additionalProperties:Iu},Yg={__proto__:null,$id:Ru,additionalProperties:Iu,default:Kg,description:Au,properties:Pu,required:Cu,type:Ou},Xg=nt(Yg);var _n={},Tr={exports:{}},zi,Tu;function Jg(){return Tu||(Tu=1,zi={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),zi}var Gi,Nu;function Qg(){if(Nu)return Gi;Nu=
629
+ 1;const{HEX:t}=Jg(),e=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(y){if(a(y,".")<3)return{host:y,isIPV4:!1};const f=y.match(e)||[],[g]=f;return g?{host:o(g,"."),isIPV4:!0}:{host:y,isIPV4:!1}}function n(y,f=!1){let g="",p=!0;for(const m of y){if(t[m]===void 0)return;m!=="0"&&p===!0&&(p=!1),p||(g+=m)}return f&&g.length===0&&(g="0"),g}function s(y){let f=0;const g={error:!1,address:"",zone:""},p=[],m=[];let $=!1,v=!1,E=!1;function S(){if(m.length){
630
+ if($===!1){const I=n(m);if(I!==void 0)p.push(I);else return g.error=!0,!1}m.length=0}return!0}for(let I=0;I<y.length;I++){const F=y[I];if(!(F==="["||F==="]"))if(F===":"){if(v===!0&&(E=!0),!S())break;if(f++,p.push(":"),f>7){g.error=!0;break}I-1>=0&&y[I-1]===":"&&(v=!0);continue}else if(F==="%"){if(!S())break;$=!0}else{m.push(F);continue}}return m.length&&($?g.zone=m.join(""):E?p.push(m.join("")):p.push(n(m))),g.address=p.join(""),g}function i(y){if(a(y,":")<2)return{host:y,isIPV6:!1};const f=s(y);
631
+ if(f.error)return{host:y,isIPV6:!1};{let g=f.address,p=f.address;return f.zone&&(g+="%"+f.zone,p+="%25"+f.zone),{host:g,escapedHost:p,isIPV6:!0}}}function o(y,f){let g="",p=!0;const m=y.length;for(let $=0;$<m;$++){const v=y[$];v==="0"&&p?($+1<=m&&y[$+1]===f||$+1===m)&&(g+=v,p=!1):(v===f?p=!0:p=!1,g+=v)}return g}function a(y,f){let g=0;for(let p=0;p<y.length;p++)y[p]===f&&g++;return g}const u=/^\.\.?\//u,l=/^\/\.(?:\/|$)/u,c=/^\/\.\.(?:\/|$)/u,d=/^\/?(?:.|\n)*?(?=\/|$)/u;function h(y){const f=[];
632
+ for(;y.length;)if(y.match(u))y=y.replace(u,"");else if(y.match(l))y=y.replace(l,"/");else if(y.match(c))y=y.replace(c,"/"),f.pop();else if(y==="."||y==="..")y="";else{const g=y.match(d);if(g){const p=g[0];y=y.slice(p.length),f.push(p)}else throw new Error("Unexpected dot segment condition")}return f.join("")}function _(y,f){const g=f!==!0?escape:unescape;return y.scheme!==void 0&&(y.scheme=g(y.scheme)),y.userinfo!==void 0&&(y.userinfo=g(y.userinfo)),y.host!==void 0&&(y.host=g(y.host)),y.path!==void 0&&
633
+ (y.path=g(y.path)),y.query!==void 0&&(y.query=g(y.query)),y.fragment!==void 0&&(y.fragment=g(y.fragment)),y}function b(y){const f=[];if(y.userinfo!==void 0&&(f.push(y.userinfo),f.push("@")),y.host!==void 0){let g=unescape(y.host);const p=r(g);if(p.isIPV4)g=p.host;else{const m=i(p.host);m.isIPV6===!0?g=`[${m.escapedHost}]`:g=y.host}f.push(g)}return(typeof y.port=="number"||typeof y.port=="string")&&(f.push(":"),f.push(String(y.port))),f.length?f.join(""):void 0}return Gi={recomposeAuthority:b,normalizeComponentEncoding:_,
634
+ removeDotSegments:h,normalizeIPv4:r,normalizeIPv6:i,stringArrayToHexStripped:n},Gi}var Bi,ju;function Zg(){if(ju)return Bi;ju=1;const t=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(p){return typeof p.secure=="boolean"?p.secure:String(p.scheme).toLowerCase()==="wss"}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const m=String(p.scheme).toLowerCase()==="\
635
635
  https";return(p.port===(m?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function i(p){return p.secure=r(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function o(p){if((p.port===(r(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[m,$]=p.resourceName.split("?");p.path=m&&m!=="/"?m:void 0,p.query=$,p.resourceName=void 0}return p.fragment=void 0,p}function a(p,m){
636
- if(!p.path)return p.error="URN can not be parsed",p;const $=p.path.match(e);if($){const v=m.scheme||p.scheme||"urn";p.nid=$[1].toLowerCase(),p.nss=$[2];const E=`${v}:${m.nid||p.nid}`,S=g[E];p.path=void 0,S&&(p=S.parse(p,m))}else p.error=p.error||"URN can not be parsed.";return p}function c(p,m){const $=m.scheme||p.scheme||"urn",v=p.nid.toLowerCase(),E=`${$}:${m.nid||v}`,S=g[E];S&&(p=S.serialize(p,m));const I=p,F=p.nss;return I.path=`${v||m.nid}:${F}`,m.skipEscape=!0,I}function l(p,m){const $=p;return $.
637
- uuid=$.nss,$.nss=void 0,!m.tolerant&&(!$.uuid||!t.test($.uuid))&&($.error=$.error||"UUID is not valid."),$}function u(p){const m=p;return m.nss=(p.uuid||"").toLowerCase(),m}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},y={scheme:"ws",domainHost:!0,parse:i,serialize:o},b={scheme:"wss",domainHost:y.domainHost,parse:y.parse,serialize:y.serialize},g={http:d,https:h,ws:y,wss:b,urn:{scheme:"urn",parse:a,serialize:c,skipNormalize:!0},
638
- "urn:uuid":{scheme:"urn:uuid",parse:l,serialize:u,skipNormalize:!0}};return Gi=g,Gi}var ju;function Jg(){if(ju)return Tr.exports;ju=1;const{normalizeIPv6:t,normalizeIPv4:e,removeDotSegments:r,recomposeAuthority:n,normalizeComponentEncoding:s}=Yg(),i=Xg();function o(f,g){return typeof f=="string"?f=u(b(f,g),g):typeof f=="object"&&(f=b(u(f,g),g)),f}function a(f,g,p){const m=Object.assign({scheme:"null"},p),$=c(b(f,m),b(g,m),m,!0);return u($,{...m,skipEscape:!0})}function c(f,g,p,m){const $={};return m||
639
- (f=b(u(f,p),p),g=b(u(g,p),p)),p=p||{},!p.tolerant&&g.scheme?($.scheme=g.scheme,$.userinfo=g.userinfo,$.host=g.host,$.port=g.port,$.path=r(g.path||""),$.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?($.userinfo=g.userinfo,$.host=g.host,$.port=g.port,$.path=r(g.path||""),$.query=g.query):(g.path?(g.path.charAt(0)==="/"?$.path=r(g.path):((f.userinfo!==void 0||f.host!==void 0||f.port!==void 0)&&!f.path?$.path="/"+g.path:f.path?$.path=f.path.slice(0,f.path.lastIndexOf("/")+1)+
640
- g.path:$.path=g.path,$.path=r($.path)),$.query=g.query):($.path=f.path,g.query!==void 0?$.query=g.query:$.query=f.query),$.userinfo=f.userinfo,$.host=f.host,$.port=f.port),$.scheme=f.scheme),$.fragment=g.fragment,$}function l(f,g,p){return typeof f=="string"?(f=unescape(f),f=u(s(b(f,p),!0),{...p,skipEscape:!0})):typeof f=="object"&&(f=u(s(f,!0),{...p,skipEscape:!0})),typeof g=="string"?(g=unescape(g),g=u(s(b(g,p),!0),{...p,skipEscape:!0})):typeof g=="object"&&(g=u(s(g,!0),{...p,skipEscape:!0})),
641
- f.toLowerCase()===g.toLowerCase()}function u(f,g){const p={host:f.host,scheme:f.scheme,userinfo:f.userinfo,port:f.port,path:f.path,query:f.query,nid:f.nid,nss:f.nss,uuid:f.uuid,fragment:f.fragment,reference:f.reference,resourceName:f.resourceName,secure:f.secure,error:""},m=Object.assign({},g),$=[],v=i[(m.scheme||p.scheme||"").toLowerCase()];v&&v.serialize&&v.serialize(p,m),p.path!==void 0&&(m.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").
636
+ if(!p.path)return p.error="URN can not be parsed",p;const $=p.path.match(e);if($){const v=m.scheme||p.scheme||"urn";p.nid=$[1].toLowerCase(),p.nss=$[2];const E=`${v}:${m.nid||p.nid}`,S=g[E];p.path=void 0,S&&(p=S.parse(p,m))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,m){const $=m.scheme||p.scheme||"urn",v=p.nid.toLowerCase(),E=`${$}:${m.nid||v}`,S=g[E];S&&(p=S.serialize(p,m));const I=p,F=p.nss;return I.path=`${v||m.nid}:${F}`,m.skipEscape=!0,I}function l(p,m){const $=p;return $.
637
+ uuid=$.nss,$.nss=void 0,!m.tolerant&&(!$.uuid||!t.test($.uuid))&&($.error=$.error||"UUID is not valid."),$}function c(p){const m=p;return m.nss=(p.uuid||"").toLowerCase(),m}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},_={scheme:"ws",domainHost:!0,parse:i,serialize:o},b={scheme:"wss",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},g={http:d,https:h,ws:_,wss:b,urn:{scheme:"urn",parse:a,serialize:u,skipNormalize:!0},
638
+ "urn:uuid":{scheme:"urn:uuid",parse:l,serialize:c,skipNormalize:!0}};return Bi=g,Bi}var Lu;function ey(){if(Lu)return Tr.exports;Lu=1;const{normalizeIPv6:t,normalizeIPv4:e,removeDotSegments:r,recomposeAuthority:n,normalizeComponentEncoding:s}=Qg(),i=Zg();function o(f,g){return typeof f=="string"?f=c(b(f,g),g):typeof f=="object"&&(f=b(c(f,g),g)),f}function a(f,g,p){const m=Object.assign({scheme:"null"},p),$=u(b(f,m),b(g,m),m,!0);return c($,{...m,skipEscape:!0})}function u(f,g,p,m){const $={};return m||
639
+ (f=b(c(f,p),p),g=b(c(g,p),p)),p=p||{},!p.tolerant&&g.scheme?($.scheme=g.scheme,$.userinfo=g.userinfo,$.host=g.host,$.port=g.port,$.path=r(g.path||""),$.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?($.userinfo=g.userinfo,$.host=g.host,$.port=g.port,$.path=r(g.path||""),$.query=g.query):(g.path?(g.path.charAt(0)==="/"?$.path=r(g.path):((f.userinfo!==void 0||f.host!==void 0||f.port!==void 0)&&!f.path?$.path="/"+g.path:f.path?$.path=f.path.slice(0,f.path.lastIndexOf("/")+1)+
640
+ g.path:$.path=g.path,$.path=r($.path)),$.query=g.query):($.path=f.path,g.query!==void 0?$.query=g.query:$.query=f.query),$.userinfo=f.userinfo,$.host=f.host,$.port=f.port),$.scheme=f.scheme),$.fragment=g.fragment,$}function l(f,g,p){return typeof f=="string"?(f=unescape(f),f=c(s(b(f,p),!0),{...p,skipEscape:!0})):typeof f=="object"&&(f=c(s(f,!0),{...p,skipEscape:!0})),typeof g=="string"?(g=unescape(g),g=c(s(b(g,p),!0),{...p,skipEscape:!0})):typeof g=="object"&&(g=c(s(g,!0),{...p,skipEscape:!0})),
641
+ f.toLowerCase()===g.toLowerCase()}function c(f,g){const p={host:f.host,scheme:f.scheme,userinfo:f.userinfo,port:f.port,path:f.path,query:f.query,nid:f.nid,nss:f.nss,uuid:f.uuid,fragment:f.fragment,reference:f.reference,resourceName:f.resourceName,secure:f.secure,error:""},m=Object.assign({},g),$=[],v=i[(m.scheme||p.scheme||"").toLowerCase()];v&&v.serialize&&v.serialize(p,m),p.path!==void 0&&(m.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").
642
642
  join(":")))),m.reference!=="suffix"&&p.scheme&&$.push(p.scheme,":");const E=n(p);if(E!==void 0&&(m.reference!=="suffix"&&$.push("//"),$.push(E),p.path&&p.path.charAt(0)!=="/"&&$.push("/")),p.path!==void 0){let S=p.path;!m.absolutePath&&(!v||!v.absolutePath)&&(S=r(S)),E===void 0&&(S=S.replace(/^\/\//u,"/%2F")),$.push(S)}return p.query!==void 0&&$.push("?",p.query),p.fragment!==void 0&&$.push("#",p.fragment),$.join("")}const d=Array.from({length:127},(f,g)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.
643
- fromCharCode(g)));function h(f){let g=0;for(let p=0,m=f.length;p<m;++p)if(g=f.charCodeAt(p),g>126||d[g])return!0;return!1}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(f,g){const p=Object.assign({},g),m={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},$=f.indexOf("%")!==-1;let v=!1;p.reference==="suffix"&&(f=(p.scheme?p.scheme+":":"")+"//"+f);const E=f.match(
644
- y);if(E){if(m.scheme=E[1],m.userinfo=E[3],m.host=E[4],m.port=parseInt(E[5],10),m.path=E[6]||"",m.query=E[7],m.fragment=E[8],isNaN(m.port)&&(m.port=E[5]),m.host){const I=e(m.host);if(I.isIPV4===!1){const F=t(I.host);m.host=F.host.toLowerCase(),v=F.isIPV6}else m.host=I.host,v=!0}m.scheme===void 0&&m.userinfo===void 0&&m.host===void 0&&m.port===void 0&&m.query===void 0&&!m.path?m.reference="same-document":m.scheme===void 0?m.reference="relative":m.fragment===void 0?m.reference="absolute":m.reference=
643
+ fromCharCode(g)));function h(f){let g=0;for(let p=0,m=f.length;p<m;++p)if(g=f.charCodeAt(p),g>126||d[g])return!0;return!1}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(f,g){const p=Object.assign({},g),m={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},$=f.indexOf("%")!==-1;let v=!1;p.reference==="suffix"&&(f=(p.scheme?p.scheme+":":"")+"//"+f);const E=f.match(
644
+ _);if(E){if(m.scheme=E[1],m.userinfo=E[3],m.host=E[4],m.port=parseInt(E[5],10),m.path=E[6]||"",m.query=E[7],m.fragment=E[8],isNaN(m.port)&&(m.port=E[5]),m.host){const I=e(m.host);if(I.isIPV4===!1){const F=t(I.host);m.host=F.host.toLowerCase(),v=F.isIPV6}else m.host=I.host,v=!0}m.scheme===void 0&&m.userinfo===void 0&&m.host===void 0&&m.port===void 0&&m.query===void 0&&!m.path?m.reference="same-document":m.scheme===void 0?m.reference="relative":m.fragment===void 0?m.reference="absolute":m.reference=
645
645
  "uri",p.reference&&p.reference!=="suffix"&&p.reference!==m.reference&&(m.error=m.error||"URI is not a "+p.reference+" reference.");const S=i[(p.scheme||m.scheme||"").toLowerCase()];if(!p.unicodeSupport&&(!S||!S.unicodeSupport)&&m.host&&(p.domainHost||S&&S.domainHost)&&v===!1&&h(m.host))try{m.host=URL.domainToASCII(m.host.toLowerCase())}catch(I){m.error=m.error||"Host's domain name can not be converted to ASCII: "+I}(!S||S&&!S.skipNormalize)&&($&&m.scheme!==void 0&&(m.scheme=unescape(m.scheme)),$&&
646
- m.host!==void 0&&(m.host=unescape(m.host)),m.path&&(m.path=escape(unescape(m.path))),m.fragment&&(m.fragment=encodeURI(decodeURIComponent(m.fragment)))),S&&S.parse&&S.parse(m,p)}else m.error=m.error||"URI can not be parsed.";return m}const _={SCHEMES:i,normalize:o,resolve:a,resolveComponents:c,equal:l,serialize:u,parse:b};return Tr.exports=_,Tr.exports.default=_,Tr.exports.fastUri=_,Tr.exports}var Lu;function Qg(){if(Lu)return yn;Lu=1,Object.defineProperty(yn,"__esModule",{value:!0});const t=Jg();
647
- return t.code='require("ajv/dist/runtime/uri").default',yn.default=t,yn}var ku;function Du(){return ku||(ku=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Pr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=he();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.
648
- defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=pn(),s=Ir(),i=cu(),o=gn(),a=he(),c=dn(),l=fn(),u=_e(),d=Wg,h=Qg(),y=(U,A)=>new RegExp(U,A);y.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],_=new Set(
646
+ m.host!==void 0&&(m.host=unescape(m.host)),m.path&&(m.path=escape(unescape(m.path))),m.fragment&&(m.fragment=encodeURI(decodeURIComponent(m.fragment)))),S&&S.parse&&S.parse(m,p)}else m.error=m.error||"URI can not be parsed.";return m}const y={SCHEMES:i,normalize:o,resolve:a,resolveComponents:u,equal:l,serialize:c,parse:b};return Tr.exports=y,Tr.exports.default=y,Tr.exports.fastUri=y,Tr.exports}var ku;function ty(){if(ku)return _n;ku=1,Object.defineProperty(_n,"__esModule",{value:!0});const t=ey();
647
+ return t.code='require("ajv/dist/runtime/uri").default',_n.default=t,_n}var Du;function xu(){return Du||(Du=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Pr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=he();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.
648
+ defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=mn(),s=Ir(),i=uu(),o=yn(),a=he(),u=hn(),l=dn(),c=_e(),d=Xg,h=ty(),_=(U,A)=>new RegExp(U,A);_.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],y=new Set(
649
649
  ["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),f={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code:\
650
650
  {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},
651
- g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function m(U){var A,V,x,w,R,C,Y,Q,ie,oe,L,q,J,ne,P,N,Z,W,T,te,z,re,le,$e,we;const ot=U.strict,mt=(A=U.code)===null||A===void 0?void 0:A.optimize,ra=mt===!0||mt===void 0?1:mt||0,na=(x=(V=U.code)===null||V===void 0?void 0:V.regExp)!==null&&x!==void 0?x:y,Ch=(w=U.uriResolver)!==null&&w!==void 0?w:h.default;return{strictSchema:(C=(R=U.strictSchema)!==null&&R!==void 0?R:
652
- ot)!==null&&C!==void 0?C:!0,strictNumbers:(Q=(Y=U.strictNumbers)!==null&&Y!==void 0?Y:ot)!==null&&Q!==void 0?Q:!0,strictTypes:(oe=(ie=U.strictTypes)!==null&&ie!==void 0?ie:ot)!==null&&oe!==void 0?oe:"log",strictTuples:(q=(L=U.strictTuples)!==null&&L!==void 0?L:ot)!==null&&q!==void 0?q:"log",strictRequired:(ne=(J=U.strictRequired)!==null&&J!==void 0?J:ot)!==null&&ne!==void 0?ne:!1,code:U.code?{...U.code,optimize:ra,regExp:na}:{optimize:ra,regExp:na},loopRequired:(P=U.loopRequired)!==null&&P!==void 0?
653
- P:p,loopEnum:(N=U.loopEnum)!==null&&N!==void 0?N:p,meta:(Z=U.meta)!==null&&Z!==void 0?Z:!0,messages:(W=U.messages)!==null&&W!==void 0?W:!0,inlineRefs:(T=U.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(te=U.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(z=U.addUsedSchema)!==null&&z!==void 0?z:!0,validateSchema:(re=U.validateSchema)!==null&&re!==void 0?re:!0,validateFormats:(le=U.validateFormats)!==null&&le!==void 0?le:!0,unicodeRegExp:($e=U.unicodeRegExp)!==null&&$e!==void 0?$e:!0,int32range:(we=
654
- U.int32range)!==null&&we!==void 0?we:!0,uriResolver:Ch}}class ${constructor(A={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts={...A,...m(A)};const{es5:V,lines:x}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:_,es5:V,lines:x}),this.logger=M(A.logger);const w=A.validateFormats;A.validateFormats=!1,this.RULES=(0,i.getRules)(),v.call(this,f,A,"NOT SUPPORTED"),v.call(this,g,A,"DEPRECATED","warn"),this._metaOpts=
651
+ g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function m(U){var A,V,x,w,R,C,X,Z,ie,oe,L,q,Q,ne,P,N,ee,W,T,te,z,re,le,$e,we;const ot=U.strict,mt=(A=U.code)===null||A===void 0?void 0:A.optimize,na=mt===!0||mt===void 0?1:mt||0,sa=(x=(V=U.code)===null||V===void 0?void 0:V.regExp)!==null&&x!==void 0?x:_,Ph=(w=U.uriResolver)!==null&&w!==void 0?w:h.default;return{strictSchema:(C=(R=U.strictSchema)!==null&&R!==void 0?R:
652
+ ot)!==null&&C!==void 0?C:!0,strictNumbers:(Z=(X=U.strictNumbers)!==null&&X!==void 0?X:ot)!==null&&Z!==void 0?Z:!0,strictTypes:(oe=(ie=U.strictTypes)!==null&&ie!==void 0?ie:ot)!==null&&oe!==void 0?oe:"log",strictTuples:(q=(L=U.strictTuples)!==null&&L!==void 0?L:ot)!==null&&q!==void 0?q:"log",strictRequired:(ne=(Q=U.strictRequired)!==null&&Q!==void 0?Q:ot)!==null&&ne!==void 0?ne:!1,code:U.code?{...U.code,optimize:na,regExp:sa}:{optimize:na,regExp:sa},loopRequired:(P=U.loopRequired)!==null&&P!==void 0?
653
+ P:p,loopEnum:(N=U.loopEnum)!==null&&N!==void 0?N:p,meta:(ee=U.meta)!==null&&ee!==void 0?ee:!0,messages:(W=U.messages)!==null&&W!==void 0?W:!0,inlineRefs:(T=U.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(te=U.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(z=U.addUsedSchema)!==null&&z!==void 0?z:!0,validateSchema:(re=U.validateSchema)!==null&&re!==void 0?re:!0,validateFormats:(le=U.validateFormats)!==null&&le!==void 0?le:!0,unicodeRegExp:($e=U.unicodeRegExp)!==null&&$e!==void 0?$e:!0,int32range:(we=
654
+ U.int32range)!==null&&we!==void 0?we:!0,uriResolver:Ph}}class ${constructor(A={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts={...A,...m(A)};const{es5:V,lines:x}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:y,es5:V,lines:x}),this.logger=M(A.logger);const w=A.validateFormats;A.validateFormats=!1,this.RULES=(0,i.getRules)(),v.call(this,f,A,"NOT SUPPORTED"),v.call(this,g,A,"DEPRECATED","warn"),this._metaOpts=
655
655
  B.call(this),A.formats&&I.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),A.keywords&&F.call(this,A.keywords),typeof A.meta=="object"&&this.addMetaSchema(A.meta),S.call(this),A.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:A,meta:V,schemaId:x}=this.opts;let w=d;x==="id"&&(w={...d},w.id=w.$id,delete w.$id),V&&A&&this.addMetaSchema(w,w[x],!1)}defaultMeta(){const{meta:A,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof A==
656
656
  "object"?A[V]||A:void 0}validate(A,V){let x;if(typeof A=="string"){if(x=this.getSchema(A),!x)throw new Error(`no schema with key or ref "${A}"`)}else x=this.compile(A);const w=x(V);return"$async"in x||(this.errors=x.errors),w}compile(A,V){const x=this._addSchema(A,V);return x.validate||this._compileSchemaEnv(x)}compileAsync(A,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:x}=this.opts;return w.call(this,A,V);async function w(oe,L){
657
- await R.call(this,oe.$schema);const q=this._addSchema(oe,L);return q.validate||C.call(this,q)}async function R(oe){oe&&!this.getSchema(oe)&&await w.call(this,{$ref:oe},!0)}async function C(oe){try{return this._compileSchemaEnv(oe)}catch(L){if(!(L instanceof s.default))throw L;return Y.call(this,L),await Q.call(this,L.missingSchema),C.call(this,oe)}}function Y({missingSchema:oe,missingRef:L}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${L} cannot be resolved`)}async function Q(oe){
657
+ await R.call(this,oe.$schema);const q=this._addSchema(oe,L);return q.validate||C.call(this,q)}async function R(oe){oe&&!this.getSchema(oe)&&await w.call(this,{$ref:oe},!0)}async function C(oe){try{return this._compileSchemaEnv(oe)}catch(L){if(!(L instanceof s.default))throw L;return X.call(this,L),await Z.call(this,L.missingSchema),C.call(this,oe)}}function X({missingSchema:oe,missingRef:L}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${L} cannot be resolved`)}async function Z(oe){
658
658
  const L=await ie.call(this,oe);this.refs[oe]||await R.call(this,L.$schema),this.refs[oe]||this.addSchema(L,oe,V)}async function ie(oe){const L=this._loading[oe];if(L)return L;try{return await(this._loading[oe]=x(oe))}finally{delete this._loading[oe]}}}addSchema(A,V,x,w=this.opts.validateSchema){if(Array.isArray(A)){for(const C of A)this.addSchema(C,void 0,x,w);return this}let R;if(typeof A=="object"){const{schemaId:C}=this.opts;if(R=A[C],R!==void 0&&typeof R!="string")throw new Error(`schema ${C}\
659
- must be string`)}return V=(0,c.normalizeId)(V||R),this._checkUnique(V),this.schemas[V]=this._addSchema(A,x,V,w,!0),this}addMetaSchema(A,V,x=this.opts.validateSchema){return this.addSchema(A,V,!0,x),this}validateSchema(A,V){if(typeof A=="boolean")return!0;let x;if(x=A.$schema,x!==void 0&&typeof x!="string")throw new Error("$schema must be a string");if(x=x||this.opts.defaultMeta||this.defaultMeta(),!x)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(
659
+ must be string`)}return V=(0,u.normalizeId)(V||R),this._checkUnique(V),this.schemas[V]=this._addSchema(A,x,V,w,!0),this}addMetaSchema(A,V,x=this.opts.validateSchema){return this.addSchema(A,V,!0,x),this}validateSchema(A,V){if(typeof A=="boolean")return!0;let x;if(x=A.$schema,x!==void 0&&typeof x!="string")throw new Error("$schema must be a string");if(x=x||this.opts.defaultMeta||this.defaultMeta(),!x)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(
660
660
  x,A);if(!w&&V){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return w}getSchema(A){let V;for(;typeof(V=E.call(this,A))=="string";)A=V;if(V===void 0){const{schemaId:x}=this.opts,w=new o.SchemaEnv({schema:{},schemaId:x});if(V=o.resolveSchema.call(this,w,A),!V)return;this.refs[A]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(A){if(A instanceof RegExp)return this._removeAllSchemas(this.schemas,A),this._removeAllSchemas(
661
- this.refs,A),this;switch(typeof A){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,A);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[A],delete this.refs[A],this}case"object":{const V=A;this._cache.delete(V);let x=A[this.opts.schemaId];return x&&(x=(0,c.normalizeId)(x),delete this.schemas[x],delete this.refs[x]),this}default:throw new Error("ajv.removeSchema: inval\
662
- id parameter")}}addVocabulary(A){for(const V of A)this.addKeyword(V);return this}addKeyword(A,V){let x;if(typeof A=="string")x=A,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=x);else if(typeof A=="object"&&V===void 0){if(V=A,x=V.keyword,Array.isArray(x)&&!x.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(D.call(this,x,V),!V)return(0,u.eachItem)(
663
- x,R=>H.call(this,R)),this;G.call(this,V);const w={...V,type:(0,l.getJSONTypes)(V.type),schemaType:(0,l.getJSONTypes)(V.schemaType)};return(0,u.eachItem)(x,w.type.length===0?R=>H.call(this,R,w):R=>w.type.forEach(C=>H.call(this,R,w,C))),this}getKeyword(A){const V=this.RULES.all[A];return typeof V=="object"?V.definition:!!V}removeKeyword(A){const{RULES:V}=this;delete V.keywords[A],delete V.all[A];for(const x of V.rules){const w=x.rules.findIndex(R=>R.keyword===A);w>=0&&x.rules.splice(w,1)}return this}addFormat(A,V){
664
- return typeof V=="string"&&(V=new RegExp(V)),this.formats[A]=V,this}errorsText(A=this.errors,{separator:V=", ",dataVar:x="data"}={}){return!A||A.length===0?"No errors":A.map(w=>`${x}${w.instancePath} ${w.message}`).reduce((w,R)=>w+V+R)}$dataMetaSchema(A,V){const x=this.RULES.all;A=JSON.parse(JSON.stringify(A));for(const w of V){const R=w.split("/").slice(1);let C=A;for(const Y of R)C=C[Y];for(const Y in x){const Q=x[Y];if(typeof Q!="object")continue;const{$data:ie}=Q.definition,oe=C[Y];ie&&oe&&(C[Y]=
665
- se(oe))}}return A}_removeAllSchemas(A,V){for(const x in A){const w=A[x];(!V||V.test(x))&&(typeof w=="string"?delete A[x]:w&&!w.meta&&(this._cache.delete(w.schema),delete A[x]))}}_addSchema(A,V,x,w=this.opts.validateSchema,R=this.opts.addUsedSchema){let C;const{schemaId:Y}=this.opts;if(typeof A=="object")C=A[Y];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof A!="boolean")throw new Error("schema must be object or boolean")}let Q=this._cache.get(A);if(Q!==void 0)return Q;x=
666
- (0,c.normalizeId)(C||x);const ie=c.getSchemaRefs.call(this,A,x);return Q=new o.SchemaEnv({schema:A,schemaId:Y,meta:V,baseId:x,localRefs:ie}),this._cache.set(Q.schema,Q),R&&!x.startsWith("#")&&(x&&this._checkUnique(x),this.refs[x]=Q),w&&this.validateSchema(A,!0),Q}_checkUnique(A){if(this.schemas[A]||this.refs[A])throw new Error(`schema with key or id "${A}" already exists`)}_compileSchemaEnv(A){if(A.meta?this._compileMetaSchema(A):o.compileSchema.call(this,A),!A.validate)throw new Error("ajv impl\
667
- ementation error");return A.validate}_compileMetaSchema(A){const V=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,A)}finally{this.opts=V}}}$.ValidationError=n.default,$.MissingRefError=s.default,t.default=$;function v(U,A,V,x="error"){for(const w in U){const R=w;R in A&&this.logger[x](`${V}: option ${w}. ${U[R]}`)}}function E(U){return U=(0,c.normalizeId)(U),this.schemas[U]||this.refs[U]}function S(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const A in U)
661
+ this.refs,A),this;switch(typeof A){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,A);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[A],delete this.refs[A],this}case"object":{const V=A;this._cache.delete(V);let x=A[this.opts.schemaId];return x&&(x=(0,u.normalizeId)(x),delete this.schemas[x],delete this.refs[x]),this}default:throw new Error("ajv.removeSchema: inval\
662
+ id parameter")}}addVocabulary(A){for(const V of A)this.addKeyword(V);return this}addKeyword(A,V){let x;if(typeof A=="string")x=A,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=x);else if(typeof A=="object"&&V===void 0){if(V=A,x=V.keyword,Array.isArray(x)&&!x.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(D.call(this,x,V),!V)return(0,c.eachItem)(
663
+ x,R=>H.call(this,R)),this;G.call(this,V);const w={...V,type:(0,l.getJSONTypes)(V.type),schemaType:(0,l.getJSONTypes)(V.schemaType)};return(0,c.eachItem)(x,w.type.length===0?R=>H.call(this,R,w):R=>w.type.forEach(C=>H.call(this,R,w,C))),this}getKeyword(A){const V=this.RULES.all[A];return typeof V=="object"?V.definition:!!V}removeKeyword(A){const{RULES:V}=this;delete V.keywords[A],delete V.all[A];for(const x of V.rules){const w=x.rules.findIndex(R=>R.keyword===A);w>=0&&x.rules.splice(w,1)}return this}addFormat(A,V){
664
+ return typeof V=="string"&&(V=new RegExp(V)),this.formats[A]=V,this}errorsText(A=this.errors,{separator:V=", ",dataVar:x="data"}={}){return!A||A.length===0?"No errors":A.map(w=>`${x}${w.instancePath} ${w.message}`).reduce((w,R)=>w+V+R)}$dataMetaSchema(A,V){const x=this.RULES.all;A=JSON.parse(JSON.stringify(A));for(const w of V){const R=w.split("/").slice(1);let C=A;for(const X of R)C=C[X];for(const X in x){const Z=x[X];if(typeof Z!="object")continue;const{$data:ie}=Z.definition,oe=C[X];ie&&oe&&(C[X]=
665
+ se(oe))}}return A}_removeAllSchemas(A,V){for(const x in A){const w=A[x];(!V||V.test(x))&&(typeof w=="string"?delete A[x]:w&&!w.meta&&(this._cache.delete(w.schema),delete A[x]))}}_addSchema(A,V,x,w=this.opts.validateSchema,R=this.opts.addUsedSchema){let C;const{schemaId:X}=this.opts;if(typeof A=="object")C=A[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof A!="boolean")throw new Error("schema must be object or boolean")}let Z=this._cache.get(A);if(Z!==void 0)return Z;x=
666
+ (0,u.normalizeId)(C||x);const ie=u.getSchemaRefs.call(this,A,x);return Z=new o.SchemaEnv({schema:A,schemaId:X,meta:V,baseId:x,localRefs:ie}),this._cache.set(Z.schema,Z),R&&!x.startsWith("#")&&(x&&this._checkUnique(x),this.refs[x]=Z),w&&this.validateSchema(A,!0),Z}_checkUnique(A){if(this.schemas[A]||this.refs[A])throw new Error(`schema with key or id "${A}" already exists`)}_compileSchemaEnv(A){if(A.meta?this._compileMetaSchema(A):o.compileSchema.call(this,A),!A.validate)throw new Error("ajv impl\
667
+ ementation error");return A.validate}_compileMetaSchema(A){const V=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,A)}finally{this.opts=V}}}$.ValidationError=n.default,$.MissingRefError=s.default,t.default=$;function v(U,A,V,x="error"){for(const w in U){const R=w;R in A&&this.logger[x](`${V}: option ${w}. ${U[R]}`)}}function E(U){return U=(0,u.normalizeId)(U),this.schemas[U]||this.refs[U]}function S(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const A in U)
668
668
  this.addSchema(U[A],A)}function I(){for(const U in this.opts.formats){const A=this.opts.formats[U];A&&this.addFormat(U,A)}}function F(U){if(Array.isArray(U)){this.addVocabulary(U);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const A in U){const V=U[A];V.keyword||(V.keyword=A),this.addKeyword(V)}}function B(){const U={...this.opts};for(const A of b)delete U[A];return U}const k={log(){},warn(){},error(){}};function M(U){if(U===!1)return k;if(U===void 0)return console;
669
- if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const j=/^[a-z_$][a-z0-9_$:-]*$/i;function D(U,A){const{RULES:V}=this;if((0,u.eachItem)(U,x=>{if(V.keywords[x])throw new Error(`Keyword ${x} is already defined`);if(!j.test(x))throw new Error(`Keyword ${x} has invalid name`)}),!!A&&A.$data&&!("code"in A||"validate"in A))throw new Error('$data keyword must have "code" or "validate" function')}function H(U,A,V){var x;const w=A?.post;if(V&&w)throw new Error(
670
- 'keyword with "post" flag cannot have "type"');const{RULES:R}=this;let C=w?R.post:R.rules.find(({type:Q})=>Q===V);if(C||(C={type:V,rules:[]},R.rules.push(C)),R.keywords[U]=!0,!A)return;const Y={keyword:U,definition:{...A,type:(0,l.getJSONTypes)(A.type),schemaType:(0,l.getJSONTypes)(A.schemaType)}};A.before?K.call(this,C,Y,A.before):C.rules.push(Y),R.all[U]=Y,(x=A.implements)===null||x===void 0||x.forEach(Q=>this.addKeyword(Q))}function K(U,A,V){const x=U.rules.findIndex(w=>w.keyword===V);x>=0?U.
671
- rules.splice(x,0,A):(U.rules.push(A),this.logger.warn(`rule ${V} is not defined`))}function G(U){let{metaSchema:A}=U;A!==void 0&&(U.$data&&this.opts.$data&&(A=se(A)),U.validateSchema=this.compile(A,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(U){return{anyOf:[U,X]}}}(Di)),Di}var _n={},$n={},vn={},xu;function Zg(){if(xu)return vn;xu=1,Object.defineProperty(vn,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('\
672
- NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return vn.default=t,vn}var Et={},Mu;function Bi(){if(Mu)return Et;Mu=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.callRef=Et.getValidate=void 0;const t=Ir(),e=Qe(),r=he(),n=Xe(),s=gn(),i=_e(),o={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:d,it:h}=l,{baseId:y,schemaEnv:b,validateName:_,opts:f,self:g}=h,{root:p}=b;if((d==="#"||d==="#/")&&y===p.baseId)return $();const m=s.resolveRef.call(g,p,y,d);if(m===void 0)throw new t.
673
- default(h.opts.uriResolver,y,d);if(m instanceof s.SchemaEnv)return v(m);return E(m);function $(){if(b===p)return c(l,_,b,b.$async);const S=u.scopeValue("root",{ref:p});return c(l,(0,r._)`${S}.validate`,p,p.$async)}function v(S){const I=a(l,S);c(l,I,S,S.$async)}function E(S){const I=u.scopeValue("schema",f.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),F=u.name("valid"),B=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:I,errSchemaPath:d},F);l.mergeEvaluated(B),l.ok(F)}}};
674
- function a(l,u){const{gen:d}=l;return u.validate?d.scopeValue("validate",{ref:u.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:u})}.validate`}Et.getValidate=a;function c(l,u,d,h){const{gen:y,it:b}=l,{allErrors:_,schemaEnv:f,opts:g}=b,p=g.passContext?n.default.this:r.nil;h?m():$();function m(){if(!f.$async)throw new Error("async schema referenced by sync schema");const S=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,e.callValidateCode)(l,u,p)}`),E(u),_||y.assign(S,!0)},I=>{y.if((0,r._)`!(${I} instanceof ${b.
675
- ValidationError})`,()=>y.throw(I)),v(I),_||y.assign(S,!1)}),l.ok(S)}function $(){l.result((0,e.callValidateCode)(l,u,p),()=>E(u),()=>v(u))}function v(S){const I=(0,r._)`${S}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${I} : ${n.default.vErrors}.concat(${I})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(S){var I;if(!b.opts.unevaluated)return;const F=(I=d?.validate)===null||I===void 0?void 0:I.evaluated;if(b.props!==!0)if(F&&!F.dynamicProps)
676
- F.props!==void 0&&(b.props=i.mergeEvaluated.props(y,F.props,b.props));else{const B=y.var("props",(0,r._)`${S}.evaluated.props`);b.props=i.mergeEvaluated.props(y,B,b.props,r.Name)}if(b.items!==!0)if(F&&!F.dynamicItems)F.items!==void 0&&(b.items=i.mergeEvaluated.items(y,F.items,b.items));else{const B=y.var("items",(0,r._)`${S}.evaluated.items`);b.items=i.mergeEvaluated.items(y,B,b.items,r.Name)}}}return Et.callRef=c,Et.default=o,Et}var qu;function Hu(){if(qu)return $n;qu=1,Object.defineProperty($n,
677
- "__esModule",{value:!0});const t=Zg(),e=Bi(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return $n.default=r,$n}var bn={},wn={},Uu;function ey(){if(Uu)return wn;Uu=1,Object.defineProperty(wn,"__esModule",{value:!0});const t=he(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:i,schemaCode:o})=>(0,t.
678
- str)`must be ${r[i].okStr} ${o}`,params:({keyword:i,schemaCode:o})=>(0,t._)`{comparison: ${r[i].okStr}, limit: ${o}}`},s={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:o,data:a,schemaCode:c}=i;i.fail$data((0,t._)`${a} ${r[o].fail} ${c} || isNaN(${a})`)}};return wn.default=s,wn}var En={},Fu;function ty(){if(Fu)return En;Fu=1,Object.defineProperty(En,"__esModule",{value:!0});const t=he(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,
679
- error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:s,data:i,schemaCode:o,it:a}=n,c=a.opts.multipleOfPrecision,l=s.let("res"),u=c?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,t._)`${l} !== parseInt(${l})`;n.fail$data((0,t._)`(${o} === 0 || (${l} = ${i}/${o}, ${u}))`)}};return En.default=r,En}var Sn={},Rn={},Vu;function ry(){if(Vu)return Rn;Vu=1,Object.defineProperty(Rn,"__esModule",{value:!0});function t(e){
680
- const r=e.length;let n=0,s=0,i;for(;s<r;)n++,i=e.charCodeAt(s++),i>=55296&&i<=56319&&s<r&&(i=e.charCodeAt(s),(i&64512)===56320&&s++);return n}return Rn.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',Rn}var zu;function ny(){if(zu)return Sn;zu=1,Object.defineProperty(Sn,"__esModule",{value:!0});const t=he(),e=_e(),r=ry(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:o}){const a=i==="maxLength"?"more":"fewer";
681
- return(0,t.str)`must NOT have ${a} than ${o} characters`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){const{keyword:o,data:a,schemaCode:c,it:l}=i,u=o==="maxLength"?t.operators.GT:t.operators.LT,d=l.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,e.useFunc)(i.gen,r.default)}(${a})`;i.fail$data((0,t._)`${d} ${u} ${c}`)}};return Sn.default=s,Sn}var An={},Gu;function sy(){if(Gu)return An;Gu=1,Object.defineProperty(An,"__esModule",{value:!0});const t=Qe(),e=he(),n={keyword:"pattern",
682
- type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,e._)`{pattern: ${s}}`},code(s){const{data:i,$data:o,schema:a,schemaCode:c,it:l}=s,u=l.opts.unicodeRegExp?"u":"",d=o?(0,e._)`(new RegExp(${c}, ${u}))`:(0,t.usePattern)(s,a);s.fail$data((0,e._)`!${d}.test(${i})`)}};return An.default=n,An}var On={},Bu;function iy(){if(Bu)return On;Bu=1,Object.defineProperty(On,"__esModule",{value:!0});const t=he(),r={keyword:[
683
- "maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${i}).length ${a} ${o}`)}};return On.default=r,On}var Cn={},Wu;function oy(){if(Wu)return Cn;Wu=1,Object.
684
- defineProperty(Cn,"__esModule",{value:!0});const t=Qe(),e=he(),r=_e(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,e.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,e._)`{missingProperty: ${i}}`},code(i){const{gen:o,schema:a,schemaCode:c,data:l,$data:u,it:d}=i,{opts:h}=d;if(!u&&a.length===0)return;const y=a.length>=h.loopRequired;if(d.allErrors?b():_(),h.strictRequired){const p=i.parentSchema.
685
- properties,{definedProperties:m}=i.it;for(const $ of a)if(p?.[$]===void 0&&!m.has($)){const v=d.schemaEnv.baseId+d.errSchemaPath,E=`required property "${$}" is not defined at "${v}" (strictRequired)`;(0,r.checkStrictMode)(d,E,d.opts.strictRequired)}}function b(){if(y||u)i.block$data(e.nil,f);else for(const p of a)(0,t.checkReportMissingProp)(i,p)}function _(){const p=o.let("missing");if(y||u){const m=o.let("valid",!0);i.block$data(m,()=>g(p,m)),i.ok(m)}else o.if((0,t.checkMissingProp)(i,a,p)),(0,t.
686
- reportMissingProp)(i,p),o.else()}function f(){o.forOf("prop",c,p=>{i.setParams({missingProperty:p}),o.if((0,t.noPropertyInData)(o,l,p,h.ownProperties),()=>i.error())})}function g(p,m){i.setParams({missingProperty:p}),o.forOf(p,c,()=>{o.assign(m,(0,t.propertyInData)(o,l,p,h.ownProperties)),o.if((0,e.not)(m),()=>{i.error(),o.break()})},e.nil)}}};return Cn.default=s,Cn}var Pn={},Ku;function ay(){if(Ku)return Pn;Ku=1,Object.defineProperty(Pn,"__esModule",{value:!0});const t=he(),r={keyword:["maxItem\
687
- s","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${i}.length ${a} ${o}`)}};return Pn.default=r,Pn}var In={},Tn={},Yu;function Wi(){if(Yu)return Tn;Yu=1,Object.defineProperty(Tn,"__esModule",{value:!0});
688
- const t=yu();return t.code='require("ajv/dist/runtime/equal").default',Tn.default=t,Tn}var Xu;function cy(){if(Xu)return In;Xu=1,Object.defineProperty(In,"__esModule",{value:!0});const t=fn(),e=he(),r=_e(),n=Wi(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:a}})=>(0,e.str)`must NOT have duplicate items (items ## ${a} and ${o} are identical)`,params:({params:{i:o,j:a}})=>(0,e._)`{i: ${o}, j: ${a}}`},code(o){const{gen:a,data:c,$data:l,schema:u,
689
- parentSchema:d,schemaCode:h,it:y}=o;if(!l&&!u)return;const b=a.let("valid"),_=d.items?(0,t.getSchemaTypes)(d.items):[];o.block$data(b,f,(0,e._)`${h} === false`),o.ok(b);function f(){const $=a.let("i",(0,e._)`${c}.length`),v=a.let("j");o.setParams({i:$,j:v}),a.assign(b,!0),a.if((0,e._)`${$} > 1`,()=>(g()?p:m)($,v))}function g(){return _.length>0&&!_.some($=>$==="object"||$==="array")}function p($,v){const E=a.name("item"),S=(0,t.checkDataTypes)(_,E,y.opts.strictNumbers,t.DataType.Wrong),I=a.const(
690
- "indices",(0,e._)`{}`);a.for((0,e._)`;${$}--;`,()=>{a.let(E,(0,e._)`${c}[${$}]`),a.if(S,(0,e._)`continue`),_.length>1&&a.if((0,e._)`typeof ${E} == "string"`,(0,e._)`${E} += "_"`),a.if((0,e._)`typeof ${I}[${E}] == "number"`,()=>{a.assign(v,(0,e._)`${I}[${E}]`),o.error(),a.assign(b,!1).break()}).code((0,e._)`${I}[${E}] = ${$}`)})}function m($,v){const E=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,e._)`;${$}--;`,()=>a.for((0,e._)`${v} = ${$}; ${v}--;`,()=>a.if((0,e._)`${E}(${c}[${$}], ${c}[${v}])`,
691
- ()=>{o.error(),a.assign(b,!1).break(S)})))}}};return In.default=i,In}var Nn={},Ju;function uy(){if(Ju)return Nn;Ju=1,Object.defineProperty(Nn,"__esModule",{value:!0});const t=he(),e=_e(),r=Wi(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,t._)`{allowedValue: ${i}}`},code(i){const{gen:o,data:a,$data:c,schemaCode:l,schema:u}=i;c||u&&typeof u=="object"?i.fail$data((0,t._)`!${(0,e.useFunc)(o,r.default)}(${a}, ${l})`):i.fail((0,t._)`${u} !== ${a}`)}};
692
- return Nn.default=s,Nn}var jn={},Qu;function ly(){if(Qu)return jn;Qu=1,Object.defineProperty(jn,"__esModule",{value:!0});const t=he(),e=_e(),r=Wi(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,t._)`{allowedValues: ${i}}`},code(i){const{gen:o,data:a,$data:c,schema:l,schemaCode:u,it:d}=i;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const h=l.length>=d.opts.loopEnum;let y;const b=()=>y??
693
- (y=(0,e.useFunc)(o,r.default));let _;if(h||c)_=o.let("valid"),i.block$data(_,f);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const p=o.const("vSchema",u);_=(0,t.or)(...l.map((m,$)=>g(p,$)))}i.pass(_);function f(){o.assign(_,!1),o.forOf("v",u,p=>o.if((0,t._)`${b()}(${a}, ${p})`,()=>o.assign(_,!0).break()))}function g(p,m){const $=l[m];return typeof $=="object"&&$!==null?(0,t._)`${b()}(${a}, ${p}[${m}])`:(0,t._)`${a} === ${$}`}}};return jn.default=s,jn}var Zu;function el(){
694
- if(Zu)return bn;Zu=1,Object.defineProperty(bn,"__esModule",{value:!0});const t=ey(),e=ty(),r=ny(),n=sy(),s=iy(),i=oy(),o=ay(),a=cy(),c=uy(),l=ly(),u=[t.default,e.default,r.default,n.default,s.default,i.default,o.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return bn.default=u,bn}var Ln={},er={},tl;function rl(){if(tl)return er;tl=1,Object.defineProperty(er,"__esModule",{value:!0}),er.validateAdditionalItems=void 0;
695
- const t=he(),e=_e(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{parentSchema:o,it:a}=i,{items:c}=o;if(!Array.isArray(c)){(0,e.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(i,c)}};function s(i,o){const{gen:a,schema:c,data:l,keyword:u,it:d}=i;d.items=
696
- !0;const h=a.const("len",(0,t._)`${l}.length`);if(c===!1)i.setParams({len:o.length}),i.pass((0,t._)`${h} <= ${o.length}`);else if(typeof c=="object"&&!(0,e.alwaysValidSchema)(d,c)){const b=a.var("valid",(0,t._)`${h} <= ${o.length}`);a.if((0,t.not)(b),()=>y(b)),i.ok(b)}function y(b){a.forRange("i",o.length,h,_=>{i.subschema({keyword:u,dataProp:_,dataPropType:e.Type.Num},b),d.allErrors||a.if((0,t.not)(b),()=>a.break())})}}return er.validateAdditionalItems=s,er.default=n,er}var kn={},tr={},nl;function sl(){
697
- if(nl)return tr;nl=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.validateTuple=void 0;const t=he(),e=_e(),r=Qe(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:o,it:a}=i;if(Array.isArray(o))return s(i,"additionalItems",o);a.items=!0,!(0,e.alwaysValidSchema)(a,o)&&i.ok((0,r.validateArray)(i))}};function s(i,o,a=i.schema){const{gen:c,parentSchema:l,data:u,keyword:d,it:h}=i;_(l),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.
698
- items=e.mergeEvaluated.items(c,a.length,h.items));const y=c.name("valid"),b=c.const("len",(0,t._)`${u}.length`);a.forEach((f,g)=>{(0,e.alwaysValidSchema)(h,f)||(c.if((0,t._)`${b} > ${g}`,()=>i.subschema({keyword:d,schemaProp:g,dataProp:g},y)),i.ok(y))});function _(f){const{opts:g,errSchemaPath:p}=h,m=a.length,$=m===f.minItems&&(m===f.maxItems||f[o]===!1);if(g.strictTuples&&!$){const v=`"${d}" is ${m}-tuple, but minItems or maxItems/${o} are not specified or different at path "${p}"`;(0,e.checkStrictMode)(
699
- h,v,g.strictTuples)}}}return tr.validateTuple=s,tr.default=n,tr}var il;function fy(){if(il)return kn;il=1,Object.defineProperty(kn,"__esModule",{value:!0});const t=sl(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return kn.default=e,kn}var Dn={},ol;function dy(){if(ol)return Dn;ol=1,Object.defineProperty(Dn,"__esModule",{value:!0});const t=he(),e=_e(),r=Qe(),n=rl(),i={keyword:"items",type:"array",schemaType:["object","bo\
700
- olean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){const{schema:a,parentSchema:c,it:l}=o,{prefixItems:u}=c;l.items=!0,!(0,e.alwaysValidSchema)(l,a)&&(u?(0,n.validateAdditionalItems)(o,u):o.ok((0,r.validateArray)(o)))}};return Dn.default=i,Dn}var xn={},al;function hy(){if(al)return xn;al=1,Object.defineProperty(xn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"contains",
701
- type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:i}})=>i===void 0?(0,t.str)`must contain at least ${s} valid item(s)`:(0,t.str)`must contain at least ${s} and no more than ${i} valid item(s)`,params:({params:{min:s,max:i}})=>i===void 0?(0,t._)`{minContains: ${s}}`:(0,t._)`{minContains: ${s}, maxContains: ${i}}`},code(s){const{gen:i,schema:o,parentSchema:a,data:c,it:l}=s;let u,d;const{minContains:h,maxContains:y}=a;l.opts.next?(u=
702
- h===void 0?1:h,d=y):u=1;const b=i.const("len",(0,t._)`${c}.length`);if(s.setParams({min:u,max:d}),d===void 0&&u===0){(0,e.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&u>d){(0,e.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,e.alwaysValidSchema)(l,o)){let m=(0,t._)`${b} >= ${u}`;d!==void 0&&(m=(0,t._)`${m} && ${b} <= ${d}`),s.pass(m);return}l.items=!0;const _=i.name("valid");d===void 0&&
703
- u===1?g(_,()=>i.if(_,()=>i.break())):u===0?(i.let(_,!0),d!==void 0&&i.if((0,t._)`${c}.length > 0`,f)):(i.let(_,!1),f()),s.result(_,()=>s.reset());function f(){const m=i.name("_valid"),$=i.let("count",0);g(m,()=>i.if(m,()=>p($)))}function g(m,$){i.forRange("i",0,b,v=>{s.subschema({keyword:"contains",dataProp:v,dataPropType:e.Type.Num,compositeRule:!0},m),$()})}function p(m){i.code((0,t._)`${m}++`),d===void 0?i.if((0,t._)`${m} >= ${u}`,()=>i.assign(_,!0).break()):(i.if((0,t._)`${m} > ${d}`,()=>i.assign(
704
- _,!1).break()),u===1?i.assign(_,!0):i.if((0,t._)`${m} >= ${u}`,()=>i.assign(_,!0)))}}};return xn.default=n,xn}var Ki={},cl;function Yi(){return cl||(cl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=he(),r=_e(),n=Qe();t.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,e.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,
705
- deps:u,missingProperty:d}})=>(0,e._)`{property: ${c},
669
+ if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const j=/^[a-z_$][a-z0-9_$:-]*$/i;function D(U,A){const{RULES:V}=this;if((0,c.eachItem)(U,x=>{if(V.keywords[x])throw new Error(`Keyword ${x} is already defined`);if(!j.test(x))throw new Error(`Keyword ${x} has invalid name`)}),!!A&&A.$data&&!("code"in A||"validate"in A))throw new Error('$data keyword must have "code" or "validate" function')}function H(U,A,V){var x;const w=A?.post;if(V&&w)throw new Error(
670
+ 'keyword with "post" flag cannot have "type"');const{RULES:R}=this;let C=w?R.post:R.rules.find(({type:Z})=>Z===V);if(C||(C={type:V,rules:[]},R.rules.push(C)),R.keywords[U]=!0,!A)return;const X={keyword:U,definition:{...A,type:(0,l.getJSONTypes)(A.type),schemaType:(0,l.getJSONTypes)(A.schemaType)}};A.before?Y.call(this,C,X,A.before):C.rules.push(X),R.all[U]=X,(x=A.implements)===null||x===void 0||x.forEach(Z=>this.addKeyword(Z))}function Y(U,A,V){const x=U.rules.findIndex(w=>w.keyword===V);x>=0?U.
671
+ rules.splice(x,0,A):(U.rules.push(A),this.logger.warn(`rule ${V} is not defined`))}function G(U){let{metaSchema:A}=U;A!==void 0&&(U.$data&&this.opts.$data&&(A=se(A)),U.validateSchema=this.compile(A,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(U){return{anyOf:[U,J]}}}(xi)),xi}var $n={},vn={},bn={},Mu;function ry(){if(Mu)return bn;Mu=1,Object.defineProperty(bn,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('\
672
+ NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return bn.default=t,bn}var Et={},qu;function Wi(){if(qu)return Et;qu=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.callRef=Et.getValidate=void 0;const t=Ir(),e=Qe(),r=he(),n=Xe(),s=yn(),i=_e(),o={keyword:"$ref",schemaType:"string",code(l){const{gen:c,schema:d,it:h}=l,{baseId:_,schemaEnv:b,validateName:y,opts:f,self:g}=h,{root:p}=b;if((d==="#"||d==="#/")&&_===p.baseId)return $();const m=s.resolveRef.call(g,p,_,d);if(m===void 0)throw new t.
673
+ default(h.opts.uriResolver,_,d);if(m instanceof s.SchemaEnv)return v(m);return E(m);function $(){if(b===p)return u(l,y,b,b.$async);const S=c.scopeValue("root",{ref:p});return u(l,(0,r._)`${S}.validate`,p,p.$async)}function v(S){const I=a(l,S);u(l,I,S,S.$async)}function E(S){const I=c.scopeValue("schema",f.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),F=c.name("valid"),B=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:I,errSchemaPath:d},F);l.mergeEvaluated(B),l.ok(F)}}};
674
+ function a(l,c){const{gen:d}=l;return c.validate?d.scopeValue("validate",{ref:c.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:c})}.validate`}Et.getValidate=a;function u(l,c,d,h){const{gen:_,it:b}=l,{allErrors:y,schemaEnv:f,opts:g}=b,p=g.passContext?n.default.this:r.nil;h?m():$();function m(){if(!f.$async)throw new Error("async schema referenced by sync schema");const S=_.let("valid");_.try(()=>{_.code((0,r._)`await ${(0,e.callValidateCode)(l,c,p)}`),E(c),y||_.assign(S,!0)},I=>{_.if((0,r._)`!(${I} instanceof ${b.
675
+ ValidationError})`,()=>_.throw(I)),v(I),y||_.assign(S,!1)}),l.ok(S)}function $(){l.result((0,e.callValidateCode)(l,c,p),()=>E(c),()=>v(c))}function v(S){const I=(0,r._)`${S}.errors`;_.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${I} : ${n.default.vErrors}.concat(${I})`),_.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(S){var I;if(!b.opts.unevaluated)return;const F=(I=d?.validate)===null||I===void 0?void 0:I.evaluated;if(b.props!==!0)if(F&&!F.dynamicProps)
676
+ F.props!==void 0&&(b.props=i.mergeEvaluated.props(_,F.props,b.props));else{const B=_.var("props",(0,r._)`${S}.evaluated.props`);b.props=i.mergeEvaluated.props(_,B,b.props,r.Name)}if(b.items!==!0)if(F&&!F.dynamicItems)F.items!==void 0&&(b.items=i.mergeEvaluated.items(_,F.items,b.items));else{const B=_.var("items",(0,r._)`${S}.evaluated.items`);b.items=i.mergeEvaluated.items(_,B,b.items,r.Name)}}}return Et.callRef=u,Et.default=o,Et}var Hu;function Uu(){if(Hu)return vn;Hu=1,Object.defineProperty(vn,
677
+ "__esModule",{value:!0});const t=ry(),e=Wi(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return vn.default=r,vn}var wn={},En={},Fu;function ny(){if(Fu)return En;Fu=1,Object.defineProperty(En,"__esModule",{value:!0});const t=he(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:i,schemaCode:o})=>(0,t.
678
+ str)`must be ${r[i].okStr} ${o}`,params:({keyword:i,schemaCode:o})=>(0,t._)`{comparison: ${r[i].okStr}, limit: ${o}}`},s={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:o,data:a,schemaCode:u}=i;i.fail$data((0,t._)`${a} ${r[o].fail} ${u} || isNaN(${a})`)}};return En.default=s,En}var Sn={},Vu;function sy(){if(Vu)return Sn;Vu=1,Object.defineProperty(Sn,"__esModule",{value:!0});const t=he(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,
679
+ error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:s,data:i,schemaCode:o,it:a}=n,u=a.opts.multipleOfPrecision,l=s.let("res"),c=u?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${u}`:(0,t._)`${l} !== parseInt(${l})`;n.fail$data((0,t._)`(${o} === 0 || (${l} = ${i}/${o}, ${c}))`)}};return Sn.default=r,Sn}var Rn={},An={},zu;function iy(){if(zu)return An;zu=1,Object.defineProperty(An,"__esModule",{value:!0});function t(e){
680
+ const r=e.length;let n=0,s=0,i;for(;s<r;)n++,i=e.charCodeAt(s++),i>=55296&&i<=56319&&s<r&&(i=e.charCodeAt(s),(i&64512)===56320&&s++);return n}return An.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',An}var Gu;function oy(){if(Gu)return Rn;Gu=1,Object.defineProperty(Rn,"__esModule",{value:!0});const t=he(),e=_e(),r=iy(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:o}){const a=i==="maxLength"?"more":"fewer";
681
+ return(0,t.str)`must NOT have ${a} than ${o} characters`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){const{keyword:o,data:a,schemaCode:u,it:l}=i,c=o==="maxLength"?t.operators.GT:t.operators.LT,d=l.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,e.useFunc)(i.gen,r.default)}(${a})`;i.fail$data((0,t._)`${d} ${c} ${u}`)}};return Rn.default=s,Rn}var On={},Bu;function ay(){if(Bu)return On;Bu=1,Object.defineProperty(On,"__esModule",{value:!0});const t=Qe(),e=he(),n={keyword:"pattern",
682
+ type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,e._)`{pattern: ${s}}`},code(s){const{data:i,$data:o,schema:a,schemaCode:u,it:l}=s,c=l.opts.unicodeRegExp?"u":"",d=o?(0,e._)`(new RegExp(${u}, ${c}))`:(0,t.usePattern)(s,a);s.fail$data((0,e._)`!${d}.test(${i})`)}};return On.default=n,On}var Cn={},Wu;function cy(){if(Wu)return Cn;Wu=1,Object.defineProperty(Cn,"__esModule",{value:!0});const t=he(),r={keyword:[
683
+ "maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${i}).length ${a} ${o}`)}};return Cn.default=r,Cn}var Pn={},Ku;function uy(){if(Ku)return Pn;Ku=1,Object.
684
+ defineProperty(Pn,"__esModule",{value:!0});const t=Qe(),e=he(),r=_e(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,e.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,e._)`{missingProperty: ${i}}`},code(i){const{gen:o,schema:a,schemaCode:u,data:l,$data:c,it:d}=i,{opts:h}=d;if(!c&&a.length===0)return;const _=a.length>=h.loopRequired;if(d.allErrors?b():y(),h.strictRequired){const p=i.parentSchema.
685
+ properties,{definedProperties:m}=i.it;for(const $ of a)if(p?.[$]===void 0&&!m.has($)){const v=d.schemaEnv.baseId+d.errSchemaPath,E=`required property "${$}" is not defined at "${v}" (strictRequired)`;(0,r.checkStrictMode)(d,E,d.opts.strictRequired)}}function b(){if(_||c)i.block$data(e.nil,f);else for(const p of a)(0,t.checkReportMissingProp)(i,p)}function y(){const p=o.let("missing");if(_||c){const m=o.let("valid",!0);i.block$data(m,()=>g(p,m)),i.ok(m)}else o.if((0,t.checkMissingProp)(i,a,p)),(0,t.
686
+ reportMissingProp)(i,p),o.else()}function f(){o.forOf("prop",u,p=>{i.setParams({missingProperty:p}),o.if((0,t.noPropertyInData)(o,l,p,h.ownProperties),()=>i.error())})}function g(p,m){i.setParams({missingProperty:p}),o.forOf(p,u,()=>{o.assign(m,(0,t.propertyInData)(o,l,p,h.ownProperties)),o.if((0,e.not)(m),()=>{i.error(),o.break()})},e.nil)}}};return Pn.default=s,Pn}var In={},Yu;function ly(){if(Yu)return In;Yu=1,Object.defineProperty(In,"__esModule",{value:!0});const t=he(),r={keyword:["maxItem\
687
+ s","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${i}.length ${a} ${o}`)}};return In.default=r,In}var Tn={},Nn={},Xu;function Ki(){if(Xu)return Nn;Xu=1,Object.defineProperty(Nn,"__esModule",{value:!0});
688
+ const t=_u();return t.code='require("ajv/dist/runtime/equal").default',Nn.default=t,Nn}var Ju;function fy(){if(Ju)return Tn;Ju=1,Object.defineProperty(Tn,"__esModule",{value:!0});const t=dn(),e=he(),r=_e(),n=Ki(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:a}})=>(0,e.str)`must NOT have duplicate items (items ## ${a} and ${o} are identical)`,params:({params:{i:o,j:a}})=>(0,e._)`{i: ${o}, j: ${a}}`},code(o){const{gen:a,data:u,$data:l,schema:c,
689
+ parentSchema:d,schemaCode:h,it:_}=o;if(!l&&!c)return;const b=a.let("valid"),y=d.items?(0,t.getSchemaTypes)(d.items):[];o.block$data(b,f,(0,e._)`${h} === false`),o.ok(b);function f(){const $=a.let("i",(0,e._)`${u}.length`),v=a.let("j");o.setParams({i:$,j:v}),a.assign(b,!0),a.if((0,e._)`${$} > 1`,()=>(g()?p:m)($,v))}function g(){return y.length>0&&!y.some($=>$==="object"||$==="array")}function p($,v){const E=a.name("item"),S=(0,t.checkDataTypes)(y,E,_.opts.strictNumbers,t.DataType.Wrong),I=a.const(
690
+ "indices",(0,e._)`{}`);a.for((0,e._)`;${$}--;`,()=>{a.let(E,(0,e._)`${u}[${$}]`),a.if(S,(0,e._)`continue`),y.length>1&&a.if((0,e._)`typeof ${E} == "string"`,(0,e._)`${E} += "_"`),a.if((0,e._)`typeof ${I}[${E}] == "number"`,()=>{a.assign(v,(0,e._)`${I}[${E}]`),o.error(),a.assign(b,!1).break()}).code((0,e._)`${I}[${E}] = ${$}`)})}function m($,v){const E=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,e._)`;${$}--;`,()=>a.for((0,e._)`${v} = ${$}; ${v}--;`,()=>a.if((0,e._)`${E}(${u}[${$}], ${u}[${v}])`,
691
+ ()=>{o.error(),a.assign(b,!1).break(S)})))}}};return Tn.default=i,Tn}var jn={},Qu;function dy(){if(Qu)return jn;Qu=1,Object.defineProperty(jn,"__esModule",{value:!0});const t=he(),e=_e(),r=Ki(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,t._)`{allowedValue: ${i}}`},code(i){const{gen:o,data:a,$data:u,schemaCode:l,schema:c}=i;u||c&&typeof c=="object"?i.fail$data((0,t._)`!${(0,e.useFunc)(o,r.default)}(${a}, ${l})`):i.fail((0,t._)`${c} !== ${a}`)}};
692
+ return jn.default=s,jn}var Ln={},Zu;function hy(){if(Zu)return Ln;Zu=1,Object.defineProperty(Ln,"__esModule",{value:!0});const t=he(),e=_e(),r=Ki(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,t._)`{allowedValues: ${i}}`},code(i){const{gen:o,data:a,$data:u,schema:l,schemaCode:c,it:d}=i;if(!u&&l.length===0)throw new Error("enum must have non-empty array");const h=l.length>=d.opts.loopEnum;let _;const b=()=>_??
693
+ (_=(0,e.useFunc)(o,r.default));let y;if(h||u)y=o.let("valid"),i.block$data(y,f);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const p=o.const("vSchema",c);y=(0,t.or)(...l.map((m,$)=>g(p,$)))}i.pass(y);function f(){o.assign(y,!1),o.forOf("v",c,p=>o.if((0,t._)`${b()}(${a}, ${p})`,()=>o.assign(y,!0).break()))}function g(p,m){const $=l[m];return typeof $=="object"&&$!==null?(0,t._)`${b()}(${a}, ${p}[${m}])`:(0,t._)`${a} === ${$}`}}};return Ln.default=s,Ln}var el;function tl(){
694
+ if(el)return wn;el=1,Object.defineProperty(wn,"__esModule",{value:!0});const t=ny(),e=sy(),r=oy(),n=ay(),s=cy(),i=uy(),o=ly(),a=fy(),u=dy(),l=hy(),c=[t.default,e.default,r.default,n.default,s.default,i.default,o.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,l.default];return wn.default=c,wn}var kn={},er={},rl;function nl(){if(rl)return er;rl=1,Object.defineProperty(er,"__esModule",{value:!0}),er.validateAdditionalItems=void 0;
695
+ const t=he(),e=_e(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{parentSchema:o,it:a}=i,{items:u}=o;if(!Array.isArray(u)){(0,e.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(i,u)}};function s(i,o){const{gen:a,schema:u,data:l,keyword:c,it:d}=i;d.items=
696
+ !0;const h=a.const("len",(0,t._)`${l}.length`);if(u===!1)i.setParams({len:o.length}),i.pass((0,t._)`${h} <= ${o.length}`);else if(typeof u=="object"&&!(0,e.alwaysValidSchema)(d,u)){const b=a.var("valid",(0,t._)`${h} <= ${o.length}`);a.if((0,t.not)(b),()=>_(b)),i.ok(b)}function _(b){a.forRange("i",o.length,h,y=>{i.subschema({keyword:c,dataProp:y,dataPropType:e.Type.Num},b),d.allErrors||a.if((0,t.not)(b),()=>a.break())})}}return er.validateAdditionalItems=s,er.default=n,er}var Dn={},tr={},sl;function il(){
697
+ if(sl)return tr;sl=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.validateTuple=void 0;const t=he(),e=_e(),r=Qe(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:o,it:a}=i;if(Array.isArray(o))return s(i,"additionalItems",o);a.items=!0,!(0,e.alwaysValidSchema)(a,o)&&i.ok((0,r.validateArray)(i))}};function s(i,o,a=i.schema){const{gen:u,parentSchema:l,data:c,keyword:d,it:h}=i;y(l),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.
698
+ items=e.mergeEvaluated.items(u,a.length,h.items));const _=u.name("valid"),b=u.const("len",(0,t._)`${c}.length`);a.forEach((f,g)=>{(0,e.alwaysValidSchema)(h,f)||(u.if((0,t._)`${b} > ${g}`,()=>i.subschema({keyword:d,schemaProp:g,dataProp:g},_)),i.ok(_))});function y(f){const{opts:g,errSchemaPath:p}=h,m=a.length,$=m===f.minItems&&(m===f.maxItems||f[o]===!1);if(g.strictTuples&&!$){const v=`"${d}" is ${m}-tuple, but minItems or maxItems/${o} are not specified or different at path "${p}"`;(0,e.checkStrictMode)(
699
+ h,v,g.strictTuples)}}}return tr.validateTuple=s,tr.default=n,tr}var ol;function py(){if(ol)return Dn;ol=1,Object.defineProperty(Dn,"__esModule",{value:!0});const t=il(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return Dn.default=e,Dn}var xn={},al;function my(){if(al)return xn;al=1,Object.defineProperty(xn,"__esModule",{value:!0});const t=he(),e=_e(),r=Qe(),n=nl(),i={keyword:"items",type:"array",schemaType:["object","bo\
700
+ olean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){const{schema:a,parentSchema:u,it:l}=o,{prefixItems:c}=u;l.items=!0,!(0,e.alwaysValidSchema)(l,a)&&(c?(0,n.validateAdditionalItems)(o,c):o.ok((0,r.validateArray)(o)))}};return xn.default=i,xn}var Mn={},cl;function gy(){if(cl)return Mn;cl=1,Object.defineProperty(Mn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"contains",
701
+ type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:i}})=>i===void 0?(0,t.str)`must contain at least ${s} valid item(s)`:(0,t.str)`must contain at least ${s} and no more than ${i} valid item(s)`,params:({params:{min:s,max:i}})=>i===void 0?(0,t._)`{minContains: ${s}}`:(0,t._)`{minContains: ${s}, maxContains: ${i}}`},code(s){const{gen:i,schema:o,parentSchema:a,data:u,it:l}=s;let c,d;const{minContains:h,maxContains:_}=a;l.opts.next?(c=
702
+ h===void 0?1:h,d=_):c=1;const b=i.const("len",(0,t._)`${u}.length`);if(s.setParams({min:c,max:d}),d===void 0&&c===0){(0,e.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&c>d){(0,e.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,e.alwaysValidSchema)(l,o)){let m=(0,t._)`${b} >= ${c}`;d!==void 0&&(m=(0,t._)`${m} && ${b} <= ${d}`),s.pass(m);return}l.items=!0;const y=i.name("valid");d===void 0&&
703
+ c===1?g(y,()=>i.if(y,()=>i.break())):c===0?(i.let(y,!0),d!==void 0&&i.if((0,t._)`${u}.length > 0`,f)):(i.let(y,!1),f()),s.result(y,()=>s.reset());function f(){const m=i.name("_valid"),$=i.let("count",0);g(m,()=>i.if(m,()=>p($)))}function g(m,$){i.forRange("i",0,b,v=>{s.subschema({keyword:"contains",dataProp:v,dataPropType:e.Type.Num,compositeRule:!0},m),$()})}function p(m){i.code((0,t._)`${m}++`),d===void 0?i.if((0,t._)`${m} >= ${c}`,()=>i.assign(y,!0).break()):(i.if((0,t._)`${m} > ${d}`,()=>i.assign(
704
+ y,!1).break()),c===1?i.assign(y,!0):i.if((0,t._)`${m} >= ${c}`,()=>i.assign(y,!0)))}}};return Mn.default=n,Mn}var Yi={},ul;function Xi(){return ul||(ul=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=he(),r=_e(),n=Qe();t.error={message:({params:{property:u,depsCount:l,deps:c}})=>{const d=l===1?"property":"properties";return(0,e.str)`must have ${d} ${c} when property ${u} is present`},params:({params:{property:u,depsCount:l,
705
+ deps:c,missingProperty:d}})=>(0,e._)`{property: ${u},
706
706
  missingProperty: ${d},
707
707
  depsCount: ${l},
708
- deps: ${u}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[l,u]=i(c);o(c,l),a(c,u)}};function i({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const h=Array.isArray(c[d])?l:u;h[d]=c[d]}return[l,u]}function o(c,l=c.schema){const{gen:u,data:d,it:h}=c;if(Object.keys(l).length===0)return;const y=u.let("missing");for(const b in l){const _=l[b];if(_.length===0)continue;const f=(0,n.propertyInData)(u,d,b,h.opts.ownProperties);
709
- c.setParams({property:b,depsCount:_.length,deps:_.join(", ")}),h.allErrors?u.if(f,()=>{for(const g of _)(0,n.checkReportMissingProp)(c,g)}):(u.if((0,e._)`${f} && (${(0,n.checkMissingProp)(c,_,y)})`),(0,n.reportMissingProp)(c,y),u.else())}}t.validatePropertyDeps=o;function a(c,l=c.schema){const{gen:u,data:d,keyword:h,it:y}=c,b=u.name("valid");for(const _ in l)(0,r.alwaysValidSchema)(y,l[_])||(u.if((0,n.propertyInData)(u,d,_,y.opts.ownProperties),()=>{const f=c.subschema({keyword:h,schemaProp:_},b);
710
- c.mergeValidEvaluated(f,b)},()=>u.var(b,!0)),c.ok(b))}t.validateSchemaDeps=a,t.default=s}(Ki)),Ki}var Mn={},ul;function py(){if(ul)return Mn;ul=1,Object.defineProperty(Mn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,t._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:i,schema:o,data:a,it:c}=s;if((0,e.alwaysValidSchema)(c,o))return;const l=i.name("va\
711
- lid");i.forIn("key",a,u=>{s.setParams({propertyName:u}),s.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),i.if((0,t.not)(l),()=>{s.error(!0),c.allErrors||i.break()})}),s.ok(l)}};return Mn.default=n,Mn}var qn={},ll;function fl(){if(ll)return qn;ll=1,Object.defineProperty(qn,"__esModule",{value:!0});const t=Qe(),e=he(),r=Xe(),n=_e(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{
712
- message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:c,parentSchema:l,data:u,errsCount:d,it:h}=o;if(!d)throw new Error("ajv implementation error");const{allErrors:y,opts:b}=h;if(h.props=!0,b.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,c))return;const _=(0,t.allSchemaProperties)(l.properties),f=(0,t.allSchemaProperties)(l.patternProperties);g(),o.ok((0,e._)`${d} === ${r.default.errors}`);function g(){
713
- a.forIn("key",u,E=>{!_.length&&!f.length?$(E):a.if(p(E),()=>$(E))})}function p(E){let S;if(_.length>8){const I=(0,n.schemaRefOrVal)(h,l.properties,"properties");S=(0,t.isOwnProperty)(a,I,E)}else _.length?S=(0,e.or)(..._.map(I=>(0,e._)`${E} === ${I}`)):S=e.nil;return f.length&&(S=(0,e.or)(S,...f.map(I=>(0,e._)`${(0,t.usePattern)(o,I)}.test(${E})`))),(0,e.not)(S)}function m(E){a.code((0,e._)`delete ${u}[${E}]`)}function $(E){if(b.removeAdditional==="all"||b.removeAdditional&&c===!1){m(E);return}if(c===
714
- !1){o.setParams({additionalProperty:E}),o.error(),y||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(h,c)){const S=a.name("valid");b.removeAdditional==="failing"?(v(E,S,!1),a.if((0,e.not)(S),()=>{o.reset(),m(E)})):(v(E,S),y||a.if((0,e.not)(S),()=>a.break()))}}function v(E,S,I){const F={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};I===!1&&Object.assign(F,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(F,S)}}};return qn.default=i,qn}var Hn={},dl;
715
- function my(){if(dl)return Hn;dl=1,Object.defineProperty(Hn,"__esModule",{value:!0});const t=Pr(),e=Qe(),r=_e(),n=fl(),s={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:c,data:l,it:u}=i;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(a);for(const f of d)u.definedProperties.add(f);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=
716
- r.mergeEvaluated.props(o,(0,r.toHash)(d),u.props));const h=d.filter(f=>!(0,r.alwaysValidSchema)(u,a[f]));if(h.length===0)return;const y=o.name("valid");for(const f of h)b(f)?_(f):(o.if((0,e.propertyInData)(o,l,f,u.opts.ownProperties)),_(f),u.allErrors||o.else().var(y,!0),o.endIf()),i.it.definedProperties.add(f),i.ok(y);function b(f){return u.opts.useDefaults&&!u.compositeRule&&a[f].default!==void 0}function _(f){i.subschema({keyword:"properties",schemaProp:f,dataProp:f},y)}}};return Hn.default=s,
717
- Hn}var Un={},hl;function gy(){if(hl)return Un;hl=1,Object.defineProperty(Un,"__esModule",{value:!0});const t=Qe(),e=he(),r=_e(),n=_e(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:c,parentSchema:l,it:u}=i,{opts:d}=u,h=(0,t.allSchemaProperties)(a),y=h.filter($=>(0,r.alwaysValidSchema)(u,a[$]));if(h.length===0||y.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const b=d.strictSchema&&!d.allowMatchingProperties&&l.properties,_=o.name(
718
- "valid");u.props!==!0&&!(u.props instanceof e.Name)&&(u.props=(0,n.evaluatedPropsToName)(o,u.props));const{props:f}=u;g();function g(){for(const $ of h)b&&p($),u.allErrors?m($):(o.var(_,!0),m($),o.if(_))}function p($){for(const v in b)new RegExp($).test(v)&&(0,r.checkStrictMode)(u,`property ${v} matches pattern ${$} (use allowMatchingProperties)`)}function m($){o.forIn("key",c,v=>{o.if((0,e._)`${(0,t.usePattern)(i,$)}.test(${v})`,()=>{const E=y.includes($);E||i.subschema({keyword:"patternPropert\
719
- ies",schemaProp:$,dataProp:v,dataPropType:n.Type.Str},_),u.opts.unevaluated&&f!==!0?o.assign((0,e._)`${f}[${v}]`,!0):!E&&!u.allErrors&&o.if((0,e.not)(_),()=>o.break())})})}}};return Un.default=s,Un}var Fn={},pl;function yy(){if(pl)return Fn;pl=1,Object.defineProperty(Fn,"__esModule",{value:!0});const t=_e(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:s,it:i}=r;if((0,t.alwaysValidSchema)(i,s)){r.fail();return}const o=n.name("valid");r.subschema({keyword:"\
720
- not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Fn.default=e,Fn}var Vn={},ml;function _y(){if(ml)return Vn;ml=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Qe().validateUnion,error:{message:"must match a schema in anyOf"}};return Vn.default=e,Vn}var zn={},gl;function $y(){if(gl)return zn;gl=1,Object.defineProperty(zn,"__esModule",{value:!0});
721
- const t=he(),e=_e(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,t._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:i,schema:o,parentSchema:a,it:c}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const l=o,u=i.let("valid",!1),d=i.let("passing",null),h=i.name("_valid");s.setParams({passing:d}),i.block(y),s.result(u,()=>s.reset(),()=>s.error(
722
- !0));function y(){l.forEach((b,_)=>{let f;(0,e.alwaysValidSchema)(c,b)?i.var(h,!0):f=s.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},h),_>0&&i.if((0,t._)`${h} && ${u}`).assign(u,!1).assign(d,(0,t._)`[${d}, ${_}]`).else(),i.if(h,()=>{i.assign(u,!0),i.assign(d,_),f&&s.mergeEvaluated(f,t.Name)})})}}};return zn.default=n,zn}var Gn={},yl;function vy(){if(yl)return Gn;yl=1,Object.defineProperty(Gn,"__esModule",{value:!0});const t=_e(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,
723
- schema:s,it:i}=r;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=n.name("valid");s.forEach((a,c)=>{if((0,t.alwaysValidSchema)(i,a))return;const l=r.subschema({keyword:"allOf",schemaProp:c},o);r.ok(o),r.mergeEvaluated(l)})}};return Gn.default=e,Gn}var Bn={},_l;function by(){if(_l)return Bn;_l=1,Object.defineProperty(Bn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,t.str)`must match "${i.
724
- ifClause}" schema`,params:({params:i})=>(0,t._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:o,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=s(c,"then"),u=s(c,"else");if(!l&&!u)return;const d=o.let("valid",!0),h=o.name("_valid");if(y(),i.reset(),l&&u){const _=o.let("ifClause");i.setParams({ifClause:_}),o.if(h,b("then",_),b("else",_))}else l?o.if(h,b("then")):o.if((0,t.not)(h),b("else"));i.pass(d,()=>i.
725
- error(!0));function y(){const _=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);i.mergeEvaluated(_)}function b(_,f){return()=>{const g=i.subschema({keyword:_},h);o.assign(d,h),i.mergeValidEvaluated(g,d),f?o.assign(f,(0,t._)`${_}`):i.setParams({ifClause:_})}}}};function s(i,o){const a=i.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(i,a)}return Bn.default=n,Bn}var Wn={},$l;function wy(){if($l)return Wn;$l=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t=_e(),
726
- e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:s}){n.if===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "if" is ignored`)}};return Wn.default=e,Wn}var vl;function bl(){if(vl)return Ln;vl=1,Object.defineProperty(Ln,"__esModule",{value:!0});const t=rl(),e=fy(),r=sl(),n=dy(),s=hy(),i=Yi(),o=py(),a=fl(),c=my(),l=gy(),u=yy(),d=_y(),h=$y(),y=vy(),b=by(),_=wy();function f(g=!1){const p=[u.default,d.default,h.default,y.default,b.default,_.default,o.default,
727
- a.default,i.default,c.default,l.default];return g?p.push(e.default,n.default):p.push(t.default,r.default),p.push(s.default),p}return Ln.default=f,Ln}var Kn={},rr={},wl;function El(){if(wl)return rr;wl=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.dynamicAnchor=void 0;const t=he(),e=Xe(),r=gn(),n=Bi(),s={keyword:"$dynamicAnchor",schemaType:"string",code:a=>i(a,a.schema)};function i(a,c){const{gen:l,it:u}=a;u.schemaEnv.root.dynamicAnchors[c]=!0;const d=(0,t._)`${e.default.dynamicAnchors}${(0,t.
728
- getProperty)(c)}`,h=u.errSchemaPath==="#"?u.validateName:o(a);l.if((0,t._)`!${d}`,()=>l.assign(d,h))}rr.dynamicAnchor=i;function o(a){const{schemaEnv:c,schema:l,self:u}=a.it,{root:d,baseId:h,localRefs:y,meta:b}=c.root,{schemaId:_}=u.opts,f=new r.SchemaEnv({schema:l,schemaId:_,root:d,baseId:h,localRefs:y,meta:b});return r.compileSchema.call(u,f),(0,n.getValidate)(a,f)}return rr.default=s,rr}var nr={},Sl;function Rl(){if(Sl)return nr;Sl=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.dynamicRef=
729
- void 0;const t=he(),e=Xe(),r=Bi(),n={keyword:"$dynamicRef",schemaType:"string",code:i=>s(i,i.schema)};function s(i,o){const{gen:a,keyword:c,it:l}=i;if(o[0]!=="#")throw new Error(`"${c}" only supports hash fragment reference`);const u=o.slice(1);if(l.allErrors)d();else{const y=a.let("valid",!1);d(y),i.ok(y)}function d(y){if(l.schemaEnv.root.dynamicAnchors[u]){const b=a.let("_v",(0,t._)`${e.default.dynamicAnchors}${(0,t.getProperty)(u)}`);a.if(b,h(b,y),h(l.validateName,y))}else h(l.validateName,y)()}
730
- function h(y,b){return b?()=>a.block(()=>{(0,r.callRef)(i,y),a.let(b,!0)}):()=>(0,r.callRef)(i,y)}}return nr.dynamicRef=s,nr.default=n,nr}var Yn={},Al;function Ey(){if(Al)return Yn;Al=1,Object.defineProperty(Yn,"__esModule",{value:!0});const t=El(),e=_e(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,t.dynamicAnchor)(n,""):(0,e.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return Yn.default=r,Yn}var Xn={},Ol;function Sy(){if(Ol)return Xn;Ol=1,Object.defineProperty(
731
- Xn,"__esModule",{value:!0});const t=Rl(),e={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,t.dynamicRef)(r,r.schema)};return Xn.default=e,Xn}var Cl;function Ry(){if(Cl)return Kn;Cl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const t=El(),e=Rl(),r=Ey(),n=Sy(),s=[t.default,e.default,r.default,n.default];return Kn.default=s,Kn}var Jn={},Qn={},Pl;function Ay(){if(Pl)return Qn;Pl=1,Object.defineProperty(Qn,"__esModule",{value:!0});const t=Yi(),e={keyword:"dependentRequired",type:"obje\
732
- ct",schemaType:"object",error:t.error,code:r=>(0,t.validatePropertyDeps)(r)};return Qn.default=e,Qn}var Zn={},Il;function Oy(){if(Il)return Zn;Il=1,Object.defineProperty(Zn,"__esModule",{value:!0});const t=Yi(),e={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,t.validateSchemaDeps)(r)};return Zn.default=e,Zn}var es={},Tl;function Cy(){if(Tl)return es;Tl=1,Object.defineProperty(es,"__esModule",{value:!0});const t=_e(),e={keyword:["maxContains","minContains"],type:"array",
733
- schemaType:"number",code({keyword:r,parentSchema:n,it:s}){n.contains===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "contains" is ignored`)}};return es.default=e,es}var Nl;function Py(){if(Nl)return Jn;Nl=1,Object.defineProperty(Jn,"__esModule",{value:!0});const t=Ay(),e=Oy(),r=Cy(),n=[t.default,e.default,r.default];return Jn.default=n,Jn}var ts={},rs={},jl;function Iy(){if(jl)return rs;jl=1,Object.defineProperty(rs,"__esModule",{value:!0});const t=he(),e=_e(),r=Xe(),s={keyword:"unevaluatedPr\
734
- operties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:i})=>(0,t._)`{unevaluatedProperty: ${i.unevaluatedProperty}}`},code(i){const{gen:o,schema:a,data:c,errsCount:l,it:u}=i;if(!l)throw new Error("ajv implementation error");const{allErrors:d,props:h}=u;h instanceof t.Name?o.if((0,t._)`${h} !== true`,()=>o.forIn("key",c,f=>o.if(b(h,f),()=>y(f)))):h!==!0&&o.forIn("key",c,f=>h===void 0?y(f):o.if(_(h,f),()=>y(f))),
735
- u.props=!0,i.ok((0,t._)`${l} === ${r.default.errors}`);function y(f){if(a===!1){i.setParams({unevaluatedProperty:f}),i.error(),d||o.break();return}if(!(0,e.alwaysValidSchema)(u,a)){const g=o.name("valid");i.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:e.Type.Str},g),d||o.if((0,t.not)(g),()=>o.break())}}function b(f,g){return(0,t._)`!${f} || !${f}[${g}]`}function _(f,g){const p=[];for(const m in f)f[m]===!0&&p.push((0,t._)`${g} !== ${m}`);return(0,t.and)(...p)}}};return rs.default=
736
- s,rs}var ns={},Ll;function Ty(){if(Ll)return ns;Ll=1,Object.defineProperty(ns,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{gen:i,schema:o,data:a,it:c}=s,l=c.items||0;if(l===!0)return;const u=i.const("len",(0,t._)`${a}.length`);if(o===!1)s.setParams({len:l}),s.fail((0,t._)`${u} > ${l}`);else if(typeof o==
737
- "object"&&!(0,e.alwaysValidSchema)(c,o)){const h=i.var("valid",(0,t._)`${u} <= ${l}`);i.if((0,t.not)(h),()=>d(h,l)),s.ok(h)}c.items=!0;function d(h,y){i.forRange("i",y,u,b=>{s.subschema({keyword:"unevaluatedItems",dataProp:b,dataPropType:e.Type.Num},h),c.allErrors||i.if((0,t.not)(h),()=>i.break())})}}};return ns.default=n,ns}var kl;function Ny(){if(kl)return ts;kl=1,Object.defineProperty(ts,"__esModule",{value:!0});const t=Iy(),e=Ty(),r=[t.default,e.default];return ts.default=r,ts}var ss={},is={},
738
- Dl;function jy(){if(Dl)return is;Dl=1,Object.defineProperty(is,"__esModule",{value:!0});const t=he(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,s){const{gen:i,data:o,$data:a,schema:c,schemaCode:l,it:u}=n,{opts:d,errSchemaPath:h,schemaEnv:y,self:b}=u;if(!d.validateFormats)return;a?_():f();function _(){const g=i.scopeValue("formats",{ref:b.formats,
739
- code:d.code.formats}),p=i.const("fDef",(0,t._)`${g}[${l}]`),m=i.let("fType"),$=i.let("format");i.if((0,t._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>i.assign(m,(0,t._)`${p}.type || "string"`).assign($,(0,t._)`${p}.validate`),()=>i.assign(m,(0,t._)`"string"`).assign($,p)),n.fail$data((0,t.or)(v(),E()));function v(){return d.strictSchema===!1?t.nil:(0,t._)`${l} && !${$}`}function E(){const S=y.$async?(0,t._)`(${p}.async ? await ${$}(${o}) : ${$}(${o}))`:(0,t._)`${$}(${o})`,I=(0,t.
740
- _)`(typeof ${$} == "function" ? ${S} : ${$}.test(${o}))`;return(0,t._)`${$} && ${$} !== true && ${m} === ${s} && !${I}`}}function f(){const g=b.formats[c];if(!g){v();return}if(g===!0)return;const[p,m,$]=E(g);p===s&&n.pass(S());function v(){if(d.strictSchema===!1){b.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function E(I){const F=I instanceof RegExp?(0,t.regexpCode)(I):d.code.formats?(0,t._)`${d.code.formats}${(0,t.getProperty)(
741
- c)}`:void 0,B=i.scopeValue("formats",{key:c,ref:I,code:F});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,t._)`${B}.validate`]:["string",I,B]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!y.$async)throw new Error("async format in sync schema");return(0,t._)`await ${$}(${o})`}return typeof m=="function"?(0,t._)`${$}(${o})`:(0,t._)`${$}.test(${o})`}}}};return is.default=r,is}var xl;function Ml(){if(xl)return ss;xl=1,Object.defineProperty(
742
- ss,"__esModule",{value:!0});const e=[jy().default];return ss.default=e,ss}var Vt={},ql;function Hl(){return ql||(ql=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.contentVocabulary=Vt.metadataVocabulary=void 0,Vt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Vt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Vt}var Ul;function Ly(){if(Ul)return _n;Ul=1,Object.defineProperty(_n,"__esModule",{value:!0});const t=Hu(),
743
- e=el(),r=bl(),n=Ry(),s=Py(),i=Ny(),o=Ml(),a=Hl(),c=[n.default,t.default,e.default,(0,r.default)(!0),o.default,a.metadataVocabulary,a.contentVocabulary,s.default,i.default];return _n.default=c,_n}var os={},Nr={},Fl;function ky(){if(Fl)return Nr;Fl=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.DiscrError=void 0;var t;return function(e){e.Tag="tag",e.Mapping="mapping"}(t||(Nr.DiscrError=t={})),Nr}var Vl;function zl(){if(Vl)return os;Vl=1,Object.defineProperty(os,"__esModule",{value:!0});const t=he(),
744
- e=ky(),r=gn(),n=Ir(),s=_e(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===e.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:l}})=>(0,t._)`{error: ${a}, tag: ${l}, tagValue: ${c}}`},code(a){const{gen:c,data:l,schema:u,parentSchema:d,it:h}=a,{oneOf:y}=d;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=u.
745
- propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const _=c.let("valid",!1),f=c.const("tag",(0,t._)`${l}${(0,t.getProperty)(b)}`);c.if((0,t._)`typeof ${f} == "string"`,()=>g(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:f,tagName:b})),a.ok(_);function g(){const $=m();c.if(!1);for(const v in $)c.elseIf((0,t._)`${f} === ${v}`),
746
- c.assign(_,p($[v]));c.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:f,tagName:b}),c.endIf()}function p($){const v=c.name("valid"),E=a.subschema({keyword:"oneOf",schemaProp:$},v);return a.mergeEvaluated(E,t.Name),v}function m(){var $;const v={},E=I(d);let S=!0;for(let k=0;k<y.length;k++){let M=y[k];if(M?.$ref&&!(0,s.schemaHasRulesButRef)(M,h.self.RULES)){const D=M.$ref;if(M=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,D),M instanceof r.SchemaEnv&&(M=M.schema),M===void 0)throw new n.
708
+ deps: ${c}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(u){const[l,c]=i(u);o(u,l),a(u,c)}};function i({schema:u}){const l={},c={};for(const d in u){if(d==="__proto__")continue;const h=Array.isArray(u[d])?l:c;h[d]=u[d]}return[l,c]}function o(u,l=u.schema){const{gen:c,data:d,it:h}=u;if(Object.keys(l).length===0)return;const _=c.let("missing");for(const b in l){const y=l[b];if(y.length===0)continue;const f=(0,n.propertyInData)(c,d,b,h.opts.ownProperties);
709
+ u.setParams({property:b,depsCount:y.length,deps:y.join(", ")}),h.allErrors?c.if(f,()=>{for(const g of y)(0,n.checkReportMissingProp)(u,g)}):(c.if((0,e._)`${f} && (${(0,n.checkMissingProp)(u,y,_)})`),(0,n.reportMissingProp)(u,_),c.else())}}t.validatePropertyDeps=o;function a(u,l=u.schema){const{gen:c,data:d,keyword:h,it:_}=u,b=c.name("valid");for(const y in l)(0,r.alwaysValidSchema)(_,l[y])||(c.if((0,n.propertyInData)(c,d,y,_.opts.ownProperties),()=>{const f=u.subschema({keyword:h,schemaProp:y},b);
710
+ u.mergeValidEvaluated(f,b)},()=>c.var(b,!0)),u.ok(b))}t.validateSchemaDeps=a,t.default=s}(Yi)),Yi}var qn={},ll;function yy(){if(ll)return qn;ll=1,Object.defineProperty(qn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,t._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:i,schema:o,data:a,it:u}=s;if((0,e.alwaysValidSchema)(u,o))return;const l=i.name("va\
711
+ lid");i.forIn("key",a,c=>{s.setParams({propertyName:c}),s.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},l),i.if((0,t.not)(l),()=>{s.error(!0),u.allErrors||i.break()})}),s.ok(l)}};return qn.default=n,qn}var Hn={},fl;function dl(){if(fl)return Hn;fl=1,Object.defineProperty(Hn,"__esModule",{value:!0});const t=Qe(),e=he(),r=Xe(),n=_e(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{
712
+ message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:u,parentSchema:l,data:c,errsCount:d,it:h}=o;if(!d)throw new Error("ajv implementation error");const{allErrors:_,opts:b}=h;if(h.props=!0,b.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,u))return;const y=(0,t.allSchemaProperties)(l.properties),f=(0,t.allSchemaProperties)(l.patternProperties);g(),o.ok((0,e._)`${d} === ${r.default.errors}`);function g(){
713
+ a.forIn("key",c,E=>{!y.length&&!f.length?$(E):a.if(p(E),()=>$(E))})}function p(E){let S;if(y.length>8){const I=(0,n.schemaRefOrVal)(h,l.properties,"properties");S=(0,t.isOwnProperty)(a,I,E)}else y.length?S=(0,e.or)(...y.map(I=>(0,e._)`${E} === ${I}`)):S=e.nil;return f.length&&(S=(0,e.or)(S,...f.map(I=>(0,e._)`${(0,t.usePattern)(o,I)}.test(${E})`))),(0,e.not)(S)}function m(E){a.code((0,e._)`delete ${c}[${E}]`)}function $(E){if(b.removeAdditional==="all"||b.removeAdditional&&u===!1){m(E);return}if(u===
714
+ !1){o.setParams({additionalProperty:E}),o.error(),_||a.break();return}if(typeof u=="object"&&!(0,n.alwaysValidSchema)(h,u)){const S=a.name("valid");b.removeAdditional==="failing"?(v(E,S,!1),a.if((0,e.not)(S),()=>{o.reset(),m(E)})):(v(E,S),_||a.if((0,e.not)(S),()=>a.break()))}}function v(E,S,I){const F={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};I===!1&&Object.assign(F,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(F,S)}}};return Hn.default=i,Hn}var Un={},hl;
715
+ function _y(){if(hl)return Un;hl=1,Object.defineProperty(Un,"__esModule",{value:!0});const t=Pr(),e=Qe(),r=_e(),n=dl(),s={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:u,data:l,it:c}=i;c.opts.removeAdditional==="all"&&u.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(c,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(a);for(const f of d)c.definedProperties.add(f);c.opts.unevaluated&&d.length&&c.props!==!0&&(c.props=
716
+ r.mergeEvaluated.props(o,(0,r.toHash)(d),c.props));const h=d.filter(f=>!(0,r.alwaysValidSchema)(c,a[f]));if(h.length===0)return;const _=o.name("valid");for(const f of h)b(f)?y(f):(o.if((0,e.propertyInData)(o,l,f,c.opts.ownProperties)),y(f),c.allErrors||o.else().var(_,!0),o.endIf()),i.it.definedProperties.add(f),i.ok(_);function b(f){return c.opts.useDefaults&&!c.compositeRule&&a[f].default!==void 0}function y(f){i.subschema({keyword:"properties",schemaProp:f,dataProp:f},_)}}};return Un.default=s,
717
+ Un}var Fn={},pl;function $y(){if(pl)return Fn;pl=1,Object.defineProperty(Fn,"__esModule",{value:!0});const t=Qe(),e=he(),r=_e(),n=_e(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:u,parentSchema:l,it:c}=i,{opts:d}=c,h=(0,t.allSchemaProperties)(a),_=h.filter($=>(0,r.alwaysValidSchema)(c,a[$]));if(h.length===0||_.length===h.length&&(!c.opts.unevaluated||c.props===!0))return;const b=d.strictSchema&&!d.allowMatchingProperties&&l.properties,y=o.name(
718
+ "valid");c.props!==!0&&!(c.props instanceof e.Name)&&(c.props=(0,n.evaluatedPropsToName)(o,c.props));const{props:f}=c;g();function g(){for(const $ of h)b&&p($),c.allErrors?m($):(o.var(y,!0),m($),o.if(y))}function p($){for(const v in b)new RegExp($).test(v)&&(0,r.checkStrictMode)(c,`property ${v} matches pattern ${$} (use allowMatchingProperties)`)}function m($){o.forIn("key",u,v=>{o.if((0,e._)`${(0,t.usePattern)(i,$)}.test(${v})`,()=>{const E=_.includes($);E||i.subschema({keyword:"patternPropert\
719
+ ies",schemaProp:$,dataProp:v,dataPropType:n.Type.Str},y),c.opts.unevaluated&&f!==!0?o.assign((0,e._)`${f}[${v}]`,!0):!E&&!c.allErrors&&o.if((0,e.not)(y),()=>o.break())})})}}};return Fn.default=s,Fn}var Vn={},ml;function vy(){if(ml)return Vn;ml=1,Object.defineProperty(Vn,"__esModule",{value:!0});const t=_e(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:s,it:i}=r;if((0,t.alwaysValidSchema)(i,s)){r.fail();return}const o=n.name("valid");r.subschema({keyword:"\
720
+ not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Vn.default=e,Vn}var zn={},gl;function by(){if(gl)return zn;gl=1,Object.defineProperty(zn,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Qe().validateUnion,error:{message:"must match a schema in anyOf"}};return zn.default=e,zn}var Gn={},yl;function wy(){if(yl)return Gn;yl=1,Object.defineProperty(Gn,"__esModule",{value:!0});
721
+ const t=he(),e=_e(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,t._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:i,schema:o,parentSchema:a,it:u}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(u.opts.discriminator&&a.discriminator)return;const l=o,c=i.let("valid",!1),d=i.let("passing",null),h=i.name("_valid");s.setParams({passing:d}),i.block(_),s.result(c,()=>s.reset(),()=>s.error(
722
+ !0));function _(){l.forEach((b,y)=>{let f;(0,e.alwaysValidSchema)(u,b)?i.var(h,!0):f=s.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},h),y>0&&i.if((0,t._)`${h} && ${c}`).assign(c,!1).assign(d,(0,t._)`[${d}, ${y}]`).else(),i.if(h,()=>{i.assign(c,!0),i.assign(d,y),f&&s.mergeEvaluated(f,t.Name)})})}}};return Gn.default=n,Gn}var Bn={},_l;function Ey(){if(_l)return Bn;_l=1,Object.defineProperty(Bn,"__esModule",{value:!0});const t=_e(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,
723
+ schema:s,it:i}=r;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=n.name("valid");s.forEach((a,u)=>{if((0,t.alwaysValidSchema)(i,a))return;const l=r.subschema({keyword:"allOf",schemaProp:u},o);r.ok(o),r.mergeEvaluated(l)})}};return Bn.default=e,Bn}var Wn={},$l;function Sy(){if($l)return Wn;$l=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,t.str)`must match "${i.
724
+ ifClause}" schema`,params:({params:i})=>(0,t._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:o,parentSchema:a,it:u}=i;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(u,'"if" without "then" and "else" is ignored');const l=s(u,"then"),c=s(u,"else");if(!l&&!c)return;const d=o.let("valid",!0),h=o.name("_valid");if(_(),i.reset(),l&&c){const y=o.let("ifClause");i.setParams({ifClause:y}),o.if(h,b("then",y),b("else",y))}else l?o.if(h,b("then")):o.if((0,t.not)(h),b("else"));i.pass(d,()=>i.
725
+ error(!0));function _(){const y=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);i.mergeEvaluated(y)}function b(y,f){return()=>{const g=i.subschema({keyword:y},h);o.assign(d,h),i.mergeValidEvaluated(g,d),f?o.assign(f,(0,t._)`${y}`):i.setParams({ifClause:y})}}}};function s(i,o){const a=i.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(i,a)}return Wn.default=n,Wn}var Kn={},vl;function Ry(){if(vl)return Kn;vl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const t=_e(),
726
+ e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:s}){n.if===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "if" is ignored`)}};return Kn.default=e,Kn}var bl;function wl(){if(bl)return kn;bl=1,Object.defineProperty(kn,"__esModule",{value:!0});const t=nl(),e=py(),r=il(),n=my(),s=gy(),i=Xi(),o=yy(),a=dl(),u=_y(),l=$y(),c=vy(),d=by(),h=wy(),_=Ey(),b=Sy(),y=Ry();function f(g=!1){const p=[c.default,d.default,h.default,_.default,b.default,y.default,o.default,
727
+ a.default,i.default,u.default,l.default];return g?p.push(e.default,n.default):p.push(t.default,r.default),p.push(s.default),p}return kn.default=f,kn}var Yn={},rr={},El;function Sl(){if(El)return rr;El=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.dynamicAnchor=void 0;const t=he(),e=Xe(),r=yn(),n=Wi(),s={keyword:"$dynamicAnchor",schemaType:"string",code:a=>i(a,a.schema)};function i(a,u){const{gen:l,it:c}=a;c.schemaEnv.root.dynamicAnchors[u]=!0;const d=(0,t._)`${e.default.dynamicAnchors}${(0,t.
728
+ getProperty)(u)}`,h=c.errSchemaPath==="#"?c.validateName:o(a);l.if((0,t._)`!${d}`,()=>l.assign(d,h))}rr.dynamicAnchor=i;function o(a){const{schemaEnv:u,schema:l,self:c}=a.it,{root:d,baseId:h,localRefs:_,meta:b}=u.root,{schemaId:y}=c.opts,f=new r.SchemaEnv({schema:l,schemaId:y,root:d,baseId:h,localRefs:_,meta:b});return r.compileSchema.call(c,f),(0,n.getValidate)(a,f)}return rr.default=s,rr}var nr={},Rl;function Al(){if(Rl)return nr;Rl=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.dynamicRef=
729
+ void 0;const t=he(),e=Xe(),r=Wi(),n={keyword:"$dynamicRef",schemaType:"string",code:i=>s(i,i.schema)};function s(i,o){const{gen:a,keyword:u,it:l}=i;if(o[0]!=="#")throw new Error(`"${u}" only supports hash fragment reference`);const c=o.slice(1);if(l.allErrors)d();else{const _=a.let("valid",!1);d(_),i.ok(_)}function d(_){if(l.schemaEnv.root.dynamicAnchors[c]){const b=a.let("_v",(0,t._)`${e.default.dynamicAnchors}${(0,t.getProperty)(c)}`);a.if(b,h(b,_),h(l.validateName,_))}else h(l.validateName,_)()}
730
+ function h(_,b){return b?()=>a.block(()=>{(0,r.callRef)(i,_),a.let(b,!0)}):()=>(0,r.callRef)(i,_)}}return nr.dynamicRef=s,nr.default=n,nr}var Xn={},Ol;function Ay(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0});const t=Sl(),e=_e(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,t.dynamicAnchor)(n,""):(0,e.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return Xn.default=r,Xn}var Jn={},Cl;function Oy(){if(Cl)return Jn;Cl=1,Object.defineProperty(
731
+ Jn,"__esModule",{value:!0});const t=Al(),e={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,t.dynamicRef)(r,r.schema)};return Jn.default=e,Jn}var Pl;function Cy(){if(Pl)return Yn;Pl=1,Object.defineProperty(Yn,"__esModule",{value:!0});const t=Sl(),e=Al(),r=Ay(),n=Oy(),s=[t.default,e.default,r.default,n.default];return Yn.default=s,Yn}var Qn={},Zn={},Il;function Py(){if(Il)return Zn;Il=1,Object.defineProperty(Zn,"__esModule",{value:!0});const t=Xi(),e={keyword:"dependentRequired",type:"obje\
732
+ ct",schemaType:"object",error:t.error,code:r=>(0,t.validatePropertyDeps)(r)};return Zn.default=e,Zn}var es={},Tl;function Iy(){if(Tl)return es;Tl=1,Object.defineProperty(es,"__esModule",{value:!0});const t=Xi(),e={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,t.validateSchemaDeps)(r)};return es.default=e,es}var ts={},Nl;function Ty(){if(Nl)return ts;Nl=1,Object.defineProperty(ts,"__esModule",{value:!0});const t=_e(),e={keyword:["maxContains","minContains"],type:"array",
733
+ schemaType:"number",code({keyword:r,parentSchema:n,it:s}){n.contains===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "contains" is ignored`)}};return ts.default=e,ts}var jl;function Ny(){if(jl)return Qn;jl=1,Object.defineProperty(Qn,"__esModule",{value:!0});const t=Py(),e=Iy(),r=Ty(),n=[t.default,e.default,r.default];return Qn.default=n,Qn}var rs={},ns={},Ll;function jy(){if(Ll)return ns;Ll=1,Object.defineProperty(ns,"__esModule",{value:!0});const t=he(),e=_e(),r=Xe(),s={keyword:"unevaluatedPr\
734
+ operties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:i})=>(0,t._)`{unevaluatedProperty: ${i.unevaluatedProperty}}`},code(i){const{gen:o,schema:a,data:u,errsCount:l,it:c}=i;if(!l)throw new Error("ajv implementation error");const{allErrors:d,props:h}=c;h instanceof t.Name?o.if((0,t._)`${h} !== true`,()=>o.forIn("key",u,f=>o.if(b(h,f),()=>_(f)))):h!==!0&&o.forIn("key",u,f=>h===void 0?_(f):o.if(y(h,f),()=>_(f))),
735
+ c.props=!0,i.ok((0,t._)`${l} === ${r.default.errors}`);function _(f){if(a===!1){i.setParams({unevaluatedProperty:f}),i.error(),d||o.break();return}if(!(0,e.alwaysValidSchema)(c,a)){const g=o.name("valid");i.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:e.Type.Str},g),d||o.if((0,t.not)(g),()=>o.break())}}function b(f,g){return(0,t._)`!${f} || !${f}[${g}]`}function y(f,g){const p=[];for(const m in f)f[m]===!0&&p.push((0,t._)`${g} !== ${m}`);return(0,t.and)(...p)}}};return ns.default=
736
+ s,ns}var ss={},kl;function Ly(){if(kl)return ss;kl=1,Object.defineProperty(ss,"__esModule",{value:!0});const t=he(),e=_e(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{gen:i,schema:o,data:a,it:u}=s,l=u.items||0;if(l===!0)return;const c=i.const("len",(0,t._)`${a}.length`);if(o===!1)s.setParams({len:l}),s.fail((0,t._)`${c} > ${l}`);else if(typeof o==
737
+ "object"&&!(0,e.alwaysValidSchema)(u,o)){const h=i.var("valid",(0,t._)`${c} <= ${l}`);i.if((0,t.not)(h),()=>d(h,l)),s.ok(h)}u.items=!0;function d(h,_){i.forRange("i",_,c,b=>{s.subschema({keyword:"unevaluatedItems",dataProp:b,dataPropType:e.Type.Num},h),u.allErrors||i.if((0,t.not)(h),()=>i.break())})}}};return ss.default=n,ss}var Dl;function ky(){if(Dl)return rs;Dl=1,Object.defineProperty(rs,"__esModule",{value:!0});const t=jy(),e=Ly(),r=[t.default,e.default];return rs.default=r,rs}var is={},os={},
738
+ xl;function Dy(){if(xl)return os;xl=1,Object.defineProperty(os,"__esModule",{value:!0});const t=he(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,s){const{gen:i,data:o,$data:a,schema:u,schemaCode:l,it:c}=n,{opts:d,errSchemaPath:h,schemaEnv:_,self:b}=c;if(!d.validateFormats)return;a?y():f();function y(){const g=i.scopeValue("formats",{ref:b.formats,
739
+ code:d.code.formats}),p=i.const("fDef",(0,t._)`${g}[${l}]`),m=i.let("fType"),$=i.let("format");i.if((0,t._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>i.assign(m,(0,t._)`${p}.type || "string"`).assign($,(0,t._)`${p}.validate`),()=>i.assign(m,(0,t._)`"string"`).assign($,p)),n.fail$data((0,t.or)(v(),E()));function v(){return d.strictSchema===!1?t.nil:(0,t._)`${l} && !${$}`}function E(){const S=_.$async?(0,t._)`(${p}.async ? await ${$}(${o}) : ${$}(${o}))`:(0,t._)`${$}(${o})`,I=(0,t.
740
+ _)`(typeof ${$} == "function" ? ${S} : ${$}.test(${o}))`;return(0,t._)`${$} && ${$} !== true && ${m} === ${s} && !${I}`}}function f(){const g=b.formats[u];if(!g){v();return}if(g===!0)return;const[p,m,$]=E(g);p===s&&n.pass(S());function v(){if(d.strictSchema===!1){b.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${u}" ignored in schema at path "${h}"`}}function E(I){const F=I instanceof RegExp?(0,t.regexpCode)(I):d.code.formats?(0,t._)`${d.code.formats}${(0,t.getProperty)(
741
+ u)}`:void 0,B=i.scopeValue("formats",{key:u,ref:I,code:F});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,t._)`${B}.validate`]:["string",I,B]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!_.$async)throw new Error("async format in sync schema");return(0,t._)`await ${$}(${o})`}return typeof m=="function"?(0,t._)`${$}(${o})`:(0,t._)`${$}.test(${o})`}}}};return os.default=r,os}var Ml;function ql(){if(Ml)return is;Ml=1,Object.defineProperty(
742
+ is,"__esModule",{value:!0});const e=[Dy().default];return is.default=e,is}var Vt={},Hl;function Ul(){return Hl||(Hl=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.contentVocabulary=Vt.metadataVocabulary=void 0,Vt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Vt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Vt}var Fl;function xy(){if(Fl)return $n;Fl=1,Object.defineProperty($n,"__esModule",{value:!0});const t=Uu(),
743
+ e=tl(),r=wl(),n=Cy(),s=Ny(),i=ky(),o=ql(),a=Ul(),u=[n.default,t.default,e.default,(0,r.default)(!0),o.default,a.metadataVocabulary,a.contentVocabulary,s.default,i.default];return $n.default=u,$n}var as={},Nr={},Vl;function My(){if(Vl)return Nr;Vl=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.DiscrError=void 0;var t;return function(e){e.Tag="tag",e.Mapping="mapping"}(t||(Nr.DiscrError=t={})),Nr}var zl;function Gl(){if(zl)return as;zl=1,Object.defineProperty(as,"__esModule",{value:!0});const t=he(),
744
+ e=My(),r=yn(),n=Ir(),s=_e(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:u}})=>a===e.DiscrError.Tag?`tag "${u}" must be string`:`value of tag "${u}" must be in oneOf`,params:({params:{discrError:a,tag:u,tagName:l}})=>(0,t._)`{error: ${a}, tag: ${l}, tagValue: ${u}}`},code(a){const{gen:u,data:l,schema:c,parentSchema:d,it:h}=a,{oneOf:_}=d;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=c.
745
+ propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!_)throw new Error("discriminator: requires oneOf keyword");const y=u.let("valid",!1),f=u.const("tag",(0,t._)`${l}${(0,t.getProperty)(b)}`);u.if((0,t._)`typeof ${f} == "string"`,()=>g(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:f,tagName:b})),a.ok(y);function g(){const $=m();u.if(!1);for(const v in $)u.elseIf((0,t._)`${f} === ${v}`),
746
+ u.assign(y,p($[v]));u.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:f,tagName:b}),u.endIf()}function p($){const v=u.name("valid"),E=a.subschema({keyword:"oneOf",schemaProp:$},v);return a.mergeEvaluated(E,t.Name),v}function m(){var $;const v={},E=I(d);let S=!0;for(let k=0;k<_.length;k++){let M=_[k];if(M?.$ref&&!(0,s.schemaHasRulesButRef)(M,h.self.RULES)){const D=M.$ref;if(M=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,D),M instanceof r.SchemaEnv&&(M=M.schema),M===void 0)throw new n.
747
747
  default(h.opts.uriResolver,h.baseId,D)}const j=($=M?.properties)===null||$===void 0?void 0:$[b];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);S=S&&(E||I(M)),F(j,k)}if(!S)throw new Error(`discriminator: "${b}" must be required`);return v;function I({required:k}){return Array.isArray(k)&&k.includes(b)}function F(k,M){if(k.const)B(k.const,M);else if(k.enum)for(const j of k.enum)B(j,M);else throw new Error(`discriminator:\
748
- "properties/${b}" must have "const" or "enum"`)}function B(k,M){if(typeof k!="string"||k in v)throw new Error(`discriminator: "${b}" values must be unique strings`);v[k]=M}}}};return os.default=o,os}var as={};const Gl="https://json-schema.org/draft/2020-12/schema",Bl="https://json-schema.org/draft/2020-12/schema",Wl={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"http\
749
- s://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},Kl="meta",Yl="Core and Validation specifications meta-schema",Xl=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Jl=["object","boolean"],
750
- Ql="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Zl={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{
751
- anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},Dy={$schema:Gl,$id:Bl,$vocabulary:Wl,$dynamicAnchor:Kl,title:Yl,allOf:Xl,type:Jl,$comment:Ql,properties:Zl},xy={__proto__:null,
752
- $comment:Ql,$dynamicAnchor:Kl,$id:Bl,$schema:Gl,$vocabulary:Wl,allOf:Xl,default:Dy,properties:Zl,title:Yl,type:Jl},My=nt(xy),ef="https://json-schema.org/draft/2020-12/schema",tf="https://json-schema.org/draft/2020-12/meta/applicator",rf={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},nf="meta",sf="Applicator vocabulary meta-schema",of=["object","boolean"],af={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"\
748
+ "properties/${b}" must have "const" or "enum"`)}function B(k,M){if(typeof k!="string"||k in v)throw new Error(`discriminator: "${b}" values must be unique strings`);v[k]=M}}}};return as.default=o,as}var cs={};const Bl="https://json-schema.org/draft/2020-12/schema",Wl="https://json-schema.org/draft/2020-12/schema",Kl={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"http\
749
+ s://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},Yl="meta",Xl="Core and Validation specifications meta-schema",Jl=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Ql=["object","boolean"],
750
+ Zl="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",ef={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{
751
+ anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},qy={$schema:Bl,$id:Wl,$vocabulary:Kl,$dynamicAnchor:Yl,title:Xl,allOf:Jl,type:Ql,$comment:Zl,properties:ef},Hy={__proto__:null,
752
+ $comment:Zl,$dynamicAnchor:Yl,$id:Wl,$schema:Bl,$vocabulary:Kl,allOf:Jl,default:qy,properties:ef,title:Xl,type:Ql},Uy=nt(Hy),tf="https://json-schema.org/draft/2020-12/schema",rf="https://json-schema.org/draft/2020-12/meta/applicator",nf={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},sf="meta",of="Applicator vocabulary meta-schema",af=["object","boolean"],cf={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"\
753
753
  #meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs\
754
- /schemaArray"},not:{$dynamicRef:"#meta"}},cf={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},qy={$schema:ef,$id:tf,$vocabulary:rf,$dynamicAnchor:nf,title:sf,type:of,properties:af,$defs:cf},Hy={__proto__:null,$defs:cf,$dynamicAnchor:nf,$id:tf,$schema:ef,$vocabulary:rf,default:qy,properties:af,title:sf,type:of},Uy=nt(Hy),uf="https://json-schema.org/draft/2020-12/schema",lf="https://json-schema.org/draft/2020-12/meta/unevaluated",ff={"https://json-schema.org/draft/2020-12/vocab/\
755
- unevaluated":!0},df="meta",hf="Unevaluated applicator vocabulary meta-schema",pf=["object","boolean"],mf={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Fy={$schema:uf,$id:lf,$vocabulary:ff,$dynamicAnchor:df,title:hf,type:pf,properties:mf},Vy={__proto__:null,$dynamicAnchor:df,$id:lf,$schema:uf,$vocabulary:ff,default:Fy,properties:mf,title:hf,type:pf},zy=nt(Vy),gf="https://json-schema.org/draft/2020-12/schema",yf="https://json-schema.org/draft/2020-12/meta/con\
756
- tent",_f={"https://json-schema.org/draft/2020-12/vocab/content":!0},$f="meta",vf="Content vocabulary meta-schema",bf=["object","boolean"],wf={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Gy={$schema:gf,$id:yf,$vocabulary:_f,$dynamicAnchor:$f,title:vf,type:bf,properties:wf},By={__proto__:null,$dynamicAnchor:$f,$id:yf,$schema:gf,$vocabulary:_f,default:Gy,properties:wf,title:vf,type:bf},Wy=nt(By),Ef="https://json-schema.org/draft/2020-12/sche\
757
- ma",Sf="https://json-schema.org/draft/2020-12/meta/core",Rf={"https://json-schema.org/draft/2020-12/vocab/core":!0},Af="meta",Of="Core vocabulary meta-schema",Cf=["object","boolean"],Pf={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{
758
- type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},If={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},Ky={$schema:Ef,$id:Sf,$vocabulary:Rf,$dynamicAnchor:Af,title:Of,type:Cf,properties:Pf,$defs:If},Yy={__proto__:null,$defs:If,$dynamicAnchor:Af,$id:Sf,
759
- $schema:Ef,$vocabulary:Rf,default:Ky,properties:Pf,title:Of,type:Cf},Xy=nt(Yy),Tf="https://json-schema.org/draft/2020-12/schema",Nf="https://json-schema.org/draft/2020-12/meta/format-annotation",jf={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},Lf="meta",kf="Format vocabulary meta-schema for annotation results",Df=["object","boolean"],xf={format:{type:"string"}},Jy={$schema:Tf,$id:Nf,$vocabulary:jf,$dynamicAnchor:Lf,title:kf,type:Df,properties:xf},Qy={__proto__:null,$dynamicAnchor:Lf,
760
- $id:Nf,$schema:Tf,$vocabulary:jf,default:Jy,properties:xf,title:kf,type:Df},Zy=nt(Qy),Mf="https://json-schema.org/draft/2020-12/schema",qf="https://json-schema.org/draft/2020-12/meta/meta-data",Hf={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Uf="meta",Ff="Meta-data vocabulary meta-schema",Vf=["object","boolean"],zf={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},
761
- examples:{type:"array",items:!0}},e_={$schema:Mf,$id:qf,$vocabulary:Hf,$dynamicAnchor:Uf,title:Ff,type:Vf,properties:zf},t_={__proto__:null,$dynamicAnchor:Uf,$id:qf,$schema:Mf,$vocabulary:Hf,default:e_,properties:zf,title:Ff,type:Vf},r_=nt(t_),Gf="https://json-schema.org/draft/2020-12/schema",Bf="https://json-schema.org/draft/2020-12/meta/validation",Wf={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Kf="meta",Yf="Validation vocabulary meta-schema",Xf=["object","boolean"],Jf={type:{
754
+ /schemaArray"},not:{$dynamicRef:"#meta"}},uf={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Fy={$schema:tf,$id:rf,$vocabulary:nf,$dynamicAnchor:sf,title:of,type:af,properties:cf,$defs:uf},Vy={__proto__:null,$defs:uf,$dynamicAnchor:sf,$id:rf,$schema:tf,$vocabulary:nf,default:Fy,properties:cf,title:of,type:af},zy=nt(Vy),lf="https://json-schema.org/draft/2020-12/schema",ff="https://json-schema.org/draft/2020-12/meta/unevaluated",df={"https://json-schema.org/draft/2020-12/vocab/\
755
+ unevaluated":!0},hf="meta",pf="Unevaluated applicator vocabulary meta-schema",mf=["object","boolean"],gf={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Gy={$schema:lf,$id:ff,$vocabulary:df,$dynamicAnchor:hf,title:pf,type:mf,properties:gf},By={__proto__:null,$dynamicAnchor:hf,$id:ff,$schema:lf,$vocabulary:df,default:Gy,properties:gf,title:pf,type:mf},Wy=nt(By),yf="https://json-schema.org/draft/2020-12/schema",_f="https://json-schema.org/draft/2020-12/meta/con\
756
+ tent",$f={"https://json-schema.org/draft/2020-12/vocab/content":!0},vf="meta",bf="Content vocabulary meta-schema",wf=["object","boolean"],Ef={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Ky={$schema:yf,$id:_f,$vocabulary:$f,$dynamicAnchor:vf,title:bf,type:wf,properties:Ef},Yy={__proto__:null,$dynamicAnchor:vf,$id:_f,$schema:yf,$vocabulary:$f,default:Ky,properties:Ef,title:bf,type:wf},Xy=nt(Yy),Sf="https://json-schema.org/draft/2020-12/sche\
757
+ ma",Rf="https://json-schema.org/draft/2020-12/meta/core",Af={"https://json-schema.org/draft/2020-12/vocab/core":!0},Of="meta",Cf="Core vocabulary meta-schema",Pf=["object","boolean"],If={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{
758
+ type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},Tf={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},Jy={$schema:Sf,$id:Rf,$vocabulary:Af,$dynamicAnchor:Of,title:Cf,type:Pf,properties:If,$defs:Tf},Qy={__proto__:null,$defs:Tf,$dynamicAnchor:Of,$id:Rf,
759
+ $schema:Sf,$vocabulary:Af,default:Jy,properties:If,title:Cf,type:Pf},Zy=nt(Qy),Nf="https://json-schema.org/draft/2020-12/schema",jf="https://json-schema.org/draft/2020-12/meta/format-annotation",Lf={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},kf="meta",Df="Format vocabulary meta-schema for annotation results",xf=["object","boolean"],Mf={format:{type:"string"}},e_={$schema:Nf,$id:jf,$vocabulary:Lf,$dynamicAnchor:kf,title:Df,type:xf,properties:Mf},t_={__proto__:null,$dynamicAnchor:kf,
760
+ $id:jf,$schema:Nf,$vocabulary:Lf,default:e_,properties:Mf,title:Df,type:xf},r_=nt(t_),qf="https://json-schema.org/draft/2020-12/schema",Hf="https://json-schema.org/draft/2020-12/meta/meta-data",Uf={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Ff="meta",Vf="Meta-data vocabulary meta-schema",zf=["object","boolean"],Gf={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},
761
+ examples:{type:"array",items:!0}},n_={$schema:qf,$id:Hf,$vocabulary:Uf,$dynamicAnchor:Ff,title:Vf,type:zf,properties:Gf},s_={__proto__:null,$dynamicAnchor:Ff,$id:Hf,$schema:qf,$vocabulary:Uf,default:n_,properties:Gf,title:Vf,type:zf},i_=nt(s_),Bf="https://json-schema.org/draft/2020-12/schema",Wf="https://json-schema.org/draft/2020-12/meta/validation",Kf={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Yf="meta",Xf="Validation vocabulary meta-schema",Jf=["object","boolean"],Qf={type:{
762
762
  anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{
763
- $ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Qf={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"\
764
- #/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},n_={$schema:Gf,$id:Bf,$vocabulary:Wf,$dynamicAnchor:Kf,title:Yf,type:Xf,properties:Jf,$defs:Qf},s_={__proto__:null,$defs:Qf,$dynamicAnchor:Kf,$id:Bf,$schema:Gf,$vocabulary:Wf,default:n_,properties:Jf,title:Yf,type:Xf},i_=nt(s_);var Zf;function o_(){if(Zf)return as;Zf=1,Object.defineProperty(as,"__esMo\
765
- dule",{value:!0});const t=My,e=Uy,r=zy,n=Wy,s=Xy,i=Zy,o=r_,a=i_,c=["/properties"];function l(u){return[t,e,r,n,s,d(this,i),o,d(this,a)].forEach(h=>this.addMetaSchema(h,void 0,!1)),this;function d(h,y){return u?h.$dataMetaSchema(y,c):y}}return as.default=l,as}var ed;function a_(){return ed||(ed=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const r=Du(),n=Ly(),s=zl(),i=o_(),
766
- o="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(y={}){super({...y,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:y,meta:b}=this.opts;b&&(i.default.call(this,y),this.refs["http://json-schema.org/schema"]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||
767
- (this.getSchema(o)?o:void 0)}}e.Ajv2020=a,t.exports=e=a,t.exports.Ajv2020=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var c=Pr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(
768
- e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=pn();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=Ir();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(an,an.exports)),an.exports}var c_=a_(),cs={exports:{}},Xi={},td;function u_(){
769
- return td||(td=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(k,M){return{validate:k,compare:M}}t.fullFormats={date:e(i,o),time:e(c(!0),l),"date-time":e(h(!0),y),"iso-time":e(c(),u),"iso-date-time":e(h(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
763
+ $ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Zf={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"\
764
+ #/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},o_={$schema:Bf,$id:Wf,$vocabulary:Kf,$dynamicAnchor:Yf,title:Xf,type:Jf,properties:Qf,$defs:Zf},a_={__proto__:null,$defs:Zf,$dynamicAnchor:Yf,$id:Wf,$schema:Bf,$vocabulary:Kf,default:o_,properties:Qf,title:Xf,type:Jf},c_=nt(a_);var ed;function u_(){if(ed)return cs;ed=1,Object.defineProperty(cs,"__esMo\
765
+ dule",{value:!0});const t=Uy,e=zy,r=Wy,n=Xy,s=Zy,i=r_,o=i_,a=c_,u=["/properties"];function l(c){return[t,e,r,n,s,d(this,i),o,d(this,a)].forEach(h=>this.addMetaSchema(h,void 0,!1)),this;function d(h,_){return c?h.$dataMetaSchema(_,u):_}}return cs.default=l,cs}var td;function l_(){return td||(td=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const r=xu(),n=xy(),s=Gl(),i=u_(),
766
+ o="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(_={}){super({..._,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:_,meta:b}=this.opts;b&&(i.default.call(this,_),this.refs["http://json-schema.org/schema"]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||
767
+ (this.getSchema(o)?o:void 0)}}e.Ajv2020=a,t.exports=e=a,t.exports.Ajv2020=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var u=Pr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(
768
+ e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var c=mn();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return c.default}});var d=Ir();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(cn,cn.exports)),cn.exports}var f_=l_(),us={exports:{}},Ji={},rd;function d_(){
769
+ return rd||(rd=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(k,M){return{validate:k,compare:M}}t.fullFormats={date:e(i,o),time:e(u(!0),l),"date-time":e(h(!0),_),"iso-time":e(u(),c),"iso-date-time":e(h(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
770
770
  "uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
771
771
  email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
772
772
  regex:B,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:m,int32:{type:"number",validate:E},int64:{type:"number",validate:S},float:{type:"number",validate:I},double:{type:"number",validate:I},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,
773
- o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,b),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
773
+ o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,b),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
774
774
  email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function r(k){return k%4===0&&(k%100!==0||k%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(k){const M=n.exec(k);if(!M)return!1;const j=+M[1],D=+M[2],H=+M[3];return D>=1&&D<=12&&H>=1&&H<=(D===2&&r(j)?29:s[D])}function o(k,M){if(k&&M)return k>M?1:k<M?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
775
- function c(k){return function(j){const D=a.exec(j);if(!D)return!1;const H=+D[1],K=+D[2],G=+D[3],X=D[4],se=D[5]==="-"?-1:1,U=+(D[6]||0),A=+(D[7]||0);if(U>23||A>59||k&&!X)return!1;if(H<=23&&K<=59&&G<60)return!0;const V=K-A*se,x=H-U*se-(V<0?1:0);return(x===23||x===-1)&&(V===59||V===-1)&&G<61}}function l(k,M){if(!(k&&M))return;const j=new Date("2020-01-01T"+k).valueOf(),D=new Date("2020-01-01T"+M).valueOf();if(j&&D)return j-D}function u(k,M){if(!(k&&M))return;const j=a.exec(k),D=a.exec(M);if(j&&D)return k=
776
- j[1]+j[2]+j[3],M=D[1]+D[2]+D[3],k>M?1:k<M?-1:0}const d=/t|\s/i;function h(k){const M=c(k);return function(D){const H=D.split(d);return H.length===2&&i(H[0])&&M(H[1])}}function y(k,M){if(!(k&&M))return;const j=new Date(k).valueOf(),D=new Date(M).valueOf();if(j&&D)return j-D}function b(k,M){if(!(k&&M))return;const[j,D]=k.split(d),[H,K]=M.split(d),G=o(j,H);if(G!==void 0)return G||l(D,K)}const _=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
777
- function g(k){return _.test(k)&&f.test(k)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m(k){return p.lastIndex=0,p.test(k)}const $=-2147483648,v=2**31-1;function E(k){return Number.isInteger(k)&&k<=v&&k>=$}function S(k){return Number.isInteger(k)}function I(){return!0}const F=/[^\\]\\Z/;function B(k){if(F.test(k))return!1;try{return new RegExp(k),!0}catch{return!1}}}(Xi)),Xi}var Ji={},us={exports:{}},ls={},rd;function l_(){if(rd)return ls;rd=1,Object.defineProperty(
778
- ls,"__esModule",{value:!0});const t=Hu(),e=el(),r=bl(),n=Ml(),s=Hl(),i=[t.default,e.default,(0,r.default)(),n.default,s.metadataVocabulary,s.contentVocabulary];return ls.default=i,ls}const nd="http://json-schema.org/draft-07/schema#",sd="http://json-schema.org/draft-07/schema#",id="Core schema meta-schema",od={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},
779
- simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ad=["object","boolean"],cd={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},
775
+ function u(k){return function(j){const D=a.exec(j);if(!D)return!1;const H=+D[1],Y=+D[2],G=+D[3],J=D[4],se=D[5]==="-"?-1:1,U=+(D[6]||0),A=+(D[7]||0);if(U>23||A>59||k&&!J)return!1;if(H<=23&&Y<=59&&G<60)return!0;const V=Y-A*se,x=H-U*se-(V<0?1:0);return(x===23||x===-1)&&(V===59||V===-1)&&G<61}}function l(k,M){if(!(k&&M))return;const j=new Date("2020-01-01T"+k).valueOf(),D=new Date("2020-01-01T"+M).valueOf();if(j&&D)return j-D}function c(k,M){if(!(k&&M))return;const j=a.exec(k),D=a.exec(M);if(j&&D)return k=
776
+ j[1]+j[2]+j[3],M=D[1]+D[2]+D[3],k>M?1:k<M?-1:0}const d=/t|\s/i;function h(k){const M=u(k);return function(D){const H=D.split(d);return H.length===2&&i(H[0])&&M(H[1])}}function _(k,M){if(!(k&&M))return;const j=new Date(k).valueOf(),D=new Date(M).valueOf();if(j&&D)return j-D}function b(k,M){if(!(k&&M))return;const[j,D]=k.split(d),[H,Y]=M.split(d),G=o(j,H);if(G!==void 0)return G||l(D,Y)}const y=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
777
+ function g(k){return y.test(k)&&f.test(k)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m(k){return p.lastIndex=0,p.test(k)}const $=-2147483648,v=2**31-1;function E(k){return Number.isInteger(k)&&k<=v&&k>=$}function S(k){return Number.isInteger(k)}function I(){return!0}const F=/[^\\]\\Z/;function B(k){if(F.test(k))return!1;try{return new RegExp(k),!0}catch{return!1}}}(Ji)),Ji}var Qi={},ls={exports:{}},fs={},nd;function h_(){if(nd)return fs;nd=1,Object.defineProperty(
778
+ fs,"__esModule",{value:!0});const t=Uu(),e=tl(),r=wl(),n=ql(),s=Ul(),i=[t.default,e.default,(0,r.default)(),n.default,s.metadataVocabulary,s.contentVocabulary];return fs.default=i,fs}const sd="http://json-schema.org/draft-07/schema#",id="http://json-schema.org/draft-07/schema#",od="Core schema meta-schema",ad={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},
779
+ simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},cd=["object","boolean"],ud={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},
780
780
  maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolea\
781
781
  n",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"\
782
782
  object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/def\
783
- initions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},f_={$schema:nd,$id:sd,title:id,definitions:od,type:ad,properties:cd,default:!0},d_={__proto__:null,$id:sd,$schema:nd,default:f_,definitions:od,properties:cd,title:id,type:ad},h_=nt(d_);var ud;function p_(){return ud||(ud=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=Du(),n=l_(),s=zl(),
784
- i=h_,o=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(b,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||
785
- (this.getSchema(a)?a:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=Pr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,
786
- "nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=pn();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=Ir();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})}(us,us.exports)),us.exports}var ld;function m_(){return ld||(ld=1,function(t){Object.
787
- defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=p_(),r=he(),n=r.operators,s={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${s[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${s[a].okStr}, limit: ${c}}`};t.formatLimitDefinition=
788
- {keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:c,data:l,schemaCode:u,keyword:d,it:h}=a,{opts:y,self:b}=h;if(!y.validateFormats)return;const _=new e.KeywordCxt(h,b.RULES.all.format.definition,"format");_.$data?f():g();function f(){const m=c.scopeValue("formats",{ref:b.formats,code:y.code.formats}),$=c.const("fmt",(0,r._)`${m}[${_.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${$} != "object"`,(0,r._)`${$} instanceof RegExp`,(0,r._)`typeof ${$}.compare != "function"`,
789
- p($)))}function g(){const m=_.schema,$=b.formats[m];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${d}": format "${m}" does not define "compare" function`);const v=c.scopeValue("formats",{key:m,ref:$,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(m)}`:void 0});a.fail$data(p(v))}function p(m){return(0,r._)`${m}.compare(${l}, ${u}) ${s[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),
790
- a);t.default=o}(Ji)),Ji}var fd;function g_(){return fd||(fd=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=u_(),n=m_(),s=he(),i=new s.Name("fullFormats"),o=new s.Name("fastFormats"),a=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,i),l;const[d,h]=u.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],y=u.formats||r.formatNames;return c(l,y,d,h),u.keywords&&(0,n.default)(l),l};a.get=(l,u="full")=>{const h=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!h)
791
- throw new Error(`Unknown format "${l}"`);return h};function c(l,u,d,h){var y,b;(y=(b=l.opts.code).formats)!==null&&y!==void 0||(b.formats=(0,s._)`require("ajv-formats/dist/formats").${h}`);for(const _ of u)l.addFormat(_,d[_])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a}(cs,cs.exports)),cs.exports}var y_=g_();const __=Es(y_),$_=(t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const s=Object.getOwnPropertyDescriptor(t,r),i=Object.getOwnPropertyDescriptor(
792
- e,r);!v_(s,i)&&n||Object.defineProperty(t,r,i)},v_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},b_=(t,e)=>{const r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},w_=(t,e)=>`/* Wrapped ${t}*/
793
- ${e}`,E_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),S_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),R_=(t,e,r)=>{const n=r===""?"":`with ${r.trim()}() `,s=w_.bind(null,n,e.toString());Object.defineProperty(s,"name",S_);const{writable:i,enumerable:o,configurable:a}=E_;Object.defineProperty(t,"toString",{value:s,writable:i,enumerable:o,configurable:a})};function A_(t,e,{ignoreNonConfigurable:r=!1}={}){const{name:n}=t;for(const s of Reflect.ownKeys(e))$_(t,
794
- e,s,r);return b_(t,e),R_(t,e,n),t}const dd=(t,e={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);const{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:s=!1,after:i=!0}=e;if(r<0||n<0)throw new RangeError("`wait` and `maxWait` must not be negative.");if(!s&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let o,a,c;const l=function(...u){const d=this,h=()=>{o=void 0,a&&(clearTimeout(a),a=
795
- void 0),i&&(c=t.apply(d,u))},y=()=>{a=void 0,o&&(clearTimeout(o),o=void 0),i&&(c=t.apply(d,u))},b=s&&!o;return clearTimeout(o),o=setTimeout(h,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(y,n)),b&&(c=t.apply(d,u)),c};return A_(l,t),l.cancel=()=>{o&&(clearTimeout(o),o=void 0),a&&(clearTimeout(a),a=void 0)},l};var fs={exports:{}},Qi,hd;function ds(){if(hd)return Qi;hd=1;const t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,s=e-6;return Qi={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:n,
796
- MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Qi}var Zi,pd;function hs(){return pd||(pd=1,Zi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),Zi}var md;function jr(){return md||(md=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,
797
- MAX_LENGTH:s}=ds(),i=hs();e=t.exports={};const o=e.re=[],a=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={};let d=0;const h="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[h,n]],b=f=>{for(const[g,p]of y)f=f.split(`${g}*`).join(`${g}{0,${p}}`).split(`${g}+`).join(`${g}{1,${p}}`);return f},_=(f,g,p)=>{const m=b(g),$=d++;i(f,$,g),u[f]=$,c[$]=g,l[$]=m,o[$]=new RegExp(g,p?"g":void 0),a[$]=new RegExp(m,p?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*"),_("NUMERICIDENTIFIERLOOSE","\\d+"),_("NONNUMERICIDENTIFIER",
798
- `\\d*[a-zA-Z-]${h}*`),_("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),_("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),_("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.
799
- PRERELEASEIDENTIFIER]})*))`),_("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_("BUILDIDENTIFIER",`${h}+`),_("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_("FULL",`^${c[u.FULLPLAIN]}$`),_("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_("LOOSE",`^${c[u.LOOSEPLAIN]}$`),_("GTLT","((?:<|>)?=?)"),_("XRAN\
800
- GEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}\
801
- $`),_("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),_("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_("COERCERTL",c[u.COERCE],!0),_("COERCERTLFULL",c[u.COERCEFULL],!0),_("LONETILDE","(?:~>?)"),_("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",_("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}\
802
- $`),_("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_("LONECARET","(?:\\^)"),_("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",_("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=
803
- "$1$2$3",_("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_("STAR","(<|>)?=?\\s*\\*"),_("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),_("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(fs,fs.exports)),fs.exports}var eo,gd;function to(){if(gd)return eo;gd=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return eo=n=>n?typeof n!="object"?t:n:e,eo}var ro,yd;function _d(){if(yd)return ro;
804
- yd=1;const t=/^[0-9]+$/,e=(n,s)=>{const i=t.test(n),o=t.test(s);return i&&o&&(n=+n,s=+s),n===s?0:i&&!o?-1:o&&!i?1:n<s?-1:1};return ro={compareIdentifiers:e,rcompareIdentifiers:(n,s)=>e(s,n)},ro}var no,$d;function Le(){if($d)return no;$d=1;const t=hs(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=ds(),{safeRe:n,safeSrc:s,t:i}=jr(),o=to(),{compareIdentifiers:a}=_d();class c{constructor(u,d){if(d=o(d),u instanceof c){if(u.loose===!!d.loose&&u.includePrerelease===!!d.includePrerelease)return u;u=u.version}else if(typeof u!=
805
- "string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",u,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const h=u.trim().match(d.loose?n[i.LOOSE]:n[i.FULL]);if(!h)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>r||this.major<0)throw new TypeError("Invalid major versi\
806
- on");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){const b=+y;if(b>=0&&b<r)return b}return y}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){
807
- return this.version}compare(u){if(t("SemVer.compare",this.version,this.options,u),!(u instanceof c)){if(typeof u=="string"&&u===this.version)return 0;u=new c(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof c||(u=new c(u,this.options)),a(this.major,u.major)||a(this.minor,u.minor)||a(this.patch,u.patch)}comparePre(u){if(u instanceof c||(u=new c(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.
808
- prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let d=0;do{const h=this.prerelease[d],y=u.prerelease[d];if(t("prerelease compare",d,h,y),h===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(h===void 0)return-1;if(h===y)continue;return a(h,y)}while(++d)}compareBuild(u){u instanceof c||(u=new c(u,this.options));let d=0;do{const h=this.build[d],y=u.build[d];if(t("build compare",d,h,y),h===void 0&&y===void 0)return 0;if(y===void 0)return 1;
809
- if(h===void 0)return-1;if(h===y)continue;return a(h,y)}while(++d)}inc(u,d,h){if(u.startsWith("pre")){if(!d&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const y=new RegExp(`^${this.options.loose?s[i.PRERELEASELOOSE]:s[i.PRERELEASE]}$`),b=`-${d}`.match(y);if(!b||b[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,h);break;case"preminor":this.prerelease.length=
783
+ initions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},p_={$schema:sd,$id:id,title:od,definitions:ad,type:cd,properties:ud,default:!0},m_={__proto__:null,$id:id,$schema:sd,default:p_,definitions:ad,properties:ud,title:od,type:cd},g_=nt(m_);var ld;function y_(){return ld||(ld=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=xu(),n=h_(),s=Gl(),
784
+ i=g_,o=["/properties"],a="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(b,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||
785
+ (this.getSchema(a)?a:void 0)}}e.Ajv=u,t.exports=e=u,t.exports.Ajv=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=Pr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(e,
786
+ "nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var d=mn();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=Ir();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})}(ls,ls.exports)),ls.exports}var fd;function __(){return fd||(fd=1,function(t){Object.
787
+ defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=y_(),r=he(),n=r.operators,s={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:a,schemaCode:u})=>(0,r.str)`should be ${s[a].okStr} ${u}`,params:({keyword:a,schemaCode:u})=>(0,r._)`{comparison: ${s[a].okStr}, limit: ${u}}`};t.formatLimitDefinition=
788
+ {keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:u,data:l,schemaCode:c,keyword:d,it:h}=a,{opts:_,self:b}=h;if(!_.validateFormats)return;const y=new e.KeywordCxt(h,b.RULES.all.format.definition,"format");y.$data?f():g();function f(){const m=u.scopeValue("formats",{ref:b.formats,code:_.code.formats}),$=u.const("fmt",(0,r._)`${m}[${y.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${$} != "object"`,(0,r._)`${$} instanceof RegExp`,(0,r._)`typeof ${$}.compare != "function"`,
789
+ p($)))}function g(){const m=y.schema,$=b.formats[m];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${d}": format "${m}" does not define "compare" function`);const v=u.scopeValue("formats",{key:m,ref:$,code:_.code.formats?(0,r._)`${_.code.formats}${(0,r.getProperty)(m)}`:void 0});a.fail$data(p(v))}function p(m){return(0,r._)`${m}.compare(${l}, ${c}) ${s[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),
790
+ a);t.default=o}(Qi)),Qi}var dd;function $_(){return dd||(dd=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=d_(),n=__(),s=he(),i=new s.Name("fullFormats"),o=new s.Name("fastFormats"),a=(l,c={keywords:!0})=>{if(Array.isArray(c))return u(l,c,r.fullFormats,i),l;const[d,h]=c.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],_=c.formats||r.formatNames;return u(l,_,d,h),c.keywords&&(0,n.default)(l),l};a.get=(l,c="full")=>{const h=(c==="fast"?r.fastFormats:r.fullFormats)[l];if(!h)
791
+ throw new Error(`Unknown format "${l}"`);return h};function u(l,c,d,h){var _,b;(_=(b=l.opts.code).formats)!==null&&_!==void 0||(b.formats=(0,s._)`require("ajv-formats/dist/formats").${h}`);for(const y of c)l.addFormat(y,d[y])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a}(us,us.exports)),us.exports}var v_=$_();const b_=Dr(v_),w_=(t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const s=Object.getOwnPropertyDescriptor(t,r),i=Object.getOwnPropertyDescriptor(
792
+ e,r);!E_(s,i)&&n||Object.defineProperty(t,r,i)},E_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},S_=(t,e)=>{const r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},R_=(t,e)=>`/* Wrapped ${t}*/
793
+ ${e}`,A_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),O_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),C_=(t,e,r)=>{const n=r===""?"":`with ${r.trim()}() `,s=R_.bind(null,n,e.toString());Object.defineProperty(s,"name",O_);const{writable:i,enumerable:o,configurable:a}=A_;Object.defineProperty(t,"toString",{value:s,writable:i,enumerable:o,configurable:a})};function P_(t,e,{ignoreNonConfigurable:r=!1}={}){const{name:n}=t;for(const s of Reflect.ownKeys(e))w_(t,
794
+ e,s,r);return S_(t,e),C_(t,e,n),t}const hd=(t,e={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);const{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:s=!1,after:i=!0}=e;if(r<0||n<0)throw new RangeError("`wait` and `maxWait` must not be negative.");if(!s&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let o,a,u;const l=function(...c){const d=this,h=()=>{o=void 0,a&&(clearTimeout(a),a=
795
+ void 0),i&&(u=t.apply(d,c))},_=()=>{a=void 0,o&&(clearTimeout(o),o=void 0),i&&(u=t.apply(d,c))},b=s&&!o;return clearTimeout(o),o=setTimeout(h,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(_,n)),b&&(u=t.apply(d,c)),u};return P_(l,t),l.cancel=()=>{o&&(clearTimeout(o),o=void 0),a&&(clearTimeout(a),a=void 0)},l};var ds={exports:{}},Zi,pd;function hs(){if(pd)return Zi;pd=1;const t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,s=e-6;return Zi={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:n,
796
+ MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Zi}var eo,md;function ps(){return md||(md=1,eo=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),eo}var gd;function jr(){return gd||(gd=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,
797
+ MAX_LENGTH:s}=hs(),i=ps();e=t.exports={};const o=e.re=[],a=e.safeRe=[],u=e.src=[],l=e.safeSrc=[],c=e.t={};let d=0;const h="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",s],[h,n]],b=f=>{for(const[g,p]of _)f=f.split(`${g}*`).join(`${g}{0,${p}}`).split(`${g}+`).join(`${g}{1,${p}}`);return f},y=(f,g,p)=>{const m=b(g),$=d++;i(f,$,g),c[f]=$,u[$]=g,l[$]=m,o[$]=new RegExp(g,p?"g":void 0),a[$]=new RegExp(m,p?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",
798
+ `\\d*[a-zA-Z-]${h}*`),y("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.
799
+ PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${h}+`),y("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),y("FULL",`^${u[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),y("LOOSE",`^${u[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRAN\
800
+ GEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),y("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}\
801
+ $`),y("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?(?:${u[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",u[c.COERCE],!0),y("COERCERTLFULL",u[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}\
802
+ $`),y("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=
803
+ "$1$2$3",y("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ds,ds.exports)),ds.exports}var to,yd;function ro(){if(yd)return to;yd=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return to=n=>n?typeof n!="object"?t:n:e,to}var no,_d;function $d(){if(_d)return no;
804
+ _d=1;const t=/^[0-9]+$/,e=(n,s)=>{const i=t.test(n),o=t.test(s);return i&&o&&(n=+n,s=+s),n===s?0:i&&!o?-1:o&&!i?1:n<s?-1:1};return no={compareIdentifiers:e,rcompareIdentifiers:(n,s)=>e(s,n)},no}var so,vd;function Le(){if(vd)return so;vd=1;const t=ps(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=hs(),{safeRe:n,safeSrc:s,t:i}=jr(),o=ro(),{compareIdentifiers:a}=$d();class u{constructor(c,d){if(d=o(d),c instanceof u){if(c.loose===!!d.loose&&c.includePrerelease===!!d.includePrerelease)return c;c=c.version}else if(typeof c!=
805
+ "string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const h=c.trim().match(d.loose?n[i.LOOSE]:n[i.FULL]);if(!h)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>r||this.major<0)throw new TypeError("Invalid major versi\
806
+ on");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(_=>{if(/^[0-9]+$/.test(_)){const b=+_;if(b>=0&&b<r)return b}return _}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){
807
+ return this.version}compare(c){if(t("SemVer.compare",this.version,this.options,c),!(c instanceof u)){if(typeof c=="string"&&c===this.version)return 0;c=new u(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof u||(c=new u(c,this.options)),a(this.major,c.major)||a(this.minor,c.minor)||a(this.patch,c.patch)}comparePre(c){if(c instanceof u||(c=new u(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.
808
+ prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let d=0;do{const h=this.prerelease[d],_=c.prerelease[d];if(t("prerelease compare",d,h,_),h===void 0&&_===void 0)return 0;if(_===void 0)return 1;if(h===void 0)return-1;if(h===_)continue;return a(h,_)}while(++d)}compareBuild(c){c instanceof u||(c=new u(c,this.options));let d=0;do{const h=this.build[d],_=c.build[d];if(t("build compare",d,h,_),h===void 0&&_===void 0)return 0;if(_===void 0)return 1;
809
+ if(h===void 0)return-1;if(h===_)continue;return a(h,_)}while(++d)}inc(c,d,h){if(c.startsWith("pre")){if(!d&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const _=new RegExp(`^${this.options.loose?s[i.PRERELEASELOOSE]:s[i.PRERELEASE]}$`),b=`-${d}`.match(_);if(!b||b[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,h);break;case"preminor":this.prerelease.length=
810
810
  0,this.patch=0,this.minor++,this.inc("pre",d,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",d,h),this.inc("pre",d,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",d,h),this.inc("pre",d,h);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];
811
- break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const y=Number(h)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(d===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier alre\
812
- ady exists");this.prerelease.push(y)}}if(d){let b=[d,y];h===!1&&(b=[d]),a(this.prerelease[0],d)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return no=c,no}var so,vd;function sr(){if(vd)return so;vd=1;const t=Le();return so=(r,n,s=!1)=>{if(r instanceof t)return r;try{return new t(r,n)}catch(i){if(!s)return null;throw i}},
813
- so}var io,bd;function O_(){if(bd)return io;bd=1;const t=sr();return io=(r,n)=>{const s=t(r,n);return s?s.version:null},io}var oo,wd;function C_(){if(wd)return oo;wd=1;const t=sr();return oo=(r,n)=>{const s=t(r.trim().replace(/^[=v]+/,""),n);return s?s.version:null},oo}var ao,Ed;function P_(){if(Ed)return ao;Ed=1;const t=Le();return ao=(r,n,s,i,o)=>{typeof s=="string"&&(o=i,i=s,s=void 0);try{return new t(r instanceof t?r.version:r,s).inc(n,i,o).version}catch{return null}},ao}var co,Sd;function I_(){
814
- if(Sd)return co;Sd=1;const t=sr();return co=(r,n)=>{const s=t(r,null,!0),i=t(n,null,!0),o=s.compare(i);if(o===0)return null;const a=o>0,c=a?s:i,l=a?i:s,u=!!c.prerelease.length;if(!!l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(l.compareMain(c)===0)return l.minor&&!l.patch?"minor":"patch"}const h=u?"pre":"";return s.major!==i.major?h+"major":s.minor!==i.minor?h+"minor":s.patch!==i.patch?h+"patch":"prerelease"},co}var uo,Rd;function T_(){if(Rd)return uo;Rd=1;const t=Le();return uo=
815
- (r,n)=>new t(r,n).major,uo}var lo,Ad;function N_(){if(Ad)return lo;Ad=1;const t=Le();return lo=(r,n)=>new t(r,n).minor,lo}var fo,Od;function j_(){if(Od)return fo;Od=1;const t=Le();return fo=(r,n)=>new t(r,n).patch,fo}var ho,Cd;function L_(){if(Cd)return ho;Cd=1;const t=sr();return ho=(r,n)=>{const s=t(r,n);return s&&s.prerelease.length?s.prerelease:null},ho}var po,Pd;function Ze(){if(Pd)return po;Pd=1;const t=Le();return po=(r,n,s)=>new t(r,s).compare(new t(n,s)),po}var mo,Id;function k_(){if(Id)
816
- return mo;Id=1;const t=Ze();return mo=(r,n,s)=>t(n,r,s),mo}var go,Td;function D_(){if(Td)return go;Td=1;const t=Ze();return go=(r,n)=>t(r,n,!0),go}var yo,Nd;function _o(){if(Nd)return yo;Nd=1;const t=Le();return yo=(r,n,s)=>{const i=new t(r,s),o=new t(n,s);return i.compare(o)||i.compareBuild(o)},yo}var $o,jd;function x_(){if(jd)return $o;jd=1;const t=_o();return $o=(r,n)=>r.sort((s,i)=>t(s,i,n)),$o}var vo,Ld;function M_(){if(Ld)return vo;Ld=1;const t=_o();return vo=(r,n)=>r.sort((s,i)=>t(i,s,n)),
817
- vo}var bo,kd;function ps(){if(kd)return bo;kd=1;const t=Ze();return bo=(r,n,s)=>t(r,n,s)>0,bo}var wo,Dd;function Eo(){if(Dd)return wo;Dd=1;const t=Ze();return wo=(r,n,s)=>t(r,n,s)<0,wo}var So,xd;function Md(){if(xd)return So;xd=1;const t=Ze();return So=(r,n,s)=>t(r,n,s)===0,So}var Ro,qd;function Hd(){if(qd)return Ro;qd=1;const t=Ze();return Ro=(r,n,s)=>t(r,n,s)!==0,Ro}var Ao,Ud;function Oo(){if(Ud)return Ao;Ud=1;const t=Ze();return Ao=(r,n,s)=>t(r,n,s)>=0,Ao}var Co,Fd;function Po(){if(Fd)return Co;
818
- Fd=1;const t=Ze();return Co=(r,n,s)=>t(r,n,s)<=0,Co}var Io,Vd;function zd(){if(Vd)return Io;Vd=1;const t=Md(),e=Hd(),r=ps(),n=Oo(),s=Eo(),i=Po();return Io=(a,c,l,u)=>{switch(c){case"===":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a===l;case"!==":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a!==l;case"":case"=":case"==":return t(a,l,u);case"!=":return e(a,l,u);case">":return r(a,l,u);case">=":return n(a,l,u);case"<":return s(a,l,u);case"\
819
- <=":return i(a,l,u);default:throw new TypeError(`Invalid operator: ${c}`)}},Io}var To,Gd;function q_(){if(Gd)return To;Gd=1;const t=Le(),e=sr(),{safeRe:r,t:n}=jr();return To=(i,o)=>{if(i instanceof t)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;o=o||{};let a=null;if(!o.rtl)a=i.match(o.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const y=o.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let b;for(;(b=y.exec(i))&&(!a||a.index+a[0].length!==i.length);)(!a||
820
- b.index+b[0].length!==a.index+a[0].length)&&(a=b),y.lastIndex=b.index+b[1].length+b[2].length;y.lastIndex=-1}if(a===null)return null;const c=a[2],l=a[3]||"0",u=a[4]||"0",d=o.includePrerelease&&a[5]?`-${a[5]}`:"",h=o.includePrerelease&&a[6]?`+${a[6]}`:"";return e(`${c}.${l}.${u}${d}${h}`,o)},To}var No,Bd;function H_(){if(Bd)return No;Bd=1;class t{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.
821
- map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return No=t,No}var jo,Wd;function et(){if(Wd)return jo;Wd=1;const t=/\s+/g;class e{constructor(H,K){if(K=s(K),H instanceof e)return H.loose===!!K.loose&&H.includePrerelease===!!K.includePrerelease?H:new e(H.raw,K);if(H instanceof i)return this.raw=H.value,this.set=[[H]],this.formatted=void 0,this;if(this.options=K,this.loose=!!K.loose,
822
- this.includePrerelease=!!K.includePrerelease,this.raw=H.trim().replace(t," "),this.set=this.raw.split("||").map(G=>this.parseRange(G.trim())).filter(G=>G.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const G=this.set[0];if(this.set=this.set.filter(X=>!_(X[0])),this.set.length===0)this.set=[G];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&f(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(this.formatted===
823
- void 0){this.formatted="";for(let H=0;H<this.set.length;H++){H>0&&(this.formatted+="||");const K=this.set[H];for(let G=0;G<K.length;G++)G>0&&(this.formatted+=" "),this.formatted+=K[G].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(H){const G=((this.options.includePrerelease&&y)|(this.options.loose&&b))+":"+H,X=n.get(G);if(X)return X;const se=this.options.loose,U=se?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];H=H.replace(U,M(this.options.includePrerelease)),
824
- o("hyphen replace",H),H=H.replace(c[l.COMPARATORTRIM],u),o("comparator trim",H),H=H.replace(c[l.TILDETRIM],d),o("tilde trim",H),H=H.replace(c[l.CARETTRIM],h),o("caret trim",H);let A=H.split(" ").map(R=>p(R,this.options)).join(" ").split(/\s+/).map(R=>k(R,this.options));se&&(A=A.filter(R=>(o("loose invalid filter",R,this.options),!!R.match(c[l.COMPARATORLOOSE])))),o("range list",A);const V=new Map,x=A.map(R=>new i(R,this.options));for(const R of x){if(_(R))return[R];V.set(R.value,R)}V.size>1&&V.has(
825
- "")&&V.delete("");const w=[...V.values()];return n.set(G,w),w}intersects(H,K){if(!(H instanceof e))throw new TypeError("a Range is required");return this.set.some(G=>g(G,K)&&H.set.some(X=>g(X,K)&&G.every(se=>X.every(U=>se.intersects(U,K)))))}test(H){if(!H)return!1;if(typeof H=="string")try{H=new a(H,this.options)}catch{return!1}for(let K=0;K<this.set.length;K++)if(j(this.set[K],H,this.options))return!0;return!1}}jo=e;const r=H_(),n=new r,s=to(),i=ms(),o=hs(),a=Le(),{safeRe:c,t:l,comparatorTrimReplace:u,
826
- tildeTrimReplace:d,caretTrimReplace:h}=jr(),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:b}=ds(),_=D=>D.value==="<0.0.0-0",f=D=>D.value==="",g=(D,H)=>{let K=!0;const G=D.slice();let X=G.pop();for(;K&&G.length;)K=G.every(se=>X.intersects(se,H)),X=G.pop();return K},p=(D,H)=>(o("comp",D,H),D=E(D,H),o("caret",D),D=$(D,H),o("tildes",D),D=I(D,H),o("xrange",D),D=B(D,H),o("stars",D),D),m=D=>!D||D.toLowerCase()==="x"||D==="*",$=(D,H)=>D.trim().split(/\s+/).map(K=>v(K,H)).join(" "),v=(D,H)=>{const K=H.loose?c[l.
827
- TILDELOOSE]:c[l.TILDE];return D.replace(K,(G,X,se,U,A)=>{o("tilde",D,G,X,se,U,A);let V;return m(X)?V="":m(se)?V=`>=${X}.0.0 <${+X+1}.0.0-0`:m(U)?V=`>=${X}.${se}.0 <${X}.${+se+1}.0-0`:A?(o("replaceTilde pr",A),V=`>=${X}.${se}.${U}-${A} <${X}.${+se+1}.0-0`):V=`>=${X}.${se}.${U} <${X}.${+se+1}.0-0`,o("tilde return",V),V})},E=(D,H)=>D.trim().split(/\s+/).map(K=>S(K,H)).join(" "),S=(D,H)=>{o("caret",D,H);const K=H.loose?c[l.CARETLOOSE]:c[l.CARET],G=H.includePrerelease?"-0":"";return D.replace(K,(X,se,U,A,V)=>{
828
- o("caret",D,X,se,U,A,V);let x;return m(se)?x="":m(U)?x=`>=${se}.0.0${G} <${+se+1}.0.0-0`:m(A)?se==="0"?x=`>=${se}.${U}.0${G} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}.0${G} <${+se+1}.0.0-0`:V?(o("replaceCaret pr",V),se==="0"?U==="0"?x=`>=${se}.${U}.${A}-${V} <${se}.${U}.${+A+1}-0`:x=`>=${se}.${U}.${A}-${V} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}.${A}-${V} <${+se+1}.0.0-0`):(o("no pr"),se==="0"?U==="0"?x=`>=${se}.${U}.${A}${G} <${se}.${U}.${+A+1}-0`:x=`>=${se}.${U}.${A}${G} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}\
829
- .${A} <${+se+1}.0.0-0`),o("caret return",x),x})},I=(D,H)=>(o("replaceXRanges",D,H),D.split(/\s+/).map(K=>F(K,H)).join(" ")),F=(D,H)=>{D=D.trim();const K=H.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return D.replace(K,(G,X,se,U,A,V)=>{o("xRange",D,G,X,se,U,A,V);const x=m(se),w=x||m(U),R=w||m(A),C=R;return X==="="&&C&&(X=""),V=H.includePrerelease?"-0":"",x?X===">"||X==="<"?G="<0.0.0-0":G="*":X&&C?(w&&(U=0),A=0,X===">"?(X=">=",w?(se=+se+1,U=0,A=0):(U=+U+1,A=0)):X==="<="&&(X="<",w?se=+se+1:U=+U+1),X==="<"&&
830
- (V="-0"),G=`${X+se}.${U}.${A}${V}`):w?G=`>=${se}.0.0${V} <${+se+1}.0.0-0`:R&&(G=`>=${se}.${U}.0${V} <${se}.${+U+1}.0-0`),o("xRange return",G),G})},B=(D,H)=>(o("replaceStars",D,H),D.trim().replace(c[l.STAR],"")),k=(D,H)=>(o("replaceGTE0",D,H),D.trim().replace(c[H.includePrerelease?l.GTE0PRE:l.GTE0],"")),M=D=>(H,K,G,X,se,U,A,V,x,w,R,C)=>(m(G)?K="":m(X)?K=`>=${G}.0.0${D?"-0":""}`:m(se)?K=`>=${G}.${X}.0${D?"-0":""}`:U?K=`>=${K}`:K=`>=${K}${D?"-0":""}`,m(x)?V="":m(w)?V=`<${+x+1}.0.0-0`:m(R)?V=`<${x}.${+w+
831
- 1}.0-0`:C?V=`<=${x}.${w}.${R}-${C}`:D?V=`<${x}.${w}.${+R+1}-0`:V=`<=${V}`,`${K} ${V}`.trim()),j=(D,H,K)=>{for(let G=0;G<D.length;G++)if(!D[G].test(H))return!1;if(H.prerelease.length&&!K.includePrerelease){for(let G=0;G<D.length;G++)if(o(D[G].semver),D[G].semver!==i.ANY&&D[G].semver.prerelease.length>0){const X=D[G].semver;if(X.major===H.major&&X.minor===H.minor&&X.patch===H.patch)return!0}return!1}return!0};return jo}var Lo,Kd;function ms(){if(Kd)return Lo;Kd=1;const t=Symbol("SemVer ANY");class e{static get ANY(){
832
- return t}constructor(u,d){if(d=r(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===t?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],h=u.match(d);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=
833
- ""),h[2]?this.semver=new a(h[2],this.options.loose):this.semver=t}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===t||u===t)return!0;if(typeof u=="string")try{u=new a(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new c(this.
834
- value,d).test(u.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.
835
- semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Lo=e;const r=to(),{safeRe:n,t:s}=jr(),i=zd(),o=hs(),a=Le(),c=et();return Lo}var ko,Yd;function gs(){if(Yd)return ko;Yd=1;const t=et();return ko=(r,n,s)=>{try{n=new t(n,s)}catch{return!1}return n.test(r)},ko}var Do,Xd;function U_(){if(Xd)return Do;Xd=1;const t=et();return Do=(r,n)=>new t(r,n).set.map(s=>s.map(i=>i.value).join(" ").trim().split(" ")),Do}var xo,Jd;function F_(){if(Jd)return xo;Jd=1;const t=Le(),e=et();
836
- return xo=(n,s,i)=>{let o=null,a=null,c=null;try{c=new e(s,i)}catch{return null}return n.forEach(l=>{c.test(l)&&(!o||a.compare(l)===-1)&&(o=l,a=new t(o,i))}),o},xo}var Mo,Qd;function V_(){if(Qd)return Mo;Qd=1;const t=Le(),e=et();return Mo=(n,s,i)=>{let o=null,a=null,c=null;try{c=new e(s,i)}catch{return null}return n.forEach(l=>{c.test(l)&&(!o||a.compare(l)===1)&&(o=l,a=new t(o,i))}),o},Mo}var qo,Zd;function z_(){if(Zd)return qo;Zd=1;const t=Le(),e=et(),r=ps();return qo=(s,i)=>{s=new e(s,i);let o=new t(
837
- "0.0.0");if(s.test(o)||(o=new t("0.0.0-0"),s.test(o)))return o;o=null;for(let a=0;a<s.set.length;++a){const c=s.set[a];let l=null;c.forEach(u=>{const d=new t(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!l||r(d,l))&&(l=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),l&&(!o||r(o,l))&&(o=l)}return o&&s.test(o)?o:null},qo}var Ho,eh;function G_(){if(eh)return Ho;
838
- eh=1;const t=et();return Ho=(r,n)=>{try{return new t(r,n).range||"*"}catch{return null}},Ho}var Uo,th;function Fo(){if(th)return Uo;th=1;const t=Le(),e=ms(),{ANY:r}=e,n=et(),s=gs(),i=ps(),o=Eo(),a=Po(),c=Oo();return Uo=(u,d,h,y)=>{u=new t(u,y),d=new n(d,y);let b,_,f,g,p;switch(h){case">":b=i,_=a,f=o,g=">",p=">=";break;case"<":b=o,_=c,f=i,g="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(u,d,y))return!1;for(let m=0;m<d.set.length;++m){const $=d.set[m];let v=null,
839
- E=null;if($.forEach(S=>{S.semver===r&&(S=new e(">=0.0.0")),v=v||S,E=E||S,b(S.semver,v.semver,y)?v=S:f(S.semver,E.semver,y)&&(E=S)}),v.operator===g||v.operator===p||(!E.operator||E.operator===g)&&_(u,E.semver))return!1;if(E.operator===p&&f(u,E.semver))return!1}return!0},Uo}var Vo,rh;function B_(){if(rh)return Vo;rh=1;const t=Fo();return Vo=(r,n,s)=>t(r,n,">",s),Vo}var zo,nh;function W_(){if(nh)return zo;nh=1;const t=Fo();return zo=(r,n,s)=>t(r,n,"<",s),zo}var Go,sh;function K_(){if(sh)return Go;sh=
840
- 1;const t=et();return Go=(r,n,s)=>(r=new t(r,s),n=new t(n,s),r.intersects(n,s)),Go}var Bo,ih;function Y_(){if(ih)return Bo;ih=1;const t=gs(),e=Ze();return Bo=(r,n,s)=>{const i=[];let o=null,a=null;const c=r.sort((h,y)=>e(h,y,s));for(const h of c)t(h,n,s)?(a=h,o||(o=h)):(a&&i.push([o,a]),a=null,o=null);o&&i.push([o,null]);const l=[];for(const[h,y]of i)h===y?l.push(h):!y&&h===c[0]?l.push("*"):y?h===c[0]?l.push(`<=${y}`):l.push(`${h} - ${y}`):l.push(`>=${h}`);const u=l.join(" || "),d=typeof n.raw==
841
- "string"?n.raw:String(n);return u.length<d.length?u:n},Bo}var Wo,oh;function X_(){if(oh)return Wo;oh=1;const t=et(),e=ms(),{ANY:r}=e,n=gs(),s=Ze(),i=(d,h,y={})=>{if(d===h)return!0;d=new t(d,y),h=new t(h,y);let b=!1;e:for(const _ of d.set){for(const f of h.set){const g=c(_,f,y);if(b=b||g!==null,g)continue e}if(b)return!1}return!0},o=[new e(">=0.0.0-0")],a=[new e(">=0.0.0")],c=(d,h,y)=>{if(d===h)return!0;if(d.length===1&&d[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;y.includePrerelease?
842
- d=o:d=a}if(h.length===1&&h[0].semver===r){if(y.includePrerelease)return!0;h=a}const b=new Set;let _,f;for(const I of d)I.operator===">"||I.operator===">="?_=l(_,I,y):I.operator==="<"||I.operator==="<="?f=u(f,I,y):b.add(I.semver);if(b.size>1)return null;let g;if(_&&f){if(g=s(_.semver,f.semver,y),g>0)return null;if(g===0&&(_.operator!==">="||f.operator!=="<="))return null}for(const I of b){if(_&&!n(I,String(_),y)||f&&!n(I,String(f),y))return null;for(const F of h)if(!n(I,String(F),y))return!1;return!0}
843
- let p,m,$,v,E=f&&!y.includePrerelease&&f.semver.prerelease.length?f.semver:!1,S=_&&!y.includePrerelease&&_.semver.prerelease.length?_.semver:!1;E&&E.prerelease.length===1&&f.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(const I of h){if(v=v||I.operator===">"||I.operator===">=",$=$||I.operator==="<"||I.operator==="<=",_){if(S&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===S.major&&I.semver.minor===S.minor&&I.semver.patch===S.patch&&(S=!1),I.operator===">"||I.operator===">="){
844
- if(p=l(_,I,y),p===I&&p!==_)return!1}else if(_.operator===">="&&!n(_.semver,String(I),y))return!1}if(f){if(E&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===E.major&&I.semver.minor===E.minor&&I.semver.patch===E.patch&&(E=!1),I.operator==="<"||I.operator==="<="){if(m=u(f,I,y),m===I&&m!==f)return!1}else if(f.operator==="<="&&!n(f.semver,String(I),y))return!1}if(!I.operator&&(f||_)&&g!==0)return!1}return!(_&&$&&!f&&g!==0||f&&v&&!_&&g!==0||S||E)},l=(d,h,y)=>{if(!d)return h;const b=s(
845
- d.semver,h.semver,y);return b>0?d:b<0||h.operator===">"&&d.operator===">="?h:d},u=(d,h,y)=>{if(!d)return h;const b=s(d.semver,h.semver,y);return b<0?d:b>0||h.operator==="<"&&d.operator==="<="?h:d};return Wo=i,Wo}var Ko,ah;function J_(){if(ah)return Ko;ah=1;const t=jr(),e=ds(),r=Le(),n=_d(),s=sr(),i=O_(),o=C_(),a=P_(),c=I_(),l=T_(),u=N_(),d=j_(),h=L_(),y=Ze(),b=k_(),_=D_(),f=_o(),g=x_(),p=M_(),m=ps(),$=Eo(),v=Md(),E=Hd(),S=Oo(),I=Po(),F=zd(),B=q_(),k=ms(),M=et(),j=gs(),D=U_(),H=F_(),K=V_(),G=z_(),
846
- X=G_(),se=Fo(),U=B_(),A=W_(),V=K_(),x=Y_(),w=X_();return Ko={parse:s,valid:i,clean:o,inc:a,diff:c,major:l,minor:u,patch:d,prerelease:h,compare:y,rcompare:b,compareLoose:_,compareBuild:f,sort:g,rsort:p,gt:m,lt:$,eq:v,neq:E,gte:S,lte:I,cmp:F,coerce:B,Comparator:k,Range:M,satisfies:j,toComparators:D,maxSatisfying:H,minSatisfying:K,minVersion:G,validRange:X,outside:se,gtr:U,ltr:A,intersects:V,simplifyRange:x,subset:w,SemVer:r,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.
847
- RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Ko}var Yo=J_();const ir=Es(Yo),Q_=Object.prototype.toString,Z_="[object Uint8Array]",e0="[object ArrayBuffer]";function ch(t,e,r){return t?t.constructor===e?!0:Q_.call(t)===r:!1}function uh(t){return ch(t,Uint8Array,Z_)}function t0(t){return ch(t,ArrayBuffer,e0)}function r0(t){return uh(t)||t0(t)}function n0(t){if(!uh(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function s0(t){
848
- if(!r0(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function lh(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((s,i)=>s+i.length,0);const r=new Uint8Array(e);let n=0;for(const s of t)n0(s),r.set(s,n),n+=s.length;return r}const fh={utf8:new globalThis.TextDecoder("utf8")};function dh(t,e="utf8"){return s0(t),fh[e]??=new globalThis.TextDecoder(e),fh[e].decode(t)}function i0(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got\
849
- \`${typeof t}\``)}const o0=new globalThis.TextEncoder;function Xo(t){return i0(t),o0.encode(t)}Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));const a0=__.default,hh="aes-256-cbc",or=()=>Object.create(null),c0=t=>t!=null,u0=(t,e)=>{const r=new Set(["undefined","symbol","function"]),n=typeof e;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${t}\` is not allowed as it's not supported by JSON`)},ys="__internal__",Jo=`${ys}.migrations.version`;class l0{path;events;#n;#t;#e;#r={};constructor(e={}){
850
- const r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...e};if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=Eg(r.projectName,{suffix:r.projectSuffix}).config}if(this.#e=r,r.schema??r.ajvOptions??r.rootSchema){if(r.schema&&typeof r.schema!="object")throw new TypeError("The `schema` option must be an object.");const o=new c_.Ajv2020({allErrors:!0,useDefaults:!0,
851
- ...r.ajvOptions});a0(o);const a={...r.rootSchema,type:"object",properties:r.schema};this.#n=o.compile(a);for(const[c,l]of Object.entries(r.schema??{}))l?.default&&(this.#r[c]=l.default)}r.defaults&&(this.#r={...this.#r,...r.defaults}),r.serialize&&(this._serialize=r.serialize),r.deserialize&&(this._deserialize=r.deserialize),this.events=new EventTarget,this.#t=r.encryptionKey;const n=r.fileExtension?`.${r.fileExtension}`:"";this.path=me.resolve(r.cwd,`${r.configName??"config"}${n}`);const s=this.
852
- store,i=Object.assign(or(),r.defaults,s);if(r.migrations){if(!r.projectVersion)throw new Error("Please specify the `projectVersion` option.");this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}this._validate(i);try{hp.deepEqual(s,i)}catch{this.store=i}r.watch&&this._watch()}get(e,r){if(this.#e.accessPropertiesByDotNotation)return this._get(e,r);const{store:n}=this;return e in n?n[e]:r}set(e,r){if(typeof e!="string"&&typeof e!="object")throw new TypeError(`Expected \`key\` to be of \
853
- type \`string\` or \`object\`, got ${typeof e}`);if(typeof e!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(e))throw new TypeError(`Please don't use the ${ys} key, as it's used to manage this module internal operations.`);const{store:n}=this,s=(i,o)=>{u0(i,o),this.#e.accessPropertiesByDotNotation?Wc(n,i,o):n[i]=o};if(typeof e=="object"){const i=e;for(const[o,a]of Object.entries(i))s(o,a)}else s(e,r);this.store=n}has(e){return this.#e.accessPropertiesByDotNotation?
854
- $g(this.store,e):e in this.store}reset(...e){for(const r of e)c0(this.#r[r])&&this.set(r,this.#r[r])}delete(e){const{store:r}=this;this.#e.accessPropertiesByDotNotation?_g(r,e):delete r[e],this.store=r}clear(){this.store=or();for(const e of Object.keys(this.#r))this.reset(e)}onDidChange(e,r){if(typeof e!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);
811
+ break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const _=Number(h)?1:0;if(this.prerelease.length===0)this.prerelease=[_];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(d===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier alre\
812
+ ady exists");this.prerelease.push(_)}}if(d){let b=[d,_];h===!1&&(b=[d]),a(this.prerelease[0],d)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return so=u,so}var io,bd;function sr(){if(bd)return io;bd=1;const t=Le();return io=(r,n,s=!1)=>{if(r instanceof t)return r;try{return new t(r,n)}catch(i){if(!s)return null;throw i}},
813
+ io}var oo,wd;function I_(){if(wd)return oo;wd=1;const t=sr();return oo=(r,n)=>{const s=t(r,n);return s?s.version:null},oo}var ao,Ed;function T_(){if(Ed)return ao;Ed=1;const t=sr();return ao=(r,n)=>{const s=t(r.trim().replace(/^[=v]+/,""),n);return s?s.version:null},ao}var co,Sd;function N_(){if(Sd)return co;Sd=1;const t=Le();return co=(r,n,s,i,o)=>{typeof s=="string"&&(o=i,i=s,s=void 0);try{return new t(r instanceof t?r.version:r,s).inc(n,i,o).version}catch{return null}},co}var uo,Rd;function j_(){
814
+ if(Rd)return uo;Rd=1;const t=sr();return uo=(r,n)=>{const s=t(r,null,!0),i=t(n,null,!0),o=s.compare(i);if(o===0)return null;const a=o>0,u=a?s:i,l=a?i:s,c=!!u.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(l.compareMain(u)===0)return l.minor&&!l.patch?"minor":"patch"}const h=c?"pre":"";return s.major!==i.major?h+"major":s.minor!==i.minor?h+"minor":s.patch!==i.patch?h+"patch":"prerelease"},uo}var lo,Ad;function L_(){if(Ad)return lo;Ad=1;const t=Le();return lo=
815
+ (r,n)=>new t(r,n).major,lo}var fo,Od;function k_(){if(Od)return fo;Od=1;const t=Le();return fo=(r,n)=>new t(r,n).minor,fo}var ho,Cd;function D_(){if(Cd)return ho;Cd=1;const t=Le();return ho=(r,n)=>new t(r,n).patch,ho}var po,Pd;function x_(){if(Pd)return po;Pd=1;const t=sr();return po=(r,n)=>{const s=t(r,n);return s&&s.prerelease.length?s.prerelease:null},po}var mo,Id;function Ze(){if(Id)return mo;Id=1;const t=Le();return mo=(r,n,s)=>new t(r,s).compare(new t(n,s)),mo}var go,Td;function M_(){if(Td)
816
+ return go;Td=1;const t=Ze();return go=(r,n,s)=>t(n,r,s),go}var yo,Nd;function q_(){if(Nd)return yo;Nd=1;const t=Ze();return yo=(r,n)=>t(r,n,!0),yo}var _o,jd;function $o(){if(jd)return _o;jd=1;const t=Le();return _o=(r,n,s)=>{const i=new t(r,s),o=new t(n,s);return i.compare(o)||i.compareBuild(o)},_o}var vo,Ld;function H_(){if(Ld)return vo;Ld=1;const t=$o();return vo=(r,n)=>r.sort((s,i)=>t(s,i,n)),vo}var bo,kd;function U_(){if(kd)return bo;kd=1;const t=$o();return bo=(r,n)=>r.sort((s,i)=>t(i,s,n)),
817
+ bo}var wo,Dd;function ms(){if(Dd)return wo;Dd=1;const t=Ze();return wo=(r,n,s)=>t(r,n,s)>0,wo}var Eo,xd;function So(){if(xd)return Eo;xd=1;const t=Ze();return Eo=(r,n,s)=>t(r,n,s)<0,Eo}var Ro,Md;function qd(){if(Md)return Ro;Md=1;const t=Ze();return Ro=(r,n,s)=>t(r,n,s)===0,Ro}var Ao,Hd;function Ud(){if(Hd)return Ao;Hd=1;const t=Ze();return Ao=(r,n,s)=>t(r,n,s)!==0,Ao}var Oo,Fd;function Co(){if(Fd)return Oo;Fd=1;const t=Ze();return Oo=(r,n,s)=>t(r,n,s)>=0,Oo}var Po,Vd;function Io(){if(Vd)return Po;
818
+ Vd=1;const t=Ze();return Po=(r,n,s)=>t(r,n,s)<=0,Po}var To,zd;function Gd(){if(zd)return To;zd=1;const t=qd(),e=Ud(),r=ms(),n=Co(),s=So(),i=Io();return To=(a,u,l,c)=>{switch(u){case"===":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a===l;case"!==":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a!==l;case"":case"=":case"==":return t(a,l,c);case"!=":return e(a,l,c);case">":return r(a,l,c);case">=":return n(a,l,c);case"<":return s(a,l,c);case"\
819
+ <=":return i(a,l,c);default:throw new TypeError(`Invalid operator: ${u}`)}},To}var No,Bd;function F_(){if(Bd)return No;Bd=1;const t=Le(),e=sr(),{safeRe:r,t:n}=jr();return No=(i,o)=>{if(i instanceof t)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;o=o||{};let a=null;if(!o.rtl)a=i.match(o.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const _=o.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let b;for(;(b=_.exec(i))&&(!a||a.index+a[0].length!==i.length);)(!a||
820
+ b.index+b[0].length!==a.index+a[0].length)&&(a=b),_.lastIndex=b.index+b[1].length+b[2].length;_.lastIndex=-1}if(a===null)return null;const u=a[2],l=a[3]||"0",c=a[4]||"0",d=o.includePrerelease&&a[5]?`-${a[5]}`:"",h=o.includePrerelease&&a[6]?`+${a[6]}`:"";return e(`${u}.${l}.${c}${d}${h}`,o)},No}var jo,Wd;function V_(){if(Wd)return jo;Wd=1;class t{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.
821
+ map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return jo=t,jo}var Lo,Kd;function et(){if(Kd)return Lo;Kd=1;const t=/\s+/g;class e{constructor(H,Y){if(Y=s(Y),H instanceof e)return H.loose===!!Y.loose&&H.includePrerelease===!!Y.includePrerelease?H:new e(H.raw,Y);if(H instanceof i)return this.raw=H.value,this.set=[[H]],this.formatted=void 0,this;if(this.options=Y,this.loose=!!Y.loose,
822
+ this.includePrerelease=!!Y.includePrerelease,this.raw=H.trim().replace(t," "),this.set=this.raw.split("||").map(G=>this.parseRange(G.trim())).filter(G=>G.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const G=this.set[0];if(this.set=this.set.filter(J=>!y(J[0])),this.set.length===0)this.set=[G];else if(this.set.length>1){for(const J of this.set)if(J.length===1&&f(J[0])){this.set=[J];break}}}this.formatted=void 0}get range(){if(this.formatted===
823
+ void 0){this.formatted="";for(let H=0;H<this.set.length;H++){H>0&&(this.formatted+="||");const Y=this.set[H];for(let G=0;G<Y.length;G++)G>0&&(this.formatted+=" "),this.formatted+=Y[G].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(H){const G=((this.options.includePrerelease&&_)|(this.options.loose&&b))+":"+H,J=n.get(G);if(J)return J;const se=this.options.loose,U=se?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];H=H.replace(U,M(this.options.includePrerelease)),
824
+ o("hyphen replace",H),H=H.replace(u[l.COMPARATORTRIM],c),o("comparator trim",H),H=H.replace(u[l.TILDETRIM],d),o("tilde trim",H),H=H.replace(u[l.CARETTRIM],h),o("caret trim",H);let A=H.split(" ").map(R=>p(R,this.options)).join(" ").split(/\s+/).map(R=>k(R,this.options));se&&(A=A.filter(R=>(o("loose invalid filter",R,this.options),!!R.match(u[l.COMPARATORLOOSE])))),o("range list",A);const V=new Map,x=A.map(R=>new i(R,this.options));for(const R of x){if(y(R))return[R];V.set(R.value,R)}V.size>1&&V.has(
825
+ "")&&V.delete("");const w=[...V.values()];return n.set(G,w),w}intersects(H,Y){if(!(H instanceof e))throw new TypeError("a Range is required");return this.set.some(G=>g(G,Y)&&H.set.some(J=>g(J,Y)&&G.every(se=>J.every(U=>se.intersects(U,Y)))))}test(H){if(!H)return!1;if(typeof H=="string")try{H=new a(H,this.options)}catch{return!1}for(let Y=0;Y<this.set.length;Y++)if(j(this.set[Y],H,this.options))return!0;return!1}}Lo=e;const r=V_(),n=new r,s=ro(),i=gs(),o=ps(),a=Le(),{safeRe:u,t:l,comparatorTrimReplace:c,
826
+ tildeTrimReplace:d,caretTrimReplace:h}=jr(),{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:b}=hs(),y=D=>D.value==="<0.0.0-0",f=D=>D.value==="",g=(D,H)=>{let Y=!0;const G=D.slice();let J=G.pop();for(;Y&&G.length;)Y=G.every(se=>J.intersects(se,H)),J=G.pop();return Y},p=(D,H)=>(o("comp",D,H),D=E(D,H),o("caret",D),D=$(D,H),o("tildes",D),D=I(D,H),o("xrange",D),D=B(D,H),o("stars",D),D),m=D=>!D||D.toLowerCase()==="x"||D==="*",$=(D,H)=>D.trim().split(/\s+/).map(Y=>v(Y,H)).join(" "),v=(D,H)=>{const Y=H.loose?u[l.
827
+ TILDELOOSE]:u[l.TILDE];return D.replace(Y,(G,J,se,U,A)=>{o("tilde",D,G,J,se,U,A);let V;return m(J)?V="":m(se)?V=`>=${J}.0.0 <${+J+1}.0.0-0`:m(U)?V=`>=${J}.${se}.0 <${J}.${+se+1}.0-0`:A?(o("replaceTilde pr",A),V=`>=${J}.${se}.${U}-${A} <${J}.${+se+1}.0-0`):V=`>=${J}.${se}.${U} <${J}.${+se+1}.0-0`,o("tilde return",V),V})},E=(D,H)=>D.trim().split(/\s+/).map(Y=>S(Y,H)).join(" "),S=(D,H)=>{o("caret",D,H);const Y=H.loose?u[l.CARETLOOSE]:u[l.CARET],G=H.includePrerelease?"-0":"";return D.replace(Y,(J,se,U,A,V)=>{
828
+ o("caret",D,J,se,U,A,V);let x;return m(se)?x="":m(U)?x=`>=${se}.0.0${G} <${+se+1}.0.0-0`:m(A)?se==="0"?x=`>=${se}.${U}.0${G} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}.0${G} <${+se+1}.0.0-0`:V?(o("replaceCaret pr",V),se==="0"?U==="0"?x=`>=${se}.${U}.${A}-${V} <${se}.${U}.${+A+1}-0`:x=`>=${se}.${U}.${A}-${V} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}.${A}-${V} <${+se+1}.0.0-0`):(o("no pr"),se==="0"?U==="0"?x=`>=${se}.${U}.${A}${G} <${se}.${U}.${+A+1}-0`:x=`>=${se}.${U}.${A}${G} <${se}.${+U+1}.0-0`:x=`>=${se}.${U}\
829
+ .${A} <${+se+1}.0.0-0`),o("caret return",x),x})},I=(D,H)=>(o("replaceXRanges",D,H),D.split(/\s+/).map(Y=>F(Y,H)).join(" ")),F=(D,H)=>{D=D.trim();const Y=H.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return D.replace(Y,(G,J,se,U,A,V)=>{o("xRange",D,G,J,se,U,A,V);const x=m(se),w=x||m(U),R=w||m(A),C=R;return J==="="&&C&&(J=""),V=H.includePrerelease?"-0":"",x?J===">"||J==="<"?G="<0.0.0-0":G="*":J&&C?(w&&(U=0),A=0,J===">"?(J=">=",w?(se=+se+1,U=0,A=0):(U=+U+1,A=0)):J==="<="&&(J="<",w?se=+se+1:U=+U+1),J==="<"&&
830
+ (V="-0"),G=`${J+se}.${U}.${A}${V}`):w?G=`>=${se}.0.0${V} <${+se+1}.0.0-0`:R&&(G=`>=${se}.${U}.0${V} <${se}.${+U+1}.0-0`),o("xRange return",G),G})},B=(D,H)=>(o("replaceStars",D,H),D.trim().replace(u[l.STAR],"")),k=(D,H)=>(o("replaceGTE0",D,H),D.trim().replace(u[H.includePrerelease?l.GTE0PRE:l.GTE0],"")),M=D=>(H,Y,G,J,se,U,A,V,x,w,R,C)=>(m(G)?Y="":m(J)?Y=`>=${G}.0.0${D?"-0":""}`:m(se)?Y=`>=${G}.${J}.0${D?"-0":""}`:U?Y=`>=${Y}`:Y=`>=${Y}${D?"-0":""}`,m(x)?V="":m(w)?V=`<${+x+1}.0.0-0`:m(R)?V=`<${x}.${+w+
831
+ 1}.0-0`:C?V=`<=${x}.${w}.${R}-${C}`:D?V=`<${x}.${w}.${+R+1}-0`:V=`<=${V}`,`${Y} ${V}`.trim()),j=(D,H,Y)=>{for(let G=0;G<D.length;G++)if(!D[G].test(H))return!1;if(H.prerelease.length&&!Y.includePrerelease){for(let G=0;G<D.length;G++)if(o(D[G].semver),D[G].semver!==i.ANY&&D[G].semver.prerelease.length>0){const J=D[G].semver;if(J.major===H.major&&J.minor===H.minor&&J.patch===H.patch)return!0}return!1}return!0};return Lo}var ko,Yd;function gs(){if(Yd)return ko;Yd=1;const t=Symbol("SemVer ANY");class e{static get ANY(){
832
+ return t}constructor(c,d){if(d=r(d),c instanceof e){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===t?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],h=c.match(d);if(!h)throw new TypeError(`Invalid comparator: ${c}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=
833
+ ""),h[2]?this.semver=new a(h[2],this.options.loose):this.semver=t}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===t||c===t)return!0;if(typeof c=="string")try{c=new a(c,this.options)}catch{return!1}return i(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new u(this.
834
+ value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||i(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.
835
+ semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}ko=e;const r=ro(),{safeRe:n,t:s}=jr(),i=Gd(),o=ps(),a=Le(),u=et();return ko}var Do,Xd;function ys(){if(Xd)return Do;Xd=1;const t=et();return Do=(r,n,s)=>{try{n=new t(n,s)}catch{return!1}return n.test(r)},Do}var xo,Jd;function z_(){if(Jd)return xo;Jd=1;const t=et();return xo=(r,n)=>new t(r,n).set.map(s=>s.map(i=>i.value).join(" ").trim().split(" ")),xo}var Mo,Qd;function G_(){if(Qd)return Mo;Qd=1;const t=Le(),e=et();
836
+ return Mo=(n,s,i)=>{let o=null,a=null,u=null;try{u=new e(s,i)}catch{return null}return n.forEach(l=>{u.test(l)&&(!o||a.compare(l)===-1)&&(o=l,a=new t(o,i))}),o},Mo}var qo,Zd;function B_(){if(Zd)return qo;Zd=1;const t=Le(),e=et();return qo=(n,s,i)=>{let o=null,a=null,u=null;try{u=new e(s,i)}catch{return null}return n.forEach(l=>{u.test(l)&&(!o||a.compare(l)===1)&&(o=l,a=new t(o,i))}),o},qo}var Ho,eh;function W_(){if(eh)return Ho;eh=1;const t=Le(),e=et(),r=ms();return Ho=(s,i)=>{s=new e(s,i);let o=new t(
837
+ "0.0.0");if(s.test(o)||(o=new t("0.0.0-0"),s.test(o)))return o;o=null;for(let a=0;a<s.set.length;++a){const u=s.set[a];let l=null;u.forEach(c=>{const d=new t(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!l||r(d,l))&&(l=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),l&&(!o||r(o,l))&&(o=l)}return o&&s.test(o)?o:null},Ho}var Uo,th;function K_(){if(th)return Uo;
838
+ th=1;const t=et();return Uo=(r,n)=>{try{return new t(r,n).range||"*"}catch{return null}},Uo}var Fo,rh;function Vo(){if(rh)return Fo;rh=1;const t=Le(),e=gs(),{ANY:r}=e,n=et(),s=ys(),i=ms(),o=So(),a=Io(),u=Co();return Fo=(c,d,h,_)=>{c=new t(c,_),d=new n(d,_);let b,y,f,g,p;switch(h){case">":b=i,y=a,f=o,g=">",p=">=";break;case"<":b=o,y=u,f=i,g="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(c,d,_))return!1;for(let m=0;m<d.set.length;++m){const $=d.set[m];let v=null,
839
+ E=null;if($.forEach(S=>{S.semver===r&&(S=new e(">=0.0.0")),v=v||S,E=E||S,b(S.semver,v.semver,_)?v=S:f(S.semver,E.semver,_)&&(E=S)}),v.operator===g||v.operator===p||(!E.operator||E.operator===g)&&y(c,E.semver))return!1;if(E.operator===p&&f(c,E.semver))return!1}return!0},Fo}var zo,nh;function Y_(){if(nh)return zo;nh=1;const t=Vo();return zo=(r,n,s)=>t(r,n,">",s),zo}var Go,sh;function X_(){if(sh)return Go;sh=1;const t=Vo();return Go=(r,n,s)=>t(r,n,"<",s),Go}var Bo,ih;function J_(){if(ih)return Bo;ih=
840
+ 1;const t=et();return Bo=(r,n,s)=>(r=new t(r,s),n=new t(n,s),r.intersects(n,s)),Bo}var Wo,oh;function Q_(){if(oh)return Wo;oh=1;const t=ys(),e=Ze();return Wo=(r,n,s)=>{const i=[];let o=null,a=null;const u=r.sort((h,_)=>e(h,_,s));for(const h of u)t(h,n,s)?(a=h,o||(o=h)):(a&&i.push([o,a]),a=null,o=null);o&&i.push([o,null]);const l=[];for(const[h,_]of i)h===_?l.push(h):!_&&h===u[0]?l.push("*"):_?h===u[0]?l.push(`<=${_}`):l.push(`${h} - ${_}`):l.push(`>=${h}`);const c=l.join(" || "),d=typeof n.raw==
841
+ "string"?n.raw:String(n);return c.length<d.length?c:n},Wo}var Ko,ah;function Z_(){if(ah)return Ko;ah=1;const t=et(),e=gs(),{ANY:r}=e,n=ys(),s=Ze(),i=(d,h,_={})=>{if(d===h)return!0;d=new t(d,_),h=new t(h,_);let b=!1;e:for(const y of d.set){for(const f of h.set){const g=u(y,f,_);if(b=b||g!==null,g)continue e}if(b)return!1}return!0},o=[new e(">=0.0.0-0")],a=[new e(">=0.0.0")],u=(d,h,_)=>{if(d===h)return!0;if(d.length===1&&d[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;_.includePrerelease?
842
+ d=o:d=a}if(h.length===1&&h[0].semver===r){if(_.includePrerelease)return!0;h=a}const b=new Set;let y,f;for(const I of d)I.operator===">"||I.operator===">="?y=l(y,I,_):I.operator==="<"||I.operator==="<="?f=c(f,I,_):b.add(I.semver);if(b.size>1)return null;let g;if(y&&f){if(g=s(y.semver,f.semver,_),g>0)return null;if(g===0&&(y.operator!==">="||f.operator!=="<="))return null}for(const I of b){if(y&&!n(I,String(y),_)||f&&!n(I,String(f),_))return null;for(const F of h)if(!n(I,String(F),_))return!1;return!0}
843
+ let p,m,$,v,E=f&&!_.includePrerelease&&f.semver.prerelease.length?f.semver:!1,S=y&&!_.includePrerelease&&y.semver.prerelease.length?y.semver:!1;E&&E.prerelease.length===1&&f.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(const I of h){if(v=v||I.operator===">"||I.operator===">=",$=$||I.operator==="<"||I.operator==="<=",y){if(S&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===S.major&&I.semver.minor===S.minor&&I.semver.patch===S.patch&&(S=!1),I.operator===">"||I.operator===">="){
844
+ if(p=l(y,I,_),p===I&&p!==y)return!1}else if(y.operator===">="&&!n(y.semver,String(I),_))return!1}if(f){if(E&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===E.major&&I.semver.minor===E.minor&&I.semver.patch===E.patch&&(E=!1),I.operator==="<"||I.operator==="<="){if(m=c(f,I,_),m===I&&m!==f)return!1}else if(f.operator==="<="&&!n(f.semver,String(I),_))return!1}if(!I.operator&&(f||y)&&g!==0)return!1}return!(y&&$&&!f&&g!==0||f&&v&&!y&&g!==0||S||E)},l=(d,h,_)=>{if(!d)return h;const b=s(
845
+ d.semver,h.semver,_);return b>0?d:b<0||h.operator===">"&&d.operator===">="?h:d},c=(d,h,_)=>{if(!d)return h;const b=s(d.semver,h.semver,_);return b<0?d:b>0||h.operator==="<"&&d.operator==="<="?h:d};return Ko=i,Ko}var Yo,ch;function e0(){if(ch)return Yo;ch=1;const t=jr(),e=hs(),r=Le(),n=$d(),s=sr(),i=I_(),o=T_(),a=N_(),u=j_(),l=L_(),c=k_(),d=D_(),h=x_(),_=Ze(),b=M_(),y=q_(),f=$o(),g=H_(),p=U_(),m=ms(),$=So(),v=qd(),E=Ud(),S=Co(),I=Io(),F=Gd(),B=F_(),k=gs(),M=et(),j=ys(),D=z_(),H=G_(),Y=B_(),G=W_(),
846
+ J=K_(),se=Vo(),U=Y_(),A=X_(),V=J_(),x=Q_(),w=Z_();return Yo={parse:s,valid:i,clean:o,inc:a,diff:u,major:l,minor:c,patch:d,prerelease:h,compare:_,rcompare:b,compareLoose:y,compareBuild:f,sort:g,rsort:p,gt:m,lt:$,eq:v,neq:E,gte:S,lte:I,cmp:F,coerce:B,Comparator:k,Range:M,satisfies:j,toComparators:D,maxSatisfying:H,minSatisfying:Y,minVersion:G,validRange:J,outside:se,gtr:U,ltr:A,intersects:V,simplifyRange:x,subset:w,SemVer:r,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.
847
+ RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Yo}var Xo=e0();const ir=Dr(Xo),t0=Object.prototype.toString,r0="[object Uint8Array]",n0="[object ArrayBuffer]";function uh(t,e,r){return t?t.constructor===e?!0:t0.call(t)===r:!1}function lh(t){return uh(t,Uint8Array,r0)}function s0(t){return uh(t,ArrayBuffer,n0)}function i0(t){return lh(t)||s0(t)}function o0(t){if(!lh(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function a0(t){
848
+ if(!i0(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function fh(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((s,i)=>s+i.length,0);const r=new Uint8Array(e);let n=0;for(const s of t)o0(s),r.set(s,n),n+=s.length;return r}const dh={utf8:new globalThis.TextDecoder("utf8")};function hh(t,e="utf8"){return a0(t),dh[e]??=new globalThis.TextDecoder(e),dh[e].decode(t)}function c0(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got\
849
+ \`${typeof t}\``)}const u0=new globalThis.TextEncoder;function Jo(t){return c0(t),u0.encode(t)}Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));const l0=b_.default,ph="aes-256-cbc",or=()=>Object.create(null),f0=t=>t!=null,d0=(t,e)=>{const r=new Set(["undefined","symbol","function"]),n=typeof e;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${t}\` is not allowed as it's not supported by JSON`)},_s="__internal__",Qo=`${_s}.migrations.version`;class h0{path;events;#n;#t;#e;#r={};constructor(e={}){
850
+ const r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...e};if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=Ag(r.projectName,{suffix:r.projectSuffix}).config}if(this.#e=r,r.schema??r.ajvOptions??r.rootSchema){if(r.schema&&typeof r.schema!="object")throw new TypeError("The `schema` option must be an object.");const o=new f_.Ajv2020({allErrors:!0,useDefaults:!0,
851
+ ...r.ajvOptions});l0(o);const a={...r.rootSchema,type:"object",properties:r.schema};this.#n=o.compile(a);for(const[u,l]of Object.entries(r.schema??{}))l?.default&&(this.#r[u]=l.default)}r.defaults&&(this.#r={...this.#r,...r.defaults}),r.serialize&&(this._serialize=r.serialize),r.deserialize&&(this._deserialize=r.deserialize),this.events=new EventTarget,this.#t=r.encryptionKey;const n=r.fileExtension?`.${r.fileExtension}`:"";this.path=me.resolve(r.cwd,`${r.configName??"config"}${n}`);const s=this.
852
+ store,i=Object.assign(or(),r.defaults,s);if(r.migrations){if(!r.projectVersion)throw new Error("Please specify the `projectVersion` option.");this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}this._validate(i);try{pp.deepEqual(s,i)}catch{this.store=i}r.watch&&this._watch()}get(e,r){if(this.#e.accessPropertiesByDotNotation)return this._get(e,r);const{store:n}=this;return e in n?n[e]:r}set(e,r){if(typeof e!="string"&&typeof e!="object")throw new TypeError(`Expected \`key\` to be of \
853
+ type \`string\` or \`object\`, got ${typeof e}`);if(typeof e!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(e))throw new TypeError(`Please don't use the ${_s} key, as it's used to manage this module internal operations.`);const{store:n}=this,s=(i,o)=>{d0(i,o),this.#e.accessPropertiesByDotNotation?Kc(n,i,o):n[i]=o};if(typeof e=="object"){const i=e;for(const[o,a]of Object.entries(i))s(o,a)}else s(e,r);this.store=n}has(e){return this.#e.accessPropertiesByDotNotation?
854
+ wg(this.store,e):e in this.store}reset(...e){for(const r of e)f0(this.#r[r])&&this.set(r,this.#r[r])}delete(e){const{store:r}=this;this.#e.accessPropertiesByDotNotation?bg(r,e):delete r[e],this.store=r}clear(){this.store=or();for(const e of Object.keys(this.#r))this.reset(e)}onDidChange(e,r){if(typeof e!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);
855
855
  return this._handleChange(()=>this.get(e),r)}onDidAnyChange(e){if(typeof e!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`);return this._handleChange(()=>this.store,e)}get size(){return Object.keys(this.store).length}get store(){try{const e=pe.readFileSync(this.path,this.#t?null:"utf8"),r=this._encryptData(e),n=this._deserialize(r);return this._validate(n),Object.assign(or(),n)}catch(e){if(e?.code==="ENOENT")return this._ensureDirectory(),or();
856
- if(this.#e.clearInvalidConfig&&e.name==="SyntaxError")return or();throw e}}set store(e){this._ensureDirectory(),this._validate(e),this._write(e),this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(const[e,r]of Object.entries(this.store))yield[e,r]}_encryptData(e){if(!this.#t)return typeof e=="string"?e:dh(e);try{const r=e.slice(0,16),n=dr.pbkdf2Sync(this.#t,r.toString(),1e4,32,"sha512"),s=dr.createDecipheriv(hh,n,r),i=e.slice(17),o=typeof i=="string"?Xo(i):i;return dh(lh([s.update(
857
- o),s.final()]))}catch{}return e.toString()}_handleChange(e,r){let n=e();const s=()=>{const i=n,o=e();dp(o,i)||(n=o,r.call(this,o,i))};return this.events.addEventListener("change",s),()=>{this.events.removeEventListener("change",s)}}_deserialize=e=>JSON.parse(e);_serialize=e=>JSON.stringify(e,void 0," ");_validate(e){if(!this.#n||this.#n(e)||!this.#n.errors)return;const n=this.#n.errors.map(({instancePath:s,message:i=""})=>`\`${s.slice(1)}\` ${i}`);throw new Error("Config schema violation: "+n.join(
858
- "; "))}_ensureDirectory(){pe.mkdirSync(me.dirname(this.path),{recursive:!0})}_write(e){let r=this._serialize(e);if(this.#t){const n=dr.randomBytes(16),s=dr.pbkdf2Sync(this.#t,n.toString(),1e4,32,"sha512"),i=dr.createCipheriv(hh,s,n);r=lh([n,Xo(":"),i.update(Xo(r)),i.final()])}if(Se.env.SNAP)pe.writeFileSync(this.path,r,{mode:this.#e.configFileMode});else try{Qc(this.path,r,{mode:this.#e.configFileMode})}catch(n){if(n?.code==="EXDEV"){pe.writeFileSync(this.path,r,{mode:this.#e.configFileMode});return}
859
- throw n}}_watch(){this._ensureDirectory(),pe.existsSync(this.path)||this._write(or()),Se.platform==="win32"?pe.watch(this.path,{persistent:!1},dd(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100})):pe.watchFile(this.path,{persistent:!1},dd(()=>{this.events.dispatchEvent(new Event("change"))},{wait:5e3}))}_migrate(e,r,n){let s=this._get(Jo,"0.0.0");const i=Object.keys(e).filter(a=>this._shouldPerformMigration(a,s,r));let o={...this.store};for(const a of i)try{n&&n(this,{fromVersion:s,
860
- toVersion:a,finalVersion:r,versions:i});const c=e[a];c?.(this),this._set(Jo,a),s=a,o={...this.store}}catch(c){throw this.store=o,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${c}`)}(this._isVersionInRangeFormat(s)||!ir.eq(s,r))&&this._set(Jo,r)}_containsReservedKey(e){return typeof e=="object"&&Object.keys(e)[0]===ys?!0:typeof e!="string"?!1:this.#e.accessPropertiesByDotNotation?!!e.startsWith(`${ys}.`):!1}_isVersionInRangeFormat(e){
861
- return ir.clean(e)===null}_shouldPerformMigration(e,r,n){return this._isVersionInRangeFormat(e)?r!=="0.0.0"&&ir.satisfies(r,e)?!1:ir.satisfies(n,e):!(ir.lte(e,r)||ir.gt(e,n))}_get(e,r){return yg(this.store,e,r)}_set(e,r){const{store:n}=this;Wc(n,e,r),this.store=n}}class ph extends Error{response;request;options;constructor(e,r,n){const s=e.status||e.status===0?e.status:"",i=e.statusText||"",o=`${s} ${i}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${r.method}\
862
- ${r.url}`),this.name="HTTPError",this.response=e,this.request=r,this.options=n}}class mh extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}const gh=(()=>{let t=!1,e=!1;const r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Co\
863
- ntent-Type")}catch(s){if(s instanceof Error&&s.message==="unsupported BodyInit type")return!1;throw s}return t&&!e})(),f0=typeof globalThis.AbortController=="function",d0=typeof globalThis.ReadableStream=="function",h0=typeof globalThis.FormData=="function",yh=["get","post","put","patch","head","delete"],p0={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},Qo=2147483647,m0=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,
864
- _h=Symbol("stop"),g0={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},y0={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},_0=t=>{if(!t)return 0;if(t instanceof FormData){let e=0;for(const[r,n]of t)e+=m0,e+=new TextEncoder().encode(`Content-Dis\
856
+ if(this.#e.clearInvalidConfig&&e.name==="SyntaxError")return or();throw e}}set store(e){this._ensureDirectory(),this._validate(e),this._write(e),this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(const[e,r]of Object.entries(this.store))yield[e,r]}_encryptData(e){if(!this.#t)return typeof e=="string"?e:hh(e);try{const r=e.slice(0,16),n=dr.pbkdf2Sync(this.#t,r.toString(),1e4,32,"sha512"),s=dr.createDecipheriv(ph,n,r),i=e.slice(17),o=typeof i=="string"?Jo(i):i;return hh(fh([s.update(
857
+ o),s.final()]))}catch{}return e.toString()}_handleChange(e,r){let n=e();const s=()=>{const i=n,o=e();hp(o,i)||(n=o,r.call(this,o,i))};return this.events.addEventListener("change",s),()=>{this.events.removeEventListener("change",s)}}_deserialize=e=>JSON.parse(e);_serialize=e=>JSON.stringify(e,void 0," ");_validate(e){if(!this.#n||this.#n(e)||!this.#n.errors)return;const n=this.#n.errors.map(({instancePath:s,message:i=""})=>`\`${s.slice(1)}\` ${i}`);throw new Error("Config schema violation: "+n.join(
858
+ "; "))}_ensureDirectory(){pe.mkdirSync(me.dirname(this.path),{recursive:!0})}_write(e){let r=this._serialize(e);if(this.#t){const n=dr.randomBytes(16),s=dr.pbkdf2Sync(this.#t,n.toString(),1e4,32,"sha512"),i=dr.createCipheriv(ph,s,n);r=fh([n,Jo(":"),i.update(Jo(r)),i.final()])}if(Se.env.SNAP)pe.writeFileSync(this.path,r,{mode:this.#e.configFileMode});else try{Zc(this.path,r,{mode:this.#e.configFileMode})}catch(n){if(n?.code==="EXDEV"){pe.writeFileSync(this.path,r,{mode:this.#e.configFileMode});return}
859
+ throw n}}_watch(){this._ensureDirectory(),pe.existsSync(this.path)||this._write(or()),Se.platform==="win32"?pe.watch(this.path,{persistent:!1},hd(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100})):pe.watchFile(this.path,{persistent:!1},hd(()=>{this.events.dispatchEvent(new Event("change"))},{wait:5e3}))}_migrate(e,r,n){let s=this._get(Qo,"0.0.0");const i=Object.keys(e).filter(a=>this._shouldPerformMigration(a,s,r));let o={...this.store};for(const a of i)try{n&&n(this,{fromVersion:s,
860
+ toVersion:a,finalVersion:r,versions:i});const u=e[a];u?.(this),this._set(Qo,a),s=a,o={...this.store}}catch(u){throw this.store=o,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${u}`)}(this._isVersionInRangeFormat(s)||!ir.eq(s,r))&&this._set(Qo,r)}_containsReservedKey(e){return typeof e=="object"&&Object.keys(e)[0]===_s?!0:typeof e!="string"?!1:this.#e.accessPropertiesByDotNotation?!!e.startsWith(`${_s}.`):!1}_isVersionInRangeFormat(e){
861
+ return ir.clean(e)===null}_shouldPerformMigration(e,r,n){return this._isVersionInRangeFormat(e)?r!=="0.0.0"&&ir.satisfies(r,e)?!1:ir.satisfies(n,e):!(ir.lte(e,r)||ir.gt(e,n))}_get(e,r){return vg(this.store,e,r)}_set(e,r){const{store:n}=this;Kc(n,e,r),this.store=n}}class mh extends Error{response;request;options;constructor(e,r,n){const s=e.status||e.status===0?e.status:"",i=e.statusText||"",o=`${s} ${i}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${r.method}\
862
+ ${r.url}`),this.name="HTTPError",this.response=e,this.request=r,this.options=n}}class gh extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}const yh=(()=>{let t=!1,e=!1;const r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Co\
863
+ ntent-Type")}catch(s){if(s instanceof Error&&s.message==="unsupported BodyInit type")return!1;throw s}return t&&!e})(),p0=typeof globalThis.AbortController=="function",m0=typeof globalThis.ReadableStream=="function",g0=typeof globalThis.FormData=="function",_h=["get","post","put","patch","head","delete"],y0={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},Zo=2147483647,_0=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,
864
+ $h=Symbol("stop"),$0={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},v0={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},b0=t=>{if(!t)return 0;if(t instanceof FormData){let e=0;for(const[r,n]of t)e+=_0,e+=new TextEncoder().encode(`Content-Dis\
865
865
  position: form-data; name="${r}"`).length,e+=typeof n=="string"?new TextEncoder().encode(n).length:n.size;return e}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength;if(typeof t=="string")return new TextEncoder().encode(t).length;if(t instanceof URLSearchParams)return new TextEncoder().encode(t.toString()).length;if("byteLength"in t)return t.byteLength;if(typeof t=="object"&&t!==null)try{const e=JSON.stringify(t);return new TextEncoder().encode(e).length}catch{return 0}
866
- return 0},$0=(t,e)=>{const r=Number(t.headers.get("content-length"))||0;let n=0;return t.status===204?(e&&e({percent:1,totalBytes:r,transferredBytes:n},new Uint8Array),new Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new Response(new ReadableStream({async start(s){const i=t.body.getReader();e&&e({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function o(){const{done:a,value:c}=await i.read();if(a){s.close();return}if(e){n+=c.byteLength;const l=r===
867
- 0?0:n/r;e({percent:l,transferredBytes:n,totalBytes:r},c)}s.enqueue(c),await o()}await o()}}),{status:t.status,statusText:t.statusText,headers:t.headers})},v0=(t,e)=>{const r=_0(t.body);let n=0;return new Request(t,{duplex:"half",body:new ReadableStream({async start(s){const i=t.body instanceof ReadableStream?t.body.getReader():new Response("").body.getReader();async function o(){const{done:a,value:c}=await i.read();if(a){e&&e({percent:1,transferredBytes:n,totalBytes:Math.max(r,n)},new Uint8Array),
868
- s.close();return}n+=c.byteLength;let l=r===0?0:n/r;(r<n||l===1)&&(l=.99),e&&e({percent:Number(l.toFixed(2)),transferredBytes:n,totalBytes:r},c),s.enqueue(c),await o()}await o()}})})},Lr=t=>t!==null&&typeof t=="object",_s=(...t)=>{for(const e of t)if((!Lr(e)||Array.isArray(e))&&e!==void 0)throw new TypeError("The `options` argument must be an object");return Zo({},...t)},$h=(t={},e={})=>{const r=new globalThis.Headers(t),n=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(const[i,o]of s.
869
- entries())n&&o==="undefined"||o===void 0?r.delete(i):r.set(i,o);return r};function $s(t,e,r){return Object.hasOwn(e,r)&&e[r]===void 0?[]:Zo(t[r]??[],e[r]??[])}const vh=(t={},e={})=>({beforeRequest:$s(t,e,"beforeRequest"),beforeRetry:$s(t,e,"beforeRetry"),afterResponse:$s(t,e,"afterResponse"),beforeError:$s(t,e,"beforeError")}),Zo=(...t)=>{let e={},r={},n={};for(const s of t)if(Array.isArray(s))Array.isArray(e)||(e=[]),e=[...e,...s];else if(Lr(s)){for(let[i,o]of Object.entries(s))Lr(o)&&i in e&&(o=
870
- Zo(e[i],o)),e={...e,[i]:o};Lr(s.hooks)&&(n=vh(n,s.hooks),e.hooks=n),Lr(s.headers)&&(r=$h(r,s.headers),e.headers=r)}return e},b0=t=>yh.includes(t)?t.toUpperCase():t,w0=["get","put","head","delete","options","trace"],E0=[408,413,429,500,502,503,504],S0=[413,429,503],bh={limit:2,methods:w0,statusCodes:E0,afterStatusCodes:S0,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3},R0=(t={})=>{if(typeof t=="number")return{...bh,limit:t};if(t.methods&&!Array.
871
- isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...bh,...t}};async function A0(t,e,r,n){return new Promise((s,i)=>{const o=setTimeout(()=>{r&&r.abort(),i(new mh(t))},n.timeout);n.fetch(t,e).then(s).catch(i).then(()=>{clearTimeout(o)})})}async function O0(t,{signal:e}){return new Promise((r,n)=>{e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));function s(){
872
- clearTimeout(i),n(e.reason)}const i=setTimeout(()=>{e?.removeEventListener("abort",s),r()},t)})}const C0=(t,e)=>{const r={};for(const n in e)!(n in y0)&&!(n in g0)&&!(n in t)&&(r[n]=e[n]);return r};class ws{static create(e,r){const n=new ws(e,r),s=async()=>{if(typeof n._options.timeout=="number"&&n._options.timeout>Qo)throw new RangeError(`The \`timeout\` option cannot be greater than ${Qo}`);await Promise.resolve();let a=await n._fetch();for(const c of n._options.hooks.afterResponse){const l=await c(
873
- n.request,n._options,n._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(n._decorateResponse(a),!a.ok&&n._options.throwHttpErrors){let c=new ph(a,n.request,n._options);for(const l of n._options.hooks.beforeError)c=await l(c);throw c}if(n.request.bodyUsed||await n.request.body?.cancel(),n._options.onDownloadProgress){if(typeof n._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!d0)throw new Error("Streams a\
874
- re not supported in your environment. `ReadableStream` is missing.");return $0(a.clone(),n._options.onDownloadProgress)}return a},o=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(s):s();for(const[a,c]of Object.entries(p0))o[a]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||c);const l=await o;if(a==="json"){if(l.status===204||(await l.clone().arrayBuffer()).byteLength===0)return"";if(r.parseJson)return r.parseJson(await l.text())}return l[a]()};
875
- return o}request;abortController;_retryCount=0;_input;_options;constructor(e,r={}){if(this._input=e,this._options={...r,headers:$h(this._input.headers,r.headers),hooks:vh({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:b0(r.method??this._input.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:R0(r.retry),throwHttpErrors:r.throwHttpErrors!==!1,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof
876
- URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(f0){const n=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,
877
- this._options.signal=n?AbortSignal.any([n,this.abortController.signal]):this.abortController.signal}if(gh&&(this._options.duplex="half"),this._options.json!==void 0&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const s="?"+(typeof this._options.
878
- searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),i=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,s);(h0&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(i,{...this.request}),this._options)}if(this._options.
879
- onUploadProgress){if(typeof this._options.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!gh)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=v0(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof mh)throw e;if(e instanceof ph){if(!this.
866
+ return 0},w0=(t,e)=>{const r=Number(t.headers.get("content-length"))||0;let n=0;return t.status===204?(e&&e({percent:1,totalBytes:r,transferredBytes:n},new Uint8Array),new Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new Response(new ReadableStream({async start(s){const i=t.body.getReader();e&&e({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function o(){const{done:a,value:u}=await i.read();if(a){s.close();return}if(e){n+=u.byteLength;const l=r===
867
+ 0?0:n/r;e({percent:l,transferredBytes:n,totalBytes:r},u)}s.enqueue(u),await o()}await o()}}),{status:t.status,statusText:t.statusText,headers:t.headers})},E0=(t,e)=>{const r=b0(t.body);let n=0;return new Request(t,{duplex:"half",body:new ReadableStream({async start(s){const i=t.body instanceof ReadableStream?t.body.getReader():new Response("").body.getReader();async function o(){const{done:a,value:u}=await i.read();if(a){e&&e({percent:1,transferredBytes:n,totalBytes:Math.max(r,n)},new Uint8Array),
868
+ s.close();return}n+=u.byteLength;let l=r===0?0:n/r;(r<n||l===1)&&(l=.99),e&&e({percent:Number(l.toFixed(2)),transferredBytes:n,totalBytes:r},u),s.enqueue(u),await o()}await o()}})})},Lr=t=>t!==null&&typeof t=="object",$s=(...t)=>{for(const e of t)if((!Lr(e)||Array.isArray(e))&&e!==void 0)throw new TypeError("The `options` argument must be an object");return ea({},...t)},vh=(t={},e={})=>{const r=new globalThis.Headers(t),n=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(const[i,o]of s.
869
+ entries())n&&o==="undefined"||o===void 0?r.delete(i):r.set(i,o);return r};function vs(t,e,r){return Object.hasOwn(e,r)&&e[r]===void 0?[]:ea(t[r]??[],e[r]??[])}const bh=(t={},e={})=>({beforeRequest:vs(t,e,"beforeRequest"),beforeRetry:vs(t,e,"beforeRetry"),afterResponse:vs(t,e,"afterResponse"),beforeError:vs(t,e,"beforeError")}),ea=(...t)=>{let e={},r={},n={};for(const s of t)if(Array.isArray(s))Array.isArray(e)||(e=[]),e=[...e,...s];else if(Lr(s)){for(let[i,o]of Object.entries(s))Lr(o)&&i in e&&(o=
870
+ ea(e[i],o)),e={...e,[i]:o};Lr(s.hooks)&&(n=bh(n,s.hooks),e.hooks=n),Lr(s.headers)&&(r=vh(r,s.headers),e.headers=r)}return e},S0=t=>_h.includes(t)?t.toUpperCase():t,R0=["get","put","head","delete","options","trace"],A0=[408,413,429,500,502,503,504],O0=[413,429,503],wh={limit:2,methods:R0,statusCodes:A0,afterStatusCodes:O0,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3},C0=(t={})=>{if(typeof t=="number")return{...wh,limit:t};if(t.methods&&!Array.
871
+ isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...wh,...t}};async function P0(t,e,r,n){return new Promise((s,i)=>{const o=setTimeout(()=>{r&&r.abort(),i(new gh(t))},n.timeout);n.fetch(t,e).then(s).catch(i).then(()=>{clearTimeout(o)})})}async function I0(t,{signal:e}){return new Promise((r,n)=>{e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));function s(){
872
+ clearTimeout(i),n(e.reason)}const i=setTimeout(()=>{e?.removeEventListener("abort",s),r()},t)})}const T0=(t,e)=>{const r={};for(const n in e)!(n in v0)&&!(n in $0)&&!(n in t)&&(r[n]=e[n]);return r};class Es{static create(e,r){const n=new Es(e,r),s=async()=>{if(typeof n._options.timeout=="number"&&n._options.timeout>Zo)throw new RangeError(`The \`timeout\` option cannot be greater than ${Zo}`);await Promise.resolve();let a=await n._fetch();for(const u of n._options.hooks.afterResponse){const l=await u(
873
+ n.request,n._options,n._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(n._decorateResponse(a),!a.ok&&n._options.throwHttpErrors){let u=new mh(a,n.request,n._options);for(const l of n._options.hooks.beforeError)u=await l(u);throw u}if(n.request.bodyUsed||await n.request.body?.cancel(),n._options.onDownloadProgress){if(typeof n._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!m0)throw new Error("Streams a\
874
+ re not supported in your environment. `ReadableStream` is missing.");return w0(a.clone(),n._options.onDownloadProgress)}return a},o=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(s):s();for(const[a,u]of Object.entries(y0))o[a]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||u);const l=await o;if(a==="json"){if(l.status===204||(await l.clone().arrayBuffer()).byteLength===0)return"";if(r.parseJson)return r.parseJson(await l.text())}return l[a]()};
875
+ return o}request;abortController;_retryCount=0;_input;_options;constructor(e,r={}){if(this._input=e,this._options={...r,headers:vh(this._input.headers,r.headers),hooks:bh({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:S0(r.method??this._input.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:C0(r.retry),throwHttpErrors:r.throwHttpErrors!==!1,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof
876
+ URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(p0){const n=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,
877
+ this._options.signal=n?AbortSignal.any([n,this.abortController.signal]):this.abortController.signal}if(yh&&(this._options.duplex="half"),this._options.json!==void 0&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const s="?"+(typeof this._options.
878
+ searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),i=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,s);(g0&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(i,{...this.request}),this._options)}if(this._options.
879
+ onUploadProgress){if(typeof this._options.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!yh)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=E0(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof gh)throw e;if(e instanceof mh){if(!this.
880
880
  _options.retry.statusCodes.includes(e.response.status))throw e;const n=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(n&&this._options.retry.afterStatusCodes.includes(e.response.status)){let s=Number(n)*1e3;Number.isNaN(s)?s=Date.parse(n)-Date.now():s>=Date.parse("2024-01-01")&&(s-=Date.now());const i=this._options.retry.maxRetryAfter??s;return s<i?s:i}if(e.response.status===
881
- 413)throw e}const r=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,r)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(r){const n=Math.min(this._calculateRetryDelay(r),Qo);if(this._retryCount<1)throw r;await O0(n,{signal:this._options.signal});for(const s of this._options.hooks.beforeRetry)if(await s({request:this.request,options:this._options,error:r,
882
- retryCount:this._retryCount})===_h)return;return this._retry(e)}}async _fetch(){for(const n of this._options.hooks.beforeRequest){const s=await n(this.request,this._options);if(s instanceof Request){this.request=s;break}if(s instanceof Response)return s}const e=C0(this.request,this._options),r=this.request;return this.request=r.clone(),this._options.timeout===!1?this._options.fetch(r,e):A0(r,e,this.abortController,this._options)}}const ea=t=>{const e=(r,n)=>ws.create(r,_s(t,n));for(const r of yh)
883
- e[r]=(n,s)=>ws.create(n,_s(t,s,{method:r}));return e.create=r=>ea(_s(r)),e.extend=r=>(typeof r=="function"&&(r=r(t??{})),ea(_s(t,r))),e.stop=_h,e},P0=ea(),vs=Object.create(null),kr=t=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?vs:globalThis),St=new Proxy(vs,{get(t,e){return kr()[e]??vs[e]},has(t,e){const r=kr();return e in r||e in vs},set(t,e,r){const n=kr(!0);return n[e]=r,!0},deleteProperty(t,e){if(!e)return!1;const r=kr(!0);return delete r[e],
884
- !0},ownKeys(){const t=kr(!0);return Object.keys(t)}}),wh=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",I0=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE\
881
+ 413)throw e}const r=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,r)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(r){const n=Math.min(this._calculateRetryDelay(r),Zo);if(this._retryCount<1)throw r;await I0(n,{signal:this._options.signal});for(const s of this._options.hooks.beforeRetry)if(await s({request:this.request,options:this._options,error:r,
882
+ retryCount:this._retryCount})===$h)return;return this._retry(e)}}async _fetch(){for(const n of this._options.hooks.beforeRequest){const s=await n(this.request,this._options);if(s instanceof Request){this.request=s;break}if(s instanceof Response)return s}const e=T0(this.request,this._options),r=this.request;return this.request=r.clone(),this._options.timeout===!1?this._options.fetch(r,e):P0(r,e,this.abortController,this._options)}}const ta=t=>{const e=(r,n)=>Es.create(r,$s(t,n));for(const r of _h)
883
+ e[r]=(n,s)=>Es.create(n,$s(t,s,{method:r}));return e.create=r=>ta($s(r)),e.extend=r=>(typeof r=="function"&&(r=r(t??{})),ta($s(t,r))),e.stop=$h,e},N0=ta(),bs=Object.create(null),kr=t=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bs:globalThis),St=new Proxy(bs,{get(t,e){return kr()[e]??bs[e]},has(t,e){const r=kr();return e in r||e in bs},set(t,e,r){const n=kr(!0);return n[e]=r,!0},deleteProperty(t,e){if(!e)return!1;const r=kr(!0);return delete r[e],
884
+ !0},ownKeys(){const t=kr(!0);return Object.keys(t)}}),Eh=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",j0=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE\
885
885
  _PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["\
886
886
  SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","F\
887
- IREBASE_APP_HOSTING",{ci:!0}]];function T0(){if(globalThis.process?.env)for(const t of I0){const e=t[1]||t[0];if(globalThis.process?.env[e])return{name:t[0].toLowerCase(),...t[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}const Eh=T0();Eh.name;function zt(t){return t?t!=="false":!1}const N0=globalThis.process?.platform||"",Sh=zt(St.CI)||Eh.ci!==!1,Rh=zt(globalThis.process?.stdout&&globalThis.process?.stdout.
888
- isTTY);zt(St.DEBUG);const j0=wh==="test"||zt(St.TEST),L0=zt(St.MINIMAL)||Sh||j0||!Rh,k0=/^win/i.test(N0);!zt(St.NO_COLOR)&&(zt(St.FORCE_COLOR)||(Rh||k0)&&St.TERM);const D0=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(D0?.split(".")[0]);const x0=globalThis.process||Object.create(null),Ah={versions:{}};new Proxy(x0,{get(t,e){if(e==="env")return St;if(e in t)return t[e];if(e in Ah)return Ah[e]}});const M0=globalThis.process?.release?.name==="node",q0=!!globalThis.Bun||!!globalThis.
889
- process?.versions?.bun,H0=!!globalThis.Deno,U0=!!globalThis.fastly,F0=!!globalThis.Netlify,V0=!!globalThis.EdgeRuntime,z0=globalThis.navigator?.userAgent==="Cloudflare-Workers",G0=[[F0,"netlify"],[V0,"edge-light"],[z0,"workerd"],[U0,"fastly"],[H0,"deno"],[q0,"bun"],[M0,"node"]];function B0(){const t=G0.find(e=>e[0]);if(t)return{name:t[1]}}const W0=B0();W0?.name;const ta=new l0({projectName:Dh,serialize:t=>Gt.stringify(t,null,2),deserialize:t=>Gt.parse(t)}),K0=1e3*60*60*24,Oh="check-update";function Y0(){
890
- if(L0||wh===Oh)return;const t=ta.get("lastUpdateCheck"),e=ta.get("latestVersion");if(xh(e)||Mh(t)||t+K0<Date.now())try{sa("likec4",["check-update"],{stdio:"ignore",preferLocal:!0,detached:!0,env:{NODE_ENV:Oh}}).catch(()=>{})}catch{}e&&Yo.gt(e,Bt)&&Rt(["Update available: ",ee.dim(Bt),ee.reset(" \u2192 "),ee.green(e)].join(""))}async function X0(){try{const t=await J0();Ds(t,"No version found in latest npm"),ta.set({lastUpdateCheck:Date.now(),latestVersion:t}),Yo.gt(t,Bt)?Rt(["Update available: ",
891
- ee.dim(Bt),ee.reset(" \u2192 "),ee.green(t)].join("")):Rt(ee.dim("Up to date: ")+" "+ee.green(Bt))}catch(t){ct.error(Ss(t))}}async function J0(){return(await P0("https://registry.npmjs.org/likec4/latest",{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},keepalive:!0}).json()).version}async function Q0(t,e,r){const n=".ts";e=e??ye(t.workspace,"likec4.generated"+n),ur(e)!==n&&(e=e+n),await ut(At(e),{recursive:!0});const s=await t.diagrams(),i=Gm([...s]);await Pt(
892
- e,i),r.info(`${ee.dim("generated")} ${Ot(process.cwd(),e)}`)}async function Z0(t,e,r){await ut(e,{recursive:!0}),r.info(`${ee.dim("format")} ${ee.green("dot")}`),r.info(`${ee.dim("outdir")} ${e}`);const n=new Set,s=await t.viewsService.computedViews();let i=0;for(const o of s)try{const a=await t.viewsService.layouter.dot(o),c=o.relativePath??"";c!==""&&!n.has(c)&&(await ut(ye(e,c),{recursive:!0}),n.add(c));const l=ye(e,c,o.id+".dot");await Pt(l,a),r.info(`${ee.dim("generated")} ${Ot(process.cwd(),
893
- l)}`),i++}catch(a){ct.error(`error while generating ${o.id}`,{error:a})}i>0&&r.info(`${ee.dim("total")} ${i} files`)}async function e$(t,e,r,n){await ut(r,{recursive:!0}),n.info(`${ee.dim("format")} ${ee.green(e)}`),n.info(`${ee.dim("outdir")} ${r}`);let s,i;switch(e){case"d2":s=".d2",i=sp;break;case"mermaid":s=".mmd",i=np;break;default:$a(e)}const o=new Set,a=await t.diagrams();let c=0;for(const l of a)try{let u=l.relativePath??".";u.includes("/")?u=u.slice(0,u.lastIndexOf("/")):u=".",u!==""&&!o.
894
- has(u)&&(await ut(ye(r,u),{recursive:!0}),o.add(u));const d=ye(r,u,l.id+s),h=i(l);await Pt(d,h),n.info(`${ee.dim("generated")} ${Ot(process.cwd(),d)}`),c++}catch(u){n.error(`error while generating ${l.id}`,{error:u})}c>0&&n.info(`${ee.dim("total")} ${c} files`)}async function bs({path:t,useDotBin:e,...r}){const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});if(i.ensureSingleProject(),(await i.viewsService.computedViews()).length===0)throw n.warn(
895
- "no views found"),process.exitCode=1,new Error("no views found");switch(r.format){case"views":{await Q0(i,r.outfile,n);break}case"dot":{await Z0(i,r.outdir??t,n);break}case"d2":case"mermaid":{await e$(i,r.format,r.outdir??t,n);break}default:$a(r)}s.stopAndLog()}async function t$({path:t,useDotBin:e,outfile:r}){const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject(),n.info(`${ee.dim("format")} ${ee.green("model")}`);const o=await i.
896
- layoutedModel();for(const d of o.views())d.$view.hasLayoutDrift&&n.warn(ee.yellow("drift detected, manual layout can not be applied, view:")+" "+ee.red(d.id));let a=ye(i.workspace,"likec4-model.ts");if(r&&(a=Is(r)?r:ye(r),Ct(r)&&(await Ns(r)).isDirectory()))throw new Error(`output file is a directory: ${r}`);const c=Dr(a);n.info(`${ee.dim("filename")} ${c}`);const l=ur(c).toLocaleLowerCase();if(![".ts",".mts",".cts"].includes(l))throw n.error(`output file ${r} has extension "${l}"`),new Error(`o\
897
- utput file ${r} must be a .ts, .mts or .cts file`);const u=At(a);n.info(`${ee.dim("outdir")} ${u}`),await ut(u,{recursive:!0}),await Pt(a,Vm(o),{encoding:"utf-8"}),Rt(Rs(`
898
- ${ee.dim("Source with LikeC4Model generated:")}
887
+ IREBASE_APP_HOSTING",{ci:!0}]];function L0(){if(globalThis.process?.env)for(const t of j0){const e=t[1]||t[0];if(globalThis.process?.env[e])return{name:t[0].toLowerCase(),...t[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}const Sh=L0();Sh.name;function zt(t){return t?t!=="false":!1}const k0=globalThis.process?.platform||"",Rh=zt(St.CI)||Sh.ci!==!1,Ah=zt(globalThis.process?.stdout&&globalThis.process?.stdout.
888
+ isTTY);zt(St.DEBUG);const D0=Eh==="test"||zt(St.TEST),x0=zt(St.MINIMAL)||Rh||D0||!Ah,M0=/^win/i.test(k0);!zt(St.NO_COLOR)&&(zt(St.FORCE_COLOR)||(Ah||M0)&&St.TERM);const q0=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(q0?.split(".")[0]);const H0=globalThis.process||Object.create(null),Oh={versions:{}};new Proxy(H0,{get(t,e){if(e==="env")return St;if(e in t)return t[e];if(e in Oh)return Oh[e]}});const U0=globalThis.process?.release?.name==="node",F0=!!globalThis.Bun||!!globalThis.
889
+ process?.versions?.bun,V0=!!globalThis.Deno,z0=!!globalThis.fastly,G0=!!globalThis.Netlify,B0=!!globalThis.EdgeRuntime,W0=globalThis.navigator?.userAgent==="Cloudflare-Workers",K0=[[G0,"netlify"],[B0,"edge-light"],[W0,"workerd"],[z0,"fastly"],[V0,"deno"],[F0,"bun"],[U0,"node"]];function Y0(){const t=K0.find(e=>e[0]);if(t)return{name:t[1]}}const X0=Y0();X0?.name;const ra=new h0({projectName:Mh,serialize:t=>Gt.stringify(t,null,2),deserialize:t=>Gt.parse(t)}),J0=1e3*60*60*24,Ch="check-update";function Q0(){
890
+ if(x0||Eh===Ch)return;const t=ra.get("lastUpdateCheck"),e=ra.get("latestVersion");if(qh(e)||Hh(t)||t+J0<Date.now())try{ia("likec4",["check-update"],{stdio:"ignore",preferLocal:!0,detached:!0,env:{NODE_ENV:Ch}}).catch(()=>{})}catch{}e&&Xo.gt(e,Bt)&&Rt(["Update available: ",K.dim(Bt),K.reset(" \u2192 "),K.green(e)].join(""))}async function Z0(){try{const t=await e$();xs(t,"No version found in latest npm"),ra.set({lastUpdateCheck:Date.now(),latestVersion:t}),Xo.gt(t,Bt)?Rt(["Update available: ",K.dim(
891
+ Bt),K.reset(" \u2192 "),K.green(t)].join("")):Rt(K.dim("Up to date: ")+" "+K.green(Bt))}catch(t){ct.error(Ss(t))}}async function e$(){return(await N0("https://registry.npmjs.org/likec4/latest",{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},keepalive:!0}).json()).version}async function t$(t,e,r){const n=".ts";e=e??ye(t.workspace,"likec4.generated"+n),ur(e)!==n&&(e=e+n),await ut(At(e),{recursive:!0});const s=await t.diagrams(),i=Bm([...s]);await Pt(e,i),
892
+ r.info(`${K.dim("generated")} ${Ot(process.cwd(),e)}`)}async function r$(t,e,r){await ut(e,{recursive:!0}),r.info(`${K.dim("format")} ${K.green("dot")}`),r.info(`${K.dim("outdir")} ${e}`);const n=new Set,s=await t.viewsService.computedViews();let i=0;for(const o of s)try{const a=await t.viewsService.layouter.dot(o),u=o.relativePath??"";u!==""&&!n.has(u)&&(await ut(ye(e,u),{recursive:!0}),n.add(u));const l=ye(e,u,o.id+".dot");await Pt(l,a),r.info(`${K.dim("generated")} ${Ot(process.cwd(),l)}`),i++}catch(a){
893
+ ct.error(`error while generating ${o.id}`,{error:a})}i>0&&r.info(`${K.dim("total")} ${i} files`)}async function n$(t,e,r,n){await ut(r,{recursive:!0}),n.info(`${K.dim("format")} ${K.green(e)}`),n.info(`${K.dim("outdir")} ${r}`);let s,i;switch(e){case"d2":s=".d2",i=op;break;case"mermaid":s=".mmd",i=ip;break;default:va(e)}const o=new Set,a=await t.diagrams();let u=0;for(const l of a)try{let c=l.relativePath??".";c.includes("/")?c=c.slice(0,c.lastIndexOf("/")):c=".",c!==""&&!o.has(c)&&(await ut(ye(
894
+ r,c),{recursive:!0}),o.add(c));const d=ye(r,c,l.id+s),h=i(l);await Pt(d,h),n.info(`${K.dim("generated")} ${Ot(process.cwd(),d)}`),u++}catch(c){n.error(`error while generating ${l.id}`,{error:c})}u>0&&n.info(`${K.dim("total")} ${u} files`)}async function ws({path:t,useDotBin:e,...r}){const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});if(i.ensureSingleProject(),(await i.viewsService.computedViews()).length===0)throw n.warn("no views found"),process.
895
+ exitCode=1,new Error("no views found");switch(r.format){case"views":{await t$(i,r.outfile,n);break}case"dot":{await r$(i,r.outdir??t,n);break}case"d2":case"mermaid":{await n$(i,r.format,r.outdir??t,n);break}default:va(r)}s.stopAndLog()}async function s$({path:t,useDotBin:e,outfile:r}){const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject(),n.info(`${K.dim("format")} ${K.green("model")}`);const o=await i.layoutedModel();for(const d of o.
896
+ views())d.$view.hasLayoutDrift&&n.warn(K.yellow("drift detected, manual layout can not be applied, view:")+" "+K.red(d.id));let a=ye(i.workspace,"likec4-model.ts");if(r&&(a=Is(r)?r:ye(r),Ct(r)&&(await Ns(r)).isDirectory()))throw new Error(`output file is a directory: ${r}`);const u=xr(a);n.info(`${K.dim("filename")} ${u}`);const l=ur(u).toLocaleLowerCase();if(![".ts",".mts",".cts"].includes(l))throw n.error(`output file ${r} has extension "${l}"`),new Error(`output file ${r} must be a .ts, .mts \
897
+ or .cts file`);const c=At(a);n.info(`${K.dim("outdir")} ${c}`),await ut(c,{recursive:!0}),await Pt(a,zm(o),{encoding:"utf-8"}),Rt(Rs(`
898
+ ${K.dim("Source with LikeC4Model generated:")}
899
899
  ${Ot(As(),a)}
900
900
 
901
- ${ee.dim("How to use:")}
902
- ${ee.underline("https://likec4.dev/tooling/code-generation/model/")}
903
- `).trim(),{padding:2,borderColor:"green",borderStyle:"round"}),s.stopAndLog()}async function r$({languageServices:t,outDir:e,filename:r="likec4-react.mjs"}){const n=ri,s=si();return n.info(`${ee.cyan("likec4 app root")} ${ee.dim(s)}`),n.info(ee.cyan("outDir")+" "+ee.dim(e)),{customLogger:n,root:s,configFile:!1,clearScreen:!1,publicDir:!1,mode:"production",resolve:{conditions:["production"],alias:ai()},esbuild:{banner:`'use client'
904
- `+ni.banner,footer:ni.footer,jsx:"transform",jsxDev:!1,jsxSideEffects:!1,minifyIdentifiers:!1,minifySyntax:!1,minifyWhitespace:!1,tsconfigRaw:{compilerOptions:{target:"ES2022",useDefineForClassFields:!0,verbatimModuleSyntax:!0,jsx:"react-jsx"}}},build:{outDir:e,emptyOutDir:!1,sourcemap:!1,minify:!1,target:"es2022",copyPublicDir:!1,chunkSizeWarningLimit:oi,lib:{entry:"react/likec4.tsx",fileName(i,o){return r},formats:["es"]},rollupOptions:{output:{compact:!1,exports:"named"},external:["likec4/rea\
905
- ct","likec4/model","react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react-dom/client",/likec4\/icons\/.*/],onwarn(i,o){i.code!=="SOURCEMAP_ERROR"&&o(i)}}},plugins:[js({}),ks({languageServices:t.languageServices,useOverviewGraph:!1})]}}async function n$({path:t,useDotBin:e,outfile:r}){await Ar();const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject(),n.info(`${ee.dim("format")} ${ee.green("react")}`);const o=await i.
906
- diagrams();if(o.length===0)throw process.exitCode=1,new Error("no views found");o.forEach(y=>{y.hasLayoutDrift&&n.warn(ee.yellow("drift detected, manual layout can not be applied, view:")+" "+ee.red(y.id))});let a=ye(i.workspace,"likec4-views.js");if(r&&(a=Is(r)?r:ye(r),Ct(r)&&(await Ns(r)).isDirectory()))throw new Error(`output file is a directory: ${r}`);const c=At(a);n.info(`${ee.dim("outdir")} ${c}`);const l=Dr(a);n.info(`${ee.dim("filename")} ${l}`);const u=ur(l).toLocaleLowerCase();if(![".\
907
- js",".mjs",".jsx"].includes(u))throw n.error(`output file ${r} has extension "${u}"`),new Error(`output file ${r} must be a .js, .jsx or .mjs`);const d=await r$({languageServices:i,outDir:c,filename:l});await fr({...d,logLevel:"warn"});const h=await i.layoutedModel();await Pt(ye(c,Dr(a,u)+(u===".mjs"?".d.mts":".d.ts")),Bm(h)),Rt(Rs(`
908
- ${ee.dim("Source generated:")}
901
+ ${K.dim("How to use:")}
902
+ ${K.underline("https://likec4.dev/tooling/code-generation/model/")}
903
+ `).trim(),{padding:2,borderColor:"green",borderStyle:"round"}),s.stopAndLog()}async function i$({languageServices:t,outDir:e,filename:r="likec4-react.mjs"}){const n=ni,s=ii();return n.info(`${K.cyan("likec4 app root")} ${K.dim(s)}`),n.info(K.cyan("outDir")+" "+K.dim(e)),{customLogger:n,root:s,configFile:!1,clearScreen:!1,publicDir:!1,mode:"production",resolve:{conditions:["production"],alias:ci()},esbuild:{banner:`'use client'
904
+ `+si.banner,footer:si.footer,jsx:"transform",jsxDev:!1,jsxSideEffects:!1,minifyIdentifiers:!1,minifySyntax:!1,minifyWhitespace:!1,tsconfigRaw:{compilerOptions:{target:"ES2022",useDefineForClassFields:!0,verbatimModuleSyntax:!0,jsx:"react-jsx"}}},build:{outDir:e,emptyOutDir:!1,sourcemap:!1,minify:!1,target:"es2022",copyPublicDir:!1,chunkSizeWarningLimit:ai,lib:{entry:"react/likec4.tsx",fileName(i,o){return r},formats:["es"]},rollupOptions:{output:{compact:!1,exports:"named"},external:["likec4/rea\
905
+ ct","likec4/model","react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","react-dom/client",/likec4\/icons\/.*/],onwarn(i,o){i.code!=="SOURCEMAP_ERROR"&&o(i)}}},plugins:[js({}),ks({languageServices:t.languageServices,useOverviewGraph:!1})]}}async function o$({path:t,useDotBin:e,outfile:r}){await Ar();const n=tt("c4:codegen"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject(),n.info(`${K.dim("format")} ${K.green("react")}`);const o=await i.
906
+ diagrams();if(o.length===0)throw process.exitCode=1,new Error("no views found");o.forEach(_=>{_.hasLayoutDrift&&n.warn(K.yellow("drift detected, manual layout can not be applied, view:")+" "+K.red(_.id))});let a=ye(i.workspace,"likec4-views.js");if(r&&(a=Is(r)?r:ye(r),Ct(r)&&(await Ns(r)).isDirectory()))throw new Error(`output file is a directory: ${r}`);const u=At(a);n.info(`${K.dim("outdir")} ${u}`);const l=xr(a);n.info(`${K.dim("filename")} ${l}`);const c=ur(l).toLocaleLowerCase();if(![".js",
907
+ ".mjs",".jsx"].includes(c))throw n.error(`output file ${r} has extension "${c}"`),new Error(`output file ${r} must be a .js, .jsx or .mjs`);const d=await i$({languageServices:i,outDir:u,filename:l});await fr({...d,logLevel:"warn"});const h=await i.layoutedModel();await Pt(ye(u,xr(a,c)+(c===".mjs"?".d.mts":".d.ts")),Wm(h)),Rt(Rs(`
908
+ ${K.dim("Source generated:")}
909
909
  ${Ot(As(),a)}
910
910
 
911
- ${ee.dim("How to use:")}
912
- ${ee.underline("https://likec4.dev/tooling/code-generation/react/")}
913
- `),{padding:2,borderColor:"green",borderStyle:"round"}),s.stopAndLog()}async function s$({path:t,useDotBin:e,webcomponentPrefix:r="likec4",outfile:n}){await Ar();const s=tt("c4:codegen"),i=ar(s),o=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});o.ensureSingleProject(),s.info(`${ee.dim("format")} ${ee.green("webcomponent")}`);const a=await o.diagrams();if(!aa(a,1))throw s.warn("no views found"),process.exitCode=1,new Error("no views found");a.forEach(b=>{b.hasLayoutDrift&&s.
914
- warn(ee.yellow("drift detected, manual layout can not be applied, view:")+" "+ee.red(b.id))});let c=ye(o.workspace,"likec4-views.js");if(n&&(c=Is(n)?n:ye(n),Ct(n)&&(await Ns(n)).isDirectory()))throw new Error(`output file is a directory: ${n}`);at.debug(`${ee.dim("outfilepath")} ${c}`);const l=Dr(c);at.debug(`${ee.dim("filename")} ${l}`);const u=ur(l).toLocaleLowerCase();if(u!==".js"&&u!==".mjs")throw at.warn(`output file ${n} has extension "${u}"`),new Error(`output file ${n} must be a .js or .\
915
- mjs`);const d=await ii();at.debug(`${ee.dim("created temp public")} ${d}`);const h=await Ci({languageServices:o,outDir:d,filename:l,webcomponentPrefix:r,base:"/"});at.debug(`${ee.dim("vite build webcomponent")}`),await fr({...h,logLevel:"warn"});const y=ye(d,l);if(!Ct(y))throw new Error(`output file not found: ${y}`);await ut(At(c),{recursive:!0}),await tp(y,c),s.info(`${ee.dim("generated")} ${c}`),at.debug(`${ee.dim("remove temp public")}`),await rp(d,{recursive:!0,force:!0}),Rt(Rs(`
916
- ${ee.dim("Webcomponents generated to:")}
917
- ${Ot(As(),c)}
918
-
919
- ${ee.dim("Setup and usage instructions:")}
920
- ${ee.blue("https://likec4.dev/tooling/code-generation/webcomponent/")}
921
- `)),i.stopAndLog()}const i$={command:"codegen <command> [path]",aliases:["generate","gen"],describe:"Generate various artifacts from LikeC4 sources",builder:t=>t.positional("path",Sr).command("react [path]","generate react component to render likec4 view",e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> path to output file (.jsx, .mjs or .js)",normalize:!0,coerce:Ue}).option("use-dot",Ye),async e=>{await n$({useDotBin:e.useDotBin,path:e.path,outfile:e.outfile})}).command({command:"w\
922
- ebcomponent [path]",aliases:["wc","webcomp"],describe:"generate js with webcomponents",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> path to output file (.mjs or .js)",normalize:!0,coerce:Ue}).option("webcomponent-prefix",ti).option("use-dot",Ye),handler:async e=>{await s$({useDotBin:e.useDotBin,path:e.path,outfile:e.outfile,webcomponentPrefix:e.webcomponentPrefix})}}).command({command:"model [path]",aliases:["ts"],describe:"generate LikeC4Model (.ts)",builder:e=>e.option("\
923
- outfile",{alias:"o",type:"string",desc:"<file> path to output file (.ts)",normalize:!0,coerce:Ue}).option("use-dot",Ye),handler:async e=>{await t$({path:e.path,useDotBin:e.useDotBin,outfile:e.outfile})}}).command({command:"views-data [path]",aliases:["views"],describe:"generate likec4 views data (.ts)",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> output .ts file",normalize:!0,coerce:Ue}).option("use-dot",Ye),handler:async e=>{await bs({format:"views",path:e.path,useDotBin:e.
924
- useDotBin,outfile:e.outfile})}}).command({command:"dot [path]",describe:"generate graphviz files (.dot)",builder:e=>e.option("outdir",Qr).option("use-dot",Ye),handler:async e=>{await bs({format:"dot",path:e.path,useDotBin:e.useDotBin,outdir:e.outdir})}}).command({command:"d2 [path]",describe:"generate D2 files (.d2)",builder:e=>e.option("outdir",Qr).option("use-dot",Ye),handler:async e=>{await bs({format:"d2",path:e.path,useDotBin:e.useDotBin,outdir:e.outdir})}}).command({command:"mermaid [path]",
925
- aliases:["mmd"],describe:"generate Mermaid files (.mmd)",builder:e=>e.option("outdir",Qr).option("use-dot",Ye),handler:async e=>{await bs({format:"mermaid",useDotBin:e.useDotBin,path:e.path,outdir:e.outdir})}}).epilog(`${ee.bold("Examples:")}
911
+ ${K.dim("How to use:")}
912
+ ${K.underline("https://likec4.dev/tooling/code-generation/react/")}
913
+ `),{padding:2,borderColor:"green",borderStyle:"round"}),s.stopAndLog()}async function a$({path:t,useDotBin:e,webcomponentPrefix:r="likec4",outfile:n}){await Ar();const s=tt("c4:codegen"),i=ar(s),o=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});o.ensureSingleProject(),s.info(`${K.dim("format")} ${K.green("webcomponent")}`);const a=await o.diagrams();if(!ca(a,1))throw s.warn("no views found"),process.exitCode=1,new Error("no views found");a.forEach(b=>{b.hasLayoutDrift&&s.warn(
914
+ K.yellow("drift detected, manual layout can not be applied, view:")+" "+K.red(b.id))});let u=ye(o.workspace,"likec4-views.js");if(n&&(u=Is(n)?n:ye(n),Ct(n)&&(await Ns(n)).isDirectory()))throw new Error(`output file is a directory: ${n}`);at.debug(`${K.dim("outfilepath")} ${u}`);const l=xr(u);at.debug(`${K.dim("filename")} ${l}`);const c=ur(l).toLocaleLowerCase();if(c!==".js"&&c!==".mjs")throw at.warn(`output file ${n} has extension "${c}"`),new Error(`output file ${n} must be a .js or .mjs`);const d=await oi();
915
+ at.debug(`${K.dim("created temp public")} ${d}`);const h=await Pi({languageServices:o,outDir:d,filename:l,webcomponentPrefix:r,base:"/"});at.debug(`${K.dim("vite build webcomponent")}`),await fr({...h,logLevel:"warn"});const _=ye(d,l);if(!Ct(_))throw new Error(`output file not found: ${_}`);await ut(At(u),{recursive:!0}),await np(_,u),s.info(`${K.dim("generated")} ${u}`),at.debug(`${K.dim("remove temp public")}`),await sp(d,{recursive:!0,force:!0}),Rt(Rs(`
916
+ ${K.dim("Webcomponents generated to:")}
917
+ ${Ot(As(),u)}
918
+
919
+ ${K.dim("Setup and usage instructions:")}
920
+ ${K.blue("https://likec4.dev/tooling/code-generation/webcomponent/")}
921
+ `)),i.stopAndLog()}const c$={command:"codegen <command> [path]",aliases:["generate","gen"],describe:"Generate various artifacts from LikeC4 sources",builder:t=>t.positional("path",Sr).command("react [path]","generate react component to render likec4 view",e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> path to output file (.jsx, .mjs or .js)",normalize:!0,coerce:Ue}).option("use-dot",Ye),async e=>{await o$({useDotBin:e.useDotBin,path:e.path,outfile:e.outfile})}).command({command:"w\
922
+ ebcomponent [path]",aliases:["wc","webcomp"],describe:"generate js with webcomponents",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> path to output file (.mjs or .js)",normalize:!0,coerce:Ue}).option("webcomponent-prefix",ri).option("use-dot",Ye),handler:async e=>{await a$({useDotBin:e.useDotBin,path:e.path,outfile:e.outfile,webcomponentPrefix:e.webcomponentPrefix})}}).command({command:"model [path]",aliases:["ts"],describe:"generate LikeC4Model (.ts)",builder:e=>e.option("\
923
+ outfile",{alias:"o",type:"string",desc:"<file> path to output file (.ts)",normalize:!0,coerce:Ue}).option("use-dot",Ye),handler:async e=>{await s$({path:e.path,useDotBin:e.useDotBin,outfile:e.outfile})}}).command({command:"views-data [path]",aliases:["views"],describe:"generate likec4 views data (.ts)",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> output .ts file",normalize:!0,coerce:Ue}).option("use-dot",Ye),handler:async e=>{await ws({format:"views",path:e.path,useDotBin:e.
924
+ useDotBin,outfile:e.outfile})}}).command({command:"dot [path]",describe:"generate graphviz files (.dot)",builder:e=>e.option("outdir",Zr).option("use-dot",Ye),handler:async e=>{await ws({format:"dot",path:e.path,useDotBin:e.useDotBin,outdir:e.outdir})}}).command({command:"d2 [path]",describe:"generate D2 files (.d2)",builder:e=>e.option("outdir",Zr).option("use-dot",Ye),handler:async e=>{await ws({format:"d2",path:e.path,useDotBin:e.useDotBin,outdir:e.outdir})}}).command({command:"mermaid [path]",
925
+ aliases:["mmd"],describe:"generate Mermaid files (.mmd)",builder:e=>e.option("outdir",Zr).option("use-dot",Ye),handler:async e=>{await ws({format:"mermaid",useDotBin:e.useDotBin,path:e.path,outdir:e.outdir})}}).epilog(`${K.bold("Examples:")}
926
926
  likec4 gen react -o dist/likec4-views.mjs ./src/likec4
927
927
  likec4 gen model -o likec4-model.ts
928
928
  likec4 gen webcomponent -o likec4.js --webcomponent-prefix c4 --use-dot-bin ./src
@@ -930,28 +930,32 @@ aliases:["mmd"],describe:"generate Mermaid files (.mmd)",builder:e=>e.option("ou
930
930
  likec4 gen ts --outfile ../likec4.ts
931
931
  likec4 gen mmd --outdir assets/
932
932
  likec4 gen dot -o out .
933
- `),handler:()=>{}};async function o$({path:t,useDotBin:e,outfile:r}){const n=tt("c4:export"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject();const o=await i.layoutedModel();ur(r)!==".json"&&(r=r+".json"),await ut(At(r),{recursive:!0});const a=JSON.stringify(o.$model,null,2);await Pt(r,a),n.info(`${ee.dim("generated")} ${Ot(process.cwd(),r)}`),s.stopAndLog("\u2713 export in ")}const a$={command:"export <format> [path]",describe:"Export to ima\
934
- ges or JSON",builder:t=>t.usage(`${ee.bold("Usage:")} $0 export <format> [path]`).positional("path",Sr).command({command:"png [path]",describe:"export views to PNG",builder:e=>e.option("output",Qr).option("theme",{choices:["light","dark"],desc:"color-scheme to use, default is light"}).option("flat",{boolean:!0,type:"boolean",desc:"ignore sources structure and export all PNGs in output directory"}).option("use-dot",Ye).options({ignore:{boolean:!0,alias:"i",desc:"continue if some views failed to e\
935
- xport"},timeout:{type:"number",alias:"t",desc:"(sec) timeout for playwright ",default:10},"max-attempts":{type:"number",describe:"",desc:"(number) max attempts to export failing view",default:3},"server-url":{type:"string",desc:"use this url instead of starting new likec4 server"}}).epilog(`${ee.bold("Examples:")}
936
- ${ee.green("$0 export png")}
937
- ${ee.gray("Search for likec4 files in current directory and output PNG next to sources")}
938
-
939
- ${ee.green("$0 export png --theme dark -o ./png src/likec4 ")}
940
- ${ee.gray("Search for likec4 files in src/likec4 and output PNG with dark theme to png folder")}
941
- `),handler:async e=>{Ds(e.timeout>=1,"timeout must be >= 1"),Ds(e["max-attempts"]>=1,"max-attempts must be >= 1"),await Ar(),await Vc({path:e.path,useDotBin:e.useDotBin,output:e.output,timeoutMs:e.timeout*1e3,maxAttempts:e.maxAttempts,ignore:e.ignore===!0,outputType:e.flat?"flat":"relative",serverUrl:e.serverUrl,theme:e.theme??"light"})}}).command({command:"json [path]",describe:"export model to JSON",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> output .json file",default:"\
942
- likec4.json",normalize:!0,coerce:ye}).option("use-dot",Ye).epilog(`${ee.bold("Examples:")}
943
- ${ee.green("$0 export json")}
944
- ${ee.gray("Search for likec4 files in current directory and output JSON to likec4.json")}
945
-
946
- ${ee.green("$0 export json -o ./generated/likec4.json src/likec4 ")}
947
- ${ee.gray("Search for likec4 files in src/likec4 and output JSON to generated/likec4.json")}
948
- `),handler:async e=>{await o$({path:e.path,useDotBin:e.useDotBin,outfile:e.outfile})}}).updateStrings({"Commands:":ee.bold("Formats:")}),handler:()=>{}};async function c$(t){const{isDev:e,...r}=await Oi({...t,likec4AssetsDir:"",webcomponentPrefix:void 0}),n=await Ii({port:sn(62001,62010)}),s=t?.open??!1;return await op({...r,mode:"production",preview:{host:t.listen??"127.0.0.1",allowedHosts:!0,port:n,open:s}})}async function u$({path:t,output:e,base:r,listen:n}){const s=await rt.fromWorkspace(t,
949
- {logger:"vite"}),i=await c$({base:r,languageServices:s,outputDir:e,open:!0,listen:n});xc(i)}const l$={command:"preview [path]",describe:"Start local server to preview production build",builder:t=>t.positional("path",{type:"string",desc:`Directory with LikeC4 source files
950
- if not specified search in current directory`,normalize:!0}).options({output:{alias:"o",type:"string",desc:"output directory from production build",normalize:!0},base:{type:"string",desc:"base url the app is being served from"},listen:{alias:"l",type:"string",desc:"ip address of the network interface to listen on"}}).coerce(["path","output"],Ue).default("path",Ue("."),".").default("listen","127.0.0.1","localhost"),async handler(t){await u$(t)}};async function f$({path:t,useDotBin:e,webcomponentPrefix:r,
951
- useHashHistory:n,useOverview:s=!1,base:i,listen:o}){process.env.NODE_ENV="development";const a=await rt.fromWorkspace(t,{graphviz:e?"binary":"wasm"}),c=await xr(cr(Mr(),".likec4-assets-")),l=await Uc({buildWebcomponent:!0,hmr:!0,base:i,webcomponentPrefix:r,languageServices:a,useHashHistory:n,useOverviewGraph:s,likec4AssetsDir:c,listen:o});if(l.config.logger.clearScreen("info"),xc(l),!s)return;const u=await a.diagrams();if(aa(u,1)){const d=tt("c4:export"),h=Dc(l);if(!h){d.error("no preview server\
952
- url");return}d.info(ee.cyan("wait 5sec before generating previews")),await va(5e3);try{await Fc({serverUrl:h,logger:d,views:u,theme:"light",output:c,outputType:"flat"}),await va(1e3),d.info(ee.yellow("Note: changes in sources do not trigger preview updates, restart is required"))}catch(y){d.error(ee.red("Failed to generate previews")),d.error(y)}}else l.config.logger.warn("no views found, no previews generated")}const d$={command:"start [path]",aliases:["serve","dev"],describe:"Start local dev \
953
- server to preview LikeC4 views",builder:t=>t.positional("path",Sr).option("base",oc).option("webcomponent-prefix",ti).option("use-hash-history",ic).option("use-overview",ac).option("use-dot",Ye).option("listen",gm),handler:async t=>{await Ar(),await f$({path:t.path,useDotBin:t["use-dot"],base:t.base,useOverview:t["use-overview"]??!1,webcomponentPrefix:t["webcomponent-prefix"],useHashHistory:t["use-hash-history"],listen:t.listen})}};async function h$({path:t,ignoreLayout:e}){const r=await rt.fromWorkspace(
954
- t,{logger:"vite"}),n=tt("c4:views");let s=!0;return s=await i(r)&&s,s=(e||await o(r,n))&&s,s?0:ca(1);function i(a){return a.getErrors().length===0}async function o(a,c){const l=await a.diagrams();let u=!1;for(const d of l)d.hasLayoutDrift===!0&&(u=!0,c.error(ee.red(`Layout drift detected on view '${d.id}' at ${ye(t,d.relativePath??".")}`)));return!u}}const p$={command:"validate [path]",aliases:[],describe:"Validate model syntax and manual layout",builder:t=>t.positional("path",Sr).option("ignore\
955
- -layout",{alias:["skip-layout"],boolean:!0,default:!1,description:"do not validate layout of views"}),handler:async t=>{await h$({path:t.path,ignoreLayout:t["ignore-layout"]})}};qh({sinks:{console:Hh()},loggers:[{category:"likec4",sinks:["console"],lowestLevel:"info"}]});async function m$(){return Y0(),await pm(jp(Vh)).scriptName("likec4").usage("Usage: $0 <command>").command(d$).command(mg).command(i$).command(a$).command(l$).command(p$).command({command:"check-update",describe:"Check for updat\
956
- es",handler:async()=>{await X0()}}).help("help").version(Bt).alias("v","version").alias("h","help").demandCommand(1,"Please run with valid command").strict().recommendCommands().showHelpOnFail(!0,"Something is wrong, run with --help").updateStrings({"Options:":ee.bold("Options:"),"Positionals:":ee.bold("Arguments:"),"Commands:":ee.bold("Commands:"),"Examples:":ee.bold("Examples:")}).wrap(oa(Fh.columns-20,{min:80,max:120})).parseAsync()}m$().catch(()=>{ca(1)}),process.on("unhandledRejection",t=>{
957
- console.error("Unhandled rejection",t)});
933
+ `),handler:()=>{}};async function u$({path:t,useDotBin:e,outfile:r}){const n=tt("c4:export"),s=ar(n),i=await rt.fromWorkspace(t,{logger:"vite",graphviz:e?"binary":"wasm"});i.ensureSingleProject();const o=await i.layoutedModel();ur(r)!==".json"&&(r=r+".json"),await ut(At(r),{recursive:!0});const a=JSON.stringify(o.$model,null,2);await Pt(r,a),n.info(`${K.dim("generated")} ${Ot(process.cwd(),r)}`),s.stopAndLog("\u2713 export in ")}const l$={command:"export <format> [path]",describe:"Export to imag\
934
+ es or JSON",builder:t=>t.usage(`${K.bold("Usage:")} $0 export <format> [path]`).positional("path",Sr).command({command:"png [path]",describe:"export views to PNG",builder:e=>e.option("output",Zr).option("theme",{choices:["light","dark"],desc:"color-scheme to use, default is light"}).option("flat",{boolean:!0,type:"boolean",desc:"flatten all images in output directory ignoring sources structure"}).option("use-dot",Ye).options({filter:{alias:"f",array:!0,string:!0,desc:`include views with ids matc\
935
+ hing given patterns
936
+ multiple patterns are combined with OR`},ignore:{boolean:!0,alias:"i",desc:"continue if export fails for some views"},timeout:{type:"number",alias:"t",desc:"(sec) timeout for playwright",default:10},"max-attempts":{type:"number",desc:"(number) max attempts to export failing view, 1 means no retry",default:3},"server-url":{type:"string",desc:"use this url instead of starting new likec4 server"}}).epilog(`${K.bold("Examples:")}
937
+ ${K.green("$0 export png")}
938
+ ${K.gray("Search for likec4 files in current directory and output PNG next to sources")}
939
+
940
+ ${K.green("$0 export png --theme dark -o ./png src/likec4")}
941
+ ${K.gray("Search for likec4 files in src/likec4 and output PNG with dark theme to png folder")}
942
+
943
+ ${K.green('$0 export png -f "team1*" -f "team2*" --flat -o ./png src/likec4')}
944
+ ${K.gray("Export views matching team1* or team2* only")}
945
+ `),handler:async e=>{xs(e.timeout>=1,"timeout must be >= 1"),xs(e["max-attempts"]>=1,"max-attempts must be >= 1"),await Ar(),await zc({path:e.path,useDotBin:e.useDotBin,output:e.output,timeoutMs:e.timeout*1e3,maxAttempts:e.maxAttempts,ignore:e.ignore===!0,outputType:e.flat?"flat":"relative",serverUrl:e.serverUrl,theme:e.theme??"light",filter:e.filter})}}).command({command:"json [path]",describe:"export model to JSON",builder:e=>e.option("outfile",{alias:"o",type:"string",desc:"<file> output .jso\
946
+ n file",default:"likec4.json",normalize:!0,coerce:ye}).option("use-dot",Ye).epilog(`${K.bold("Examples:")}
947
+ ${K.green("$0 export json")}
948
+ ${K.gray("Search for likec4 files in current directory and output JSON to likec4.json")}
949
+
950
+ ${K.green("$0 export json -o ./generated/likec4.json src/likec4 ")}
951
+ ${K.gray("Search for likec4 files in src/likec4 and output JSON to generated/likec4.json")}
952
+ `),handler:async e=>{await u$({path:e.path,useDotBin:e.useDotBin,outfile:e.outfile})}}).updateStrings({"Commands:":K.bold("Formats:")}),handler:()=>{}};async function f$(t){const{isDev:e,...r}=await Ci({...t,likec4AssetsDir:"",webcomponentPrefix:void 0}),n=await Ti({port:on(62001,62010)}),s=t?.open??!1;return await cp({...r,mode:"production",preview:{host:t.listen??"127.0.0.1",allowedHosts:!0,port:n,open:s}})}async function d$({path:t,output:e,base:r,listen:n}){const s=await rt.fromWorkspace(t,{
953
+ logger:"vite"}),i=await f$({base:r,languageServices:s,outputDir:e,open:!0,listen:n});Mc(i)}const h$={command:"preview [path]",describe:"Start local server to preview production build",builder:t=>t.positional("path",{type:"string",desc:`Directory with LikeC4 source files
954
+ if not specified search in current directory`,normalize:!0}).options({output:{alias:"o",type:"string",desc:"output directory from production build",normalize:!0},base:{type:"string",desc:"base url the app is being served from"},listen:{alias:"l",type:"string",desc:"ip address of the network interface to listen on"}}).coerce(["path","output"],Ue).default("path",Ue("."),".").default("listen","127.0.0.1","localhost"),async handler(t){await d$(t)}};async function p$({path:t,useDotBin:e,webcomponentPrefix:r,
955
+ useHashHistory:n,useOverview:s=!1,base:i,listen:o}){process.env.NODE_ENV="development";const a=await rt.fromWorkspace(t,{graphviz:e?"binary":"wasm"}),u=await Mr(cr(qr(),".likec4-assets-")),l=await Fc({buildWebcomponent:!0,hmr:!0,base:i,webcomponentPrefix:r,languageServices:a,useHashHistory:n,useOverviewGraph:s,likec4AssetsDir:u,listen:o});if(l.config.logger.clearScreen("info"),Mc(l),!s)return;const c=await a.diagrams();if(ca(c,1)){const d=tt("c4:export"),h=xc(l);if(!h){d.error("no preview server\
956
+ url");return}d.info(K.cyan("wait 5sec before generating previews")),await ba(5e3);try{await Vc({serverUrl:h,logger:d,views:c,theme:"light",output:u,outputType:"flat"}),await ba(1e3),d.info(K.yellow("Note: changes in sources do not trigger preview updates, restart is required"))}catch(_){d.error(K.red("Failed to generate previews")),d.error(_)}}else l.config.logger.warn("no views found, no previews generated")}const m$={command:"start [path]",aliases:["serve","dev"],describe:"Start local dev ser\
957
+ ver to preview LikeC4 views",builder:t=>t.positional("path",Sr).option("base",ac).option("webcomponent-prefix",ri).option("use-hash-history",oc).option("use-overview",cc).option("use-dot",Ye).option("listen",ym),handler:async t=>{await Ar(),await p$({path:t.path,useDotBin:t["use-dot"],base:t.base,useOverview:t["use-overview"]??!1,webcomponentPrefix:t["webcomponent-prefix"],useHashHistory:t["use-hash-history"],listen:t.listen})}};async function g$({path:t,ignoreLayout:e}){const r=await rt.fromWorkspace(
958
+ t,{logger:"vite"}),n=tt("c4:views");let s=!0;return s=await i(r)&&s,s=(e||await o(r,n))&&s,s?0:ua(1);function i(a){return a.getErrors().length===0}async function o(a,u){const l=await a.diagrams();let c=!1;for(const d of l)d.hasLayoutDrift===!0&&(c=!0,u.error(K.red(`Layout drift detected on view '${d.id}' at ${ye(t,d.relativePath??".")}`)));return!c}}const y$={command:"validate [path]",aliases:[],describe:"Validate model syntax and manual layout",builder:t=>t.positional("path",Sr).option("ignore-\
959
+ layout",{alias:["skip-layout"],boolean:!0,default:!1,description:"do not validate layout of views"}),handler:async t=>{await g$({path:t.path,ignoreLayout:t["ignore-layout"]})}};Uh({sinks:{console:Fh()},loggers:[{category:"likec4",sinks:["console"],lowestLevel:"info"}]});async function _$(){return Q0(),await mm(Lp(Gh)).scriptName("likec4").usage("Usage: $0 <command>").command(m$).command(_g).command(c$).command(l$).command(h$).command(y$).command({command:"check-update",describe:"Check for update\
960
+ s",handler:async()=>{await Z0()}}).help("help").version(Bt).alias("v","version").alias("h","help").demandCommand(1,"Please run with valid command").strict().recommendCommands().showHelpOnFail(!0,"Something is wrong, run with --help").updateStrings({"Options:":K.bold("Options:"),"Positionals:":K.bold("Arguments:"),"Commands:":K.bold("Commands:"),"Examples:":K.bold("Examples:")}).wrap(aa(zh.columns-20,{min:80,max:120})).parseAsync()}_$().catch(()=>{ua(1)}),process.on("unhandledRejection",t=>{console.
961
+ error("Unhandled rejection",t)});