bantou 0.1.1 → 0.2.1

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 (515) hide show
  1. package/.output/nitro.json +13 -0
  2. package/.output/public/_nuxt/BmGsA4i2.js +1 -0
  3. package/.output/public/_nuxt/D_G6gzEa.js +1 -0
  4. package/.output/public/_nuxt/builds/latest.json +1 -0
  5. package/.output/public/_nuxt/builds/meta/9a6f6e29-92f1-40d0-84d5-974a9154d48f.json +1 -0
  6. package/.output/public/_nuxt/entry.CZSvzYhH.css +1 -0
  7. package/.output/public/_nuxt/error-404.C3wqHTJz.css +1 -0
  8. package/.output/public/_nuxt/error-500.D6rBzoDj.css +1 -0
  9. package/.output/public/_nuxt/pdFQkwM_.js +4 -0
  10. package/.output/server/chunks/_/error-500.mjs +20 -0
  11. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  12. package/.output/server/chunks/nitro/nitro.mjs +5858 -0
  13. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  14. package/.output/server/chunks/routes/mcp.mjs +22 -0
  15. package/.output/server/chunks/routes/mcp.mjs.map +1 -0
  16. package/.output/server/chunks/routes/renderer.mjs +462 -0
  17. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  18. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  19. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  20. package/.output/server/chunks/virtual/precomputed.mjs +4 -0
  21. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
  22. package/.output/server/index.mjs +18 -0
  23. package/.output/server/index.mjs.map +1 -0
  24. package/.output/server/node_modules/@babel/parser/lib/index.js +14657 -0
  25. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  26. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
  27. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
  28. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
  29. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
  30. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
  31. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
  32. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
  33. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +971 -0
  34. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
  35. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  36. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +961 -0
  37. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
  38. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
  39. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  40. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1137 -0
  41. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
  42. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
  43. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
  44. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
  45. package/.output/server/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
  46. package/.output/server/node_modules/@parcel/watcher-wasm/index.mjs +349 -0
  47. package/.output/server/node_modules/@parcel/watcher-wasm/package.json +44 -0
  48. package/.output/server/node_modules/@parcel/watcher-wasm/watcher.wasm +0 -0
  49. package/.output/server/node_modules/@parcel/watcher-wasm/wrapper.js +88 -0
  50. package/.output/server/node_modules/@unagents/messenger-broker/dist/index.mjs +12 -0
  51. package/.output/server/node_modules/@unagents/messenger-broker/dist/shared/messenger-broker.B8W77sqB.mjs +1177 -0
  52. package/.output/server/node_modules/@unagents/messenger-broker/package.json +37 -0
  53. package/.output/server/node_modules/@unagents/messenger-client/dist/index.mjs +9 -0
  54. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CfQVmH_Z.mjs +975 -0
  55. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CoDKzubj.mjs +1000 -0
  56. package/.output/server/node_modules/@unagents/messenger-client/package.json +37 -0
  57. package/.output/server/node_modules/@unagents/messenger-protocol/dist/index.mjs +103 -0
  58. package/.output/server/node_modules/@unagents/messenger-protocol/package.json +29 -0
  59. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6802 -0
  60. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  61. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  62. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  63. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
  64. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  65. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1933 -0
  66. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  67. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7085 -0
  68. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  69. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1917 -0
  70. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  71. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  72. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  73. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +655 -0
  74. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  75. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  76. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  77. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  78. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  79. package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
  80. package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
  81. package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
  82. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
  83. package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
  84. package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
  85. package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
  86. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  87. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  88. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  89. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  90. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
  91. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  92. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  93. package/.output/server/node_modules/ajv/dist/core.js +618 -0
  94. package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
  95. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  96. package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
  97. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  98. package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
  99. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  100. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  101. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  102. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  103. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  104. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  105. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  106. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  107. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  108. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  109. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  110. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  111. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  112. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  113. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  114. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  115. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  116. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  117. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
  118. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  119. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  120. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  121. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  122. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  123. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  124. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  125. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  126. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  127. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  128. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  129. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  130. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  131. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  132. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  133. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  134. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  135. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  136. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  137. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  138. package/.output/server/node_modules/ajv/package.json +126 -0
  139. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  140. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  141. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  142. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  143. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  144. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  145. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  146. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  147. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  148. package/.output/server/node_modules/consola/dist/utils.mjs +54 -0
  149. package/.output/server/node_modules/consola/package.json +136 -0
  150. package/.output/server/node_modules/content-type/index.js +225 -0
  151. package/.output/server/node_modules/content-type/package.json +42 -0
  152. package/.output/server/node_modules/cookie-es/dist/index.mjs +268 -0
  153. package/.output/server/node_modules/cookie-es/package.json +46 -0
  154. package/.output/server/node_modules/crossws/dist/_chunks/_request.mjs +83 -0
  155. package/.output/server/node_modules/crossws/dist/_chunks/adapter.mjs +234 -0
  156. package/.output/server/node_modules/crossws/dist/_chunks/error.mjs +7 -0
  157. package/.output/server/node_modules/crossws/dist/_chunks/libs/ws.mjs +6 -0
  158. package/.output/server/node_modules/crossws/dist/_chunks/node.mjs +220 -0
  159. package/.output/server/node_modules/crossws/dist/_chunks/peer.mjs +208 -0
  160. package/.output/server/node_modules/crossws/dist/adapters/node.mjs +1 -0
  161. package/.output/server/node_modules/crossws/package.json +115 -0
  162. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  163. package/.output/server/node_modules/defu/package.json +48 -0
  164. package/.output/server/node_modules/destr/dist/index.mjs +72 -0
  165. package/.output/server/node_modules/destr/package.json +47 -0
  166. package/.output/server/node_modules/devalue/index.js +17 -0
  167. package/.output/server/node_modules/devalue/package.json +39 -0
  168. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  169. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  170. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  171. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  172. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  173. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  174. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  175. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  176. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  177. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  178. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  179. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  180. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  181. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  182. package/.output/server/node_modules/entities/package.json +120 -0
  183. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  184. package/.output/server/node_modules/estree-walker/package.json +37 -0
  185. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  186. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  187. package/.output/server/node_modules/fast-uri/index.js +711 -0
  188. package/.output/server/node_modules/fast-uri/lib/schemes.js +272 -0
  189. package/.output/server/node_modules/fast-uri/lib/utils.js +799 -0
  190. package/.output/server/node_modules/fast-uri/package.json +68 -0
  191. package/.output/server/node_modules/get-port-please/dist/index.mjs +430 -0
  192. package/.output/server/node_modules/get-port-please/package.json +39 -0
  193. package/.output/server/node_modules/h3/dist/index.mjs +2498 -0
  194. package/.output/server/node_modules/h3/package.json +75 -0
  195. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  196. package/.output/server/node_modules/hookable/package.json +54 -0
  197. package/.output/server/node_modules/http-shutdown/index.js +85 -0
  198. package/.output/server/node_modules/http-shutdown/package.json +32 -0
  199. package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
  200. package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
  201. package/.output/server/node_modules/is-extglob/index.js +20 -0
  202. package/.output/server/node_modules/is-extglob/package.json +69 -0
  203. package/.output/server/node_modules/is-glob/index.js +150 -0
  204. package/.output/server/node_modules/is-glob/package.json +81 -0
  205. package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -0
  206. package/.output/server/node_modules/jiti/lib/jiti.mjs +29 -0
  207. package/.output/server/node_modules/jiti/package.json +146 -0
  208. package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
  209. package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
  210. package/.output/server/node_modules/listhen/dist/chunks/xdg-open.mjs +1069 -0
  211. package/.output/server/node_modules/listhen/dist/index.mjs +19 -0
  212. package/.output/server/node_modules/listhen/dist/shared/listhen.tqe5I1Rl.mjs +1040 -0
  213. package/.output/server/node_modules/listhen/package.json +84 -0
  214. package/.output/server/node_modules/napi-wasm/index.mjs +1371 -0
  215. package/.output/server/node_modules/napi-wasm/package.json +33 -0
  216. package/.output/server/node_modules/node-forge/lib/aes.js +1091 -0
  217. package/.output/server/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  218. package/.output/server/node_modules/node-forge/lib/asn1-validator.js +91 -0
  219. package/.output/server/node_modules/node-forge/lib/asn1.js +1522 -0
  220. package/.output/server/node_modules/node-forge/lib/baseN.js +186 -0
  221. package/.output/server/node_modules/node-forge/lib/cipher.js +230 -0
  222. package/.output/server/node_modules/node-forge/lib/cipherModes.js +1027 -0
  223. package/.output/server/node_modules/node-forge/lib/des.js +496 -0
  224. package/.output/server/node_modules/node-forge/lib/ed25519.js +1091 -0
  225. package/.output/server/node_modules/node-forge/lib/forge.js +13 -0
  226. package/.output/server/node_modules/node-forge/lib/hmac.js +146 -0
  227. package/.output/server/node_modules/node-forge/lib/index.js +33 -0
  228. package/.output/server/node_modules/node-forge/lib/jsbn.js +1294 -0
  229. package/.output/server/node_modules/node-forge/lib/kem.js +168 -0
  230. package/.output/server/node_modules/node-forge/lib/log.js +319 -0
  231. package/.output/server/node_modules/node-forge/lib/md.all.js +13 -0
  232. package/.output/server/node_modules/node-forge/lib/md.js +11 -0
  233. package/.output/server/node_modules/node-forge/lib/md5.js +289 -0
  234. package/.output/server/node_modules/node-forge/lib/mgf.js +12 -0
  235. package/.output/server/node_modules/node-forge/lib/mgf1.js +57 -0
  236. package/.output/server/node_modules/node-forge/lib/oids.js +180 -0
  237. package/.output/server/node_modules/node-forge/lib/pbe.js +1029 -0
  238. package/.output/server/node_modules/node-forge/lib/pbkdf2.js +211 -0
  239. package/.output/server/node_modules/node-forge/lib/pem.js +413 -0
  240. package/.output/server/node_modules/node-forge/lib/pkcs1.js +276 -0
  241. package/.output/server/node_modules/node-forge/lib/pkcs12.js +1081 -0
  242. package/.output/server/node_modules/node-forge/lib/pkcs7.js +1260 -0
  243. package/.output/server/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  244. package/.output/server/node_modules/node-forge/lib/pki.js +102 -0
  245. package/.output/server/node_modules/node-forge/lib/prime.js +297 -0
  246. package/.output/server/node_modules/node-forge/lib/prng.js +419 -0
  247. package/.output/server/node_modules/node-forge/lib/pss.js +241 -0
  248. package/.output/server/node_modules/node-forge/lib/random.js +191 -0
  249. package/.output/server/node_modules/node-forge/lib/rc2.js +410 -0
  250. package/.output/server/node_modules/node-forge/lib/rsa.js +2014 -0
  251. package/.output/server/node_modules/node-forge/lib/sha1.js +319 -0
  252. package/.output/server/node_modules/node-forge/lib/sha256.js +327 -0
  253. package/.output/server/node_modules/node-forge/lib/sha512.js +561 -0
  254. package/.output/server/node_modules/node-forge/lib/ssh.js +236 -0
  255. package/.output/server/node_modules/node-forge/lib/tls.js +4334 -0
  256. package/.output/server/node_modules/node-forge/lib/util.js +2652 -0
  257. package/.output/server/node_modules/node-forge/lib/x509.js +3257 -0
  258. package/.output/server/node_modules/node-forge/package.json +123 -0
  259. package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
  260. package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
  261. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
  262. package/.output/server/node_modules/node-mock-http/package.json +63 -0
  263. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
  264. package/.output/server/node_modules/nostics/dist/index.mjs +194 -0
  265. package/.output/server/node_modules/nostics/package.json +126 -0
  266. package/.output/server/node_modules/pathe/dist/index.mjs +19 -0
  267. package/.output/server/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +249 -0
  268. package/.output/server/node_modules/pathe/package.json +61 -0
  269. package/.output/server/node_modules/picomatch/index.js +17 -0
  270. package/.output/server/node_modules/picomatch/lib/constants.js +184 -0
  271. package/.output/server/node_modules/picomatch/lib/parse.js +1425 -0
  272. package/.output/server/node_modules/picomatch/lib/picomatch.js +361 -0
  273. package/.output/server/node_modules/picomatch/lib/scan.js +403 -0
  274. package/.output/server/node_modules/picomatch/lib/utils.js +72 -0
  275. package/.output/server/node_modules/picomatch/package.json +83 -0
  276. package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
  277. package/.output/server/node_modules/radix3/package.json +52 -0
  278. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  279. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  280. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  281. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  282. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  283. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +141 -0
  284. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
  285. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +446 -0
  286. package/.output/server/node_modules/source-map-js/lib/source-node.js +420 -0
  287. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  288. package/.output/server/node_modules/source-map-js/package.json +71 -0
  289. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  290. package/.output/server/node_modules/std-env/dist/index.mjs +1 -0
  291. package/.output/server/node_modules/std-env/package.json +43 -0
  292. package/.output/server/node_modules/tinyclip/dist/index.js +143 -0
  293. package/.output/server/node_modules/tinyclip/package.json +48 -0
  294. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  295. package/.output/server/node_modules/ufo/package.json +48 -0
  296. package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
  297. package/.output/server/node_modules/uncrypto/package.json +60 -0
  298. package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
  299. package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
  300. package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
  301. package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
  302. package/.output/server/node_modules/unhead/dist/plugins.mjs +782 -0
  303. package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
  304. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
  305. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
  306. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
  307. package/.output/server/node_modules/unhead/dist/shared/unhead.C5Bksi2B.mjs +49 -0
  308. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
  309. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
  310. package/.output/server/node_modules/unhead/dist/shared/unhead.C_7zwq8E.mjs +11 -0
  311. package/.output/server/node_modules/unhead/dist/shared/unhead.CaeaMM5q.mjs +19 -0
  312. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
  313. package/.output/server/node_modules/unhead/dist/shared/unhead.D9VfQWNo.mjs +240 -0
  314. package/.output/server/node_modules/unhead/dist/shared/unhead.DD4N5B4k.mjs +224 -0
  315. package/.output/server/node_modules/unhead/dist/shared/unhead.DGl9jcjg.mjs +196 -0
  316. package/.output/server/node_modules/unhead/dist/shared/unhead.DJuZwX9c.mjs +400 -0
  317. package/.output/server/node_modules/unhead/dist/shared/unhead.DkxnqlHC.mjs +264 -0
  318. package/.output/server/node_modules/unhead/dist/shared/unhead.DspMpm6y.mjs +48 -0
  319. package/.output/server/node_modules/unhead/dist/shared/unhead.o8j9utSy.mjs +208 -0
  320. package/.output/server/node_modules/unhead/dist/stream/client.mjs +33 -0
  321. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
  322. package/.output/server/node_modules/unhead/dist/stream/server.mjs +446 -0
  323. package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
  324. package/.output/server/node_modules/unhead/package.json +179 -0
  325. package/.output/server/node_modules/untun/dist/_chunks/cloudflared.mjs +179 -0
  326. package/.output/server/node_modules/untun/dist/_chunks/log.mjs +27 -0
  327. package/.output/server/node_modules/untun/dist/index.mjs +47 -0
  328. package/.output/server/node_modules/untun/package.json +44 -0
  329. package/.output/server/node_modules/uqr/dist/index.mjs +739 -0
  330. package/.output/server/node_modules/uqr/package.json +69 -0
  331. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  332. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  333. package/.output/server/node_modules/vue/index.js +7 -0
  334. package/.output/server/node_modules/vue/index.mjs +1 -0
  335. package/.output/server/node_modules/vue/package.json +112 -0
  336. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  337. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +687 -0
  338. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  339. package/.output/server/node_modules/zod/index.js +7 -0
  340. package/.output/server/node_modules/zod/package.json +147 -0
  341. package/.output/server/node_modules/zod/v3/ZodError.js +143 -0
  342. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  343. package/.output/server/node_modules/zod/v3/external.js +6 -0
  344. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  345. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  346. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  347. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  348. package/.output/server/node_modules/zod/v3/index.js +4 -0
  349. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  350. package/.output/server/node_modules/zod/v3/package.json +7 -0
  351. package/.output/server/node_modules/zod/v3/types.js +3697 -0
  352. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  353. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  354. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  355. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  356. package/.output/server/node_modules/zod/v4/classic/errors.js +57 -0
  357. package/.output/server/node_modules/zod/v4/classic/external.js +17 -0
  358. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  359. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  360. package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
  361. package/.output/server/node_modules/zod/v4/classic/iso.js +15 -0
  362. package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
  363. package/.output/server/node_modules/zod/v4/classic/parse.js +16 -0
  364. package/.output/server/node_modules/zod/v4/classic/schemas.js +1535 -0
  365. package/.output/server/node_modules/zod/v4/core/api.js +1107 -0
  366. package/.output/server/node_modules/zod/v4/core/checks.js +516 -0
  367. package/.output/server/node_modules/zod/v4/core/compile.js +1866 -0
  368. package/.output/server/node_modules/zod/v4/core/core.js +141 -0
  369. package/.output/server/node_modules/zod/v4/core/doc.js +38 -0
  370. package/.output/server/node_modules/zod/v4/core/errors.js +267 -0
  371. package/.output/server/node_modules/zod/v4/core/index.js +19 -0
  372. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  373. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  374. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  375. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  376. package/.output/server/node_modules/zod/v4/core/package.json +7 -0
  377. package/.output/server/node_modules/zod/v4/core/parse.js +175 -0
  378. package/.output/server/node_modules/zod/v4/core/regexes.js +156 -0
  379. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  380. package/.output/server/node_modules/zod/v4/core/schemas.js +2636 -0
  381. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +651 -0
  382. package/.output/server/node_modules/zod/v4/core/util.js +873 -0
  383. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  384. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  385. package/.output/server/node_modules/zod/v4/index.js +4 -0
  386. package/.output/server/node_modules/zod/v4/locales/ar.js +111 -0
  387. package/.output/server/node_modules/zod/v4/locales/az.js +110 -0
  388. package/.output/server/node_modules/zod/v4/locales/be.js +168 -0
  389. package/.output/server/node_modules/zod/v4/locales/bg.js +125 -0
  390. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  391. package/.output/server/node_modules/zod/v4/locales/ca.js +112 -0
  392. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  393. package/.output/server/node_modules/zod/v4/locales/cs.js +116 -0
  394. package/.output/server/node_modules/zod/v4/locales/da.js +120 -0
  395. package/.output/server/node_modules/zod/v4/locales/de.js +113 -0
  396. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  397. package/.output/server/node_modules/zod/v4/locales/en.js +125 -0
  398. package/.output/server/node_modules/zod/v4/locales/eo.js +114 -0
  399. package/.output/server/node_modules/zod/v4/locales/es.js +136 -0
  400. package/.output/server/node_modules/zod/v4/locales/fa.js +119 -0
  401. package/.output/server/node_modules/zod/v4/locales/fi.js +117 -0
  402. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +112 -0
  403. package/.output/server/node_modules/zod/v4/locales/fr.js +129 -0
  404. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  405. package/.output/server/node_modules/zod/v4/locales/he.js +221 -0
  406. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  407. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  408. package/.output/server/node_modules/zod/v4/locales/hu.js +113 -0
  409. package/.output/server/node_modules/zod/v4/locales/hy.js +158 -0
  410. package/.output/server/node_modules/zod/v4/locales/id.js +111 -0
  411. package/.output/server/node_modules/zod/v4/locales/index.js +63 -0
  412. package/.output/server/node_modules/zod/v4/locales/is.js +114 -0
  413. package/.output/server/node_modules/zod/v4/locales/it.js +113 -0
  414. package/.output/server/node_modules/zod/v4/locales/ja.js +112 -0
  415. package/.output/server/node_modules/zod/v4/locales/ka.js +117 -0
  416. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  417. package/.output/server/node_modules/zod/v4/locales/km.js +115 -0
  418. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  419. package/.output/server/node_modules/zod/v4/locales/ko.js +116 -0
  420. package/.output/server/node_modules/zod/v4/locales/lt.js +207 -0
  421. package/.output/server/node_modules/zod/v4/locales/mk.js +114 -0
  422. package/.output/server/node_modules/zod/v4/locales/ms.js +112 -0
  423. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  424. package/.output/server/node_modules/zod/v4/locales/nl.js +115 -0
  425. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  426. package/.output/server/node_modules/zod/v4/locales/no.js +113 -0
  427. package/.output/server/node_modules/zod/v4/locales/ota.js +114 -0
  428. package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
  429. package/.output/server/node_modules/zod/v4/locales/pl.js +114 -0
  430. package/.output/server/node_modules/zod/v4/locales/ps.js +119 -0
  431. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  432. package/.output/server/node_modules/zod/v4/locales/pt.js +142 -0
  433. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  434. package/.output/server/node_modules/zod/v4/locales/ru.js +168 -0
  435. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  436. package/.output/server/node_modules/zod/v4/locales/sl.js +114 -0
  437. package/.output/server/node_modules/zod/v4/locales/sv.js +115 -0
  438. package/.output/server/node_modules/zod/v4/locales/ta.js +115 -0
  439. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  440. package/.output/server/node_modules/zod/v4/locales/th.js +115 -0
  441. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  442. package/.output/server/node_modules/zod/v4/locales/tr.js +110 -0
  443. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  444. package/.output/server/node_modules/zod/v4/locales/uk.js +113 -0
  445. package/.output/server/node_modules/zod/v4/locales/ur.js +115 -0
  446. package/.output/server/node_modules/zod/v4/locales/uz.js +113 -0
  447. package/.output/server/node_modules/zod/v4/locales/vi.js +113 -0
  448. package/.output/server/node_modules/zod/v4/locales/yo.js +112 -0
  449. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +114 -0
  450. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +112 -0
  451. package/.output/server/node_modules/zod/v4/mini/checks.js +1 -0
  452. package/.output/server/node_modules/zod/v4/mini/coerce.js +22 -0
  453. package/.output/server/node_modules/zod/v4/mini/deep-partial.js +13 -0
  454. package/.output/server/node_modules/zod/v4/mini/external.js +16 -0
  455. package/.output/server/node_modules/zod/v4/mini/in-out.js +36 -0
  456. package/.output/server/node_modules/zod/v4/mini/iso.js +34 -0
  457. package/.output/server/node_modules/zod/v4/mini/package.json +7 -0
  458. package/.output/server/node_modules/zod/v4/mini/parse.js +1 -0
  459. package/.output/server/node_modules/zod/v4/mini/schemas.js +1002 -0
  460. package/.output/server/node_modules/zod/v4/package.json +7 -0
  461. package/.output/server/node_modules/zod/v4-mini/index.js +3 -0
  462. package/.output/server/node_modules/zod/v4-mini/package.json +7 -0
  463. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  464. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  465. package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  466. package/.output/server/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  467. package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  468. package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  469. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  470. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  471. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  472. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  473. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  474. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  475. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  476. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  477. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  478. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  479. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  480. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  481. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  482. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  483. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  484. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  485. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  486. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  487. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  488. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  489. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  490. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  491. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  492. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  493. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  494. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  495. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  496. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  497. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  498. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  499. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  500. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  501. package/.output/server/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  502. package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  503. package/.output/server/node_modules/zod-to-json-schema/package.json +85 -0
  504. package/.output/server/package.json +64 -0
  505. package/README.md +226 -23
  506. package/bin/bantou.mjs +33 -0
  507. package/package.json +18 -8
  508. package/protocol/PROTOCOL.md +26 -0
  509. package/protocol/protocol.json +92 -0
  510. package/dist/cap.js +0 -7
  511. package/dist/cli.js +0 -27
  512. package/dist/config.js +0 -23
  513. package/dist/daemon.js +0 -23
  514. package/dist/session.js +0 -7
  515. package/dist/workspace.js +0 -8
@@ -0,0 +1,1917 @@
1
+ /**
2
+ * @vue/runtime-dom v3.5.44
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ var runtimeCore = require('@vue/runtime-core');
11
+ var shared = require('@vue/shared');
12
+
13
+ let policy = void 0;
14
+ const tt = typeof window !== "undefined" && window.trustedTypes;
15
+ if (tt) {
16
+ try {
17
+ policy = /* @__PURE__ */ tt.createPolicy("vue", {
18
+ createHTML: (val) => val
19
+ });
20
+ } catch (e) {
21
+ }
22
+ }
23
+ const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val;
24
+ const svgNS = "http://www.w3.org/2000/svg";
25
+ const mathmlNS = "http://www.w3.org/1998/Math/MathML";
26
+ const doc = typeof document !== "undefined" ? document : null;
27
+ const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
28
+ const nodeOps = {
29
+ insert: (child, parent, anchor) => {
30
+ parent.insertBefore(child, anchor || null);
31
+ },
32
+ remove: (child) => {
33
+ const parent = child.parentNode;
34
+ if (parent) {
35
+ parent.removeChild(child);
36
+ }
37
+ },
38
+ createElement: (tag, namespace, is, props) => {
39
+ const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
40
+ if (tag === "select" && props && props.multiple != null) {
41
+ el.setAttribute("multiple", props.multiple);
42
+ }
43
+ return el;
44
+ },
45
+ createText: (text) => doc.createTextNode(text),
46
+ createComment: (text) => doc.createComment(text),
47
+ setText: (node, text) => {
48
+ node.nodeValue = text;
49
+ },
50
+ setElementText: (el, text) => {
51
+ el.textContent = text;
52
+ },
53
+ parentNode: (node) => node.parentNode,
54
+ nextSibling: (node) => node.nextSibling,
55
+ querySelector: (selector) => doc.querySelector(selector),
56
+ setScopeId(el, id) {
57
+ el.setAttribute(id, "");
58
+ },
59
+ // __UNSAFE__
60
+ // Reason: innerHTML.
61
+ // Static content here can only come from compiled templates.
62
+ // As long as the user only uses trusted templates, this is safe.
63
+ insertStaticContent(content, parent, anchor, namespace, start, end) {
64
+ const before = anchor ? anchor.previousSibling : parent.lastChild;
65
+ if (start && (start === end || start.nextSibling)) {
66
+ while (true) {
67
+ parent.insertBefore(start.cloneNode(true), anchor);
68
+ if (start === end || !(start = start.nextSibling)) break;
69
+ }
70
+ } else {
71
+ templateContainer.innerHTML = unsafeToTrustedHTML(
72
+ namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content
73
+ );
74
+ const template = templateContainer.content;
75
+ if (namespace === "svg" || namespace === "mathml") {
76
+ const wrapper = template.firstChild;
77
+ while (wrapper.firstChild) {
78
+ template.appendChild(wrapper.firstChild);
79
+ }
80
+ template.removeChild(wrapper);
81
+ }
82
+ parent.insertBefore(template, anchor);
83
+ }
84
+ return [
85
+ // first
86
+ before ? before.nextSibling : parent.firstChild,
87
+ // last
88
+ anchor ? anchor.previousSibling : parent.lastChild
89
+ ];
90
+ }
91
+ };
92
+
93
+ const TRANSITION = "transition";
94
+ const ANIMATION = "animation";
95
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
96
+ const DOMTransitionPropsValidators = {
97
+ name: String,
98
+ type: String,
99
+ css: {
100
+ type: Boolean,
101
+ default: true
102
+ },
103
+ duration: [String, Number, Object],
104
+ enterFromClass: String,
105
+ enterActiveClass: String,
106
+ enterToClass: String,
107
+ appearFromClass: String,
108
+ appearActiveClass: String,
109
+ appearToClass: String,
110
+ leaveFromClass: String,
111
+ leaveActiveClass: String,
112
+ leaveToClass: String
113
+ };
114
+ const TransitionPropsValidators = /* @__PURE__ */ shared.extend(
115
+ {},
116
+ runtimeCore.BaseTransitionPropsValidators,
117
+ DOMTransitionPropsValidators
118
+ );
119
+ const decorate$1 = (t) => {
120
+ t.displayName = "Transition";
121
+ t.props = TransitionPropsValidators;
122
+ return t;
123
+ };
124
+ const Transition = /* @__PURE__ */ decorate$1(
125
+ (props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots)
126
+ );
127
+ const callHook = (hook, args = []) => {
128
+ if (shared.isArray(hook)) {
129
+ hook.forEach((h2) => h2(...args));
130
+ } else if (hook) {
131
+ hook(...args);
132
+ }
133
+ };
134
+ const hasExplicitCallback = (hook) => {
135
+ return hook ? shared.isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
136
+ };
137
+ function resolveTransitionProps(rawProps) {
138
+ const baseProps = {};
139
+ for (const key in rawProps) {
140
+ if (!(key in DOMTransitionPropsValidators)) {
141
+ baseProps[key] = rawProps[key];
142
+ }
143
+ }
144
+ if (rawProps.css === false) {
145
+ return baseProps;
146
+ }
147
+ const {
148
+ name = "v",
149
+ type,
150
+ duration,
151
+ enterFromClass = `${name}-enter-from`,
152
+ enterActiveClass = `${name}-enter-active`,
153
+ enterToClass = `${name}-enter-to`,
154
+ appearFromClass = enterFromClass,
155
+ appearActiveClass = enterActiveClass,
156
+ appearToClass = enterToClass,
157
+ leaveFromClass = `${name}-leave-from`,
158
+ leaveActiveClass = `${name}-leave-active`,
159
+ leaveToClass = `${name}-leave-to`
160
+ } = rawProps;
161
+ const durations = normalizeDuration(duration);
162
+ const enterDuration = durations && durations[0];
163
+ const leaveDuration = durations && durations[1];
164
+ const {
165
+ onBeforeEnter,
166
+ onEnter,
167
+ onEnterCancelled,
168
+ onLeave,
169
+ onLeaveCancelled,
170
+ onBeforeAppear = onBeforeEnter,
171
+ onAppear = onEnter,
172
+ onAppearCancelled = onEnterCancelled
173
+ } = baseProps;
174
+ const finishEnter = (el, isAppear, done, isCancelled) => {
175
+ el._enterCancelled = isCancelled;
176
+ removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
177
+ removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
178
+ done && done();
179
+ };
180
+ const finishLeave = (el, done) => {
181
+ el._isLeaving = false;
182
+ removeTransitionClass(el, leaveFromClass);
183
+ removeTransitionClass(el, leaveToClass);
184
+ removeTransitionClass(el, leaveActiveClass);
185
+ done && done();
186
+ };
187
+ const makeEnterHook = (isAppear) => {
188
+ return (el, done) => {
189
+ const hook = isAppear ? onAppear : onEnter;
190
+ const resolve = () => finishEnter(el, isAppear, done);
191
+ callHook(hook, [el, resolve]);
192
+ nextFrame(() => {
193
+ removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
194
+ addTransitionClass(el, isAppear ? appearToClass : enterToClass);
195
+ if (!hasExplicitCallback(hook)) {
196
+ whenTransitionEnds(el, type, enterDuration, resolve);
197
+ }
198
+ });
199
+ };
200
+ };
201
+ return shared.extend(baseProps, {
202
+ onBeforeEnter(el) {
203
+ callHook(onBeforeEnter, [el]);
204
+ addTransitionClass(el, enterFromClass);
205
+ addTransitionClass(el, enterActiveClass);
206
+ },
207
+ onBeforeAppear(el) {
208
+ callHook(onBeforeAppear, [el]);
209
+ addTransitionClass(el, appearFromClass);
210
+ addTransitionClass(el, appearActiveClass);
211
+ },
212
+ onEnter: makeEnterHook(false),
213
+ onAppear: makeEnterHook(true),
214
+ onLeave(el, done) {
215
+ el._isLeaving = true;
216
+ const resolve = () => finishLeave(el, done);
217
+ addTransitionClass(el, leaveFromClass);
218
+ if (!el._enterCancelled) {
219
+ forceReflow(el);
220
+ addTransitionClass(el, leaveActiveClass);
221
+ } else {
222
+ addTransitionClass(el, leaveActiveClass);
223
+ forceReflow(el);
224
+ }
225
+ nextFrame(() => {
226
+ if (!el._isLeaving) {
227
+ return;
228
+ }
229
+ removeTransitionClass(el, leaveFromClass);
230
+ addTransitionClass(el, leaveToClass);
231
+ if (!hasExplicitCallback(onLeave)) {
232
+ whenTransitionEnds(el, type, leaveDuration, resolve);
233
+ }
234
+ });
235
+ callHook(onLeave, [el, resolve]);
236
+ },
237
+ onEnterCancelled(el) {
238
+ finishEnter(el, false, void 0, true);
239
+ callHook(onEnterCancelled, [el]);
240
+ },
241
+ onAppearCancelled(el) {
242
+ finishEnter(el, true, void 0, true);
243
+ callHook(onAppearCancelled, [el]);
244
+ },
245
+ onLeaveCancelled(el) {
246
+ finishLeave(el);
247
+ callHook(onLeaveCancelled, [el]);
248
+ }
249
+ });
250
+ }
251
+ function normalizeDuration(duration) {
252
+ if (duration == null) {
253
+ return null;
254
+ } else if (shared.isObject(duration)) {
255
+ return [NumberOf(duration.enter), NumberOf(duration.leave)];
256
+ } else {
257
+ const n = NumberOf(duration);
258
+ return [n, n];
259
+ }
260
+ }
261
+ function NumberOf(val) {
262
+ const res = shared.toNumber(val);
263
+ return res;
264
+ }
265
+ function addTransitionClass(el, cls) {
266
+ cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
267
+ (el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
268
+ }
269
+ function removeTransitionClass(el, cls) {
270
+ cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
271
+ const _vtc = el[vtcKey];
272
+ if (_vtc) {
273
+ _vtc.delete(cls);
274
+ if (!_vtc.size) {
275
+ el[vtcKey] = void 0;
276
+ }
277
+ }
278
+ }
279
+ function nextFrame(cb) {
280
+ requestAnimationFrame(() => {
281
+ requestAnimationFrame(cb);
282
+ });
283
+ }
284
+ let endId = 0;
285
+ function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
286
+ const id = el._endId = ++endId;
287
+ const resolveIfNotStale = () => {
288
+ if (id === el._endId) {
289
+ resolve();
290
+ }
291
+ };
292
+ if (explicitTimeout != null) {
293
+ return setTimeout(resolveIfNotStale, explicitTimeout);
294
+ }
295
+ const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
296
+ if (!type) {
297
+ return resolve();
298
+ }
299
+ const endEvent = type + "end";
300
+ let ended = 0;
301
+ const end = () => {
302
+ el.removeEventListener(endEvent, onEnd);
303
+ resolveIfNotStale();
304
+ };
305
+ const onEnd = (e) => {
306
+ if (e.target === el && ++ended >= propCount) {
307
+ end();
308
+ }
309
+ };
310
+ setTimeout(() => {
311
+ if (ended < propCount) {
312
+ end();
313
+ }
314
+ }, timeout + 1);
315
+ el.addEventListener(endEvent, onEnd);
316
+ }
317
+ function getTransitionInfo(el, expectedType) {
318
+ const styles = window.getComputedStyle(el);
319
+ const getStyleProperties = (key) => (styles[key] || "").split(", ");
320
+ const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
321
+ const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
322
+ const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
323
+ const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
324
+ const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
325
+ const animationTimeout = getTimeout(animationDelays, animationDurations);
326
+ let type = null;
327
+ let timeout = 0;
328
+ let propCount = 0;
329
+ if (expectedType === TRANSITION) {
330
+ if (transitionTimeout > 0) {
331
+ type = TRANSITION;
332
+ timeout = transitionTimeout;
333
+ propCount = transitionDurations.length;
334
+ }
335
+ } else if (expectedType === ANIMATION) {
336
+ if (animationTimeout > 0) {
337
+ type = ANIMATION;
338
+ timeout = animationTimeout;
339
+ propCount = animationDurations.length;
340
+ }
341
+ } else {
342
+ timeout = Math.max(transitionTimeout, animationTimeout);
343
+ type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
344
+ propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
345
+ }
346
+ const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
347
+ getStyleProperties(`${TRANSITION}Property`).toString()
348
+ );
349
+ return {
350
+ type,
351
+ timeout,
352
+ propCount,
353
+ hasTransform
354
+ };
355
+ }
356
+ function getTimeout(delays, durations) {
357
+ while (delays.length < durations.length) {
358
+ delays = delays.concat(delays);
359
+ }
360
+ return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
361
+ }
362
+ function toMs(s) {
363
+ if (s === "auto") return 0;
364
+ return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
365
+ }
366
+ function forceReflow(el) {
367
+ const targetDocument = el ? el.ownerDocument : document;
368
+ return targetDocument.body.offsetHeight;
369
+ }
370
+
371
+ function patchClass(el, value, isSVG) {
372
+ const transitionClasses = el[vtcKey];
373
+ if (transitionClasses) {
374
+ value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
375
+ }
376
+ if (value == null) {
377
+ el.removeAttribute("class");
378
+ } else if (isSVG) {
379
+ el.setAttribute("class", value);
380
+ } else {
381
+ el.className = value;
382
+ }
383
+ }
384
+
385
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
386
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
387
+ const vShow = {
388
+ // used for prop mismatch check during hydration
389
+ name: "show",
390
+ beforeMount(el, { value }, { transition }) {
391
+ el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
392
+ if (transition && value) {
393
+ transition.beforeEnter(el);
394
+ } else {
395
+ setDisplay(el, value);
396
+ }
397
+ },
398
+ mounted(el, { value }, { transition }) {
399
+ if (transition && value) {
400
+ transition.enter(el);
401
+ }
402
+ },
403
+ updated(el, { value, oldValue }, { transition }) {
404
+ if (!value === !oldValue) return;
405
+ if (transition) {
406
+ if (value) {
407
+ transition.beforeEnter(el);
408
+ setDisplay(el, true);
409
+ transition.enter(el);
410
+ } else {
411
+ transition.leave(el, () => {
412
+ setDisplay(el, false);
413
+ });
414
+ }
415
+ } else {
416
+ setDisplay(el, value);
417
+ }
418
+ },
419
+ beforeUnmount(el, { value }) {
420
+ setDisplay(el, value);
421
+ }
422
+ };
423
+ function setDisplay(el, value) {
424
+ el.style.display = value ? el[vShowOriginalDisplay] : "none";
425
+ el[vShowHidden] = !value;
426
+ }
427
+ function initVShowForSSR() {
428
+ vShow.getSSRProps = ({ value }) => {
429
+ if (!value) {
430
+ return { style: { display: "none" } };
431
+ }
432
+ };
433
+ }
434
+
435
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("");
436
+ function useCssVars(getter) {
437
+ return;
438
+ }
439
+
440
+ const displayRE = /(?:^|;)\s*display\s*:/;
441
+ function patchStyle(el, prev, next) {
442
+ const style = el.style;
443
+ const isCssString = shared.isString(next);
444
+ let hasControlledDisplay = false;
445
+ if (next && !isCssString) {
446
+ if (prev) {
447
+ if (!shared.isString(prev)) {
448
+ for (const key in prev) {
449
+ if (next[key] == null) {
450
+ setStyle(style, key, "");
451
+ }
452
+ }
453
+ } else {
454
+ for (const prevStyle of prev.split(";")) {
455
+ const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
456
+ if (next[key] == null) {
457
+ setStyle(style, key, "");
458
+ }
459
+ }
460
+ }
461
+ }
462
+ for (const key in next) {
463
+ if (key === "display") {
464
+ hasControlledDisplay = true;
465
+ }
466
+ const value = next[key];
467
+ if (value != null) {
468
+ if (!shouldPreserveTextareaResizeStyle(
469
+ el,
470
+ key,
471
+ !shared.isString(prev) && prev ? prev[key] : void 0,
472
+ value
473
+ )) {
474
+ setStyle(style, key, value);
475
+ }
476
+ } else {
477
+ setStyle(style, key, "");
478
+ }
479
+ }
480
+ } else {
481
+ if (isCssString) {
482
+ if (prev !== next) {
483
+ const cssVarText = style[CSS_VAR_TEXT];
484
+ if (cssVarText) {
485
+ next += ";" + cssVarText;
486
+ }
487
+ style.cssText = next;
488
+ hasControlledDisplay = displayRE.test(next);
489
+ }
490
+ } else if (prev) {
491
+ el.removeAttribute("style");
492
+ }
493
+ }
494
+ if (vShowOriginalDisplay in el) {
495
+ if (!isCssString || prev !== next) {
496
+ el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
497
+ }
498
+ if (el[vShowHidden]) {
499
+ style.display = "none";
500
+ }
501
+ }
502
+ }
503
+ const importantRE = /\s*!important$/;
504
+ function setStyle(style, name, val) {
505
+ if (shared.isArray(val)) {
506
+ val.forEach((v) => setStyle(style, name, v));
507
+ } else {
508
+ if (val == null) val = "";
509
+ if (name.startsWith("--")) {
510
+ if (importantRE.test(val)) {
511
+ style.setProperty(name, val.replace(importantRE, ""), "important");
512
+ } else {
513
+ style.setProperty(name, val);
514
+ }
515
+ } else {
516
+ const prefixed = autoPrefix(style, name);
517
+ if (importantRE.test(val)) {
518
+ style.setProperty(
519
+ shared.hyphenate(prefixed),
520
+ val.replace(importantRE, ""),
521
+ "important"
522
+ );
523
+ } else {
524
+ style[prefixed] = val;
525
+ }
526
+ }
527
+ }
528
+ }
529
+ const prefixes = ["Webkit", "Moz", "ms"];
530
+ const prefixCache = {};
531
+ function autoPrefix(style, rawName) {
532
+ const cached = prefixCache[rawName];
533
+ if (cached) {
534
+ return cached;
535
+ }
536
+ let name = runtimeCore.camelize(rawName);
537
+ if (name !== "filter" && name in style) {
538
+ return prefixCache[rawName] = name;
539
+ }
540
+ name = shared.capitalize(name);
541
+ for (let i = 0; i < prefixes.length; i++) {
542
+ const prefixed = prefixes[i] + name;
543
+ if (prefixed in style) {
544
+ return prefixCache[rawName] = prefixed;
545
+ }
546
+ }
547
+ return rawName;
548
+ }
549
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
550
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && shared.isString(next) && prev === next;
551
+ }
552
+
553
+ const xlinkNS = "http://www.w3.org/1999/xlink";
554
+ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
555
+ if (isSVG && key.startsWith("xlink:")) {
556
+ if (value == null) {
557
+ el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
558
+ } else {
559
+ el.setAttributeNS(xlinkNS, key, value);
560
+ }
561
+ } else {
562
+ if (value == null || isBoolean && !shared.includeBooleanAttr(value)) {
563
+ el.removeAttribute(key);
564
+ } else {
565
+ el.setAttribute(
566
+ key,
567
+ isBoolean ? "" : shared.isSymbol(value) ? String(value) : value
568
+ );
569
+ }
570
+ }
571
+ }
572
+
573
+ function patchDOMProp(el, key, value, parentComponent, attrName) {
574
+ if (key === "innerHTML" || key === "textContent") {
575
+ if (value != null) {
576
+ el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
577
+ }
578
+ return;
579
+ }
580
+ const tag = el.tagName;
581
+ if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
582
+ !tag.includes("-")) {
583
+ const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
584
+ const newValue = value == null ? (
585
+ // #11647: value should be set as empty string for null and undefined,
586
+ // but <input type="checkbox"> should be set as 'on'.
587
+ el.type === "checkbox" ? "on" : ""
588
+ ) : String(value);
589
+ if (oldValue !== newValue || !("_value" in el)) {
590
+ el.value = newValue;
591
+ }
592
+ if (value == null) {
593
+ el.removeAttribute(key);
594
+ }
595
+ el._value = value;
596
+ return;
597
+ }
598
+ let needRemove = false;
599
+ if (value === "" || value == null) {
600
+ const type = typeof el[key];
601
+ if (type === "boolean") {
602
+ value = shared.includeBooleanAttr(value);
603
+ } else if (value == null && type === "string") {
604
+ value = "";
605
+ needRemove = true;
606
+ } else if (type === "number") {
607
+ value = 0;
608
+ needRemove = true;
609
+ }
610
+ }
611
+ try {
612
+ el[key] = value;
613
+ } catch (e) {
614
+ }
615
+ needRemove && el.removeAttribute(attrName || key);
616
+ }
617
+
618
+ function addEventListener(el, event, handler, options) {
619
+ el.addEventListener(event, handler, options);
620
+ }
621
+ function removeEventListener(el, event, handler, options) {
622
+ el.removeEventListener(event, handler, options);
623
+ }
624
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
625
+ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
626
+ const invokers = el[veiKey] || (el[veiKey] = {});
627
+ const existingInvoker = invokers[rawName];
628
+ if (nextValue && existingInvoker) {
629
+ existingInvoker.value = nextValue;
630
+ } else {
631
+ const [name, options] = parseName(rawName);
632
+ if (nextValue) {
633
+ const invoker = invokers[rawName] = createInvoker(
634
+ nextValue,
635
+ instance
636
+ );
637
+ addEventListener(el, name, invoker, options);
638
+ } else if (existingInvoker) {
639
+ removeEventListener(el, name, existingInvoker, options);
640
+ invokers[rawName] = void 0;
641
+ }
642
+ }
643
+ }
644
+ const optionsModifierRE = /(Once|Passive|Capture)$/;
645
+ const optionsModifierEventRE = /^on:?(?:Once|Passive|Capture)$/;
646
+ function parseName(name) {
647
+ let options;
648
+ let m;
649
+ while ((m = name.match(optionsModifierRE)) && !optionsModifierEventRE.test(name)) {
650
+ if (!options) options = {};
651
+ name = name.slice(0, name.length - m[1].length);
652
+ options[m[1].toLowerCase()] = true;
653
+ }
654
+ const event = name[2] === ":" ? name.slice(3) : shared.hyphenate(name.slice(2));
655
+ return [event, options];
656
+ }
657
+ let cachedNow = 0;
658
+ const p = /* @__PURE__ */ Promise.resolve();
659
+ const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
660
+ function createInvoker(initialValue, instance) {
661
+ const invoker = (e) => {
662
+ if (!e._vts) {
663
+ e._vts = Date.now();
664
+ } else if (e._vts <= invoker.attached) {
665
+ return;
666
+ }
667
+ const value = invoker.value;
668
+ if (shared.isArray(value)) {
669
+ const originalStop = e.stopImmediatePropagation;
670
+ e.stopImmediatePropagation = () => {
671
+ originalStop.call(e);
672
+ e._stopped = true;
673
+ };
674
+ const handlers = value.slice();
675
+ const args = [e];
676
+ for (let i = 0; i < handlers.length; i++) {
677
+ if (e._stopped) {
678
+ break;
679
+ }
680
+ const handler = handlers[i];
681
+ if (handler) {
682
+ runtimeCore.callWithAsyncErrorHandling(
683
+ handler,
684
+ instance,
685
+ 5,
686
+ args
687
+ );
688
+ }
689
+ }
690
+ } else {
691
+ runtimeCore.callWithAsyncErrorHandling(
692
+ value,
693
+ instance,
694
+ 5,
695
+ [e]
696
+ );
697
+ }
698
+ };
699
+ invoker.value = initialValue;
700
+ invoker.attached = getNow();
701
+ return invoker;
702
+ }
703
+
704
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
705
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
706
+ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
707
+ const isSVG = namespace === "svg";
708
+ if (key === "class") {
709
+ patchClass(el, nextValue, isSVG);
710
+ } else if (key === "style") {
711
+ patchStyle(el, prevValue, nextValue);
712
+ } else if (shared.isOn(key)) {
713
+ if (!shared.isModelListener(key)) {
714
+ patchEvent(el, key, prevValue, nextValue, parentComponent);
715
+ }
716
+ } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
717
+ patchDOMProp(el, key, nextValue);
718
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
719
+ patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
720
+ }
721
+ } else if (
722
+ // #11081 force set props for possible async custom element
723
+ el._isVueCE && // #12408 check if it's declared prop or it's async custom element
724
+ (shouldSetAsPropForVueCE(el, key) || // @ts-expect-error _def is private
725
+ el._def.__asyncLoader && (/[A-Z]/.test(key) || !shared.isString(nextValue)))
726
+ ) {
727
+ patchDOMProp(el, shared.camelize(key), nextValue, parentComponent, key);
728
+ } else {
729
+ if (key === "true-value") {
730
+ el._trueValue = nextValue;
731
+ } else if (key === "false-value") {
732
+ el._falseValue = nextValue;
733
+ }
734
+ patchAttr(el, key, nextValue, isSVG);
735
+ }
736
+ };
737
+ function shouldSetAsProp(el, key, value, isSVG) {
738
+ if (isSVG) {
739
+ if (key === "innerHTML" || key === "textContent") {
740
+ return true;
741
+ }
742
+ if (key in el && isNativeOn(key) && shared.isFunction(value)) {
743
+ return true;
744
+ }
745
+ return false;
746
+ }
747
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
748
+ return false;
749
+ }
750
+ if (key === "sandbox" && el.tagName === "IFRAME") {
751
+ return false;
752
+ }
753
+ if (key === "form") {
754
+ return false;
755
+ }
756
+ if (key === "list" && el.tagName === "INPUT") {
757
+ return false;
758
+ }
759
+ if (key === "type" && el.tagName === "TEXTAREA") {
760
+ return false;
761
+ }
762
+ if (key === "width" || key === "height") {
763
+ const tag = el.tagName;
764
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
765
+ return false;
766
+ }
767
+ }
768
+ if (isNativeOn(key) && shared.isString(value)) {
769
+ return false;
770
+ }
771
+ return key in el;
772
+ }
773
+ function shouldSetAsPropForVueCE(el, key) {
774
+ const props = (
775
+ // @ts-expect-error _def is private
776
+ el._def.props
777
+ );
778
+ if (!props) {
779
+ return false;
780
+ }
781
+ const camelKey = shared.camelize(key);
782
+ return Array.isArray(props) ? props.some((prop) => shared.camelize(prop) === camelKey) : Object.keys(props).some((prop) => shared.camelize(prop) === camelKey);
783
+ }
784
+
785
+ const REMOVAL = {};
786
+ // @__NO_SIDE_EFFECTS__
787
+ function defineCustomElement(options, extraOptions, _createApp) {
788
+ let Comp = runtimeCore.defineComponent(options, extraOptions);
789
+ if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
790
+ class VueCustomElement extends VueElement {
791
+ constructor(initialProps) {
792
+ super(Comp, initialProps, _createApp);
793
+ }
794
+ }
795
+ VueCustomElement.def = Comp;
796
+ return VueCustomElement;
797
+ }
798
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
799
+ return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
800
+ });
801
+ const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
802
+ };
803
+ class VueElement extends BaseClass {
804
+ constructor(_def, _props = {}, _createApp = createApp) {
805
+ super();
806
+ this._def = _def;
807
+ this._props = _props;
808
+ this._createApp = _createApp;
809
+ this._isVueCE = true;
810
+ /**
811
+ * @internal
812
+ */
813
+ this._instance = null;
814
+ /**
815
+ * @internal
816
+ */
817
+ this._app = null;
818
+ /**
819
+ * @internal
820
+ */
821
+ this._nonce = this._def.nonce;
822
+ this._connected = false;
823
+ this._resolved = false;
824
+ this._patching = false;
825
+ this._dirty = false;
826
+ this._numberProps = null;
827
+ this._styleChildren = /* @__PURE__ */ new WeakSet();
828
+ this._styleAnchors = /* @__PURE__ */ new WeakMap();
829
+ this._ob = null;
830
+ if (this.shadowRoot && _createApp !== createApp) {
831
+ this._root = this.shadowRoot;
832
+ } else {
833
+ if (_def.shadowRoot !== false) {
834
+ this.attachShadow(
835
+ shared.extend({}, _def.shadowRootOptions, {
836
+ mode: "open"
837
+ })
838
+ );
839
+ this._root = this.shadowRoot;
840
+ } else {
841
+ this._root = this;
842
+ }
843
+ }
844
+ }
845
+ connectedCallback() {
846
+ if (!this.isConnected) return;
847
+ if (!this.shadowRoot && !this._resolved) {
848
+ this._parseSlots();
849
+ }
850
+ this._connected = true;
851
+ let parent = this;
852
+ while (parent = parent && // #12479 should check assignedSlot first to get correct parent
853
+ (parent.assignedSlot || parent.parentNode || parent.host)) {
854
+ if (parent instanceof VueElement) {
855
+ this._parent = parent;
856
+ break;
857
+ }
858
+ }
859
+ if (!this._instance) {
860
+ if (this._resolved) {
861
+ this._mount(this._def);
862
+ } else {
863
+ if (parent && parent._pendingResolve) {
864
+ this._pendingResolve = parent._pendingResolve.then(() => {
865
+ this._pendingResolve = void 0;
866
+ if (this.isConnected) {
867
+ return this._resolveDef();
868
+ }
869
+ });
870
+ } else {
871
+ this._resolveDef();
872
+ }
873
+ }
874
+ }
875
+ }
876
+ _setParent(parent = this._parent) {
877
+ if (parent) {
878
+ this._instance.parent = parent._instance;
879
+ this._inheritParentContext(parent);
880
+ }
881
+ }
882
+ _inheritParentContext(parent = this._parent) {
883
+ if (parent && this._app) {
884
+ Object.setPrototypeOf(
885
+ this._app._context.provides,
886
+ parent._instance.provides
887
+ );
888
+ }
889
+ }
890
+ disconnectedCallback() {
891
+ this._connected = false;
892
+ runtimeCore.nextTick(() => {
893
+ if (!this._connected) {
894
+ if (this._ob) {
895
+ this._ob.disconnect();
896
+ this._ob = null;
897
+ }
898
+ this._app && this._app.unmount();
899
+ if (this._instance) this._instance.ce = void 0;
900
+ this._app = this._instance = null;
901
+ if (this._teleportTargets) {
902
+ this._teleportTargets.clear();
903
+ this._teleportTargets = void 0;
904
+ }
905
+ }
906
+ });
907
+ }
908
+ _processMutations(mutations) {
909
+ for (const m of mutations) {
910
+ this._setAttr(m.attributeName);
911
+ }
912
+ }
913
+ /**
914
+ * resolve inner component definition (handle possible async component)
915
+ */
916
+ _resolveDef() {
917
+ if (this._pendingResolve) {
918
+ return this._pendingResolve;
919
+ }
920
+ for (let i = 0; i < this.attributes.length; i++) {
921
+ this._setAttr(this.attributes[i].name);
922
+ }
923
+ this._ob = new MutationObserver(this._processMutations.bind(this));
924
+ this._ob.observe(this, { attributes: true });
925
+ const resolve = (def, isAsync = false) => {
926
+ this._resolved = true;
927
+ this._pendingResolve = void 0;
928
+ const { props, styles } = def;
929
+ let numberProps;
930
+ if (props && !shared.isArray(props)) {
931
+ for (const key in props) {
932
+ const opt = props[key];
933
+ if (opt === Number || opt && opt.type === Number) {
934
+ if (key in this._props) {
935
+ this._props[key] = shared.toNumber(this._props[key]);
936
+ }
937
+ (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[shared.camelize(key)] = true;
938
+ }
939
+ }
940
+ }
941
+ this._numberProps = numberProps;
942
+ this._resolveProps(def);
943
+ if (this.shadowRoot) {
944
+ this._applyStyles(styles);
945
+ }
946
+ if (this._connected) {
947
+ this._mount(def);
948
+ }
949
+ };
950
+ const asyncDef = this._def.__asyncLoader;
951
+ if (asyncDef) {
952
+ this._pendingResolve = asyncDef().then((def) => {
953
+ def.configureApp = this._def.configureApp;
954
+ resolve(this._def = def, true);
955
+ });
956
+ return this._pendingResolve;
957
+ } else {
958
+ resolve(this._def);
959
+ }
960
+ }
961
+ _mount(def) {
962
+ this._app = this._createApp(def);
963
+ this._inheritParentContext();
964
+ if (def.configureApp) {
965
+ def.configureApp(this._app);
966
+ }
967
+ this._app._ceVNode = this._createVNode();
968
+ this._app.mount(this._root);
969
+ const exposed = this._instance && this._instance.exposed;
970
+ if (!exposed) return;
971
+ for (const key in exposed) {
972
+ if (!shared.hasOwn(this, key)) {
973
+ Object.defineProperty(this, key, {
974
+ // unwrap ref to be consistent with public instance behavior
975
+ get: () => runtimeCore.unref(exposed[key])
976
+ });
977
+ }
978
+ }
979
+ }
980
+ _resolveProps(def) {
981
+ const { props } = def;
982
+ const declaredPropKeys = shared.isArray(props) ? props : Object.keys(props || {});
983
+ for (const key of Object.keys(this)) {
984
+ if (key[0] !== "_" && declaredPropKeys.includes(key)) {
985
+ this._setProp(key, this[key]);
986
+ }
987
+ }
988
+ for (const key of declaredPropKeys.map(shared.camelize)) {
989
+ Object.defineProperty(this, key, {
990
+ get() {
991
+ return this._getProp(key);
992
+ },
993
+ set(val) {
994
+ this._setProp(key, val, true, !this._patching);
995
+ }
996
+ });
997
+ }
998
+ }
999
+ _setAttr(key) {
1000
+ if (key.startsWith("data-v-")) return;
1001
+ const has = this.hasAttribute(key);
1002
+ let value = has ? this.getAttribute(key) : REMOVAL;
1003
+ const camelKey = shared.camelize(key);
1004
+ if (has && this._numberProps && this._numberProps[camelKey]) {
1005
+ value = shared.toNumber(value);
1006
+ }
1007
+ this._setProp(camelKey, value, false, true);
1008
+ }
1009
+ /**
1010
+ * @internal
1011
+ */
1012
+ _getProp(key) {
1013
+ return this._props[key];
1014
+ }
1015
+ /**
1016
+ * @internal
1017
+ */
1018
+ _setProp(key, val, shouldReflect = true, shouldUpdate = false) {
1019
+ if (val !== this._props[key]) {
1020
+ this._dirty = true;
1021
+ if (val === REMOVAL) {
1022
+ delete this._props[key];
1023
+ } else {
1024
+ this._props[key] = val;
1025
+ if (key === "key" && this._app) {
1026
+ this._app._ceVNode.key = val;
1027
+ }
1028
+ }
1029
+ if (shouldUpdate && this._instance) {
1030
+ this._update();
1031
+ }
1032
+ if (shouldReflect) {
1033
+ const ob = this._ob;
1034
+ if (ob) {
1035
+ this._processMutations(ob.takeRecords());
1036
+ ob.disconnect();
1037
+ }
1038
+ if (val === true) {
1039
+ this.setAttribute(shared.hyphenate(key), "");
1040
+ } else if (typeof val === "string" || typeof val === "number") {
1041
+ this.setAttribute(shared.hyphenate(key), val + "");
1042
+ } else if (!val) {
1043
+ this.removeAttribute(shared.hyphenate(key));
1044
+ }
1045
+ ob && ob.observe(this, { attributes: true });
1046
+ }
1047
+ }
1048
+ }
1049
+ _update() {
1050
+ const vnode = this._createVNode();
1051
+ if (this._app) vnode.appContext = this._app._context;
1052
+ render(vnode, this._root);
1053
+ }
1054
+ _createVNode() {
1055
+ const baseProps = {};
1056
+ if (!this.shadowRoot) {
1057
+ baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
1058
+ }
1059
+ const vnode = runtimeCore.createVNode(this._def, shared.extend(baseProps, this._props));
1060
+ if (!this._instance) {
1061
+ vnode.ce = (instance) => {
1062
+ this._instance = instance;
1063
+ instance.ce = this;
1064
+ instance.isCE = true;
1065
+ const dispatch = (event, args) => {
1066
+ this.dispatchEvent(
1067
+ new CustomEvent(
1068
+ event,
1069
+ shared.isPlainObject(args[0]) ? shared.extend({ detail: args }, args[0]) : { detail: args }
1070
+ )
1071
+ );
1072
+ };
1073
+ instance.emit = (event, ...args) => {
1074
+ dispatch(event, args);
1075
+ if (shared.hyphenate(event) !== event) {
1076
+ dispatch(shared.hyphenate(event), args);
1077
+ }
1078
+ };
1079
+ this._setParent();
1080
+ };
1081
+ }
1082
+ return vnode;
1083
+ }
1084
+ _applyStyles(styles, owner, parentComp) {
1085
+ if (!styles) return;
1086
+ if (owner) {
1087
+ if (owner === this._def || this._styleChildren.has(owner)) {
1088
+ return;
1089
+ }
1090
+ this._styleChildren.add(owner);
1091
+ }
1092
+ const nonce = this._nonce;
1093
+ const root = this.shadowRoot;
1094
+ const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
1095
+ let last = null;
1096
+ for (let i = styles.length - 1; i >= 0; i--) {
1097
+ const s = document.createElement("style");
1098
+ if (nonce) s.setAttribute("nonce", nonce);
1099
+ s.textContent = styles[i];
1100
+ root.insertBefore(s, last || insertionAnchor);
1101
+ last = s;
1102
+ if (i === 0) {
1103
+ if (!parentComp) this._styleAnchors.set(this._def, s);
1104
+ if (owner) this._styleAnchors.set(owner, s);
1105
+ }
1106
+ }
1107
+ }
1108
+ _getStyleAnchor(comp) {
1109
+ if (!comp) {
1110
+ return null;
1111
+ }
1112
+ const anchor = this._styleAnchors.get(comp);
1113
+ if (anchor && anchor.parentNode === this.shadowRoot) {
1114
+ return anchor;
1115
+ }
1116
+ if (anchor) {
1117
+ this._styleAnchors.delete(comp);
1118
+ }
1119
+ return null;
1120
+ }
1121
+ _getRootStyleInsertionAnchor(root) {
1122
+ for (let i = 0; i < root.childNodes.length; i++) {
1123
+ const node = root.childNodes[i];
1124
+ if (!(node instanceof HTMLStyleElement)) {
1125
+ return node;
1126
+ }
1127
+ }
1128
+ return null;
1129
+ }
1130
+ /**
1131
+ * Only called when shadowRoot is false
1132
+ */
1133
+ _parseSlots() {
1134
+ const slots = this._slots = {};
1135
+ let n;
1136
+ while (n = this.firstChild) {
1137
+ const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
1138
+ (slots[slotName] || (slots[slotName] = [])).push(n);
1139
+ this.removeChild(n);
1140
+ }
1141
+ }
1142
+ /**
1143
+ * Only called when shadowRoot is false
1144
+ */
1145
+ _renderSlots() {
1146
+ const outlets = this._getSlots();
1147
+ const scopeId = this._instance.type.__scopeId;
1148
+ for (let i = 0; i < outlets.length; i++) {
1149
+ const o = outlets[i];
1150
+ const slotName = o.getAttribute("name") || "default";
1151
+ const content = this._slots[slotName];
1152
+ const parent = o.parentNode;
1153
+ if (content) {
1154
+ for (const n of content) {
1155
+ if (scopeId && n.nodeType === 1) {
1156
+ const id = scopeId + "-s";
1157
+ const walker = document.createTreeWalker(n, 1);
1158
+ n.setAttribute(id, "");
1159
+ let child;
1160
+ while (child = walker.nextNode()) {
1161
+ child.setAttribute(id, "");
1162
+ }
1163
+ }
1164
+ parent.insertBefore(n, o);
1165
+ }
1166
+ } else {
1167
+ while (o.firstChild) parent.insertBefore(o.firstChild, o);
1168
+ }
1169
+ parent.removeChild(o);
1170
+ }
1171
+ }
1172
+ /**
1173
+ * @internal
1174
+ */
1175
+ _getSlots() {
1176
+ const roots = [this];
1177
+ if (this._teleportTargets) {
1178
+ roots.push(...this._teleportTargets);
1179
+ }
1180
+ const slots = /* @__PURE__ */ new Set();
1181
+ for (const root of roots) {
1182
+ const found = root.querySelectorAll("slot");
1183
+ for (let i = 0; i < found.length; i++) {
1184
+ slots.add(found[i]);
1185
+ }
1186
+ }
1187
+ return Array.from(slots);
1188
+ }
1189
+ /**
1190
+ * @internal
1191
+ */
1192
+ _injectChildStyle(comp, parentComp) {
1193
+ this._applyStyles(comp.styles, comp, parentComp);
1194
+ }
1195
+ /**
1196
+ * @internal
1197
+ */
1198
+ _beginPatch() {
1199
+ this._patching = true;
1200
+ this._dirty = false;
1201
+ }
1202
+ /**
1203
+ * @internal
1204
+ */
1205
+ _endPatch() {
1206
+ this._patching = false;
1207
+ if (this._dirty && this._instance) {
1208
+ this._update();
1209
+ }
1210
+ }
1211
+ /**
1212
+ * @internal
1213
+ */
1214
+ _hasShadowRoot() {
1215
+ return this._def.shadowRoot !== false;
1216
+ }
1217
+ /**
1218
+ * @internal
1219
+ */
1220
+ _removeChildStyle(comp) {
1221
+ }
1222
+ }
1223
+ function useHost(caller) {
1224
+ const instance = runtimeCore.getCurrentInstance();
1225
+ const el = instance && instance.ce;
1226
+ if (el) {
1227
+ return el;
1228
+ }
1229
+ return null;
1230
+ }
1231
+ function useShadowRoot() {
1232
+ const el = useHost();
1233
+ return el && el.shadowRoot;
1234
+ }
1235
+
1236
+ function useCssModule(name = "$style") {
1237
+ {
1238
+ const instance = runtimeCore.getCurrentInstance();
1239
+ if (!instance) {
1240
+ return shared.EMPTY_OBJ;
1241
+ }
1242
+ const modules = instance.type.__cssModules;
1243
+ if (!modules) {
1244
+ return shared.EMPTY_OBJ;
1245
+ }
1246
+ const mod = modules[name];
1247
+ if (!mod) {
1248
+ return shared.EMPTY_OBJ;
1249
+ }
1250
+ return mod;
1251
+ }
1252
+ }
1253
+
1254
+ const positionMap = /* @__PURE__ */ new WeakMap();
1255
+ const newPositionMap = /* @__PURE__ */ new WeakMap();
1256
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
1257
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
1258
+ const pendingGroups = /* @__PURE__ */ new WeakMap();
1259
+ const decorate = (t) => {
1260
+ delete t.props.mode;
1261
+ return t;
1262
+ };
1263
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
1264
+ name: "TransitionGroup",
1265
+ props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
1266
+ tag: String,
1267
+ moveClass: String
1268
+ }),
1269
+ setup(props, { slots }) {
1270
+ const instance = runtimeCore.getCurrentInstance();
1271
+ const state = runtimeCore.useTransitionState();
1272
+ let prevChildren;
1273
+ let children;
1274
+ let origins;
1275
+ let moves;
1276
+ const willMove = () => {
1277
+ if (moves === void 0) {
1278
+ moves = prevChildren.length > 0 && hasCSSTransform(
1279
+ prevChildren[0].el,
1280
+ instance.vnode.el,
1281
+ resolveMoveClass(props)
1282
+ );
1283
+ }
1284
+ return moves;
1285
+ };
1286
+ runtimeCore.onUpdated(() => {
1287
+ pendingGroups.delete(instance);
1288
+ if (!willMove()) {
1289
+ prevChildren = [];
1290
+ origins = void 0;
1291
+ return;
1292
+ }
1293
+ const moveClass = resolveMoveClass(props);
1294
+ prevChildren.forEach(callPendingCbs);
1295
+ const shift = origins && getOriginShift(origins, instance.vnode.el);
1296
+ origins = void 0;
1297
+ prevChildren.forEach((c) => recordPosition(c, shift));
1298
+ const movedChildren = prevChildren.filter(applyTranslation);
1299
+ forceReflow(instance.vnode.el);
1300
+ movedChildren.forEach((c) => {
1301
+ const el = c.el;
1302
+ const style = el.style;
1303
+ addTransitionClass(el, moveClass);
1304
+ style.transform = style.webkitTransform = style.transitionDuration = "";
1305
+ const cb = el[moveCbKey] = (e) => {
1306
+ if (e && e.target !== el) {
1307
+ return;
1308
+ }
1309
+ if (!e || e.propertyName.endsWith("transform")) {
1310
+ el.removeEventListener("transitionend", cb);
1311
+ el[moveCbKey] = null;
1312
+ removeTransitionClass(el, moveClass);
1313
+ }
1314
+ };
1315
+ el.addEventListener("transitionend", cb);
1316
+ });
1317
+ prevChildren = [];
1318
+ });
1319
+ return () => {
1320
+ const rawProps = runtimeCore.toRaw(props);
1321
+ const cssTransitionProps = resolveTransitionProps(rawProps);
1322
+ let tag = rawProps.tag || runtimeCore.Fragment;
1323
+ prevChildren = [];
1324
+ moves = void 0;
1325
+ if (children) {
1326
+ for (let i = 0; i < children.length; i++) {
1327
+ const child = children[i];
1328
+ if (child.el && child.el instanceof Element && // Hidden v-show nodes have no previous layout box to animate from.
1329
+ !child.el[vShowHidden]) {
1330
+ prevChildren.push(child);
1331
+ runtimeCore.setTransitionHooks(
1332
+ child,
1333
+ runtimeCore.resolveTransitionHooks(
1334
+ child,
1335
+ cssTransitionProps,
1336
+ state,
1337
+ instance
1338
+ )
1339
+ );
1340
+ positionMap.set(child, getPosition(child.el));
1341
+ }
1342
+ }
1343
+ }
1344
+ children = slots.default ? runtimeCore.getTransitionRawChildren(slots.default()) : [];
1345
+ for (let i = 0; i < children.length; i++) {
1346
+ const child = children[i];
1347
+ if (child.key != null) {
1348
+ runtimeCore.setTransitionHooks(
1349
+ child,
1350
+ runtimeCore.resolveTransitionHooks(child, cssTransitionProps, state, instance)
1351
+ );
1352
+ }
1353
+ }
1354
+ if (prevChildren.length) {
1355
+ origins = getOrigins(instance);
1356
+ pendingGroups.set(instance, willMove);
1357
+ }
1358
+ return runtimeCore.createVNode(tag, null, children);
1359
+ };
1360
+ }
1361
+ });
1362
+ const TransitionGroup = TransitionGroupImpl;
1363
+ function callPendingCbs(c) {
1364
+ const el = c.el;
1365
+ if (el[moveCbKey]) {
1366
+ el[moveCbKey]();
1367
+ }
1368
+ if (el[enterCbKey]) {
1369
+ el[enterCbKey]();
1370
+ }
1371
+ }
1372
+ function resolveMoveClass(props) {
1373
+ return props.moveClass || `${props.name || "v"}-move`;
1374
+ }
1375
+ function recordPosition(c, shift) {
1376
+ newPositionMap.set(c, getPosition(c.el, shift));
1377
+ }
1378
+ function applyTranslation(c) {
1379
+ const oldPos = positionMap.get(c);
1380
+ const newPos = newPositionMap.get(c);
1381
+ const dx = oldPos.left - newPos.left;
1382
+ const dy = oldPos.top - newPos.top;
1383
+ if (dx || dy) {
1384
+ const el = c.el;
1385
+ const s = el.style;
1386
+ const rect = el.getBoundingClientRect();
1387
+ let scaleX = 1;
1388
+ let scaleY = 1;
1389
+ if (el.offsetWidth) scaleX = rect.width / el.offsetWidth;
1390
+ if (el.offsetHeight) scaleY = rect.height / el.offsetHeight;
1391
+ if (!Number.isFinite(scaleX) || scaleX === 0) scaleX = 1;
1392
+ if (!Number.isFinite(scaleY) || scaleY === 0) scaleY = 1;
1393
+ if (Math.abs(scaleX - 1) < 0.01) scaleX = 1;
1394
+ if (Math.abs(scaleY - 1) < 0.01) scaleY = 1;
1395
+ s.transform = s.webkitTransform = `translate(${dx / scaleX}px,${dy / scaleY}px)`;
1396
+ s.transitionDuration = "0s";
1397
+ return c;
1398
+ }
1399
+ }
1400
+ function getPosition(el, shift) {
1401
+ const rect = el.getBoundingClientRect();
1402
+ return {
1403
+ left: rect.left - (shift ? shift.left : 0),
1404
+ top: rect.top - (shift ? shift.top : 0)
1405
+ };
1406
+ }
1407
+ function getOrigins(instance) {
1408
+ let origins;
1409
+ for (let group = instance.parent; group; group = group.parent) {
1410
+ const willMove = pendingGroups.get(group);
1411
+ if (willMove) {
1412
+ const item = findItem(group.vnode.el, instance.vnode.el);
1413
+ if (item) {
1414
+ (origins || (origins = [])).push(
1415
+ shared.extend(getPosition(item), { item, willMove })
1416
+ );
1417
+ }
1418
+ }
1419
+ }
1420
+ return origins;
1421
+ }
1422
+ function findItem(root, node) {
1423
+ const container = root.nodeType === 1 ? root : root.parentNode;
1424
+ while (node && node.parentNode !== container) {
1425
+ node = node.parentNode;
1426
+ }
1427
+ if (node && node.nodeType === 1) {
1428
+ return node;
1429
+ }
1430
+ }
1431
+ function getOriginShift(origins, root) {
1432
+ const origin = origins.find((o) => o.willMove() && o.item.contains(root));
1433
+ return origin && getPosition(origin.item, origin);
1434
+ }
1435
+ function hasCSSTransform(el, root, moveClass) {
1436
+ const clone = el.cloneNode();
1437
+ const _vtc = el[vtcKey];
1438
+ if (_vtc) {
1439
+ _vtc.forEach((cls) => {
1440
+ cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
1441
+ });
1442
+ }
1443
+ moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c));
1444
+ clone.style.display = "none";
1445
+ const container = root.nodeType === 1 ? root : root.parentNode;
1446
+ container.appendChild(clone);
1447
+ const { hasTransform } = getTransitionInfo(clone);
1448
+ container.removeChild(clone);
1449
+ return hasTransform;
1450
+ }
1451
+
1452
+ const getModelAssigner = (vnode) => {
1453
+ const fn = vnode.props["onUpdate:modelValue"] || false;
1454
+ return shared.isArray(fn) ? (value) => shared.invokeArrayFns(fn, value) : fn;
1455
+ };
1456
+ function onCompositionStart(e) {
1457
+ e.target.composing = true;
1458
+ }
1459
+ function onCompositionEnd(e) {
1460
+ const target = e.target;
1461
+ if (target.composing) {
1462
+ target.composing = false;
1463
+ target.dispatchEvent(new Event("input"));
1464
+ }
1465
+ }
1466
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
1467
+ const initialValueKey = /* @__PURE__ */ Symbol("_initialValue");
1468
+ function castValue(value, trim, number) {
1469
+ if (trim) value = value.trim();
1470
+ if (number) value = shared.looseToNumber(value);
1471
+ return value;
1472
+ }
1473
+ const vModelText = {
1474
+ created(el, { modifiers: { lazy, trim, number } }, vnode) {
1475
+ if (el.parentNode) {
1476
+ if (el.type === "text") {
1477
+ el[initialValueKey] = el.defaultValue.replace(/[\r\n]/g, "");
1478
+ } else if (el.type === "textarea") {
1479
+ el[initialValueKey] = el.defaultValue.replace(/\r\n?/g, "\n");
1480
+ }
1481
+ }
1482
+ el[assignKey] = getModelAssigner(vnode);
1483
+ const castToNumber = number || vnode.props && vnode.props.type === "number";
1484
+ addEventListener(el, lazy ? "change" : "input", (e) => {
1485
+ if (e.target.composing) return;
1486
+ el[assignKey](castValue(el.value, trim, castToNumber));
1487
+ });
1488
+ if (trim || castToNumber) {
1489
+ addEventListener(el, "change", () => {
1490
+ el.value = castValue(el.value, trim, castToNumber);
1491
+ });
1492
+ }
1493
+ if (!lazy) {
1494
+ addEventListener(el, "compositionstart", onCompositionStart);
1495
+ addEventListener(el, "compositionend", onCompositionEnd);
1496
+ addEventListener(el, "change", onCompositionEnd);
1497
+ }
1498
+ },
1499
+ // set value on mounted so it's after min/max for type="range"
1500
+ mounted(el, { value, modifiers: { trim, number } }) {
1501
+ const newValue = value == null ? "" : value;
1502
+ const initialValue = el[initialValueKey];
1503
+ delete el[initialValueKey];
1504
+ if (initialValue !== void 0 && (el.type === "text" || el.type === "textarea") && el.value !== initialValue) {
1505
+ el[assignKey](castValue(el.value, trim, number));
1506
+ } else {
1507
+ el.value = newValue;
1508
+ }
1509
+ },
1510
+ beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
1511
+ el[assignKey] = getModelAssigner(vnode);
1512
+ if (el.composing) return;
1513
+ const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? shared.looseToNumber(el.value) : el.value;
1514
+ const newValue = value == null ? "" : value;
1515
+ if (elValue === newValue) {
1516
+ return;
1517
+ }
1518
+ const rootNode = el.getRootNode();
1519
+ if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
1520
+ if (lazy && value === oldValue) {
1521
+ return;
1522
+ }
1523
+ if (trim && el.value.trim() === newValue) {
1524
+ return;
1525
+ }
1526
+ }
1527
+ el.value = newValue;
1528
+ }
1529
+ };
1530
+ const vModelCheckbox = {
1531
+ // #4096 array checkboxes need to be deep traversed
1532
+ deep: true,
1533
+ created(el, _, vnode) {
1534
+ el[assignKey] = getModelAssigner(vnode);
1535
+ addEventListener(el, "change", () => {
1536
+ const modelValue = el._modelValue;
1537
+ const elementValue = getValue(el);
1538
+ const checked = el.checked;
1539
+ const assign = el[assignKey];
1540
+ if (shared.isArray(modelValue)) {
1541
+ const index = shared.looseIndexOf(modelValue, elementValue);
1542
+ const found = index !== -1;
1543
+ if (checked && !found) {
1544
+ assign(modelValue.concat(elementValue));
1545
+ } else if (!checked && found) {
1546
+ const filtered = [...modelValue];
1547
+ filtered.splice(index, 1);
1548
+ assign(filtered);
1549
+ }
1550
+ } else if (shared.isSet(modelValue)) {
1551
+ const cloned = new Set(modelValue);
1552
+ if (checked) {
1553
+ cloned.add(elementValue);
1554
+ } else {
1555
+ cloned.delete(elementValue);
1556
+ }
1557
+ assign(cloned);
1558
+ } else {
1559
+ assign(getCheckboxValue(el, checked));
1560
+ }
1561
+ });
1562
+ },
1563
+ // set initial checked on mount to wait for true-value/false-value
1564
+ mounted: setChecked,
1565
+ beforeUpdate(el, binding, vnode) {
1566
+ el[assignKey] = getModelAssigner(vnode);
1567
+ setChecked(el, binding, vnode);
1568
+ }
1569
+ };
1570
+ function setChecked(el, { value, oldValue }, vnode) {
1571
+ el._modelValue = value;
1572
+ let checked;
1573
+ if (shared.isArray(value)) {
1574
+ checked = shared.looseIndexOf(value, vnode.props.value) > -1;
1575
+ } else if (shared.isSet(value)) {
1576
+ checked = value.has(vnode.props.value);
1577
+ } else {
1578
+ if (value === oldValue) return;
1579
+ checked = shared.looseEqual(value, getCheckboxValue(el, true));
1580
+ }
1581
+ if (el.checked !== checked) {
1582
+ el.checked = checked;
1583
+ }
1584
+ }
1585
+ const vModelRadio = {
1586
+ created(el, { value }, vnode) {
1587
+ el.checked = shared.looseEqual(value, vnode.props.value);
1588
+ el[assignKey] = getModelAssigner(vnode);
1589
+ addEventListener(el, "change", () => {
1590
+ el[assignKey](getValue(el));
1591
+ });
1592
+ },
1593
+ beforeUpdate(el, { value, oldValue }, vnode) {
1594
+ el[assignKey] = getModelAssigner(vnode);
1595
+ if (value !== oldValue) {
1596
+ el.checked = shared.looseEqual(value, vnode.props.value);
1597
+ }
1598
+ }
1599
+ };
1600
+ const vModelSelect = {
1601
+ // <select multiple> value need to be deep traversed
1602
+ deep: true,
1603
+ created(el, { value, modifiers: { number } }, vnode) {
1604
+ el._modelValue = value;
1605
+ addEventListener(el, "change", () => {
1606
+ const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map(
1607
+ (o) => number ? shared.looseToNumber(getValue(o)) : getValue(o)
1608
+ );
1609
+ const multiple = el.multiple;
1610
+ const assignedValue = multiple ? shared.isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0];
1611
+ const pending = el._pendingValue = [
1612
+ multiple,
1613
+ multiple ? shared.isArray(assignedValue) ? selectedVal.slice() : selectedVal : assignedValue
1614
+ ];
1615
+ try {
1616
+ el[assignKey](assignedValue);
1617
+ } finally {
1618
+ runtimeCore.nextTick(() => {
1619
+ if (el._pendingValue === pending) {
1620
+ el._pendingValue = void 0;
1621
+ }
1622
+ });
1623
+ }
1624
+ });
1625
+ el[assignKey] = getModelAssigner(vnode);
1626
+ },
1627
+ // set value in mounted & updated because <select> relies on its children
1628
+ // <option>s.
1629
+ mounted(el, { value }) {
1630
+ setSelected(el, value);
1631
+ },
1632
+ beforeUpdate(el, { value }, vnode) {
1633
+ el._modelValue = value;
1634
+ el[assignKey] = getModelAssigner(vnode);
1635
+ },
1636
+ updated(el, { value }) {
1637
+ const pending = el._pendingValue;
1638
+ el._pendingValue = void 0;
1639
+ if (!pending || pending[0] !== el.multiple || !isSameSelectValue(value, pending[1], pending[0])) {
1640
+ setSelected(el, value);
1641
+ }
1642
+ }
1643
+ };
1644
+ function isSameSelectValue(value, assignedValue, multiple) {
1645
+ if (!multiple) return shared.looseEqual(value, assignedValue);
1646
+ if (shared.isArray(value)) return shared.looseEqual(value, assignedValue);
1647
+ if (shared.isSet(value)) {
1648
+ if (value.size !== assignedValue.length) return false;
1649
+ for (const item of assignedValue) {
1650
+ if (!value.has(item)) return false;
1651
+ }
1652
+ return true;
1653
+ }
1654
+ return false;
1655
+ }
1656
+ function setSelected(el, value) {
1657
+ const isMultiple = el.multiple;
1658
+ const isArrayValue = shared.isArray(value);
1659
+ if (isMultiple && !isArrayValue && !shared.isSet(value)) {
1660
+ return;
1661
+ }
1662
+ for (let i = 0, l = el.options.length; i < l; i++) {
1663
+ const option = el.options[i];
1664
+ const optionValue = getValue(option);
1665
+ if (isMultiple) {
1666
+ if (isArrayValue) {
1667
+ const optionType = typeof optionValue;
1668
+ if (optionType === "string" || optionType === "number") {
1669
+ option.selected = value.some((v) => String(v) === String(optionValue));
1670
+ } else {
1671
+ option.selected = shared.looseIndexOf(value, optionValue) > -1;
1672
+ }
1673
+ } else {
1674
+ option.selected = value.has(optionValue);
1675
+ }
1676
+ } else if (shared.looseEqual(getValue(option), value)) {
1677
+ if (el.selectedIndex !== i) el.selectedIndex = i;
1678
+ return;
1679
+ }
1680
+ }
1681
+ if (!isMultiple && el.selectedIndex !== -1) {
1682
+ el.selectedIndex = -1;
1683
+ }
1684
+ }
1685
+ function getValue(el) {
1686
+ return "_value" in el ? el._value : el.value;
1687
+ }
1688
+ function getCheckboxValue(el, checked) {
1689
+ const key = checked ? "_trueValue" : "_falseValue";
1690
+ return key in el ? el[key] : checked;
1691
+ }
1692
+ const vModelDynamic = {
1693
+ created(el, binding, vnode) {
1694
+ callModelHook(el, binding, vnode, null, "created");
1695
+ },
1696
+ mounted(el, binding, vnode) {
1697
+ callModelHook(el, binding, vnode, null, "mounted");
1698
+ },
1699
+ beforeUpdate(el, binding, vnode, prevVNode) {
1700
+ callModelHook(el, binding, vnode, prevVNode, "beforeUpdate");
1701
+ },
1702
+ updated(el, binding, vnode, prevVNode) {
1703
+ callModelHook(el, binding, vnode, prevVNode, "updated");
1704
+ }
1705
+ };
1706
+ function resolveDynamicModel(tagName, type) {
1707
+ switch (tagName) {
1708
+ case "SELECT":
1709
+ return vModelSelect;
1710
+ case "TEXTAREA":
1711
+ return vModelText;
1712
+ default:
1713
+ switch (type) {
1714
+ case "checkbox":
1715
+ return vModelCheckbox;
1716
+ case "radio":
1717
+ return vModelRadio;
1718
+ default:
1719
+ return vModelText;
1720
+ }
1721
+ }
1722
+ }
1723
+ function callModelHook(el, binding, vnode, prevVNode, hook) {
1724
+ const modelToUse = resolveDynamicModel(
1725
+ el.tagName,
1726
+ vnode.props && vnode.props.type
1727
+ );
1728
+ const fn = modelToUse[hook];
1729
+ fn && fn(el, binding, vnode, prevVNode);
1730
+ }
1731
+ function initVModelForSSR() {
1732
+ vModelText.getSSRProps = ({ value }) => ({ value });
1733
+ vModelRadio.getSSRProps = ({ value }, vnode) => {
1734
+ if (vnode.props && shared.looseEqual(vnode.props.value, value)) {
1735
+ return { checked: true };
1736
+ }
1737
+ };
1738
+ vModelCheckbox.getSSRProps = ({ value }, vnode) => {
1739
+ if (shared.isArray(value)) {
1740
+ if (vnode.props && shared.looseIndexOf(value, vnode.props.value) > -1) {
1741
+ return { checked: true };
1742
+ }
1743
+ } else if (shared.isSet(value)) {
1744
+ if (vnode.props && value.has(vnode.props.value)) {
1745
+ return { checked: true };
1746
+ }
1747
+ } else if (value) {
1748
+ return { checked: true };
1749
+ }
1750
+ };
1751
+ vModelDynamic.getSSRProps = (binding, vnode) => {
1752
+ if (typeof vnode.type !== "string") {
1753
+ return;
1754
+ }
1755
+ const modelToUse = resolveDynamicModel(
1756
+ // resolveDynamicModel expects an uppercase tag name, but vnode.type is lowercase
1757
+ vnode.type.toUpperCase(),
1758
+ vnode.props && vnode.props.type
1759
+ );
1760
+ if (modelToUse.getSSRProps) {
1761
+ return modelToUse.getSSRProps(binding, vnode);
1762
+ }
1763
+ };
1764
+ }
1765
+
1766
+ const systemModifiers = ["ctrl", "shift", "alt", "meta"];
1767
+ const modifierGuards = {
1768
+ stop: (e) => e.stopPropagation(),
1769
+ prevent: (e) => e.preventDefault(),
1770
+ self: (e) => e.target !== e.currentTarget,
1771
+ ctrl: (e) => !e.ctrlKey,
1772
+ shift: (e) => !e.shiftKey,
1773
+ alt: (e) => !e.altKey,
1774
+ meta: (e) => !e.metaKey,
1775
+ left: (e) => "button" in e && e.button !== 0,
1776
+ middle: (e) => "button" in e && e.button !== 1,
1777
+ right: (e) => "button" in e && e.button !== 2,
1778
+ exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
1779
+ };
1780
+ const withModifiers = (fn, modifiers) => {
1781
+ if (!fn) return fn;
1782
+ const cache = fn._withMods || (fn._withMods = {});
1783
+ const cacheKey = modifiers.join(".");
1784
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
1785
+ for (let i = 0; i < modifiers.length; i++) {
1786
+ const guard = modifierGuards[modifiers[i]];
1787
+ if (guard && guard(event, modifiers)) return;
1788
+ }
1789
+ return fn(event, ...args);
1790
+ }));
1791
+ };
1792
+ const keyNames = {
1793
+ esc: "escape",
1794
+ space: " ",
1795
+ up: "arrow-up",
1796
+ left: "arrow-left",
1797
+ right: "arrow-right",
1798
+ down: "arrow-down",
1799
+ delete: "backspace"
1800
+ };
1801
+ const withKeys = (fn, modifiers) => {
1802
+ const cache = fn._withKeys || (fn._withKeys = {});
1803
+ const cacheKey = modifiers.join(".");
1804
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
1805
+ if (!("key" in event)) {
1806
+ return;
1807
+ }
1808
+ const eventKey = shared.hyphenate(event.key);
1809
+ if (modifiers.some(
1810
+ (k) => k === eventKey || keyNames[k] === eventKey
1811
+ )) {
1812
+ return fn(event);
1813
+ }
1814
+ }));
1815
+ };
1816
+
1817
+ const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
1818
+ let renderer;
1819
+ let enabledHydration = false;
1820
+ function ensureRenderer() {
1821
+ return renderer || (renderer = runtimeCore.createRenderer(rendererOptions));
1822
+ }
1823
+ function ensureHydrationRenderer() {
1824
+ renderer = enabledHydration ? renderer : runtimeCore.createHydrationRenderer(rendererOptions);
1825
+ enabledHydration = true;
1826
+ return renderer;
1827
+ }
1828
+ const render = ((...args) => {
1829
+ ensureRenderer().render(...args);
1830
+ });
1831
+ const hydrate = ((...args) => {
1832
+ ensureHydrationRenderer().hydrate(...args);
1833
+ });
1834
+ const createApp = ((...args) => {
1835
+ const app = ensureRenderer().createApp(...args);
1836
+ const { mount } = app;
1837
+ app.mount = (containerOrSelector) => {
1838
+ const container = normalizeContainer(containerOrSelector);
1839
+ if (!container) return;
1840
+ const component = app._component;
1841
+ if (!shared.isFunction(component) && !component.render && !component.template) {
1842
+ component.template = container.innerHTML;
1843
+ }
1844
+ if (container.nodeType === 1) {
1845
+ container.textContent = "";
1846
+ }
1847
+ const proxy = mount(container, false, resolveRootNamespace(container));
1848
+ if (container instanceof Element) {
1849
+ container.removeAttribute("v-cloak");
1850
+ container.setAttribute("data-v-app", "");
1851
+ }
1852
+ return proxy;
1853
+ };
1854
+ return app;
1855
+ });
1856
+ const createSSRApp = ((...args) => {
1857
+ const app = ensureHydrationRenderer().createApp(...args);
1858
+ const { mount } = app;
1859
+ app.mount = (containerOrSelector) => {
1860
+ const container = normalizeContainer(containerOrSelector);
1861
+ if (container) {
1862
+ return mount(container, true, resolveRootNamespace(container));
1863
+ }
1864
+ };
1865
+ return app;
1866
+ });
1867
+ function resolveRootNamespace(container) {
1868
+ if (container instanceof SVGElement) {
1869
+ return "svg";
1870
+ }
1871
+ if (typeof MathMLElement === "function" && container instanceof MathMLElement) {
1872
+ return "mathml";
1873
+ }
1874
+ }
1875
+ function normalizeContainer(container) {
1876
+ if (shared.isString(container)) {
1877
+ const res = document.querySelector(container);
1878
+ return res;
1879
+ }
1880
+ return container;
1881
+ }
1882
+ let ssrDirectiveInitialized = false;
1883
+ const initDirectivesForSSR = () => {
1884
+ if (!ssrDirectiveInitialized) {
1885
+ ssrDirectiveInitialized = true;
1886
+ initVModelForSSR();
1887
+ initVShowForSSR();
1888
+ }
1889
+ } ;
1890
+
1891
+ exports.Transition = Transition;
1892
+ exports.TransitionGroup = TransitionGroup;
1893
+ exports.VueElement = VueElement;
1894
+ exports.createApp = createApp;
1895
+ exports.createSSRApp = createSSRApp;
1896
+ exports.defineCustomElement = defineCustomElement;
1897
+ exports.defineSSRCustomElement = defineSSRCustomElement;
1898
+ exports.hydrate = hydrate;
1899
+ exports.initDirectivesForSSR = initDirectivesForSSR;
1900
+ exports.nodeOps = nodeOps;
1901
+ exports.patchProp = patchProp;
1902
+ exports.render = render;
1903
+ exports.useCssModule = useCssModule;
1904
+ exports.useCssVars = useCssVars;
1905
+ exports.useHost = useHost;
1906
+ exports.useShadowRoot = useShadowRoot;
1907
+ exports.vModelCheckbox = vModelCheckbox;
1908
+ exports.vModelDynamic = vModelDynamic;
1909
+ exports.vModelRadio = vModelRadio;
1910
+ exports.vModelSelect = vModelSelect;
1911
+ exports.vModelText = vModelText;
1912
+ exports.vShow = vShow;
1913
+ exports.withKeys = withKeys;
1914
+ exports.withModifiers = withModifiers;
1915
+ Object.keys(runtimeCore).forEach(function (k) {
1916
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeCore[k];
1917
+ });