@vc-shell/framework 1.1.45 → 1.1.47

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 (362) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/core/plugins/modularity/loader.ts +137 -78
  3. package/dist/assets/042c75b764bc78a7.svg +1 -0
  4. package/dist/assets/0ba156439a339f2a.svg +1 -0
  5. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  6. package/dist/assets/0f590f8a94577092.svg +1 -0
  7. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/157b8721e0600ea8.svg +1 -0
  11. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  12. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  13. package/dist/assets/1de63eb118636cce.svg +1 -0
  14. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  15. package/dist/assets/204eaf512fde2023.svg +1 -0
  16. package/dist/assets/2088983edf42e153.svg +1 -0
  17. package/dist/assets/208f810a9321a327.svg +1 -0
  18. package/dist/assets/21220a9d10e6c558.svg +1 -0
  19. package/dist/assets/220db345a102045d.woff2 +0 -0
  20. package/dist/assets/225da11d23968333.svg +1 -0
  21. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  22. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  23. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  24. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  25. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  26. package/dist/assets/2857c513073467da.svg +1 -0
  27. package/dist/assets/2b3be7889467d98f.woff +0 -0
  28. package/dist/assets/2d4e6190eec72737.svg +1 -0
  29. package/dist/assets/2eba973185078bc8.woff +0 -0
  30. package/dist/assets/327511cd4a7ba7f9.woff +0 -0
  31. package/dist/assets/334d3f6bc766c516.woff +0 -0
  32. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  33. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  34. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  35. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  36. package/dist/assets/41275bcb979cb650.svg +1 -0
  37. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  38. package/dist/assets/434f7982590e462f.woff +0 -0
  39. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  40. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  41. package/dist/assets/4e43c74354534fb3.svg +1 -0
  42. package/dist/assets/4fe75f5117100705.svg +1 -0
  43. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  44. package/dist/assets/52e261a005074e1b.woff +0 -0
  45. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  46. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  47. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  48. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  49. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  50. package/dist/assets/617c4736236e199e.woff +0 -0
  51. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  52. package/dist/assets/67230f05dc94a265.svg +1 -0
  53. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  54. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  55. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  56. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  57. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  58. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  59. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  60. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  61. package/dist/assets/7d970675c69fca1d.woff +0 -0
  62. package/dist/assets/7eda727273fd98d3.svg +1 -0
  63. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  64. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  65. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  66. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  67. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  68. package/dist/assets/910b0d99b9e26568.svg +1 -0
  69. package/dist/assets/91eee1aa81f72683.woff +0 -0
  70. package/dist/assets/92508f8707159b51.svg +1 -0
  71. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  72. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  73. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  74. package/dist/assets/9d37314695c0b68d.woff +0 -0
  75. package/dist/assets/a18404194e3f9047.svg +1 -0
  76. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  77. package/dist/assets/a47034e65dbcc3d7.woff +0 -0
  78. package/dist/assets/a617e11804bbacb7.woff +0 -0
  79. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  80. package/dist/assets/abf88f301a0730f4.svg +1 -0
  81. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  82. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  83. package/dist/assets/b27767411c8427be.woff +0 -0
  84. package/dist/assets/b291dc35a17511f7.woff +0 -0
  85. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  86. package/dist/assets/b372390551ca2fa1.svg +1 -0
  87. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  88. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  89. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  90. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  91. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  92. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  93. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  94. package/dist/assets/cb32840ce330103f.woff +0 -0
  95. package/dist/assets/d084bda16abe8a56.svg +1 -0
  96. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  97. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  98. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  99. package/dist/assets/d5a5b8630120073d.svg +1 -0
  100. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  101. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  102. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  103. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  104. package/dist/assets/e38acaa1757232e0.svg +1 -0
  105. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  106. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  107. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  108. package/dist/assets/e72bb11356af94c7.svg +1 -0
  109. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  110. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  111. package/dist/assets/f09d89268e4c0317.svg +1 -0
  112. package/dist/assets/f276d55184e05a07.woff +0 -0
  113. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  114. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  115. package/dist/assets/fcb1c1ffb5640194.woff +0 -0
  116. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  117. package/dist/assets/fed13b0d59903483.svg +1 -0
  118. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  119. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  120. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  121. package/dist/framework.js +16549 -25875
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +5 -8
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  127. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  128. package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
  129. package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
  130. package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
  131. package/dist/vendor-css-select-CtIzVIiG.js +622 -0
  132. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  133. package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
  134. package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
  135. package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
  136. package/dist/vendor-dom7-wvIUV9pT.js +529 -0
  137. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  138. package/dist/vendor-domhandler-CL40eeX9.js +311 -0
  139. package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
  140. package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
  141. package/dist/vendor-entities-v26HW8wW.js +363 -0
  142. package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
  143. package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
  144. package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
  145. package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
  146. package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
  147. package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
  148. package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
  149. package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
  150. package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
  151. package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
  152. package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
  153. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  154. package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
  155. package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
  156. package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
  157. package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
  158. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  159. package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
  160. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
  161. package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
  162. package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
  163. package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
  164. package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
  165. package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
  166. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
  167. package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
  168. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
  169. package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
  170. package/dist/vendor-moment-CwOqp704.js +2589 -0
  171. package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
  172. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
  173. package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
  174. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  175. package/dist/vendor-parse5-DqztJOGh.js +5747 -0
  176. package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
  177. package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
  178. package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
  179. package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
  180. package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
  181. package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
  182. package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
  183. package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
  184. package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
  185. package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
  186. package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
  187. package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
  188. package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
  189. package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
  190. package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
  191. package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
  192. package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
  193. package/dist/vendor-semver-BoKYtkQw.js +1021 -0
  194. package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
  195. package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
  196. package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
  197. package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
  198. package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
  199. package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
  200. package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
  201. package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
  202. package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
  203. package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
  204. package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
  205. package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
  206. package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
  207. package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
  208. package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
  209. package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
  210. package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
  211. package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
  212. package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
  213. package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
  214. package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
  215. package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
  216. package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
  217. package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
  218. package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
  219. package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
  220. package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
  221. package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
  222. package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
  223. package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
  224. package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
  225. package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
  226. package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
  227. package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
  228. package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
  229. package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
  230. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  231. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  232. package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
  233. package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
  234. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  235. package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
  236. package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
  237. package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
  238. package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
  239. package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
  240. package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
  241. package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
  242. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  243. package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
  244. package/package.json +5 -4
  245. package/ui/components/atoms/vc-icon/vc-icon.vue +10 -23
  246. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
  247. package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
  248. package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
  249. package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
  250. package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
  251. package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
  252. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
  253. package/dist/vendor-date-fns-515YWkk-.js +0 -6724
  254. package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
  255. package/dist/vendor-dom7-CJLPMwy5.js +0 -941
  256. package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
  257. package/dist/vendor-domhandler-9z8cS16a.js +0 -484
  258. package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
  259. package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
  260. package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
  261. package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
  262. package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
  263. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
  264. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
  265. package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
  266. package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
  267. package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
  268. package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
  269. package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
  270. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
  271. package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
  272. package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
  273. package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
  274. package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
  275. package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
  276. package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
  277. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
  278. package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
  279. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
  280. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
  281. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
  282. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
  283. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
  284. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
  285. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
  286. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
  287. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
  288. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
  289. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
  290. package/dist/vendor-moment-Mki5YqAR.js +0 -5679
  291. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
  292. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
  293. package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
  294. package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
  295. package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
  296. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
  297. package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
  298. package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
  299. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
  300. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
  301. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
  302. package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
  303. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
  304. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
  305. package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
  306. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
  307. package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
  308. package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
  309. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
  310. package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
  311. package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
  312. package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
  313. package/dist/vendor-semver-CVLMK-S4.js +0 -2702
  314. package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
  315. package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
  316. package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
  317. package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
  318. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
  319. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
  320. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
  321. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
  322. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
  323. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
  324. package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
  325. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
  326. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
  327. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
  328. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
  329. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
  330. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
  331. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
  332. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
  333. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
  334. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
  335. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
  336. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
  337. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
  338. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
  339. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
  340. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
  341. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
  342. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
  343. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
  344. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
  345. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
  346. package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
  347. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
  348. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
  349. package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
  350. package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
  351. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
  352. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
  353. package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
  354. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
  355. package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
  356. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
  357. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
  358. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
  359. package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
  360. package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
  361. package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
  362. package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
@@ -1,1568 +0,0 @@
1
- import { computed, isRef, reactive, unref, effectScope, watch, nextTick, customRef, shallowRef, watchEffect, readonly, ref, getCurrentInstance, inject, provide, toRefs as toRefs$1, toRef as toRef$1, onBeforeMount, onBeforeUnmount, onMounted, getCurrentScope, onScopeDispose, onUnmounted, isReactive } from 'vue';
2
-
3
- function computedEager(fn, options) {
4
- var _a;
5
- const result = shallowRef();
6
- watchEffect(() => {
7
- result.value = fn();
8
- }, {
9
- ...options,
10
- flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync"
11
- });
12
- return readonly(result);
13
- }
14
-
15
- function computedWithControl(source, fn) {
16
- let v = void 0;
17
- let track;
18
- let trigger;
19
- const dirty = ref(true);
20
- const update = () => {
21
- dirty.value = true;
22
- trigger();
23
- };
24
- watch(source, update, { flush: "sync" });
25
- const get = typeof fn === "function" ? fn : fn.get;
26
- const set = typeof fn === "function" ? void 0 : fn.set;
27
- const result = customRef((_track, _trigger) => {
28
- track = _track;
29
- trigger = _trigger;
30
- return {
31
- get() {
32
- if (dirty.value) {
33
- v = get();
34
- dirty.value = false;
35
- }
36
- track();
37
- return v;
38
- },
39
- set(v2) {
40
- set == null ? void 0 : set(v2);
41
- }
42
- };
43
- });
44
- if (Object.isExtensible(result))
45
- result.trigger = update;
46
- return result;
47
- }
48
-
49
- function tryOnScopeDispose(fn) {
50
- if (getCurrentScope()) {
51
- onScopeDispose(fn);
52
- return true;
53
- }
54
- return false;
55
- }
56
-
57
- function createEventHook() {
58
- const fns = /* @__PURE__ */ new Set();
59
- const off = (fn) => {
60
- fns.delete(fn);
61
- };
62
- const on = (fn) => {
63
- fns.add(fn);
64
- const offFn = () => off(fn);
65
- tryOnScopeDispose(offFn);
66
- return {
67
- off: offFn
68
- };
69
- };
70
- const trigger = (...args) => {
71
- return Promise.all(Array.from(fns).map((fn) => fn(...args)));
72
- };
73
- return {
74
- on,
75
- off,
76
- trigger
77
- };
78
- }
79
-
80
- function createGlobalState(stateFactory) {
81
- let initialized = false;
82
- let state;
83
- const scope = effectScope(true);
84
- return (...args) => {
85
- if (!initialized) {
86
- state = scope.run(() => stateFactory(...args));
87
- initialized = true;
88
- }
89
- return state;
90
- };
91
- }
92
-
93
- const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
94
-
95
- const provideLocal = (key, value) => {
96
- var _a;
97
- const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
98
- if (instance == null)
99
- throw new Error("provideLocal must be called in setup");
100
- if (!localProvidedStateMap.has(instance))
101
- localProvidedStateMap.set(instance, /* @__PURE__ */ Object.create(null));
102
- const localProvidedState = localProvidedStateMap.get(instance);
103
- localProvidedState[key] = value;
104
- provide(key, value);
105
- };
106
-
107
- const injectLocal = (...args) => {
108
- var _a;
109
- const key = args[0];
110
- const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
111
- if (instance == null)
112
- throw new Error("injectLocal must be called in setup");
113
- if (localProvidedStateMap.has(instance) && key in localProvidedStateMap.get(instance))
114
- return localProvidedStateMap.get(instance)[key];
115
- return inject(...args);
116
- };
117
-
118
- function createInjectionState(composable, options) {
119
- const key = (options == null ? void 0 : options.injectionKey) || Symbol(composable.name || "InjectionState");
120
- const defaultValue = options == null ? void 0 : options.defaultValue;
121
- const useProvidingState = (...args) => {
122
- const state = composable(...args);
123
- provideLocal(key, state);
124
- return state;
125
- };
126
- const useInjectedState = () => injectLocal(key, defaultValue);
127
- return [useProvidingState, useInjectedState];
128
- }
129
-
130
- function createSharedComposable(composable) {
131
- let subscribers = 0;
132
- let state;
133
- let scope;
134
- const dispose = () => {
135
- subscribers -= 1;
136
- if (scope && subscribers <= 0) {
137
- scope.stop();
138
- state = void 0;
139
- scope = void 0;
140
- }
141
- };
142
- return (...args) => {
143
- subscribers += 1;
144
- if (!state) {
145
- scope = effectScope(true);
146
- state = scope.run(() => composable(...args));
147
- }
148
- tryOnScopeDispose(dispose);
149
- return state;
150
- };
151
- }
152
-
153
- function extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {
154
- for (const [key, value] of Object.entries(extend)) {
155
- if (key === "value")
156
- continue;
157
- if (isRef(value) && unwrap) {
158
- Object.defineProperty(ref, key, {
159
- get() {
160
- return value.value;
161
- },
162
- set(v) {
163
- value.value = v;
164
- },
165
- enumerable
166
- });
167
- } else {
168
- Object.defineProperty(ref, key, { value, enumerable });
169
- }
170
- }
171
- return ref;
172
- }
173
-
174
- function get(obj, key) {
175
- if (key == null)
176
- return unref(obj);
177
- return unref(obj)[key];
178
- }
179
-
180
- function isDefined(v) {
181
- return unref(v) != null;
182
- }
183
-
184
- function makeDestructurable(obj, arr) {
185
- if (typeof Symbol !== "undefined") {
186
- const clone = { ...obj };
187
- Object.defineProperty(clone, Symbol.iterator, {
188
- enumerable: false,
189
- value() {
190
- let index = 0;
191
- return {
192
- next: () => ({
193
- value: arr[index++],
194
- done: index > arr.length
195
- })
196
- };
197
- }
198
- });
199
- return clone;
200
- } else {
201
- return Object.assign([...arr], obj);
202
- }
203
- }
204
-
205
- function toValue(r) {
206
- return typeof r === "function" ? r() : unref(r);
207
- }
208
- const resolveUnref = toValue;
209
-
210
- function reactify(fn, options) {
211
- const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue;
212
- return function(...args) {
213
- return computed(() => fn.apply(this, args.map((i) => unrefFn(i))));
214
- };
215
- }
216
-
217
- function reactifyObject(obj, optionsOrKeys = {}) {
218
- let keys = [];
219
- let options;
220
- if (Array.isArray(optionsOrKeys)) {
221
- keys = optionsOrKeys;
222
- } else {
223
- options = optionsOrKeys;
224
- const { includeOwnProperties = true } = optionsOrKeys;
225
- keys.push(...Object.keys(obj));
226
- if (includeOwnProperties)
227
- keys.push(...Object.getOwnPropertyNames(obj));
228
- }
229
- return Object.fromEntries(
230
- keys.map((key) => {
231
- const value = obj[key];
232
- return [
233
- key,
234
- typeof value === "function" ? reactify(value.bind(obj), options) : value
235
- ];
236
- })
237
- );
238
- }
239
-
240
- function toReactive(objectRef) {
241
- if (!isRef(objectRef))
242
- return reactive(objectRef);
243
- const proxy = new Proxy({}, {
244
- get(_, p, receiver) {
245
- return unref(Reflect.get(objectRef.value, p, receiver));
246
- },
247
- set(_, p, value) {
248
- if (isRef(objectRef.value[p]) && !isRef(value))
249
- objectRef.value[p].value = value;
250
- else
251
- objectRef.value[p] = value;
252
- return true;
253
- },
254
- deleteProperty(_, p) {
255
- return Reflect.deleteProperty(objectRef.value, p);
256
- },
257
- has(_, p) {
258
- return Reflect.has(objectRef.value, p);
259
- },
260
- ownKeys() {
261
- return Object.keys(objectRef.value);
262
- },
263
- getOwnPropertyDescriptor() {
264
- return {
265
- enumerable: true,
266
- configurable: true
267
- };
268
- }
269
- });
270
- return reactive(proxy);
271
- }
272
-
273
- function reactiveComputed(fn) {
274
- return toReactive(computed(fn));
275
- }
276
-
277
- function reactiveOmit(obj, ...keys) {
278
- const flatKeys = keys.flat();
279
- const predicate = flatKeys[0];
280
- return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0]))));
281
- }
282
-
283
- const isClient = typeof window !== "undefined" && typeof document !== "undefined";
284
- const isWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
285
- const isDef = (val) => typeof val !== "undefined";
286
- const notNullish = (val) => val != null;
287
- const assert = (condition, ...infos) => {
288
- if (!condition)
289
- console.warn(...infos);
290
- };
291
- const toString = Object.prototype.toString;
292
- const isObject = (val) => toString.call(val) === "[object Object]";
293
- const now = () => Date.now();
294
- const timestamp = () => +Date.now();
295
- const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
296
- const noop = () => {
297
- };
298
- const rand = (min, max) => {
299
- min = Math.ceil(min);
300
- max = Math.floor(max);
301
- return Math.floor(Math.random() * (max - min + 1)) + min;
302
- };
303
- const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
304
- const isIOS = /* @__PURE__ */ getIsIOS();
305
- function getIsIOS() {
306
- var _a, _b;
307
- return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
308
- }
309
-
310
- function createFilterWrapper(filter, fn) {
311
- function wrapper(...args) {
312
- return new Promise((resolve, reject) => {
313
- Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
314
- });
315
- }
316
- return wrapper;
317
- }
318
- const bypassFilter = (invoke) => {
319
- return invoke();
320
- };
321
- function debounceFilter(ms, options = {}) {
322
- let timer;
323
- let maxTimer;
324
- let lastRejector = noop;
325
- const _clearTimeout = (timer2) => {
326
- clearTimeout(timer2);
327
- lastRejector();
328
- lastRejector = noop;
329
- };
330
- const filter = (invoke) => {
331
- const duration = toValue(ms);
332
- const maxDuration = toValue(options.maxWait);
333
- if (timer)
334
- _clearTimeout(timer);
335
- if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
336
- if (maxTimer) {
337
- _clearTimeout(maxTimer);
338
- maxTimer = null;
339
- }
340
- return Promise.resolve(invoke());
341
- }
342
- return new Promise((resolve, reject) => {
343
- lastRejector = options.rejectOnCancel ? reject : resolve;
344
- if (maxDuration && !maxTimer) {
345
- maxTimer = setTimeout(() => {
346
- if (timer)
347
- _clearTimeout(timer);
348
- maxTimer = null;
349
- resolve(invoke());
350
- }, maxDuration);
351
- }
352
- timer = setTimeout(() => {
353
- if (maxTimer)
354
- _clearTimeout(maxTimer);
355
- maxTimer = null;
356
- resolve(invoke());
357
- }, duration);
358
- });
359
- };
360
- return filter;
361
- }
362
- function throttleFilter(...args) {
363
- let lastExec = 0;
364
- let timer;
365
- let isLeading = true;
366
- let lastRejector = noop;
367
- let lastValue;
368
- let ms;
369
- let trailing;
370
- let leading;
371
- let rejectOnCancel;
372
- if (!isRef(args[0]) && typeof args[0] === "object")
373
- ({ delay: ms, trailing = true, leading = true, rejectOnCancel = false } = args[0]);
374
- else
375
- [ms, trailing = true, leading = true, rejectOnCancel = false] = args;
376
- const clear = () => {
377
- if (timer) {
378
- clearTimeout(timer);
379
- timer = void 0;
380
- lastRejector();
381
- lastRejector = noop;
382
- }
383
- };
384
- const filter = (_invoke) => {
385
- const duration = toValue(ms);
386
- const elapsed = Date.now() - lastExec;
387
- const invoke = () => {
388
- return lastValue = _invoke();
389
- };
390
- clear();
391
- if (duration <= 0) {
392
- lastExec = Date.now();
393
- return invoke();
394
- }
395
- if (elapsed > duration && (leading || !isLeading)) {
396
- lastExec = Date.now();
397
- invoke();
398
- } else if (trailing) {
399
- lastValue = new Promise((resolve, reject) => {
400
- lastRejector = rejectOnCancel ? reject : resolve;
401
- timer = setTimeout(() => {
402
- lastExec = Date.now();
403
- isLeading = true;
404
- resolve(invoke());
405
- clear();
406
- }, Math.max(0, duration - elapsed));
407
- });
408
- }
409
- if (!leading && !timer)
410
- timer = setTimeout(() => isLeading = true, duration);
411
- isLeading = false;
412
- return lastValue;
413
- };
414
- return filter;
415
- }
416
- function pausableFilter(extendFilter = bypassFilter) {
417
- const isActive = ref(true);
418
- function pause() {
419
- isActive.value = false;
420
- }
421
- function resume() {
422
- isActive.value = true;
423
- }
424
- const eventFilter = (...args) => {
425
- if (isActive.value)
426
- extendFilter(...args);
427
- };
428
- return { isActive: readonly(isActive), pause, resume, eventFilter };
429
- }
430
-
431
- const directiveHooks = {
432
- mounted: "mounted" ,
433
- updated: "updated" ,
434
- unmounted: "unmounted"
435
- };
436
-
437
- function cacheStringFunction(fn) {
438
- const cache = /* @__PURE__ */ Object.create(null);
439
- return (str) => {
440
- const hit = cache[str];
441
- return hit || (cache[str] = fn(str));
442
- };
443
- }
444
- const hyphenateRE = /\B([A-Z])/g;
445
- const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
446
- const camelizeRE = /-(\w)/g;
447
- const camelize = cacheStringFunction((str) => {
448
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
449
- });
450
-
451
- function promiseTimeout(ms, throwOnTimeout = false, reason = "Timeout") {
452
- return new Promise((resolve, reject) => {
453
- if (throwOnTimeout)
454
- setTimeout(() => reject(reason), ms);
455
- else
456
- setTimeout(resolve, ms);
457
- });
458
- }
459
- function identity(arg) {
460
- return arg;
461
- }
462
- function createSingletonPromise(fn) {
463
- let _promise;
464
- function wrapper() {
465
- if (!_promise)
466
- _promise = fn();
467
- return _promise;
468
- }
469
- wrapper.reset = async () => {
470
- const _prev = _promise;
471
- _promise = void 0;
472
- if (_prev)
473
- await _prev;
474
- };
475
- return wrapper;
476
- }
477
- function invoke(fn) {
478
- return fn();
479
- }
480
- function containsProp(obj, ...props) {
481
- return props.some((k) => k in obj);
482
- }
483
- function increaseWithUnit(target, delta) {
484
- var _a;
485
- if (typeof target === "number")
486
- return target + delta;
487
- const value = ((_a = target.match(/^-?\d+\.?\d*/)) == null ? void 0 : _a[0]) || "";
488
- const unit = target.slice(value.length);
489
- const result = Number.parseFloat(value) + delta;
490
- if (Number.isNaN(result))
491
- return target;
492
- return result + unit;
493
- }
494
- function objectPick(obj, keys, omitUndefined = false) {
495
- return keys.reduce((n, k) => {
496
- if (k in obj) {
497
- if (!omitUndefined || obj[k] !== void 0)
498
- n[k] = obj[k];
499
- }
500
- return n;
501
- }, {});
502
- }
503
- function objectOmit(obj, keys, omitUndefined = false) {
504
- return Object.fromEntries(Object.entries(obj).filter(([key, value]) => {
505
- return (!omitUndefined || value !== void 0) && !keys.includes(key);
506
- }));
507
- }
508
- function objectEntries(obj) {
509
- return Object.entries(obj);
510
- }
511
- function getLifeCycleTarget(target) {
512
- return target || getCurrentInstance();
513
- }
514
-
515
- function toRef(...args) {
516
- if (args.length !== 1)
517
- return toRef$1(...args);
518
- const r = args[0];
519
- return typeof r === "function" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r);
520
- }
521
- const resolveRef = toRef;
522
-
523
- function reactivePick(obj, ...keys) {
524
- const flatKeys = keys.flat();
525
- const predicate = flatKeys[0];
526
- return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)])));
527
- }
528
-
529
- function refAutoReset(defaultValue, afterMs = 1e4) {
530
- return customRef((track, trigger) => {
531
- let value = toValue(defaultValue);
532
- let timer;
533
- const resetAfter = () => setTimeout(() => {
534
- value = toValue(defaultValue);
535
- trigger();
536
- }, toValue(afterMs));
537
- tryOnScopeDispose(() => {
538
- clearTimeout(timer);
539
- });
540
- return {
541
- get() {
542
- track();
543
- return value;
544
- },
545
- set(newValue) {
546
- value = newValue;
547
- trigger();
548
- clearTimeout(timer);
549
- timer = resetAfter();
550
- }
551
- };
552
- });
553
- }
554
-
555
- function useDebounceFn(fn, ms = 200, options = {}) {
556
- return createFilterWrapper(
557
- debounceFilter(ms, options),
558
- fn
559
- );
560
- }
561
-
562
- function refDebounced(value, ms = 200, options = {}) {
563
- const debounced = ref(value.value);
564
- const updater = useDebounceFn(() => {
565
- debounced.value = value.value;
566
- }, ms, options);
567
- watch(value, () => updater());
568
- return debounced;
569
- }
570
-
571
- function refDefault(source, defaultValue) {
572
- return computed({
573
- get() {
574
- var _a;
575
- return (_a = source.value) != null ? _a : defaultValue;
576
- },
577
- set(value) {
578
- source.value = value;
579
- }
580
- });
581
- }
582
-
583
- function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
584
- return createFilterWrapper(
585
- throttleFilter(ms, trailing, leading, rejectOnCancel),
586
- fn
587
- );
588
- }
589
-
590
- function refThrottled(value, delay = 200, trailing = true, leading = true) {
591
- if (delay <= 0)
592
- return value;
593
- const throttled = ref(value.value);
594
- const updater = useThrottleFn(() => {
595
- throttled.value = value.value;
596
- }, delay, trailing, leading);
597
- watch(value, () => updater());
598
- return throttled;
599
- }
600
-
601
- function refWithControl(initial, options = {}) {
602
- let source = initial;
603
- let track;
604
- let trigger;
605
- const ref = customRef((_track, _trigger) => {
606
- track = _track;
607
- trigger = _trigger;
608
- return {
609
- get() {
610
- return get();
611
- },
612
- set(v) {
613
- set(v);
614
- }
615
- };
616
- });
617
- function get(tracking = true) {
618
- if (tracking)
619
- track();
620
- return source;
621
- }
622
- function set(value, triggering = true) {
623
- var _a, _b;
624
- if (value === source)
625
- return;
626
- const old = source;
627
- if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false)
628
- return;
629
- source = value;
630
- (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old);
631
- if (triggering)
632
- trigger();
633
- }
634
- const untrackedGet = () => get(false);
635
- const silentSet = (v) => set(v, false);
636
- const peek = () => get(false);
637
- const lay = (v) => set(v, false);
638
- return extendRef(
639
- ref,
640
- {
641
- get,
642
- set,
643
- untrackedGet,
644
- silentSet,
645
- peek,
646
- lay
647
- },
648
- { enumerable: true }
649
- );
650
- }
651
- const controlledRef = refWithControl;
652
-
653
- function set(...args) {
654
- if (args.length === 2) {
655
- const [ref, value] = args;
656
- ref.value = value;
657
- }
658
- if (args.length === 3) {
659
- {
660
- const [target, key, value] = args;
661
- target[key] = value;
662
- }
663
- }
664
- }
665
-
666
- function watchWithFilter(source, cb, options = {}) {
667
- const {
668
- eventFilter = bypassFilter,
669
- ...watchOptions
670
- } = options;
671
- return watch(
672
- source,
673
- createFilterWrapper(
674
- eventFilter,
675
- cb
676
- ),
677
- watchOptions
678
- );
679
- }
680
-
681
- function watchPausable(source, cb, options = {}) {
682
- const {
683
- eventFilter: filter,
684
- ...watchOptions
685
- } = options;
686
- const { eventFilter, pause, resume, isActive } = pausableFilter(filter);
687
- const stop = watchWithFilter(
688
- source,
689
- cb,
690
- {
691
- ...watchOptions,
692
- eventFilter
693
- }
694
- );
695
- return { stop, pause, resume, isActive };
696
- }
697
-
698
- function syncRef(left, right, ...[options]) {
699
- const {
700
- flush = "sync",
701
- deep = false,
702
- immediate = true,
703
- direction = "both",
704
- transform = {}
705
- } = options || {};
706
- const watchers = [];
707
- const transformLTR = "ltr" in transform && transform.ltr || ((v) => v);
708
- const transformRTL = "rtl" in transform && transform.rtl || ((v) => v);
709
- if (direction === "both" || direction === "ltr") {
710
- watchers.push(watchPausable(
711
- left,
712
- (newValue) => {
713
- watchers.forEach((w) => w.pause());
714
- right.value = transformLTR(newValue);
715
- watchers.forEach((w) => w.resume());
716
- },
717
- { flush, deep, immediate }
718
- ));
719
- }
720
- if (direction === "both" || direction === "rtl") {
721
- watchers.push(watchPausable(
722
- right,
723
- (newValue) => {
724
- watchers.forEach((w) => w.pause());
725
- left.value = transformRTL(newValue);
726
- watchers.forEach((w) => w.resume());
727
- },
728
- { flush, deep, immediate }
729
- ));
730
- }
731
- const stop = () => {
732
- watchers.forEach((w) => w.stop());
733
- };
734
- return stop;
735
- }
736
-
737
- function syncRefs(source, targets, options = {}) {
738
- const {
739
- flush = "sync",
740
- deep = false,
741
- immediate = true
742
- } = options;
743
- if (!Array.isArray(targets))
744
- targets = [targets];
745
- return watch(
746
- source,
747
- (newValue) => targets.forEach((target) => target.value = newValue),
748
- { flush, deep, immediate }
749
- );
750
- }
751
-
752
- function toRefs(objectRef, options = {}) {
753
- if (!isRef(objectRef))
754
- return toRefs$1(objectRef);
755
- const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {};
756
- for (const key in objectRef.value) {
757
- result[key] = customRef(() => ({
758
- get() {
759
- return objectRef.value[key];
760
- },
761
- set(v) {
762
- var _a;
763
- const replaceRef = (_a = toValue(options.replaceRef)) != null ? _a : true;
764
- if (replaceRef) {
765
- if (Array.isArray(objectRef.value)) {
766
- const copy = [...objectRef.value];
767
- copy[key] = v;
768
- objectRef.value = copy;
769
- } else {
770
- const newObject = { ...objectRef.value, [key]: v };
771
- Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));
772
- objectRef.value = newObject;
773
- }
774
- } else {
775
- objectRef.value[key] = v;
776
- }
777
- }
778
- }));
779
- }
780
- return result;
781
- }
782
-
783
- function tryOnBeforeMount(fn, sync = true, target) {
784
- const instance = getLifeCycleTarget(target);
785
- if (instance)
786
- onBeforeMount(fn, target);
787
- else if (sync)
788
- fn();
789
- else
790
- nextTick(fn);
791
- }
792
-
793
- function tryOnBeforeUnmount(fn, target) {
794
- const instance = getLifeCycleTarget(target);
795
- if (instance)
796
- onBeforeUnmount(fn, target);
797
- }
798
-
799
- function tryOnMounted(fn, sync = true, target) {
800
- const instance = getLifeCycleTarget();
801
- if (instance)
802
- onMounted(fn, target);
803
- else if (sync)
804
- fn();
805
- else
806
- nextTick(fn);
807
- }
808
-
809
- function tryOnUnmounted(fn, target) {
810
- const instance = getLifeCycleTarget(target);
811
- if (instance)
812
- onUnmounted(fn, target);
813
- }
814
-
815
- function createUntil(r, isNot = false) {
816
- function toMatch(condition, { flush = "sync", deep = false, timeout, throwOnTimeout } = {}) {
817
- let stop = null;
818
- const watcher = new Promise((resolve) => {
819
- stop = watch(
820
- r,
821
- (v) => {
822
- if (condition(v) !== isNot) {
823
- stop == null ? void 0 : stop();
824
- resolve(v);
825
- }
826
- },
827
- {
828
- flush,
829
- deep,
830
- immediate: true
831
- }
832
- );
833
- });
834
- const promises = [watcher];
835
- if (timeout != null) {
836
- promises.push(
837
- promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop())
838
- );
839
- }
840
- return Promise.race(promises);
841
- }
842
- function toBe(value, options) {
843
- if (!isRef(value))
844
- return toMatch((v) => v === value, options);
845
- const { flush = "sync", deep = false, timeout, throwOnTimeout } = options != null ? options : {};
846
- let stop = null;
847
- const watcher = new Promise((resolve) => {
848
- stop = watch(
849
- [r, value],
850
- ([v1, v2]) => {
851
- if (isNot !== (v1 === v2)) {
852
- stop == null ? void 0 : stop();
853
- resolve(v1);
854
- }
855
- },
856
- {
857
- flush,
858
- deep,
859
- immediate: true
860
- }
861
- );
862
- });
863
- const promises = [watcher];
864
- if (timeout != null) {
865
- promises.push(
866
- promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => {
867
- stop == null ? void 0 : stop();
868
- return toValue(r);
869
- })
870
- );
871
- }
872
- return Promise.race(promises);
873
- }
874
- function toBeTruthy(options) {
875
- return toMatch((v) => Boolean(v), options);
876
- }
877
- function toBeNull(options) {
878
- return toBe(null, options);
879
- }
880
- function toBeUndefined(options) {
881
- return toBe(void 0, options);
882
- }
883
- function toBeNaN(options) {
884
- return toMatch(Number.isNaN, options);
885
- }
886
- function toContains(value, options) {
887
- return toMatch((v) => {
888
- const array = Array.from(v);
889
- return array.includes(value) || array.includes(toValue(value));
890
- }, options);
891
- }
892
- function changed(options) {
893
- return changedTimes(1, options);
894
- }
895
- function changedTimes(n = 1, options) {
896
- let count = -1;
897
- return toMatch(() => {
898
- count += 1;
899
- return count >= n;
900
- }, options);
901
- }
902
- if (Array.isArray(toValue(r))) {
903
- const instance = {
904
- toMatch,
905
- toContains,
906
- changed,
907
- changedTimes,
908
- get not() {
909
- return createUntil(r, !isNot);
910
- }
911
- };
912
- return instance;
913
- } else {
914
- const instance = {
915
- toMatch,
916
- toBe,
917
- toBeTruthy,
918
- toBeNull,
919
- toBeNaN,
920
- toBeUndefined,
921
- changed,
922
- changedTimes,
923
- get not() {
924
- return createUntil(r, !isNot);
925
- }
926
- };
927
- return instance;
928
- }
929
- }
930
- function until(r) {
931
- return createUntil(r);
932
- }
933
-
934
- function defaultComparator(value, othVal) {
935
- return value === othVal;
936
- }
937
- function useArrayDifference(...args) {
938
- var _a;
939
- const list = args[0];
940
- const values = args[1];
941
- let compareFn = (_a = args[2]) != null ? _a : defaultComparator;
942
- if (typeof compareFn === "string") {
943
- const key = compareFn;
944
- compareFn = (value, othVal) => value[key] === othVal[key];
945
- }
946
- return computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1));
947
- }
948
-
949
- function useArrayEvery(list, fn) {
950
- return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array)));
951
- }
952
-
953
- function useArrayFilter(list, fn) {
954
- return computed(() => toValue(list).map((i) => toValue(i)).filter(fn));
955
- }
956
-
957
- function useArrayFind(list, fn) {
958
- return computed(() => toValue(
959
- toValue(list).find((element, index, array) => fn(toValue(element), index, array))
960
- ));
961
- }
962
-
963
- function useArrayFindIndex(list, fn) {
964
- return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array)));
965
- }
966
-
967
- function findLast(arr, cb) {
968
- let index = arr.length;
969
- while (index-- > 0) {
970
- if (cb(arr[index], index, arr))
971
- return arr[index];
972
- }
973
- return void 0;
974
- }
975
- function useArrayFindLast(list, fn) {
976
- return computed(() => toValue(
977
- !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array))
978
- ));
979
- }
980
-
981
- function isArrayIncludesOptions(obj) {
982
- return isObject(obj) && containsProp(obj, "formIndex", "comparator");
983
- }
984
- function useArrayIncludes(...args) {
985
- var _a;
986
- const list = args[0];
987
- const value = args[1];
988
- let comparator = args[2];
989
- let formIndex = 0;
990
- if (isArrayIncludesOptions(comparator)) {
991
- formIndex = (_a = comparator.fromIndex) != null ? _a : 0;
992
- comparator = comparator.comparator;
993
- }
994
- if (typeof comparator === "string") {
995
- const key = comparator;
996
- comparator = (element, value2) => element[key] === toValue(value2);
997
- }
998
- comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2);
999
- return computed(() => toValue(list).slice(formIndex).some((element, index, array) => comparator(
1000
- toValue(element),
1001
- toValue(value),
1002
- index,
1003
- toValue(array)
1004
- )));
1005
- }
1006
-
1007
- function useArrayJoin(list, separator) {
1008
- return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator)));
1009
- }
1010
-
1011
- function useArrayMap(list, fn) {
1012
- return computed(() => toValue(list).map((i) => toValue(i)).map(fn));
1013
- }
1014
-
1015
- function useArrayReduce(list, reducer, ...args) {
1016
- const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index);
1017
- return computed(() => {
1018
- const resolved = toValue(list);
1019
- return args.length ? resolved.reduce(reduceCallback, toValue(args[0])) : resolved.reduce(reduceCallback);
1020
- });
1021
- }
1022
-
1023
- function useArraySome(list, fn) {
1024
- return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array)));
1025
- }
1026
-
1027
- function uniq(array) {
1028
- return Array.from(new Set(array));
1029
- }
1030
- function uniqueElementsBy(array, fn) {
1031
- return array.reduce((acc, v) => {
1032
- if (!acc.some((x) => fn(v, x, array)))
1033
- acc.push(v);
1034
- return acc;
1035
- }, []);
1036
- }
1037
- function useArrayUnique(list, compareFn) {
1038
- return computed(() => {
1039
- const resolvedList = toValue(list).map((element) => toValue(element));
1040
- return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList);
1041
- });
1042
- }
1043
-
1044
- function useCounter(initialValue = 0, options = {}) {
1045
- let _initialValue = unref(initialValue);
1046
- const count = ref(initialValue);
1047
- const {
1048
- max = Number.POSITIVE_INFINITY,
1049
- min = Number.NEGATIVE_INFINITY
1050
- } = options;
1051
- const inc = (delta = 1) => count.value = Math.max(Math.min(max, count.value + delta), min);
1052
- const dec = (delta = 1) => count.value = Math.min(Math.max(min, count.value - delta), max);
1053
- const get = () => count.value;
1054
- const set = (val) => count.value = Math.max(min, Math.min(max, val));
1055
- const reset = (val = _initialValue) => {
1056
- _initialValue = val;
1057
- return set(val);
1058
- };
1059
- return { count, inc, dec, get, set, reset };
1060
- }
1061
-
1062
- const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
1063
- const REGEX_FORMAT = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
1064
- function defaultMeridiem(hours, minutes, isLowercase, hasPeriod) {
1065
- let m = hours < 12 ? "AM" : "PM";
1066
- if (hasPeriod)
1067
- m = m.split("").reduce((acc, curr) => acc += `${curr}.`, "");
1068
- return isLowercase ? m.toLowerCase() : m;
1069
- }
1070
- function formatOrdinal(num) {
1071
- const suffixes = ["th", "st", "nd", "rd"];
1072
- const v = num % 100;
1073
- return num + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);
1074
- }
1075
- function formatDate(date, formatStr, options = {}) {
1076
- var _a;
1077
- const years = date.getFullYear();
1078
- const month = date.getMonth();
1079
- const days = date.getDate();
1080
- const hours = date.getHours();
1081
- const minutes = date.getMinutes();
1082
- const seconds = date.getSeconds();
1083
- const milliseconds = date.getMilliseconds();
1084
- const day = date.getDay();
1085
- const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem;
1086
- const matches = {
1087
- Yo: () => formatOrdinal(years),
1088
- YY: () => String(years).slice(-2),
1089
- YYYY: () => years,
1090
- M: () => month + 1,
1091
- Mo: () => formatOrdinal(month + 1),
1092
- MM: () => `${month + 1}`.padStart(2, "0"),
1093
- MMM: () => date.toLocaleDateString(options.locales, { month: "short" }),
1094
- MMMM: () => date.toLocaleDateString(options.locales, { month: "long" }),
1095
- D: () => String(days),
1096
- Do: () => formatOrdinal(days),
1097
- DD: () => `${days}`.padStart(2, "0"),
1098
- H: () => String(hours),
1099
- Ho: () => formatOrdinal(hours),
1100
- HH: () => `${hours}`.padStart(2, "0"),
1101
- h: () => `${hours % 12 || 12}`.padStart(1, "0"),
1102
- ho: () => formatOrdinal(hours % 12 || 12),
1103
- hh: () => `${hours % 12 || 12}`.padStart(2, "0"),
1104
- m: () => String(minutes),
1105
- mo: () => formatOrdinal(minutes),
1106
- mm: () => `${minutes}`.padStart(2, "0"),
1107
- s: () => String(seconds),
1108
- so: () => formatOrdinal(seconds),
1109
- ss: () => `${seconds}`.padStart(2, "0"),
1110
- SSS: () => `${milliseconds}`.padStart(3, "0"),
1111
- d: () => day,
1112
- dd: () => date.toLocaleDateString(options.locales, { weekday: "narrow" }),
1113
- ddd: () => date.toLocaleDateString(options.locales, { weekday: "short" }),
1114
- dddd: () => date.toLocaleDateString(options.locales, { weekday: "long" }),
1115
- A: () => meridiem(hours, minutes),
1116
- AA: () => meridiem(hours, minutes, false, true),
1117
- a: () => meridiem(hours, minutes, true),
1118
- aa: () => meridiem(hours, minutes, true, true)
1119
- };
1120
- return formatStr.replace(REGEX_FORMAT, (match, $1) => {
1121
- var _a2, _b;
1122
- return (_b = $1 != null ? $1 : (_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) != null ? _b : match;
1123
- });
1124
- }
1125
- function normalizeDate(date) {
1126
- if (date === null)
1127
- return new Date(Number.NaN);
1128
- if (date === void 0)
1129
- return /* @__PURE__ */ new Date();
1130
- if (date instanceof Date)
1131
- return new Date(date);
1132
- if (typeof date === "string" && !/Z$/i.test(date)) {
1133
- const d = date.match(REGEX_PARSE);
1134
- if (d) {
1135
- const m = d[2] - 1 || 0;
1136
- const ms = (d[7] || "0").substring(0, 3);
1137
- return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
1138
- }
1139
- }
1140
- return new Date(date);
1141
- }
1142
- function useDateFormat(date, formatStr = "HH:mm:ss", options = {}) {
1143
- return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options));
1144
- }
1145
-
1146
- function useIntervalFn(cb, interval = 1e3, options = {}) {
1147
- const {
1148
- immediate = true,
1149
- immediateCallback = false
1150
- } = options;
1151
- let timer = null;
1152
- const isActive = ref(false);
1153
- function clean() {
1154
- if (timer) {
1155
- clearInterval(timer);
1156
- timer = null;
1157
- }
1158
- }
1159
- function pause() {
1160
- isActive.value = false;
1161
- clean();
1162
- }
1163
- function resume() {
1164
- const intervalValue = toValue(interval);
1165
- if (intervalValue <= 0)
1166
- return;
1167
- isActive.value = true;
1168
- if (immediateCallback)
1169
- cb();
1170
- clean();
1171
- timer = setInterval(cb, intervalValue);
1172
- }
1173
- if (immediate && isClient)
1174
- resume();
1175
- if (isRef(interval) || typeof interval === "function") {
1176
- const stopWatch = watch(interval, () => {
1177
- if (isActive.value && isClient)
1178
- resume();
1179
- });
1180
- tryOnScopeDispose(stopWatch);
1181
- }
1182
- tryOnScopeDispose(pause);
1183
- return {
1184
- isActive,
1185
- pause,
1186
- resume
1187
- };
1188
- }
1189
-
1190
- function useInterval(interval = 1e3, options = {}) {
1191
- const {
1192
- controls: exposeControls = false,
1193
- immediate = true,
1194
- callback
1195
- } = options;
1196
- const counter = ref(0);
1197
- const update = () => counter.value += 1;
1198
- const reset = () => {
1199
- counter.value = 0;
1200
- };
1201
- const controls = useIntervalFn(
1202
- callback ? () => {
1203
- update();
1204
- callback(counter.value);
1205
- } : update,
1206
- interval,
1207
- { immediate }
1208
- );
1209
- if (exposeControls) {
1210
- return {
1211
- counter,
1212
- reset,
1213
- ...controls
1214
- };
1215
- } else {
1216
- return counter;
1217
- }
1218
- }
1219
-
1220
- function useLastChanged(source, options = {}) {
1221
- var _a;
1222
- const ms = ref((_a = options.initialValue) != null ? _a : null);
1223
- watch(
1224
- source,
1225
- () => ms.value = timestamp(),
1226
- options
1227
- );
1228
- return ms;
1229
- }
1230
-
1231
- function useTimeoutFn(cb, interval, options = {}) {
1232
- const {
1233
- immediate = true
1234
- } = options;
1235
- const isPending = ref(false);
1236
- let timer = null;
1237
- function clear() {
1238
- if (timer) {
1239
- clearTimeout(timer);
1240
- timer = null;
1241
- }
1242
- }
1243
- function stop() {
1244
- isPending.value = false;
1245
- clear();
1246
- }
1247
- function start(...args) {
1248
- clear();
1249
- isPending.value = true;
1250
- timer = setTimeout(() => {
1251
- isPending.value = false;
1252
- timer = null;
1253
- cb(...args);
1254
- }, toValue(interval));
1255
- }
1256
- if (immediate) {
1257
- isPending.value = true;
1258
- if (isClient)
1259
- start();
1260
- }
1261
- tryOnScopeDispose(stop);
1262
- return {
1263
- isPending: readonly(isPending),
1264
- start,
1265
- stop
1266
- };
1267
- }
1268
-
1269
- function useTimeout(interval = 1e3, options = {}) {
1270
- const {
1271
- controls: exposeControls = false,
1272
- callback
1273
- } = options;
1274
- const controls = useTimeoutFn(
1275
- callback != null ? callback : noop,
1276
- interval,
1277
- options
1278
- );
1279
- const ready = computed(() => !controls.isPending.value);
1280
- if (exposeControls) {
1281
- return {
1282
- ready,
1283
- ...controls
1284
- };
1285
- } else {
1286
- return ready;
1287
- }
1288
- }
1289
-
1290
- function useToNumber(value, options = {}) {
1291
- const {
1292
- method = "parseFloat",
1293
- radix,
1294
- nanToZero
1295
- } = options;
1296
- return computed(() => {
1297
- let resolved = toValue(value);
1298
- if (typeof resolved === "string")
1299
- resolved = Number[method](resolved, radix);
1300
- if (nanToZero && Number.isNaN(resolved))
1301
- resolved = 0;
1302
- return resolved;
1303
- });
1304
- }
1305
-
1306
- function useToString(value) {
1307
- return computed(() => `${toValue(value)}`);
1308
- }
1309
-
1310
- function useToggle(initialValue = false, options = {}) {
1311
- const {
1312
- truthyValue = true,
1313
- falsyValue = false
1314
- } = options;
1315
- const valueIsRef = isRef(initialValue);
1316
- const _value = ref(initialValue);
1317
- function toggle(value) {
1318
- if (arguments.length) {
1319
- _value.value = value;
1320
- return _value.value;
1321
- } else {
1322
- const truthy = toValue(truthyValue);
1323
- _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;
1324
- return _value.value;
1325
- }
1326
- }
1327
- if (valueIsRef)
1328
- return toggle;
1329
- else
1330
- return [_value, toggle];
1331
- }
1332
-
1333
- function watchArray(source, cb, options) {
1334
- let oldList = (options == null ? void 0 : options.immediate) ? [] : [...source instanceof Function ? source() : Array.isArray(source) ? source : toValue(source)];
1335
- return watch(source, (newList, _, onCleanup) => {
1336
- const oldListRemains = Array.from({ length: oldList.length });
1337
- const added = [];
1338
- for (const obj of newList) {
1339
- let found = false;
1340
- for (let i = 0; i < oldList.length; i++) {
1341
- if (!oldListRemains[i] && obj === oldList[i]) {
1342
- oldListRemains[i] = true;
1343
- found = true;
1344
- break;
1345
- }
1346
- }
1347
- if (!found)
1348
- added.push(obj);
1349
- }
1350
- const removed = oldList.filter((_2, i) => !oldListRemains[i]);
1351
- cb(newList, oldList, added, removed, onCleanup);
1352
- oldList = [...newList];
1353
- }, options);
1354
- }
1355
-
1356
- function watchAtMost(source, cb, options) {
1357
- const {
1358
- count,
1359
- ...watchOptions
1360
- } = options;
1361
- const current = ref(0);
1362
- const stop = watchWithFilter(
1363
- source,
1364
- (...args) => {
1365
- current.value += 1;
1366
- if (current.value >= toValue(count))
1367
- nextTick(() => stop());
1368
- cb(...args);
1369
- },
1370
- watchOptions
1371
- );
1372
- return { count: current, stop };
1373
- }
1374
-
1375
- function watchDebounced(source, cb, options = {}) {
1376
- const {
1377
- debounce = 0,
1378
- maxWait = void 0,
1379
- ...watchOptions
1380
- } = options;
1381
- return watchWithFilter(
1382
- source,
1383
- cb,
1384
- {
1385
- ...watchOptions,
1386
- eventFilter: debounceFilter(debounce, { maxWait })
1387
- }
1388
- );
1389
- }
1390
-
1391
- function watchDeep(source, cb, options) {
1392
- return watch(
1393
- source,
1394
- cb,
1395
- {
1396
- ...options,
1397
- deep: true
1398
- }
1399
- );
1400
- }
1401
-
1402
- function watchIgnorable(source, cb, options = {}) {
1403
- const {
1404
- eventFilter = bypassFilter,
1405
- ...watchOptions
1406
- } = options;
1407
- const filteredCb = createFilterWrapper(
1408
- eventFilter,
1409
- cb
1410
- );
1411
- let ignoreUpdates;
1412
- let ignorePrevAsyncUpdates;
1413
- let stop;
1414
- if (watchOptions.flush === "sync") {
1415
- const ignore = ref(false);
1416
- ignorePrevAsyncUpdates = () => {
1417
- };
1418
- ignoreUpdates = (updater) => {
1419
- ignore.value = true;
1420
- updater();
1421
- ignore.value = false;
1422
- };
1423
- stop = watch(
1424
- source,
1425
- (...args) => {
1426
- if (!ignore.value)
1427
- filteredCb(...args);
1428
- },
1429
- watchOptions
1430
- );
1431
- } else {
1432
- const disposables = [];
1433
- const ignoreCounter = ref(0);
1434
- const syncCounter = ref(0);
1435
- ignorePrevAsyncUpdates = () => {
1436
- ignoreCounter.value = syncCounter.value;
1437
- };
1438
- disposables.push(
1439
- watch(
1440
- source,
1441
- () => {
1442
- syncCounter.value++;
1443
- },
1444
- { ...watchOptions, flush: "sync" }
1445
- )
1446
- );
1447
- ignoreUpdates = (updater) => {
1448
- const syncCounterPrev = syncCounter.value;
1449
- updater();
1450
- ignoreCounter.value += syncCounter.value - syncCounterPrev;
1451
- };
1452
- disposables.push(
1453
- watch(
1454
- source,
1455
- (...args) => {
1456
- const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value;
1457
- ignoreCounter.value = 0;
1458
- syncCounter.value = 0;
1459
- if (ignore)
1460
- return;
1461
- filteredCb(...args);
1462
- },
1463
- watchOptions
1464
- )
1465
- );
1466
- stop = () => {
1467
- disposables.forEach((fn) => fn());
1468
- };
1469
- }
1470
- return { stop, ignoreUpdates, ignorePrevAsyncUpdates };
1471
- }
1472
-
1473
- function watchImmediate(source, cb, options) {
1474
- return watch(
1475
- source,
1476
- cb,
1477
- {
1478
- ...options,
1479
- immediate: true
1480
- }
1481
- );
1482
- }
1483
-
1484
- function watchOnce(source, cb, options) {
1485
- const stop = watch(source, (...args) => {
1486
- nextTick(() => stop());
1487
- return cb(...args);
1488
- }, options);
1489
- return stop;
1490
- }
1491
-
1492
- function watchThrottled(source, cb, options = {}) {
1493
- const {
1494
- throttle = 0,
1495
- trailing = true,
1496
- leading = true,
1497
- ...watchOptions
1498
- } = options;
1499
- return watchWithFilter(
1500
- source,
1501
- cb,
1502
- {
1503
- ...watchOptions,
1504
- eventFilter: throttleFilter(throttle, trailing, leading)
1505
- }
1506
- );
1507
- }
1508
-
1509
- function watchTriggerable(source, cb, options = {}) {
1510
- let cleanupFn;
1511
- function onEffect() {
1512
- if (!cleanupFn)
1513
- return;
1514
- const fn = cleanupFn;
1515
- cleanupFn = void 0;
1516
- fn();
1517
- }
1518
- function onCleanup(callback) {
1519
- cleanupFn = callback;
1520
- }
1521
- const _cb = (value, oldValue) => {
1522
- onEffect();
1523
- return cb(value, oldValue, onCleanup);
1524
- };
1525
- const res = watchIgnorable(source, _cb, options);
1526
- const { ignoreUpdates } = res;
1527
- const trigger = () => {
1528
- let res2;
1529
- ignoreUpdates(() => {
1530
- res2 = _cb(getWatchSources(source), getOldValue(source));
1531
- });
1532
- return res2;
1533
- };
1534
- return {
1535
- ...res,
1536
- trigger
1537
- };
1538
- }
1539
- function getWatchSources(sources) {
1540
- if (isReactive(sources))
1541
- return sources;
1542
- if (Array.isArray(sources))
1543
- return sources.map((item) => toValue(item));
1544
- return toValue(sources);
1545
- }
1546
- function getOldValue(source) {
1547
- return Array.isArray(source) ? source.map(() => void 0) : void 0;
1548
- }
1549
-
1550
- function whenever(source, cb, options) {
1551
- const stop = watch(
1552
- source,
1553
- (v, ov, onInvalidate) => {
1554
- if (v) {
1555
- if (options == null ? void 0 : options.once)
1556
- nextTick(() => stop());
1557
- cb(v, ov, onInvalidate);
1558
- }
1559
- },
1560
- {
1561
- ...options,
1562
- once: false
1563
- }
1564
- );
1565
- return stop;
1566
- }
1567
-
1568
- export { watchDebounced as $, useDebounceFn as A, tryOnUnmounted as B, useThrottleFn as C, watchPausable as D, watchWithFilter as E, tryOnBeforeUnmount as F, promiseTimeout as G, until as H, increaseWithUnit as I, containsProp as J, hasOwn as K, clamp as L, objectPick as M, isDef as N, isWorker as O, debounceFilter as P, bypassFilter as Q, camelize as R, assert as S, refAutoReset as T, computedEager as U, controlledRef as V, createGlobalState as W, createInjectionState as X, reactify as Y, createSharedComposable as Z, refDebounced as _, isClient as a, extendRef as a0, formatDate as a1, get as a2, getLifeCycleTarget as a3, hyphenate as a4, injectLocal as a5, invoke as a6, isDefined as a7, normalizeDate as a8, now as a9, useArraySome as aA, useArrayUnique as aB, useCounter as aC, useDateFormat as aD, useInterval as aE, useLastChanged as aF, useTimeout as aG, useToNumber as aH, useToString as aI, useToggle as aJ, watchArray as aK, watchAtMost as aL, watchDeep as aM, watchImmediate as aN, watchOnce as aO, watchTriggerable as aP, whenever as aQ, provideLocal as aa, rand as ab, reactifyObject as ac, reactiveComputed as ad, reactiveOmit as ae, reactivePick as af, refDefault as ag, refThrottled as ah, refWithControl as ai, resolveRef as aj, resolveUnref as ak, set as al, syncRefs as am, watchThrottled as an, toReactive as ao, tryOnBeforeMount as ap, useArrayDifference as aq, useArrayEvery as ar, useArrayFilter as as, useArrayFind as at, useArrayFindIndex as au, useArrayFindLast as av, useArrayIncludes as aw, useArrayJoin as ax, useArrayMap as ay, useArrayReduce as az, isObject as b, tryOnScopeDispose as c, directiveHooks as d, toRef as e, notNullish as f, identity as g, tryOnMounted as h, isIOS as i, objectEntries as j, createEventHook as k, computedWithControl as l, makeDestructurable as m, noop as n, objectOmit as o, toRefs as p, useIntervalFn as q, throttleFilter as r, timestamp as s, toValue as t, useTimeoutFn as u, createFilterWrapper as v, watchIgnorable as w, syncRef as x, createSingletonPromise as y, pausableFilter as z };