wevu 6.18.7 → 6.19.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 (585) hide show
  1. package/dist/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +1 -0
  2. package/dist/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +1 -0
  3. package/dist/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +1 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +1 -0
  5. package/dist/{rolldown-runtime-CenpyGzJ.mjs → _virtual/_rolldown/runtime.mjs} +1 -1
  6. package/dist/dev/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +14 -0
  7. package/dist/dev/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +16 -0
  8. package/dist/dev/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +11 -0
  9. package/dist/dev/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +12 -0
  10. package/dist/dev/{rolldown-runtime-BUUfjzRC.mjs → _virtual/_rolldown/runtime.mjs} +1 -1
  11. package/dist/dev/index.mjs +49 -10
  12. package/dist/dev/internal-reactivity.mjs +15 -5
  13. package/dist/dev/internal-runtime.mjs +32 -4
  14. package/dist/dev/internal-template.mjs +1 -1
  15. package/dist/dev/package.mjs +6 -0
  16. package/dist/dev/package.mjs.map +1 -0
  17. package/dist/dev/reactivity/computed.mjs +49 -0
  18. package/dist/dev/reactivity/computed.mjs.map +1 -0
  19. package/dist/dev/reactivity/core.mjs +184 -0
  20. package/dist/dev/reactivity/core.mjs.map +1 -0
  21. package/dist/dev/reactivity/reactive/mutation.mjs +12 -0
  22. package/dist/dev/reactivity/reactive/mutation.mjs.map +1 -0
  23. package/dist/dev/{computed-BxRsUJgi.mjs → reactivity/reactive/patch.mjs} +6 -48
  24. package/dist/dev/reactivity/reactive/patch.mjs.map +1 -0
  25. package/dist/dev/reactivity/reactive/patchState.mjs +138 -0
  26. package/dist/dev/reactivity/reactive/patchState.mjs.map +1 -0
  27. package/dist/dev/reactivity/reactive/shallow.mjs +77 -0
  28. package/dist/dev/reactivity/reactive/shallow.mjs.map +1 -0
  29. package/dist/dev/reactivity/reactive/shared.mjs +40 -0
  30. package/dist/dev/reactivity/reactive/shared.mjs.map +1 -0
  31. package/dist/dev/reactivity/reactive/state.mjs +8 -0
  32. package/dist/dev/reactivity/reactive/state.mjs.map +1 -0
  33. package/dist/dev/reactivity/reactive.mjs +212 -0
  34. package/dist/dev/reactivity/reactive.mjs.map +1 -0
  35. package/dist/dev/reactivity/readonly.mjs +69 -0
  36. package/dist/dev/reactivity/readonly.mjs.map +1 -0
  37. package/dist/dev/reactivity/ref.mjs +97 -0
  38. package/dist/dev/reactivity/ref.mjs.map +1 -0
  39. package/dist/dev/reactivity/shallowRef.mjs +71 -0
  40. package/dist/dev/reactivity/shallowRef.mjs.map +1 -0
  41. package/dist/dev/{toRefs-D06VmFK2.mjs → reactivity/toRefs.mjs} +4 -3
  42. package/dist/dev/reactivity/toRefs.mjs.map +1 -0
  43. package/dist/dev/reactivity/traverse.mjs +40 -0
  44. package/dist/dev/reactivity/traverse.mjs.map +1 -0
  45. package/dist/dev/reactivity/watch/helpers.mjs +78 -0
  46. package/dist/dev/reactivity/watch/helpers.mjs.map +1 -0
  47. package/dist/dev/reactivity/watch/types.mjs +20 -0
  48. package/dist/dev/reactivity/watch/types.mjs.map +1 -0
  49. package/dist/dev/reactivity/watch.mjs +167 -0
  50. package/dist/dev/reactivity/watch.mjs.map +1 -0
  51. package/dist/dev/router/backNavigation.mjs +32 -0
  52. package/dist/dev/router/backNavigation.mjs.map +1 -0
  53. package/dist/dev/router/createRouter.mjs +176 -0
  54. package/dist/dev/router/createRouter.mjs.map +1 -0
  55. package/dist/dev/router/instance.mjs +17 -0
  56. package/dist/dev/router/instance.mjs.map +1 -0
  57. package/dist/dev/router/navigationApi.mjs +94 -0
  58. package/dist/dev/router/navigationApi.mjs.map +1 -0
  59. package/dist/dev/router/navigationCore.mjs +139 -0
  60. package/dist/dev/router/navigationCore.mjs.map +1 -0
  61. package/dist/dev/router/navigationResult.mjs +54 -0
  62. package/dist/dev/router/navigationResult.mjs.map +1 -0
  63. package/dist/dev/router/navigationTarget.mjs +121 -0
  64. package/dist/dev/router/navigationTarget.mjs.map +1 -0
  65. package/dist/dev/router/navigationTargetHelpers.mjs +38 -0
  66. package/dist/dev/router/navigationTargetHelpers.mjs.map +1 -0
  67. package/dist/dev/router/resolve.mjs +22 -0
  68. package/dist/dev/router/resolve.mjs.map +1 -0
  69. package/dist/dev/router/routeRegistry.mjs +78 -0
  70. package/dist/dev/router/routeRegistry.mjs.map +1 -0
  71. package/dist/dev/router/routeSync.mjs +72 -0
  72. package/dist/dev/router/routeSync.mjs.map +1 -0
  73. package/dist/dev/router/types.mjs +11 -0
  74. package/dist/dev/router/types.mjs.map +1 -0
  75. package/dist/dev/router/useRoute.mjs +106 -0
  76. package/dist/dev/router/useRoute.mjs.map +1 -0
  77. package/dist/dev/router/useRouter.mjs +15 -0
  78. package/dist/dev/router/useRouter.mjs.map +1 -0
  79. package/dist/dev/router.mjs +9 -1378
  80. package/dist/dev/routerInternal/location.mjs +66 -0
  81. package/dist/dev/routerInternal/location.mjs.map +1 -0
  82. package/dist/dev/routerInternal/matching.mjs +149 -0
  83. package/dist/dev/routerInternal/matching.mjs.map +1 -0
  84. package/dist/dev/routerInternal/params.mjs +95 -0
  85. package/dist/dev/routerInternal/params.mjs.map +1 -0
  86. package/dist/dev/routerInternal/path.mjs +42 -0
  87. package/dist/dev/routerInternal/path.mjs.map +1 -0
  88. package/dist/dev/routerInternal/query.mjs +113 -0
  89. package/dist/dev/routerInternal/query.mjs.map +1 -0
  90. package/dist/dev/routerInternal/records.mjs +172 -0
  91. package/dist/dev/routerInternal/records.mjs.map +1 -0
  92. package/dist/dev/routerInternal/recordsWarnings.mjs +49 -0
  93. package/dist/dev/routerInternal/recordsWarnings.mjs.map +1 -0
  94. package/dist/dev/routerInternal/snapshots.mjs +126 -0
  95. package/dist/dev/routerInternal/snapshots.mjs.map +1 -0
  96. package/dist/dev/runtime/app/computed.mjs +68 -0
  97. package/dist/dev/runtime/app/computed.mjs.map +1 -0
  98. package/dist/dev/runtime/app/context.mjs +275 -0
  99. package/dist/dev/runtime/app/context.mjs.map +1 -0
  100. package/dist/dev/runtime/app/diagnostics.mjs +34 -0
  101. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -0
  102. package/dist/dev/runtime/app/mount.mjs +269 -0
  103. package/dist/dev/runtime/app/mount.mjs.map +1 -0
  104. package/dist/dev/runtime/app/pending.mjs +14 -0
  105. package/dist/dev/runtime/app/pending.mjs.map +1 -0
  106. package/dist/dev/runtime/app/setData/patchScheduler.mjs +158 -0
  107. package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -0
  108. package/dist/dev/runtime/app/setData/payload.mjs +161 -0
  109. package/dist/dev/runtime/app/setData/payload.mjs.map +1 -0
  110. package/dist/dev/runtime/app/setData/scheduler.mjs +313 -0
  111. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -0
  112. package/dist/dev/runtime/app/setData/snapshot.mjs +129 -0
  113. package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -0
  114. package/dist/dev/runtime/app/setDataOptions.mjs +73 -0
  115. package/dist/dev/runtime/app/setDataOptions.mjs.map +1 -0
  116. package/dist/dev/runtime/app.mjs +93 -0
  117. package/dist/dev/runtime/app.mjs.map +1 -0
  118. package/dist/dev/runtime/bindModel.mjs +92 -0
  119. package/dist/dev/runtime/bindModel.mjs.map +1 -0
  120. package/dist/dev/runtime/defaults.mjs +61 -0
  121. package/dist/dev/runtime/defaults.mjs.map +1 -0
  122. package/dist/dev/runtime/define/initialComputed.mjs +125 -0
  123. package/dist/dev/runtime/define/initialComputed.mjs.map +1 -0
  124. package/dist/dev/runtime/define/options.mjs +169 -0
  125. package/dist/dev/runtime/define/options.mjs.map +1 -0
  126. package/dist/dev/runtime/define/optionsApi.mjs +48 -0
  127. package/dist/dev/runtime/define/optionsApi.mjs.map +1 -0
  128. package/dist/dev/runtime/define/props.mjs +194 -0
  129. package/dist/dev/runtime/define/props.mjs.map +1 -0
  130. package/dist/dev/runtime/define/scopedSlotOptions.mjs +313 -0
  131. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -0
  132. package/dist/dev/runtime/define/setupResult.mjs +78 -0
  133. package/dist/dev/runtime/define/setupResult.mjs.map +1 -0
  134. package/dist/dev/runtime/define.mjs +140 -0
  135. package/dist/dev/runtime/define.mjs.map +1 -0
  136. package/dist/dev/runtime/diff.mjs +193 -0
  137. package/dist/dev/runtime/diff.mjs.map +1 -0
  138. package/dist/dev/runtime/disposables.mjs +81 -0
  139. package/dist/dev/runtime/disposables.mjs.map +1 -0
  140. package/dist/dev/runtime/elementIntersectionObserver.mjs +80 -0
  141. package/dist/dev/runtime/elementIntersectionObserver.mjs.map +1 -0
  142. package/dist/dev/runtime/emit.mjs +36 -0
  143. package/dist/dev/runtime/emit.mjs.map +1 -0
  144. package/dist/dev/{base-CYkvI7w8.mjs → runtime/hooks/base.mjs} +3 -140
  145. package/dist/dev/runtime/hooks/base.mjs.map +1 -0
  146. package/dist/dev/runtime/hooks/register.mjs +92 -0
  147. package/dist/dev/runtime/hooks/register.mjs.map +1 -0
  148. package/dist/dev/runtime/hooks/vue.mjs +81 -0
  149. package/dist/dev/runtime/hooks/vue.mjs.map +1 -0
  150. package/dist/dev/runtime/internal.mjs +18 -0
  151. package/dist/dev/runtime/internal.mjs.map +1 -0
  152. package/dist/dev/runtime/intersectionObserver.mjs +46 -0
  153. package/dist/dev/runtime/intersectionObserver.mjs.map +1 -0
  154. package/dist/dev/runtime/layoutBridge.mjs +303 -0
  155. package/dist/dev/runtime/layoutBridge.mjs.map +1 -0
  156. package/dist/dev/runtime/layoutComponentMatcher.mjs +11 -0
  157. package/dist/dev/runtime/layoutComponentMatcher.mjs.map +1 -0
  158. package/dist/dev/runtime/nativeBridge.mjs +21 -0
  159. package/dist/dev/runtime/nativeBridge.mjs.map +1 -0
  160. package/dist/dev/runtime/noSetData.mjs +18 -0
  161. package/dist/dev/runtime/noSetData.mjs.map +1 -0
  162. package/dist/dev/runtime/pageEnvironment.mjs +100 -0
  163. package/dist/dev/runtime/pageEnvironment.mjs.map +1 -0
  164. package/dist/dev/runtime/pageLayout.mjs +71 -0
  165. package/dist/dev/runtime/pageLayout.mjs.map +1 -0
  166. package/dist/dev/runtime/pageScroll.mjs +110 -0
  167. package/dist/dev/runtime/pageScroll.mjs.map +1 -0
  168. package/dist/dev/runtime/platform.mjs +77 -0
  169. package/dist/dev/runtime/platform.mjs.map +1 -0
  170. package/dist/dev/runtime/provide.mjs +71 -0
  171. package/dist/dev/runtime/provide.mjs.map +1 -0
  172. package/dist/dev/runtime/provideContext.mjs +101 -0
  173. package/dist/dev/runtime/provideContext.mjs.map +1 -0
  174. package/dist/dev/runtime/provideStore.mjs +18 -0
  175. package/dist/dev/runtime/provideStore.mjs.map +1 -0
  176. package/dist/dev/runtime/pullDownRefresh.mjs +24 -0
  177. package/dist/dev/runtime/pullDownRefresh.mjs.map +1 -0
  178. package/dist/dev/runtime/register/app.mjs +159 -0
  179. package/dist/dev/runtime/register/app.mjs.map +1 -0
  180. package/dist/dev/runtime/register/component/features.mjs +43 -0
  181. package/dist/dev/runtime/register/component/features.mjs.map +1 -0
  182. package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs +64 -0
  183. package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs.map +1 -0
  184. package/dist/dev/runtime/register/component/lifecycle/platform.mjs +95 -0
  185. package/dist/dev/runtime/register/component/lifecycle/platform.mjs.map +1 -0
  186. package/dist/dev/runtime/register/component/lifecycle.mjs +122 -0
  187. package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -0
  188. package/dist/dev/runtime/register/component/methods.mjs +80 -0
  189. package/dist/dev/runtime/register/component/methods.mjs.map +1 -0
  190. package/dist/dev/runtime/register/component/options.mjs +204 -0
  191. package/dist/dev/runtime/register/component/options.mjs.map +1 -0
  192. package/dist/dev/runtime/register/component/props.mjs +218 -0
  193. package/dist/dev/runtime/register/component/props.mjs.map +1 -0
  194. package/dist/dev/runtime/register/component/registerDefinition.mjs +290 -0
  195. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -0
  196. package/dist/dev/runtime/register/component.mjs +128 -0
  197. package/dist/dev/runtime/register/component.mjs.map +1 -0
  198. package/dist/dev/runtime/register/inline.mjs +145 -0
  199. package/dist/dev/runtime/register/inline.mjs.map +1 -0
  200. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +53 -0
  201. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs.map +1 -0
  202. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +34 -0
  203. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs.map +1 -0
  204. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +230 -0
  205. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -0
  206. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +164 -0
  207. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -0
  208. package/dist/dev/runtime/register/runtimeInstance/utils.mjs +122 -0
  209. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -0
  210. package/dist/dev/runtime/register/runtimeInstance.mjs +438 -0
  211. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -0
  212. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +95 -0
  213. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -0
  214. package/dist/dev/runtime/register/setup.mjs +22 -0
  215. package/dist/dev/runtime/register/setup.mjs.map +1 -0
  216. package/dist/dev/runtime/register/snapshot.mjs +17 -0
  217. package/dist/dev/runtime/register/snapshot.mjs.map +1 -0
  218. package/dist/dev/runtime/register/watch.mjs +57 -0
  219. package/dist/dev/runtime/register/watch.mjs.map +1 -0
  220. package/dist/dev/runtime/scopedSlots.mjs +115 -0
  221. package/dist/dev/runtime/scopedSlots.mjs.map +1 -0
  222. package/dist/dev/runtime/selectorQuery.mjs +49 -0
  223. package/dist/dev/runtime/selectorQuery.mjs.map +1 -0
  224. package/dist/dev/runtime/setupTracking.mjs +59 -0
  225. package/dist/dev/runtime/setupTracking.mjs.map +1 -0
  226. package/dist/dev/{template-n_iVr0ey.mjs → runtime/template.mjs} +7 -4
  227. package/dist/dev/runtime/template.mjs.map +1 -0
  228. package/dist/dev/runtime/templateRefs/helpers.mjs +254 -0
  229. package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -0
  230. package/dist/dev/runtime/templateRefs.mjs +162 -0
  231. package/dist/dev/runtime/templateRefs.mjs.map +1 -0
  232. package/dist/dev/runtime/uniAppHost.mjs +119 -0
  233. package/dist/dev/runtime/uniAppHost.mjs.map +1 -0
  234. package/dist/dev/runtime/updatePerformance.mjs +41 -0
  235. package/dist/dev/runtime/updatePerformance.mjs.map +1 -0
  236. package/dist/dev/runtime/use.mjs +25 -0
  237. package/dist/dev/runtime/use.mjs.map +1 -0
  238. package/dist/dev/runtime/vueCompat/context.mjs +25 -0
  239. package/dist/dev/runtime/vueCompat/context.mjs.map +1 -0
  240. package/dist/dev/runtime/vueCompat/model.mjs +118 -0
  241. package/dist/dev/runtime/vueCompat/model.mjs.map +1 -0
  242. package/dist/dev/runtime/vueCompat/router.mjs +124 -0
  243. package/dist/dev/runtime/vueCompat/router.mjs.map +1 -0
  244. package/dist/dev/runtime/vueCompat/templateRef.mjs +37 -0
  245. package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -0
  246. package/dist/dev/scheduler.mjs +75 -0
  247. package/dist/dev/scheduler.mjs.map +1 -0
  248. package/dist/dev/store/actions.mjs +40 -0
  249. package/dist/dev/store/actions.mjs.map +1 -0
  250. package/dist/dev/store/base.mjs +56 -0
  251. package/dist/dev/store/base.mjs.map +1 -0
  252. package/dist/dev/store/define/optionsStyle.mjs +125 -0
  253. package/dist/dev/store/define/optionsStyle.mjs.map +1 -0
  254. package/dist/dev/store/define/setupStyle.mjs +145 -0
  255. package/dist/dev/store/define/setupStyle.mjs.map +1 -0
  256. package/dist/dev/store/define/shared.mjs +38 -0
  257. package/dist/dev/store/define/shared.mjs.map +1 -0
  258. package/dist/dev/store/define.mjs +23 -0
  259. package/dist/dev/store/define.mjs.map +1 -0
  260. package/dist/dev/store/manager.mjs +21 -0
  261. package/dist/dev/store/manager.mjs.map +1 -0
  262. package/dist/dev/store/storeToRefs.mjs +29 -0
  263. package/dist/dev/store/storeToRefs.mjs.map +1 -0
  264. package/dist/dev/store/utils.mjs +49 -0
  265. package/dist/dev/store/utils.mjs.map +1 -0
  266. package/dist/dev/store.mjs +3 -1
  267. package/dist/dev/utils.mjs +16 -0
  268. package/dist/dev/utils.mjs.map +1 -0
  269. package/dist/dev/version.mjs +8 -0
  270. package/dist/dev/version.mjs.map +1 -0
  271. package/dist/dev/vue-demi.mjs +49 -11
  272. package/dist/dev/vue-demi.mjs.map +1 -1
  273. package/dist/index.d.mts +71 -7
  274. package/dist/index.mjs +1 -1
  275. package/dist/internal-reactivity.d.mts +16 -2
  276. package/dist/internal-reactivity.mjs +1 -1
  277. package/dist/internal-runtime.d.mts +35 -2
  278. package/dist/internal-runtime.mjs +1 -1
  279. package/dist/internal-template.d.mts +1 -1
  280. package/dist/internal-template.mjs +1 -1
  281. package/dist/jsx-runtime.d.mts +1 -1
  282. package/dist/macros/shared.d.mts +81 -0
  283. package/dist/macros.d.mts +70 -0
  284. package/dist/package.mjs +1 -0
  285. package/dist/reactivity/computed.d.mts +21 -0
  286. package/dist/reactivity/computed.mjs +1 -0
  287. package/dist/reactivity/core.d.mts +34 -0
  288. package/dist/reactivity/core.mjs +1 -0
  289. package/dist/reactivity/index.d.mts +15 -0
  290. package/dist/reactivity/reactive/mutation.d.mts +21 -0
  291. package/dist/reactivity/reactive/mutation.mjs +1 -0
  292. package/dist/reactivity/reactive/patch.d.mts +18 -0
  293. package/dist/reactivity/reactive/patch.mjs +1 -0
  294. package/dist/reactivity/reactive/patchState.mjs +1 -0
  295. package/dist/reactivity/reactive/shallow.d.mts +22 -0
  296. package/dist/reactivity/reactive/shallow.mjs +1 -0
  297. package/dist/reactivity/reactive/shared.d.mts +4 -0
  298. package/dist/reactivity/reactive/shared.mjs +1 -0
  299. package/dist/reactivity/reactive/state.mjs +1 -0
  300. package/dist/reactivity/reactive.d.mts +41 -0
  301. package/dist/reactivity/reactive.mjs +1 -0
  302. package/dist/reactivity/readonly.d.mts +27 -0
  303. package/dist/reactivity/readonly.mjs +1 -0
  304. package/dist/reactivity/ref.d.mts +27 -0
  305. package/dist/reactivity/ref.mjs +1 -0
  306. package/dist/reactivity/shallowRef.d.mts +19 -0
  307. package/dist/reactivity/shallowRef.mjs +1 -0
  308. package/dist/reactivity/toRefs.d.mts +43 -0
  309. package/dist/reactivity/toRefs.mjs +1 -0
  310. package/dist/reactivity/traverse.d.mts +8 -0
  311. package/dist/reactivity/traverse.mjs +1 -0
  312. package/dist/reactivity/watch/helpers.mjs +1 -0
  313. package/dist/reactivity/watch/types.d.mts +43 -0
  314. package/dist/reactivity/watch/types.mjs +1 -0
  315. package/dist/reactivity/watch.d.mts +21 -0
  316. package/dist/reactivity/watch.mjs +1 -0
  317. package/dist/router/backNavigation.mjs +1 -0
  318. package/dist/router/createRouter.d.mts +8 -0
  319. package/dist/router/createRouter.mjs +1 -0
  320. package/dist/router/instance.mjs +1 -0
  321. package/dist/router/navigationApi.mjs +1 -0
  322. package/dist/router/navigationCore.d.mts +6 -0
  323. package/dist/router/navigationCore.mjs +1 -0
  324. package/dist/router/navigationResult.mjs +1 -0
  325. package/dist/router/navigationTarget.mjs +1 -0
  326. package/dist/router/navigationTargetHelpers.mjs +1 -0
  327. package/dist/router/resolve.d.mts +6 -0
  328. package/dist/router/resolve.mjs +1 -0
  329. package/dist/router/routeRegistry.mjs +1 -0
  330. package/dist/router/routeSync.d.mts +1 -0
  331. package/dist/router/routeSync.mjs +1 -0
  332. package/dist/router/types.d.mts +163 -0
  333. package/dist/router/types.mjs +1 -0
  334. package/dist/router/useRoute.d.mts +19 -0
  335. package/dist/router/useRoute.mjs +1 -0
  336. package/dist/router/useRouter.d.mts +8 -0
  337. package/dist/router/useRouter.mjs +1 -0
  338. package/dist/router.d.mts +9 -204
  339. package/dist/router.mjs +1 -1
  340. package/dist/routerInternal/location.mjs +1 -0
  341. package/dist/routerInternal/matching.mjs +1 -0
  342. package/dist/routerInternal/params.mjs +1 -0
  343. package/dist/routerInternal/path.mjs +1 -0
  344. package/dist/routerInternal/query.d.mts +7 -0
  345. package/dist/routerInternal/query.mjs +1 -0
  346. package/dist/routerInternal/records.mjs +1 -0
  347. package/dist/routerInternal/recordsWarnings.mjs +1 -0
  348. package/dist/routerInternal/snapshots.mjs +1 -0
  349. package/dist/routerInternal/types.d.mts +9 -0
  350. package/dist/runtime/app/computed.mjs +1 -0
  351. package/dist/runtime/app/context.mjs +1 -0
  352. package/dist/runtime/app/diagnostics.mjs +1 -0
  353. package/dist/runtime/app/mount.mjs +1 -0
  354. package/dist/runtime/app/pending.d.mts +10 -0
  355. package/dist/runtime/app/pending.mjs +1 -0
  356. package/dist/runtime/app/setData/patchScheduler.mjs +1 -0
  357. package/dist/runtime/app/setData/payload.mjs +1 -0
  358. package/dist/runtime/app/setData/scheduler.mjs +1 -0
  359. package/dist/runtime/app/setData/snapshot.mjs +1 -0
  360. package/dist/runtime/app/setDataOptions.mjs +1 -0
  361. package/dist/runtime/app.d.mts +8 -0
  362. package/dist/runtime/app.mjs +1 -0
  363. package/dist/runtime/bindModel.mjs +1 -0
  364. package/dist/runtime/defaults.d.mts +11 -0
  365. package/dist/runtime/defaults.mjs +1 -0
  366. package/dist/runtime/define/initialComputed.mjs +1 -0
  367. package/dist/runtime/define/options.mjs +1 -0
  368. package/dist/runtime/define/optionsApi.mjs +1 -0
  369. package/dist/runtime/define/props.mjs +1 -0
  370. package/dist/runtime/define/scopedSlotOptions.mjs +1 -0
  371. package/dist/runtime/define/setupResult.mjs +1 -0
  372. package/dist/runtime/define.d.mts +105 -0
  373. package/dist/runtime/define.mjs +1 -0
  374. package/dist/runtime/diff.mjs +1 -0
  375. package/dist/runtime/disposables.d.mts +31 -0
  376. package/dist/runtime/disposables.mjs +1 -0
  377. package/dist/runtime/elementIntersectionObserver.d.mts +26 -0
  378. package/dist/runtime/elementIntersectionObserver.mjs +1 -0
  379. package/dist/runtime/emit.mjs +1 -0
  380. package/dist/runtime/hooks/base.d.mts +27 -0
  381. package/dist/runtime/hooks/base.mjs +1 -0
  382. package/dist/runtime/hooks/register.d.mts +30 -0
  383. package/dist/runtime/hooks/register.mjs +1 -0
  384. package/dist/runtime/hooks/vue.d.mts +53 -0
  385. package/dist/runtime/hooks/vue.mjs +1 -0
  386. package/dist/runtime/hooks.d.mts +4 -0
  387. package/dist/runtime/index.d.mts +47 -0
  388. package/dist/runtime/internal.mjs +1 -0
  389. package/dist/runtime/intersectionObserver.d.mts +14 -0
  390. package/dist/runtime/intersectionObserver.mjs +1 -0
  391. package/dist/runtime/layoutBridge.d.mts +59 -0
  392. package/dist/runtime/layoutBridge.mjs +1 -0
  393. package/dist/runtime/layoutComponentMatcher.mjs +1 -0
  394. package/dist/runtime/nativeBridge.mjs +1 -0
  395. package/dist/runtime/noSetData.d.mts +5 -0
  396. package/dist/runtime/noSetData.mjs +1 -0
  397. package/dist/runtime/pageEnvironment.d.mts +50 -0
  398. package/dist/runtime/pageEnvironment.mjs +1 -0
  399. package/dist/runtime/pageLayout.d.mts +26 -0
  400. package/dist/runtime/pageLayout.mjs +1 -0
  401. package/dist/runtime/pageScroll.d.mts +29 -0
  402. package/dist/runtime/pageScroll.mjs +1 -0
  403. package/dist/runtime/platform.mjs +1 -0
  404. package/dist/runtime/provide.d.mts +59 -0
  405. package/dist/runtime/provide.mjs +1 -0
  406. package/dist/runtime/provideContext.mjs +1 -0
  407. package/dist/runtime/provideStore.d.mts +7 -0
  408. package/dist/runtime/provideStore.mjs +1 -0
  409. package/dist/runtime/pullDownRefresh.d.mts +12 -0
  410. package/dist/runtime/pullDownRefresh.mjs +1 -0
  411. package/dist/runtime/register/app.d.mts +14 -0
  412. package/dist/runtime/register/app.mjs +1 -0
  413. package/dist/runtime/register/component/features.mjs +1 -0
  414. package/dist/runtime/register/component/lifecycle/optionalHooks.mjs +1 -0
  415. package/dist/runtime/register/component/lifecycle/platform.mjs +1 -0
  416. package/dist/runtime/register/component/lifecycle.mjs +1 -0
  417. package/dist/runtime/register/component/methods.mjs +1 -0
  418. package/dist/runtime/register/component/options.mjs +1 -0
  419. package/dist/runtime/register/component/props.mjs +1 -0
  420. package/dist/runtime/register/component/registerDefinition.mjs +1 -0
  421. package/dist/runtime/register/component.d.mts +15 -0
  422. package/dist/runtime/register/component.mjs +1 -0
  423. package/dist/runtime/register/inline.d.mts +15 -0
  424. package/dist/runtime/register/inline.mjs +1 -0
  425. package/dist/runtime/register/runtimeInstance/methodBridge.mjs +1 -0
  426. package/dist/runtime/register/runtimeInstance/provideContext.mjs +1 -0
  427. package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -0
  428. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -0
  429. package/dist/runtime/register/runtimeInstance/utils.mjs +1 -0
  430. package/dist/runtime/register/runtimeInstance.d.mts +26 -0
  431. package/dist/runtime/register/runtimeInstance.mjs +1 -0
  432. package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -0
  433. package/dist/runtime/register/setup.d.mts +11 -0
  434. package/dist/runtime/register/setup.mjs +1 -0
  435. package/dist/runtime/register/snapshot.mjs +1 -0
  436. package/dist/runtime/register/watch.d.mts +12 -0
  437. package/dist/runtime/register/watch.mjs +1 -0
  438. package/dist/runtime/register.d.mts +5 -0
  439. package/dist/runtime/scopedSlots.mjs +1 -0
  440. package/dist/runtime/selectorQuery.d.mts +54 -0
  441. package/dist/runtime/selectorQuery.mjs +1 -0
  442. package/dist/runtime/setupTracking.mjs +1 -0
  443. package/dist/{template-DE8e5dj_.d.mts → runtime/template.d.mts} +1 -1
  444. package/dist/runtime/template.mjs +1 -0
  445. package/dist/runtime/templateRefTypes.d.mts +7 -0
  446. package/dist/runtime/templateRefs/helpers.mjs +1 -0
  447. package/dist/runtime/templateRefs.d.mts +11 -0
  448. package/dist/runtime/templateRefs.mjs +1 -0
  449. package/dist/runtime/types/core.d.mts +35 -0
  450. package/dist/runtime/types/miniprogram.d.mts +80 -0
  451. package/dist/runtime/types/miniprogramHost.d.mts +44 -0
  452. package/dist/runtime/types/miniprogramHostSources.d.mts +112 -0
  453. package/dist/runtime/types/options.d.mts +136 -0
  454. package/dist/runtime/types/props/propTypes.d.mts +79 -0
  455. package/dist/runtime/types/props/router.d.mts +51 -0
  456. package/dist/runtime/types/props/setup.d.mts +96 -0
  457. package/dist/runtime/types/props.d.mts +4 -0
  458. package/dist/runtime/types/runtime.d.mts +59 -0
  459. package/dist/runtime/types/setData.d.mts +220 -0
  460. package/dist/runtime/types.d.mts +28 -0
  461. package/dist/runtime/uniAppHost.d.mts +8 -0
  462. package/dist/runtime/uniAppHost.mjs +1 -0
  463. package/dist/runtime/updatePerformance.d.mts +13 -0
  464. package/dist/runtime/updatePerformance.mjs +1 -0
  465. package/dist/runtime/use.d.mts +13 -0
  466. package/dist/runtime/use.mjs +1 -0
  467. package/dist/runtime/vueCompat/context.d.mts +8 -0
  468. package/dist/runtime/vueCompat/context.mjs +1 -0
  469. package/dist/runtime/vueCompat/model.d.mts +30 -0
  470. package/dist/runtime/vueCompat/model.mjs +1 -0
  471. package/dist/runtime/vueCompat/router.d.mts +28 -0
  472. package/dist/runtime/vueCompat/router.mjs +1 -0
  473. package/dist/runtime/vueCompat/templateRef.d.mts +9 -0
  474. package/dist/runtime/vueCompat/templateRef.mjs +1 -0
  475. package/dist/runtime/vueCompat.d.mts +5 -0
  476. package/dist/scheduler.d.mts +4 -0
  477. package/dist/scheduler.mjs +1 -0
  478. package/dist/store/actions.mjs +1 -0
  479. package/dist/store/base.mjs +1 -0
  480. package/dist/store/define/optionsStyle.mjs +1 -0
  481. package/dist/store/define/setupStyle.mjs +1 -0
  482. package/dist/store/define/shared.mjs +1 -0
  483. package/dist/store/define.d.mts +26 -0
  484. package/dist/store/define.mjs +1 -0
  485. package/dist/store/manager.d.mts +8 -0
  486. package/dist/store/manager.mjs +1 -0
  487. package/dist/store/storeToRefs.d.mts +13 -0
  488. package/dist/store/storeToRefs.mjs +1 -0
  489. package/dist/store/types.d.mts +70 -0
  490. package/dist/store/utils.mjs +1 -0
  491. package/dist/store.d.mts +4 -1
  492. package/dist/store.mjs +1 -1
  493. package/dist/utils.mjs +1 -0
  494. package/dist/version.d.mts +4 -0
  495. package/dist/version.mjs +1 -0
  496. package/dist/vue-augment.d.mts +6 -0
  497. package/dist/vue-demi.d.mts +67 -7
  498. package/dist/vue-demi.mjs +1 -1
  499. package/dist/vue-types.d.mts +18 -0
  500. package/dist/weappIntrinsicElements/base.d.mts +22 -0
  501. package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +13 -0
  502. package/dist/weappIntrinsicElements/elements/ad.d.mts +16 -0
  503. package/dist/weappIntrinsicElements/elements/audio.d.mts +20 -0
  504. package/dist/weappIntrinsicElements/elements/block.d.mts +8 -0
  505. package/dist/weappIntrinsicElements/elements/button.d.mts +40 -0
  506. package/dist/weappIntrinsicElements/elements/camera.d.mts +18 -0
  507. package/dist/weappIntrinsicElements/elements/canvas.d.mts +18 -0
  508. package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +13 -0
  509. package/dist/weappIntrinsicElements/elements/checkbox.d.mts +13 -0
  510. package/dist/weappIntrinsicElements/elements/cover-image.d.mts +10 -0
  511. package/dist/weappIntrinsicElements/elements/cover-view.d.mts +10 -0
  512. package/dist/weappIntrinsicElements/elements/editor.d.mts +22 -0
  513. package/dist/weappIntrinsicElements/elements/form.d.mts +16 -0
  514. package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +15 -0
  515. package/dist/weappIntrinsicElements/elements/icon.d.mts +12 -0
  516. package/dist/weappIntrinsicElements/elements/image.d.mts +18 -0
  517. package/dist/weappIntrinsicElements/elements/import.d.mts +10 -0
  518. package/dist/weappIntrinsicElements/elements/include.d.mts +10 -0
  519. package/dist/weappIntrinsicElements/elements/input.d.mts +47 -0
  520. package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +8 -0
  521. package/dist/weappIntrinsicElements/elements/label.d.mts +10 -0
  522. package/dist/weappIntrinsicElements/elements/live-player.d.mts +35 -0
  523. package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +57 -0
  524. package/dist/weappIntrinsicElements/elements/map.d.mts +105 -0
  525. package/dist/weappIntrinsicElements/elements/match-media.d.mts +16 -0
  526. package/dist/weappIntrinsicElements/elements/movable-area.d.mts +26 -0
  527. package/dist/weappIntrinsicElements/elements/movable-view.d.mts +26 -0
  528. package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +15 -0
  529. package/dist/weappIntrinsicElements/elements/navigator.d.mts +25 -0
  530. package/dist/weappIntrinsicElements/elements/official-account.d.mts +13 -0
  531. package/dist/weappIntrinsicElements/elements/open-data.d.mts +15 -0
  532. package/dist/weappIntrinsicElements/elements/page-container.d.mts +25 -0
  533. package/dist/weappIntrinsicElements/elements/page-meta.d.mts +23 -0
  534. package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +18 -0
  535. package/dist/weappIntrinsicElements/elements/picker-view.d.mts +18 -0
  536. package/dist/weappIntrinsicElements/elements/picker.d.mts +23 -0
  537. package/dist/weappIntrinsicElements/elements/progress.d.mts +21 -0
  538. package/dist/weappIntrinsicElements/elements/radio-group.d.mts +13 -0
  539. package/dist/weappIntrinsicElements/elements/radio.d.mts +13 -0
  540. package/dist/weappIntrinsicElements/elements/rich-text.d.mts +17 -0
  541. package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +68 -0
  542. package/dist/weappIntrinsicElements/elements/share-element.d.mts +18 -0
  543. package/dist/weappIntrinsicElements/elements/slider.d.mts +23 -0
  544. package/dist/weappIntrinsicElements/elements/slot.d.mts +10 -0
  545. package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +42 -0
  546. package/dist/weappIntrinsicElements/elements/swiper.d.mts +42 -0
  547. package/dist/weappIntrinsicElements/elements/switch.d.mts +14 -0
  548. package/dist/weappIntrinsicElements/elements/template.d.mts +12 -0
  549. package/dist/weappIntrinsicElements/elements/text.d.mts +15 -0
  550. package/dist/weappIntrinsicElements/elements/textarea.d.mts +40 -0
  551. package/dist/weappIntrinsicElements/elements/video.d.mts +71 -0
  552. package/dist/weappIntrinsicElements/elements/view.d.mts +13 -0
  553. package/dist/weappIntrinsicElements/elements/voip-room.d.mts +14 -0
  554. package/dist/weappIntrinsicElements/elements/web-view.d.mts +13 -0
  555. package/dist/weappIntrinsicElements.d.mts +153 -0
  556. package/package.json +6 -6
  557. package/dist/base-BxKbbKVO.mjs +0 -1
  558. package/dist/computed-Xoi9XEUx.mjs +0 -1
  559. package/dist/dev/base-CYkvI7w8.mjs.map +0 -1
  560. package/dist/dev/computed-BxRsUJgi.mjs.map +0 -1
  561. package/dist/dev/ref-DRZC3Kc5.mjs +0 -695
  562. package/dist/dev/ref-DRZC3Kc5.mjs.map +0 -1
  563. package/dist/dev/router-D0JQfgyN.mjs +0 -754
  564. package/dist/dev/router-D0JQfgyN.mjs.map +0 -1
  565. package/dist/dev/router.mjs.map +0 -1
  566. package/dist/dev/store-HNsiQJ4d.mjs +0 -479
  567. package/dist/dev/store-HNsiQJ4d.mjs.map +0 -1
  568. package/dist/dev/template-n_iVr0ey.mjs.map +0 -1
  569. package/dist/dev/templateRef-BLnYcEH0.mjs +0 -6439
  570. package/dist/dev/templateRef-BLnYcEH0.mjs.map +0 -1
  571. package/dist/dev/toRefs-D06VmFK2.mjs.map +0 -1
  572. package/dist/dev/watch-jrgL5ald.mjs +0 -445
  573. package/dist/dev/watch-jrgL5ald.mjs.map +0 -1
  574. package/dist/index-BiHILcmb.d.mts +0 -1215
  575. package/dist/index-CCET_bCY.d.mts +0 -111
  576. package/dist/ref-D37CknuD.mjs +0 -1
  577. package/dist/router-D4W4lEXM.mjs +0 -1
  578. package/dist/store-eHrHBQiv.mjs +0 -1
  579. package/dist/template-CNzlwH-E.mjs +0 -1
  580. package/dist/templateRef-DOTHWzZ5.mjs +0 -1
  581. package/dist/toRefs-CoytPyo0.mjs +0 -1
  582. package/dist/traverse-B4Ez44Gd.d.mts +0 -108
  583. package/dist/vue-types-B3N60cGV.d.mts +0 -757
  584. package/dist/watch-Bbd-gmEg.mjs +0 -1
  585. package/dist/weappIntrinsicElements-BgDtC53_.d.mts +0 -1257
@@ -1,695 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
2
- function _typeof(o) {
3
- "@babel/helpers - typeof";
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
5
- return typeof o;
6
- } : function(o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
10
-
11
- //#endregion
12
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
13
- function toPrimitive(t, r) {
14
- if ("object" != _typeof(t) || !t) return t;
15
- var e = t[Symbol.toPrimitive];
16
- if (void 0 !== e) {
17
- var i = e.call(t, r || "default");
18
- if ("object" != _typeof(i)) return i;
19
- throw new TypeError("@@toPrimitive must return a primitive value.");
20
- }
21
- return ("string" === r ? String : Number)(t);
22
- }
23
-
24
- //#endregion
25
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
26
- function toPropertyKey(t) {
27
- var i = toPrimitive(t, "string");
28
- return "symbol" == _typeof(i) ? i : i + "";
29
- }
30
-
31
- //#endregion
32
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
33
- function _defineProperty(e, r, t) {
34
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35
- value: t,
36
- enumerable: !0,
37
- configurable: !0,
38
- writable: !0
39
- }) : e[r] = t, e;
40
- }
41
-
42
- //#endregion
43
- //#region src/reactivity/core.ts
44
- const targetMap = /* @__PURE__ */ new WeakMap();
45
- let activeEffect = null;
46
- const effectStack = [];
47
- let batchDepth = 0;
48
- const batchedEffects = /* @__PURE__ */ new Set();
49
- function startBatch() {
50
- batchDepth++;
51
- }
52
- function flushBatchedEffects() {
53
- while (batchedEffects.size) {
54
- const effects = [...batchedEffects];
55
- batchedEffects.clear();
56
- for (const ef of effects) ef();
57
- }
58
- }
59
- function endBatch() {
60
- if (batchDepth === 0) return;
61
- batchDepth--;
62
- if (batchDepth === 0) flushBatchedEffects();
63
- }
64
- function batch(fn) {
65
- startBatch();
66
- try {
67
- return fn();
68
- } finally {
69
- endBatch();
70
- }
71
- }
72
- function cleanupEffect(effect) {
73
- const { deps } = effect;
74
- for (let i = 0; i < deps.length; i++) deps[i].delete(effect);
75
- deps.length = 0;
76
- }
77
- function stop(runner) {
78
- var _runner$onStop;
79
- if (!runner.active) return;
80
- runner.active = false;
81
- cleanupEffect(runner);
82
- (_runner$onStop = runner.onStop) === null || _runner$onStop === void 0 || _runner$onStop.call(runner);
83
- }
84
- let activeEffectScope;
85
- var EffectScopeImpl = class {
86
- constructor(detached = false) {
87
- this.detached = detached;
88
- _defineProperty(this, "active", true);
89
- _defineProperty(this, "effects", []);
90
- _defineProperty(this, "cleanups", []);
91
- _defineProperty(this, "parent", void 0);
92
- _defineProperty(this, "scopes", void 0);
93
- if (!detached && activeEffectScope) {
94
- var _activeEffectScope;
95
- this.parent = activeEffectScope;
96
- ((_activeEffectScope = activeEffectScope).scopes || (_activeEffectScope.scopes = [])).push(this);
97
- }
98
- }
99
- run(fn) {
100
- if (!this.active) return;
101
- const prev = activeEffectScope;
102
- activeEffectScope = this;
103
- try {
104
- return fn();
105
- } finally {
106
- activeEffectScope = prev;
107
- }
108
- }
109
- stop() {
110
- var _this$parent;
111
- if (!this.active) return;
112
- this.active = false;
113
- for (const effect of this.effects) stop(effect);
114
- this.effects.length = 0;
115
- for (const cleanup of this.cleanups) cleanup();
116
- this.cleanups.length = 0;
117
- if (this.scopes) {
118
- for (const scope of this.scopes) scope.stop();
119
- this.scopes.length = 0;
120
- }
121
- if ((_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.scopes) {
122
- const index = this.parent.scopes.indexOf(this);
123
- if (index >= 0) this.parent.scopes.splice(index, 1);
124
- }
125
- this.parent = void 0;
126
- }
127
- };
128
- function effectScope(detached = false) {
129
- return new EffectScopeImpl(detached);
130
- }
131
- function getCurrentScope() {
132
- return activeEffectScope;
133
- }
134
- function onScopeDispose(fn) {
135
- if (activeEffectScope === null || activeEffectScope === void 0 ? void 0 : activeEffectScope.active) activeEffectScope.cleanups.push(fn);
136
- }
137
- function recordEffectScope(effect) {
138
- if (activeEffectScope === null || activeEffectScope === void 0 ? void 0 : activeEffectScope.active) activeEffectScope.effects.push(effect);
139
- }
140
- function createReactiveEffect(fn, options = {}) {
141
- const effect = function reactiveEffect() {
142
- if (!effect.active) return fn();
143
- if (effect._running) return fn();
144
- cleanupEffect(effect);
145
- try {
146
- effect._running = true;
147
- effectStack.push(effect);
148
- activeEffect = effect;
149
- return fn();
150
- } finally {
151
- var _effectStack;
152
- effectStack.pop();
153
- activeEffect = (_effectStack = effectStack[effectStack.length - 1]) !== null && _effectStack !== void 0 ? _effectStack : null;
154
- effect._running = false;
155
- }
156
- };
157
- effect.deps = [];
158
- effect.scheduler = options.scheduler;
159
- effect.onStop = options.onStop;
160
- effect.active = true;
161
- effect._running = false;
162
- effect._fn = fn;
163
- return effect;
164
- }
165
- function effect(fn, options = {}) {
166
- const _effect = createReactiveEffect(fn, options);
167
- recordEffectScope(_effect);
168
- if (!options.lazy) _effect();
169
- return _effect;
170
- }
171
- function track(target, key) {
172
- if (!activeEffect) return;
173
- let depsMap = targetMap.get(target);
174
- if (!depsMap) {
175
- depsMap = /* @__PURE__ */ new Map();
176
- targetMap.set(target, depsMap);
177
- }
178
- let dep = depsMap.get(key);
179
- if (!dep) {
180
- dep = /* @__PURE__ */ new Set();
181
- depsMap.set(key, dep);
182
- }
183
- if (!dep.has(activeEffect)) {
184
- dep.add(activeEffect);
185
- activeEffect.deps.push(dep);
186
- }
187
- }
188
- function scheduleEffect(ef) {
189
- if (ef.scheduler) {
190
- ef.scheduler();
191
- return;
192
- }
193
- if (batchDepth > 0) {
194
- batchedEffects.add(ef);
195
- return;
196
- }
197
- ef();
198
- }
199
- function trigger(target, key) {
200
- const depsMap = targetMap.get(target);
201
- if (!depsMap) return;
202
- const effects = depsMap.get(key);
203
- if (!effects) return;
204
- const effectsToRun = /* @__PURE__ */ new Set();
205
- effects.forEach((ef) => {
206
- if (ef !== activeEffect) effectsToRun.add(ef);
207
- });
208
- effectsToRun.forEach(scheduleEffect);
209
- }
210
- function trackEffects(dep) {
211
- if (!activeEffect) return;
212
- if (!dep.has(activeEffect)) {
213
- dep.add(activeEffect);
214
- activeEffect.deps.push(dep);
215
- }
216
- }
217
- function triggerEffects(dep) {
218
- new Set(dep).forEach(scheduleEffect);
219
- }
220
-
221
- //#endregion
222
- //#region src/reactivity/reactive/mutation.ts
223
- const mutationRecorders = /* @__PURE__ */ new Set();
224
- function addMutationRecorder(recorder) {
225
- mutationRecorders.add(recorder);
226
- }
227
- function removeMutationRecorder(recorder) {
228
- mutationRecorders.delete(recorder);
229
- }
230
-
231
- //#endregion
232
- //#region src/reactivity/reactive/patchState.ts
233
- const rawRootMap = /* @__PURE__ */ new WeakMap();
234
- const rawVersionMap = /* @__PURE__ */ new WeakMap();
235
- const rawParentMap = /* @__PURE__ */ new WeakMap();
236
- const rawParentsMap = /* @__PURE__ */ new WeakMap();
237
- const rawMultiParentSet = /* @__PURE__ */ new WeakSet();
238
- const rawPathMap = /* @__PURE__ */ new WeakMap();
239
- const rootPatchNodesMap = /* @__PURE__ */ new WeakMap();
240
- function getRootPatchNodes(root) {
241
- let nodes = rootPatchNodesMap.get(root);
242
- if (!nodes) {
243
- nodes = /* @__PURE__ */ new Set();
244
- rootPatchNodesMap.set(root, nodes);
245
- }
246
- return nodes;
247
- }
248
- function indexPatchNode(root, node) {
249
- getRootPatchNodes(root).add(node);
250
- }
251
- function bumpRawVersion(target) {
252
- var _rawVersionMap$get;
253
- rawVersionMap.set(target, ((_rawVersionMap$get = rawVersionMap.get(target)) !== null && _rawVersionMap$get !== void 0 ? _rawVersionMap$get : 0) + 1);
254
- }
255
- function getRawVersion(target) {
256
- var _rawVersionMap$get2;
257
- return (_rawVersionMap$get2 = rawVersionMap.get(target)) !== null && _rawVersionMap$get2 !== void 0 ? _rawVersionMap$get2 : 0;
258
- }
259
- function bumpAncestorVersions(target) {
260
- const visited = /* @__PURE__ */ new Set();
261
- const stack = [target];
262
- for (let i = 0; i < 2e3 && stack.length; i++) {
263
- const current = stack.pop();
264
- const parents = rawParentsMap.get(current);
265
- if (!parents) continue;
266
- for (const parent of parents.keys()) {
267
- if (visited.has(parent)) continue;
268
- visited.add(parent);
269
- bumpRawVersion(parent);
270
- stack.push(parent);
271
- }
272
- }
273
- }
274
- function refreshPathUniqueness(child) {
275
- const parents = rawParentsMap.get(child);
276
- if (!parents) {
277
- rawMultiParentSet.delete(child);
278
- rawParentMap.delete(child);
279
- return;
280
- }
281
- let uniqueParent;
282
- let uniqueKey;
283
- let total = 0;
284
- for (const [parent, keys] of parents) {
285
- for (const k of keys) {
286
- total += 1;
287
- if (total > 1) break;
288
- uniqueParent = parent;
289
- uniqueKey = k;
290
- }
291
- if (total > 1) break;
292
- }
293
- if (total === 1 && uniqueParent && uniqueKey) {
294
- rawMultiParentSet.delete(child);
295
- rawParentMap.set(child, {
296
- parent: uniqueParent,
297
- key: uniqueKey
298
- });
299
- return;
300
- }
301
- rawMultiParentSet.add(child);
302
- rawParentMap.delete(child);
303
- }
304
- function recordParentLink(child, parent, key) {
305
- if (typeof key !== "string") {
306
- rawMultiParentSet.add(child);
307
- rawParentMap.delete(child);
308
- return;
309
- }
310
- if (mutationRecorders.size) {
311
- var _rawRootMap$get;
312
- const root = (_rawRootMap$get = rawRootMap.get(parent)) !== null && _rawRootMap$get !== void 0 ? _rawRootMap$get : parent;
313
- indexPatchNode(root, parent);
314
- indexPatchNode(root, child);
315
- }
316
- let parents = rawParentsMap.get(child);
317
- if (!parents) {
318
- parents = /* @__PURE__ */ new Map();
319
- rawParentsMap.set(child, parents);
320
- }
321
- let keys = parents.get(parent);
322
- if (!keys) {
323
- keys = /* @__PURE__ */ new Set();
324
- parents.set(parent, keys);
325
- }
326
- keys.add(key);
327
- refreshPathUniqueness(child);
328
- }
329
- function removeParentLink(child, parent, key) {
330
- const parents = rawParentsMap.get(child);
331
- if (!parents) return;
332
- const keys = parents.get(parent);
333
- if (!keys) return;
334
- keys.delete(key);
335
- if (!keys.size) parents.delete(parent);
336
- if (!parents.size) rawParentsMap.delete(child);
337
- refreshPathUniqueness(child);
338
- }
339
- function resolvePathToTarget(root, target) {
340
- if (target === root) return [];
341
- if (rawMultiParentSet.has(target)) return;
342
- const segments = [];
343
- let current = target;
344
- for (let i = 0; i < 2e3; i++) {
345
- if (current === root) return segments.reverse();
346
- if (rawMultiParentSet.has(current)) return;
347
- const info = rawParentMap.get(current);
348
- if (!info) return;
349
- if (typeof info.key !== "string") return;
350
- segments.push(info.key);
351
- current = info.parent;
352
- }
353
- }
354
-
355
- //#endregion
356
- //#region src/reactivity/reactive/shared.ts
357
- function isObject(value) {
358
- return typeof value === "object" && value !== null;
359
- }
360
- function hasOwn(source, key) {
361
- return Object.prototype.hasOwnProperty.call(source, key);
362
- }
363
- function toRawType(value) {
364
- return Object.prototype.toString.call(value).slice(8, -1);
365
- }
366
- function targetTypeMap(rawType) {
367
- switch (rawType) {
368
- case "Object":
369
- case "Array": return 1;
370
- case "Map":
371
- case "Set":
372
- case "WeakMap":
373
- case "WeakSet": return 0;
374
- default: return 0;
375
- }
376
- }
377
- function getTargetType(value) {
378
- return value["__r_skip"] ? 0 : targetTypeMap(toRawType(value));
379
- }
380
- const VERSION_KEY = Symbol("wevu.version");
381
- function isArrayIndexKey(key) {
382
- if (!key) return false;
383
- const code0 = key.charCodeAt(0);
384
- if (code0 < 48 || code0 > 57) return false;
385
- const n = Number(key);
386
- return Number.isInteger(n) && n >= 0 && String(n) === key;
387
- }
388
- function toRaw(observed) {
389
- var _ReactiveFlags$RAW;
390
- return (_ReactiveFlags$RAW = observed === null || observed === void 0 ? void 0 : observed["__r_raw"]) !== null && _ReactiveFlags$RAW !== void 0 ? _ReactiveFlags$RAW : observed;
391
- }
392
-
393
- //#endregion
394
- //#region src/reactivity/reactive/state.ts
395
- const reactiveMap = /* @__PURE__ */ new WeakMap();
396
- const rawMap = /* @__PURE__ */ new WeakMap();
397
- const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
398
-
399
- //#endregion
400
- //#region src/reactivity/reactive.ts
401
- /**
402
- * 读取响应式版本号(框架内部调试能力)。
403
- * @internal
404
- */
405
- function getReactiveVersion(target) {
406
- return getRawVersion(toRaw(target));
407
- }
408
- function emitMutation(target, key, op) {
409
- var _rawRootMap$get;
410
- if (!mutationRecorders.size) return;
411
- if (typeof key !== "string") return;
412
- if (key.startsWith("__r_")) return;
413
- const root = (_rawRootMap$get = rawRootMap.get(target)) !== null && _rawRootMap$get !== void 0 ? _rawRootMap$get : target;
414
- const kind = Array.isArray(target) && (key === "length" || isArrayIndexKey(key)) ? "array" : "property";
415
- const baseSegments = resolvePathToTarget(root, target);
416
- if (!baseSegments) {
417
- const fallback = /* @__PURE__ */ new Set();
418
- const parents = rawParentsMap.get(target);
419
- if (parents) for (const [parent, keys] of parents) {
420
- var _resolvePathToTarget;
421
- const parentPath = rawPathMap.get(parent);
422
- const topFromParentPath = parentPath ? parentPath.split(".", 1)[0] : void 0;
423
- const topFromResolve = !topFromParentPath ? (_resolvePathToTarget = resolvePathToTarget(root, parent)) === null || _resolvePathToTarget === void 0 ? void 0 : _resolvePathToTarget[0] : void 0;
424
- for (const k of keys) {
425
- var _ref;
426
- if (typeof k !== "string") continue;
427
- fallback.add((_ref = topFromParentPath !== null && topFromParentPath !== void 0 ? topFromParentPath : topFromResolve) !== null && _ref !== void 0 ? _ref : k);
428
- }
429
- }
430
- else fallback.add(key);
431
- for (const recorder of mutationRecorders) recorder({
432
- root,
433
- kind,
434
- op,
435
- path: void 0,
436
- fallbackTopKeys: fallback.size ? [...fallback] : void 0
437
- });
438
- return;
439
- }
440
- const arrayIndexPos = baseSegments.findIndex((seg) => isArrayIndexKey(seg));
441
- if (arrayIndexPos !== -1) {
442
- const path = baseSegments.slice(0, arrayIndexPos).join(".") || void 0;
443
- for (const recorder of mutationRecorders) recorder({
444
- root,
445
- kind: "array",
446
- op,
447
- path
448
- });
449
- return;
450
- }
451
- const basePath = baseSegments.length ? baseSegments.join(".") : "";
452
- const path = kind === "array" ? basePath || void 0 : basePath ? `${basePath}.${key}` : key;
453
- for (const recorder of mutationRecorders) recorder({
454
- root,
455
- kind,
456
- op,
457
- path
458
- });
459
- }
460
- const mutableHandlers = {
461
- get(target, key, receiver) {
462
- if (key === "__r_isReactive") return true;
463
- if (key === "__r_raw") return target;
464
- const res = Reflect.get(target, key, receiver);
465
- track(target, key);
466
- if (isObject(res)) {
467
- var _rawRootMap$get2, _ReactiveFlags$RAW;
468
- if (res["__r_skip"]) return res;
469
- const parentRoot = (_rawRootMap$get2 = rawRootMap.get(target)) !== null && _rawRootMap$get2 !== void 0 ? _rawRootMap$get2 : target;
470
- const childRaw = (_ReactiveFlags$RAW = res === null || res === void 0 ? void 0 : res["__r_raw"]) !== null && _ReactiveFlags$RAW !== void 0 ? _ReactiveFlags$RAW : res;
471
- if (!rawRootMap.has(childRaw)) rawRootMap.set(childRaw, parentRoot);
472
- recordParentLink(childRaw, target, key);
473
- const parentPath = rawPathMap.get(target);
474
- if (mutationRecorders.size && typeof key === "string" && parentPath != null && !rawMultiParentSet.has(childRaw)) {
475
- const nextPath = parentPath ? `${parentPath}.${key}` : key;
476
- rawPathMap.set(childRaw, nextPath);
477
- }
478
- return reactive(res);
479
- }
480
- return res;
481
- },
482
- set(target, key, value, receiver) {
483
- const isArr = Array.isArray(target);
484
- const oldLength = isArr ? target.length : 0;
485
- const oldValue = Reflect.get(target, key, receiver);
486
- const result = Reflect.set(target, key, value, receiver);
487
- if (!Object.is(oldValue, value)) {
488
- var _ReactiveFlags$RAW2;
489
- const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW2 = oldValue === null || oldValue === void 0 ? void 0 : oldValue["__r_raw"]) !== null && _ReactiveFlags$RAW2 !== void 0 ? _ReactiveFlags$RAW2 : oldValue : void 0;
490
- if (oldRaw) removeParentLink(oldRaw, target, key);
491
- if (isObject(value) && !value["__r_skip"]) {
492
- var _rawRootMap$get3, _ReactiveFlags$RAW3;
493
- const root = (_rawRootMap$get3 = rawRootMap.get(target)) !== null && _rawRootMap$get3 !== void 0 ? _rawRootMap$get3 : target;
494
- const childRaw = (_ReactiveFlags$RAW3 = value === null || value === void 0 ? void 0 : value["__r_raw"]) !== null && _ReactiveFlags$RAW3 !== void 0 ? _ReactiveFlags$RAW3 : value;
495
- if (!rawRootMap.has(childRaw)) rawRootMap.set(childRaw, root);
496
- recordParentLink(childRaw, target, key);
497
- const parentPath = rawPathMap.get(target);
498
- if (mutationRecorders.size && typeof key === "string" && parentPath != null && !rawMultiParentSet.has(childRaw)) {
499
- const nextPath = parentPath ? `${parentPath}.${key}` : key;
500
- rawPathMap.set(childRaw, nextPath);
501
- }
502
- }
503
- trigger(target, key);
504
- if (isArr && typeof key === "string" && isArrayIndexKey(key) && Number(key) >= oldLength) trigger(target, "length");
505
- trigger(target, VERSION_KEY);
506
- bumpRawVersion(target);
507
- bumpAncestorVersions(target);
508
- const root = rawRootMap.get(target);
509
- if (root && root !== target) {
510
- trigger(root, VERSION_KEY);
511
- bumpRawVersion(root);
512
- }
513
- emitMutation(target, key, "set");
514
- }
515
- return result;
516
- },
517
- deleteProperty(target, key) {
518
- const hadKey = hasOwn(target, key);
519
- const oldValue = hadKey ? target[key] : void 0;
520
- const result = Reflect.deleteProperty(target, key);
521
- if (hadKey && result) {
522
- var _ReactiveFlags$RAW4;
523
- const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW4 = oldValue === null || oldValue === void 0 ? void 0 : oldValue["__r_raw"]) !== null && _ReactiveFlags$RAW4 !== void 0 ? _ReactiveFlags$RAW4 : oldValue : void 0;
524
- if (oldRaw) removeParentLink(oldRaw, target, key);
525
- trigger(target, key);
526
- trigger(target, VERSION_KEY);
527
- bumpRawVersion(target);
528
- bumpAncestorVersions(target);
529
- const root = rawRootMap.get(target);
530
- if (root && root !== target) {
531
- trigger(root, VERSION_KEY);
532
- bumpRawVersion(root);
533
- }
534
- emitMutation(target, key, "delete");
535
- }
536
- return result;
537
- },
538
- ownKeys(target) {
539
- track(target, Symbol.iterator);
540
- track(target, VERSION_KEY);
541
- return Reflect.ownKeys(target);
542
- }
543
- };
544
- function reactive(target) {
545
- if (!isObject(target)) return target;
546
- if (target["__r_isReactive"]) return target;
547
- const existingProxy = reactiveMap.get(target);
548
- if (existingProxy) return existingProxy;
549
- if (getTargetType(target) === 0) return target;
550
- const proxy = new Proxy(target, mutableHandlers);
551
- reactiveMap.set(target, proxy);
552
- rawMap.set(proxy, target);
553
- if (!rawVersionMap.has(target)) rawVersionMap.set(target, 0);
554
- if (!rawRootMap.has(target)) rawRootMap.set(target, target);
555
- return proxy;
556
- }
557
- function isReactive(value) {
558
- return Boolean(value && value["__r_isReactive"]);
559
- }
560
- function convertToReactive(value) {
561
- return isObject(value) ? reactive(value) : value;
562
- }
563
- /**
564
- * 标记对象为“原始”状态,后续不会被转换为响应式,返回原对象本身。
565
- *
566
- * @param value 需要标记的对象
567
- * @returns 带有跳过标记的原对象
568
- *
569
- * @example
570
- * ```ts
571
- * const foo = markRaw({
572
- * nested: {}
573
- * })
574
- *
575
- * const state = reactive({
576
- * foo
577
- * })
578
- *
579
- * state.foo // 不是响应式对象
580
- * ```
581
- */
582
- function markRaw(value) {
583
- if (!isObject(value)) return value;
584
- Object.defineProperty(value, "__r_skip", {
585
- value: true,
586
- configurable: true,
587
- enumerable: false,
588
- writable: true
589
- });
590
- return value;
591
- }
592
- /**
593
- * 判断某个值是否被标记为原始(即不应转换为响应式)。
594
- *
595
- * @param value 待检测的值
596
- * @returns 若含有跳过标记则返回 true
597
- */
598
- function isRaw(value) {
599
- return isObject(value) && "__r_skip" in value;
600
- }
601
-
602
- //#endregion
603
- //#region src/reactivity/ref.ts
604
- const RefFlag = "__v_isRef";
605
- function markAsRef(target) {
606
- try {
607
- Object.defineProperty(target, RefFlag, {
608
- value: true,
609
- configurable: true
610
- });
611
- } catch (_unused) {
612
- target[RefFlag] = true;
613
- }
614
- return target;
615
- }
616
- function isRef(value) {
617
- return Boolean(value && typeof value === "object" && value["__v_isRef"] === true);
618
- }
619
- var RefImpl = class {
620
- constructor(value) {
621
- _defineProperty(this, "_value", void 0);
622
- _defineProperty(this, "_rawValue", void 0);
623
- _defineProperty(this, "dep", void 0);
624
- markAsRef(this);
625
- this._rawValue = value;
626
- this._value = convertToReactive(value);
627
- }
628
- get value() {
629
- if (!this.dep) this.dep = /* @__PURE__ */ new Set();
630
- trackEffects(this.dep);
631
- return this._value;
632
- }
633
- set value(newValue) {
634
- if (!Object.is(newValue, this._rawValue)) {
635
- this._rawValue = newValue;
636
- this._value = convertToReactive(newValue);
637
- if (this.dep) triggerEffects(this.dep);
638
- }
639
- }
640
- };
641
- function ref(value) {
642
- if (isRef(value)) return value;
643
- return markRaw(new RefImpl(value));
644
- }
645
- function unref(value) {
646
- return isRef(value) ? value.value : value;
647
- }
648
- function toValue(source) {
649
- return typeof source === "function" ? source() : unref(source);
650
- }
651
- var CustomRefImpl = class {
652
- constructor(factory, defaultValue) {
653
- _defineProperty(this, "_getValue", void 0);
654
- _defineProperty(this, "_setValue", void 0);
655
- _defineProperty(this, "dep", void 0);
656
- markAsRef(this);
657
- const fallbackValue = defaultValue;
658
- const track = () => {
659
- if (!this.dep) this.dep = /* @__PURE__ */ new Set();
660
- trackEffects(this.dep);
661
- };
662
- const trigger = () => {
663
- if (this.dep) triggerEffects(this.dep);
664
- };
665
- const withFallback = (value) => value === void 0 && fallbackValue !== void 0 ? fallbackValue : value;
666
- if (typeof factory === "function") {
667
- const handlers = factory(track, trigger);
668
- this._getValue = () => withFallback(handlers.get());
669
- this._setValue = (value) => handlers.set(value);
670
- return;
671
- }
672
- const handlers = factory;
673
- this._getValue = () => {
674
- track();
675
- return withFallback(handlers.get());
676
- };
677
- this._setValue = (value) => {
678
- handlers.set(value);
679
- trigger();
680
- };
681
- }
682
- get value() {
683
- return this._getValue();
684
- }
685
- set value(newValue) {
686
- this._setValue(newValue);
687
- }
688
- };
689
- function customRef(factory, defaultValue) {
690
- return markRaw(new CustomRefImpl(factory, defaultValue));
691
- }
692
-
693
- //#endregion
694
- export { removeMutationRecorder as A, trigger as B, rawParentsMap as C, recordParentLink as D, rawVersionMap as E, getCurrentScope as F, onScopeDispose as I, startBatch as L, effect as M, effectScope as N, rootPatchNodesMap as O, endBatch as P, stop as R, rawParentMap as S, rawRootMap as T, triggerEffects as V, isObject as _, toValue as a, indexPatchNode as b, isRaw as c, reactive as d, rawMap as f, hasOwn as g, getTargetType as h, ref as i, batch as j, addMutationRecorder as k, isReactive as l, VERSION_KEY as m, isRef as n, unref as o, shallowReactiveMap as p, markAsRef as r, getReactiveVersion as s, customRef as t, markRaw as u, toRaw as v, rawPathMap as w, rawMultiParentSet as x, bumpRawVersion as y, track as z };
695
- //# sourceMappingURL=ref-DRZC3Kc5.mjs.map