cabloy 5.1.10 → 5.1.12

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 (210) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/lint-staged.config.mjs +92 -0
  3. package/oxfmt.config.ts +4 -1
  4. package/package.json +2 -11
  5. package/vona/packages-utils/lint/api/tsconfig.base.esm.json +30 -2
  6. package/vona/packages-utils/lint/package.json +40 -5
  7. package/vona/packages-utils/lint/src/index.ts +3 -0
  8. package/vona/packages-utils/lint/{oxc/format.js → src/oxc/format.ts} +4 -2
  9. package/vona/packages-utils/lint/{oxc/lint.js → src/oxc/lint.ts} +7 -7
  10. package/vona/packages-utils/lint/{oxc/lintVue.js → src/oxc/lintVue.ts} +4 -6
  11. package/vona/packages-utils/lint/tsconfig.json +14 -0
  12. package/vona/pnpm-lock.yaml +338 -17
  13. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -78
  14. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +3 -1
  15. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +3 -1
  16. package/zova/env/.env.ssr.cabloyBasicAdmin +0 -2
  17. package/zova/package.original.json +2 -8
  18. package/zova/packages-cli/cli/package.json +2 -2
  19. package/zova/packages-cli/cli-set-front/package.json +8 -8
  20. package/zova/packages-utils/babel-plugin-zova-bean-module/package.json +3 -3
  21. package/zova/packages-utils/babel-plugin-zova-bean-use/package.json +2 -2
  22. package/zova/packages-utils/babel-plugin-zova-behavior/package.json +2 -2
  23. package/zova/packages-utils/babel-plugin-zova-component/package.json +2 -2
  24. package/zova/packages-utils/logger/package.json +2 -2
  25. package/zova/packages-utils/mutate-on-copy/package.json +2 -2
  26. package/zova/packages-utils/quasar-app-extension-zova/package.json +3 -3
  27. package/zova/packages-utils/word-utils/package.json +2 -2
  28. package/zova/packages-utils/zova-jsx/package.json +4 -4
  29. package/zova/packages-utils/zova-openapi/package.json +2 -2
  30. package/zova/packages-utils/zova-vite/package.json +6 -6
  31. package/zova/packages-zova/zova/package.json +4 -4
  32. package/zova/packages-zova/zova-core/package.json +4 -4
  33. package/zova/pnpm-lock.yaml +67 -63
  34. package/zova/src/suite/a-demo/modules/demo-basic/package.json +1 -1
  35. package/zova/src/suite/a-demo/modules/demo-todo/package.json +1 -1
  36. package/zova/src/suite/a-demo/package.json +1 -1
  37. package/zova/src/suite/a-devui/modules/devui-adapter/package.json +1 -1
  38. package/zova/src/suite/a-devui/package.json +1 -1
  39. package/zova/src/suite/a-home/modules/home-api/package.json +1 -1
  40. package/zova/src/suite/a-home/modules/home-base/package.json +1 -1
  41. package/zova/src/suite/a-home/modules/home-icon/package.json +1 -1
  42. package/zova/src/suite/a-home/modules/home-index/package.json +1 -1
  43. package/zova/src/suite/a-home/modules/home-layoutempty/package.json +1 -1
  44. package/zova/src/suite/a-home/modules/home-layouttabs/package.json +1 -1
  45. package/zova/src/suite/a-home/modules/home-login/package.json +1 -1
  46. package/zova/src/suite/a-home/modules/home-passport/package.json +1 -1
  47. package/zova/src/suite/a-home/modules/home-theme/package.json +1 -1
  48. package/zova/src/suite/a-home/package.json +1 -1
  49. package/zova/src/suite/cabloy-basic/modules/basic-adapter/package.json +1 -1
  50. package/zova/src/suite/cabloy-basic/modules/basic-captcha/package.json +1 -1
  51. package/zova/src/suite/cabloy-basic/modules/basic-commands/package.json +1 -1
  52. package/zova/src/suite/cabloy-basic/modules/basic-commandssync/package.json +1 -1
  53. package/zova/src/suite/cabloy-basic/modules/basic-currency/package.json +1 -1
  54. package/zova/src/suite/cabloy-basic/modules/basic-date/package.json +1 -1
  55. package/zova/src/suite/cabloy-basic/modules/basic-form/package.json +1 -1
  56. package/zova/src/suite/cabloy-basic/modules/basic-input/package.json +1 -1
  57. package/zova/src/suite/cabloy-basic/modules/basic-page/package.json +1 -1
  58. package/zova/src/suite/cabloy-basic/modules/basic-pageentry/package.json +1 -1
  59. package/zova/src/suite/cabloy-basic/modules/basic-select/package.json +1 -0
  60. package/zova/src/suite/cabloy-basic/modules/basic-table/package.json +1 -1
  61. package/zova/src/suite/cabloy-basic/modules/basic-text/package.json +1 -0
  62. package/zova/src/suite-vendor/a-zova/modules/a-api/package.json +2 -2
  63. package/zova/src/suite-vendor/a-zova/modules/a-app/package.json +2 -2
  64. package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +2 -2
  65. package/zova/src/suite-vendor/a-zova/modules/a-behavior/package.json +2 -2
  66. package/zova/src/suite-vendor/a-zova/modules/a-behaviors/package.json +2 -2
  67. package/zova/src/suite-vendor/a-zova/modules/a-boundary/package.json +2 -2
  68. package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +2 -2
  69. package/zova/src/suite-vendor/a-zova/modules/a-fetch/package.json +2 -2
  70. package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +2 -2
  71. package/zova/src/suite-vendor/a-zova/modules/a-icon/package.json +2 -2
  72. package/zova/src/suite-vendor/a-zova/modules/a-interceptor/package.json +2 -2
  73. package/zova/src/suite-vendor/a-zova/modules/a-logger/package.json +3 -3
  74. package/zova/src/suite-vendor/a-zova/modules/a-meta/package.json +2 -2
  75. package/zova/src/suite-vendor/a-zova/modules/a-model/package.json +3 -3
  76. package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +2 -2
  77. package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +2 -2
  78. package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +2 -2
  79. package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +2 -2
  80. package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +2 -2
  81. package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/package.json +2 -2
  82. package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +2 -2
  83. package/zova/src/suite-vendor/a-zova/modules/a-style/package.json +2 -2
  84. package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +2 -2
  85. package/zova/src/suite-vendor/a-zova/modules/a-zod/package.json +2 -2
  86. package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +5 -5
  87. package/zova/src/suite-vendor/a-zova/package.json +27 -27
  88. package/vona/packages-utils/lint/api/eslint.js +0 -41
  89. package/vona/packages-utils/lint/api/prettier.js +0 -8
  90. package/vona/packages-utils/lint/api/tsconfig.base.cjs.json +0 -32
  91. package/vona/packages-utils/lint/common/rules.js +0 -155
  92. package/vona/packages-utils/lint/common/rulesVue.js +0 -5
  93. package/vona/packages-utils/lint/front/eslint.js +0 -59
  94. package/vona/packages-utils/lint/front/prettier.js +0 -3
  95. package/vona/packages-utils/lint/front/tsconfig.base.cjs.json +0 -4
  96. package/vona/packages-utils/lint/front/tsconfig.base.esm.json +0 -9
  97. package/vona/packages-utils/lint/index.js +0 -3
  98. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/-zova-config-CoKN49wO.js +0 -11
  99. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-api-DmsK4zNw.js +0 -178
  100. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-app-C7cTDV9C.js +0 -138
  101. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-bean-qjOwLLml.js +0 -408
  102. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behavior-I9evY2QT.js +0 -454
  103. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behaviors-Dh8sE2AX.js +0 -58
  104. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-boundary-DxeJURnH.js +0 -21
  105. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-command-Duq9OGnp.js +0 -165
  106. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-fetch-BsiDc5MA.js +0 -317
  107. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-form-BSfvKLPu.js +0 -947
  108. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-icon-Bx0yNmUB.js +0 -460
  109. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-interceptor-CtK-mG6U.js +0 -256
  110. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-logger-D6FVEo-2.js +0 -143
  111. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-meta-DLAWtBzn.js +0 -47
  112. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-model-Ds17NAa5.js +0 -887
  113. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-openapi-Cu42a7Tj.js +0 -677
  114. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-router-BEKs1P3y.js +0 -1009
  115. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routerstack-CNda3TvU.js +0 -239
  116. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routertabs-CA8KhmHx.js +0 -519
  117. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssr-WZQfI3lD.js +0 -711
  118. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssrhmr-DiG_2CbH.js +0 -97
  119. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-style-Dcrophdv.js +0 -408
  120. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-table-Cr0qHPMV.js +0 -464
  121. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zod-B5ZzHMKp.js +0 -87
  122. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zova-WAWkGLRj.js +0 -21
  123. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/auth-Bjup4K84.svg +0 -8
  124. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/axios-jFGAltpb.js +0 -3152
  125. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-adapter-BzdgS83E.js +0 -68
  126. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-captcha-gmlRJxbp.js +0 -209
  127. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commands-CmuoODyc.js +0 -179
  128. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commandssync-4uJoTYWO.js +0 -62
  129. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-currency-ljdT_mJv.js +0 -159
  130. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-date-CJtZtM5q.js +0 -251
  131. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-form-Bi-Dm8Pp.js +0 -376
  132. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-input-DugSctyu.js +0 -83
  133. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-page-C0Mpx24A.js +0 -610
  134. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-pageentry-De7Zvv7J.js +0 -443
  135. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-select-WKCF4vyo.js +0 -186
  136. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-table-B4Eyf7EC.js +0 -368
  137. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-text-CRqjMEyr.js +0 -118
  138. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/browser-C8cI94Tr.js +0 -2409
  139. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/business-DQeTVrBD.svg +0 -12
  140. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/daisy-BZm4lJOy.svg +0 -4
  141. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/default-DxTAw1iv.svg +0 -118
  142. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-basic-CiW_uKMD.js +0 -1419
  143. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-student-DpiY4dnt.js +0 -69
  144. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-todo-CM3XdLlo.js +0 -427
  145. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/devui-adapter-B2uiKP95.js +0 -95
  146. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/dist.es2015-BMNhwNBy.js +0 -343
  147. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/editor-CmZexDJp.svg +0 -32
  148. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/emoji-CLaR2GZg.svg +0 -3
  149. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/esm-Z9BncIrt.js +0 -2574
  150. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/extends-BSP9iXrM.js +0 -27
  151. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/fecha-DvkbkxAQ.js +0 -9849
  152. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/flow-DCn4s91p.svg +0 -13
  153. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-api-B1NjQp7i.js +0 -374
  154. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-base-DRJdeGsg.js +0 -654
  155. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-icon-65b9tDB5.js +0 -125
  156. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-index-KrvUKcFR.js +0 -79
  157. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layoutempty-DP2peKfC.js +0 -87
  158. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layouttabs-CRIoszHS.js +0 -980
  159. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-login-z4Url6WO.js +0 -302
  160. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-passport-OqpwAU0M.js +0 -293
  161. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-theme-BSua63Y_.js +0 -131
  162. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-B5HTgis_.css +0 -26
  163. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-Cd4EYYtZ.js +0 -1331
  164. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/localforage-e6vl49GD.js +0 -1798
  165. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/login-Qly1YUqs.svg +0 -7
  166. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/openapi3-jIye4jNw.js +0 -23
  167. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/outline-C6s9io8r.svg +0 -41
  168. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rest-resource-CN0Ontwm.js +0 -552
  169. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/role-fXTNmWmb.svg +0 -10
  170. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rolldown-runtime-lkMnaVCm.js +0 -38
  171. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/social-DosI14Uo.svg +0 -12
  172. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-BRq8dtuS.js +0 -44
  173. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CBGuKzpF.js +0 -5996
  174. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CzJSxlnS.js +0 -496
  175. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-YVxhoO6F.js +0 -65
  176. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-form-CBq6dr_k.js +0 -122
  177. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-BJk2jOuy.js +0 -2377
  178. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-CBWe1LsT.js +0 -365
  179. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-Ch18aWTP.js +0 -212
  180. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-BvC3VgJj.js +0 -2241
  181. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-D85qomSu.js +0 -123
  182. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tools-Wk7SnIwE.svg +0 -4
  183. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/typestyle-C2zp2284.js +0 -281
  184. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-1Y5FbPzj.js +0 -3221
  185. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-C-LVj1DU.js +0 -18
  186. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-ChEE2n-Y.js +0 -598
  187. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-CvF_GLFp.js +0 -190
  188. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-DHzalQTI.js +0 -1308
  189. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-router-COfHCB5q.js +0 -1775
  190. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/wrapAsyncGenerator-zA6hqk-P.js +0 -155
  191. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-6Abekb1F.js +0 -83
  192. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BHaXQJg22.js +0 -11
  193. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BYPEGx1T.js +0 -15586
  194. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BuxXrZHs.js +0 -24
  195. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-C4pGJxwQ.js +0 -1227
  196. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CoRfsquu.js +0 -8
  197. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CzTANp3C.js +0 -380
  198. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-DQbBsEtS.js +0 -4130
  199. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-hmnYQoyt.js +0 -374
  200. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/favicon.ico +0 -0
  201. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/handler.js +0 -164729
  202. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/index.js +0 -26236
  203. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/quasar.manifest.json +0 -1
  204. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenu.tools.ts +0 -32
  205. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenuGroup.tools.ts +0 -18
  206. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrSite.second.ts +0 -31
  207. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/test/ssr.test.ts +0 -44
  208. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.d.mts +0 -9107
  209. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.mjs +0 -234
  210. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/package.json +0 -40
@@ -1,2409 +0,0 @@
1
- import { n as __esmMin } from "./rolldown-runtime-lkMnaVCm.js";
2
- import { m as init_asyncToGenerator, p as _asyncToGenerator } from "./fecha-DvkbkxAQ.js";
3
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js
4
- function isCollection(node) {
5
- if (node && typeof node === "object") switch (node[NODE_TYPE]) {
6
- case MAP:
7
- case SEQ: return true;
8
- }
9
- return false;
10
- }
11
- function isNode(node) {
12
- if (node && typeof node === "object") switch (node[NODE_TYPE]) {
13
- case ALIAS:
14
- case MAP:
15
- case SCALAR:
16
- case SEQ: return true;
17
- }
18
- return false;
19
- }
20
- var ALIAS, DOC, MAP, PAIR, SCALAR, SEQ, NODE_TYPE, isAlias, isDocument, isMap, isPair, isScalar, isSeq, hasAnchor;
21
- var init_identity = __esmMin((() => {
22
- ALIAS = Symbol.for("yaml.alias");
23
- DOC = Symbol.for("yaml.document");
24
- MAP = Symbol.for("yaml.map");
25
- PAIR = Symbol.for("yaml.pair");
26
- SCALAR = Symbol.for("yaml.scalar");
27
- SEQ = Symbol.for("yaml.seq");
28
- NODE_TYPE = Symbol.for("yaml.node.type");
29
- isAlias = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === ALIAS;
30
- isDocument = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === DOC;
31
- isMap = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP;
32
- isPair = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === PAIR;
33
- isScalar = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SCALAR;
34
- isSeq = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ;
35
- hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
36
- }));
37
- //#endregion
38
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js
39
- /**
40
- * Apply a visitor to an AST node or document.
41
- *
42
- * Walks through the tree (depth-first) starting from `node`, calling a
43
- * `visitor` function with three arguments:
44
- * - `key`: For sequence values and map `Pair`, the node's index in the
45
- * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.
46
- * `null` for the root node.
47
- * - `node`: The current node.
48
- * - `path`: The ancestry of the current node.
49
- *
50
- * The return value of the visitor may be used to control the traversal:
51
- * - `undefined` (default): Do nothing and continue
52
- * - `visit.SKIP`: Do not visit the children of this node, continue with next
53
- * sibling
54
- * - `visit.BREAK`: Terminate traversal completely
55
- * - `visit.REMOVE`: Remove the current node, then continue with the next one
56
- * - `Node`: Replace the current node, then continue by visiting it
57
- * - `number`: While iterating the items of a sequence or map, set the index
58
- * of the next step. This is useful especially if the index of the current
59
- * node has changed.
60
- *
61
- * If `visitor` is a single function, it will be called with all values
62
- * encountered in the tree, including e.g. `null` values. Alternatively,
63
- * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,
64
- * `Alias` and `Scalar` node. To define the same visitor function for more than
65
- * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)
66
- * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
67
- * specific defined one will be used for each node.
68
- */
69
- function visit$1(node, visitor) {
70
- const visitor_ = initVisitor(visitor);
71
- if (isDocument(node)) {
72
- if (visit_(null, node.contents, visitor_, Object.freeze([node])) === REMOVE$1) node.contents = null;
73
- } else visit_(null, node, visitor_, Object.freeze([]));
74
- }
75
- function visit_(key, node, visitor, path) {
76
- const ctrl = callVisitor(key, node, visitor, path);
77
- if (isNode(ctrl) || isPair(ctrl)) {
78
- replaceNode(key, path, ctrl);
79
- return visit_(key, ctrl, visitor, path);
80
- }
81
- if (typeof ctrl !== "symbol") {
82
- if (isCollection(node)) {
83
- path = Object.freeze(path.concat(node));
84
- for (let i = 0; i < node.items.length; ++i) {
85
- const ci = visit_(i, node.items[i], visitor, path);
86
- if (typeof ci === "number") i = ci - 1;
87
- else if (ci === BREAK$1) return BREAK$1;
88
- else if (ci === REMOVE$1) {
89
- node.items.splice(i, 1);
90
- i -= 1;
91
- }
92
- }
93
- } else if (isPair(node)) {
94
- path = Object.freeze(path.concat(node));
95
- const ck = visit_("key", node.key, visitor, path);
96
- if (ck === BREAK$1) return BREAK$1;
97
- else if (ck === REMOVE$1) node.key = null;
98
- const cv = visit_("value", node.value, visitor, path);
99
- if (cv === BREAK$1) return BREAK$1;
100
- else if (cv === REMOVE$1) node.value = null;
101
- }
102
- }
103
- return ctrl;
104
- }
105
- /**
106
- * Apply an async visitor to an AST node or document.
107
- *
108
- * Walks through the tree (depth-first) starting from `node`, calling a
109
- * `visitor` function with three arguments:
110
- * - `key`: For sequence values and map `Pair`, the node's index in the
111
- * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.
112
- * `null` for the root node.
113
- * - `node`: The current node.
114
- * - `path`: The ancestry of the current node.
115
- *
116
- * The return value of the visitor may be used to control the traversal:
117
- * - `Promise`: Must resolve to one of the following values
118
- * - `undefined` (default): Do nothing and continue
119
- * - `visit.SKIP`: Do not visit the children of this node, continue with next
120
- * sibling
121
- * - `visit.BREAK`: Terminate traversal completely
122
- * - `visit.REMOVE`: Remove the current node, then continue with the next one
123
- * - `Node`: Replace the current node, then continue by visiting it
124
- * - `number`: While iterating the items of a sequence or map, set the index
125
- * of the next step. This is useful especially if the index of the current
126
- * node has changed.
127
- *
128
- * If `visitor` is a single function, it will be called with all values
129
- * encountered in the tree, including e.g. `null` values. Alternatively,
130
- * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,
131
- * `Alias` and `Scalar` node. To define the same visitor function for more than
132
- * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)
133
- * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
134
- * specific defined one will be used for each node.
135
- */
136
- function visitAsync(_x, _x2) {
137
- return _visitAsync.apply(this, arguments);
138
- }
139
- function _visitAsync() {
140
- _visitAsync = _asyncToGenerator(function* (node, visitor) {
141
- const visitor_ = initVisitor(visitor);
142
- if (isDocument(node)) {
143
- if ((yield visitAsync_(null, node.contents, visitor_, Object.freeze([node]))) === REMOVE$1) node.contents = null;
144
- } else yield visitAsync_(null, node, visitor_, Object.freeze([]));
145
- });
146
- return _visitAsync.apply(this, arguments);
147
- }
148
- function visitAsync_(_x3, _x4, _x5, _x6) {
149
- return _visitAsync_.apply(this, arguments);
150
- }
151
- function _visitAsync_() {
152
- _visitAsync_ = _asyncToGenerator(function* (key, node, visitor, path) {
153
- const ctrl = yield callVisitor(key, node, visitor, path);
154
- if (isNode(ctrl) || isPair(ctrl)) {
155
- replaceNode(key, path, ctrl);
156
- return visitAsync_(key, ctrl, visitor, path);
157
- }
158
- if (typeof ctrl !== "symbol") {
159
- if (isCollection(node)) {
160
- path = Object.freeze(path.concat(node));
161
- for (let i = 0; i < node.items.length; ++i) {
162
- const ci = yield visitAsync_(i, node.items[i], visitor, path);
163
- if (typeof ci === "number") i = ci - 1;
164
- else if (ci === BREAK$1) return BREAK$1;
165
- else if (ci === REMOVE$1) {
166
- node.items.splice(i, 1);
167
- i -= 1;
168
- }
169
- }
170
- } else if (isPair(node)) {
171
- path = Object.freeze(path.concat(node));
172
- const ck = yield visitAsync_("key", node.key, visitor, path);
173
- if (ck === BREAK$1) return BREAK$1;
174
- else if (ck === REMOVE$1) node.key = null;
175
- const cv = yield visitAsync_("value", node.value, visitor, path);
176
- if (cv === BREAK$1) return BREAK$1;
177
- else if (cv === REMOVE$1) node.value = null;
178
- }
179
- }
180
- return ctrl;
181
- });
182
- return _visitAsync_.apply(this, arguments);
183
- }
184
- function initVisitor(visitor) {
185
- if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) return Object.assign({
186
- Alias: visitor.Node,
187
- Map: visitor.Node,
188
- Scalar: visitor.Node,
189
- Seq: visitor.Node
190
- }, visitor.Value && {
191
- Map: visitor.Value,
192
- Scalar: visitor.Value,
193
- Seq: visitor.Value
194
- }, visitor.Collection && {
195
- Map: visitor.Collection,
196
- Seq: visitor.Collection
197
- }, visitor);
198
- return visitor;
199
- }
200
- function callVisitor(key, node, visitor, path) {
201
- var _visitor$Map, _visitor$Seq, _visitor$Pair, _visitor$Scalar, _visitor$Alias;
202
- if (typeof visitor === "function") return visitor(key, node, path);
203
- if (isMap(node)) return (_visitor$Map = visitor.Map) === null || _visitor$Map === void 0 ? void 0 : _visitor$Map.call(visitor, key, node, path);
204
- if (isSeq(node)) return (_visitor$Seq = visitor.Seq) === null || _visitor$Seq === void 0 ? void 0 : _visitor$Seq.call(visitor, key, node, path);
205
- if (isPair(node)) return (_visitor$Pair = visitor.Pair) === null || _visitor$Pair === void 0 ? void 0 : _visitor$Pair.call(visitor, key, node, path);
206
- if (isScalar(node)) return (_visitor$Scalar = visitor.Scalar) === null || _visitor$Scalar === void 0 ? void 0 : _visitor$Scalar.call(visitor, key, node, path);
207
- if (isAlias(node)) return (_visitor$Alias = visitor.Alias) === null || _visitor$Alias === void 0 ? void 0 : _visitor$Alias.call(visitor, key, node, path);
208
- }
209
- function replaceNode(key, path, node) {
210
- const parent = path[path.length - 1];
211
- if (isCollection(parent)) parent.items[key] = node;
212
- else if (isPair(parent)) if (key === "key") parent.key = node;
213
- else parent.value = node;
214
- else if (isDocument(parent)) parent.contents = node;
215
- else {
216
- const pt = isAlias(parent) ? "alias" : "scalar";
217
- throw new Error(`Cannot replace node with ${pt} parent`);
218
- }
219
- }
220
- var BREAK$1, SKIP$1, REMOVE$1;
221
- var init_visit = __esmMin((() => {
222
- init_identity();
223
- init_asyncToGenerator();
224
- BREAK$1 = Symbol("break visit");
225
- SKIP$1 = Symbol("skip children");
226
- REMOVE$1 = Symbol("remove node");
227
- /** Terminate visit traversal completely */
228
- visit$1.BREAK = BREAK$1;
229
- /** Do not visit the children of the current node */
230
- visit$1.SKIP = SKIP$1;
231
- /** Remove the current node */
232
- visit$1.REMOVE = REMOVE$1;
233
- /** Terminate visit traversal completely */
234
- visitAsync.BREAK = BREAK$1;
235
- /** Do not visit the children of the current node */
236
- visitAsync.SKIP = SKIP$1;
237
- /** Remove the current node */
238
- visitAsync.REMOVE = REMOVE$1;
239
- }));
240
- //#endregion
241
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js
242
- var escapeChars, escapeTagName, Directives;
243
- var init_directives = __esmMin((() => {
244
- init_identity();
245
- init_visit();
246
- escapeChars = {
247
- "!": "%21",
248
- ",": "%2C",
249
- "[": "%5B",
250
- "]": "%5D",
251
- "{": "%7B",
252
- "}": "%7D"
253
- };
254
- escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]);
255
- Directives = class Directives {
256
- constructor(yaml, tags) {
257
- /**
258
- * The directives-end/doc-start marker `---`. If `null`, a marker may still be
259
- * included in the document's stringified representation.
260
- */
261
- this.docStart = null;
262
- /** The doc-end marker `...`. */
263
- this.docEnd = false;
264
- this.yaml = Object.assign({}, Directives.defaultYaml, yaml);
265
- this.tags = Object.assign({}, Directives.defaultTags, tags);
266
- }
267
- clone() {
268
- const copy = new Directives(this.yaml, this.tags);
269
- copy.docStart = this.docStart;
270
- return copy;
271
- }
272
- /**
273
- * During parsing, get a Directives instance for the current document and
274
- * update the stream state according to the current version's spec.
275
- */
276
- atDocument() {
277
- const res = new Directives(this.yaml, this.tags);
278
- switch (this.yaml.version) {
279
- case "1.1":
280
- this.atNextDocument = true;
281
- break;
282
- case "1.2":
283
- this.atNextDocument = false;
284
- this.yaml = {
285
- explicit: Directives.defaultYaml.explicit,
286
- version: "1.2"
287
- };
288
- this.tags = Object.assign({}, Directives.defaultTags);
289
- break;
290
- }
291
- return res;
292
- }
293
- /**
294
- * @param onError - May be called even if the action was successful
295
- * @returns `true` on success
296
- */
297
- add(line, onError) {
298
- if (this.atNextDocument) {
299
- this.yaml = {
300
- explicit: Directives.defaultYaml.explicit,
301
- version: "1.1"
302
- };
303
- this.tags = Object.assign({}, Directives.defaultTags);
304
- this.atNextDocument = false;
305
- }
306
- const parts = line.trim().split(/[ \t]+/);
307
- const name = parts.shift();
308
- switch (name) {
309
- case "%TAG": {
310
- if (parts.length !== 2) {
311
- onError(0, "%TAG directive should contain exactly two parts");
312
- if (parts.length < 2) return false;
313
- }
314
- const [handle, prefix] = parts;
315
- this.tags[handle] = prefix;
316
- return true;
317
- }
318
- case "%YAML": {
319
- this.yaml.explicit = true;
320
- if (parts.length !== 1) {
321
- onError(0, "%YAML directive should contain exactly one part");
322
- return false;
323
- }
324
- const [version] = parts;
325
- if (version === "1.1" || version === "1.2") {
326
- this.yaml.version = version;
327
- return true;
328
- } else {
329
- const isValid = /^\d+\.\d+$/.test(version);
330
- onError(6, `Unsupported YAML version ${version}`, isValid);
331
- return false;
332
- }
333
- }
334
- default:
335
- onError(0, `Unknown directive ${name}`, true);
336
- return false;
337
- }
338
- }
339
- /**
340
- * Resolves a tag, matching handles to those defined in %TAG directives.
341
- *
342
- * @returns Resolved tag, which may also be the non-specific tag `'!'` or a
343
- * `'!local'` tag, or `null` if unresolvable.
344
- */
345
- tagName(source, onError) {
346
- if (source === "!") return "!";
347
- if (source[0] !== "!") {
348
- onError(`Not a valid tag: ${source}`);
349
- return null;
350
- }
351
- if (source[1] === "<") {
352
- const verbatim = source.slice(2, -1);
353
- if (verbatim === "!" || verbatim === "!!") {
354
- onError(`Verbatim tags aren't resolved, so ${source} is invalid.`);
355
- return null;
356
- }
357
- if (source[source.length - 1] !== ">") onError("Verbatim tags must end with a >");
358
- return verbatim;
359
- }
360
- const [, handle, suffix] = source.match(/* @__PURE__ */ new RegExp("^(.*!)([^!]*)$", "s"));
361
- if (!suffix) onError(`The ${source} tag has no suffix`);
362
- const prefix = this.tags[handle];
363
- if (prefix) try {
364
- return prefix + decodeURIComponent(suffix);
365
- } catch (error) {
366
- onError(String(error));
367
- return null;
368
- }
369
- if (handle === "!") return source;
370
- onError(`Could not resolve tag: ${source}`);
371
- return null;
372
- }
373
- /**
374
- * Given a fully resolved tag, returns its printable string form,
375
- * taking into account current tag prefixes and defaults.
376
- */
377
- tagString(tag) {
378
- for (const [handle, prefix] of Object.entries(this.tags)) if (tag.startsWith(prefix)) return handle + escapeTagName(tag.substring(prefix.length));
379
- return tag[0] === "!" ? tag : `!<${tag}>`;
380
- }
381
- toString(doc) {
382
- const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
383
- const tagEntries = Object.entries(this.tags);
384
- let tagNames;
385
- if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
386
- const tags = {};
387
- visit$1(doc.contents, (_key, node) => {
388
- if (isNode(node) && node.tag) tags[node.tag] = true;
389
- });
390
- tagNames = Object.keys(tags);
391
- } else tagNames = [];
392
- for (const [handle, prefix] of tagEntries) {
393
- if (handle === "!!" && prefix === "tag:yaml.org,2002:") continue;
394
- if (!doc || tagNames.some((tn) => tn.startsWith(prefix))) lines.push(`%TAG ${handle} ${prefix}`);
395
- }
396
- return lines.join("\n");
397
- }
398
- };
399
- Directives.defaultYaml = {
400
- explicit: false,
401
- version: "1.2"
402
- };
403
- Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
404
- }));
405
- //#endregion
406
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js
407
- /**
408
- * Verify that the input string is a valid anchor.
409
- *
410
- * Will throw on errors.
411
- */
412
- function anchorIsValid(anchor) {
413
- if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
414
- const msg = `Anchor must not contain whitespace or control characters: ${JSON.stringify(anchor)}`;
415
- throw new Error(msg);
416
- }
417
- return true;
418
- }
419
- var init_anchors = __esmMin((() => {
420
- init_visit();
421
- }));
422
- //#endregion
423
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js
424
- /**
425
- * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
426
- * in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the
427
- * 2021 edition: https://tc39.es/ecma262/#sec-json.parse
428
- *
429
- * Includes extensions for handling Map and Set objects.
430
- */
431
- function applyReviver(reviver, obj, key, val) {
432
- if (val && typeof val === "object") if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
433
- const v0 = val[i];
434
- const v1 = applyReviver(reviver, val, String(i), v0);
435
- if (v1 === void 0) delete val[i];
436
- else if (v1 !== v0) val[i] = v1;
437
- }
438
- else if (val instanceof Map) for (const k of Array.from(val.keys())) {
439
- const v0 = val.get(k);
440
- const v1 = applyReviver(reviver, val, k, v0);
441
- if (v1 === void 0) val.delete(k);
442
- else if (v1 !== v0) val.set(k, v1);
443
- }
444
- else if (val instanceof Set) for (const v0 of Array.from(val)) {
445
- const v1 = applyReviver(reviver, val, v0, v0);
446
- if (v1 === void 0) val.delete(v0);
447
- else if (v1 !== v0) {
448
- val.delete(v0);
449
- val.add(v1);
450
- }
451
- }
452
- else for (const [k, v0] of Object.entries(val)) {
453
- const v1 = applyReviver(reviver, val, k, v0);
454
- if (v1 === void 0) delete val[k];
455
- else if (v1 !== v0) val[k] = v1;
456
- }
457
- return reviver.call(obj, key, val);
458
- }
459
- var init_applyReviver = __esmMin((() => {}));
460
- //#endregion
461
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js
462
- /**
463
- * Recursively convert any node or its contents to native JavaScript
464
- *
465
- * @param value - The input value
466
- * @param arg - If `value` defines a `toJSON()` method, use this
467
- * as its first argument
468
- * @param ctx - Conversion context, originally set in Document#toJS(). If
469
- * `{ keep: true }` is not set, output should be suitable for JSON
470
- * stringification.
471
- */
472
- function toJS(value, arg, ctx) {
473
- if (Array.isArray(value)) return value.map((v, i) => toJS(v, String(i), ctx));
474
- if (value && typeof value.toJSON === "function") {
475
- if (!ctx || !hasAnchor(value)) return value.toJSON(arg, ctx);
476
- const data = {
477
- aliasCount: 0,
478
- count: 1,
479
- res: void 0
480
- };
481
- ctx.anchors.set(value, data);
482
- ctx.onCreate = (res) => {
483
- data.res = res;
484
- delete ctx.onCreate;
485
- };
486
- const res = value.toJSON(arg, ctx);
487
- if (ctx.onCreate) ctx.onCreate(res);
488
- return res;
489
- }
490
- if (typeof value === "bigint" && !(ctx === null || ctx === void 0 ? void 0 : ctx.keep)) return Number(value);
491
- return value;
492
- }
493
- var init_toJS = __esmMin((() => {
494
- init_identity();
495
- }));
496
- //#endregion
497
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
498
- var NodeBase;
499
- var init_Node = __esmMin((() => {
500
- init_applyReviver();
501
- init_identity();
502
- init_toJS();
503
- NodeBase = class {
504
- constructor(type) {
505
- Object.defineProperty(this, NODE_TYPE, { value: type });
506
- }
507
- /** Create a copy of this node. */
508
- clone() {
509
- const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
510
- if (this.range) copy.range = this.range.slice();
511
- return copy;
512
- }
513
- /** A plain JavaScript representation of this node. */
514
- toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
515
- if (!isDocument(doc)) throw new TypeError("A document argument is required");
516
- const ctx = {
517
- anchors: /* @__PURE__ */ new Map(),
518
- doc,
519
- keep: true,
520
- mapAsMap: mapAsMap === true,
521
- mapKeyWarned: false,
522
- maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100
523
- };
524
- const res = toJS(this, "", ctx);
525
- if (typeof onAnchor === "function") for (const { count, res } of ctx.anchors.values()) onAnchor(res, count);
526
- return typeof reviver === "function" ? applyReviver(reviver, { "": res }, "", res) : res;
527
- }
528
- };
529
- }));
530
- //#endregion
531
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js
532
- function getAliasCount(doc, node, anchors) {
533
- if (isAlias(node)) {
534
- const source = node.resolve(doc);
535
- const anchor = anchors && source && anchors.get(source);
536
- return anchor ? anchor.count * anchor.aliasCount : 0;
537
- } else if (isCollection(node)) {
538
- let count = 0;
539
- for (const item of node.items) {
540
- const c = getAliasCount(doc, item, anchors);
541
- if (c > count) count = c;
542
- }
543
- return count;
544
- } else if (isPair(node)) {
545
- const kc = getAliasCount(doc, node.key, anchors);
546
- const vc = getAliasCount(doc, node.value, anchors);
547
- return Math.max(kc, vc);
548
- }
549
- return 1;
550
- }
551
- var Alias;
552
- var init_Alias = __esmMin((() => {
553
- init_anchors();
554
- init_visit();
555
- init_identity();
556
- init_Node();
557
- init_toJS();
558
- Alias = class extends NodeBase {
559
- constructor(source) {
560
- super(ALIAS);
561
- this.source = source;
562
- Object.defineProperty(this, "tag", { set() {
563
- throw new Error("Alias nodes cannot have tags");
564
- } });
565
- }
566
- /**
567
- * Resolve the value of this alias within `doc`, finding the last
568
- * instance of the `source` anchor before this node.
569
- */
570
- resolve(doc, ctx) {
571
- if ((ctx === null || ctx === void 0 ? void 0 : ctx.maxAliasCount) === 0) throw new ReferenceError("Alias resolution is disabled");
572
- let nodes;
573
- if (ctx === null || ctx === void 0 ? void 0 : ctx.aliasResolveCache) nodes = ctx.aliasResolveCache;
574
- else {
575
- nodes = [];
576
- visit$1(doc, { Node: (_key, node) => {
577
- if (isAlias(node) || hasAnchor(node)) nodes.push(node);
578
- } });
579
- if (ctx) ctx.aliasResolveCache = nodes;
580
- }
581
- let found = void 0;
582
- for (const node of nodes) {
583
- if (node === this) break;
584
- if (node.anchor === this.source) found = node;
585
- }
586
- return found;
587
- }
588
- toJSON(_arg, ctx) {
589
- if (!ctx) return { source: this.source };
590
- const { anchors, doc, maxAliasCount } = ctx;
591
- const source = this.resolve(doc, ctx);
592
- if (!source) {
593
- const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
594
- throw new ReferenceError(msg);
595
- }
596
- let data = anchors.get(source);
597
- if (!data) {
598
- toJS(source, null, ctx);
599
- data = anchors.get(source);
600
- }
601
- /* istanbul ignore if */
602
- if ((data === null || data === void 0 ? void 0 : data.res) === void 0) throw new ReferenceError("This should not happen: Alias anchor was not resolved?");
603
- if (maxAliasCount >= 0) {
604
- data.count += 1;
605
- if (data.aliasCount === 0) data.aliasCount = getAliasCount(doc, source, anchors);
606
- if (data.count * data.aliasCount > maxAliasCount) throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");
607
- }
608
- return data.res;
609
- }
610
- toString(ctx, _onComment, _onChompKeep) {
611
- const src = `*${this.source}`;
612
- if (ctx) {
613
- anchorIsValid(this.source);
614
- if (ctx.options.verifyAliasOrder && !ctx.anchors.has(this.source)) {
615
- const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
616
- throw new Error(msg);
617
- }
618
- if (ctx.implicitKey) return `${src} `;
619
- }
620
- return src;
621
- }
622
- };
623
- }));
624
- //#endregion
625
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
626
- var isScalarValue, Scalar;
627
- var init_Scalar = __esmMin((() => {
628
- init_identity();
629
- init_Node();
630
- init_toJS();
631
- isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
632
- Scalar = class extends NodeBase {
633
- constructor(value) {
634
- super(SCALAR);
635
- this.value = value;
636
- }
637
- toJSON(arg, ctx) {
638
- return (ctx === null || ctx === void 0 ? void 0 : ctx.keep) ? this.value : toJS(this.value, arg, ctx);
639
- }
640
- toString() {
641
- return String(this.value);
642
- }
643
- };
644
- Scalar.BLOCK_FOLDED = "BLOCK_FOLDED";
645
- Scalar.BLOCK_LITERAL = "BLOCK_LITERAL";
646
- Scalar.PLAIN = "PLAIN";
647
- Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE";
648
- Scalar.QUOTE_SINGLE = "QUOTE_SINGLE";
649
- }));
650
- //#endregion
651
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js
652
- function findTagObject(value, tagName, tags) {
653
- if (tagName) {
654
- var _match$find;
655
- const match = tags.filter((t) => t.tag === tagName);
656
- const tagObj = (_match$find = match.find((t) => !t.format)) !== null && _match$find !== void 0 ? _match$find : match[0];
657
- if (!tagObj) throw new Error(`Tag ${tagName} not found`);
658
- return tagObj;
659
- }
660
- return tags.find((t) => {
661
- var _t$identify;
662
- return ((_t$identify = t.identify) === null || _t$identify === void 0 ? void 0 : _t$identify.call(t, value)) && !t.format;
663
- });
664
- }
665
- function createNode(value, tagName, ctx) {
666
- var _tagObj$nodeClass;
667
- if (isDocument(value)) value = value.contents;
668
- if (isNode(value)) return value;
669
- if (isPair(value)) {
670
- var _ctx$schema$MAP$creat, _ctx$schema$MAP;
671
- const map = (_ctx$schema$MAP$creat = (_ctx$schema$MAP = ctx.schema[MAP]).createNode) === null || _ctx$schema$MAP$creat === void 0 ? void 0 : _ctx$schema$MAP$creat.call(_ctx$schema$MAP, ctx.schema, null, ctx);
672
- map.items.push(value);
673
- return map;
674
- }
675
- if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) value = value.valueOf();
676
- const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
677
- let ref = void 0;
678
- if (aliasDuplicateObjects && value && typeof value === "object") {
679
- ref = sourceObjects.get(value);
680
- if (ref) {
681
- var _ref$anchor;
682
- (_ref$anchor = ref.anchor) !== null && _ref$anchor !== void 0 || (ref.anchor = onAnchor(value));
683
- return new Alias(ref.anchor);
684
- } else {
685
- ref = {
686
- anchor: null,
687
- node: null
688
- };
689
- sourceObjects.set(value, ref);
690
- }
691
- }
692
- if (tagName === null || tagName === void 0 ? void 0 : tagName.startsWith("!!")) tagName = defaultTagPrefix + tagName.slice(2);
693
- let tagObj = findTagObject(value, tagName, schema.tags);
694
- if (!tagObj) {
695
- if (value && typeof value.toJSON === "function") value = value.toJSON();
696
- if (!value || typeof value !== "object") {
697
- const node = new Scalar(value);
698
- if (ref) ref.node = node;
699
- return node;
700
- }
701
- tagObj = value instanceof Map ? schema[MAP] : Symbol.iterator in Object(value) ? schema[SEQ] : schema[MAP];
702
- }
703
- if (onTagObj) {
704
- onTagObj(tagObj);
705
- delete ctx.onTagObj;
706
- }
707
- const node = (tagObj === null || tagObj === void 0 ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : typeof (tagObj === null || tagObj === void 0 || (_tagObj$nodeClass = tagObj.nodeClass) === null || _tagObj$nodeClass === void 0 ? void 0 : _tagObj$nodeClass.from) === "function" ? tagObj.nodeClass.from(ctx.schema, value, ctx) : new Scalar(value);
708
- if (tagName) node.tag = tagName;
709
- else if (!tagObj.default) node.tag = tagObj.tag;
710
- if (ref) ref.node = node;
711
- return node;
712
- }
713
- var defaultTagPrefix;
714
- var init_createNode = __esmMin((() => {
715
- init_Alias();
716
- init_identity();
717
- init_Scalar();
718
- defaultTagPrefix = "tag:yaml.org,2002:";
719
- }));
720
- //#endregion
721
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js
722
- function collectionFromPath(schema, path, value) {
723
- let v = value;
724
- for (let i = path.length - 1; i >= 0; --i) {
725
- const k = path[i];
726
- if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
727
- const a = [];
728
- a[k] = v;
729
- v = a;
730
- } else v = new Map([[k, v]]);
731
- }
732
- return createNode(v, void 0, {
733
- aliasDuplicateObjects: false,
734
- keepUndefined: false,
735
- onAnchor: () => {
736
- throw new Error("This should not happen, please report a bug.");
737
- },
738
- schema,
739
- sourceObjects: /* @__PURE__ */ new Map()
740
- });
741
- }
742
- var isEmptyPath, Collection;
743
- var init_Collection = __esmMin((() => {
744
- init_createNode();
745
- init_identity();
746
- init_Node();
747
- isEmptyPath = (path) => path == null || typeof path === "object" && !!path[Symbol.iterator]().next().done;
748
- Collection = class extends NodeBase {
749
- constructor(type, schema) {
750
- super(type);
751
- Object.defineProperty(this, "schema", {
752
- value: schema,
753
- configurable: true,
754
- enumerable: false,
755
- writable: true
756
- });
757
- }
758
- /**
759
- * Create a copy of this collection.
760
- *
761
- * @param schema - If defined, overwrites the original's schema
762
- */
763
- clone(schema) {
764
- const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
765
- if (schema) copy.schema = schema;
766
- copy.items = copy.items.map((it) => isNode(it) || isPair(it) ? it.clone(schema) : it);
767
- if (this.range) copy.range = this.range.slice();
768
- return copy;
769
- }
770
- /**
771
- * Adds a value to the collection. For `!!map` and `!!omap` the value must
772
- * be a Pair instance or a `{ key, value }` object, which may not have a key
773
- * that already exists in the map.
774
- */
775
- addIn(path, value) {
776
- if (isEmptyPath(path)) this.add(value);
777
- else {
778
- const [key, ...rest] = path;
779
- const node = this.get(key, true);
780
- if (isCollection(node)) node.addIn(rest, value);
781
- else if (node === void 0 && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));
782
- else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
783
- }
784
- }
785
- /**
786
- * Removes a value from the collection.
787
- * @returns `true` if the item was found and removed.
788
- */
789
- deleteIn(path) {
790
- const [key, ...rest] = path;
791
- if (rest.length === 0) return this.delete(key);
792
- const node = this.get(key, true);
793
- if (isCollection(node)) return node.deleteIn(rest);
794
- else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
795
- }
796
- /**
797
- * Returns item at `key`, or `undefined` if not found. By default unwraps
798
- * scalar values from their surrounding node; to disable set `keepScalar` to
799
- * `true` (collections are always returned intact).
800
- */
801
- getIn(path, keepScalar) {
802
- const [key, ...rest] = path;
803
- const node = this.get(key, true);
804
- if (rest.length === 0) return !keepScalar && isScalar(node) ? node.value : node;
805
- else return isCollection(node) ? node.getIn(rest, keepScalar) : void 0;
806
- }
807
- hasAllNullValues(allowScalar) {
808
- return this.items.every((node) => {
809
- if (!isPair(node)) return false;
810
- const n = node.value;
811
- return n == null || allowScalar && isScalar(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
812
- });
813
- }
814
- /**
815
- * Checks if the collection includes a value with the key `key`.
816
- */
817
- hasIn(path) {
818
- const [key, ...rest] = path;
819
- if (rest.length === 0) return this.has(key);
820
- const node = this.get(key, true);
821
- return isCollection(node) ? node.hasIn(rest) : false;
822
- }
823
- /**
824
- * Sets a value in this collection. For `!!set`, `value` needs to be a
825
- * boolean to add/remove the item from the set.
826
- */
827
- setIn(path, value) {
828
- const [key, ...rest] = path;
829
- if (rest.length === 0) this.set(key, value);
830
- else {
831
- const node = this.get(key, true);
832
- if (isCollection(node)) node.setIn(rest, value);
833
- else if (node === void 0 && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));
834
- else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
835
- }
836
- }
837
- };
838
- }));
839
- //#endregion
840
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js
841
- function indentComment(comment, indent) {
842
- if (/^\n+$/.test(comment)) return comment.substring(1);
843
- return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
844
- }
845
- var stringifyComment, lineComment;
846
- var init_stringifyComment = __esmMin((() => {
847
- stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
848
- lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
849
- }));
850
- //#endregion
851
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
852
- /**
853
- * Tries to keep input at up to `lineWidth` characters, splitting only on spaces
854
- * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are
855
- * terminated with `\n` and started with `indent`.
856
- */
857
- function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
858
- if (!lineWidth || lineWidth < 0) return text;
859
- if (lineWidth < minContentWidth) minContentWidth = 0;
860
- const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
861
- if (text.length <= endStep) return text;
862
- const folds = [];
863
- const escapedFolds = {};
864
- let end = lineWidth - indent.length;
865
- if (typeof indentAtStart === "number") if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
866
- else end = lineWidth - indentAtStart;
867
- let split = void 0;
868
- let prev = void 0;
869
- let overflow = false;
870
- let i = -1;
871
- let escStart = -1;
872
- let escEnd = -1;
873
- if (mode === "block") {
874
- i = consumeMoreIndentedLines(text, i, indent.length);
875
- if (i !== -1) end = i + endStep;
876
- }
877
- for (let ch; ch = text[i += 1];) {
878
- if (mode === "quoted" && ch === "\\") {
879
- escStart = i;
880
- switch (text[i + 1]) {
881
- case "x":
882
- i += 3;
883
- break;
884
- case "u":
885
- i += 5;
886
- break;
887
- case "U":
888
- i += 9;
889
- break;
890
- default: i += 1;
891
- }
892
- escEnd = i;
893
- }
894
- if (ch === "\n") {
895
- if (mode === "block") i = consumeMoreIndentedLines(text, i, indent.length);
896
- end = i + indent.length + endStep;
897
- split = void 0;
898
- } else {
899
- if (ch === " " && prev && prev !== " " && prev !== "\n" && prev !== " ") {
900
- const next = text[i + 1];
901
- if (next && next !== " " && next !== "\n" && next !== " ") split = i;
902
- }
903
- if (i >= end) if (split) {
904
- folds.push(split);
905
- end = split + endStep;
906
- split = void 0;
907
- } else if (mode === "quoted") {
908
- while (prev === " " || prev === " ") {
909
- prev = ch;
910
- ch = text[i += 1];
911
- overflow = true;
912
- }
913
- const j = i > escEnd + 1 ? i - 2 : escStart - 1;
914
- if (escapedFolds[j]) return text;
915
- folds.push(j);
916
- escapedFolds[j] = true;
917
- end = j + endStep;
918
- split = void 0;
919
- } else overflow = true;
920
- }
921
- prev = ch;
922
- }
923
- if (overflow && onOverflow) onOverflow();
924
- if (folds.length === 0) return text;
925
- if (onFold) onFold();
926
- let res = text.slice(0, folds[0]);
927
- for (let i = 0; i < folds.length; ++i) {
928
- const fold = folds[i];
929
- const end = folds[i + 1] || text.length;
930
- if (fold === 0) res = `\n${indent}${text.slice(0, end)}`;
931
- else {
932
- if (mode === "quoted" && escapedFolds[fold]) res += `${text[fold]}\\`;
933
- res += `\n${indent}${text.slice(fold + 1, end)}`;
934
- }
935
- }
936
- return res;
937
- }
938
- /**
939
- * Presumes `i + 1` is at the start of a line
940
- * @returns index of last newline in more-indented block
941
- */
942
- function consumeMoreIndentedLines(text, i, indent) {
943
- let end = i;
944
- let start = i + 1;
945
- let ch = text[start];
946
- while (ch === " " || ch === " ") if (i < start + indent) ch = text[++i];
947
- else {
948
- do
949
- ch = text[++i];
950
- while (ch && ch !== "\n");
951
- end = i;
952
- start = i + 1;
953
- ch = text[start];
954
- }
955
- return end;
956
- }
957
- var FOLD_FLOW, FOLD_BLOCK, FOLD_QUOTED;
958
- var init_foldFlowLines = __esmMin((() => {
959
- FOLD_FLOW = "flow";
960
- FOLD_BLOCK = "block";
961
- FOLD_QUOTED = "quoted";
962
- }));
963
- //#endregion
964
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
965
- function lineLengthOverLimit(str, lineWidth, indentLength) {
966
- if (!lineWidth || lineWidth < 0) return false;
967
- const limit = lineWidth - indentLength;
968
- const strLen = str.length;
969
- if (strLen <= limit) return false;
970
- for (let i = 0, start = 0; i < strLen; ++i) if (str[i] === "\n") {
971
- if (i - start > limit) return true;
972
- start = i + 1;
973
- if (strLen - start <= limit) return false;
974
- }
975
- return true;
976
- }
977
- function doubleQuotedString(value, ctx) {
978
- const json = JSON.stringify(value);
979
- if (ctx.options.doubleQuotedAsJSON) return json;
980
- const { implicitKey } = ctx;
981
- const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength;
982
- const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
983
- let str = "";
984
- let start = 0;
985
- for (let i = 0, ch = json[i]; ch; ch = json[++i]) {
986
- if (ch === " " && json[i + 1] === "\\" && json[i + 2] === "n") {
987
- str += json.slice(start, i) + "\\ ";
988
- i += 1;
989
- start = i;
990
- ch = "\\";
991
- }
992
- if (ch === "\\") switch (json[i + 1]) {
993
- case "u":
994
- {
995
- str += json.slice(start, i);
996
- const code = json.substr(i + 2, 4);
997
- switch (code) {
998
- case "0000":
999
- str += "\\0";
1000
- break;
1001
- case "0007":
1002
- str += "\\a";
1003
- break;
1004
- case "000b":
1005
- str += "\\v";
1006
- break;
1007
- case "001b":
1008
- str += "\\e";
1009
- break;
1010
- case "0085":
1011
- str += "\\N";
1012
- break;
1013
- case "00a0":
1014
- str += "\\_";
1015
- break;
1016
- case "2028":
1017
- str += "\\L";
1018
- break;
1019
- case "2029":
1020
- str += "\\P";
1021
- break;
1022
- default: if (code.substr(0, 2) === "00") str += "\\x" + code.substr(2);
1023
- else str += json.substr(i, 6);
1024
- }
1025
- i += 5;
1026
- start = i + 1;
1027
- }
1028
- break;
1029
- case "n":
1030
- if (implicitKey || json[i + 2] === "\"" || json.length < minMultiLineLength) i += 1;
1031
- else {
1032
- str += json.slice(start, i) + "\n\n";
1033
- while (json[i + 2] === "\\" && json[i + 3] === "n" && json[i + 4] !== "\"") {
1034
- str += "\n";
1035
- i += 2;
1036
- }
1037
- str += indent;
1038
- if (json[i + 2] === " ") str += "\\";
1039
- i += 1;
1040
- start = i + 1;
1041
- }
1042
- break;
1043
- default: i += 1;
1044
- }
1045
- }
1046
- str = start ? str + json.slice(start) : json;
1047
- return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx, false));
1048
- }
1049
- function singleQuotedString(value, ctx) {
1050
- if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value)) return doubleQuotedString(value, ctx);
1051
- const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
1052
- const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'";
1053
- return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx, false));
1054
- }
1055
- function quotedString(value, ctx) {
1056
- const { singleQuote } = ctx.options;
1057
- let qs;
1058
- if (singleQuote === false) qs = doubleQuotedString;
1059
- else {
1060
- const hasDouble = value.includes("\"");
1061
- const hasSingle = value.includes("'");
1062
- if (hasDouble && !hasSingle) qs = singleQuotedString;
1063
- else if (hasSingle && !hasDouble) qs = doubleQuotedString;
1064
- else qs = singleQuote ? singleQuotedString : doubleQuotedString;
1065
- }
1066
- return qs(value, ctx);
1067
- }
1068
- function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
1069
- const { blockQuote, commentString, lineWidth } = ctx.options;
1070
- if (!blockQuote || /\n[\t ]+$/.test(value)) return quotedString(value, ctx);
1071
- const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
1072
- const literal = blockQuote === "literal" ? true : blockQuote === "folded" || type === Scalar.BLOCK_FOLDED ? false : type === Scalar.BLOCK_LITERAL ? true : !lineLengthOverLimit(value, lineWidth, indent.length);
1073
- if (!value) return literal ? "|\n" : ">\n";
1074
- let chomp;
1075
- let endStart;
1076
- for (endStart = value.length; endStart > 0; --endStart) {
1077
- const ch = value[endStart - 1];
1078
- if (ch !== "\n" && ch !== " " && ch !== " ") break;
1079
- }
1080
- let end = value.substring(endStart);
1081
- const endNlPos = end.indexOf("\n");
1082
- if (endNlPos === -1) chomp = "-";
1083
- else if (value === end || endNlPos !== end.length - 1) {
1084
- chomp = "+";
1085
- if (onChompKeep) onChompKeep();
1086
- } else chomp = "";
1087
- if (end) {
1088
- value = value.slice(0, -end.length);
1089
- if (end[end.length - 1] === "\n") end = end.slice(0, -1);
1090
- end = end.replace(blockEndNewlines, `$&${indent}`);
1091
- }
1092
- let startWithSpace = false;
1093
- let startEnd;
1094
- let startNlPos = -1;
1095
- for (startEnd = 0; startEnd < value.length; ++startEnd) {
1096
- const ch = value[startEnd];
1097
- if (ch === " ") startWithSpace = true;
1098
- else if (ch === "\n") startNlPos = startEnd;
1099
- else break;
1100
- }
1101
- let start = value.substring(0, startNlPos < startEnd ? startNlPos + 1 : startEnd);
1102
- if (start) {
1103
- value = value.substring(start.length);
1104
- start = start.replace(/\n+/g, `$&${indent}`);
1105
- }
1106
- let header = (startWithSpace ? indent ? "2" : "1" : "") + chomp;
1107
- if (comment) {
1108
- header += " " + commentString(comment.replace(/ ?[\r\n]+/g, " "));
1109
- if (onComment) onComment();
1110
- }
1111
- if (!literal) {
1112
- const foldedValue = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
1113
- let literalFallback = false;
1114
- const foldOptions = getFoldOptions(ctx, true);
1115
- if (blockQuote !== "folded" && type !== Scalar.BLOCK_FOLDED) foldOptions.onOverflow = () => {
1116
- literalFallback = true;
1117
- };
1118
- const body = foldFlowLines(`${start}${foldedValue}${end}`, indent, FOLD_BLOCK, foldOptions);
1119
- if (!literalFallback) return `>${header}\n${indent}${body}`;
1120
- }
1121
- value = value.replace(/\n+/g, `$&${indent}`);
1122
- return `|${header}\n${indent}${start}${value}${end}`;
1123
- }
1124
- function plainString(item, ctx, onComment, onChompKeep) {
1125
- const { type, value } = item;
1126
- const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
1127
- if (implicitKey && value.includes("\n") || inFlow && /[[\]{},]/.test(value)) return quotedString(value, ctx);
1128
- if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
1129
- if (!implicitKey && !inFlow && type !== Scalar.PLAIN && value.includes("\n")) return blockString(item, ctx, onComment, onChompKeep);
1130
- if (containsDocumentMarker(value)) {
1131
- if (indent === "") {
1132
- ctx.forceBlockIndent = true;
1133
- return blockString(item, ctx, onComment, onChompKeep);
1134
- } else if (implicitKey && indent === indentStep) return quotedString(value, ctx);
1135
- }
1136
- const str = value.replace(/\n+/g, `$&\n${indent}`);
1137
- if (actualString) {
1138
- const test = (tag) => {
1139
- var _tag$test;
1140
- return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_tag$test = tag.test) === null || _tag$test === void 0 ? void 0 : _tag$test.test(str));
1141
- };
1142
- const { compat, tags } = ctx.doc.schema;
1143
- if (tags.some(test) || (compat === null || compat === void 0 ? void 0 : compat.some(test))) return quotedString(value, ctx);
1144
- }
1145
- return implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx, false));
1146
- }
1147
- function stringifyString(item, ctx, onComment, onChompKeep) {
1148
- const { implicitKey, inFlow } = ctx;
1149
- const ss = typeof item.value === "string" ? item : Object.assign({}, item, { value: String(item.value) });
1150
- let { type } = item;
1151
- if (type !== Scalar.QUOTE_DOUBLE) {
1152
- if (/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ss.value)) type = Scalar.QUOTE_DOUBLE;
1153
- }
1154
- const _stringify = (_type) => {
1155
- switch (_type) {
1156
- case Scalar.BLOCK_FOLDED:
1157
- case Scalar.BLOCK_LITERAL: return implicitKey || inFlow ? quotedString(ss.value, ctx) : blockString(ss, ctx, onComment, onChompKeep);
1158
- case Scalar.QUOTE_DOUBLE: return doubleQuotedString(ss.value, ctx);
1159
- case Scalar.QUOTE_SINGLE: return singleQuotedString(ss.value, ctx);
1160
- case Scalar.PLAIN: return plainString(ss, ctx, onComment, onChompKeep);
1161
- default: return null;
1162
- }
1163
- };
1164
- let res = _stringify(type);
1165
- if (res === null) {
1166
- const { defaultKeyType, defaultStringType } = ctx.options;
1167
- const t = implicitKey && defaultKeyType || defaultStringType;
1168
- res = _stringify(t);
1169
- if (res === null) throw new Error(`Unsupported default string type ${t}`);
1170
- }
1171
- return res;
1172
- }
1173
- var getFoldOptions, containsDocumentMarker, blockEndNewlines;
1174
- var init_stringifyString = __esmMin((() => {
1175
- init_Scalar();
1176
- init_foldFlowLines();
1177
- getFoldOptions = (ctx, isBlock) => ({
1178
- indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
1179
- lineWidth: ctx.options.lineWidth,
1180
- minContentWidth: ctx.options.minContentWidth
1181
- });
1182
- containsDocumentMarker = (str) => /^(%|---|\.\.\.)/m.test(str);
1183
- try {
1184
- blockEndNewlines = /* @__PURE__ */ new RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
1185
- } catch (_unused) {
1186
- blockEndNewlines = /\n+(?!\n|$)/g;
1187
- }
1188
- }));
1189
- //#endregion
1190
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
1191
- function createStringifyContext(doc, options) {
1192
- const opt = Object.assign({
1193
- blockQuote: true,
1194
- commentString: stringifyComment,
1195
- defaultKeyType: null,
1196
- defaultStringType: "PLAIN",
1197
- directives: null,
1198
- doubleQuotedAsJSON: false,
1199
- doubleQuotedMinMultiLineLength: 40,
1200
- falseStr: "false",
1201
- flowCollectionPadding: true,
1202
- indentSeq: true,
1203
- lineWidth: 80,
1204
- minContentWidth: 20,
1205
- nullStr: "null",
1206
- simpleKeys: false,
1207
- singleQuote: null,
1208
- trailingComma: false,
1209
- trueStr: "true",
1210
- verifyAliasOrder: true
1211
- }, doc.schema.toStringOptions, options);
1212
- let inFlow;
1213
- switch (opt.collectionStyle) {
1214
- case "block":
1215
- inFlow = false;
1216
- break;
1217
- case "flow":
1218
- inFlow = true;
1219
- break;
1220
- default: inFlow = null;
1221
- }
1222
- return {
1223
- anchors: /* @__PURE__ */ new Set(),
1224
- doc,
1225
- flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
1226
- indent: "",
1227
- indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
1228
- inFlow,
1229
- options: opt
1230
- };
1231
- }
1232
- function getTagObject(tags, item) {
1233
- if (item.tag) {
1234
- var _match$find;
1235
- const match = tags.filter((t) => t.tag === item.tag);
1236
- if (match.length > 0) return (_match$find = match.find((t) => t.format === item.format)) !== null && _match$find !== void 0 ? _match$find : match[0];
1237
- }
1238
- let tagObj = void 0;
1239
- let obj;
1240
- if (isScalar(item)) {
1241
- var _match$find2;
1242
- obj = item.value;
1243
- let match = tags.filter((t) => {
1244
- var _t$identify;
1245
- return (_t$identify = t.identify) === null || _t$identify === void 0 ? void 0 : _t$identify.call(t, obj);
1246
- });
1247
- if (match.length > 1) {
1248
- const testMatch = match.filter((t) => t.test);
1249
- if (testMatch.length > 0) match = testMatch;
1250
- }
1251
- tagObj = (_match$find2 = match.find((t) => t.format === item.format)) !== null && _match$find2 !== void 0 ? _match$find2 : match.find((t) => !t.format);
1252
- } else {
1253
- obj = item;
1254
- tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
1255
- }
1256
- if (!tagObj) {
1257
- var _obj$constructor$name, _obj$constructor;
1258
- const name = (_obj$constructor$name = obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) !== null && _obj$constructor$name !== void 0 ? _obj$constructor$name : obj === null ? "null" : typeof obj;
1259
- throw new Error(`Tag not resolved for ${name} value`);
1260
- }
1261
- return tagObj;
1262
- }
1263
- function stringifyProps(node, tagObj, { anchors, doc }) {
1264
- var _node$tag;
1265
- if (!doc.directives) return "";
1266
- const props = [];
1267
- const anchor = (isScalar(node) || isCollection(node)) && node.anchor;
1268
- if (anchor && anchorIsValid(anchor)) {
1269
- anchors.add(anchor);
1270
- props.push(`&${anchor}`);
1271
- }
1272
- const tag = (_node$tag = node.tag) !== null && _node$tag !== void 0 ? _node$tag : tagObj.default ? null : tagObj.tag;
1273
- if (tag) props.push(doc.directives.tagString(tag));
1274
- return props.join(" ");
1275
- }
1276
- function stringify(item, ctx, onComment, onChompKeep) {
1277
- var _tagObj, _ctx$indentAtStart;
1278
- if (isPair(item)) return item.toString(ctx, onComment, onChompKeep);
1279
- if (isAlias(item)) {
1280
- var _ctx$resolvedAliases;
1281
- if (ctx.doc.directives) return item.toString(ctx);
1282
- if ((_ctx$resolvedAliases = ctx.resolvedAliases) === null || _ctx$resolvedAliases === void 0 ? void 0 : _ctx$resolvedAliases.has(item)) throw new TypeError(`Cannot stringify circular structure without alias nodes`);
1283
- else {
1284
- if (ctx.resolvedAliases) ctx.resolvedAliases.add(item);
1285
- else ctx.resolvedAliases = new Set([item]);
1286
- item = item.resolve(ctx.doc);
1287
- }
1288
- }
1289
- let tagObj = void 0;
1290
- const node = isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
1291
- (_tagObj = tagObj) !== null && _tagObj !== void 0 || (tagObj = getTagObject(ctx.doc.schema.tags, node));
1292
- const props = stringifyProps(node, tagObj, ctx);
1293
- if (props.length > 0) ctx.indentAtStart = ((_ctx$indentAtStart = ctx.indentAtStart) !== null && _ctx$indentAtStart !== void 0 ? _ctx$indentAtStart : 0) + props.length + 1;
1294
- const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : isScalar(node) ? stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
1295
- if (!props) return str;
1296
- return isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}\n${ctx.indent}${str}`;
1297
- }
1298
- var init_stringify = __esmMin((() => {
1299
- init_anchors();
1300
- init_identity();
1301
- init_stringifyComment();
1302
- init_stringifyString();
1303
- }));
1304
- //#endregion
1305
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
1306
- function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
1307
- const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
1308
- let keyComment = isNode(key) && key.comment || null;
1309
- if (simpleKeys) {
1310
- if (keyComment) throw new Error("With simple keys, key nodes cannot have comments");
1311
- if (isCollection(key) || !isNode(key) && typeof key === "object") throw new Error("With simple keys, collection cannot be used as a key value");
1312
- }
1313
- let explicitKey = !simpleKeys && (!key || keyComment && value == null && !ctx.inFlow || isCollection(key) || (isScalar(key) ? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL : typeof key === "object"));
1314
- ctx = Object.assign({}, ctx, {
1315
- allNullValues: false,
1316
- implicitKey: !explicitKey && (simpleKeys || !allNullValues),
1317
- indent: indent + indentStep
1318
- });
1319
- let keyCommentDone = false;
1320
- let chompKeep = false;
1321
- let str = stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
1322
- if (!explicitKey && !ctx.inFlow && str.length > 1024) {
1323
- if (simpleKeys) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
1324
- explicitKey = true;
1325
- }
1326
- if (ctx.inFlow) {
1327
- if (allNullValues || value == null) {
1328
- if (keyCommentDone && onComment) onComment();
1329
- return str === "" ? "?" : explicitKey ? `? ${str}` : str;
1330
- }
1331
- } else if (allNullValues && !simpleKeys || value == null && explicitKey) {
1332
- str = `? ${str}`;
1333
- if (keyComment && !keyCommentDone) str += lineComment(str, ctx.indent, commentString(keyComment));
1334
- else if (chompKeep && onChompKeep) onChompKeep();
1335
- return str;
1336
- }
1337
- if (keyCommentDone) keyComment = null;
1338
- if (explicitKey) {
1339
- if (keyComment) str += lineComment(str, ctx.indent, commentString(keyComment));
1340
- str = `? ${str}\n${indent}:`;
1341
- } else {
1342
- str = `${str}:`;
1343
- if (keyComment) str += lineComment(str, ctx.indent, commentString(keyComment));
1344
- }
1345
- let vsb, vcb, valueComment;
1346
- if (isNode(value)) {
1347
- vsb = !!value.spaceBefore;
1348
- vcb = value.commentBefore;
1349
- valueComment = value.comment;
1350
- } else {
1351
- vsb = false;
1352
- vcb = null;
1353
- valueComment = null;
1354
- if (value && typeof value === "object") value = doc.createNode(value);
1355
- }
1356
- ctx.implicitKey = false;
1357
- if (!explicitKey && !keyComment && isScalar(value)) ctx.indentAtStart = str.length + 1;
1358
- chompKeep = false;
1359
- if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && isSeq(value) && !value.flow && !value.tag && !value.anchor) ctx.indent = ctx.indent.substring(2);
1360
- let valueCommentDone = false;
1361
- const valueStr = stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
1362
- let ws = " ";
1363
- if (keyComment || vsb || vcb) {
1364
- ws = vsb ? "\n" : "";
1365
- if (vcb) {
1366
- const cs = commentString(vcb);
1367
- ws += `\n${indentComment(cs, ctx.indent)}`;
1368
- }
1369
- if (valueStr === "" && !ctx.inFlow) {
1370
- if (ws === "\n" && valueComment) ws = "\n\n";
1371
- } else ws += `\n${ctx.indent}`;
1372
- } else if (!explicitKey && isCollection(value)) {
1373
- var _ref, _ctx$inFlow;
1374
- const vs0 = valueStr[0];
1375
- const nl0 = valueStr.indexOf("\n");
1376
- const hasNewline = nl0 !== -1;
1377
- const flow = (_ref = (_ctx$inFlow = ctx.inFlow) !== null && _ctx$inFlow !== void 0 ? _ctx$inFlow : value.flow) !== null && _ref !== void 0 ? _ref : value.items.length === 0;
1378
- if (hasNewline || !flow) {
1379
- let hasPropsLine = false;
1380
- if (hasNewline && (vs0 === "&" || vs0 === "!")) {
1381
- let sp0 = valueStr.indexOf(" ");
1382
- if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") sp0 = valueStr.indexOf(" ", sp0 + 1);
1383
- if (sp0 === -1 || nl0 < sp0) hasPropsLine = true;
1384
- }
1385
- if (!hasPropsLine) ws = `\n${ctx.indent}`;
1386
- }
1387
- } else if (valueStr === "" || valueStr[0] === "\n") ws = "";
1388
- str += ws + valueStr;
1389
- if (ctx.inFlow) {
1390
- if (valueCommentDone && onComment) onComment();
1391
- } else if (valueComment && !valueCommentDone) str += lineComment(str, ctx.indent, commentString(valueComment));
1392
- else if (chompKeep && onChompKeep) onChompKeep();
1393
- return str;
1394
- }
1395
- var init_stringifyPair = __esmMin((() => {
1396
- init_identity();
1397
- init_Scalar();
1398
- init_stringify();
1399
- init_stringifyComment();
1400
- }));
1401
- //#endregion
1402
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js
1403
- function warn(logLevel, warning) {
1404
- if (logLevel === "debug" || logLevel === "warn") console.warn(warning);
1405
- }
1406
- var init_log = __esmMin((() => {}));
1407
- //#endregion
1408
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
1409
- function addMergeToJSMap(ctx, map, value) {
1410
- const source = resolveAliasValue(ctx, value);
1411
- if (isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
1412
- else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
1413
- else mergeValue(ctx, map, source);
1414
- }
1415
- function mergeValue(ctx, map, value) {
1416
- const source = resolveAliasValue(ctx, value);
1417
- if (!isMap(source)) throw new Error("Merge sources must be maps or map aliases");
1418
- const srcMap = source.toJSON(null, ctx, Map);
1419
- for (const [key, value] of srcMap) if (map instanceof Map) {
1420
- if (!map.has(key)) map.set(key, value);
1421
- } else if (map instanceof Set) map.add(key);
1422
- else if (!Object.prototype.hasOwnProperty.call(map, key)) Object.defineProperty(map, key, {
1423
- value,
1424
- writable: true,
1425
- enumerable: true,
1426
- configurable: true
1427
- });
1428
- return map;
1429
- }
1430
- function resolveAliasValue(ctx, value) {
1431
- return ctx && isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
1432
- }
1433
- var MERGE_KEY, merge, isMergeKey;
1434
- var init_merge = __esmMin((() => {
1435
- init_identity();
1436
- init_Scalar();
1437
- MERGE_KEY = "<<";
1438
- merge = {
1439
- identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
1440
- default: "key",
1441
- tag: "tag:yaml.org,2002:merge",
1442
- test: /^<<$/,
1443
- resolve: () => Object.assign(new Scalar(Symbol(MERGE_KEY)), { addToJSMap: addMergeToJSMap }),
1444
- stringify: () => MERGE_KEY
1445
- };
1446
- isMergeKey = (ctx, key) => (merge.identify(key) || isScalar(key) && (!key.type || key.type === Scalar.PLAIN) && merge.identify(key.value)) && (ctx === null || ctx === void 0 ? void 0 : ctx.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default));
1447
- }));
1448
- //#endregion
1449
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
1450
- function addPairToJSMap(ctx, map, { key, value }) {
1451
- if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
1452
- else if (isMergeKey(ctx, key)) addMergeToJSMap(ctx, map, value);
1453
- else {
1454
- const jsKey = toJS(key, "", ctx);
1455
- if (map instanceof Map) map.set(jsKey, toJS(value, jsKey, ctx));
1456
- else if (map instanceof Set) map.add(jsKey);
1457
- else {
1458
- const stringKey = stringifyKey(key, jsKey, ctx);
1459
- const jsValue = toJS(value, stringKey, ctx);
1460
- if (stringKey in map) Object.defineProperty(map, stringKey, {
1461
- value: jsValue,
1462
- writable: true,
1463
- enumerable: true,
1464
- configurable: true
1465
- });
1466
- else map[stringKey] = jsValue;
1467
- }
1468
- }
1469
- return map;
1470
- }
1471
- function stringifyKey(key, jsKey, ctx) {
1472
- if (jsKey === null) return "";
1473
- if (typeof jsKey !== "object") return String(jsKey);
1474
- if (isNode(key) && (ctx === null || ctx === void 0 ? void 0 : ctx.doc)) {
1475
- const strCtx = createStringifyContext(ctx.doc, {});
1476
- strCtx.anchors = /* @__PURE__ */ new Set();
1477
- for (const node of ctx.anchors.keys()) strCtx.anchors.add(node.anchor);
1478
- strCtx.inFlow = true;
1479
- strCtx.inStringifyKey = true;
1480
- const strKey = key.toString(strCtx);
1481
- if (!ctx.mapKeyWarned) {
1482
- let jsonStr = JSON.stringify(strKey);
1483
- if (jsonStr.length > 40) jsonStr = jsonStr.substring(0, 36) + "...\"";
1484
- warn(ctx.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${jsonStr}. Set mapAsMap: true to use object keys.`);
1485
- ctx.mapKeyWarned = true;
1486
- }
1487
- return strKey;
1488
- }
1489
- return JSON.stringify(jsKey);
1490
- }
1491
- var init_addPairToJSMap = __esmMin((() => {
1492
- init_log();
1493
- init_merge();
1494
- init_stringify();
1495
- init_identity();
1496
- init_toJS();
1497
- }));
1498
- //#endregion
1499
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
1500
- function createPair(key, value, ctx) {
1501
- return new Pair(createNode(key, void 0, ctx), createNode(value, void 0, ctx));
1502
- }
1503
- var Pair;
1504
- var init_Pair = __esmMin((() => {
1505
- init_createNode();
1506
- init_stringifyPair();
1507
- init_addPairToJSMap();
1508
- init_identity();
1509
- Pair = class Pair {
1510
- constructor(key, value = null) {
1511
- Object.defineProperty(this, NODE_TYPE, { value: PAIR });
1512
- this.key = key;
1513
- this.value = value;
1514
- }
1515
- clone(schema) {
1516
- let { key, value } = this;
1517
- if (isNode(key)) key = key.clone(schema);
1518
- if (isNode(value)) value = value.clone(schema);
1519
- return new Pair(key, value);
1520
- }
1521
- toJSON(_, ctx) {
1522
- return addPairToJSMap(ctx, (ctx === null || ctx === void 0 ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {}, this);
1523
- }
1524
- toString(ctx, onComment, onChompKeep) {
1525
- return (ctx === null || ctx === void 0 ? void 0 : ctx.doc) ? stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
1526
- }
1527
- };
1528
- }));
1529
- //#endregion
1530
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
1531
- function stringifyCollection(collection, ctx, options) {
1532
- var _ctx$inFlow;
1533
- return (((_ctx$inFlow = ctx.inFlow) !== null && _ctx$inFlow !== void 0 ? _ctx$inFlow : collection.flow) ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
1534
- }
1535
- function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
1536
- const { indent, options: { commentString } } = ctx;
1537
- const itemCtx = Object.assign({}, ctx, {
1538
- indent: itemIndent,
1539
- type: null
1540
- });
1541
- let chompKeep = false;
1542
- const lines = [];
1543
- for (let i = 0; i < items.length; ++i) {
1544
- const item = items[i];
1545
- let comment = null;
1546
- if (isNode(item)) {
1547
- if (!chompKeep && item.spaceBefore) lines.push("");
1548
- addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
1549
- if (item.comment) comment = item.comment;
1550
- } else if (isPair(item)) {
1551
- const ik = isNode(item.key) ? item.key : null;
1552
- if (ik) {
1553
- if (!chompKeep && ik.spaceBefore) lines.push("");
1554
- addCommentBefore(ctx, lines, ik.commentBefore, chompKeep);
1555
- }
1556
- }
1557
- chompKeep = false;
1558
- let str = stringify(item, itemCtx, () => comment = null, () => chompKeep = true);
1559
- if (comment) str += lineComment(str, itemIndent, commentString(comment));
1560
- if (chompKeep && comment) chompKeep = false;
1561
- lines.push(blockItemPrefix + str);
1562
- }
1563
- let str;
1564
- if (lines.length === 0) str = flowChars.start + flowChars.end;
1565
- else {
1566
- str = lines[0];
1567
- for (let i = 1; i < lines.length; ++i) {
1568
- const line = lines[i];
1569
- str += line ? `\n${indent}${line}` : "\n";
1570
- }
1571
- }
1572
- if (comment) {
1573
- str += "\n" + indentComment(commentString(comment), indent);
1574
- if (onComment) onComment();
1575
- } else if (chompKeep && onChompKeep) onChompKeep();
1576
- return str;
1577
- }
1578
- function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
1579
- const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
1580
- itemIndent += indentStep;
1581
- const itemCtx = Object.assign({}, ctx, {
1582
- indent: itemIndent,
1583
- inFlow: true,
1584
- type: null
1585
- });
1586
- let reqNewline = false;
1587
- let linesAtValue = 0;
1588
- const lines = [];
1589
- for (let i = 0; i < items.length; ++i) {
1590
- const item = items[i];
1591
- let comment = null;
1592
- if (isNode(item)) {
1593
- if (item.spaceBefore) lines.push("");
1594
- addCommentBefore(ctx, lines, item.commentBefore, false);
1595
- if (item.comment) comment = item.comment;
1596
- } else if (isPair(item)) {
1597
- const ik = isNode(item.key) ? item.key : null;
1598
- if (ik) {
1599
- if (ik.spaceBefore) lines.push("");
1600
- addCommentBefore(ctx, lines, ik.commentBefore, false);
1601
- if (ik.comment) reqNewline = true;
1602
- }
1603
- const iv = isNode(item.value) ? item.value : null;
1604
- if (iv) {
1605
- if (iv.comment) comment = iv.comment;
1606
- if (iv.commentBefore) reqNewline = true;
1607
- } else if (item.value == null && (ik === null || ik === void 0 ? void 0 : ik.comment)) comment = ik.comment;
1608
- }
1609
- if (comment) reqNewline = true;
1610
- let str = stringify(item, itemCtx, () => comment = null);
1611
- reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
1612
- if (i < items.length - 1) str += ",";
1613
- else if (ctx.options.trailingComma) {
1614
- if (ctx.options.lineWidth > 0) reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
1615
- if (reqNewline) str += ",";
1616
- }
1617
- if (comment) str += lineComment(str, itemIndent, commentString(comment));
1618
- lines.push(str);
1619
- linesAtValue = lines.length;
1620
- }
1621
- const { start, end } = flowChars;
1622
- if (lines.length === 0) return start + end;
1623
- else {
1624
- if (!reqNewline) {
1625
- const len = lines.reduce((sum, line) => sum + line.length + 2, 2);
1626
- reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
1627
- }
1628
- if (reqNewline) {
1629
- let str = start;
1630
- for (const line of lines) str += line ? `\n${indentStep}${indent}${line}` : "\n";
1631
- return `${str}\n${indent}${end}`;
1632
- } else return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
1633
- }
1634
- }
1635
- function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) {
1636
- if (comment && chompKeep) comment = comment.replace(/^\n+/, "");
1637
- if (comment) {
1638
- const ic = indentComment(commentString(comment), indent);
1639
- lines.push(ic.trimStart());
1640
- }
1641
- }
1642
- var init_stringifyCollection = __esmMin((() => {
1643
- init_identity();
1644
- init_stringify();
1645
- init_stringifyComment();
1646
- }));
1647
- //#endregion
1648
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
1649
- function findPair(items, key) {
1650
- const k = isScalar(key) ? key.value : key;
1651
- for (const it of items) if (isPair(it)) {
1652
- if (it.key === key || it.key === k) return it;
1653
- if (isScalar(it.key) && it.key.value === k) return it;
1654
- }
1655
- }
1656
- var YAMLMap;
1657
- var init_YAMLMap = __esmMin((() => {
1658
- init_stringifyCollection();
1659
- init_addPairToJSMap();
1660
- init_Collection();
1661
- init_identity();
1662
- init_Pair();
1663
- init_Scalar();
1664
- YAMLMap = class extends Collection {
1665
- static get tagName() {
1666
- return "tag:yaml.org,2002:map";
1667
- }
1668
- constructor(schema) {
1669
- super(MAP, schema);
1670
- this.items = [];
1671
- }
1672
- /**
1673
- * A generic collection parsing method that can be extended
1674
- * to other node classes that inherit from YAMLMap
1675
- */
1676
- static from(schema, obj, ctx) {
1677
- const { keepUndefined, replacer } = ctx;
1678
- const map = new this(schema);
1679
- const add = (key, value) => {
1680
- if (typeof replacer === "function") value = replacer.call(obj, key, value);
1681
- else if (Array.isArray(replacer) && !replacer.includes(key)) return;
1682
- if (value !== void 0 || keepUndefined) map.items.push(createPair(key, value, ctx));
1683
- };
1684
- if (obj instanceof Map) for (const [key, value] of obj) add(key, value);
1685
- else if (obj && typeof obj === "object") for (const key of Object.keys(obj)) add(key, obj[key]);
1686
- if (typeof schema.sortMapEntries === "function") map.items.sort(schema.sortMapEntries);
1687
- return map;
1688
- }
1689
- /**
1690
- * Adds a value to the collection.
1691
- *
1692
- * @param overwrite - If not set `true`, using a key that is already in the
1693
- * collection will throw. Otherwise, overwrites the previous value.
1694
- */
1695
- add(pair, overwrite) {
1696
- var _this$schema;
1697
- let _pair;
1698
- if (isPair(pair)) _pair = pair;
1699
- else if (!pair || typeof pair !== "object" || !("key" in pair)) _pair = new Pair(pair, pair === null || pair === void 0 ? void 0 : pair.value);
1700
- else _pair = new Pair(pair.key, pair.value);
1701
- const prev = findPair(this.items, _pair.key);
1702
- const sortEntries = (_this$schema = this.schema) === null || _this$schema === void 0 ? void 0 : _this$schema.sortMapEntries;
1703
- if (prev) {
1704
- if (!overwrite) throw new Error(`Key ${_pair.key} already set`);
1705
- if (isScalar(prev.value) && isScalarValue(_pair.value)) prev.value.value = _pair.value;
1706
- else prev.value = _pair.value;
1707
- } else if (sortEntries) {
1708
- const i = this.items.findIndex((item) => sortEntries(_pair, item) < 0);
1709
- if (i === -1) this.items.push(_pair);
1710
- else this.items.splice(i, 0, _pair);
1711
- } else this.items.push(_pair);
1712
- }
1713
- delete(key) {
1714
- const it = findPair(this.items, key);
1715
- if (!it) return false;
1716
- return this.items.splice(this.items.indexOf(it), 1).length > 0;
1717
- }
1718
- get(key, keepScalar) {
1719
- var _ref;
1720
- const it = findPair(this.items, key);
1721
- const node = it === null || it === void 0 ? void 0 : it.value;
1722
- return (_ref = !keepScalar && isScalar(node) ? node.value : node) !== null && _ref !== void 0 ? _ref : void 0;
1723
- }
1724
- has(key) {
1725
- return !!findPair(this.items, key);
1726
- }
1727
- set(key, value) {
1728
- this.add(new Pair(key, value), true);
1729
- }
1730
- /**
1731
- * @param ctx - Conversion context, originally set in Document#toJS()
1732
- * @param {Class} Type - If set, forces the returned collection type
1733
- * @returns Instance of Type, Map, or Object
1734
- */
1735
- toJSON(_, ctx, Type) {
1736
- const map = Type ? new Type() : (ctx === null || ctx === void 0 ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
1737
- if (ctx === null || ctx === void 0 ? void 0 : ctx.onCreate) ctx.onCreate(map);
1738
- for (const item of this.items) addPairToJSMap(ctx, map, item);
1739
- return map;
1740
- }
1741
- toString(ctx, onComment, onChompKeep) {
1742
- if (!ctx) return JSON.stringify(this);
1743
- for (const item of this.items) if (!isPair(item)) throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
1744
- if (!ctx.allNullValues && this.hasAllNullValues(false)) ctx = Object.assign({}, ctx, { allNullValues: true });
1745
- return stringifyCollection(this, ctx, {
1746
- blockItemPrefix: "",
1747
- flowChars: {
1748
- start: "{",
1749
- end: "}"
1750
- },
1751
- itemIndent: ctx.indent || "",
1752
- onChompKeep,
1753
- onComment
1754
- });
1755
- }
1756
- };
1757
- }));
1758
- //#endregion
1759
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js
1760
- var map;
1761
- var init_map = __esmMin((() => {
1762
- init_identity();
1763
- init_YAMLMap();
1764
- map = {
1765
- collection: "map",
1766
- default: true,
1767
- nodeClass: YAMLMap,
1768
- tag: "tag:yaml.org,2002:map",
1769
- resolve(map, onError) {
1770
- if (!isMap(map)) onError("Expected a mapping for this tag");
1771
- return map;
1772
- },
1773
- createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
1774
- };
1775
- }));
1776
- //#endregion
1777
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
1778
- function asItemIndex(key) {
1779
- let idx = isScalar(key) ? key.value : key;
1780
- if (idx && typeof idx === "string") idx = Number(idx);
1781
- return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
1782
- }
1783
- var YAMLSeq;
1784
- var init_YAMLSeq = __esmMin((() => {
1785
- init_createNode();
1786
- init_stringifyCollection();
1787
- init_Collection();
1788
- init_identity();
1789
- init_Scalar();
1790
- init_toJS();
1791
- YAMLSeq = class extends Collection {
1792
- static get tagName() {
1793
- return "tag:yaml.org,2002:seq";
1794
- }
1795
- constructor(schema) {
1796
- super(SEQ, schema);
1797
- this.items = [];
1798
- }
1799
- add(value) {
1800
- this.items.push(value);
1801
- }
1802
- /**
1803
- * Removes a value from the collection.
1804
- *
1805
- * `key` must contain a representation of an integer for this to succeed.
1806
- * It may be wrapped in a `Scalar`.
1807
- *
1808
- * @returns `true` if the item was found and removed.
1809
- */
1810
- delete(key) {
1811
- const idx = asItemIndex(key);
1812
- if (typeof idx !== "number") return false;
1813
- return this.items.splice(idx, 1).length > 0;
1814
- }
1815
- get(key, keepScalar) {
1816
- const idx = asItemIndex(key);
1817
- if (typeof idx !== "number") return void 0;
1818
- const it = this.items[idx];
1819
- return !keepScalar && isScalar(it) ? it.value : it;
1820
- }
1821
- /**
1822
- * Checks if the collection includes a value with the key `key`.
1823
- *
1824
- * `key` must contain a representation of an integer for this to succeed.
1825
- * It may be wrapped in a `Scalar`.
1826
- */
1827
- has(key) {
1828
- const idx = asItemIndex(key);
1829
- return typeof idx === "number" && idx < this.items.length;
1830
- }
1831
- /**
1832
- * Sets a value in this collection. For `!!set`, `value` needs to be a
1833
- * boolean to add/remove the item from the set.
1834
- *
1835
- * If `key` does not contain a representation of an integer, this will throw.
1836
- * It may be wrapped in a `Scalar`.
1837
- */
1838
- set(key, value) {
1839
- const idx = asItemIndex(key);
1840
- if (typeof idx !== "number") throw new Error(`Expected a valid index, not ${key}.`);
1841
- const prev = this.items[idx];
1842
- if (isScalar(prev) && isScalarValue(value)) prev.value = value;
1843
- else this.items[idx] = value;
1844
- }
1845
- toJSON(_, ctx) {
1846
- const seq = [];
1847
- if (ctx === null || ctx === void 0 ? void 0 : ctx.onCreate) ctx.onCreate(seq);
1848
- let i = 0;
1849
- for (const item of this.items) seq.push(toJS(item, String(i++), ctx));
1850
- return seq;
1851
- }
1852
- toString(ctx, onComment, onChompKeep) {
1853
- if (!ctx) return JSON.stringify(this);
1854
- return stringifyCollection(this, ctx, {
1855
- blockItemPrefix: "- ",
1856
- flowChars: {
1857
- start: "[",
1858
- end: "]"
1859
- },
1860
- itemIndent: (ctx.indent || "") + " ",
1861
- onChompKeep,
1862
- onComment
1863
- });
1864
- }
1865
- static from(schema, obj, ctx) {
1866
- const { replacer } = ctx;
1867
- const seq = new this(schema);
1868
- if (obj && Symbol.iterator in Object(obj)) {
1869
- let i = 0;
1870
- for (let it of obj) {
1871
- if (typeof replacer === "function") {
1872
- const key = obj instanceof Set ? it : String(i++);
1873
- it = replacer.call(obj, key, it);
1874
- }
1875
- seq.items.push(createNode(it, void 0, ctx));
1876
- }
1877
- }
1878
- return seq;
1879
- }
1880
- };
1881
- }));
1882
- //#endregion
1883
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
1884
- var seq;
1885
- var init_seq = __esmMin((() => {
1886
- init_identity();
1887
- init_YAMLSeq();
1888
- seq = {
1889
- collection: "seq",
1890
- default: true,
1891
- nodeClass: YAMLSeq,
1892
- tag: "tag:yaml.org,2002:seq",
1893
- resolve(seq, onError) {
1894
- if (!isSeq(seq)) onError("Expected a sequence for this tag");
1895
- return seq;
1896
- },
1897
- createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
1898
- };
1899
- }));
1900
- //#endregion
1901
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js
1902
- var init_string = __esmMin((() => {
1903
- init_stringifyString();
1904
- }));
1905
- //#endregion
1906
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js
1907
- var init_null = __esmMin((() => {
1908
- init_Scalar();
1909
- }));
1910
- //#endregion
1911
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js
1912
- var init_bool$1 = __esmMin((() => {
1913
- init_Scalar();
1914
- }));
1915
- //#endregion
1916
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js
1917
- var init_float$1 = __esmMin((() => {
1918
- init_Scalar();
1919
- }));
1920
- //#endregion
1921
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js
1922
- var init_schema$2 = __esmMin((() => {
1923
- init_map();
1924
- init_null();
1925
- init_seq();
1926
- init_string();
1927
- init_bool$1();
1928
- init_float$1();
1929
- }));
1930
- //#endregion
1931
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
1932
- function intIdentify(value) {
1933
- return typeof value === "bigint" || Number.isInteger(value);
1934
- }
1935
- var stringifyJSON, jsonScalars;
1936
- var init_schema$1 = __esmMin((() => {
1937
- init_Scalar();
1938
- init_map();
1939
- init_seq();
1940
- stringifyJSON = ({ value }) => JSON.stringify(value);
1941
- jsonScalars = [
1942
- {
1943
- identify: (value) => typeof value === "string",
1944
- default: true,
1945
- tag: "tag:yaml.org,2002:str",
1946
- resolve: (str) => str,
1947
- stringify: stringifyJSON
1948
- },
1949
- {
1950
- identify: (value) => value == null,
1951
- createNode: () => new Scalar(null),
1952
- default: true,
1953
- tag: "tag:yaml.org,2002:null",
1954
- test: /^null$/,
1955
- resolve: () => null,
1956
- stringify: stringifyJSON
1957
- },
1958
- {
1959
- identify: (value) => typeof value === "boolean",
1960
- default: true,
1961
- tag: "tag:yaml.org,2002:bool",
1962
- test: /^true$|^false$/,
1963
- resolve: (str) => str === "true",
1964
- stringify: stringifyJSON
1965
- },
1966
- {
1967
- identify: intIdentify,
1968
- default: true,
1969
- tag: "tag:yaml.org,2002:int",
1970
- test: /^-?(?:0|[1-9][0-9]*)$/,
1971
- resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10),
1972
- stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
1973
- },
1974
- {
1975
- identify: (value) => typeof value === "number",
1976
- default: true,
1977
- tag: "tag:yaml.org,2002:float",
1978
- test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1979
- resolve: (str) => parseFloat(str),
1980
- stringify: stringifyJSON
1981
- }
1982
- ];
1983
- [map, seq].concat(jsonScalars, {
1984
- default: true,
1985
- tag: "",
1986
- test: /^/,
1987
- resolve(str, onError) {
1988
- onError(`Unresolved plain scalar ${JSON.stringify(str)}`);
1989
- return str;
1990
- }
1991
- });
1992
- }));
1993
- //#endregion
1994
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
1995
- var init_binary = __esmMin((() => {
1996
- init_Scalar();
1997
- init_stringifyString();
1998
- }));
1999
- //#endregion
2000
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
2001
- function createPairs(schema, iterable, ctx) {
2002
- const { replacer } = ctx;
2003
- const pairs = new YAMLSeq(schema);
2004
- pairs.tag = "tag:yaml.org,2002:pairs";
2005
- let i = 0;
2006
- if (iterable && Symbol.iterator in Object(iterable)) for (let it of iterable) {
2007
- if (typeof replacer === "function") it = replacer.call(iterable, String(i++), it);
2008
- let key, value;
2009
- if (Array.isArray(it)) if (it.length === 2) {
2010
- key = it[0];
2011
- value = it[1];
2012
- } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
2013
- else if (it && it instanceof Object) {
2014
- const keys = Object.keys(it);
2015
- if (keys.length === 1) {
2016
- key = keys[0];
2017
- value = it[key];
2018
- } else throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
2019
- } else key = it;
2020
- pairs.items.push(createPair(key, value, ctx));
2021
- }
2022
- return pairs;
2023
- }
2024
- var init_pairs = __esmMin((() => {
2025
- init_Pair();
2026
- init_Scalar();
2027
- init_YAMLSeq();
2028
- }));
2029
- //#endregion
2030
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
2031
- var YAMLOMap;
2032
- var init_omap = __esmMin((() => {
2033
- init_identity();
2034
- init_toJS();
2035
- init_YAMLMap();
2036
- init_YAMLSeq();
2037
- init_pairs();
2038
- YAMLOMap = class YAMLOMap extends YAMLSeq {
2039
- constructor() {
2040
- super();
2041
- this.add = YAMLMap.prototype.add.bind(this);
2042
- this.delete = YAMLMap.prototype.delete.bind(this);
2043
- this.get = YAMLMap.prototype.get.bind(this);
2044
- this.has = YAMLMap.prototype.has.bind(this);
2045
- this.set = YAMLMap.prototype.set.bind(this);
2046
- this.tag = YAMLOMap.tag;
2047
- }
2048
- /**
2049
- * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
2050
- * but TypeScript won't allow widening the signature of a child method.
2051
- */
2052
- toJSON(_, ctx) {
2053
- if (!ctx) return super.toJSON(_);
2054
- const map = /* @__PURE__ */ new Map();
2055
- if (ctx === null || ctx === void 0 ? void 0 : ctx.onCreate) ctx.onCreate(map);
2056
- for (const pair of this.items) {
2057
- let key, value;
2058
- if (isPair(pair)) {
2059
- key = toJS(pair.key, "", ctx);
2060
- value = toJS(pair.value, key, ctx);
2061
- } else key = toJS(pair, "", ctx);
2062
- if (map.has(key)) throw new Error("Ordered maps must not include duplicate keys");
2063
- map.set(key, value);
2064
- }
2065
- return map;
2066
- }
2067
- static from(schema, iterable, ctx) {
2068
- const pairs = createPairs(schema, iterable, ctx);
2069
- const omap = new this();
2070
- omap.items = pairs.items;
2071
- return omap;
2072
- }
2073
- };
2074
- YAMLOMap.tag = "tag:yaml.org,2002:omap";
2075
- }));
2076
- //#endregion
2077
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
2078
- var init_bool = __esmMin((() => {
2079
- init_Scalar();
2080
- }));
2081
- //#endregion
2082
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
2083
- var init_float = __esmMin((() => {
2084
- init_Scalar();
2085
- }));
2086
- //#endregion
2087
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
2088
- var YAMLSet;
2089
- var init_set = __esmMin((() => {
2090
- init_identity();
2091
- init_Pair();
2092
- init_YAMLMap();
2093
- YAMLSet = class YAMLSet extends YAMLMap {
2094
- constructor(schema) {
2095
- super(schema);
2096
- this.tag = YAMLSet.tag;
2097
- }
2098
- add(key) {
2099
- let pair;
2100
- if (isPair(key)) pair = key;
2101
- else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null) pair = new Pair(key.key, null);
2102
- else pair = new Pair(key, null);
2103
- if (!findPair(this.items, pair.key)) this.items.push(pair);
2104
- }
2105
- /**
2106
- * If `keepPair` is `true`, returns the Pair matching `key`.
2107
- * Otherwise, returns the value of that Pair's key.
2108
- */
2109
- get(key, keepPair) {
2110
- const pair = findPair(this.items, key);
2111
- return !keepPair && isPair(pair) ? isScalar(pair.key) ? pair.key.value : pair.key : pair;
2112
- }
2113
- set(key, value) {
2114
- if (typeof value !== "boolean") throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`);
2115
- const prev = findPair(this.items, key);
2116
- if (prev && !value) this.items.splice(this.items.indexOf(prev), 1);
2117
- else if (!prev && value) this.items.push(new Pair(key));
2118
- }
2119
- toJSON(_, ctx) {
2120
- return super.toJSON(_, ctx, Set);
2121
- }
2122
- toString(ctx, onComment, onChompKeep) {
2123
- if (!ctx) return JSON.stringify(this);
2124
- if (this.hasAllNullValues(true)) return super.toString(Object.assign({}, ctx, { allNullValues: true }), onComment, onChompKeep);
2125
- else throw new Error("Set items must all have null values");
2126
- }
2127
- static from(schema, iterable, ctx) {
2128
- const { replacer } = ctx;
2129
- const set = new this(schema);
2130
- if (iterable && Symbol.iterator in Object(iterable)) for (let value of iterable) {
2131
- if (typeof replacer === "function") value = replacer.call(iterable, value, value);
2132
- set.items.push(createPair(value, null, ctx));
2133
- }
2134
- return set;
2135
- }
2136
- };
2137
- YAMLSet.tag = "tag:yaml.org,2002:set";
2138
- }));
2139
- //#endregion
2140
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
2141
- var init_schema = __esmMin((() => {
2142
- init_map();
2143
- init_null();
2144
- init_seq();
2145
- init_string();
2146
- init_binary();
2147
- init_bool();
2148
- init_float();
2149
- init_merge();
2150
- init_omap();
2151
- init_pairs();
2152
- init_set();
2153
- }));
2154
- //#endregion
2155
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js
2156
- var init_tags = __esmMin((() => {
2157
- init_map();
2158
- init_null();
2159
- init_seq();
2160
- init_string();
2161
- init_bool$1();
2162
- init_float$1();
2163
- init_schema$2();
2164
- init_schema$1();
2165
- init_binary();
2166
- init_merge();
2167
- init_omap();
2168
- init_pairs();
2169
- init_schema();
2170
- init_set();
2171
- }));
2172
- //#endregion
2173
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js
2174
- var init_Schema = __esmMin((() => {
2175
- init_map();
2176
- init_seq();
2177
- init_string();
2178
- init_tags();
2179
- }));
2180
- //#endregion
2181
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
2182
- var init_stringifyDocument = __esmMin((() => {
2183
- init_stringify();
2184
- }));
2185
- //#endregion
2186
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js
2187
- var init_Document = __esmMin((() => {
2188
- init_Alias();
2189
- init_Collection();
2190
- init_Pair();
2191
- init_Schema();
2192
- init_stringifyDocument();
2193
- init_anchors();
2194
- init_createNode();
2195
- init_directives();
2196
- }));
2197
- //#endregion
2198
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js
2199
- var init_resolve_block_map = __esmMin((() => {
2200
- init_Pair();
2201
- init_YAMLMap();
2202
- }));
2203
- //#endregion
2204
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
2205
- var init_resolve_block_seq = __esmMin((() => {
2206
- init_YAMLSeq();
2207
- }));
2208
- //#endregion
2209
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
2210
- var init_resolve_flow_collection = __esmMin((() => {
2211
- init_Pair();
2212
- init_YAMLMap();
2213
- init_YAMLSeq();
2214
- }));
2215
- //#endregion
2216
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js
2217
- var init_compose_collection = __esmMin((() => {
2218
- init_Scalar();
2219
- init_YAMLMap();
2220
- init_YAMLSeq();
2221
- init_resolve_block_map();
2222
- init_resolve_block_seq();
2223
- init_resolve_flow_collection();
2224
- }));
2225
- //#endregion
2226
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
2227
- var init_resolve_block_scalar = __esmMin((() => {
2228
- init_Scalar();
2229
- }));
2230
- //#endregion
2231
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
2232
- var init_resolve_flow_scalar = __esmMin((() => {
2233
- init_Scalar();
2234
- }));
2235
- //#endregion
2236
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js
2237
- var init_compose_scalar = __esmMin((() => {
2238
- init_Scalar();
2239
- init_resolve_block_scalar();
2240
- init_resolve_flow_scalar();
2241
- }));
2242
- //#endregion
2243
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js
2244
- var init_compose_node = __esmMin((() => {
2245
- init_Alias();
2246
- init_compose_collection();
2247
- init_compose_scalar();
2248
- }));
2249
- //#endregion
2250
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js
2251
- var init_compose_doc = __esmMin((() => {
2252
- init_Document();
2253
- init_compose_node();
2254
- }));
2255
- //#endregion
2256
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js
2257
- var init_composer = __esmMin((() => {
2258
- init_directives();
2259
- init_Document();
2260
- init_compose_doc();
2261
- }));
2262
- //#endregion
2263
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js
2264
- var init_cst_scalar = __esmMin((() => {
2265
- init_resolve_block_scalar();
2266
- init_resolve_flow_scalar();
2267
- init_stringifyString();
2268
- }));
2269
- //#endregion
2270
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
2271
- /**
2272
- * Apply a visitor to a CST document or item.
2273
- *
2274
- * Walks through the tree (depth-first) starting from the root, calling a
2275
- * `visitor` function with two arguments when entering each item:
2276
- * - `item`: The current item, which included the following members:
2277
- * - `start: SourceToken[]` – Source tokens before the key or value,
2278
- * possibly including its anchor or tag.
2279
- * - `key?: Token | null` – Set for pair values. May then be `null`, if
2280
- * the key before the `:` separator is empty.
2281
- * - `sep?: SourceToken[]` – Source tokens between the key and the value,
2282
- * which should include the `:` map value indicator if `value` is set.
2283
- * - `value?: Token` – The value of a sequence item, or of a map pair.
2284
- * - `path`: The steps from the root to the current node, as an array of
2285
- * `['key' | 'value', number]` tuples.
2286
- *
2287
- * The return value of the visitor may be used to control the traversal:
2288
- * - `undefined` (default): Do nothing and continue
2289
- * - `visit.SKIP`: Do not visit the children of this token, continue with
2290
- * next sibling
2291
- * - `visit.BREAK`: Terminate traversal completely
2292
- * - `visit.REMOVE`: Remove the current item, then continue with the next one
2293
- * - `number`: Set the index of the next step. This is useful especially if
2294
- * the index of the current token has changed.
2295
- * - `function`: Define the next visitor for this item. After the original
2296
- * visitor is called on item entry, next visitors are called after handling
2297
- * a non-empty `key` and when exiting the item.
2298
- */
2299
- function visit(cst, visitor) {
2300
- if ("type" in cst && cst.type === "document") cst = {
2301
- start: cst.start,
2302
- value: cst.value
2303
- };
2304
- _visit(Object.freeze([]), cst, visitor);
2305
- }
2306
- function _visit(path, item, visitor) {
2307
- let ctrl = visitor(item, path);
2308
- if (typeof ctrl === "symbol") return ctrl;
2309
- for (const field of ["key", "value"]) {
2310
- const token = item[field];
2311
- if (token && "items" in token) {
2312
- for (let i = 0; i < token.items.length; ++i) {
2313
- const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
2314
- if (typeof ci === "number") i = ci - 1;
2315
- else if (ci === BREAK) return BREAK;
2316
- else if (ci === REMOVE) {
2317
- token.items.splice(i, 1);
2318
- i -= 1;
2319
- }
2320
- }
2321
- if (typeof ctrl === "function" && field === "key") ctrl = ctrl(item, path);
2322
- }
2323
- }
2324
- return typeof ctrl === "function" ? ctrl(item, path) : ctrl;
2325
- }
2326
- var BREAK, SKIP, REMOVE;
2327
- var init_cst_visit = __esmMin((() => {
2328
- BREAK = Symbol("break visit");
2329
- SKIP = Symbol("skip children");
2330
- REMOVE = Symbol("remove item");
2331
- /** Terminate visit traversal completely */
2332
- visit.BREAK = BREAK;
2333
- /** Do not visit the children of the current item */
2334
- visit.SKIP = SKIP;
2335
- /** Remove the current item */
2336
- visit.REMOVE = REMOVE;
2337
- /** Find the item at `path` from `cst` as the root */
2338
- visit.itemAtPath = (cst, path) => {
2339
- let item = cst;
2340
- for (const [field, index] of path) {
2341
- const tok = item === null || item === void 0 ? void 0 : item[field];
2342
- if (tok && "items" in tok) item = tok.items[index];
2343
- else return void 0;
2344
- }
2345
- return item;
2346
- };
2347
- /**
2348
- * Get the immediate parent collection of the item at `path` from `cst` as the root.
2349
- *
2350
- * Throws an error if the collection is not found, which should never happen if the item itself exists.
2351
- */
2352
- visit.parentCollection = (cst, path) => {
2353
- const parent = visit.itemAtPath(cst, path.slice(0, -1));
2354
- const field = path[path.length - 1][0];
2355
- const coll = parent === null || parent === void 0 ? void 0 : parent[field];
2356
- if (coll && "items" in coll) return coll;
2357
- throw new Error("Parent collection not found");
2358
- };
2359
- }));
2360
- //#endregion
2361
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js
2362
- var init_cst = __esmMin((() => {
2363
- init_cst_scalar();
2364
- init_cst_visit();
2365
- }));
2366
- //#endregion
2367
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
2368
- var init_lexer = __esmMin((() => {
2369
- init_cst();
2370
- }));
2371
- //#endregion
2372
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
2373
- var init_parser = __esmMin((() => {
2374
- init_cst();
2375
- init_lexer();
2376
- }));
2377
- //#endregion
2378
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
2379
- var init_public_api = __esmMin((() => {
2380
- init_composer();
2381
- init_Document();
2382
- init_parser();
2383
- }));
2384
- //#endregion
2385
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/index.js
2386
- var init_dist = __esmMin((() => {
2387
- init_composer();
2388
- init_Document();
2389
- init_Schema();
2390
- init_Alias();
2391
- init_identity();
2392
- init_Pair();
2393
- init_Scalar();
2394
- init_YAMLMap();
2395
- init_YAMLSeq();
2396
- init_cst();
2397
- init_lexer();
2398
- init_parser();
2399
- init_public_api();
2400
- init_visit();
2401
- }));
2402
- //#endregion
2403
- //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js
2404
- var init_browser = __esmMin((() => {
2405
- init_dist();
2406
- init_dist();
2407
- }));
2408
- //#endregion
2409
- export { init_browser as t };