uomtiles 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/1d1PDhA4.js +1 -0
  3. package/.output/public/_nuxt/3B2XYGg4.js +1 -0
  4. package/.output/public/_nuxt/981KwFWf.js +1 -0
  5. package/.output/public/_nuxt/B30dSvM4.js +1 -0
  6. package/.output/public/_nuxt/BN1Gp4Dm.js +1 -0
  7. package/.output/public/_nuxt/BQlj8Xoe.js +6 -0
  8. package/.output/public/_nuxt/BRkljK8J.js +1 -0
  9. package/.output/public/_nuxt/BSdHYVlE2.js +1 -0
  10. package/.output/public/_nuxt/B_MqTg2k2.js +1 -0
  11. package/.output/public/_nuxt/BiWblTbb2.js +64 -0
  12. package/.output/public/_nuxt/BrPwntMr.js +1 -0
  13. package/.output/public/_nuxt/BskybydR.js +1 -0
  14. package/.output/public/_nuxt/ByRlKR9F.js +1 -0
  15. package/.output/public/_nuxt/C0Zdl2EE2.js +1 -0
  16. package/.output/public/_nuxt/C4qlzA4o.js +1 -0
  17. package/.output/public/_nuxt/C7HxHbxA.js +1 -0
  18. package/.output/public/_nuxt/C97TfNgP.js +3 -0
  19. package/.output/public/_nuxt/CNs_Ozdc.js +1 -0
  20. package/.output/public/_nuxt/CPuhwLY1.js +1 -0
  21. package/.output/public/_nuxt/CVE291Pi.js +1 -0
  22. package/.output/public/_nuxt/C_0VY3Cv2.js +4 -0
  23. package/.output/public/_nuxt/Ce26t8_Y.js +1 -0
  24. package/.output/public/_nuxt/CfW544W5.js +1 -0
  25. package/.output/public/_nuxt/CgMd2Y5s.js +2 -0
  26. package/.output/public/_nuxt/CgdzV712.js +1 -0
  27. package/.output/public/_nuxt/D1wVNWS0.js +1 -0
  28. package/.output/public/_nuxt/DC3bhq63.js +1 -0
  29. package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
  30. package/.output/public/_nuxt/DL1MZZLI.js +1 -0
  31. package/.output/public/_nuxt/DXm-42Fi.js +1 -0
  32. package/.output/public/_nuxt/Djg3Kzfv.js +1 -0
  33. package/.output/public/_nuxt/DkcySee1.js +1 -0
  34. package/.output/public/_nuxt/DmN-PKW1.js +1 -0
  35. package/.output/public/_nuxt/DtFVCXI9.js +1 -0
  36. package/.output/public/_nuxt/Dz7VMlHR.js +1 -0
  37. package/.output/public/_nuxt/NL65vbjG2.js +1 -0
  38. package/.output/public/_nuxt/Oxy7pKSk.js +3 -0
  39. package/.output/public/_nuxt/Pik8or8N2.js +1 -0
  40. package/.output/public/_nuxt/XZ59tThl.js +1 -0
  41. package/.output/public/_nuxt/ZpWjFsgV.js +1 -0
  42. package/.output/public/_nuxt/builds/latest.json +1 -0
  43. package/.output/public/_nuxt/builds/meta/9f85104e-738d-4a74-8daa-40b136ce17d5.json +1 -0
  44. package/.output/public/_nuxt/dXz6dFgW2.js +1 -0
  45. package/.output/public/_nuxt/entry.P6tFNE31.css +1 -0
  46. package/.output/public/_nuxt/error-404.Biv0P6cJ.css +1 -0
  47. package/.output/public/_nuxt/error-500.8ok468rV.css +1 -0
  48. package/.output/public/_nuxt/j0MRD-c3.js +1 -0
  49. package/.output/public/_nuxt/local-pixel-diff.worker-C6RdZoCq.js +2 -0
  50. package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +6 -0
  51. package/.output/public/_nuxt/nearest-area.worker-iSLH0Y_s.js +2 -0
  52. package/.output/public/_nuxt/q7DkoVkj.js +828 -0
  53. package/.output/public/_nuxt/raster-tile.worker-BFlOgJig.js +2 -0
  54. package/.output/public/_nuxt/services._3nQizF8.css +1 -0
  55. package/.output/public/_nuxt/sql-wasm.DfANybxk.wasm +0 -0
  56. package/.output/public/_nuxt/tile-diff.worker-CvWWI_eu.js +1 -0
  57. package/.output/public/_nuxt/zZ1EGR7Y.js +1 -0
  58. package/.output/public/apple-touch-icon.png +0 -0
  59. package/.output/public/favicon.ico +0 -0
  60. package/.output/public/favicon.svg +8 -0
  61. package/.output/public/icon-192.png +0 -0
  62. package/.output/public/icon-512.png +0 -0
  63. package/.output/public/site.webmanifest +11 -0
  64. package/.output/server/chunks/_/config.mjs +208 -0
  65. package/.output/server/chunks/_/config.mjs.map +1 -0
  66. package/.output/server/chunks/_/data-directory.mjs +24 -0
  67. package/.output/server/chunks/_/data-directory.mjs.map +1 -0
  68. package/.output/server/chunks/_/error-500.mjs +20 -0
  69. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  70. package/.output/server/chunks/_/file-workspace.mjs +910 -0
  71. package/.output/server/chunks/_/file-workspace.mjs.map +1 -0
  72. package/.output/server/chunks/_/icons.mjs +6269 -0
  73. package/.output/server/chunks/_/icons.mjs.map +1 -0
  74. package/.output/server/chunks/_/map-service.mjs +233 -0
  75. package/.output/server/chunks/_/map-service.mjs.map +1 -0
  76. package/.output/server/chunks/_/missing-tile.mjs +104 -0
  77. package/.output/server/chunks/_/missing-tile.mjs.map +1 -0
  78. package/.output/server/chunks/_/pixel-diff.mjs +78 -0
  79. package/.output/server/chunks/_/pixel-diff.mjs.map +1 -0
  80. package/.output/server/chunks/_/uom-auth.mjs +334 -0
  81. package/.output/server/chunks/_/uom-auth.mjs.map +1 -0
  82. package/.output/server/chunks/_/uom-map.mjs +265 -0
  83. package/.output/server/chunks/_/uom-map.mjs.map +1 -0
  84. package/.output/server/chunks/build/Alert-0ngTJXxP.mjs +5076 -0
  85. package/.output/server/chunks/build/Alert-0ngTJXxP.mjs.map +1 -0
  86. package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs +569 -0
  87. package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs.map +1 -0
  88. package/.output/server/chunks/build/Empty-CkW3mADt.mjs +359 -0
  89. package/.output/server/chunks/build/Empty-CkW3mADt.mjs.map +1 -0
  90. package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs +207 -0
  91. package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs.map +1 -0
  92. package/.output/server/chunks/build/FormField-CEUZHcv7.mjs +278 -0
  93. package/.output/server/chunks/build/FormField-CEUZHcv7.mjs.map +1 -0
  94. package/.output/server/chunks/build/Input-BeNavYXb.mjs +592 -0
  95. package/.output/server/chunks/build/Input-BeNavYXb.mjs.map +1 -0
  96. package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs +2003 -0
  97. package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs.map +1 -0
  98. package/.output/server/chunks/build/Modal-DNZtVxca.mjs +1326 -0
  99. package/.output/server/chunks/build/Modal-DNZtVxca.mjs.map +1 -0
  100. package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs +146 -0
  101. package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs.map +1 -0
  102. package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs +1025 -0
  103. package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs.map +1 -0
  104. package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs +2066 -0
  105. package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs.map +1 -0
  106. package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs +379 -0
  107. package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs.map +1 -0
  108. package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs +1087 -0
  109. package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs.map +1 -0
  110. package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs +1345 -0
  111. package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs.map +1 -0
  112. package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs +7 -0
  113. package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs.map +1 -0
  114. package/.output/server/chunks/build/advanced-D1onodoF.mjs +1430 -0
  115. package/.output/server/chunks/build/advanced-D1onodoF.mjs.map +1 -0
  116. package/.output/server/chunks/build/compare-DmSAW8oA.mjs +1093 -0
  117. package/.output/server/chunks/build/compare-DmSAW8oA.mjs.map +1 -0
  118. package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs +3217 -0
  119. package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs.map +1 -0
  120. package/.output/server/chunks/build/details-CBMqXYyo.mjs +3714 -0
  121. package/.output/server/chunks/build/details-CBMqXYyo.mjs.map +1 -0
  122. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +86 -0
  123. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -0
  124. package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs +9 -0
  125. package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs.map +1 -0
  126. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +74 -0
  127. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -0
  128. package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs +9 -0
  129. package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs.map +1 -0
  130. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +1121 -0
  131. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -0
  132. package/.output/server/chunks/build/interval-BxUMpo78.mjs +411 -0
  133. package/.output/server/chunks/build/interval-BxUMpo78.mjs.map +1 -0
  134. package/.output/server/chunks/build/login-lbtjN0MV.mjs +642 -0
  135. package/.output/server/chunks/build/login-lbtjN0MV.mjs.map +1 -0
  136. package/.output/server/chunks/build/pages-Ba0Eixbd.mjs +220 -0
  137. package/.output/server/chunks/build/pages-Ba0Eixbd.mjs.map +1 -0
  138. package/.output/server/chunks/build/services-DuJwjAB8.mjs +3005 -0
  139. package/.output/server/chunks/build/services-DuJwjAB8.mjs.map +1 -0
  140. package/.output/server/chunks/build/services-styles.eoO16BY9.mjs +9 -0
  141. package/.output/server/chunks/build/services-styles.eoO16BY9.mjs.map +1 -0
  142. package/.output/server/chunks/build/tasks-CyN9x492.mjs +915 -0
  143. package/.output/server/chunks/build/tasks-CyN9x492.mjs.map +1 -0
  144. package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs +87 -0
  145. package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs.map +1 -0
  146. package/.output/server/chunks/nitro/nitro.mjs +6215 -0
  147. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  148. package/.output/server/chunks/routes/api/auth/captcha.post.mjs +21 -0
  149. package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -0
  150. package/.output/server/chunks/routes/api/auth/login.post.mjs +27 -0
  151. package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -0
  152. package/.output/server/chunks/routes/api/auth/logout.post.mjs +22 -0
  153. package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -0
  154. package/.output/server/chunks/routes/api/auth/map-token.post.mjs +22 -0
  155. package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -0
  156. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +31 -0
  157. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -0
  158. package/.output/server/chunks/routes/api/auth/status.get.mjs +21 -0
  159. package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -0
  160. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +44 -0
  161. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
  162. package/.output/server/chunks/routes/api/map/live/status.get.mjs +32 -0
  163. package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -0
  164. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +48 -0
  165. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
  166. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +46 -0
  167. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -0
  168. package/.output/server/chunks/routes/api/map-service/config.post.mjs +38 -0
  169. package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -0
  170. package/.output/server/chunks/routes/api/map-service/file.post.mjs +41 -0
  171. package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -0
  172. package/.output/server/chunks/routes/api/map-service/source.post.mjs +35 -0
  173. package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -0
  174. package/.output/server/chunks/routes/api/map-service/status.get.mjs +32 -0
  175. package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -0
  176. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +47 -0
  177. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -0
  178. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +38 -0
  179. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -0
  180. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +42 -0
  181. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -0
  182. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +48 -0
  183. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -0
  184. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +45 -0
  185. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -0
  186. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +32 -0
  187. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -0
  188. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +38 -0
  189. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -0
  190. package/.output/server/chunks/routes/api/workspace/compare.post.mjs +33 -0
  191. package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -0
  192. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +33 -0
  193. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -0
  194. package/.output/server/chunks/routes/api/workspace/files.get.mjs +27 -0
  195. package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -0
  196. package/.output/server/chunks/routes/api/workspace/files.post.mjs +38 -0
  197. package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -0
  198. package/.output/server/chunks/routes/api/workspace/stop.post.mjs +32 -0
  199. package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -0
  200. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +36 -0
  201. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -0
  202. package/.output/server/chunks/routes/renderer.mjs +422 -0
  203. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  204. package/.output/server/chunks/routes/services/wms.get.mjs +54 -0
  205. package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -0
  206. package/.output/server/chunks/routes/services/wmts.get.mjs +54 -0
  207. package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -0
  208. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  209. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  210. package/.output/server/chunks/virtual/entry.mjs +18545 -0
  211. package/.output/server/chunks/virtual/entry.mjs.map +1 -0
  212. package/.output/server/chunks/virtual/precomputed.mjs +4 -0
  213. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
  214. package/.output/server/chunks/virtual/styles.mjs +10 -0
  215. package/.output/server/chunks/virtual/styles.mjs.map +1 -0
  216. package/.output/server/index.mjs +12 -0
  217. package/.output/server/index.mjs.map +1 -0
  218. package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
  219. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  220. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  221. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  222. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  223. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  224. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  225. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  226. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  227. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  228. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  229. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  230. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  231. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  232. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  233. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  234. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  235. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  236. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  237. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  238. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  239. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  240. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  241. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  242. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  243. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  244. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  245. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  246. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  247. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  248. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  249. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  250. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  251. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  252. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  253. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  254. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  255. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  256. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  257. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  258. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  259. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  260. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  261. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  262. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  263. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  264. package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  265. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  266. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  267. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  268. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  269. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  270. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  271. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  272. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  273. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  274. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  275. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  276. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  277. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  278. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  279. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  280. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  281. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  282. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  283. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  284. package/.output/server/node_modules/@iconify/utils/package.json +119 -0
  285. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
  286. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  287. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
  288. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  289. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
  290. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  291. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
  292. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  293. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
  294. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  295. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
  296. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  297. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
  298. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  299. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
  300. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  301. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  302. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  303. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  304. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  305. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  306. package/.output/server/node_modules/consola/package.json +136 -0
  307. package/.output/server/node_modules/devalue/index.js +17 -0
  308. package/.output/server/node_modules/devalue/package.json +39 -0
  309. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  310. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  311. package/.output/server/node_modules/devalue/src/operations.js +193 -0
  312. package/.output/server/node_modules/devalue/src/parse.js +270 -0
  313. package/.output/server/node_modules/devalue/src/stringify.js +428 -0
  314. package/.output/server/node_modules/devalue/src/uneval.js +582 -0
  315. package/.output/server/node_modules/devalue/src/utils.js +185 -0
  316. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  317. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  318. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  319. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  320. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  321. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  322. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  323. package/.output/server/node_modules/entities/package.json +120 -0
  324. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  325. package/.output/server/node_modules/estree-walker/package.json +37 -0
  326. package/.output/server/node_modules/fflate/esm/index.mjs +2710 -0
  327. package/.output/server/node_modules/fflate/package.json +128 -0
  328. package/.output/server/node_modules/fnv1a-64/dist/index.mjs +95 -0
  329. package/.output/server/node_modules/fnv1a-64/package.json +75 -0
  330. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  331. package/.output/server/node_modules/hookable/package.json +53 -0
  332. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
  333. package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
  334. package/.output/server/node_modules/nostics/package.json +125 -0
  335. package/.output/server/node_modules/object-identity/index.js +60 -0
  336. package/.output/server/node_modules/object-identity/package.json +40 -0
  337. package/.output/server/node_modules/p-limit/index.js +104 -0
  338. package/.output/server/node_modules/p-limit/package.json +58 -0
  339. package/.output/server/node_modules/pmtiles/dist/esm/index.js +2 -0
  340. package/.output/server/node_modules/pmtiles/package.json +50 -0
  341. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  342. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  343. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  344. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  345. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  346. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  347. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  348. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  349. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  350. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  351. package/.output/server/node_modules/source-map-js/package.json +71 -0
  352. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  353. package/.output/server/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs +1 -0
  354. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  355. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  356. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  357. package/.output/server/node_modules/ufo/package.json +48 -0
  358. package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
  359. package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
  360. package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
  361. package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
  362. package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
  363. package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
  364. package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
  365. package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
  366. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
  367. package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
  368. package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
  369. package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
  370. package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +585 -0
  371. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
  372. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
  373. package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +223 -0
  374. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
  375. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
  376. package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
  377. package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +196 -0
  378. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
  379. package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
  380. package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +19 -0
  381. package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
  382. package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
  383. package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
  384. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
  385. package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
  386. package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
  387. package/.output/server/node_modules/unhead/package.json +179 -0
  388. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  389. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  390. package/.output/server/node_modules/vue/index.js +7 -0
  391. package/.output/server/node_modules/vue/index.mjs +1 -0
  392. package/.output/server/node_modules/vue/package.json +112 -0
  393. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  394. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
  395. package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
  396. package/.output/server/node_modules/yocto-queue/index.js +90 -0
  397. package/.output/server/node_modules/yocto-queue/package.json +48 -0
  398. package/.output/server/node_modules/zod/index.js +4 -0
  399. package/.output/server/node_modules/zod/package.json +135 -0
  400. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  401. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  402. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  403. package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
  404. package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
  405. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  406. package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
  407. package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
  408. package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
  409. package/.output/server/node_modules/zod/v4/classic/schemas.js +1395 -0
  410. package/.output/server/node_modules/zod/v4/core/api.js +1087 -0
  411. package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
  412. package/.output/server/node_modules/zod/v4/core/core.js +78 -0
  413. package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
  414. package/.output/server/node_modules/zod/v4/core/errors.js +185 -0
  415. package/.output/server/node_modules/zod/v4/core/index.js +16 -0
  416. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  417. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  418. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  419. package/.output/server/node_modules/zod/v4/core/package.json +7 -0
  420. package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
  421. package/.output/server/node_modules/zod/v4/core/regexes.js +139 -0
  422. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  423. package/.output/server/node_modules/zod/v4/core/schemas.js +2239 -0
  424. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +448 -0
  425. package/.output/server/node_modules/zod/v4/core/util.js +674 -0
  426. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  427. package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
  428. package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
  429. package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
  430. package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
  431. package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
  432. package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
  433. package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
  434. package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
  435. package/.output/server/node_modules/zod/v4/locales/el.js +109 -0
  436. package/.output/server/node_modules/zod/v4/locales/en.js +113 -0
  437. package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
  438. package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
  439. package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
  440. package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
  441. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
  442. package/.output/server/node_modules/zod/v4/locales/fr.js +125 -0
  443. package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
  444. package/.output/server/node_modules/zod/v4/locales/hr.js +122 -0
  445. package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
  446. package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
  447. package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
  448. package/.output/server/node_modules/zod/v4/locales/index.js +52 -0
  449. package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
  450. package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
  451. package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
  452. package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
  453. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  454. package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
  455. package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
  456. package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
  457. package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
  458. package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
  459. package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
  460. package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
  461. package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
  462. package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
  463. package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
  464. package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
  465. package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
  466. package/.output/server/node_modules/zod/v4/locales/ro.js +119 -0
  467. package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
  468. package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
  469. package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
  470. package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
  471. package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
  472. package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
  473. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  474. package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
  475. package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
  476. package/.output/server/node_modules/zod/v4/locales/uz.js +110 -0
  477. package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
  478. package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
  479. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
  480. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
  481. package/.output/server/package.json +37 -0
  482. package/LICENSE +3 -0
  483. package/README.md +125 -0
  484. package/dist/src/bbox.js +55 -0
  485. package/dist/src/cli.js +255 -0
  486. package/dist/src/config.js +56 -0
  487. package/dist/src/core/fetch-process.js +19 -0
  488. package/dist/src/core/grid-renderer.js +149 -0
  489. package/dist/src/core/lease.js +103 -0
  490. package/dist/src/core/paths.js +13 -0
  491. package/dist/src/core/png.js +192 -0
  492. package/dist/src/core/raster-style.js +33 -0
  493. package/dist/src/core/uomtiles.js +307 -0
  494. package/dist/src/fetcher.js +208 -0
  495. package/dist/src/geographic-grid.js +162 -0
  496. package/dist/src/grid-crawl.js +478 -0
  497. package/dist/src/mask-image.js +16 -0
  498. package/dist/src/official-grid.js +51 -0
  499. package/dist/src/quality.js +30 -0
  500. package/dist/src/token.js +206 -0
  501. package/package.json +68 -0
  502. package/public/apple-touch-icon.png +0 -0
  503. package/public/favicon.ico +0 -0
  504. package/public/favicon.svg +8 -0
  505. package/public/icon-192.png +0 -0
  506. package/public/icon-512.png +0 -0
  507. package/public/site.webmanifest +11 -0
@@ -0,0 +1,1841 @@
1
+ /**
2
+ * @vue/runtime-dom v3.5.41
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
+ el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
496
+ if (el[vShowHidden]) {
497
+ style.display = "none";
498
+ }
499
+ }
500
+ }
501
+ const importantRE = /\s*!important$/;
502
+ function setStyle(style, name, val) {
503
+ if (shared.isArray(val)) {
504
+ val.forEach((v) => setStyle(style, name, v));
505
+ } else {
506
+ if (val == null) val = "";
507
+ if (name.startsWith("--")) {
508
+ style.setProperty(name, val);
509
+ } else {
510
+ const prefixed = autoPrefix(style, name);
511
+ if (importantRE.test(val)) {
512
+ style.setProperty(
513
+ shared.hyphenate(prefixed),
514
+ val.replace(importantRE, ""),
515
+ "important"
516
+ );
517
+ } else {
518
+ style[prefixed] = val;
519
+ }
520
+ }
521
+ }
522
+ }
523
+ const prefixes = ["Webkit", "Moz", "ms"];
524
+ const prefixCache = {};
525
+ function autoPrefix(style, rawName) {
526
+ const cached = prefixCache[rawName];
527
+ if (cached) {
528
+ return cached;
529
+ }
530
+ let name = runtimeCore.camelize(rawName);
531
+ if (name !== "filter" && name in style) {
532
+ return prefixCache[rawName] = name;
533
+ }
534
+ name = shared.capitalize(name);
535
+ for (let i = 0; i < prefixes.length; i++) {
536
+ const prefixed = prefixes[i] + name;
537
+ if (prefixed in style) {
538
+ return prefixCache[rawName] = prefixed;
539
+ }
540
+ }
541
+ return rawName;
542
+ }
543
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
544
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && shared.isString(next) && prev === next;
545
+ }
546
+
547
+ const xlinkNS = "http://www.w3.org/1999/xlink";
548
+ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
549
+ if (isSVG && key.startsWith("xlink:")) {
550
+ if (value == null) {
551
+ el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
552
+ } else {
553
+ el.setAttributeNS(xlinkNS, key, value);
554
+ }
555
+ } else {
556
+ if (value == null || isBoolean && !shared.includeBooleanAttr(value)) {
557
+ el.removeAttribute(key);
558
+ } else {
559
+ el.setAttribute(
560
+ key,
561
+ isBoolean ? "" : shared.isSymbol(value) ? String(value) : value
562
+ );
563
+ }
564
+ }
565
+ }
566
+
567
+ function patchDOMProp(el, key, value, parentComponent, attrName) {
568
+ if (key === "innerHTML" || key === "textContent") {
569
+ if (value != null) {
570
+ el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
571
+ }
572
+ return;
573
+ }
574
+ const tag = el.tagName;
575
+ if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
576
+ !tag.includes("-")) {
577
+ const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
578
+ const newValue = value == null ? (
579
+ // #11647: value should be set as empty string for null and undefined,
580
+ // but <input type="checkbox"> should be set as 'on'.
581
+ el.type === "checkbox" ? "on" : ""
582
+ ) : String(value);
583
+ if (oldValue !== newValue || !("_value" in el)) {
584
+ el.value = newValue;
585
+ }
586
+ if (value == null) {
587
+ el.removeAttribute(key);
588
+ }
589
+ el._value = value;
590
+ return;
591
+ }
592
+ let needRemove = false;
593
+ if (value === "" || value == null) {
594
+ const type = typeof el[key];
595
+ if (type === "boolean") {
596
+ value = shared.includeBooleanAttr(value);
597
+ } else if (value == null && type === "string") {
598
+ value = "";
599
+ needRemove = true;
600
+ } else if (type === "number") {
601
+ value = 0;
602
+ needRemove = true;
603
+ }
604
+ }
605
+ try {
606
+ el[key] = value;
607
+ } catch (e) {
608
+ }
609
+ needRemove && el.removeAttribute(attrName || key);
610
+ }
611
+
612
+ function addEventListener(el, event, handler, options) {
613
+ el.addEventListener(event, handler, options);
614
+ }
615
+ function removeEventListener(el, event, handler, options) {
616
+ el.removeEventListener(event, handler, options);
617
+ }
618
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
619
+ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
620
+ const invokers = el[veiKey] || (el[veiKey] = {});
621
+ const existingInvoker = invokers[rawName];
622
+ if (nextValue && existingInvoker) {
623
+ existingInvoker.value = nextValue;
624
+ } else {
625
+ const [name, options] = parseName(rawName);
626
+ if (nextValue) {
627
+ const invoker = invokers[rawName] = createInvoker(
628
+ nextValue,
629
+ instance
630
+ );
631
+ addEventListener(el, name, invoker, options);
632
+ } else if (existingInvoker) {
633
+ removeEventListener(el, name, existingInvoker, options);
634
+ invokers[rawName] = void 0;
635
+ }
636
+ }
637
+ }
638
+ const optionsModifierRE = /(Once|Passive|Capture)$/;
639
+ const optionsModifierEventRE = /^on:?(?:Once|Passive|Capture)$/;
640
+ function parseName(name) {
641
+ let options;
642
+ let m;
643
+ while ((m = name.match(optionsModifierRE)) && !optionsModifierEventRE.test(name)) {
644
+ if (!options) options = {};
645
+ name = name.slice(0, name.length - m[1].length);
646
+ options[m[1].toLowerCase()] = true;
647
+ }
648
+ const event = name[2] === ":" ? name.slice(3) : shared.hyphenate(name.slice(2));
649
+ return [event, options];
650
+ }
651
+ let cachedNow = 0;
652
+ const p = /* @__PURE__ */ Promise.resolve();
653
+ const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
654
+ function createInvoker(initialValue, instance) {
655
+ const invoker = (e) => {
656
+ if (!e._vts) {
657
+ e._vts = Date.now();
658
+ } else if (e._vts <= invoker.attached) {
659
+ return;
660
+ }
661
+ const value = invoker.value;
662
+ if (shared.isArray(value)) {
663
+ const originalStop = e.stopImmediatePropagation;
664
+ e.stopImmediatePropagation = () => {
665
+ originalStop.call(e);
666
+ e._stopped = true;
667
+ };
668
+ const handlers = value.slice();
669
+ const args = [e];
670
+ for (let i = 0; i < handlers.length; i++) {
671
+ if (e._stopped) {
672
+ break;
673
+ }
674
+ const handler = handlers[i];
675
+ if (handler) {
676
+ runtimeCore.callWithAsyncErrorHandling(
677
+ handler,
678
+ instance,
679
+ 5,
680
+ args
681
+ );
682
+ }
683
+ }
684
+ } else {
685
+ runtimeCore.callWithAsyncErrorHandling(
686
+ value,
687
+ instance,
688
+ 5,
689
+ [e]
690
+ );
691
+ }
692
+ };
693
+ invoker.value = initialValue;
694
+ invoker.attached = getNow();
695
+ return invoker;
696
+ }
697
+
698
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
699
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
700
+ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
701
+ const isSVG = namespace === "svg";
702
+ if (key === "class") {
703
+ patchClass(el, nextValue, isSVG);
704
+ } else if (key === "style") {
705
+ patchStyle(el, prevValue, nextValue);
706
+ } else if (shared.isOn(key)) {
707
+ if (!shared.isModelListener(key)) {
708
+ patchEvent(el, key, prevValue, nextValue, parentComponent);
709
+ }
710
+ } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
711
+ patchDOMProp(el, key, nextValue);
712
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
713
+ patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
714
+ }
715
+ } else if (
716
+ // #11081 force set props for possible async custom element
717
+ el._isVueCE && // #12408 check if it's declared prop or it's async custom element
718
+ (shouldSetAsPropForVueCE(el, key) || // @ts-expect-error _def is private
719
+ el._def.__asyncLoader && (/[A-Z]/.test(key) || !shared.isString(nextValue)))
720
+ ) {
721
+ patchDOMProp(el, shared.camelize(key), nextValue, parentComponent, key);
722
+ } else {
723
+ if (key === "true-value") {
724
+ el._trueValue = nextValue;
725
+ } else if (key === "false-value") {
726
+ el._falseValue = nextValue;
727
+ }
728
+ patchAttr(el, key, nextValue, isSVG);
729
+ }
730
+ };
731
+ function shouldSetAsProp(el, key, value, isSVG) {
732
+ if (isSVG) {
733
+ if (key === "innerHTML" || key === "textContent") {
734
+ return true;
735
+ }
736
+ if (key in el && isNativeOn(key) && shared.isFunction(value)) {
737
+ return true;
738
+ }
739
+ return false;
740
+ }
741
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
742
+ return false;
743
+ }
744
+ if (key === "sandbox" && el.tagName === "IFRAME") {
745
+ return false;
746
+ }
747
+ if (key === "form") {
748
+ return false;
749
+ }
750
+ if (key === "list" && el.tagName === "INPUT") {
751
+ return false;
752
+ }
753
+ if (key === "type" && el.tagName === "TEXTAREA") {
754
+ return false;
755
+ }
756
+ if (key === "width" || key === "height") {
757
+ const tag = el.tagName;
758
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
759
+ return false;
760
+ }
761
+ }
762
+ if (isNativeOn(key) && shared.isString(value)) {
763
+ return false;
764
+ }
765
+ return key in el;
766
+ }
767
+ function shouldSetAsPropForVueCE(el, key) {
768
+ const props = (
769
+ // @ts-expect-error _def is private
770
+ el._def.props
771
+ );
772
+ if (!props) {
773
+ return false;
774
+ }
775
+ const camelKey = shared.camelize(key);
776
+ return Array.isArray(props) ? props.some((prop) => shared.camelize(prop) === camelKey) : Object.keys(props).some((prop) => shared.camelize(prop) === camelKey);
777
+ }
778
+
779
+ const REMOVAL = {};
780
+ // @__NO_SIDE_EFFECTS__
781
+ function defineCustomElement(options, extraOptions, _createApp) {
782
+ let Comp = runtimeCore.defineComponent(options, extraOptions);
783
+ if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
784
+ class VueCustomElement extends VueElement {
785
+ constructor(initialProps) {
786
+ super(Comp, initialProps, _createApp);
787
+ }
788
+ }
789
+ VueCustomElement.def = Comp;
790
+ return VueCustomElement;
791
+ }
792
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
793
+ return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
794
+ });
795
+ const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
796
+ };
797
+ class VueElement extends BaseClass {
798
+ constructor(_def, _props = {}, _createApp = createApp) {
799
+ super();
800
+ this._def = _def;
801
+ this._props = _props;
802
+ this._createApp = _createApp;
803
+ this._isVueCE = true;
804
+ /**
805
+ * @internal
806
+ */
807
+ this._instance = null;
808
+ /**
809
+ * @internal
810
+ */
811
+ this._app = null;
812
+ /**
813
+ * @internal
814
+ */
815
+ this._nonce = this._def.nonce;
816
+ this._connected = false;
817
+ this._resolved = false;
818
+ this._patching = false;
819
+ this._dirty = false;
820
+ this._numberProps = null;
821
+ this._styleChildren = /* @__PURE__ */ new WeakSet();
822
+ this._styleAnchors = /* @__PURE__ */ new WeakMap();
823
+ this._ob = null;
824
+ if (this.shadowRoot && _createApp !== createApp) {
825
+ this._root = this.shadowRoot;
826
+ } else {
827
+ if (_def.shadowRoot !== false) {
828
+ this.attachShadow(
829
+ shared.extend({}, _def.shadowRootOptions, {
830
+ mode: "open"
831
+ })
832
+ );
833
+ this._root = this.shadowRoot;
834
+ } else {
835
+ this._root = this;
836
+ }
837
+ }
838
+ }
839
+ connectedCallback() {
840
+ if (!this.isConnected) return;
841
+ if (!this.shadowRoot && !this._resolved) {
842
+ this._parseSlots();
843
+ }
844
+ this._connected = true;
845
+ let parent = this;
846
+ while (parent = parent && // #12479 should check assignedSlot first to get correct parent
847
+ (parent.assignedSlot || parent.parentNode || parent.host)) {
848
+ if (parent instanceof VueElement) {
849
+ this._parent = parent;
850
+ break;
851
+ }
852
+ }
853
+ if (!this._instance) {
854
+ if (this._resolved) {
855
+ this._mount(this._def);
856
+ } else {
857
+ if (parent && parent._pendingResolve) {
858
+ this._pendingResolve = parent._pendingResolve.then(() => {
859
+ this._pendingResolve = void 0;
860
+ if (this.isConnected) {
861
+ return this._resolveDef();
862
+ }
863
+ });
864
+ } else {
865
+ this._resolveDef();
866
+ }
867
+ }
868
+ }
869
+ }
870
+ _setParent(parent = this._parent) {
871
+ if (parent) {
872
+ this._instance.parent = parent._instance;
873
+ this._inheritParentContext(parent);
874
+ }
875
+ }
876
+ _inheritParentContext(parent = this._parent) {
877
+ if (parent && this._app) {
878
+ Object.setPrototypeOf(
879
+ this._app._context.provides,
880
+ parent._instance.provides
881
+ );
882
+ }
883
+ }
884
+ disconnectedCallback() {
885
+ this._connected = false;
886
+ runtimeCore.nextTick(() => {
887
+ if (!this._connected) {
888
+ if (this._ob) {
889
+ this._ob.disconnect();
890
+ this._ob = null;
891
+ }
892
+ this._app && this._app.unmount();
893
+ if (this._instance) this._instance.ce = void 0;
894
+ this._app = this._instance = null;
895
+ if (this._teleportTargets) {
896
+ this._teleportTargets.clear();
897
+ this._teleportTargets = void 0;
898
+ }
899
+ }
900
+ });
901
+ }
902
+ _processMutations(mutations) {
903
+ for (const m of mutations) {
904
+ this._setAttr(m.attributeName);
905
+ }
906
+ }
907
+ /**
908
+ * resolve inner component definition (handle possible async component)
909
+ */
910
+ _resolveDef() {
911
+ if (this._pendingResolve) {
912
+ return this._pendingResolve;
913
+ }
914
+ for (let i = 0; i < this.attributes.length; i++) {
915
+ this._setAttr(this.attributes[i].name);
916
+ }
917
+ this._ob = new MutationObserver(this._processMutations.bind(this));
918
+ this._ob.observe(this, { attributes: true });
919
+ const resolve = (def, isAsync = false) => {
920
+ this._resolved = true;
921
+ this._pendingResolve = void 0;
922
+ const { props, styles } = def;
923
+ let numberProps;
924
+ if (props && !shared.isArray(props)) {
925
+ for (const key in props) {
926
+ const opt = props[key];
927
+ if (opt === Number || opt && opt.type === Number) {
928
+ if (key in this._props) {
929
+ this._props[key] = shared.toNumber(this._props[key]);
930
+ }
931
+ (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[shared.camelize(key)] = true;
932
+ }
933
+ }
934
+ }
935
+ this._numberProps = numberProps;
936
+ this._resolveProps(def);
937
+ if (this.shadowRoot) {
938
+ this._applyStyles(styles);
939
+ }
940
+ this._mount(def);
941
+ };
942
+ const asyncDef = this._def.__asyncLoader;
943
+ if (asyncDef) {
944
+ this._pendingResolve = asyncDef().then((def) => {
945
+ def.configureApp = this._def.configureApp;
946
+ resolve(this._def = def, true);
947
+ });
948
+ return this._pendingResolve;
949
+ } else {
950
+ resolve(this._def);
951
+ }
952
+ }
953
+ _mount(def) {
954
+ this._app = this._createApp(def);
955
+ this._inheritParentContext();
956
+ if (def.configureApp) {
957
+ def.configureApp(this._app);
958
+ }
959
+ this._app._ceVNode = this._createVNode();
960
+ this._app.mount(this._root);
961
+ const exposed = this._instance && this._instance.exposed;
962
+ if (!exposed) return;
963
+ for (const key in exposed) {
964
+ if (!shared.hasOwn(this, key)) {
965
+ Object.defineProperty(this, key, {
966
+ // unwrap ref to be consistent with public instance behavior
967
+ get: () => runtimeCore.unref(exposed[key])
968
+ });
969
+ }
970
+ }
971
+ }
972
+ _resolveProps(def) {
973
+ const { props } = def;
974
+ const declaredPropKeys = shared.isArray(props) ? props : Object.keys(props || {});
975
+ for (const key of Object.keys(this)) {
976
+ if (key[0] !== "_" && declaredPropKeys.includes(key)) {
977
+ this._setProp(key, this[key]);
978
+ }
979
+ }
980
+ for (const key of declaredPropKeys.map(shared.camelize)) {
981
+ Object.defineProperty(this, key, {
982
+ get() {
983
+ return this._getProp(key);
984
+ },
985
+ set(val) {
986
+ this._setProp(key, val, true, !this._patching);
987
+ }
988
+ });
989
+ }
990
+ }
991
+ _setAttr(key) {
992
+ if (key.startsWith("data-v-")) return;
993
+ const has = this.hasAttribute(key);
994
+ let value = has ? this.getAttribute(key) : REMOVAL;
995
+ const camelKey = shared.camelize(key);
996
+ if (has && this._numberProps && this._numberProps[camelKey]) {
997
+ value = shared.toNumber(value);
998
+ }
999
+ this._setProp(camelKey, value, false, true);
1000
+ }
1001
+ /**
1002
+ * @internal
1003
+ */
1004
+ _getProp(key) {
1005
+ return this._props[key];
1006
+ }
1007
+ /**
1008
+ * @internal
1009
+ */
1010
+ _setProp(key, val, shouldReflect = true, shouldUpdate = false) {
1011
+ if (val !== this._props[key]) {
1012
+ this._dirty = true;
1013
+ if (val === REMOVAL) {
1014
+ delete this._props[key];
1015
+ } else {
1016
+ this._props[key] = val;
1017
+ if (key === "key" && this._app) {
1018
+ this._app._ceVNode.key = val;
1019
+ }
1020
+ }
1021
+ if (shouldUpdate && this._instance) {
1022
+ this._update();
1023
+ }
1024
+ if (shouldReflect) {
1025
+ const ob = this._ob;
1026
+ if (ob) {
1027
+ this._processMutations(ob.takeRecords());
1028
+ ob.disconnect();
1029
+ }
1030
+ if (val === true) {
1031
+ this.setAttribute(shared.hyphenate(key), "");
1032
+ } else if (typeof val === "string" || typeof val === "number") {
1033
+ this.setAttribute(shared.hyphenate(key), val + "");
1034
+ } else if (!val) {
1035
+ this.removeAttribute(shared.hyphenate(key));
1036
+ }
1037
+ ob && ob.observe(this, { attributes: true });
1038
+ }
1039
+ }
1040
+ }
1041
+ _update() {
1042
+ const vnode = this._createVNode();
1043
+ if (this._app) vnode.appContext = this._app._context;
1044
+ render(vnode, this._root);
1045
+ }
1046
+ _createVNode() {
1047
+ const baseProps = {};
1048
+ if (!this.shadowRoot) {
1049
+ baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
1050
+ }
1051
+ const vnode = runtimeCore.createVNode(this._def, shared.extend(baseProps, this._props));
1052
+ if (!this._instance) {
1053
+ vnode.ce = (instance) => {
1054
+ this._instance = instance;
1055
+ instance.ce = this;
1056
+ instance.isCE = true;
1057
+ const dispatch = (event, args) => {
1058
+ this.dispatchEvent(
1059
+ new CustomEvent(
1060
+ event,
1061
+ shared.isPlainObject(args[0]) ? shared.extend({ detail: args }, args[0]) : { detail: args }
1062
+ )
1063
+ );
1064
+ };
1065
+ instance.emit = (event, ...args) => {
1066
+ dispatch(event, args);
1067
+ if (shared.hyphenate(event) !== event) {
1068
+ dispatch(shared.hyphenate(event), args);
1069
+ }
1070
+ };
1071
+ this._setParent();
1072
+ };
1073
+ }
1074
+ return vnode;
1075
+ }
1076
+ _applyStyles(styles, owner, parentComp) {
1077
+ if (!styles) return;
1078
+ if (owner) {
1079
+ if (owner === this._def || this._styleChildren.has(owner)) {
1080
+ return;
1081
+ }
1082
+ this._styleChildren.add(owner);
1083
+ }
1084
+ const nonce = this._nonce;
1085
+ const root = this.shadowRoot;
1086
+ const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
1087
+ let last = null;
1088
+ for (let i = styles.length - 1; i >= 0; i--) {
1089
+ const s = document.createElement("style");
1090
+ if (nonce) s.setAttribute("nonce", nonce);
1091
+ s.textContent = styles[i];
1092
+ root.insertBefore(s, last || insertionAnchor);
1093
+ last = s;
1094
+ if (i === 0) {
1095
+ if (!parentComp) this._styleAnchors.set(this._def, s);
1096
+ if (owner) this._styleAnchors.set(owner, s);
1097
+ }
1098
+ }
1099
+ }
1100
+ _getStyleAnchor(comp) {
1101
+ if (!comp) {
1102
+ return null;
1103
+ }
1104
+ const anchor = this._styleAnchors.get(comp);
1105
+ if (anchor && anchor.parentNode === this.shadowRoot) {
1106
+ return anchor;
1107
+ }
1108
+ if (anchor) {
1109
+ this._styleAnchors.delete(comp);
1110
+ }
1111
+ return null;
1112
+ }
1113
+ _getRootStyleInsertionAnchor(root) {
1114
+ for (let i = 0; i < root.childNodes.length; i++) {
1115
+ const node = root.childNodes[i];
1116
+ if (!(node instanceof HTMLStyleElement)) {
1117
+ return node;
1118
+ }
1119
+ }
1120
+ return null;
1121
+ }
1122
+ /**
1123
+ * Only called when shadowRoot is false
1124
+ */
1125
+ _parseSlots() {
1126
+ const slots = this._slots = {};
1127
+ let n;
1128
+ while (n = this.firstChild) {
1129
+ const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
1130
+ (slots[slotName] || (slots[slotName] = [])).push(n);
1131
+ this.removeChild(n);
1132
+ }
1133
+ }
1134
+ /**
1135
+ * Only called when shadowRoot is false
1136
+ */
1137
+ _renderSlots() {
1138
+ const outlets = this._getSlots();
1139
+ const scopeId = this._instance.type.__scopeId;
1140
+ for (let i = 0; i < outlets.length; i++) {
1141
+ const o = outlets[i];
1142
+ const slotName = o.getAttribute("name") || "default";
1143
+ const content = this._slots[slotName];
1144
+ const parent = o.parentNode;
1145
+ if (content) {
1146
+ for (const n of content) {
1147
+ if (scopeId && n.nodeType === 1) {
1148
+ const id = scopeId + "-s";
1149
+ const walker = document.createTreeWalker(n, 1);
1150
+ n.setAttribute(id, "");
1151
+ let child;
1152
+ while (child = walker.nextNode()) {
1153
+ child.setAttribute(id, "");
1154
+ }
1155
+ }
1156
+ parent.insertBefore(n, o);
1157
+ }
1158
+ } else {
1159
+ while (o.firstChild) parent.insertBefore(o.firstChild, o);
1160
+ }
1161
+ parent.removeChild(o);
1162
+ }
1163
+ }
1164
+ /**
1165
+ * @internal
1166
+ */
1167
+ _getSlots() {
1168
+ const roots = [this];
1169
+ if (this._teleportTargets) {
1170
+ roots.push(...this._teleportTargets);
1171
+ }
1172
+ const slots = /* @__PURE__ */ new Set();
1173
+ for (const root of roots) {
1174
+ const found = root.querySelectorAll("slot");
1175
+ for (let i = 0; i < found.length; i++) {
1176
+ slots.add(found[i]);
1177
+ }
1178
+ }
1179
+ return Array.from(slots);
1180
+ }
1181
+ /**
1182
+ * @internal
1183
+ */
1184
+ _injectChildStyle(comp, parentComp) {
1185
+ this._applyStyles(comp.styles, comp, parentComp);
1186
+ }
1187
+ /**
1188
+ * @internal
1189
+ */
1190
+ _beginPatch() {
1191
+ this._patching = true;
1192
+ this._dirty = false;
1193
+ }
1194
+ /**
1195
+ * @internal
1196
+ */
1197
+ _endPatch() {
1198
+ this._patching = false;
1199
+ if (this._dirty && this._instance) {
1200
+ this._update();
1201
+ }
1202
+ }
1203
+ /**
1204
+ * @internal
1205
+ */
1206
+ _hasShadowRoot() {
1207
+ return this._def.shadowRoot !== false;
1208
+ }
1209
+ /**
1210
+ * @internal
1211
+ */
1212
+ _removeChildStyle(comp) {
1213
+ }
1214
+ }
1215
+ function useHost(caller) {
1216
+ const instance = runtimeCore.getCurrentInstance();
1217
+ const el = instance && instance.ce;
1218
+ if (el) {
1219
+ return el;
1220
+ }
1221
+ return null;
1222
+ }
1223
+ function useShadowRoot() {
1224
+ const el = useHost();
1225
+ return el && el.shadowRoot;
1226
+ }
1227
+
1228
+ function useCssModule(name = "$style") {
1229
+ {
1230
+ const instance = runtimeCore.getCurrentInstance();
1231
+ if (!instance) {
1232
+ return shared.EMPTY_OBJ;
1233
+ }
1234
+ const modules = instance.type.__cssModules;
1235
+ if (!modules) {
1236
+ return shared.EMPTY_OBJ;
1237
+ }
1238
+ const mod = modules[name];
1239
+ if (!mod) {
1240
+ return shared.EMPTY_OBJ;
1241
+ }
1242
+ return mod;
1243
+ }
1244
+ }
1245
+
1246
+ const positionMap = /* @__PURE__ */ new WeakMap();
1247
+ const newPositionMap = /* @__PURE__ */ new WeakMap();
1248
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
1249
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
1250
+ const decorate = (t) => {
1251
+ delete t.props.mode;
1252
+ return t;
1253
+ };
1254
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
1255
+ name: "TransitionGroup",
1256
+ props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
1257
+ tag: String,
1258
+ moveClass: String
1259
+ }),
1260
+ setup(props, { slots }) {
1261
+ const instance = runtimeCore.getCurrentInstance();
1262
+ const state = runtimeCore.useTransitionState();
1263
+ let prevChildren;
1264
+ let children;
1265
+ runtimeCore.onUpdated(() => {
1266
+ if (!prevChildren.length) {
1267
+ return;
1268
+ }
1269
+ const moveClass = props.moveClass || `${props.name || "v"}-move`;
1270
+ if (!hasCSSTransform(
1271
+ prevChildren[0].el,
1272
+ instance.vnode.el,
1273
+ moveClass
1274
+ )) {
1275
+ prevChildren = [];
1276
+ return;
1277
+ }
1278
+ prevChildren.forEach(callPendingCbs);
1279
+ prevChildren.forEach(recordPosition);
1280
+ const movedChildren = prevChildren.filter(applyTranslation);
1281
+ forceReflow(instance.vnode.el);
1282
+ movedChildren.forEach((c) => {
1283
+ const el = c.el;
1284
+ const style = el.style;
1285
+ addTransitionClass(el, moveClass);
1286
+ style.transform = style.webkitTransform = style.transitionDuration = "";
1287
+ const cb = el[moveCbKey] = (e) => {
1288
+ if (e && e.target !== el) {
1289
+ return;
1290
+ }
1291
+ if (!e || e.propertyName.endsWith("transform")) {
1292
+ el.removeEventListener("transitionend", cb);
1293
+ el[moveCbKey] = null;
1294
+ removeTransitionClass(el, moveClass);
1295
+ }
1296
+ };
1297
+ el.addEventListener("transitionend", cb);
1298
+ });
1299
+ prevChildren = [];
1300
+ });
1301
+ return () => {
1302
+ const rawProps = runtimeCore.toRaw(props);
1303
+ const cssTransitionProps = resolveTransitionProps(rawProps);
1304
+ let tag = rawProps.tag || runtimeCore.Fragment;
1305
+ prevChildren = [];
1306
+ if (children) {
1307
+ for (let i = 0; i < children.length; i++) {
1308
+ const child = children[i];
1309
+ if (child.el && child.el instanceof Element && // Hidden v-show nodes have no previous layout box to animate from.
1310
+ !child.el[vShowHidden]) {
1311
+ prevChildren.push(child);
1312
+ runtimeCore.setTransitionHooks(
1313
+ child,
1314
+ runtimeCore.resolveTransitionHooks(
1315
+ child,
1316
+ cssTransitionProps,
1317
+ state,
1318
+ instance
1319
+ )
1320
+ );
1321
+ positionMap.set(child, getPosition(child.el));
1322
+ }
1323
+ }
1324
+ }
1325
+ children = slots.default ? runtimeCore.getTransitionRawChildren(slots.default()) : [];
1326
+ for (let i = 0; i < children.length; i++) {
1327
+ const child = children[i];
1328
+ if (child.key != null) {
1329
+ runtimeCore.setTransitionHooks(
1330
+ child,
1331
+ runtimeCore.resolveTransitionHooks(child, cssTransitionProps, state, instance)
1332
+ );
1333
+ }
1334
+ }
1335
+ return runtimeCore.createVNode(tag, null, children);
1336
+ };
1337
+ }
1338
+ });
1339
+ const TransitionGroup = TransitionGroupImpl;
1340
+ function callPendingCbs(c) {
1341
+ const el = c.el;
1342
+ if (el[moveCbKey]) {
1343
+ el[moveCbKey]();
1344
+ }
1345
+ if (el[enterCbKey]) {
1346
+ el[enterCbKey]();
1347
+ }
1348
+ }
1349
+ function recordPosition(c) {
1350
+ newPositionMap.set(c, getPosition(c.el));
1351
+ }
1352
+ function applyTranslation(c) {
1353
+ const oldPos = positionMap.get(c);
1354
+ const newPos = newPositionMap.get(c);
1355
+ const dx = oldPos.left - newPos.left;
1356
+ const dy = oldPos.top - newPos.top;
1357
+ if (dx || dy) {
1358
+ const el = c.el;
1359
+ const s = el.style;
1360
+ const rect = el.getBoundingClientRect();
1361
+ let scaleX = 1;
1362
+ let scaleY = 1;
1363
+ if (el.offsetWidth) scaleX = rect.width / el.offsetWidth;
1364
+ if (el.offsetHeight) scaleY = rect.height / el.offsetHeight;
1365
+ if (!Number.isFinite(scaleX) || scaleX === 0) scaleX = 1;
1366
+ if (!Number.isFinite(scaleY) || scaleY === 0) scaleY = 1;
1367
+ if (Math.abs(scaleX - 1) < 0.01) scaleX = 1;
1368
+ if (Math.abs(scaleY - 1) < 0.01) scaleY = 1;
1369
+ s.transform = s.webkitTransform = `translate(${dx / scaleX}px,${dy / scaleY}px)`;
1370
+ s.transitionDuration = "0s";
1371
+ return c;
1372
+ }
1373
+ }
1374
+ function getPosition(el) {
1375
+ const rect = el.getBoundingClientRect();
1376
+ return {
1377
+ left: rect.left,
1378
+ top: rect.top
1379
+ };
1380
+ }
1381
+ function hasCSSTransform(el, root, moveClass) {
1382
+ const clone = el.cloneNode();
1383
+ const _vtc = el[vtcKey];
1384
+ if (_vtc) {
1385
+ _vtc.forEach((cls) => {
1386
+ cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
1387
+ });
1388
+ }
1389
+ moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c));
1390
+ clone.style.display = "none";
1391
+ const container = root.nodeType === 1 ? root : root.parentNode;
1392
+ container.appendChild(clone);
1393
+ const { hasTransform } = getTransitionInfo(clone);
1394
+ container.removeChild(clone);
1395
+ return hasTransform;
1396
+ }
1397
+
1398
+ const getModelAssigner = (vnode) => {
1399
+ const fn = vnode.props["onUpdate:modelValue"] || false;
1400
+ return shared.isArray(fn) ? (value) => shared.invokeArrayFns(fn, value) : fn;
1401
+ };
1402
+ function onCompositionStart(e) {
1403
+ e.target.composing = true;
1404
+ }
1405
+ function onCompositionEnd(e) {
1406
+ const target = e.target;
1407
+ if (target.composing) {
1408
+ target.composing = false;
1409
+ target.dispatchEvent(new Event("input"));
1410
+ }
1411
+ }
1412
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
1413
+ const initialValueKey = /* @__PURE__ */ Symbol("_initialValue");
1414
+ function castValue(value, trim, number) {
1415
+ if (trim) value = value.trim();
1416
+ if (number) value = shared.looseToNumber(value);
1417
+ return value;
1418
+ }
1419
+ const vModelText = {
1420
+ created(el, { modifiers: { lazy, trim, number } }, vnode) {
1421
+ if (el.parentNode) {
1422
+ if (el.type === "text") {
1423
+ el[initialValueKey] = el.defaultValue.replace(/[\r\n]/g, "");
1424
+ } else if (el.type === "textarea") {
1425
+ el[initialValueKey] = el.defaultValue.replace(/\r\n?/g, "\n");
1426
+ }
1427
+ }
1428
+ el[assignKey] = getModelAssigner(vnode);
1429
+ const castToNumber = number || vnode.props && vnode.props.type === "number";
1430
+ addEventListener(el, lazy ? "change" : "input", (e) => {
1431
+ if (e.target.composing) return;
1432
+ el[assignKey](castValue(el.value, trim, castToNumber));
1433
+ });
1434
+ if (trim || castToNumber) {
1435
+ addEventListener(el, "change", () => {
1436
+ el.value = castValue(el.value, trim, castToNumber);
1437
+ });
1438
+ }
1439
+ if (!lazy) {
1440
+ addEventListener(el, "compositionstart", onCompositionStart);
1441
+ addEventListener(el, "compositionend", onCompositionEnd);
1442
+ addEventListener(el, "change", onCompositionEnd);
1443
+ }
1444
+ },
1445
+ // set value on mounted so it's after min/max for type="range"
1446
+ mounted(el, { value, modifiers: { trim, number } }) {
1447
+ const newValue = value == null ? "" : value;
1448
+ const initialValue = el[initialValueKey];
1449
+ delete el[initialValueKey];
1450
+ if (initialValue !== void 0 && (el.type === "text" || el.type === "textarea") && el.value !== initialValue) {
1451
+ el[assignKey](castValue(el.value, trim, number));
1452
+ } else {
1453
+ el.value = newValue;
1454
+ }
1455
+ },
1456
+ beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
1457
+ el[assignKey] = getModelAssigner(vnode);
1458
+ if (el.composing) return;
1459
+ const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? shared.looseToNumber(el.value) : el.value;
1460
+ const newValue = value == null ? "" : value;
1461
+ if (elValue === newValue) {
1462
+ return;
1463
+ }
1464
+ const rootNode = el.getRootNode();
1465
+ if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
1466
+ if (lazy && value === oldValue) {
1467
+ return;
1468
+ }
1469
+ if (trim && el.value.trim() === newValue) {
1470
+ return;
1471
+ }
1472
+ }
1473
+ el.value = newValue;
1474
+ }
1475
+ };
1476
+ const vModelCheckbox = {
1477
+ // #4096 array checkboxes need to be deep traversed
1478
+ deep: true,
1479
+ created(el, _, vnode) {
1480
+ el[assignKey] = getModelAssigner(vnode);
1481
+ addEventListener(el, "change", () => {
1482
+ const modelValue = el._modelValue;
1483
+ const elementValue = getValue(el);
1484
+ const checked = el.checked;
1485
+ const assign = el[assignKey];
1486
+ if (shared.isArray(modelValue)) {
1487
+ const index = shared.looseIndexOf(modelValue, elementValue);
1488
+ const found = index !== -1;
1489
+ if (checked && !found) {
1490
+ assign(modelValue.concat(elementValue));
1491
+ } else if (!checked && found) {
1492
+ const filtered = [...modelValue];
1493
+ filtered.splice(index, 1);
1494
+ assign(filtered);
1495
+ }
1496
+ } else if (shared.isSet(modelValue)) {
1497
+ const cloned = new Set(modelValue);
1498
+ if (checked) {
1499
+ cloned.add(elementValue);
1500
+ } else {
1501
+ cloned.delete(elementValue);
1502
+ }
1503
+ assign(cloned);
1504
+ } else {
1505
+ assign(getCheckboxValue(el, checked));
1506
+ }
1507
+ });
1508
+ },
1509
+ // set initial checked on mount to wait for true-value/false-value
1510
+ mounted: setChecked,
1511
+ beforeUpdate(el, binding, vnode) {
1512
+ el[assignKey] = getModelAssigner(vnode);
1513
+ setChecked(el, binding, vnode);
1514
+ }
1515
+ };
1516
+ function setChecked(el, { value, oldValue }, vnode) {
1517
+ el._modelValue = value;
1518
+ let checked;
1519
+ if (shared.isArray(value)) {
1520
+ checked = shared.looseIndexOf(value, vnode.props.value) > -1;
1521
+ } else if (shared.isSet(value)) {
1522
+ checked = value.has(vnode.props.value);
1523
+ } else {
1524
+ if (value === oldValue) return;
1525
+ checked = shared.looseEqual(value, getCheckboxValue(el, true));
1526
+ }
1527
+ if (el.checked !== checked) {
1528
+ el.checked = checked;
1529
+ }
1530
+ }
1531
+ const vModelRadio = {
1532
+ created(el, { value }, vnode) {
1533
+ el.checked = shared.looseEqual(value, vnode.props.value);
1534
+ el[assignKey] = getModelAssigner(vnode);
1535
+ addEventListener(el, "change", () => {
1536
+ el[assignKey](getValue(el));
1537
+ });
1538
+ },
1539
+ beforeUpdate(el, { value, oldValue }, vnode) {
1540
+ el[assignKey] = getModelAssigner(vnode);
1541
+ if (value !== oldValue) {
1542
+ el.checked = shared.looseEqual(value, vnode.props.value);
1543
+ }
1544
+ }
1545
+ };
1546
+ const vModelSelect = {
1547
+ // <select multiple> value need to be deep traversed
1548
+ deep: true,
1549
+ created(el, { value, modifiers: { number } }, vnode) {
1550
+ el._modelValue = value;
1551
+ addEventListener(el, "change", () => {
1552
+ const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map(
1553
+ (o) => number ? shared.looseToNumber(getValue(o)) : getValue(o)
1554
+ );
1555
+ el[assignKey](
1556
+ el.multiple ? shared.isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]
1557
+ );
1558
+ el._assigning = true;
1559
+ runtimeCore.nextTick(() => {
1560
+ el._assigning = false;
1561
+ });
1562
+ });
1563
+ el[assignKey] = getModelAssigner(vnode);
1564
+ },
1565
+ // set value in mounted & updated because <select> relies on its children
1566
+ // <option>s.
1567
+ mounted(el, { value }) {
1568
+ setSelected(el, value);
1569
+ },
1570
+ beforeUpdate(el, { value }, vnode) {
1571
+ el._modelValue = value;
1572
+ el[assignKey] = getModelAssigner(vnode);
1573
+ },
1574
+ updated(el, { value }) {
1575
+ if (!el._assigning) {
1576
+ setSelected(el, value);
1577
+ }
1578
+ }
1579
+ };
1580
+ function setSelected(el, value) {
1581
+ const isMultiple = el.multiple;
1582
+ const isArrayValue = shared.isArray(value);
1583
+ if (isMultiple && !isArrayValue && !shared.isSet(value)) {
1584
+ return;
1585
+ }
1586
+ for (let i = 0, l = el.options.length; i < l; i++) {
1587
+ const option = el.options[i];
1588
+ const optionValue = getValue(option);
1589
+ if (isMultiple) {
1590
+ if (isArrayValue) {
1591
+ const optionType = typeof optionValue;
1592
+ if (optionType === "string" || optionType === "number") {
1593
+ option.selected = value.some((v) => String(v) === String(optionValue));
1594
+ } else {
1595
+ option.selected = shared.looseIndexOf(value, optionValue) > -1;
1596
+ }
1597
+ } else {
1598
+ option.selected = value.has(optionValue);
1599
+ }
1600
+ } else if (shared.looseEqual(getValue(option), value)) {
1601
+ if (el.selectedIndex !== i) el.selectedIndex = i;
1602
+ return;
1603
+ }
1604
+ }
1605
+ if (!isMultiple && el.selectedIndex !== -1) {
1606
+ el.selectedIndex = -1;
1607
+ }
1608
+ }
1609
+ function getValue(el) {
1610
+ return "_value" in el ? el._value : el.value;
1611
+ }
1612
+ function getCheckboxValue(el, checked) {
1613
+ const key = checked ? "_trueValue" : "_falseValue";
1614
+ return key in el ? el[key] : checked;
1615
+ }
1616
+ const vModelDynamic = {
1617
+ created(el, binding, vnode) {
1618
+ callModelHook(el, binding, vnode, null, "created");
1619
+ },
1620
+ mounted(el, binding, vnode) {
1621
+ callModelHook(el, binding, vnode, null, "mounted");
1622
+ },
1623
+ beforeUpdate(el, binding, vnode, prevVNode) {
1624
+ callModelHook(el, binding, vnode, prevVNode, "beforeUpdate");
1625
+ },
1626
+ updated(el, binding, vnode, prevVNode) {
1627
+ callModelHook(el, binding, vnode, prevVNode, "updated");
1628
+ }
1629
+ };
1630
+ function resolveDynamicModel(tagName, type) {
1631
+ switch (tagName) {
1632
+ case "SELECT":
1633
+ return vModelSelect;
1634
+ case "TEXTAREA":
1635
+ return vModelText;
1636
+ default:
1637
+ switch (type) {
1638
+ case "checkbox":
1639
+ return vModelCheckbox;
1640
+ case "radio":
1641
+ return vModelRadio;
1642
+ default:
1643
+ return vModelText;
1644
+ }
1645
+ }
1646
+ }
1647
+ function callModelHook(el, binding, vnode, prevVNode, hook) {
1648
+ const modelToUse = resolveDynamicModel(
1649
+ el.tagName,
1650
+ vnode.props && vnode.props.type
1651
+ );
1652
+ const fn = modelToUse[hook];
1653
+ fn && fn(el, binding, vnode, prevVNode);
1654
+ }
1655
+ function initVModelForSSR() {
1656
+ vModelText.getSSRProps = ({ value }) => ({ value });
1657
+ vModelRadio.getSSRProps = ({ value }, vnode) => {
1658
+ if (vnode.props && shared.looseEqual(vnode.props.value, value)) {
1659
+ return { checked: true };
1660
+ }
1661
+ };
1662
+ vModelCheckbox.getSSRProps = ({ value }, vnode) => {
1663
+ if (shared.isArray(value)) {
1664
+ if (vnode.props && shared.looseIndexOf(value, vnode.props.value) > -1) {
1665
+ return { checked: true };
1666
+ }
1667
+ } else if (shared.isSet(value)) {
1668
+ if (vnode.props && value.has(vnode.props.value)) {
1669
+ return { checked: true };
1670
+ }
1671
+ } else if (value) {
1672
+ return { checked: true };
1673
+ }
1674
+ };
1675
+ vModelDynamic.getSSRProps = (binding, vnode) => {
1676
+ if (typeof vnode.type !== "string") {
1677
+ return;
1678
+ }
1679
+ const modelToUse = resolveDynamicModel(
1680
+ // resolveDynamicModel expects an uppercase tag name, but vnode.type is lowercase
1681
+ vnode.type.toUpperCase(),
1682
+ vnode.props && vnode.props.type
1683
+ );
1684
+ if (modelToUse.getSSRProps) {
1685
+ return modelToUse.getSSRProps(binding, vnode);
1686
+ }
1687
+ };
1688
+ }
1689
+
1690
+ const systemModifiers = ["ctrl", "shift", "alt", "meta"];
1691
+ const modifierGuards = {
1692
+ stop: (e) => e.stopPropagation(),
1693
+ prevent: (e) => e.preventDefault(),
1694
+ self: (e) => e.target !== e.currentTarget,
1695
+ ctrl: (e) => !e.ctrlKey,
1696
+ shift: (e) => !e.shiftKey,
1697
+ alt: (e) => !e.altKey,
1698
+ meta: (e) => !e.metaKey,
1699
+ left: (e) => "button" in e && e.button !== 0,
1700
+ middle: (e) => "button" in e && e.button !== 1,
1701
+ right: (e) => "button" in e && e.button !== 2,
1702
+ exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
1703
+ };
1704
+ const withModifiers = (fn, modifiers) => {
1705
+ if (!fn) return fn;
1706
+ const cache = fn._withMods || (fn._withMods = {});
1707
+ const cacheKey = modifiers.join(".");
1708
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
1709
+ for (let i = 0; i < modifiers.length; i++) {
1710
+ const guard = modifierGuards[modifiers[i]];
1711
+ if (guard && guard(event, modifiers)) return;
1712
+ }
1713
+ return fn(event, ...args);
1714
+ }));
1715
+ };
1716
+ const keyNames = {
1717
+ esc: "escape",
1718
+ space: " ",
1719
+ up: "arrow-up",
1720
+ left: "arrow-left",
1721
+ right: "arrow-right",
1722
+ down: "arrow-down",
1723
+ delete: "backspace"
1724
+ };
1725
+ const withKeys = (fn, modifiers) => {
1726
+ const cache = fn._withKeys || (fn._withKeys = {});
1727
+ const cacheKey = modifiers.join(".");
1728
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
1729
+ if (!("key" in event)) {
1730
+ return;
1731
+ }
1732
+ const eventKey = shared.hyphenate(event.key);
1733
+ if (modifiers.some(
1734
+ (k) => k === eventKey || keyNames[k] === eventKey
1735
+ )) {
1736
+ return fn(event);
1737
+ }
1738
+ }));
1739
+ };
1740
+
1741
+ const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
1742
+ let renderer;
1743
+ let enabledHydration = false;
1744
+ function ensureRenderer() {
1745
+ return renderer || (renderer = runtimeCore.createRenderer(rendererOptions));
1746
+ }
1747
+ function ensureHydrationRenderer() {
1748
+ renderer = enabledHydration ? renderer : runtimeCore.createHydrationRenderer(rendererOptions);
1749
+ enabledHydration = true;
1750
+ return renderer;
1751
+ }
1752
+ const render = ((...args) => {
1753
+ ensureRenderer().render(...args);
1754
+ });
1755
+ const hydrate = ((...args) => {
1756
+ ensureHydrationRenderer().hydrate(...args);
1757
+ });
1758
+ const createApp = ((...args) => {
1759
+ const app = ensureRenderer().createApp(...args);
1760
+ const { mount } = app;
1761
+ app.mount = (containerOrSelector) => {
1762
+ const container = normalizeContainer(containerOrSelector);
1763
+ if (!container) return;
1764
+ const component = app._component;
1765
+ if (!shared.isFunction(component) && !component.render && !component.template) {
1766
+ component.template = container.innerHTML;
1767
+ }
1768
+ if (container.nodeType === 1) {
1769
+ container.textContent = "";
1770
+ }
1771
+ const proxy = mount(container, false, resolveRootNamespace(container));
1772
+ if (container instanceof Element) {
1773
+ container.removeAttribute("v-cloak");
1774
+ container.setAttribute("data-v-app", "");
1775
+ }
1776
+ return proxy;
1777
+ };
1778
+ return app;
1779
+ });
1780
+ const createSSRApp = ((...args) => {
1781
+ const app = ensureHydrationRenderer().createApp(...args);
1782
+ const { mount } = app;
1783
+ app.mount = (containerOrSelector) => {
1784
+ const container = normalizeContainer(containerOrSelector);
1785
+ if (container) {
1786
+ return mount(container, true, resolveRootNamespace(container));
1787
+ }
1788
+ };
1789
+ return app;
1790
+ });
1791
+ function resolveRootNamespace(container) {
1792
+ if (container instanceof SVGElement) {
1793
+ return "svg";
1794
+ }
1795
+ if (typeof MathMLElement === "function" && container instanceof MathMLElement) {
1796
+ return "mathml";
1797
+ }
1798
+ }
1799
+ function normalizeContainer(container) {
1800
+ if (shared.isString(container)) {
1801
+ const res = document.querySelector(container);
1802
+ return res;
1803
+ }
1804
+ return container;
1805
+ }
1806
+ let ssrDirectiveInitialized = false;
1807
+ const initDirectivesForSSR = () => {
1808
+ if (!ssrDirectiveInitialized) {
1809
+ ssrDirectiveInitialized = true;
1810
+ initVModelForSSR();
1811
+ initVShowForSSR();
1812
+ }
1813
+ } ;
1814
+
1815
+ exports.Transition = Transition;
1816
+ exports.TransitionGroup = TransitionGroup;
1817
+ exports.VueElement = VueElement;
1818
+ exports.createApp = createApp;
1819
+ exports.createSSRApp = createSSRApp;
1820
+ exports.defineCustomElement = defineCustomElement;
1821
+ exports.defineSSRCustomElement = defineSSRCustomElement;
1822
+ exports.hydrate = hydrate;
1823
+ exports.initDirectivesForSSR = initDirectivesForSSR;
1824
+ exports.nodeOps = nodeOps;
1825
+ exports.patchProp = patchProp;
1826
+ exports.render = render;
1827
+ exports.useCssModule = useCssModule;
1828
+ exports.useCssVars = useCssVars;
1829
+ exports.useHost = useHost;
1830
+ exports.useShadowRoot = useShadowRoot;
1831
+ exports.vModelCheckbox = vModelCheckbox;
1832
+ exports.vModelDynamic = vModelDynamic;
1833
+ exports.vModelRadio = vModelRadio;
1834
+ exports.vModelSelect = vModelSelect;
1835
+ exports.vModelText = vModelText;
1836
+ exports.vShow = vShow;
1837
+ exports.withKeys = withKeys;
1838
+ exports.withModifiers = withModifiers;
1839
+ Object.keys(runtimeCore).forEach(function (k) {
1840
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeCore[k];
1841
+ });