@vc-shell/framework 1.1.99-alpha.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/core/api/platform.ts +9883 -9883
  2. package/core/composables/useDynamicProperties/index.ts +16 -10
  3. package/core/composables/useNotifications/index.ts +1 -32
  4. package/core/composables/useSettings/index.ts +3 -8
  5. package/core/composables/useUser/index.ts +171 -74
  6. package/core/composables/useUserManagement/index.ts +25 -67
  7. package/core/interceptors/index.ts +56 -19
  8. package/core/plugins/signalR/index.ts +1 -27
  9. package/core/types/index.ts +0 -2
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  13. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  14. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  15. package/dist/core/composables/useUser/index.d.ts +9 -18
  16. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  17. package/dist/core/composables/useUserManagement/index.d.ts +7 -7
  18. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  19. package/dist/core/interceptors/index.d.ts +1 -2
  20. package/dist/core/interceptors/index.d.ts.map +1 -1
  21. package/dist/core/plugins/signalR/index.d.ts +0 -2
  22. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  23. package/dist/core/types/index.d.ts +1 -1
  24. package/dist/core/types/index.d.ts.map +1 -1
  25. package/dist/index.d.ts +0 -8
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/injection-keys.d.ts +1 -2
  28. package/dist/injection-keys.d.ts.map +1 -1
  29. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  30. package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
  31. package/dist/shared/components/notifications/components/notification-container/index.d.ts +10 -10
  32. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  33. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  34. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  35. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  36. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  37. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  38. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  39. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  40. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  41. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  42. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  45. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  46. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  47. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  48. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  49. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  50. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  51. package/dist/ui/components/molecules/index.d.ts +1 -0
  52. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  53. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
  54. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
  55. package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
  56. package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
  57. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
  58. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
  59. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +1 -1
  60. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  61. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  62. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  63. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  64. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
  65. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  66. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  67. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  68. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  69. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  70. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  71. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  72. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  73. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  74. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  75. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
  76. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  77. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  78. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  79. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  80. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  81. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  82. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +5 -5
  83. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  84. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  85. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  86. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  87. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  88. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +2 -2
  89. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +2 -2
  90. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
  91. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +1 -1
  92. package/package.json +5 -7
  93. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
  94. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
  95. package/shared/components/sign-in/useExternalProvider.ts +1 -11
  96. package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
  97. package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
  98. package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
  99. package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
  100. package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
  101. package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
  102. package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
  103. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
  104. package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
  105. package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
  106. package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
  107. package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
  108. package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
  109. package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
  110. package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
  111. package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
  112. package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
  113. package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
  114. package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
  115. package/ui/components/molecules/index.ts +1 -0
  116. package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
  117. package/ui/components/molecules/vc-accordion/index.ts +11 -0
  118. package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
  119. package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
  120. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
  121. package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
  122. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
  123. package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
  124. package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
  125. package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
  126. package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
  127. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  128. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
  129. package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
  130. package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
  131. package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
  132. package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
  133. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  134. package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
  135. package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
  136. package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
  137. package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
  138. package/ui/components/organisms/vc-app/vc-app.vue +2 -20
  139. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
  140. package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
  141. package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
  142. package/core/providers/README.md +0 -176
  143. package/core/providers/auth-provider-manager.ts +0 -74
  144. package/core/providers/auth-provider-utils.ts +0 -26
  145. package/core/providers/example-custom-auth-provider.ts +0 -162
  146. package/core/providers/index.ts +0 -3
  147. package/core/providers/platform-auth-provider.ts +0 -207
  148. package/core/types/auth-provider.ts +0 -40
  149. package/dist/assets/042c75b764bc78a7.svg +0 -1
  150. package/dist/assets/0ba156439a339f2a.svg +0 -1
  151. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  152. package/dist/assets/0f590f8a94577092.svg +0 -1
  153. package/dist/assets/0fc5820f8be53a1b.svg +0 -1
  154. package/dist/assets/105efd028edc1dfe.woff +0 -0
  155. package/dist/assets/10768e2cc79fc60b.svg +0 -1
  156. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  157. package/dist/assets/154365acf3010d96.woff2 +0 -0
  158. package/dist/assets/157b8721e0600ea8.svg +0 -1
  159. package/dist/assets/15e91cdd649cde9a.svg +0 -1
  160. package/dist/assets/19275e398ae57130.woff2 +0 -0
  161. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  162. package/dist/assets/1de63eb118636cce.svg +0 -1
  163. package/dist/assets/1ea01de36eb5491b.svg +0 -1
  164. package/dist/assets/204eaf512fde2023.svg +0 -1
  165. package/dist/assets/2088983edf42e153.svg +0 -1
  166. package/dist/assets/208f810a9321a327.svg +0 -1
  167. package/dist/assets/21220a9d10e6c558.svg +0 -1
  168. package/dist/assets/220db345a102045d.woff2 +0 -0
  169. package/dist/assets/225da11d23968333.svg +0 -1
  170. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  171. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  172. package/dist/assets/259e6ad461a52ad7.svg +0 -1
  173. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  174. package/dist/assets/262f46a0b6d94bb6.svg +0 -1
  175. package/dist/assets/2857c513073467da.svg +0 -1
  176. package/dist/assets/2b3be7889467d98f.woff +0 -0
  177. package/dist/assets/2d4e6190eec72737.svg +0 -1
  178. package/dist/assets/2eba973185078bc8.woff +0 -0
  179. package/dist/assets/334d3f6bc766c516.woff +0 -0
  180. package/dist/assets/34ff7dd0c2285956.svg +0 -1
  181. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  182. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  183. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  184. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  185. package/dist/assets/41275bcb979cb650.svg +0 -1
  186. package/dist/assets/434f7982590e462f.woff +0 -0
  187. package/dist/assets/475937116ee3314a.woff2 +0 -0
  188. package/dist/assets/489710fb710e73f0.woff +0 -0
  189. package/dist/assets/49791943b3872376.woff2 +0 -0
  190. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  191. package/dist/assets/4d7a77b0e5373992.svg +0 -1
  192. package/dist/assets/4e43c74354534fb3.svg +0 -1
  193. package/dist/assets/4fe75f5117100705.svg +0 -1
  194. package/dist/assets/52e261a005074e1b.woff +0 -0
  195. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  196. package/dist/assets/54cda5482c6c9218.woff +0 -0
  197. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  198. package/dist/assets/572bb1bb4156a9c1.svg +0 -1
  199. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  200. package/dist/assets/617c4736236e199e.woff +0 -0
  201. package/dist/assets/67230f05dc94a265.svg +0 -1
  202. package/dist/assets/6798e4dd4add9b48.svg +0 -1
  203. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  204. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  205. package/dist/assets/6a3e73faf406cf33.svg +0 -1
  206. package/dist/assets/72de3a63bc0b70dd.svg +0 -1
  207. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  208. package/dist/assets/74ed5f8a78e71106.svg +0 -1
  209. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  210. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  211. package/dist/assets/7d55399c2a7bc985.svg +0 -1
  212. package/dist/assets/7d970675c69fca1d.woff +0 -0
  213. package/dist/assets/7eda727273fd98d3.svg +0 -1
  214. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  215. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  216. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  217. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  218. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  219. package/dist/assets/910b0d99b9e26568.svg +0 -1
  220. package/dist/assets/91fe94e424323d61.woff +0 -0
  221. package/dist/assets/92508f8707159b51.svg +0 -1
  222. package/dist/assets/9392bf1d591e1abb.svg +0 -1
  223. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  224. package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
  225. package/dist/assets/9d37314695c0b68d.woff +0 -0
  226. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  227. package/dist/assets/a18404194e3f9047.svg +0 -1
  228. package/dist/assets/a2017fe7f0a26510.svg +0 -1
  229. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  230. package/dist/assets/abf88f301a0730f4.svg +0 -1
  231. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  232. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  233. package/dist/assets/b1a596e31ad1185a.svg +0 -1
  234. package/dist/assets/b27767411c8427be.woff +0 -0
  235. package/dist/assets/b325adcae33bbe7a.svg +0 -1
  236. package/dist/assets/b372390551ca2fa1.svg +0 -1
  237. package/dist/assets/b5bb1e8fc975decd.svg +0 -1
  238. package/dist/assets/b645a4a2181b9dc1.svg +0 -1
  239. package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
  240. package/dist/assets/b94421fadd23b0f2.svg +0 -1
  241. package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
  242. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  243. package/dist/assets/ca791c5ca5848a03.svg +0 -1
  244. package/dist/assets/cb32840ce330103f.woff +0 -0
  245. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  246. package/dist/assets/d084bda16abe8a56.svg +0 -1
  247. package/dist/assets/d32b129cae2fffd6.svg +0 -1
  248. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  249. package/dist/assets/d3f792f54ae4c307.svg +0 -1
  250. package/dist/assets/d5a5b8630120073d.svg +0 -1
  251. package/dist/assets/d5f9664ebbfb104b.svg +0 -1
  252. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  253. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  254. package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
  255. package/dist/assets/e2ad5b3428289141.woff +0 -0
  256. package/dist/assets/e38acaa1757232e0.svg +0 -1
  257. package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
  258. package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
  259. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  260. package/dist/assets/e72bb11356af94c7.svg +0 -1
  261. package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
  262. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  263. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  264. package/dist/assets/f09d89268e4c0317.svg +0 -1
  265. package/dist/assets/f239394367fcf005.woff2 +0 -0
  266. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  267. package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
  268. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  269. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  270. package/dist/assets/fed13b0d59903483.svg +0 -1
  271. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  272. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  273. package/dist/core/providers/auth-provider-manager.d.ts +0 -34
  274. package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
  275. package/dist/core/providers/auth-provider-utils.d.ts +0 -17
  276. package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
  277. package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
  278. package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
  279. package/dist/core/providers/index.d.ts +0 -3
  280. package/dist/core/providers/index.d.ts.map +0 -1
  281. package/dist/core/providers/platform-auth-provider.d.ts +0 -34
  282. package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
  283. package/dist/core/types/auth-provider.d.ts +0 -27
  284. package/dist/core/types/auth-provider.d.ts.map +0 -1
  285. package/dist/framework.js +0 -25048
  286. package/dist/index.css +0 -9
  287. package/dist/vendor-boolbase-A_-Pp38P.js +0 -23
  288. package/dist/vendor-cheerio-C46iBpCu.js +0 -1053
  289. package/dist/vendor-cheerio-select-C8emRZsx.js +0 -191
  290. package/dist/vendor-core-js-DDuR6YMQ.js +0 -1206
  291. package/dist/vendor-css-select-DR9bp36p.js +0 -622
  292. package/dist/vendor-css-what-CZZaquJM.js +0 -267
  293. package/dist/vendor-cypress-signalr-mock-DjBxJHA6.js +0 -769
  294. package/dist/vendor-date-fns-sZ1zMzTH.js +0 -3008
  295. package/dist/vendor-dom-serializer-Sk3xHhQk.js +0 -213
  296. package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
  297. package/dist/vendor-domhandler-CL40eeX9.js +0 -311
  298. package/dist/vendor-dompurify-BuxjWxA2.js +0 -553
  299. package/dist/vendor-domutils-BiVCXO8c.js +0 -386
  300. package/dist/vendor-entities-CCReaWqU.js +0 -364
  301. package/dist/vendor-floating-ui-core-Cl9nBI4j.js +0 -349
  302. package/dist/vendor-floating-ui-dom-3z44E4mf.js +0 -395
  303. package/dist/vendor-floating-ui-utils-D2sT7feD.js +0 -259
  304. package/dist/vendor-floating-ui-vue-ClrgkeO5.js +0 -107
  305. package/dist/vendor-headlessui-vue-D7tzx4PC.js +0 -961
  306. package/dist/vendor-htmlparser2-CpQu33io.js +0 -735
  307. package/dist/vendor-intlify-core-base-Da62SG4M.js +0 -1130
  308. package/dist/vendor-intlify-message-compiler-CHvGSH2u.js +0 -952
  309. package/dist/vendor-intlify-shared-jWBPd9WB.js +0 -144
  310. package/dist/vendor-iso-639-1-BJO6WZAt.js +0 -781
  311. package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
  312. package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
  313. package/dist/vendor-lodash-es-BqkGj3Jl.js +0 -4816
  314. package/dist/vendor-lucide-vue-next-m0L4DzUL.js +0 -29780
  315. package/dist/vendor-markdown-it-Czg9qJTh.js +0 -2263
  316. package/dist/vendor-markdown-it-task-lists-BxLwscWK.js +0 -69
  317. package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
  318. package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +0 -1207
  319. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js +0 -261
  320. package/dist/vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js +0 -1822
  321. package/dist/vendor-microsoft-applicationinsights-common-OjU3Zs6r.js +0 -1921
  322. package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +0 -4276
  323. package/dist/vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js +0 -1407
  324. package/dist/vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js +0 -572
  325. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +0 -43
  326. package/dist/vendor-microsoft-applicationinsights-web-9yeJ0EZv.js +0 -487
  327. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +0 -147
  328. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
  329. package/dist/vendor-moment-DMLRxgRE.js +0 -2589
  330. package/dist/vendor-nevware21-ts-async-CdMc_sGt.js +0 -261
  331. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +0 -853
  332. package/dist/vendor-nth-check-CS1D-zr5.js +0 -45
  333. package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
  334. package/dist/vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js +0 -143
  335. package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
  336. package/dist/vendor-prettier-cZc5sCiS.js +0 -4875
  337. package/dist/vendor-prosemirror-commands-Cu1q5ZDk.js +0 -385
  338. package/dist/vendor-prosemirror-dropcursor-BuGmFgFS.js +0 -86
  339. package/dist/vendor-prosemirror-gapcursor-CyYcCWVK.js +0 -203
  340. package/dist/vendor-prosemirror-history-DzRcbrCw.js +0 -248
  341. package/dist/vendor-prosemirror-keymap-KfbdOEJw.js +0 -62
  342. package/dist/vendor-prosemirror-markdown-OyxRuawK.js +0 -650
  343. package/dist/vendor-prosemirror-model-DFp4ML7B.js +0 -2730
  344. package/dist/vendor-prosemirror-schema-list-CwCUArvx.js +0 -87
  345. package/dist/vendor-prosemirror-state-DHaVEu5h.js +0 -821
  346. package/dist/vendor-prosemirror-tables-mYok4vGT.js +0 -1711
  347. package/dist/vendor-prosemirror-transform-CAHmg-qG.js +0 -1508
  348. package/dist/vendor-prosemirror-view-CspJa44O.js +0 -3751
  349. package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
  350. package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
  351. package/dist/vendor-semver-Dar8oU3V.js +0 -1023
  352. package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
  353. package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
  354. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
  355. package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
  356. package/dist/vendor-tiptap-extension-blockquote-r1MBx4hD.js +0 -54
  357. package/dist/vendor-tiptap-extension-bold-BjLI4i8b.js +0 -74
  358. package/dist/vendor-tiptap-extension-code-D5-kDnMW.js +0 -52
  359. package/dist/vendor-tiptap-extension-code-block-RjEb0zPA.js +0 -215
  360. package/dist/vendor-tiptap-extension-document--PLOxIdq.js +0 -12
  361. package/dist/vendor-tiptap-extension-hard-break-9cxC2YOS.js +0 -59
  362. package/dist/vendor-tiptap-extension-heading-2w0TutHn.js +0 -63
  363. package/dist/vendor-tiptap-extension-horizontal-rule-CFowa_lc.js +0 -56
  364. package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
  365. package/dist/vendor-tiptap-extension-italic-Bn-6saY0.js +0 -73
  366. package/dist/vendor-tiptap-extension-link-BmcG1_k-.js +0 -298
  367. package/dist/vendor-tiptap-extension-list-BrNBJ45n.js +0 -707
  368. package/dist/vendor-tiptap-extension-paragraph-DAiYhwUB.js +0 -41
  369. package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
  370. package/dist/vendor-tiptap-extension-strike-DqbXPfos.js +0 -64
  371. package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
  372. package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
  373. package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
  374. package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
  375. package/dist/vendor-tiptap-extension-text-BFnfj70b.js +0 -13
  376. package/dist/vendor-tiptap-extension-text-style-Darua3qr.js +0 -235
  377. package/dist/vendor-tiptap-extension-underline-QyVnBqQZ.js +0 -65
  378. package/dist/vendor-tiptap-extensions-CU-D7bfm.js +0 -290
  379. package/dist/vendor-tiptap-markdown-BwATYN5A.js +0 -826
  380. package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
  381. package/dist/vendor-tiptap-starter-kit-5luf7zzS.js +0 -28
  382. package/dist/vendor-tiptap-vue-3-CFBErZGb.js +0 -157
  383. package/dist/vendor-truncate-html-DYC0Lj9o.js +0 -145
  384. package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
  385. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
  386. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
  387. package/dist/vendor-vue-currency-input-BqaYAdhD.js +0 -317
  388. package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
  389. package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
  390. package/dist/vendor-vue-i18n-CO5LWKE0.js +0 -1370
  391. package/dist/vendor-vue3-application-insights-BKiiWnf2.js +0 -69
  392. package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
  393. package/dist/vendor-vuepic-vue-datepicker-CaY_xSnG.js +0 -4998
  394. package/dist/vendor-vueuse-components-sgKpNzof.js +0 -542
  395. package/dist/vendor-vueuse-core-D0cN7FqY.js +0 -5130
  396. package/dist/vendor-vueuse-shared-Pt0UEStA.js +0 -1169
  397. package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
@@ -1,735 +0,0 @@
1
- import { x as _, h as D, d as L, B as T, r as V, f as E } from "./vendor-entities-CCReaWqU.js";
2
- import { f as F } from "./vendor-domhandler-CL40eeX9.js";
3
- var a;
4
- (function(e) {
5
- e[e.Tab = 9] = "Tab", e[e.NewLine = 10] = "NewLine", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationMark = 33] = "ExclamationMark", e[e.Number = 35] = "Number", e[e.Amp = 38] = "Amp", e[e.SingleQuote = 39] = "SingleQuote", e[e.DoubleQuote = 34] = "DoubleQuote", e[e.Dash = 45] = "Dash", e[e.Slash = 47] = "Slash", e[e.Zero = 48] = "Zero", e[e.Nine = 57] = "Nine", e[e.Semi = 59] = "Semi", e[e.Lt = 60] = "Lt", e[e.Eq = 61] = "Eq", e[e.Gt = 62] = "Gt", e[e.Questionmark = 63] = "Questionmark", e[e.UpperA = 65] = "UpperA", e[e.LowerA = 97] = "LowerA", e[e.UpperF = 70] = "UpperF", e[e.LowerF = 102] = "LowerF", e[e.UpperZ = 90] = "UpperZ", e[e.LowerZ = 122] = "LowerZ", e[e.LowerX = 120] = "LowerX", e[e.OpeningSquareBracket = 91] = "OpeningSquareBracket";
6
- })(a || (a = {}));
7
- var i;
8
- (function(e) {
9
- e[e.Text = 1] = "Text", e[e.BeforeTagName = 2] = "BeforeTagName", e[e.InTagName = 3] = "InTagName", e[e.InSelfClosingTag = 4] = "InSelfClosingTag", e[e.BeforeClosingTagName = 5] = "BeforeClosingTagName", e[e.InClosingTagName = 6] = "InClosingTagName", e[e.AfterClosingTagName = 7] = "AfterClosingTagName", e[e.BeforeAttributeName = 8] = "BeforeAttributeName", e[e.InAttributeName = 9] = "InAttributeName", e[e.AfterAttributeName = 10] = "AfterAttributeName", e[e.BeforeAttributeValue = 11] = "BeforeAttributeValue", e[e.InAttributeValueDq = 12] = "InAttributeValueDq", e[e.InAttributeValueSq = 13] = "InAttributeValueSq", e[e.InAttributeValueNq = 14] = "InAttributeValueNq", e[e.BeforeDeclaration = 15] = "BeforeDeclaration", e[e.InDeclaration = 16] = "InDeclaration", e[e.InProcessingInstruction = 17] = "InProcessingInstruction", e[e.BeforeComment = 18] = "BeforeComment", e[e.CDATASequence = 19] = "CDATASequence", e[e.InSpecialComment = 20] = "InSpecialComment", e[e.InCommentLike = 21] = "InCommentLike", e[e.BeforeSpecialS = 22] = "BeforeSpecialS", e[e.SpecialStartSequence = 23] = "SpecialStartSequence", e[e.InSpecialTag = 24] = "InSpecialTag", e[e.BeforeEntity = 25] = "BeforeEntity", e[e.BeforeNumericEntity = 26] = "BeforeNumericEntity", e[e.InNamedEntity = 27] = "InNamedEntity", e[e.InNumericEntity = 28] = "InNumericEntity", e[e.InHexEntity = 29] = "InHexEntity";
10
- })(i || (i = {}));
11
- function b(e) {
12
- return e === a.Space || e === a.NewLine || e === a.Tab || e === a.FormFeed || e === a.CarriageReturn;
13
- }
14
- function S(e) {
15
- return e === a.Slash || e === a.Gt || b(e);
16
- }
17
- function y(e) {
18
- return e >= a.Zero && e <= a.Nine;
19
- }
20
- function U(e) {
21
- return e >= a.LowerA && e <= a.LowerZ || e >= a.UpperA && e <= a.UpperZ;
22
- }
23
- function G(e) {
24
- return e >= a.UpperA && e <= a.UpperF || e >= a.LowerA && e <= a.LowerF;
25
- }
26
- var d;
27
- (function(e) {
28
- e[e.NoValue = 0] = "NoValue", e[e.Unquoted = 1] = "Unquoted", e[e.Single = 2] = "Single", e[e.Double = 3] = "Double";
29
- })(d || (d = {}));
30
- const u = {
31
- Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
32
- CdataEnd: new Uint8Array([93, 93, 62]),
33
- CommentEnd: new Uint8Array([45, 45, 62]),
34
- ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]),
35
- StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]),
36
- TitleEnd: new Uint8Array([60, 47, 116, 105, 116, 108, 101])
37
- // `</title`
38
- };
39
- class O {
40
- constructor({ xmlMode: t = !1, decodeEntities: s = !0 }, n) {
41
- this.cbs = n, this.state = i.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = i.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = t, this.decodeEntities = s, this.entityTrie = t ? _ : D;
42
- }
43
- reset() {
44
- this.state = i.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = i.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
45
- }
46
- write(t) {
47
- this.offset += this.buffer.length, this.buffer = t, this.parse();
48
- }
49
- end() {
50
- this.running && this.finish();
51
- }
52
- pause() {
53
- this.running = !1;
54
- }
55
- resume() {
56
- this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
57
- }
58
- /**
59
- * The current index within all of the written data.
60
- */
61
- getIndex() {
62
- return this.index;
63
- }
64
- /**
65
- * The start of the current section.
66
- */
67
- getSectionStart() {
68
- return this.sectionStart;
69
- }
70
- stateText(t) {
71
- t === a.Lt || !this.decodeEntities && this.fastForwardTo(a.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = i.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && t === a.Amp && (this.state = i.BeforeEntity);
72
- }
73
- stateSpecialStartSequence(t) {
74
- const s = this.sequenceIndex === this.currentSequence.length;
75
- if (!(s ? (
76
- // If we are at the end of the sequence, make sure the tag name has ended
77
- S(t)
78
- ) : (
79
- // Otherwise, do a case-insensitive comparison
80
- (t | 32) === this.currentSequence[this.sequenceIndex]
81
- )))
82
- this.isSpecial = !1;
83
- else if (!s) {
84
- this.sequenceIndex++;
85
- return;
86
- }
87
- this.sequenceIndex = 0, this.state = i.InTagName, this.stateInTagName(t);
88
- }
89
- /** Look for an end tag. For <title> tags, also decode entities. */
90
- stateInSpecialTag(t) {
91
- if (this.sequenceIndex === this.currentSequence.length) {
92
- if (t === a.Gt || b(t)) {
93
- const s = this.index - this.currentSequence.length;
94
- if (this.sectionStart < s) {
95
- const n = this.index;
96
- this.index = s, this.cbs.ontext(this.sectionStart, s), this.index = n;
97
- }
98
- this.isSpecial = !1, this.sectionStart = s + 2, this.stateInClosingTagName(t);
99
- return;
100
- }
101
- this.sequenceIndex = 0;
102
- }
103
- (t | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === u.TitleEnd ? this.decodeEntities && t === a.Amp && (this.state = i.BeforeEntity) : this.fastForwardTo(a.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(t === a.Lt);
104
- }
105
- stateCDATASequence(t) {
106
- t === u.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === u.Cdata.length && (this.state = i.InCommentLike, this.currentSequence = u.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = i.InDeclaration, this.stateInDeclaration(t));
107
- }
108
- /**
109
- * When we wait for one specific character, we can speed things up
110
- * by skipping through the buffer until we find it.
111
- *
112
- * @returns Whether the character was found.
113
- */
114
- fastForwardTo(t) {
115
- for (; ++this.index < this.buffer.length + this.offset; )
116
- if (this.buffer.charCodeAt(this.index - this.offset) === t)
117
- return !0;
118
- return this.index = this.buffer.length + this.offset - 1, !1;
119
- }
120
- /**
121
- * Comments and CDATA end with `-->` and `]]>`.
122
- *
123
- * Their common qualities are:
124
- * - Their end sequences have a distinct character they start with.
125
- * - That character is then repeated, so we have to check multiple repeats.
126
- * - All characters but the start character of the sequence can be skipped.
127
- */
128
- stateInCommentLike(t) {
129
- t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === u.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = i.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : t !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
130
- }
131
- /**
132
- * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
133
- *
134
- * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).
135
- * We allow anything that wouldn't end the tag.
136
- */
137
- isTagStartChar(t) {
138
- return this.xmlMode ? !S(t) : U(t);
139
- }
140
- startSpecial(t, s) {
141
- this.isSpecial = !0, this.currentSequence = t, this.sequenceIndex = s, this.state = i.SpecialStartSequence;
142
- }
143
- stateBeforeTagName(t) {
144
- if (t === a.ExclamationMark)
145
- this.state = i.BeforeDeclaration, this.sectionStart = this.index + 1;
146
- else if (t === a.Questionmark)
147
- this.state = i.InProcessingInstruction, this.sectionStart = this.index + 1;
148
- else if (this.isTagStartChar(t)) {
149
- const s = t | 32;
150
- this.sectionStart = this.index, !this.xmlMode && s === u.TitleEnd[2] ? this.startSpecial(u.TitleEnd, 3) : this.state = !this.xmlMode && s === u.ScriptEnd[2] ? i.BeforeSpecialS : i.InTagName;
151
- } else t === a.Slash ? this.state = i.BeforeClosingTagName : (this.state = i.Text, this.stateText(t));
152
- }
153
- stateInTagName(t) {
154
- S(t) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = i.BeforeAttributeName, this.stateBeforeAttributeName(t));
155
- }
156
- stateBeforeClosingTagName(t) {
157
- b(t) || (t === a.Gt ? this.state = i.Text : (this.state = this.isTagStartChar(t) ? i.InClosingTagName : i.InSpecialComment, this.sectionStart = this.index));
158
- }
159
- stateInClosingTagName(t) {
160
- (t === a.Gt || b(t)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = i.AfterClosingTagName, this.stateAfterClosingTagName(t));
161
- }
162
- stateAfterClosingTagName(t) {
163
- (t === a.Gt || this.fastForwardTo(a.Gt)) && (this.state = i.Text, this.baseState = i.Text, this.sectionStart = this.index + 1);
164
- }
165
- stateBeforeAttributeName(t) {
166
- t === a.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = i.InSpecialTag, this.sequenceIndex = 0) : this.state = i.Text, this.baseState = this.state, this.sectionStart = this.index + 1) : t === a.Slash ? this.state = i.InSelfClosingTag : b(t) || (this.state = i.InAttributeName, this.sectionStart = this.index);
167
- }
168
- stateInSelfClosingTag(t) {
169
- t === a.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = i.Text, this.baseState = i.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : b(t) || (this.state = i.BeforeAttributeName, this.stateBeforeAttributeName(t));
170
- }
171
- stateInAttributeName(t) {
172
- (t === a.Eq || S(t)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = -1, this.state = i.AfterAttributeName, this.stateAfterAttributeName(t));
173
- }
174
- stateAfterAttributeName(t) {
175
- t === a.Eq ? this.state = i.BeforeAttributeValue : t === a.Slash || t === a.Gt ? (this.cbs.onattribend(d.NoValue, this.index), this.state = i.BeforeAttributeName, this.stateBeforeAttributeName(t)) : b(t) || (this.cbs.onattribend(d.NoValue, this.index), this.state = i.InAttributeName, this.sectionStart = this.index);
176
- }
177
- stateBeforeAttributeValue(t) {
178
- t === a.DoubleQuote ? (this.state = i.InAttributeValueDq, this.sectionStart = this.index + 1) : t === a.SingleQuote ? (this.state = i.InAttributeValueSq, this.sectionStart = this.index + 1) : b(t) || (this.sectionStart = this.index, this.state = i.InAttributeValueNq, this.stateInAttributeValueNoQuotes(t));
179
- }
180
- handleInAttributeValue(t, s) {
181
- t === s || !this.decodeEntities && this.fastForwardTo(s) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(s === a.DoubleQuote ? d.Double : d.Single, this.index), this.state = i.BeforeAttributeName) : this.decodeEntities && t === a.Amp && (this.baseState = this.state, this.state = i.BeforeEntity);
182
- }
183
- stateInAttributeValueDoubleQuotes(t) {
184
- this.handleInAttributeValue(t, a.DoubleQuote);
185
- }
186
- stateInAttributeValueSingleQuotes(t) {
187
- this.handleInAttributeValue(t, a.SingleQuote);
188
- }
189
- stateInAttributeValueNoQuotes(t) {
190
- b(t) || t === a.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(d.Unquoted, this.index), this.state = i.BeforeAttributeName, this.stateBeforeAttributeName(t)) : this.decodeEntities && t === a.Amp && (this.baseState = this.state, this.state = i.BeforeEntity);
191
- }
192
- stateBeforeDeclaration(t) {
193
- t === a.OpeningSquareBracket ? (this.state = i.CDATASequence, this.sequenceIndex = 0) : this.state = t === a.Dash ? i.BeforeComment : i.InDeclaration;
194
- }
195
- stateInDeclaration(t) {
196
- (t === a.Gt || this.fastForwardTo(a.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = i.Text, this.sectionStart = this.index + 1);
197
- }
198
- stateInProcessingInstruction(t) {
199
- (t === a.Gt || this.fastForwardTo(a.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = i.Text, this.sectionStart = this.index + 1);
200
- }
201
- stateBeforeComment(t) {
202
- t === a.Dash ? (this.state = i.InCommentLike, this.currentSequence = u.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = i.InDeclaration;
203
- }
204
- stateInSpecialComment(t) {
205
- (t === a.Gt || this.fastForwardTo(a.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = i.Text, this.sectionStart = this.index + 1);
206
- }
207
- stateBeforeSpecialS(t) {
208
- const s = t | 32;
209
- s === u.ScriptEnd[3] ? this.startSpecial(u.ScriptEnd, 4) : s === u.StyleEnd[3] ? this.startSpecial(u.StyleEnd, 4) : (this.state = i.InTagName, this.stateInTagName(t));
210
- }
211
- stateBeforeEntity(t) {
212
- this.entityExcess = 1, this.entityResult = 0, t === a.Number ? this.state = i.BeforeNumericEntity : t === a.Amp || (this.trieIndex = 0, this.trieCurrent = this.entityTrie[0], this.state = i.InNamedEntity, this.stateInNamedEntity(t));
213
- }
214
- stateInNamedEntity(t) {
215
- if (this.entityExcess += 1, this.trieIndex = L(this.entityTrie, this.trieCurrent, this.trieIndex + 1, t), this.trieIndex < 0) {
216
- this.emitNamedEntity(), this.index--;
217
- return;
218
- }
219
- this.trieCurrent = this.entityTrie[this.trieIndex];
220
- const s = this.trieCurrent & T.VALUE_LENGTH;
221
- if (s) {
222
- const n = (s >> 14) - 1;
223
- if (!this.allowLegacyEntity() && t !== a.Semi)
224
- this.trieIndex += n;
225
- else {
226
- const r = this.index - this.entityExcess + 1;
227
- r > this.sectionStart && this.emitPartial(this.sectionStart, r), this.entityResult = this.trieIndex, this.trieIndex += n, this.entityExcess = 0, this.sectionStart = this.index + 1, n === 0 && this.emitNamedEntity();
228
- }
229
- }
230
- }
231
- emitNamedEntity() {
232
- if (this.state = this.baseState, this.entityResult === 0)
233
- return;
234
- switch ((this.entityTrie[this.entityResult] & T.VALUE_LENGTH) >> 14) {
235
- case 1: {
236
- this.emitCodePoint(this.entityTrie[this.entityResult] & ~T.VALUE_LENGTH);
237
- break;
238
- }
239
- case 2: {
240
- this.emitCodePoint(this.entityTrie[this.entityResult + 1]);
241
- break;
242
- }
243
- case 3:
244
- this.emitCodePoint(this.entityTrie[this.entityResult + 1]), this.emitCodePoint(this.entityTrie[this.entityResult + 2]);
245
- }
246
- }
247
- stateBeforeNumericEntity(t) {
248
- (t | 32) === a.LowerX ? (this.entityExcess++, this.state = i.InHexEntity) : (this.state = i.InNumericEntity, this.stateInNumericEntity(t));
249
- }
250
- emitNumericEntity(t) {
251
- const s = this.index - this.entityExcess - 1;
252
- s + 2 + +(this.state === i.InHexEntity) !== this.index && (s > this.sectionStart && this.emitPartial(this.sectionStart, s), this.sectionStart = this.index + Number(t), this.emitCodePoint(V(this.entityResult))), this.state = this.baseState;
253
- }
254
- stateInNumericEntity(t) {
255
- t === a.Semi ? this.emitNumericEntity(!0) : y(t) ? (this.entityResult = this.entityResult * 10 + (t - a.Zero), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--);
256
- }
257
- stateInHexEntity(t) {
258
- t === a.Semi ? this.emitNumericEntity(!0) : y(t) ? (this.entityResult = this.entityResult * 16 + (t - a.Zero), this.entityExcess++) : G(t) ? (this.entityResult = this.entityResult * 16 + ((t | 32) - a.LowerA + 10), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--);
259
- }
260
- allowLegacyEntity() {
261
- return !this.xmlMode && (this.baseState === i.Text || this.baseState === i.InSpecialTag);
262
- }
263
- /**
264
- * Remove data that has already been consumed from the buffer.
265
- */
266
- cleanup() {
267
- this.running && this.sectionStart !== this.index && (this.state === i.Text || this.state === i.InSpecialTag && this.sequenceIndex === 0 ? (this.cbs.ontext(this.sectionStart, this.index), this.sectionStart = this.index) : (this.state === i.InAttributeValueDq || this.state === i.InAttributeValueSq || this.state === i.InAttributeValueNq) && (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = this.index));
268
- }
269
- shouldContinue() {
270
- return this.index < this.buffer.length + this.offset && this.running;
271
- }
272
- /**
273
- * Iterates through the buffer, calling the function corresponding to the current state.
274
- *
275
- * States that are more likely to be hit are higher up, as a performance improvement.
276
- */
277
- parse() {
278
- for (; this.shouldContinue(); ) {
279
- const t = this.buffer.charCodeAt(this.index - this.offset);
280
- switch (this.state) {
281
- case i.Text: {
282
- this.stateText(t);
283
- break;
284
- }
285
- case i.SpecialStartSequence: {
286
- this.stateSpecialStartSequence(t);
287
- break;
288
- }
289
- case i.InSpecialTag: {
290
- this.stateInSpecialTag(t);
291
- break;
292
- }
293
- case i.CDATASequence: {
294
- this.stateCDATASequence(t);
295
- break;
296
- }
297
- case i.InAttributeValueDq: {
298
- this.stateInAttributeValueDoubleQuotes(t);
299
- break;
300
- }
301
- case i.InAttributeName: {
302
- this.stateInAttributeName(t);
303
- break;
304
- }
305
- case i.InCommentLike: {
306
- this.stateInCommentLike(t);
307
- break;
308
- }
309
- case i.InSpecialComment: {
310
- this.stateInSpecialComment(t);
311
- break;
312
- }
313
- case i.BeforeAttributeName: {
314
- this.stateBeforeAttributeName(t);
315
- break;
316
- }
317
- case i.InTagName: {
318
- this.stateInTagName(t);
319
- break;
320
- }
321
- case i.InClosingTagName: {
322
- this.stateInClosingTagName(t);
323
- break;
324
- }
325
- case i.BeforeTagName: {
326
- this.stateBeforeTagName(t);
327
- break;
328
- }
329
- case i.AfterAttributeName: {
330
- this.stateAfterAttributeName(t);
331
- break;
332
- }
333
- case i.InAttributeValueSq: {
334
- this.stateInAttributeValueSingleQuotes(t);
335
- break;
336
- }
337
- case i.BeforeAttributeValue: {
338
- this.stateBeforeAttributeValue(t);
339
- break;
340
- }
341
- case i.BeforeClosingTagName: {
342
- this.stateBeforeClosingTagName(t);
343
- break;
344
- }
345
- case i.AfterClosingTagName: {
346
- this.stateAfterClosingTagName(t);
347
- break;
348
- }
349
- case i.BeforeSpecialS: {
350
- this.stateBeforeSpecialS(t);
351
- break;
352
- }
353
- case i.InAttributeValueNq: {
354
- this.stateInAttributeValueNoQuotes(t);
355
- break;
356
- }
357
- case i.InSelfClosingTag: {
358
- this.stateInSelfClosingTag(t);
359
- break;
360
- }
361
- case i.InDeclaration: {
362
- this.stateInDeclaration(t);
363
- break;
364
- }
365
- case i.BeforeDeclaration: {
366
- this.stateBeforeDeclaration(t);
367
- break;
368
- }
369
- case i.BeforeComment: {
370
- this.stateBeforeComment(t);
371
- break;
372
- }
373
- case i.InProcessingInstruction: {
374
- this.stateInProcessingInstruction(t);
375
- break;
376
- }
377
- case i.InNamedEntity: {
378
- this.stateInNamedEntity(t);
379
- break;
380
- }
381
- case i.BeforeEntity: {
382
- this.stateBeforeEntity(t);
383
- break;
384
- }
385
- case i.InHexEntity: {
386
- this.stateInHexEntity(t);
387
- break;
388
- }
389
- case i.InNumericEntity: {
390
- this.stateInNumericEntity(t);
391
- break;
392
- }
393
- default:
394
- this.stateBeforeNumericEntity(t);
395
- }
396
- this.index++;
397
- }
398
- this.cleanup();
399
- }
400
- finish() {
401
- this.state === i.InNamedEntity && this.emitNamedEntity(), this.sectionStart < this.index && this.handleTrailingData(), this.cbs.onend();
402
- }
403
- /** Handle any trailing data. */
404
- handleTrailingData() {
405
- const t = this.buffer.length + this.offset;
406
- this.state === i.InCommentLike ? this.currentSequence === u.CdataEnd ? this.cbs.oncdata(this.sectionStart, t, 0) : this.cbs.oncomment(this.sectionStart, t, 0) : this.state === i.InNumericEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state === i.InHexEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state === i.InTagName || this.state === i.BeforeAttributeName || this.state === i.BeforeAttributeValue || this.state === i.AfterAttributeName || this.state === i.InAttributeName || this.state === i.InAttributeValueSq || this.state === i.InAttributeValueDq || this.state === i.InAttributeValueNq || this.state === i.InClosingTagName || this.cbs.ontext(this.sectionStart, t);
407
- }
408
- emitPartial(t, s) {
409
- this.baseState !== i.Text && this.baseState !== i.InSpecialTag ? this.cbs.onattribdata(t, s) : this.cbs.ontext(t, s);
410
- }
411
- emitCodePoint(t) {
412
- this.baseState !== i.Text && this.baseState !== i.InSpecialTag ? this.cbs.onattribentity(t) : this.cbs.ontextentity(t);
413
- }
414
- }
415
- const I = /* @__PURE__ */ new Set([
416
- "input",
417
- "option",
418
- "optgroup",
419
- "select",
420
- "button",
421
- "datalist",
422
- "textarea"
423
- ]), h = /* @__PURE__ */ new Set(["p"]), w = /* @__PURE__ */ new Set(["thead", "tbody"]), q = /* @__PURE__ */ new Set(["dd", "dt"]), k = /* @__PURE__ */ new Set(["rt", "rp"]), P = /* @__PURE__ */ new Map([
424
- ["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
425
- ["th", /* @__PURE__ */ new Set(["th"])],
426
- ["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
427
- ["body", /* @__PURE__ */ new Set(["head", "link", "script"])],
428
- ["li", /* @__PURE__ */ new Set(["li"])],
429
- ["p", h],
430
- ["h1", h],
431
- ["h2", h],
432
- ["h3", h],
433
- ["h4", h],
434
- ["h5", h],
435
- ["h6", h],
436
- ["select", I],
437
- ["input", I],
438
- ["output", I],
439
- ["button", I],
440
- ["datalist", I],
441
- ["textarea", I],
442
- ["option", /* @__PURE__ */ new Set(["option"])],
443
- ["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
444
- ["dd", q],
445
- ["dt", q],
446
- ["address", h],
447
- ["article", h],
448
- ["aside", h],
449
- ["blockquote", h],
450
- ["details", h],
451
- ["div", h],
452
- ["dl", h],
453
- ["fieldset", h],
454
- ["figcaption", h],
455
- ["figure", h],
456
- ["footer", h],
457
- ["form", h],
458
- ["header", h],
459
- ["hr", h],
460
- ["main", h],
461
- ["nav", h],
462
- ["ol", h],
463
- ["pre", h],
464
- ["section", h],
465
- ["table", h],
466
- ["ul", h],
467
- ["rt", k],
468
- ["rp", k],
469
- ["tbody", w],
470
- ["tfoot", w]
471
- ]), R = /* @__PURE__ */ new Set([
472
- "area",
473
- "base",
474
- "basefont",
475
- "br",
476
- "col",
477
- "command",
478
- "embed",
479
- "frame",
480
- "hr",
481
- "img",
482
- "input",
483
- "isindex",
484
- "keygen",
485
- "link",
486
- "meta",
487
- "param",
488
- "source",
489
- "track",
490
- "wbr"
491
- ]), v = /* @__PURE__ */ new Set(["math", "svg"]), B = /* @__PURE__ */ new Set([
492
- "mi",
493
- "mo",
494
- "mn",
495
- "ms",
496
- "mtext",
497
- "annotation-xml",
498
- "foreignobject",
499
- "desc",
500
- "title"
501
- ]), M = /\s|\//;
502
- class z {
503
- constructor(t, s = {}) {
504
- var n, r, o, c, l;
505
- this.options = s, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = t ?? {}, this.lowerCaseTagNames = (n = s.lowerCaseTags) !== null && n !== void 0 ? n : !s.xmlMode, this.lowerCaseAttributeNames = (r = s.lowerCaseAttributeNames) !== null && r !== void 0 ? r : !s.xmlMode, this.tokenizer = new ((o = s.Tokenizer) !== null && o !== void 0 ? o : O)(this.options, this), (l = (c = this.cbs).onparserinit) === null || l === void 0 || l.call(c, this);
506
- }
507
- // Tokenizer event handlers
508
- /** @internal */
509
- ontext(t, s) {
510
- var n, r;
511
- const o = this.getSlice(t, s);
512
- this.endIndex = s - 1, (r = (n = this.cbs).ontext) === null || r === void 0 || r.call(n, o), this.startIndex = s;
513
- }
514
- /** @internal */
515
- ontextentity(t) {
516
- var s, n;
517
- const r = this.tokenizer.getSectionStart();
518
- this.endIndex = r - 1, (n = (s = this.cbs).ontext) === null || n === void 0 || n.call(s, E(t)), this.startIndex = r;
519
- }
520
- isVoidElement(t) {
521
- return !this.options.xmlMode && R.has(t);
522
- }
523
- /** @internal */
524
- onopentagname(t, s) {
525
- this.endIndex = s;
526
- let n = this.getSlice(t, s);
527
- this.lowerCaseTagNames && (n = n.toLowerCase()), this.emitOpenTag(n);
528
- }
529
- emitOpenTag(t) {
530
- var s, n, r, o;
531
- this.openTagStart = this.startIndex, this.tagname = t;
532
- const c = !this.options.xmlMode && P.get(t);
533
- if (c)
534
- for (; this.stack.length > 0 && c.has(this.stack[this.stack.length - 1]); ) {
535
- const l = this.stack.pop();
536
- (n = (s = this.cbs).onclosetag) === null || n === void 0 || n.call(s, l, !0);
537
- }
538
- this.isVoidElement(t) || (this.stack.push(t), v.has(t) ? this.foreignContext.push(!0) : B.has(t) && this.foreignContext.push(!1)), (o = (r = this.cbs).onopentagname) === null || o === void 0 || o.call(r, t), this.cbs.onopentag && (this.attribs = {});
539
- }
540
- endOpenTag(t) {
541
- var s, n;
542
- this.startIndex = this.openTagStart, this.attribs && ((n = (s = this.cbs).onopentag) === null || n === void 0 || n.call(s, this.tagname, this.attribs, t), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = "";
543
- }
544
- /** @internal */
545
- onopentagend(t) {
546
- this.endIndex = t, this.endOpenTag(!1), this.startIndex = t + 1;
547
- }
548
- /** @internal */
549
- onclosetag(t, s) {
550
- var n, r, o, c, l, m;
551
- this.endIndex = s;
552
- let f = this.getSlice(t, s);
553
- if (this.lowerCaseTagNames && (f = f.toLowerCase()), (v.has(f) || B.has(f)) && this.foreignContext.pop(), this.isVoidElement(f))
554
- !this.options.xmlMode && f === "br" && ((r = (n = this.cbs).onopentagname) === null || r === void 0 || r.call(n, "br"), (c = (o = this.cbs).onopentag) === null || c === void 0 || c.call(o, "br", {}, !0), (m = (l = this.cbs).onclosetag) === null || m === void 0 || m.call(l, "br", !1));
555
- else {
556
- const x = this.stack.lastIndexOf(f);
557
- if (x !== -1)
558
- if (this.cbs.onclosetag) {
559
- let g = this.stack.length - x;
560
- for (; g--; )
561
- this.cbs.onclosetag(this.stack.pop(), g !== 0);
562
- } else
563
- this.stack.length = x;
564
- else !this.options.xmlMode && f === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
565
- }
566
- this.startIndex = s + 1;
567
- }
568
- /** @internal */
569
- onselfclosingtag(t) {
570
- this.endIndex = t, this.options.xmlMode || this.options.recognizeSelfClosing || this.foreignContext[this.foreignContext.length - 1] ? (this.closeCurrentTag(!1), this.startIndex = t + 1) : this.onopentagend(t);
571
- }
572
- closeCurrentTag(t) {
573
- var s, n;
574
- const r = this.tagname;
575
- this.endOpenTag(t), this.stack[this.stack.length - 1] === r && ((n = (s = this.cbs).onclosetag) === null || n === void 0 || n.call(s, r, !t), this.stack.pop());
576
- }
577
- /** @internal */
578
- onattribname(t, s) {
579
- this.startIndex = t;
580
- const n = this.getSlice(t, s);
581
- this.attribname = this.lowerCaseAttributeNames ? n.toLowerCase() : n;
582
- }
583
- /** @internal */
584
- onattribdata(t, s) {
585
- this.attribvalue += this.getSlice(t, s);
586
- }
587
- /** @internal */
588
- onattribentity(t) {
589
- this.attribvalue += E(t);
590
- }
591
- /** @internal */
592
- onattribend(t, s) {
593
- var n, r;
594
- this.endIndex = s, (r = (n = this.cbs).onattribute) === null || r === void 0 || r.call(n, this.attribname, this.attribvalue, t === d.Double ? '"' : t === d.Single ? "'" : t === d.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
595
- }
596
- getInstructionName(t) {
597
- const s = t.search(M);
598
- let n = s < 0 ? t : t.substr(0, s);
599
- return this.lowerCaseTagNames && (n = n.toLowerCase()), n;
600
- }
601
- /** @internal */
602
- ondeclaration(t, s) {
603
- this.endIndex = s;
604
- const n = this.getSlice(t, s);
605
- if (this.cbs.onprocessinginstruction) {
606
- const r = this.getInstructionName(n);
607
- this.cbs.onprocessinginstruction(`!${r}`, `!${n}`);
608
- }
609
- this.startIndex = s + 1;
610
- }
611
- /** @internal */
612
- onprocessinginstruction(t, s) {
613
- this.endIndex = s;
614
- const n = this.getSlice(t, s);
615
- if (this.cbs.onprocessinginstruction) {
616
- const r = this.getInstructionName(n);
617
- this.cbs.onprocessinginstruction(`?${r}`, `?${n}`);
618
- }
619
- this.startIndex = s + 1;
620
- }
621
- /** @internal */
622
- oncomment(t, s, n) {
623
- var r, o, c, l;
624
- this.endIndex = s, (o = (r = this.cbs).oncomment) === null || o === void 0 || o.call(r, this.getSlice(t, s - n)), (l = (c = this.cbs).oncommentend) === null || l === void 0 || l.call(c), this.startIndex = s + 1;
625
- }
626
- /** @internal */
627
- oncdata(t, s, n) {
628
- var r, o, c, l, m, f, x, g, N, p;
629
- this.endIndex = s;
630
- const A = this.getSlice(t, s - n);
631
- this.options.xmlMode || this.options.recognizeCDATA ? ((o = (r = this.cbs).oncdatastart) === null || o === void 0 || o.call(r), (l = (c = this.cbs).ontext) === null || l === void 0 || l.call(c, A), (f = (m = this.cbs).oncdataend) === null || f === void 0 || f.call(m)) : ((g = (x = this.cbs).oncomment) === null || g === void 0 || g.call(x, `[CDATA[${A}]]`), (p = (N = this.cbs).oncommentend) === null || p === void 0 || p.call(N)), this.startIndex = s + 1;
632
- }
633
- /** @internal */
634
- onend() {
635
- var t, s;
636
- if (this.cbs.onclosetag) {
637
- this.endIndex = this.startIndex;
638
- for (let n = this.stack.length; n > 0; this.cbs.onclosetag(this.stack[--n], !0))
639
- ;
640
- }
641
- (s = (t = this.cbs).onend) === null || s === void 0 || s.call(t);
642
- }
643
- /**
644
- * Resets the parser to a blank state, ready to parse a new HTML document
645
- */
646
- reset() {
647
- var t, s, n, r;
648
- (s = (t = this.cbs).onreset) === null || s === void 0 || s.call(t), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, (r = (n = this.cbs).onparserinit) === null || r === void 0 || r.call(n, this), this.buffers.length = 0, this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1;
649
- }
650
- /**
651
- * Resets the parser, then parses a complete document and
652
- * pushes it to the handler.
653
- *
654
- * @param data Document to parse.
655
- */
656
- parseComplete(t) {
657
- this.reset(), this.end(t);
658
- }
659
- getSlice(t, s) {
660
- for (; t - this.bufferOffset >= this.buffers[0].length; )
661
- this.shiftBuffer();
662
- let n = this.buffers[0].slice(t - this.bufferOffset, s - this.bufferOffset);
663
- for (; s - this.bufferOffset > this.buffers[0].length; )
664
- this.shiftBuffer(), n += this.buffers[0].slice(0, s - this.bufferOffset);
665
- return n;
666
- }
667
- shiftBuffer() {
668
- this.bufferOffset += this.buffers[0].length, this.writeIndex--, this.buffers.shift();
669
- }
670
- /**
671
- * Parses a chunk of data and calls the corresponding callbacks.
672
- *
673
- * @param chunk Chunk to parse.
674
- */
675
- write(t) {
676
- var s, n;
677
- if (this.ended) {
678
- (n = (s = this.cbs).onerror) === null || n === void 0 || n.call(s, new Error(".write() after done!"));
679
- return;
680
- }
681
- this.buffers.push(t), this.tokenizer.running && (this.tokenizer.write(t), this.writeIndex++);
682
- }
683
- /**
684
- * Parses the end of the buffer and clears the stack, calls onend.
685
- *
686
- * @param chunk Optional final chunk to parse.
687
- */
688
- end(t) {
689
- var s, n;
690
- if (this.ended) {
691
- (n = (s = this.cbs).onerror) === null || n === void 0 || n.call(s, new Error(".end() after done!"));
692
- return;
693
- }
694
- t && this.write(t), this.ended = !0, this.tokenizer.end();
695
- }
696
- /**
697
- * Pauses parsing. The parser won't emit events until `resume` is called.
698
- */
699
- pause() {
700
- this.tokenizer.pause();
701
- }
702
- /**
703
- * Resumes parsing after `pause` was called.
704
- */
705
- resume() {
706
- for (this.tokenizer.resume(); this.tokenizer.running && this.writeIndex < this.buffers.length; )
707
- this.tokenizer.write(this.buffers[this.writeIndex++]);
708
- this.ended && this.tokenizer.end();
709
- }
710
- /**
711
- * Alias of `write`, for backwards compatibility.
712
- *
713
- * @param chunk Chunk to parse.
714
- * @deprecated
715
- */
716
- parseChunk(t) {
717
- this.write(t);
718
- }
719
- /**
720
- * Alias of `end`, for backwards compatibility.
721
- *
722
- * @param chunk Optional final chunk to parse.
723
- * @deprecated
724
- */
725
- done(t) {
726
- this.end(t);
727
- }
728
- }
729
- function C(e, t) {
730
- const s = new F(void 0, t);
731
- return new z(s, t).end(e), s.root;
732
- }
733
- export {
734
- C as p
735
- };