@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,966 +0,0 @@
1
- import { D as DomUtils } from './vendor-domutils-Bc-Opz-v.js';
2
- import { a as boolbase } from './vendor-boolbase-Cp9L0GAZ.js';
3
- import { S as SelectorType, A as AttributeAction, p as parse } from './vendor-css-what-DuPJ1HEF.js';
4
- import { n as nthCheck } from './vendor-nth-check-Bx8TxtJt.js';
5
-
6
- const procedure = new Map([
7
- [SelectorType.Universal, 50],
8
- [SelectorType.Tag, 30],
9
- [SelectorType.Attribute, 1],
10
- [SelectorType.Pseudo, 0],
11
- ]);
12
- function isTraversal(token) {
13
- return !procedure.has(token.type);
14
- }
15
- const attributes = new Map([
16
- [AttributeAction.Exists, 10],
17
- [AttributeAction.Equals, 8],
18
- [AttributeAction.Not, 7],
19
- [AttributeAction.Start, 6],
20
- [AttributeAction.End, 6],
21
- [AttributeAction.Any, 5],
22
- ]);
23
- /**
24
- * Sort the parts of the passed selector,
25
- * as there is potential for optimization
26
- * (some types of selectors are faster than others)
27
- *
28
- * @param arr Selector to sort
29
- */
30
- function sortByProcedure(arr) {
31
- const procs = arr.map(getProcedure);
32
- for (let i = 1; i < arr.length; i++) {
33
- const procNew = procs[i];
34
- if (procNew < 0)
35
- continue;
36
- for (let j = i - 1; j >= 0 && procNew < procs[j]; j--) {
37
- const token = arr[j + 1];
38
- arr[j + 1] = arr[j];
39
- arr[j] = token;
40
- procs[j + 1] = procs[j];
41
- procs[j] = procNew;
42
- }
43
- }
44
- }
45
- function getProcedure(token) {
46
- var _a, _b;
47
- let proc = (_a = procedure.get(token.type)) !== null && _a !== void 0 ? _a : -1;
48
- if (token.type === SelectorType.Attribute) {
49
- proc = (_b = attributes.get(token.action)) !== null && _b !== void 0 ? _b : 4;
50
- if (token.action === AttributeAction.Equals && token.name === "id") {
51
- // Prefer ID selectors (eg. #ID)
52
- proc = 9;
53
- }
54
- if (token.ignoreCase) {
55
- /*
56
- * IgnoreCase adds some overhead, prefer "normal" token
57
- * this is a binary operation, to ensure it's still an int
58
- */
59
- proc >>= 1;
60
- }
61
- }
62
- else if (token.type === SelectorType.Pseudo) {
63
- if (!token.data) {
64
- proc = 3;
65
- }
66
- else if (token.name === "has" || token.name === "contains") {
67
- proc = 0; // Expensive in any case
68
- }
69
- else if (Array.isArray(token.data)) {
70
- // Eg. :matches, :not
71
- proc = Math.min(...token.data.map((d) => Math.min(...d.map(getProcedure))));
72
- // If we have traversals, try to avoid executing this selector
73
- if (proc < 0) {
74
- proc = 0;
75
- }
76
- }
77
- else {
78
- proc = 2;
79
- }
80
- }
81
- return proc;
82
- }
83
-
84
- /**
85
- * All reserved characters in a regex, used for escaping.
86
- *
87
- * Taken from XRegExp, (c) 2007-2020 Steven Levithan under the MIT license
88
- * https://github.com/slevithan/xregexp/blob/95eeebeb8fac8754d54eafe2b4743661ac1cf028/src/xregexp.js#L794
89
- */
90
- const reChars = /[-[\]{}()*+?.,\\^$|#\s]/g;
91
- function escapeRegex(value) {
92
- return value.replace(reChars, "\\$&");
93
- }
94
- /**
95
- * Attributes that are case-insensitive in HTML.
96
- *
97
- * @private
98
- * @see https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors
99
- */
100
- const caseInsensitiveAttributes = new Set([
101
- "accept",
102
- "accept-charset",
103
- "align",
104
- "alink",
105
- "axis",
106
- "bgcolor",
107
- "charset",
108
- "checked",
109
- "clear",
110
- "codetype",
111
- "color",
112
- "compact",
113
- "declare",
114
- "defer",
115
- "dir",
116
- "direction",
117
- "disabled",
118
- "enctype",
119
- "face",
120
- "frame",
121
- "hreflang",
122
- "http-equiv",
123
- "lang",
124
- "language",
125
- "link",
126
- "media",
127
- "method",
128
- "multiple",
129
- "nohref",
130
- "noresize",
131
- "noshade",
132
- "nowrap",
133
- "readonly",
134
- "rel",
135
- "rev",
136
- "rules",
137
- "scope",
138
- "scrolling",
139
- "selected",
140
- "shape",
141
- "target",
142
- "text",
143
- "type",
144
- "valign",
145
- "valuetype",
146
- "vlink",
147
- ]);
148
- function shouldIgnoreCase(selector, options) {
149
- return typeof selector.ignoreCase === "boolean"
150
- ? selector.ignoreCase
151
- : selector.ignoreCase === "quirks"
152
- ? !!options.quirksMode
153
- : !options.xmlMode && caseInsensitiveAttributes.has(selector.name);
154
- }
155
- /**
156
- * Attribute selectors
157
- */
158
- const attributeRules = {
159
- equals(next, data, options) {
160
- const { adapter } = options;
161
- const { name } = data;
162
- let { value } = data;
163
- if (shouldIgnoreCase(data, options)) {
164
- value = value.toLowerCase();
165
- return (elem) => {
166
- const attr = adapter.getAttributeValue(elem, name);
167
- return (attr != null &&
168
- attr.length === value.length &&
169
- attr.toLowerCase() === value &&
170
- next(elem));
171
- };
172
- }
173
- return (elem) => adapter.getAttributeValue(elem, name) === value && next(elem);
174
- },
175
- hyphen(next, data, options) {
176
- const { adapter } = options;
177
- const { name } = data;
178
- let { value } = data;
179
- const len = value.length;
180
- if (shouldIgnoreCase(data, options)) {
181
- value = value.toLowerCase();
182
- return function hyphenIC(elem) {
183
- const attr = adapter.getAttributeValue(elem, name);
184
- return (attr != null &&
185
- (attr.length === len || attr.charAt(len) === "-") &&
186
- attr.substr(0, len).toLowerCase() === value &&
187
- next(elem));
188
- };
189
- }
190
- return function hyphen(elem) {
191
- const attr = adapter.getAttributeValue(elem, name);
192
- return (attr != null &&
193
- (attr.length === len || attr.charAt(len) === "-") &&
194
- attr.substr(0, len) === value &&
195
- next(elem));
196
- };
197
- },
198
- element(next, data, options) {
199
- const { adapter } = options;
200
- const { name, value } = data;
201
- if (/\s/.test(value)) {
202
- return boolbase.falseFunc;
203
- }
204
- const regex = new RegExp(`(?:^|\\s)${escapeRegex(value)}(?:$|\\s)`, shouldIgnoreCase(data, options) ? "i" : "");
205
- return function element(elem) {
206
- const attr = adapter.getAttributeValue(elem, name);
207
- return (attr != null &&
208
- attr.length >= value.length &&
209
- regex.test(attr) &&
210
- next(elem));
211
- };
212
- },
213
- exists(next, { name }, { adapter }) {
214
- return (elem) => adapter.hasAttrib(elem, name) && next(elem);
215
- },
216
- start(next, data, options) {
217
- const { adapter } = options;
218
- const { name } = data;
219
- let { value } = data;
220
- const len = value.length;
221
- if (len === 0) {
222
- return boolbase.falseFunc;
223
- }
224
- if (shouldIgnoreCase(data, options)) {
225
- value = value.toLowerCase();
226
- return (elem) => {
227
- const attr = adapter.getAttributeValue(elem, name);
228
- return (attr != null &&
229
- attr.length >= len &&
230
- attr.substr(0, len).toLowerCase() === value &&
231
- next(elem));
232
- };
233
- }
234
- return (elem) => {
235
- var _a;
236
- return !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.startsWith(value)) &&
237
- next(elem);
238
- };
239
- },
240
- end(next, data, options) {
241
- const { adapter } = options;
242
- const { name } = data;
243
- let { value } = data;
244
- const len = -value.length;
245
- if (len === 0) {
246
- return boolbase.falseFunc;
247
- }
248
- if (shouldIgnoreCase(data, options)) {
249
- value = value.toLowerCase();
250
- return (elem) => {
251
- var _a;
252
- return ((_a = adapter
253
- .getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.substr(len).toLowerCase()) === value && next(elem);
254
- };
255
- }
256
- return (elem) => {
257
- var _a;
258
- return !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.endsWith(value)) &&
259
- next(elem);
260
- };
261
- },
262
- any(next, data, options) {
263
- const { adapter } = options;
264
- const { name, value } = data;
265
- if (value === "") {
266
- return boolbase.falseFunc;
267
- }
268
- if (shouldIgnoreCase(data, options)) {
269
- const regex = new RegExp(escapeRegex(value), "i");
270
- return function anyIC(elem) {
271
- const attr = adapter.getAttributeValue(elem, name);
272
- return (attr != null &&
273
- attr.length >= value.length &&
274
- regex.test(attr) &&
275
- next(elem));
276
- };
277
- }
278
- return (elem) => {
279
- var _a;
280
- return !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.includes(value)) &&
281
- next(elem);
282
- };
283
- },
284
- not(next, data, options) {
285
- const { adapter } = options;
286
- const { name } = data;
287
- let { value } = data;
288
- if (value === "") {
289
- return (elem) => !!adapter.getAttributeValue(elem, name) && next(elem);
290
- }
291
- else if (shouldIgnoreCase(data, options)) {
292
- value = value.toLowerCase();
293
- return (elem) => {
294
- const attr = adapter.getAttributeValue(elem, name);
295
- return ((attr == null ||
296
- attr.length !== value.length ||
297
- attr.toLowerCase() !== value) &&
298
- next(elem));
299
- };
300
- }
301
- return (elem) => adapter.getAttributeValue(elem, name) !== value && next(elem);
302
- },
303
- };
304
-
305
- function getChildFunc(next, adapter) {
306
- return (elem) => {
307
- const parent = adapter.getParent(elem);
308
- return parent != null && adapter.isTag(parent) && next(elem);
309
- };
310
- }
311
- const filters = {
312
- contains(next, text, { adapter }) {
313
- return function contains(elem) {
314
- return next(elem) && adapter.getText(elem).includes(text);
315
- };
316
- },
317
- icontains(next, text, { adapter }) {
318
- const itext = text.toLowerCase();
319
- return function icontains(elem) {
320
- return (next(elem) &&
321
- adapter.getText(elem).toLowerCase().includes(itext));
322
- };
323
- },
324
- // Location specific methods
325
- "nth-child"(next, rule, { adapter, equals }) {
326
- const func = nthCheck(rule);
327
- if (func === boolbase.falseFunc)
328
- return boolbase.falseFunc;
329
- if (func === boolbase.trueFunc)
330
- return getChildFunc(next, adapter);
331
- return function nthChild(elem) {
332
- const siblings = adapter.getSiblings(elem);
333
- let pos = 0;
334
- for (let i = 0; i < siblings.length; i++) {
335
- if (equals(elem, siblings[i]))
336
- break;
337
- if (adapter.isTag(siblings[i])) {
338
- pos++;
339
- }
340
- }
341
- return func(pos) && next(elem);
342
- };
343
- },
344
- "nth-last-child"(next, rule, { adapter, equals }) {
345
- const func = nthCheck(rule);
346
- if (func === boolbase.falseFunc)
347
- return boolbase.falseFunc;
348
- if (func === boolbase.trueFunc)
349
- return getChildFunc(next, adapter);
350
- return function nthLastChild(elem) {
351
- const siblings = adapter.getSiblings(elem);
352
- let pos = 0;
353
- for (let i = siblings.length - 1; i >= 0; i--) {
354
- if (equals(elem, siblings[i]))
355
- break;
356
- if (adapter.isTag(siblings[i])) {
357
- pos++;
358
- }
359
- }
360
- return func(pos) && next(elem);
361
- };
362
- },
363
- "nth-of-type"(next, rule, { adapter, equals }) {
364
- const func = nthCheck(rule);
365
- if (func === boolbase.falseFunc)
366
- return boolbase.falseFunc;
367
- if (func === boolbase.trueFunc)
368
- return getChildFunc(next, adapter);
369
- return function nthOfType(elem) {
370
- const siblings = adapter.getSiblings(elem);
371
- let pos = 0;
372
- for (let i = 0; i < siblings.length; i++) {
373
- const currentSibling = siblings[i];
374
- if (equals(elem, currentSibling))
375
- break;
376
- if (adapter.isTag(currentSibling) &&
377
- adapter.getName(currentSibling) === adapter.getName(elem)) {
378
- pos++;
379
- }
380
- }
381
- return func(pos) && next(elem);
382
- };
383
- },
384
- "nth-last-of-type"(next, rule, { adapter, equals }) {
385
- const func = nthCheck(rule);
386
- if (func === boolbase.falseFunc)
387
- return boolbase.falseFunc;
388
- if (func === boolbase.trueFunc)
389
- return getChildFunc(next, adapter);
390
- return function nthLastOfType(elem) {
391
- const siblings = adapter.getSiblings(elem);
392
- let pos = 0;
393
- for (let i = siblings.length - 1; i >= 0; i--) {
394
- const currentSibling = siblings[i];
395
- if (equals(elem, currentSibling))
396
- break;
397
- if (adapter.isTag(currentSibling) &&
398
- adapter.getName(currentSibling) === adapter.getName(elem)) {
399
- pos++;
400
- }
401
- }
402
- return func(pos) && next(elem);
403
- };
404
- },
405
- // TODO determine the actual root element
406
- root(next, _rule, { adapter }) {
407
- return (elem) => {
408
- const parent = adapter.getParent(elem);
409
- return (parent == null || !adapter.isTag(parent)) && next(elem);
410
- };
411
- },
412
- scope(next, rule, options, context) {
413
- const { equals } = options;
414
- if (!context || context.length === 0) {
415
- // Equivalent to :root
416
- return filters["root"](next, rule, options);
417
- }
418
- if (context.length === 1) {
419
- // NOTE: can't be unpacked, as :has uses this for side-effects
420
- return (elem) => equals(context[0], elem) && next(elem);
421
- }
422
- return (elem) => context.includes(elem) && next(elem);
423
- },
424
- hover: dynamicStatePseudo("isHovered"),
425
- visited: dynamicStatePseudo("isVisited"),
426
- active: dynamicStatePseudo("isActive"),
427
- };
428
- /**
429
- * Dynamic state pseudos. These depend on optional Adapter methods.
430
- *
431
- * @param name The name of the adapter method to call.
432
- * @returns Pseudo for the `filters` object.
433
- */
434
- function dynamicStatePseudo(name) {
435
- return function dynamicPseudo(next, _rule, { adapter }) {
436
- const func = adapter[name];
437
- if (typeof func !== "function") {
438
- return boolbase.falseFunc;
439
- }
440
- return function active(elem) {
441
- return func(elem) && next(elem);
442
- };
443
- };
444
- }
445
-
446
- // While filters are precompiled, pseudos get called when they are needed
447
- const pseudos = {
448
- empty(elem, { adapter }) {
449
- return !adapter.getChildren(elem).some((elem) =>
450
- // FIXME: `getText` call is potentially expensive.
451
- adapter.isTag(elem) || adapter.getText(elem) !== "");
452
- },
453
- "first-child"(elem, { adapter, equals }) {
454
- if (adapter.prevElementSibling) {
455
- return adapter.prevElementSibling(elem) == null;
456
- }
457
- const firstChild = adapter
458
- .getSiblings(elem)
459
- .find((elem) => adapter.isTag(elem));
460
- return firstChild != null && equals(elem, firstChild);
461
- },
462
- "last-child"(elem, { adapter, equals }) {
463
- const siblings = adapter.getSiblings(elem);
464
- for (let i = siblings.length - 1; i >= 0; i--) {
465
- if (equals(elem, siblings[i]))
466
- return true;
467
- if (adapter.isTag(siblings[i]))
468
- break;
469
- }
470
- return false;
471
- },
472
- "first-of-type"(elem, { adapter, equals }) {
473
- const siblings = adapter.getSiblings(elem);
474
- const elemName = adapter.getName(elem);
475
- for (let i = 0; i < siblings.length; i++) {
476
- const currentSibling = siblings[i];
477
- if (equals(elem, currentSibling))
478
- return true;
479
- if (adapter.isTag(currentSibling) &&
480
- adapter.getName(currentSibling) === elemName) {
481
- break;
482
- }
483
- }
484
- return false;
485
- },
486
- "last-of-type"(elem, { adapter, equals }) {
487
- const siblings = adapter.getSiblings(elem);
488
- const elemName = adapter.getName(elem);
489
- for (let i = siblings.length - 1; i >= 0; i--) {
490
- const currentSibling = siblings[i];
491
- if (equals(elem, currentSibling))
492
- return true;
493
- if (adapter.isTag(currentSibling) &&
494
- adapter.getName(currentSibling) === elemName) {
495
- break;
496
- }
497
- }
498
- return false;
499
- },
500
- "only-of-type"(elem, { adapter, equals }) {
501
- const elemName = adapter.getName(elem);
502
- return adapter
503
- .getSiblings(elem)
504
- .every((sibling) => equals(elem, sibling) ||
505
- !adapter.isTag(sibling) ||
506
- adapter.getName(sibling) !== elemName);
507
- },
508
- "only-child"(elem, { adapter, equals }) {
509
- return adapter
510
- .getSiblings(elem)
511
- .every((sibling) => equals(elem, sibling) || !adapter.isTag(sibling));
512
- },
513
- };
514
- function verifyPseudoArgs(func, name, subselect, argIndex) {
515
- if (subselect === null) {
516
- if (func.length > argIndex) {
517
- throw new Error(`Pseudo-class :${name} requires an argument`);
518
- }
519
- }
520
- else if (func.length === argIndex) {
521
- throw new Error(`Pseudo-class :${name} doesn't have any arguments`);
522
- }
523
- }
524
-
525
- /**
526
- * Aliases are pseudos that are expressed as selectors.
527
- */
528
- const aliases = {
529
- // Links
530
- "any-link": ":is(a, area, link)[href]",
531
- link: ":any-link:not(:visited)",
532
- // Forms
533
- // https://html.spec.whatwg.org/multipage/scripting.html#disabled-elements
534
- disabled: `:is(
535
- :is(button, input, select, textarea, optgroup, option)[disabled],
536
- optgroup[disabled] > option,
537
- fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
538
- )`,
539
- enabled: ":not(:disabled)",
540
- checked: ":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",
541
- required: ":is(input, select, textarea)[required]",
542
- optional: ":is(input, select, textarea):not([required])",
543
- // JQuery extensions
544
- // https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-selectedness
545
- selected: "option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",
546
- checkbox: "[type=checkbox]",
547
- file: "[type=file]",
548
- password: "[type=password]",
549
- radio: "[type=radio]",
550
- reset: "[type=reset]",
551
- image: "[type=image]",
552
- submit: "[type=submit]",
553
- parent: ":not(:empty)",
554
- header: ":is(h1, h2, h3, h4, h5, h6)",
555
- button: ":is(button, input[type=button])",
556
- input: ":is(input, textarea, select, button)",
557
- text: "input:is(:not([type!='']), [type=text])",
558
- };
559
-
560
- /** Used as a placeholder for :has. Will be replaced with the actual element. */
561
- const PLACEHOLDER_ELEMENT = {};
562
- function ensureIsTag(next, adapter) {
563
- if (next === boolbase.falseFunc)
564
- return boolbase.falseFunc;
565
- return (elem) => adapter.isTag(elem) && next(elem);
566
- }
567
- function getNextSiblings(elem, adapter) {
568
- const siblings = adapter.getSiblings(elem);
569
- if (siblings.length <= 1)
570
- return [];
571
- const elemIndex = siblings.indexOf(elem);
572
- if (elemIndex < 0 || elemIndex === siblings.length - 1)
573
- return [];
574
- return siblings.slice(elemIndex + 1).filter(adapter.isTag);
575
- }
576
- function copyOptions(options) {
577
- // Not copied: context, rootFunc
578
- return {
579
- xmlMode: !!options.xmlMode,
580
- lowerCaseAttributeNames: !!options.lowerCaseAttributeNames,
581
- lowerCaseTags: !!options.lowerCaseTags,
582
- quirksMode: !!options.quirksMode,
583
- cacheResults: !!options.cacheResults,
584
- pseudos: options.pseudos,
585
- adapter: options.adapter,
586
- equals: options.equals,
587
- };
588
- }
589
- const is = (next, token, options, context, compileToken) => {
590
- const func = compileToken(token, copyOptions(options), context);
591
- return func === boolbase.trueFunc
592
- ? next
593
- : func === boolbase.falseFunc
594
- ? boolbase.falseFunc
595
- : (elem) => func(elem) && next(elem);
596
- };
597
- /*
598
- * :not, :has, :is, :matches and :where have to compile selectors
599
- * doing this in src/pseudos.ts would lead to circular dependencies,
600
- * so we add them here
601
- */
602
- const subselects = {
603
- is,
604
- /**
605
- * `:matches` and `:where` are aliases for `:is`.
606
- */
607
- matches: is,
608
- where: is,
609
- not(next, token, options, context, compileToken) {
610
- const func = compileToken(token, copyOptions(options), context);
611
- return func === boolbase.falseFunc
612
- ? next
613
- : func === boolbase.trueFunc
614
- ? boolbase.falseFunc
615
- : (elem) => !func(elem) && next(elem);
616
- },
617
- has(next, subselect, options, _context, compileToken) {
618
- const { adapter } = options;
619
- const opts = copyOptions(options);
620
- opts.relativeSelector = true;
621
- const context = subselect.some((s) => s.some(isTraversal))
622
- ? // Used as a placeholder. Will be replaced with the actual element.
623
- [PLACEHOLDER_ELEMENT]
624
- : undefined;
625
- const compiled = compileToken(subselect, opts, context);
626
- if (compiled === boolbase.falseFunc)
627
- return boolbase.falseFunc;
628
- const hasElement = ensureIsTag(compiled, adapter);
629
- // If `compiled` is `trueFunc`, we can skip this.
630
- if (context && compiled !== boolbase.trueFunc) {
631
- /*
632
- * `shouldTestNextSiblings` will only be true if the query starts with
633
- * a traversal (sibling or adjacent). That means we will always have a context.
634
- */
635
- const { shouldTestNextSiblings = false } = compiled;
636
- return (elem) => {
637
- if (!next(elem))
638
- return false;
639
- context[0] = elem;
640
- const childs = adapter.getChildren(elem);
641
- const nextElements = shouldTestNextSiblings
642
- ? [...childs, ...getNextSiblings(elem, adapter)]
643
- : childs;
644
- return adapter.existsOne(hasElement, nextElements);
645
- };
646
- }
647
- return (elem) => next(elem) &&
648
- adapter.existsOne(hasElement, adapter.getChildren(elem));
649
- },
650
- };
651
-
652
- function compilePseudoSelector(next, selector, options, context, compileToken) {
653
- var _a;
654
- const { name, data } = selector;
655
- if (Array.isArray(data)) {
656
- if (!(name in subselects)) {
657
- throw new Error(`Unknown pseudo-class :${name}(${data})`);
658
- }
659
- return subselects[name](next, data, options, context, compileToken);
660
- }
661
- const userPseudo = (_a = options.pseudos) === null || _a === void 0 ? void 0 : _a[name];
662
- const stringPseudo = typeof userPseudo === "string" ? userPseudo : aliases[name];
663
- if (typeof stringPseudo === "string") {
664
- if (data != null) {
665
- throw new Error(`Pseudo ${name} doesn't have any arguments`);
666
- }
667
- // The alias has to be parsed here, to make sure options are respected.
668
- const alias = parse(stringPseudo);
669
- return subselects["is"](next, alias, options, context, compileToken);
670
- }
671
- if (typeof userPseudo === "function") {
672
- verifyPseudoArgs(userPseudo, name, data, 1);
673
- return (elem) => userPseudo(elem, data) && next(elem);
674
- }
675
- if (name in filters) {
676
- return filters[name](next, data, options, context);
677
- }
678
- if (name in pseudos) {
679
- const pseudo = pseudos[name];
680
- verifyPseudoArgs(pseudo, name, data, 2);
681
- return (elem) => pseudo(elem, options, data) && next(elem);
682
- }
683
- throw new Error(`Unknown pseudo-class :${name}`);
684
- }
685
-
686
- function getElementParent(node, adapter) {
687
- const parent = adapter.getParent(node);
688
- if (parent && adapter.isTag(parent)) {
689
- return parent;
690
- }
691
- return null;
692
- }
693
- /*
694
- * All available rules
695
- */
696
- function compileGeneralSelector(next, selector, options, context, compileToken) {
697
- const { adapter, equals } = options;
698
- switch (selector.type) {
699
- case SelectorType.PseudoElement: {
700
- throw new Error("Pseudo-elements are not supported by css-select");
701
- }
702
- case SelectorType.ColumnCombinator: {
703
- throw new Error("Column combinators are not yet supported by css-select");
704
- }
705
- case SelectorType.Attribute: {
706
- if (selector.namespace != null) {
707
- throw new Error("Namespaced attributes are not yet supported by css-select");
708
- }
709
- if (!options.xmlMode || options.lowerCaseAttributeNames) {
710
- selector.name = selector.name.toLowerCase();
711
- }
712
- return attributeRules[selector.action](next, selector, options);
713
- }
714
- case SelectorType.Pseudo: {
715
- return compilePseudoSelector(next, selector, options, context, compileToken);
716
- }
717
- // Tags
718
- case SelectorType.Tag: {
719
- if (selector.namespace != null) {
720
- throw new Error("Namespaced tag names are not yet supported by css-select");
721
- }
722
- let { name } = selector;
723
- if (!options.xmlMode || options.lowerCaseTags) {
724
- name = name.toLowerCase();
725
- }
726
- return function tag(elem) {
727
- return adapter.getName(elem) === name && next(elem);
728
- };
729
- }
730
- // Traversal
731
- case SelectorType.Descendant: {
732
- if (options.cacheResults === false ||
733
- typeof WeakSet === "undefined") {
734
- return function descendant(elem) {
735
- let current = elem;
736
- while ((current = getElementParent(current, adapter))) {
737
- if (next(current)) {
738
- return true;
739
- }
740
- }
741
- return false;
742
- };
743
- }
744
- // @ts-expect-error `ElementNode` is not extending object
745
- const isFalseCache = new WeakSet();
746
- return function cachedDescendant(elem) {
747
- let current = elem;
748
- while ((current = getElementParent(current, adapter))) {
749
- if (!isFalseCache.has(current)) {
750
- if (adapter.isTag(current) && next(current)) {
751
- return true;
752
- }
753
- isFalseCache.add(current);
754
- }
755
- }
756
- return false;
757
- };
758
- }
759
- case "_flexibleDescendant": {
760
- // Include element itself, only used while querying an array
761
- return function flexibleDescendant(elem) {
762
- let current = elem;
763
- do {
764
- if (next(current))
765
- return true;
766
- } while ((current = getElementParent(current, adapter)));
767
- return false;
768
- };
769
- }
770
- case SelectorType.Parent: {
771
- return function parent(elem) {
772
- return adapter
773
- .getChildren(elem)
774
- .some((elem) => adapter.isTag(elem) && next(elem));
775
- };
776
- }
777
- case SelectorType.Child: {
778
- return function child(elem) {
779
- const parent = adapter.getParent(elem);
780
- return parent != null && adapter.isTag(parent) && next(parent);
781
- };
782
- }
783
- case SelectorType.Sibling: {
784
- return function sibling(elem) {
785
- const siblings = adapter.getSiblings(elem);
786
- for (let i = 0; i < siblings.length; i++) {
787
- const currentSibling = siblings[i];
788
- if (equals(elem, currentSibling))
789
- break;
790
- if (adapter.isTag(currentSibling) && next(currentSibling)) {
791
- return true;
792
- }
793
- }
794
- return false;
795
- };
796
- }
797
- case SelectorType.Adjacent: {
798
- if (adapter.prevElementSibling) {
799
- return function adjacent(elem) {
800
- const previous = adapter.prevElementSibling(elem);
801
- return previous != null && next(previous);
802
- };
803
- }
804
- return function adjacent(elem) {
805
- const siblings = adapter.getSiblings(elem);
806
- let lastElement;
807
- for (let i = 0; i < siblings.length; i++) {
808
- const currentSibling = siblings[i];
809
- if (equals(elem, currentSibling))
810
- break;
811
- if (adapter.isTag(currentSibling)) {
812
- lastElement = currentSibling;
813
- }
814
- }
815
- return !!lastElement && next(lastElement);
816
- };
817
- }
818
- case SelectorType.Universal: {
819
- if (selector.namespace != null && selector.namespace !== "*") {
820
- throw new Error("Namespaced universal selectors are not yet supported by css-select");
821
- }
822
- return next;
823
- }
824
- }
825
- }
826
-
827
- function includesScopePseudo(t) {
828
- return (t.type === SelectorType.Pseudo &&
829
- (t.name === "scope" ||
830
- (Array.isArray(t.data) &&
831
- t.data.some((data) => data.some(includesScopePseudo)))));
832
- }
833
- const DESCENDANT_TOKEN = { type: SelectorType.Descendant };
834
- const FLEXIBLE_DESCENDANT_TOKEN = {
835
- type: "_flexibleDescendant",
836
- };
837
- const SCOPE_TOKEN = {
838
- type: SelectorType.Pseudo,
839
- name: "scope",
840
- data: null,
841
- };
842
- /*
843
- * CSS 4 Spec (Draft): 3.4.1. Absolutizing a Relative Selector
844
- * http://www.w3.org/TR/selectors4/#absolutizing
845
- */
846
- function absolutize(token, { adapter }, context) {
847
- // TODO Use better check if the context is a document
848
- const hasContext = !!(context === null || context === void 0 ? void 0 : context.every((e) => {
849
- const parent = adapter.isTag(e) && adapter.getParent(e);
850
- return e === PLACEHOLDER_ELEMENT || (parent && adapter.isTag(parent));
851
- }));
852
- for (const t of token) {
853
- if (t.length > 0 &&
854
- isTraversal(t[0]) &&
855
- t[0].type !== SelectorType.Descendant) ;
856
- else if (hasContext && !t.some(includesScopePseudo)) {
857
- t.unshift(DESCENDANT_TOKEN);
858
- }
859
- else {
860
- continue;
861
- }
862
- t.unshift(SCOPE_TOKEN);
863
- }
864
- }
865
- function compileToken(token, options, context) {
866
- var _a;
867
- token.forEach(sortByProcedure);
868
- context = (_a = options.context) !== null && _a !== void 0 ? _a : context;
869
- const isArrayContext = Array.isArray(context);
870
- const finalContext = context && (Array.isArray(context) ? context : [context]);
871
- // Check if the selector is relative
872
- if (options.relativeSelector !== false) {
873
- absolutize(token, options, finalContext);
874
- }
875
- else if (token.some((t) => t.length > 0 && isTraversal(t[0]))) {
876
- throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");
877
- }
878
- let shouldTestNextSiblings = false;
879
- const query = token
880
- .map((rules) => {
881
- if (rules.length >= 2) {
882
- const [first, second] = rules;
883
- if (first.type !== SelectorType.Pseudo ||
884
- first.name !== "scope") ;
885
- else if (isArrayContext &&
886
- second.type === SelectorType.Descendant) {
887
- rules[1] = FLEXIBLE_DESCENDANT_TOKEN;
888
- }
889
- else if (second.type === SelectorType.Adjacent ||
890
- second.type === SelectorType.Sibling) {
891
- shouldTestNextSiblings = true;
892
- }
893
- }
894
- return compileRules(rules, options, finalContext);
895
- })
896
- .reduce(reduceRules, boolbase.falseFunc);
897
- query.shouldTestNextSiblings = shouldTestNextSiblings;
898
- return query;
899
- }
900
- function compileRules(rules, options, context) {
901
- var _a;
902
- return rules.reduce((previous, rule) => previous === boolbase.falseFunc
903
- ? boolbase.falseFunc
904
- : compileGeneralSelector(previous, rule, options, context, compileToken), (_a = options.rootFunc) !== null && _a !== void 0 ? _a : boolbase.trueFunc);
905
- }
906
- function reduceRules(a, b) {
907
- if (b === boolbase.falseFunc || a === boolbase.trueFunc) {
908
- return a;
909
- }
910
- if (a === boolbase.falseFunc || b === boolbase.trueFunc) {
911
- return b;
912
- }
913
- return function combine(elem) {
914
- return a(elem) || b(elem);
915
- };
916
- }
917
-
918
- const defaultEquals = (a, b) => a === b;
919
- const defaultOptions = {
920
- adapter: DomUtils,
921
- equals: defaultEquals,
922
- };
923
- function convertOptionFormats(options) {
924
- var _a, _b, _c, _d;
925
- /*
926
- * We force one format of options to the other one.
927
- */
928
- // @ts-expect-error Default options may have incompatible `Node` / `ElementNode`.
929
- const opts = options !== null && options !== void 0 ? options : defaultOptions;
930
- // @ts-expect-error Same as above.
931
- (_a = opts.adapter) !== null && _a !== void 0 ? _a : (opts.adapter = DomUtils);
932
- // @ts-expect-error `equals` does not exist on `Options`
933
- (_b = opts.equals) !== null && _b !== void 0 ? _b : (opts.equals = (_d = (_c = opts.adapter) === null || _c === void 0 ? void 0 : _c.equals) !== null && _d !== void 0 ? _d : defaultEquals);
934
- return opts;
935
- }
936
- function wrapCompile(func) {
937
- return function addAdapter(selector, options, context) {
938
- const opts = convertOptionFormats(options);
939
- return func(selector, opts, context);
940
- };
941
- }
942
- const _compileToken = wrapCompile(compileToken);
943
- function prepareContext(elems, adapter, shouldTestNextSiblings = false) {
944
- /*
945
- * Add siblings if the query requires them.
946
- * See https://github.com/fb55/css-select/pull/43#issuecomment-225414692
947
- */
948
- if (shouldTestNextSiblings) {
949
- elems = appendNextSiblings(elems, adapter);
950
- }
951
- return Array.isArray(elems)
952
- ? adapter.removeSubsets(elems)
953
- : adapter.getChildren(elems);
954
- }
955
- function appendNextSiblings(elem, adapter) {
956
- // Order matters because jQuery seems to check the children before the siblings
957
- const elems = Array.isArray(elem) ? elem.slice(0) : [elem];
958
- const elemsLength = elems.length;
959
- for (let i = 0; i < elemsLength; i++) {
960
- const nextSiblings = getNextSiblings(elems[i], adapter);
961
- elems.push(...nextSiblings);
962
- }
963
- return elems;
964
- }
965
-
966
- export { _compileToken as _, prepareContext as p };