@instincthub/react-ui 0.1.3 → 0.1.4

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 (524) hide show
  1. package/README.md +28 -3
  2. package/dist/_virtual/_commonjsHelpers.js +1 -1
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  4. package/dist/_virtual/index.js +1 -1
  5. package/dist/_virtual/index2.js +1 -1
  6. package/dist/_virtual/lodash.js +1 -1
  7. package/dist/_virtual/react-is.development.js +1 -1
  8. package/dist/_virtual/react-is.production.min.js +1 -1
  9. package/dist/node_modules/@tiptap/core/dist/index.js +1 -1
  10. package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
  11. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +1 -1
  12. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
  13. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -1
  14. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
  15. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +1 -1
  16. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js.map +1 -1
  17. package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +1 -1
  18. package/dist/node_modules/@tiptap/extension-character-count/dist/index.js.map +1 -1
  19. package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -1
  20. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
  21. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +1 -1
  22. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
  23. package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -1
  24. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
  25. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +1 -1
  26. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js.map +1 -1
  27. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +1 -1
  28. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js.map +1 -1
  29. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -1
  30. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
  31. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -1
  32. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
  33. package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +1 -1
  34. package/dist/node_modules/@tiptap/extension-highlight/dist/index.js.map +1 -1
  35. package/dist/node_modules/@tiptap/extension-history/dist/index.js +1 -1
  36. package/dist/node_modules/@tiptap/extension-history/dist/index.js.map +1 -1
  37. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +1 -1
  38. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
  39. package/dist/node_modules/@tiptap/extension-image/dist/index.js +1 -1
  40. package/dist/node_modules/@tiptap/extension-image/dist/index.js.map +1 -1
  41. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -1
  42. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
  43. package/dist/node_modules/@tiptap/extension-link/dist/index.js +1 -1
  44. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
  45. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +1 -1
  46. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js.map +1 -1
  47. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +1 -1
  48. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js.map +1 -1
  49. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -1
  50. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
  51. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -1
  52. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
  53. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -1
  54. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
  55. package/dist/node_modules/@tiptap/extension-table/dist/index.js +1 -1
  56. package/dist/node_modules/@tiptap/extension-table/dist/index.js.map +1 -1
  57. package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js +1 -1
  58. package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js.map +1 -1
  59. package/dist/node_modules/@tiptap/extension-table-header/dist/index.js +1 -1
  60. package/dist/node_modules/@tiptap/extension-table-header/dist/index.js.map +1 -1
  61. package/dist/node_modules/@tiptap/extension-table-row/dist/index.js +1 -1
  62. package/dist/node_modules/@tiptap/extension-table-row/dist/index.js.map +1 -1
  63. package/dist/node_modules/@tiptap/extension-task-item/dist/index.js +1 -1
  64. package/dist/node_modules/@tiptap/extension-task-item/dist/index.js.map +1 -1
  65. package/dist/node_modules/@tiptap/extension-task-list/dist/index.js +1 -1
  66. package/dist/node_modules/@tiptap/extension-task-list/dist/index.js.map +1 -1
  67. package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -1
  68. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
  69. package/dist/node_modules/@tiptap/react/dist/index.js +3 -3
  70. package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
  71. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -1
  72. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
  73. package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
  74. package/dist/node_modules/attr-accept/dist/es/index.js.map +1 -1
  75. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -1
  76. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
  77. package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -1
  78. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
  79. package/dist/node_modules/date-fns/_lib/format/formatters.js +1 -1
  80. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
  81. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +1 -1
  82. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
  83. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +1 -1
  84. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
  85. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
  86. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
  87. package/dist/node_modules/date-fns/_lib/normalizeDates.js +1 -1
  88. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -1
  89. package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -1
  90. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
  91. package/dist/node_modules/date-fns/constants.js +1 -1
  92. package/dist/node_modules/date-fns/constants.js.map +1 -1
  93. package/dist/node_modules/date-fns/constructFrom.js +1 -1
  94. package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
  95. package/dist/node_modules/date-fns/differenceInCalendarDays.js +1 -1
  96. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
  97. package/dist/node_modules/date-fns/format.js +1 -1
  98. package/dist/node_modules/date-fns/format.js.map +1 -1
  99. package/dist/node_modules/date-fns/getDayOfYear.js +1 -1
  100. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
  101. package/dist/node_modules/date-fns/getISOWeek.js +1 -1
  102. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
  103. package/dist/node_modules/date-fns/getISOWeekYear.js +1 -1
  104. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
  105. package/dist/node_modules/date-fns/getWeek.js +1 -1
  106. package/dist/node_modules/date-fns/getWeek.js.map +1 -1
  107. package/dist/node_modules/date-fns/getWeekYear.js +1 -1
  108. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
  109. package/dist/node_modules/date-fns/isDate.js +1 -1
  110. package/dist/node_modules/date-fns/isDate.js.map +1 -1
  111. package/dist/node_modules/date-fns/isValid.js +1 -1
  112. package/dist/node_modules/date-fns/isValid.js.map +1 -1
  113. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -1
  114. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
  115. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -1
  116. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
  117. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -1
  118. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
  119. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -1
  120. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
  121. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -1
  122. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
  123. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +1 -1
  124. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
  125. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -1
  126. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
  127. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +1 -1
  128. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
  129. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +1 -1
  130. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
  131. package/dist/node_modules/date-fns/locale/en-US.js +1 -1
  132. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
  133. package/dist/node_modules/date-fns/startOfDay.js +1 -1
  134. package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
  135. package/dist/node_modules/date-fns/startOfISOWeek.js +1 -1
  136. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
  137. package/dist/node_modules/date-fns/startOfISOWeekYear.js +1 -1
  138. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
  139. package/dist/node_modules/date-fns/startOfWeek.js +1 -1
  140. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
  141. package/dist/node_modules/date-fns/startOfWeekYear.js +1 -1
  142. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
  143. package/dist/node_modules/date-fns/startOfYear.js +1 -1
  144. package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
  145. package/dist/node_modules/date-fns/toDate.js +1 -1
  146. package/dist/node_modules/date-fns/toDate.js.map +1 -1
  147. package/dist/node_modules/dompurify/dist/purify.es.mjs.js +2 -1
  148. package/dist/node_modules/dompurify/dist/purify.es.mjs.js.map +1 -1
  149. package/dist/node_modules/file-selector/dist/es2015/file-selector.js +1 -1
  150. package/dist/node_modules/file-selector/dist/es2015/file-selector.js.map +1 -1
  151. package/dist/node_modules/file-selector/dist/es2015/file.js +1 -1
  152. package/dist/node_modules/file-selector/dist/es2015/file.js.map +1 -1
  153. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +2 -1
  154. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
  155. package/dist/node_modules/linkifyjs/dist/linkify.es.js +1 -1
  156. package/dist/node_modules/linkifyjs/dist/linkify.es.js.map +1 -1
  157. package/dist/node_modules/lodash/lodash.js +3 -2
  158. package/dist/node_modules/lodash/lodash.js.map +1 -1
  159. package/dist/node_modules/marked/lib/marked.esm.js +1 -1
  160. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
  161. package/dist/node_modules/object-assign/index.js +2 -1
  162. package/dist/node_modules/object-assign/index.js.map +1 -1
  163. package/dist/node_modules/orderedmap/dist/index.js +1 -1
  164. package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
  165. package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
  166. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  167. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
  168. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  169. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  170. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  171. package/dist/node_modules/prop-types/index.js +1 -1
  172. package/dist/node_modules/prop-types/index.js.map +1 -1
  173. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
  174. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  175. package/dist/node_modules/prop-types/lib/has.js +1 -1
  176. package/dist/node_modules/prop-types/lib/has.js.map +1 -1
  177. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +2 -2
  178. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  179. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +2 -2
  180. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  181. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  182. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  183. package/dist/node_modules/prosemirror-commands/dist/index.js +1 -1
  184. package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
  185. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +1 -1
  186. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
  187. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
  188. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
  189. package/dist/node_modules/prosemirror-history/dist/index.js +1 -1
  190. package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
  191. package/dist/node_modules/prosemirror-keymap/dist/index.js +1 -1
  192. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
  193. package/dist/node_modules/prosemirror-model/dist/index.js +1 -1
  194. package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
  195. package/dist/node_modules/prosemirror-schema-list/dist/index.js +1 -1
  196. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
  197. package/dist/node_modules/prosemirror-state/dist/index.js +1 -1
  198. package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
  199. package/dist/node_modules/prosemirror-tables/dist/index.js +1 -1
  200. package/dist/node_modules/prosemirror-tables/dist/index.js.map +1 -1
  201. package/dist/node_modules/prosemirror-transform/dist/index.js +1 -1
  202. package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
  203. package/dist/node_modules/prosemirror-view/dist/index.js +1 -1
  204. package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
  205. package/dist/node_modules/react-dropzone/dist/es/index.js +1 -1
  206. package/dist/node_modules/react-dropzone/dist/es/index.js.map +1 -1
  207. package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
  208. package/dist/node_modules/react-dropzone/dist/es/utils/index.js.map +1 -1
  209. package/dist/node_modules/rope-sequence/dist/index.js +1 -1
  210. package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
  211. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  212. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  213. package/dist/node_modules/w3c-keyname/index.js +1 -1
  214. package/dist/node_modules/w3c-keyname/index.js.map +1 -1
  215. package/dist/node_modules/xlsx/xlsx.mjs.js +2 -1
  216. package/dist/node_modules/xlsx/xlsx.mjs.js.map +1 -1
  217. package/dist/src/components/auth/ClientDetector.js +1 -1
  218. package/dist/src/components/auth/ClientOnly.js +1 -1
  219. package/dist/src/components/auth/FromInstinctHub.js +1 -1
  220. package/dist/src/components/auth/FromInstinctHub.js.map +1 -1
  221. package/dist/src/components/auth/IsUsernameEmailTaken.js +1 -1
  222. package/dist/src/components/auth/LoginForm.js +1 -1
  223. package/dist/src/components/auth/PasswordsMatch.js +1 -1
  224. package/dist/src/components/auth/ReactClientProviders.js +1 -1
  225. package/dist/src/components/cursors/Cursor.js +1 -1
  226. package/dist/src/components/cursors/CursorContext.js +1 -1
  227. package/dist/src/components/cursors/CursorControlDemo.js +1 -1
  228. package/dist/src/components/cursors/MagneticButton.js +1 -1
  229. package/dist/src/components/cursors/index.js +1 -1
  230. package/dist/src/components/cursors/index.js.map +1 -1
  231. package/dist/src/components/cursors/useCursorInteraction.js +1 -1
  232. package/dist/src/components/forms/ActionCallbackDropdown.js +1 -1
  233. package/dist/src/components/forms/ActionDropdown.js +1 -1
  234. package/dist/src/components/forms/AnimatedBox.js +1 -1
  235. package/dist/src/components/forms/CheckBoxes.js +1 -1
  236. package/dist/src/components/forms/CheckboxesField.js +1 -1
  237. package/dist/src/components/forms/ChipsInput.js +1 -1
  238. package/dist/src/components/forms/DateInput.js +1 -1
  239. package/dist/src/components/forms/DateInputPicker.js +1 -1
  240. package/dist/src/components/forms/DateTimeInput.js +1 -1
  241. package/dist/src/components/forms/DownloadAsExcel.js +1 -1
  242. package/dist/src/components/forms/DropFile.js +1 -1
  243. package/dist/src/components/forms/EmailList.js +1 -1
  244. package/dist/src/components/forms/FileField.js +1 -1
  245. package/dist/src/components/forms/FilterArray.js +1 -1
  246. package/dist/src/components/forms/FilterBy.js +1 -1
  247. package/dist/src/components/forms/FilterObjects.js +1 -1
  248. package/dist/src/components/forms/FormError.js +1 -1
  249. package/dist/src/components/forms/FormError.js.map +1 -1
  250. package/dist/src/components/forms/HandleError.js +1 -1
  251. package/dist/src/components/forms/InputAmount.js +1 -1
  252. package/dist/src/components/forms/InputNumber.js +1 -1
  253. package/dist/src/components/forms/InputText.js +1 -1
  254. package/dist/src/components/forms/InputTextarea.js +1 -1
  255. package/dist/src/components/forms/Logout.js +1 -1
  256. package/dist/src/components/forms/MessageDisplay.js +1 -1
  257. package/dist/src/components/forms/MessageDisplay.js.map +1 -1
  258. package/dist/src/components/forms/MultipleEmail.js +1 -1
  259. package/dist/src/components/forms/PageLoading.js +1 -1
  260. package/dist/src/components/forms/PageLoading.js.map +1 -1
  261. package/dist/src/components/forms/PasswordField.js +1 -1
  262. package/dist/src/components/forms/PhoneNumberInput.js +1 -1
  263. package/dist/src/components/forms/RadioField.js +1 -1
  264. package/dist/src/components/forms/RadioField.js.map +1 -1
  265. package/dist/src/components/forms/RadioSimple.js +1 -1
  266. package/dist/src/components/forms/RadioSimple.js.map +1 -1
  267. package/dist/src/components/forms/ReactTimeAgo.js +1 -1
  268. package/dist/src/components/forms/ReadTermsAndCondition.js +1 -1
  269. package/dist/src/components/forms/SearchField.js +1 -1
  270. package/dist/src/components/forms/SearchFieldDB.js +1 -1
  271. package/dist/src/components/forms/SearchObjectsFromDB.js +1 -1
  272. package/dist/src/components/forms/StepProgressBar.js +1 -1
  273. package/dist/src/components/forms/StepProgressBar.js.map +1 -1
  274. package/dist/src/components/forms/SubmitButton.js +1 -1
  275. package/dist/src/components/forms/TBodyNoData.js +1 -1
  276. package/dist/src/components/forms/TBodyNoData.js.map +1 -1
  277. package/dist/src/components/forms/THeadSortBtn.js +1 -1
  278. package/dist/src/components/forms/THeadSortBtn.js.map +1 -1
  279. package/dist/src/components/forms/THeadSortList.js +1 -1
  280. package/dist/src/components/forms/Tables.js +1 -1
  281. package/dist/src/components/forms/TextArea.js +1 -1
  282. package/dist/src/components/forms/TextArea.js.map +1 -1
  283. package/dist/src/components/forms/TextField.js +1 -1
  284. package/dist/src/components/forms/ToggleButton.js +1 -1
  285. package/dist/src/components/forms/Tooltip.js +1 -1
  286. package/dist/src/components/forms/UnsplashRandomImage.js +1 -1
  287. package/dist/src/components/forms/radio-btn/RadioButton.js +1 -1
  288. package/dist/src/components/forms/radio-btn/RadioButton.js.map +1 -1
  289. package/dist/src/components/forms/radio-btn/RadioGroup.js +1 -1
  290. package/dist/src/components/forms/radio-btn/RadioGroup.js.map +1 -1
  291. package/dist/src/components/forms/uploads/FileUploader.js +1 -1
  292. package/dist/src/components/forms/uploads/IhubFileUploader.js +1 -1
  293. package/dist/src/components/lib/auth/actions.js +1 -1
  294. package/dist/src/components/lib/auth/dbRequestst.js +1 -1
  295. package/dist/src/components/lib/auth/dbRequestst.js.map +1 -1
  296. package/dist/src/components/lib/charts.js +1 -1
  297. package/dist/src/components/lib/charts.js.map +1 -1
  298. package/dist/src/components/lib/convertArrayToObject.js +1 -1
  299. package/dist/src/components/lib/convertArrayToObject.js.map +1 -1
  300. package/dist/src/components/lib/createSubscription.js +1 -1
  301. package/dist/src/components/lib/createSubscription.js.map +1 -1
  302. package/dist/src/components/lib/elementIsVisibleInViewport.js +1 -1
  303. package/dist/src/components/lib/elementIsVisibleInViewport.js.map +1 -1
  304. package/dist/src/components/lib/fileToBase64.js +1 -1
  305. package/dist/src/components/lib/fileToBase64.js.map +1 -1
  306. package/dist/src/components/lib/formError.js +1 -1
  307. package/dist/src/components/lib/formError.js.map +1 -1
  308. package/dist/src/components/lib/format.js +1 -1
  309. package/dist/src/components/lib/format.js.map +1 -1
  310. package/dist/src/components/lib/getPriceObjects.js +1 -1
  311. package/dist/src/components/lib/getPriceObjects.js.map +1 -1
  312. package/dist/src/components/lib/helpFunction.js +1 -1
  313. package/dist/src/components/lib/helpFunction.js.map +1 -1
  314. package/dist/src/components/lib/index.js +1 -1
  315. package/dist/src/components/lib/index.js.map +1 -1
  316. package/dist/src/components/lib/json/accounts.js +1 -1
  317. package/dist/src/components/lib/json/accounts.js.map +1 -1
  318. package/dist/src/components/lib/json/countryObjects.js +1 -1
  319. package/dist/src/components/lib/json/countryObjects.js.map +1 -1
  320. package/dist/src/components/lib/json/unsplashDefaultObject.js +1 -1
  321. package/dist/src/components/lib/json/unsplashDefaultObject.js.map +1 -1
  322. package/dist/src/components/lib/loadScript.js +2 -0
  323. package/dist/src/components/lib/loadScript.js.map +1 -0
  324. package/dist/src/components/lib/modals/modals.js +1 -1
  325. package/dist/src/components/lib/modals/modals.js.map +1 -1
  326. package/dist/src/components/lib/modals/openConfirmDelete.js +1 -1
  327. package/dist/src/components/lib/modals/openConfirmDelete.js.map +1 -1
  328. package/dist/src/components/lib/oauth_json.js +1 -1
  329. package/dist/src/components/lib/oauth_json.js.map +1 -1
  330. package/dist/src/components/lib/paystack.js +1 -1
  331. package/dist/src/components/lib/paystack.js.map +1 -1
  332. package/dist/src/components/lib/permissions.js +1 -1
  333. package/dist/src/components/lib/permissions.js.map +1 -1
  334. package/dist/src/components/lib/queryParameters/index.js +1 -1
  335. package/dist/src/components/lib/queryParameters/index.js.map +1 -1
  336. package/dist/src/components/lib/redux/index.js +1 -1
  337. package/dist/src/components/lib/redux/middleware.js +1 -1
  338. package/dist/src/components/lib/redux/middleware.js.map +1 -1
  339. package/dist/src/components/lib/redux/rootReducer.js +1 -1
  340. package/dist/src/components/lib/redux/rootReducer.js.map +1 -1
  341. package/dist/src/components/lib/redux/slices/authSlice/channelCallbackUrl.js +1 -1
  342. package/dist/src/components/lib/redux/slices/authSlice/channelCallbackUrl.js.map +1 -1
  343. package/dist/src/components/lib/redux/slices/authSlice/selectors.js +1 -1
  344. package/dist/src/components/lib/redux/slices/authSlice/selectors.js.map +1 -1
  345. package/dist/src/components/lib/redux/slices/channelSlice/activeChannel.js +1 -1
  346. package/dist/src/components/lib/redux/slices/channelSlice/activeChannel.js.map +1 -1
  347. package/dist/src/components/lib/redux/slices/channelSlice/channelDetails.js +1 -1
  348. package/dist/src/components/lib/redux/slices/channelSlice/channelDetails.js.map +1 -1
  349. package/dist/src/components/lib/redux/slices/channelSlice/channelHandle.js +1 -1
  350. package/dist/src/components/lib/redux/slices/channelSlice/channelHandle.js.map +1 -1
  351. package/dist/src/components/lib/redux/slices/channelSlice/instructorChannelList.js +1 -1
  352. package/dist/src/components/lib/redux/slices/channelSlice/instructorChannelList.js.map +1 -1
  353. package/dist/src/components/lib/redux/slices/channelSlice/selectors.js +1 -1
  354. package/dist/src/components/lib/redux/slices/channelSlice/selectors.js.map +1 -1
  355. package/dist/src/components/lib/redux/slices/courseSlice/courseDetails.js +1 -1
  356. package/dist/src/components/lib/redux/slices/courseSlice/courseDetails.js.map +1 -1
  357. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterDuration.js +1 -1
  358. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterDuration.js.map +1 -1
  359. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterLevel.js +1 -1
  360. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterLevel.js.map +1 -1
  361. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterSubject.js +1 -1
  362. package/dist/src/components/lib/redux/slices/courseSlice/courseFilterSubject.js.map +1 -1
  363. package/dist/src/components/lib/redux/slices/courseSlice/courseModules.js +1 -1
  364. package/dist/src/components/lib/redux/slices/courseSlice/courseModules.js.map +1 -1
  365. package/dist/src/components/lib/redux/slices/courseSlice/courseOverview.js +1 -1
  366. package/dist/src/components/lib/redux/slices/courseSlice/courseOverview.js.map +1 -1
  367. package/dist/src/components/lib/redux/slices/courseSlice/courseSearch.js +1 -1
  368. package/dist/src/components/lib/redux/slices/courseSlice/courseSearch.js.map +1 -1
  369. package/dist/src/components/lib/redux/slices/courseSlice/selectedCourses.js +1 -1
  370. package/dist/src/components/lib/redux/slices/courseSlice/selectedCourses.js.map +1 -1
  371. package/dist/src/components/lib/redux/slices/courseSlice/selectors.js +1 -1
  372. package/dist/src/components/lib/redux/slices/courseSlice/selectors.js.map +1 -1
  373. package/dist/src/components/lib/redux/slices/courseSlice/stepContent.js +1 -1
  374. package/dist/src/components/lib/redux/slices/courseSlice/stepContent.js.map +1 -1
  375. package/dist/src/components/lib/redux/slices/courseSlice/stepQuestions.js +1 -1
  376. package/dist/src/components/lib/redux/slices/courseSlice/stepQuestions.js.map +1 -1
  377. package/dist/src/components/lib/redux/slices/courseSlice/videoTimestamp.js +1 -1
  378. package/dist/src/components/lib/redux/slices/courseSlice/videoTimestamp.js.map +1 -1
  379. package/dist/src/components/lib/redux/slices/courseSlice/videoTimestampObject.js +1 -1
  380. package/dist/src/components/lib/redux/slices/courseSlice/videoTimestampObject.js.map +1 -1
  381. package/dist/src/components/lib/redux/slices/generics/arraySlice.js +1 -1
  382. package/dist/src/components/lib/redux/slices/generics/arraySlice.js.map +1 -1
  383. package/dist/src/components/lib/redux/slices/generics/objectSlice.js +1 -1
  384. package/dist/src/components/lib/redux/slices/generics/objectSlice.js.map +1 -1
  385. package/dist/src/components/lib/redux/slices/generics/selectors.js +1 -1
  386. package/dist/src/components/lib/redux/slices/generics/selectors.js.map +1 -1
  387. package/dist/src/components/lib/redux/slices/messageSlice/feedbackToggle.js +1 -1
  388. package/dist/src/components/lib/redux/slices/messageSlice/feedbackToggle.js.map +1 -1
  389. package/dist/src/components/lib/redux/slices/messageSlice/selectors.js +1 -1
  390. package/dist/src/components/lib/redux/slices/messageSlice/selectors.js.map +1 -1
  391. package/dist/src/components/lib/redux/slices/messageSlice/statusMessageState.js +1 -1
  392. package/dist/src/components/lib/redux/slices/messageSlice/statusMessageState.js.map +1 -1
  393. package/dist/src/components/lib/redux/slices/navigationSlice/IPAdress.js +1 -1
  394. package/dist/src/components/lib/redux/slices/navigationSlice/IPAdress.js.map +1 -1
  395. package/dist/src/components/lib/redux/slices/navigationSlice/appToggle.js +1 -1
  396. package/dist/src/components/lib/redux/slices/navigationSlice/appToggle.js.map +1 -1
  397. package/dist/src/components/lib/redux/slices/navigationSlice/confirmDelete.js +1 -1
  398. package/dist/src/components/lib/redux/slices/navigationSlice/confirmDelete.js.map +1 -1
  399. package/dist/src/components/lib/redux/slices/navigationSlice/courseNextStep.js +1 -1
  400. package/dist/src/components/lib/redux/slices/navigationSlice/courseNextStep.js.map +1 -1
  401. package/dist/src/components/lib/redux/slices/navigationSlice/currentPromo.js +1 -1
  402. package/dist/src/components/lib/redux/slices/navigationSlice/currentPromo.js.map +1 -1
  403. package/dist/src/components/lib/redux/slices/navigationSlice/searchValue.js +1 -1
  404. package/dist/src/components/lib/redux/slices/navigationSlice/searchValue.js.map +1 -1
  405. package/dist/src/components/lib/redux/slices/navigationSlice/selectors.js +1 -1
  406. package/dist/src/components/lib/redux/slices/navigationSlice/selectors.js.map +1 -1
  407. package/dist/src/components/lib/redux/slices/navigationSlice/settingsToggle.js +1 -1
  408. package/dist/src/components/lib/redux/slices/navigationSlice/settingsToggle.js.map +1 -1
  409. package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCohort.js +1 -1
  410. package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCohort.js.map +1 -1
  411. package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCourse.js +1 -1
  412. package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCourse.js.map +1 -1
  413. package/dist/src/components/lib/redux/slices/navigationSlice/userLocation.js +1 -1
  414. package/dist/src/components/lib/redux/slices/navigationSlice/userLocation.js.map +1 -1
  415. package/dist/src/components/lib/redux/slices/utilsSlice/screenSize.js +1 -1
  416. package/dist/src/components/lib/redux/slices/utilsSlice/screenSize.js.map +1 -1
  417. package/dist/src/components/lib/redux/slices/utilsSlice/selectors.js +1 -1
  418. package/dist/src/components/lib/redux/slices/utilsSlice/selectors.js.map +1 -1
  419. package/dist/src/components/lib/redux/store.js +1 -1
  420. package/dist/src/components/lib/redux/store.js.map +1 -1
  421. package/dist/src/components/lib/roles.js +1 -1
  422. package/dist/src/components/lib/roles.js.map +1 -1
  423. package/dist/src/components/lib/utils.js +1 -1
  424. package/dist/src/components/lib/utils.js.map +1 -1
  425. package/dist/src/components/navbar/Breadcrumb.js +1 -1
  426. package/dist/src/components/navbar/ChannelListAvatar.js +1 -1
  427. package/dist/src/components/navbar/MenuDropdown.js +1 -1
  428. package/dist/src/components/navbar/ResponsiveNavbar.js +1 -1
  429. package/dist/src/components/navbar/SideNavbar.js +1 -1
  430. package/dist/src/components/status/CopyToClipBoard.js +1 -1
  431. package/dist/src/components/status/DeleteConfirmationModal.js +1 -1
  432. package/dist/src/components/status/Error500.js +1 -1
  433. package/dist/src/components/status/Error500.js.map +1 -1
  434. package/dist/src/components/status/ErrorState.js +1 -1
  435. package/dist/src/components/status/ErrorState.js.map +1 -1
  436. package/dist/src/components/status/ModalExamples.js +1 -1
  437. package/dist/src/components/status/MultiPurposeModal.js +1 -1
  438. package/dist/src/components/status/NotFound.js +1 -1
  439. package/dist/src/components/status/ReactTimeTracker.js +1 -1
  440. package/dist/src/components/status/SessionHandleProvider.js +1 -1
  441. package/dist/src/components/status/Unauthorized.js +1 -1
  442. package/dist/src/components/status/Unauthorized.js.map +1 -1
  443. package/dist/src/components/tabs/TabContent.js +1 -1
  444. package/dist/src/components/tabs/TabContent.js.map +1 -1
  445. package/dist/src/components/tabs/Tabs.js +1 -1
  446. package/dist/src/components/tabs/VerticalTabs.js +1 -1
  447. package/dist/src/components/theme/ChangeStyleVariable.js +1 -1
  448. package/dist/src/components/theme/DarkModeProvider.js +1 -1
  449. package/dist/src/components/theme/LoadingAnimate.js +1 -1
  450. package/dist/src/components/theme/LoadingAnimate.js.map +1 -1
  451. package/dist/src/components/theme/SessionProviders.js +1 -1
  452. package/dist/src/components/theme/signout/SessionExpiresLogout.js +1 -1
  453. package/dist/src/components/theme/signout/SignOutSession.js +1 -1
  454. package/dist/src/components/ui/Action.js +1 -1
  455. package/dist/src/components/ui/Action.js.map +1 -1
  456. package/dist/src/components/ui/Badge.js +1 -1
  457. package/dist/src/components/ui/Badge.js.map +1 -1
  458. package/dist/src/components/ui/ColorPicker.js +1 -1
  459. package/dist/src/components/ui/ComponentLists.js +1 -1
  460. package/dist/src/components/ui/ComponentLists.js.map +1 -1
  461. package/dist/src/components/ui/Dropdown.js +1 -1
  462. package/dist/src/components/ui/OrDivider.js +1 -1
  463. package/dist/src/components/ui/cards/Card.js +1 -1
  464. package/dist/src/components/ui/cards/CardGrid.js +1 -1
  465. package/dist/src/components/ui/cards/CardGrid.js.map +1 -1
  466. package/dist/src/components/ui/cards/CardList.js +1 -1
  467. package/dist/src/components/ui/cards/CardList.js.map +1 -1
  468. package/dist/src/components/ui/cards/FeatureCard.js +1 -1
  469. package/dist/src/components/ui/cards/FeatureCard.js.map +1 -1
  470. package/dist/src/components/ui/cards/HorizontalCard.js +1 -1
  471. package/dist/src/components/ui/cards/HorizontalCard.js.map +1 -1
  472. package/dist/src/components/ui/cards/MediaCard.js +1 -1
  473. package/dist/src/components/ui/cards/MediaCard.js.map +1 -1
  474. package/dist/src/components/ui/cards/PricingCard.js +1 -1
  475. package/dist/src/components/ui/cards/PricingCard.js.map +1 -1
  476. package/dist/src/components/ui/cards/ProfileCard.js +1 -1
  477. package/dist/src/components/ui/cards/ProfileCard.js.map +1 -1
  478. package/dist/src/components/ui/charts/ChartConfigurator.js +1 -1
  479. package/dist/src/components/ui/charts/InstinctHubChart.js +1 -1
  480. package/dist/src/components/ui/charts/InstinctHubChartDashboard.js +1 -1
  481. package/dist/src/components/ui/create-button/CreateButton.js +1 -1
  482. package/dist/src/components/ui/create-button/CreateButtonExample.js +1 -1
  483. package/dist/src/components/ui/create-button/CreateButtonExample.js.map +1 -1
  484. package/dist/src/components/ui/dialogs/Dialog.js +1 -1
  485. package/dist/src/components/ui/editor/CustomTextEditor.js +1 -1
  486. package/dist/src/components/ui/editor/MenuBar.js +1 -1
  487. package/dist/src/components/ui/images/RandomGradientImage.js +1 -1
  488. package/dist/src/components/ui/images/RandomGradientImage.js.map +1 -1
  489. package/dist/src/components/ui/pagination/Pagination.js +1 -1
  490. package/dist/src/components/ui/pagination/PaginationDemo.js +1 -1
  491. package/dist/src/components/ui/tables/IHubTable.js +1 -1
  492. package/dist/src/components/ui/tables/IHubTableServer.js +1 -1
  493. package/dist/src/components/ui/viewer/CodeDisplay.js +1 -1
  494. package/dist/src/components/ui/viewer/ContentViewOrEdit.js +1 -1
  495. package/dist/src/components/ui/viewer/ContentViewer.js +1 -1
  496. package/dist/src/index.js +1 -1
  497. package/dist/src/ssr.js +1 -1
  498. package/dist/src/types/components/auth/IsUsernameEmailTaken.d.ts +13 -0
  499. package/dist/src/types/components/forms/DateInput.d.ts +3 -4
  500. package/dist/src/types/components/forms/FilterObjects.d.ts +1 -1
  501. package/dist/src/types/components/forms/uploads/IhubFileUploader.d.ts +1 -1
  502. package/dist/src/types/components/lib/index.d.ts +1 -1
  503. package/dist/src/types/components/lib/redux/slices/channelSlice/channelDetails.d.ts +1 -1
  504. package/dist/src/types/components/lib/redux/slices/channelSlice/instructorChannelList.d.ts +3 -2
  505. package/dist/src/types/components/lib/redux/slices/courseSlice/courseDetails.d.ts +1 -1
  506. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterDuration.d.ts +1 -1
  507. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterLevel.d.ts +1 -1
  508. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterSubject.d.ts +1 -1
  509. package/dist/src/types/components/lib/redux/slices/courseSlice/courseModules.d.ts +1 -1
  510. package/dist/src/types/components/lib/redux/slices/courseSlice/courseOverview.d.ts +1 -1
  511. package/dist/src/types/components/lib/redux/slices/courseSlice/courseSearch.d.ts +1 -1
  512. package/dist/src/types/components/lib/redux/slices/courseSlice/stepContent.d.ts +1 -1
  513. package/dist/src/types/components/lib/redux/slices/courseSlice/stepQuestions.d.ts +1 -1
  514. package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestamp.d.ts +1 -1
  515. package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestampObject.d.ts +1 -1
  516. package/dist/src/types/components/lib/redux/slices/navigationSlice/IPAdress.d.ts +1 -1
  517. package/dist/src/types/components/status/ReactTimeTracker.d.ts +1 -1
  518. package/dist/src/types/components/tabs/Tabs.d.ts +1 -1
  519. package/dist/src/types/components/tabs/VerticalTabs.d.ts +1 -1
  520. package/dist/src/types/components/theme/signout/SessionExpiresLogout.d.ts +1 -1
  521. package/dist/src/types/components/ui/Action.d.ts +1 -1
  522. package/dist/src/types/types/index.d.ts +4 -0
  523. package/dist/tsconfig.tsbuildinfo +1 -1
  524. package/package.json +26 -9
@@ -1 +1 @@
1
- {"version":3,"file":"toDate.js","sources":["../../../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":"mDAwCO,SAASA,EAAOC,EAAUC,GAE/B,OAAOC,EAAcD,GAAWD,EAAUA,EAC5C"}
1
+ {"version":3,"file":"toDate.js","sources":["../../../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":"wGAwCO,SAASA,EAAOC,EAAUC,GAE/B,OAAOC,gBAAcD,GAAWD,EAAUA,EAC5C"}
@@ -1,3 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
1
2
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
2
- const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=R(Array.prototype.forEach),m=R(Array.prototype.lastIndexOf),p=R(Array.prototype.pop),f=R(Array.prototype.push),d=R(Array.prototype.splice),h=R(String.prototype.toLowerCase),g=R(String.prototype.toString),T=R(String.prototype.match),y=R(String.prototype.replace),E=R(String.prototype.indexOf),A=R(String.prototype.trim),_=R(Object.prototype.hasOwnProperty),S=R(RegExp.prototype.test),N=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(b,t)});var b;function R(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function w(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function O(e){for(let t=0;t<e.length;t++){_(e,t)||(e[t]=null)}return e}function v(t){const n=l(null);for(const[o,r]of e(t)){_(t,o)&&(Array.isArray(r)?n[o]=O(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=v(r):n[o]=r)}return n}function D(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=o(e)}return function(){return null}}const L=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),z=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:G});const J=1,Q=3,ee=7,te=8,ne=9,oe=function(){return"undefined"==typeof window?null:window};var re=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const o=e=>t(e);if(o.version="3.2.4",o.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:b,Node:R,Element:O,NodeFilter:B,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:G,DOMParser:Y,trustedTypes:j}=n,q=O.prototype,$=D(q,"cloneNode"),V=D(q,"remove"),re=D(q,"nextSibling"),ie=D(q,"childNodes"),ae=D(q,"parentNode");if("function"==typeof b){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let le,ce="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:me,getElementsByTagName:pe}=r,{importNode:fe}=a;let de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof ae&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:ge,TMPLIT_EXPR:Te,DATA_ATTR:ye,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:Se}=Z;let{IS_ALLOWED_URI:Ne}=Z,be=null;const Re=w({},[...L,...C,...x,...I,...U]);let we=null;const Oe=w({},[...z,...P,...H,...F]);let ve=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Le=null,Ce=!0,xe=!0,ke=!1,Ie=!0,Me=!1,Ue=!0,ze=!1,Pe=!1,He=!1,Fe=!1,Be=!1,We=!1,Ge=!0,Ye=!1,je=!0,Xe=!1,qe={},$e=null;const Ke=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Ze=w({},["audio","video","img","source","image","track"]);let Je=null;const Qe=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let ot=nt,rt=!1,it=null;const at=w({},[et,tt,nt],g);let lt=w({},["mi","mo","mn","ms","mtext"]),ct=w({},["annotation-xml"]);const st=w({},["title","style","font","a","script"]);let ut=null;const mt=["application/xhtml+xml","text/html"];let pt=null,ft=null;const dt=r.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"==typeof e||(e={}),e=v(e),ut=-1===mt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?g:h,be=_(e,"ALLOWED_TAGS")?w({},e.ALLOWED_TAGS,pt):Re,we=_(e,"ALLOWED_ATTR")?w({},e.ALLOWED_ATTR,pt):Oe,it=_(e,"ALLOWED_NAMESPACES")?w({},e.ALLOWED_NAMESPACES,g):at,Je=_(e,"ADD_URI_SAFE_ATTR")?w(v(Qe),e.ADD_URI_SAFE_ATTR,pt):Qe,Ve=_(e,"ADD_DATA_URI_TAGS")?w(v(Ze),e.ADD_DATA_URI_TAGS,pt):Ze,$e=_(e,"FORBID_CONTENTS")?w({},e.FORBID_CONTENTS,pt):Ke,De=_(e,"FORBID_TAGS")?w({},e.FORBID_TAGS,pt):{},Le=_(e,"FORBID_ATTR")?w({},e.FORBID_ATTR,pt):{},qe=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,xe=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ye=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Xe=e.IN_PLACE||!1,Ne=e.ALLOWED_URI_REGEXP||X,ot=e.NAMESPACE||nt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ct=e.HTML_INTEGRATION_POINTS||ct,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(xe=!1),Be&&(Fe=!0),qe&&(be=w({},U),we=[],!0===qe.html&&(w(be,L),w(we,z)),!0===qe.svg&&(w(be,C),w(we,P),w(we,F)),!0===qe.svgFilters&&(w(be,x),w(we,P),w(we,F)),!0===qe.mathMl&&(w(be,I),w(we,H),w(we,F))),e.ADD_TAGS&&(be===Re&&(be=v(be)),w(be,e.ADD_TAGS,pt)),e.ADD_ATTR&&(we===Oe&&(we=v(we)),w(we,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&w(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&($e===Ke&&($e=v($e)),w($e,e.FORBID_CONTENTS,pt)),je&&(be["#text"]=!0),ze&&w(be,["html","head","body"]),be.table&&(w(be,["tbody"]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,ce=le.createHTML("")}else void 0===le&&(le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,c)),null!==le&&"string"==typeof ce&&(ce=le.createHTML(""));i&&i(e),ft=e}},Tt=w({},[...C,...x,...k]),yt=w({},[...I,...M]),Et=function(e){f(o.removed,{element:e});try{ae(e).removeChild(e)}catch(t){V(e)}},At=function(e,t){try{f(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||Be)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=le?le.createHTML(e):e;if(ot===nt)try{t=(new Y).parseFromString(o,ut)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(ot,"template",null);try{t.documentElement.innerHTML=rt?ce:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ot===nt?pe.call(t,ze?"html":"body")[0]:ze?t.documentElement:i},St=function(e){return ue.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof R&&e instanceof R};function Rt(e,t,n){u(e,(e=>{e.call(o,t,n,ft)}))}const wt=function(e){let t=null;if(Rt(de.beforeSanitizeElements,e,null),Nt(e))return Et(e),!0;const n=pt(e.nodeName);if(Rt(de.uponSanitizeElement,e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return Et(e),!0;if(e.nodeType===ee)return Et(e),!0;if(Ue&&e.nodeType===te&&S(/<[/\w]/g,e.data))return Et(e),!0;if(!be[n]||De[n]){if(!De[n]&&vt(n)){if(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,n))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))return!1}if(je&&!$e[n]){const t=ae(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,re(e))}}}return Et(e),!0}return e instanceof O&&!function(e){let t=ae(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||lt[o]):Boolean(Tt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ct[o]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ct[o])&&!(t.namespaceURI===et&&!lt[o])&&!yt[n]&&(st[n]||!Tt[n]):!("application/xhtml+xml"!==ut||!it[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===Q&&(t=e.textContent,u([he,ge,Te],(e=>{t=y(t,e," ")})),e.textContent!==t&&(f(o.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(de.afterSanitizeElements,e,null),!1):(Et(e),!0)},Ot=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in r||n in dt))return!1;if(xe&&!Le[t]&&S(ye,t));else if(Ce&&S(Ee,t));else if(!we[t]||Le[t]){if(!(vt(e)&&(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&S(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,n)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))))return!1}else if(Je[t]);else if(S(Ne,y(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ve[e]){if(ke&&!S(Ae,y(n,_e,"")));else if(n)return!1}else;return!0},vt=function(e){return"annotation-xml"!==e&&T(e,Se)},Dt=function(e){Rt(de.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=pt(a);let m="value"===a?c:A(c);if(n.attrName=s,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,Rt(de.uponSanitizeAttribute,e,n),m=n.attrValue,!Ye||"id"!==s&&"name"!==s||(At(a,e),m="user-content-"+m),Ue&&S(/((--!?|])>)|<\/(style|title)/i,m)){At(a,e);continue}if(n.forceKeepAttr)continue;if(At(a,e),!n.keepAttr)continue;if(!Ie&&S(/\/>/i,m)){At(a,e);continue}Me&&u([he,ge,Te],(e=>{m=y(m,e," ")}));const f=pt(e.nodeName);if(Ot(f,s,m)){if(le&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(f,s)){case"TrustedHTML":m=le.createHTML(m);break;case"TrustedScriptURL":m=le.createScriptURL(m)}try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),Nt(e)?Et(e):p(o.removed)}catch(e){}}}Rt(de.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const o=St(t);for(Rt(de.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Rt(de.uponSanitizeShadowNode,n,null),wt(n),Dt(n),n.content instanceof s&&e(n.content);Rt(de.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw N("toString is not a function");if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Pe||gt(t),o.removed=[],"string"==typeof e&&(Xe=!1),Xe){if(e.nodeName){const t=pt(e.nodeName);if(!be[t]||De[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof R)n=_t("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!Me&&!ze&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e;if(n=_t(e),!n)return Fe?null:We?ce:""}n&&He&&Et(n.firstChild);const c=St(Xe?e:n);for(;i=c.nextNode();)wt(i),Dt(i),i.content instanceof s&&Lt(i.content);if(Xe)return e;if(Fe){if(Be)for(l=me.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(we.shadowroot||we.shadowrootmode)&&(l=fe.call(a,l,!0)),l}let m=ze?n.outerHTML:n.innerHTML;return ze&&be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(K,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Me&&u([he,ge,Te],(e=>{m=y(m,e," ")})),le&&We?le.createHTML(m):m},o.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},o.clearConfig=function(){ft=null,Pe=!1},o.isValidAttribute=function(e,t,n){ft||gt({});const o=pt(e),r=pt(t);return Ot(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&f(de[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=m(de[e],t);return-1===n?void 0:d(de[e],n,1)[0]}return p(de[e])},o.removeHooks=function(e){de[e]=[]},o.removeAllHooks=function(){de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();export{re as default};
3
+ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=R(Array.prototype.forEach),m=R(Array.prototype.lastIndexOf),p=R(Array.prototype.pop),f=R(Array.prototype.push),d=R(Array.prototype.splice),h=R(String.prototype.toLowerCase),g=R(String.prototype.toString),T=R(String.prototype.match),y=R(String.prototype.replace),E=R(String.prototype.indexOf),A=R(String.prototype.trim),_=R(Object.prototype.hasOwnProperty),S=R(RegExp.prototype.test),N=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(b,t)});var b;function R(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function w(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function O(e){for(let t=0;t<e.length;t++){_(e,t)||(e[t]=null)}return e}function v(t){const n=l(null);for(const[o,r]of e(t)){_(t,o)&&(Array.isArray(r)?n[o]=O(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=v(r):n[o]=r)}return n}function D(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=o(e)}return function(){return null}}const L=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),z=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:G});const J=1,Q=3,ee=7,te=8,ne=9,oe=function(){return"undefined"==typeof window?null:window};var re=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const o=e=>t(e);if(o.version="3.2.4",o.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:b,Node:R,Element:O,NodeFilter:B,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:G,DOMParser:Y,trustedTypes:j}=n,q=O.prototype,$=D(q,"cloneNode"),V=D(q,"remove"),re=D(q,"nextSibling"),ie=D(q,"childNodes"),ae=D(q,"parentNode");if("function"==typeof b){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let le,ce="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:me,getElementsByTagName:pe}=r,{importNode:fe}=a;let de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof ae&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:ge,TMPLIT_EXPR:Te,DATA_ATTR:ye,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:Se}=Z;let{IS_ALLOWED_URI:Ne}=Z,be=null;const Re=w({},[...L,...C,...x,...k,...U]);let we=null;const Oe=w({},[...z,...P,...H,...F]);let ve=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Le=null,Ce=!0,xe=!0,Me=!1,ke=!0,Ie=!1,Ue=!0,ze=!1,Pe=!1,He=!1,Fe=!1,Be=!1,We=!1,Ge=!0,Ye=!1,je=!0,Xe=!1,qe={},$e=null;const Ke=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Ze=w({},["audio","video","img","source","image","track"]);let Je=null;const Qe=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let ot=nt,rt=!1,it=null;const at=w({},[et,tt,nt],g);let lt=w({},["mi","mo","mn","ms","mtext"]),ct=w({},["annotation-xml"]);const st=w({},["title","style","font","a","script"]);let ut=null;const mt=["application/xhtml+xml","text/html"];let pt=null,ft=null;const dt=r.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"==typeof e||(e={}),e=v(e),ut=-1===mt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?g:h,be=_(e,"ALLOWED_TAGS")?w({},e.ALLOWED_TAGS,pt):Re,we=_(e,"ALLOWED_ATTR")?w({},e.ALLOWED_ATTR,pt):Oe,it=_(e,"ALLOWED_NAMESPACES")?w({},e.ALLOWED_NAMESPACES,g):at,Je=_(e,"ADD_URI_SAFE_ATTR")?w(v(Qe),e.ADD_URI_SAFE_ATTR,pt):Qe,Ve=_(e,"ADD_DATA_URI_TAGS")?w(v(Ze),e.ADD_DATA_URI_TAGS,pt):Ze,$e=_(e,"FORBID_CONTENTS")?w({},e.FORBID_CONTENTS,pt):Ke,De=_(e,"FORBID_TAGS")?w({},e.FORBID_TAGS,pt):{},Le=_(e,"FORBID_ATTR")?w({},e.FORBID_ATTR,pt):{},qe=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,xe=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ye=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Xe=e.IN_PLACE||!1,Ne=e.ALLOWED_URI_REGEXP||X,ot=e.NAMESPACE||nt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ct=e.HTML_INTEGRATION_POINTS||ct,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(xe=!1),Be&&(Fe=!0),qe&&(be=w({},U),we=[],!0===qe.html&&(w(be,L),w(we,z)),!0===qe.svg&&(w(be,C),w(we,P),w(we,F)),!0===qe.svgFilters&&(w(be,x),w(we,P),w(we,F)),!0===qe.mathMl&&(w(be,k),w(we,H),w(we,F))),e.ADD_TAGS&&(be===Re&&(be=v(be)),w(be,e.ADD_TAGS,pt)),e.ADD_ATTR&&(we===Oe&&(we=v(we)),w(we,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&w(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&($e===Ke&&($e=v($e)),w($e,e.FORBID_CONTENTS,pt)),je&&(be["#text"]=!0),ze&&w(be,["html","head","body"]),be.table&&(w(be,["tbody"]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,ce=le.createHTML("")}else void 0===le&&(le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,c)),null!==le&&"string"==typeof ce&&(ce=le.createHTML(""));i&&i(e),ft=e}},Tt=w({},[...C,...x,...M]),yt=w({},[...k,...I]),Et=function(e){f(o.removed,{element:e});try{ae(e).removeChild(e)}catch(t){V(e)}},At=function(e,t){try{f(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||Be)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=le?le.createHTML(e):e;if(ot===nt)try{t=(new Y).parseFromString(o,ut)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(ot,"template",null);try{t.documentElement.innerHTML=rt?ce:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ot===nt?pe.call(t,ze?"html":"body")[0]:ze?t.documentElement:i},St=function(e){return ue.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof R&&e instanceof R};function Rt(e,t,n){u(e,(e=>{e.call(o,t,n,ft)}))}const wt=function(e){let t=null;if(Rt(de.beforeSanitizeElements,e,null),Nt(e))return Et(e),!0;const n=pt(e.nodeName);if(Rt(de.uponSanitizeElement,e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return Et(e),!0;if(e.nodeType===ee)return Et(e),!0;if(Ue&&e.nodeType===te&&S(/<[/\w]/g,e.data))return Et(e),!0;if(!be[n]||De[n]){if(!De[n]&&vt(n)){if(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,n))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))return!1}if(je&&!$e[n]){const t=ae(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,re(e))}}}return Et(e),!0}return e instanceof O&&!function(e){let t=ae(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||lt[o]):Boolean(Tt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ct[o]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ct[o])&&!(t.namespaceURI===et&&!lt[o])&&!yt[n]&&(st[n]||!Tt[n]):!("application/xhtml+xml"!==ut||!it[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&e.nodeType===Q&&(t=e.textContent,u([he,ge,Te],(e=>{t=y(t,e," ")})),e.textContent!==t&&(f(o.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(de.afterSanitizeElements,e,null),!1):(Et(e),!0)},Ot=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in r||n in dt))return!1;if(xe&&!Le[t]&&S(ye,t));else if(Ce&&S(Ee,t));else if(!we[t]||Le[t]){if(!(vt(e)&&(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&S(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&S(ve.tagNameCheck,n)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))))return!1}else if(Je[t]);else if(S(Ne,y(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ve[e]){if(Me&&!S(Ae,y(n,_e,"")));else if(n)return!1}else;return!0},vt=function(e){return"annotation-xml"!==e&&T(e,Se)},Dt=function(e){Rt(de.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=pt(a);let m="value"===a?c:A(c);if(n.attrName=s,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,Rt(de.uponSanitizeAttribute,e,n),m=n.attrValue,!Ye||"id"!==s&&"name"!==s||(At(a,e),m="user-content-"+m),Ue&&S(/((--!?|])>)|<\/(style|title)/i,m)){At(a,e);continue}if(n.forceKeepAttr)continue;if(At(a,e),!n.keepAttr)continue;if(!ke&&S(/\/>/i,m)){At(a,e);continue}Ie&&u([he,ge,Te],(e=>{m=y(m,e," ")}));const f=pt(e.nodeName);if(Ot(f,s,m)){if(le&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(f,s)){case"TrustedHTML":m=le.createHTML(m);break;case"TrustedScriptURL":m=le.createScriptURL(m)}try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),Nt(e)?Et(e):p(o.removed)}catch(e){}}}Rt(de.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const o=St(t);for(Rt(de.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Rt(de.uponSanitizeShadowNode,n,null),wt(n),Dt(n),n.content instanceof s&&e(n.content);Rt(de.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw N("toString is not a function");if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Pe||gt(t),o.removed=[],"string"==typeof e&&(Xe=!1),Xe){if(e.nodeName){const t=pt(e.nodeName);if(!be[t]||De[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof R)n=_t("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!Ie&&!ze&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e;if(n=_t(e),!n)return Fe?null:We?ce:""}n&&He&&Et(n.firstChild);const c=St(Xe?e:n);for(;i=c.nextNode();)wt(i),Dt(i),i.content instanceof s&&Lt(i.content);if(Xe)return e;if(Fe){if(Be)for(l=me.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(we.shadowroot||we.shadowrootmode)&&(l=fe.call(a,l,!0)),l}let m=ze?n.outerHTML:n.innerHTML;return ze&&be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(K,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Ie&&u([he,ge,Te],(e=>{m=y(m,e," ")})),le&&We?le.createHTML(m):m},o.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},o.clearConfig=function(){ft=null,Pe=!1},o.isValidAttribute=function(e,t,n){ft||gt({});const o=pt(e),r=pt(t);return Ot(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&f(de[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=m(de[e],t);return-1===n?void 0:d(de[e],n,1)[0]}return p(de[e])},o.removeHooks=function(e){de[e]=[]},o.removeAllHooks=function(){de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();exports.default=re;
3
4
  //# sourceMappingURL=purify.es.mjs.js.map