@aquera/nile-elements 0.1.36-beta-1.2 → 0.1.36-beta-1.3

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 (312) hide show
  1. package/README.md +3 -0
  2. package/dist/_commonjsHelpers-e8f8776f.cjs.js +2 -0
  3. package/dist/_commonjsHelpers-e8f8776f.cjs.js.map +1 -0
  4. package/dist/_commonjsHelpers-f94d783e.esm.js +1 -0
  5. package/dist/axe.min-61450170.cjs.js +12 -0
  6. package/dist/axe.min-61450170.cjs.js.map +1 -0
  7. package/dist/axe.min-640ded4a.esm.js +12 -0
  8. package/dist/fixture-205f11fa.cjs.js +395 -0
  9. package/dist/fixture-205f11fa.cjs.js.map +1 -0
  10. package/dist/fixture-2b5b3aba.esm.js +569 -0
  11. package/dist/{fixture-df8b52d7.esm.js → fixture-76051ef1.esm.js} +1 -1
  12. package/dist/fixture-7bfb866e.cjs.js +395 -0
  13. package/dist/fixture-7bfb866e.cjs.js.map +1 -0
  14. package/dist/{fixture-d5b55278.cjs.js → fixture-948ae33c.cjs.js} +2 -2
  15. package/dist/{fixture-d5b55278.cjs.js.map → fixture-948ae33c.cjs.js.map} +1 -1
  16. package/dist/fixture-e6fdfbfa.esm.js +569 -0
  17. package/dist/lit-html-39a6718c.esm.js +6 -0
  18. package/dist/lit-html-9b3af046.cjs.js +6 -0
  19. package/dist/lit-html-9b3af046.cjs.js.map +1 -0
  20. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  21. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  34. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  35. package/dist/nile-card/nile-card.test.esm.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  38. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  39. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  40. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  41. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  42. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  43. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  44. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  45. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  46. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  47. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  48. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  49. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  50. package/dist/nile-file-preview/index.cjs.js +2 -0
  51. package/dist/nile-file-preview/index.cjs.js.map +1 -0
  52. package/dist/nile-file-preview/index.esm.js +1 -0
  53. package/dist/nile-file-preview/nile-file-preview.cjs.js +2 -0
  54. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -0
  55. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +2 -0
  56. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -0
  57. package/dist/nile-file-preview/nile-file-preview.css.esm.js +521 -0
  58. package/dist/nile-file-preview/nile-file-preview.esm.js +3 -0
  59. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +2 -0
  60. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -0
  61. package/dist/nile-file-preview/nile-file-preview.template.esm.js +117 -0
  62. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +2 -0
  63. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -0
  64. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -0
  65. package/dist/nile-file-preview/types/file-preview.enums.cjs.js +2 -0
  66. package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +1 -0
  67. package/dist/nile-file-preview/types/file-preview.enums.esm.js +1 -0
  68. package/dist/nile-file-preview/types/file-preview.interface.cjs.js +2 -0
  69. package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +1 -0
  70. package/dist/nile-file-preview/types/file-preview.interface.esm.js +1 -0
  71. package/dist/nile-file-preview/types/index.cjs.js +2 -0
  72. package/dist/nile-file-preview/types/index.cjs.js.map +1 -0
  73. package/dist/nile-file-preview/types/index.esm.js +1 -0
  74. package/dist/nile-file-preview/utils/file-preview.util.cjs.js +2 -0
  75. package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +1 -0
  76. package/dist/nile-file-preview/utils/file-preview.util.esm.js +1 -0
  77. package/dist/nile-file-preview/utils/index.cjs.js +2 -0
  78. package/dist/nile-file-preview/utils/index.cjs.js.map +1 -0
  79. package/dist/nile-file-preview/utils/index.esm.js +1 -0
  80. package/dist/nile-file-upload/index.cjs.js +2 -0
  81. package/dist/nile-file-upload/index.cjs.js.map +1 -0
  82. package/dist/nile-file-upload/index.esm.js +1 -0
  83. package/dist/nile-file-upload/nile-file-upload.cjs.js +2 -0
  84. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -0
  85. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +2 -0
  86. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -0
  87. package/dist/nile-file-upload/nile-file-upload.css.esm.js +535 -0
  88. package/dist/nile-file-upload/nile-file-upload.esm.js +3 -0
  89. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +10 -0
  90. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -0
  91. package/dist/nile-file-upload/nile-file-upload.template.esm.js +155 -0
  92. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +2 -0
  93. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -0
  94. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -0
  95. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +2 -0
  96. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -0
  97. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -0
  98. package/dist/nile-file-upload/types/file-upload.type.cjs.js +2 -0
  99. package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +1 -0
  100. package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -0
  101. package/dist/nile-file-upload/types/index.cjs.js +2 -0
  102. package/dist/nile-file-upload/types/index.cjs.js.map +1 -0
  103. package/dist/nile-file-upload/types/index.esm.js +1 -0
  104. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +2 -0
  105. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -0
  106. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -0
  107. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -0
  108. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -0
  109. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -0
  110. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  111. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  112. package/dist/nile-filter-chip/nile-filter-chip.esm.js +12 -12
  113. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  114. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +1 -1
  115. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +16 -16
  116. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  117. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  118. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  119. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  120. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  121. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  122. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  123. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  124. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  125. package/dist/nile-input/nile-input.test.esm.js +1 -1
  126. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  127. package/dist/nile-link/nile-link.test.esm.js +1 -1
  128. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  129. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  130. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  131. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  132. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  133. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  134. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  135. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  136. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  137. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  138. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  139. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  140. package/dist/nile-rich-text-editor/index.cjs.js +2 -0
  141. package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
  142. package/dist/nile-rich-text-editor/index.esm.js +1 -0
  143. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +10 -0
  144. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
  145. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
  146. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
  147. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -0
  148. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +28 -0
  149. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js +2 -0
  150. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js.map +1 -0
  151. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.esm.js +1 -0
  152. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js +2 -0
  153. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js.map +1 -0
  154. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.esm.js +1 -0
  155. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js +2 -0
  156. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js.map +1 -0
  157. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.esm.js +1 -0
  158. package/dist/nile-rich-text-editor/types/index.cjs.js +2 -0
  159. package/dist/nile-rich-text-editor/types/index.cjs.js.map +1 -0
  160. package/dist/nile-rich-text-editor/types/index.esm.js +1 -0
  161. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js +2 -0
  162. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js.map +1 -0
  163. package/dist/nile-rich-text-editor/types/rich-text-editor.type.esm.js +1 -0
  164. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js +2 -0
  165. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js.map +1 -0
  166. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.esm.js +1 -0
  167. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  168. package/dist/nile-select/nile-select.test.esm.js +1 -1
  169. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  170. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  171. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  172. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  173. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  174. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  175. package/dist/nile-tooltip/nile-tooltip.test.cjs.js +1 -1
  176. package/dist/nile-tooltip/nile-tooltip.test.esm.js +1 -1
  177. package/dist/src/nile-file-preview/index.d.ts +1 -0
  178. package/dist/src/nile-file-preview/index.js +2 -0
  179. package/dist/src/nile-file-preview/index.js.map +1 -0
  180. package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +12 -0
  181. package/dist/src/nile-file-preview/nile-file-preview.css.js +533 -0
  182. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
  183. package/dist/src/nile-file-preview/nile-file-preview.d.ts +48 -0
  184. package/dist/src/nile-file-preview/nile-file-preview.js +149 -0
  185. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
  186. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +11 -0
  187. package/dist/src/nile-file-preview/nile-file-preview.template.js +144 -0
  188. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
  189. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
  190. package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
  191. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
  192. package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +23 -0
  193. package/dist/src/nile-file-preview/types/file-preview.enums.js +28 -0
  194. package/dist/src/nile-file-preview/types/file-preview.enums.js.map +1 -0
  195. package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +4 -0
  196. package/dist/src/nile-file-preview/types/file-preview.interface.js +2 -0
  197. package/dist/src/nile-file-preview/types/file-preview.interface.js.map +1 -0
  198. package/dist/src/nile-file-preview/types/index.d.ts +2 -0
  199. package/dist/src/nile-file-preview/types/index.js +3 -0
  200. package/dist/src/nile-file-preview/types/index.js.map +1 -0
  201. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +26 -0
  202. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +31 -0
  203. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -0
  204. package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +4 -0
  205. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +2 -0
  206. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +1 -0
  207. package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +3 -0
  208. package/dist/src/nile-file-preview/utils/file-preview.util.js +29 -0
  209. package/dist/src/nile-file-preview/utils/file-preview.util.js.map +1 -0
  210. package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
  211. package/dist/src/nile-file-preview/utils/index.js +2 -0
  212. package/dist/src/nile-file-preview/utils/index.js.map +1 -0
  213. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
  214. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +45 -0
  215. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -0
  216. package/dist/src/nile-file-upload/index.d.ts +1 -0
  217. package/dist/src/nile-file-upload/index.js +2 -0
  218. package/dist/src/nile-file-upload/index.js.map +1 -0
  219. package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
  220. package/dist/src/nile-file-upload/nile-file-upload.css.js +547 -0
  221. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
  222. package/dist/src/nile-file-upload/nile-file-upload.d.ts +45 -0
  223. package/dist/src/nile-file-upload/nile-file-upload.js +148 -0
  224. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
  225. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
  226. package/dist/src/nile-file-upload/nile-file-upload.template.js +163 -0
  227. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
  228. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
  229. package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
  230. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
  231. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +28 -0
  232. package/dist/src/nile-file-upload/types/file-upload.enums.js +35 -0
  233. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
  234. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
  235. package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
  236. package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
  237. package/dist/src/nile-file-upload/types/index.d.ts +2 -0
  238. package/dist/src/nile-file-upload/types/index.js +3 -0
  239. package/dist/src/nile-file-upload/types/index.js.map +1 -0
  240. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +19 -0
  241. package/dist/src/nile-file-upload/utils/drag-drop.util.js +77 -0
  242. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
  243. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +9 -0
  244. package/dist/src/nile-file-upload/utils/file-validation.util.js +58 -0
  245. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
  246. package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +1 -1
  247. package/dist/src/nile-filter-chip/nile-filter-chip.js +5 -5
  248. package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
  249. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +10 -10
  250. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  251. package/dist/src/nile-pagination/index.d.ts +1 -0
  252. package/dist/src/nile-pagination/index.js +2 -0
  253. package/dist/src/nile-pagination/index.js.map +1 -0
  254. package/dist/src/nile-pagination/nile-pagination.css.d.ts +12 -0
  255. package/dist/src/nile-pagination/nile-pagination.css.js +156 -0
  256. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -0
  257. package/dist/src/nile-pagination/nile-pagination.d.ts +36 -0
  258. package/dist/src/nile-pagination/nile-pagination.js +170 -0
  259. package/dist/src/nile-pagination/nile-pagination.js.map +1 -0
  260. package/dist/src/nile-pagination/nile-pagination.template.d.ts +3 -0
  261. package/dist/src/nile-pagination/nile-pagination.template.js +5 -0
  262. package/dist/src/nile-pagination/nile-pagination.template.js.map +1 -0
  263. package/dist/src/nile-pagination/nile-pagination.test.d.ts +7 -0
  264. package/dist/src/nile-pagination/nile-pagination.test.js +30 -0
  265. package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
  266. package/dist/src/nile-pagination/sub-components/nile-pagination.d.ts +0 -0
  267. package/dist/src/nile-pagination/sub-components/nile-pagination.js +2 -0
  268. package/dist/src/nile-pagination/sub-components/nile-pagination.js.map +1 -0
  269. package/dist/src/nile-pagination/types/index.d.ts +0 -0
  270. package/dist/src/nile-pagination/types/index.js +2 -0
  271. package/dist/src/nile-pagination/types/index.js.map +1 -0
  272. package/dist/src/nile-pagination/types/pagination.type.d.ts +3 -0
  273. package/dist/src/nile-pagination/types/pagination.type.js +5 -0
  274. package/dist/src/nile-pagination/types/pagination.type.js.map +1 -0
  275. package/dist/src/nile-pagination/utils/nile-pagination.utils.d.ts +0 -0
  276. package/dist/src/nile-pagination/utils/nile-pagination.utils.js +2 -0
  277. package/dist/src/nile-pagination/utils/nile-pagination.utils.js.map +1 -0
  278. package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
  279. package/dist/src/nile-rich-text-editor/index.js +2 -0
  280. package/dist/src/nile-rich-text-editor/index.js.map +1 -0
  281. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +12 -0
  282. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +17 -0
  283. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
  284. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +10 -0
  285. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +62 -0
  286. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
  287. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.d.ts +3 -0
  288. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js +5 -0
  289. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js.map +1 -0
  290. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.d.ts +7 -0
  291. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js +30 -0
  292. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js.map +1 -0
  293. package/dist/src/nile-rich-text-editor/quill/quill.d.ts +8 -0
  294. package/dist/src/nile-rich-text-editor/quill/quill.js +19 -0
  295. package/dist/src/nile-rich-text-editor/quill/quill.js.map +1 -0
  296. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.d.ts +0 -0
  297. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js +2 -0
  298. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js.map +1 -0
  299. package/dist/src/nile-rich-text-editor/types/index.d.ts +0 -0
  300. package/dist/src/nile-rich-text-editor/types/index.js +2 -0
  301. package/dist/src/nile-rich-text-editor/types/index.js.map +1 -0
  302. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.d.ts +3 -0
  303. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js +5 -0
  304. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js.map +1 -0
  305. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.d.ts +0 -0
  306. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js +2 -0
  307. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js.map +1 -0
  308. package/dist/tsconfig.tsbuildinfo +1 -1
  309. package/package.json +1 -1
  310. package/src/nile-filter-chip/nile-filter-chip.test.ts +10 -10
  311. package/src/nile-filter-chip/nile-filter-chip.ts +4 -4
  312. package/vscode-html-custom-data.json +5 -5
@@ -0,0 +1,10 @@
1
+ System.register(["tslib","lit","lit/decorators.js","../_commonjsHelpers-e8f8776f.cjs.js"],function(_export,_context){"use strict";var t,n,r,e,i,s,o,u,_excluded,_excluded2,_vh,_Uh,_Class,_templateObject,_templateObject2,c,l,a,f,h,v,d,p,b,y,k,A,q,E,_,L,N,R,I,B,D,P,Z,W,z,G,Q,Y,J,X,tt,et,it,st,ot,ut,at,ht,yt,mt,gt,At,Mt,_t,Tt,Lt,$t,Nt,Rt,It,Ft,Wt,Kt,Gt,Jt,Xt,tn,nn,un,an,yn,xn,jn,kn,An,On,Mn,En,_n,Tn,$n,Sn,Nn,Rn,In,Bn,Cn,Hn,Fn,Zn,Wn,zn,Qn,Yn,Jn,Xn,tr,rr,er,ir,ur,lr,vr,dr,pr,kr,Er,_r,Tr,Lr,$r,Sr,Nr,Br,Dr,Vr,Hr,Pr,Wr,zr,Kr,Gr,Qr,Yr,Jr,Xr,te,ne,re,ee,oe,ae,fe,he,de,pe,be,ye,me,ge,we,xe,je,ke,Ae,qe,Oe,Me,Ee,_e,Te,Le,$e,Se,Ne,Re,Ie,Be,De,He,Fe,Ue,Ze,ze,Ke,Je,Xe,ti,ni,si,oi,ui,ci,hi,vi,di,pi,bi,yi,mi,gi,wi,xi,ji,ki,Ai,qi,Oi,Mi,Ei,Ti,Li,$i,Ii,Bi,Ci,Di,Vi,Hi,Fi,Ui,Ji,Xi,ts,ns,rs,es,is,js,qs,Es,_s,$s,Ss,Ns,Is,Bs,Cs,Zs,Ws,Ks,Gs,Js,to,no,ro,uo,lo,ho,vo,po,bo,yo,go,wo,Oo,Eo,To,Lo,So,Bo,Co,Do,Ho,Fo,Po,Zo,Ko,Go,Qo,Jo,Xo,eu,iu,su,cu,lu,au,hu,vu,du,pu,bu,yu,wu,xu,ju,ku,Au,qu,Ou,Eu,Lu,$u,Su,Nu,Ru,Iu,Bu,Cu,Du,Vu,Hu,Uu,Pu,Ku,Gu,Qu,Ju,tc,sc,hc,vc,dc,pc,bc,yc,mc,wc,xc,jc,kc,Ac,qc,Oc,Mc,Ec,_c,Tc,Lc,$c,Nc,Ic,Bc,Cc,Dc,Vc,Hc,Fc,Uc,Zc,Kc,Gc,Yc,Jc,Xc,nl,rl,el,il,sl,ul,cl,ll,hl,dl,jl,Al,ql,Ol,Tl,Ll,$l,Sl,Nl,Il,Cl,Dl,Vl,Hl,Fl,Ul,Pl,Zl,Wl,zl,Gl,Ql,Xl,ra,ea,ia,sa,oa,ua,la,aa,fa,ha,va,ya,ma,ga,xa,ja,ka,Aa,Oa,Ma,Ea,_a,Ta,La,$a,Sa,Na,Ra,Ia,Ba,Ca,Da,Va,Ha,Fa,Ua,Pa,Za,Wa,za,Ka,Ga,Qa,Ya,Ja,Xa,tf,nf,ef,of,uf,cf,lf,af,ff,hf,df,pf,bf,yf,mf,gf,wf,xf,jf,kf,Af,qf,Of,Mf,Ef,_f,Tf,If,Bf,Cf,Df,Vf,Kf,Gf,Qf,Yf,Jf,Xf,th,nh,rh,eh,ih,sh,oh,uh,ch,lh,ah,fh,vh,dh,ph,yh,mh,gh,wh,xh,jh,qh,Oh,Mh,Eh,_h,Lh,$h,Dh,Vh,Hh,Fh,Uh,Ph,Zh,Wh,zh,Kh,Gh,Qh,ev,uv,cv,lv,av,fv,hv,vv,dv,pv,bv,yv,mv,gv,wv,xv,jv,kv,Av,qv,Lv,$v,Sv,Nv,Rv,Iv,Bv,Cv,Dv,Vv,Hv,Fv,Uv,zv,Jv,nd,rd,ed,id,sd,ud,ld,ad,fd,hd,vd,dd,pd,bd,yd,md,gd,xd,jd,kd,Ad,qd,Od,Md;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function m(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?function(t){var n=v.call(t,p),r=t[p];try{t[p]=void 0;var e=!0;}catch(t){}var i=d.call(t);return e&&(n?t[p]=r:delete t[p]),i;}(t):function(t){return b.call(t);}(t);}function g(t){return null!=t&&"object"==_typeof(t);}function w(t){return"symbol"==_typeof(t)||g(t)&&"[object Symbol]"==m(t);}function x(t){return"number"==typeof t?t:w(t)?NaN:+t;}function j(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r<e;)i[r]=n(t[r],r,t);return i;}function O(t){if("string"==typeof t)return t;if(k(t))return j(t,O)+"";if(w(t))return q?q.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n;}function M(t,n){return function(r,e){var i;if(void 0===r&&void 0===e)return n;if(void 0!==r&&(i=r),void 0!==e){if(void 0===i)return e;"string"==typeof r||"string"==typeof e?(r=O(r),e=O(e)):(r=x(r),e=x(e)),i=t(r,e);}return i;};}function T(t){for(var n=t.length;n--&&_.test(t.charAt(n)););return n;}function $(t){return t?t.slice(0,T(t)+1).replace(L,""):t;}function S(t){var n=_typeof(t);return null!=t&&("object"==n||"function"==n);}function C(t){if("number"==typeof t)return t;if(w(t))return NaN;if(S(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=S(n)?n+"":n;}if("string"!=typeof t)return 0===t?t:+t;t=$(t);var r=R.test(t);return r||I.test(t)?B(t.slice(2),r?2:8):N.test(t)?NaN:+t;}function V(t){return t?(t=C(t))===D||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0;}function H(t){var n=V(t),r=n%1;return n==n?r?n-r:n:0;}function F(t){return t;}function U(t){if(!S(t))return!1;var n=m(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n;}function K(t){if(null!=t){try{return z.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";}function nt(t){return!(!S(t)||function(t){return!!W&&W in t;}(t))&&(U(t)?tt:G).test(K(t));}function rt(t,n){var r=function(t,n){return null==t?void 0:t[n];}(t,n);return nt(r)?r:void 0;}function ct(t){return function(){var n=arguments;switch(n.length){case 0:return new t();case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6]);}var r=ut(t.prototype),e=t.apply(r,n);return S(e)?e:r;};}function lt(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2]);}return t.apply(n,r);}function ft(t,n,r,e){for(var i=-1,s=t.length,o=r.length,u=-1,c=n.length,l=at(s-o,0),a=Array(c+l),f=!e;++u<c;)a[u]=n[u];for(;++i<o;)(f||i<s)&&(a[r[i]]=t[i]);for(;l--;)a[u++]=t[i++];return a;}function vt(t,n,r,e){for(var i=-1,s=t.length,o=-1,u=r.length,c=-1,l=n.length,a=ht(s-u,0),f=Array(a+l),h=!e;++i<a;)f[i]=t[i];for(var v=i;++c<l;)f[v+c]=n[c];for(;++o<u;)(h||i<s)&&(f[v+r[o]]=t[i++]);return f;}function dt(){}function pt(t){this.i=t,this.o=[],this.u=1,this.l=!1,this.h=[],this.v=4294967295,this.p=[];}function bt(){}function wt(t){for(var n=t.name+"",r=mt[n],e=gt.call(mt,n)?r.length:0;e--;){var i=r[e],s=i.func;if(null==s||s==t)return i.name;}return n;}function xt(t,n){this.i=t,this.o=[],this.m=!!n,this.j=0,this.k=void 0;}function jt(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n;}function kt(t){if(t instanceof pt)return t.clone();var n=new xt(t.i,t.m);return n.o=jt(t.o),n.j=t.j,n.k=t.k,n;}function qt(t){if(g(t)&&!k(t)&&!(t instanceof pt)){if(t instanceof xt)return t;if(At.call(t,"__wrapped__"))return kt(t);}return new xt(t);}function Ot(t){var n=wt(t),r=qt[n];if("function"!=typeof r||!(n in pt.prototype))return!1;if(t===r)return!0;var e=yt(r);return!!e&&t===e[0];}function Et(t){var n=0,r=0;return function(){var e=Mt(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0];}else n=0;return t.apply(void 0,arguments);};}function St(t){return function(){return t;};}function Bt(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t;}function Ct(t,n,r,e){for(var i=t.length,s=r+(e?1:-1);e?s--:++s<i;)if(n(t[s],s,t))return s;return-1;}function Dt(t){return t!=t;}function Vt(t,n,r){return n==n?function(t,n,r){for(var e=r-1,i=t.length;++e<i;)if(t[e]===n)return e;return-1;}(t,n,r):Ct(t,Dt,r);}function Ht(t,n){return!!(null==t?0:t.length)&&Vt(t,n,0)>-1;}function Ut(t,n,r){var e=n+"";return It(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace($t,"{\n/* [wrapped with "+n+"] */\n");}(e,function(t,n){return Bt(Ft,function(r){var e="_."+r[0];n&r[1]&&!Ht(t,e)&&t.push(e);}),t.sort();}(function(t){var n=t.match(Tt);return n?n[1].split(Lt):[];}(e),r)));}function Pt(t,n,r,e,i,s,o,u,c,l){var a=8&n;n|=a?32:64,4&(n&=~(a?64:32))||(n&=-4);var f=[t,n,i,a?s:void 0,a?o:void 0,a?void 0:s,a?void 0:o,u,c,l],h=r.apply(void 0,f);return Ot(t)&&_t(h,f),h.placeholder=e,Ut(h,t,n);}function Zt(t){return t.placeholder;}function zt(t,n){var r=_typeof(t);return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&Wt.test(t))&&t>-1&&t%1==0&&t<n;}function Qt(t,n){for(var r=-1,e=t.length,i=0,s=[];++r<e;){var o=t[r];o!==n&&o!==Gt||(t[r]=Gt,s[i++]=r);}return s;}function Yt(t,n,r,e,i,s,o,u,c,l){var f=128&n,h=1&n,v=2&n,d=24&n,p=512&n,b=v?void 0:ct(t);return function y(){for(var m=arguments.length,g=Array(m),w=m;w--;)g[w]=arguments[w];if(d)var x=Zt(y),j=function(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e;}(g,x);if(e&&(g=ft(g,e,i,d)),s&&(g=vt(g,s,o,d)),m-=j,d&&m<l){var k=Qt(g,x);return Pt(t,n,Yt,y.placeholder,r,g,k,u,c,l-m);}var A=h?r:this,q=v?A[t]:t;return m=g.length,u?g=function(t,n){for(var r=t.length,e=Kt(n.length,r),i=jt(t);e--;){var s=n[e];t[e]=zt(s,r)?i[s]:void 0;}return t;}(g,u):p&&m>1&&g.reverse(),f&&c<m&&(g.length=c),this&&this!==a&&this instanceof y&&(q=b||ct(q)),q.apply(A,g);};}function rn(t,n,r,e,i,s,o,u){var c=2&n;if(!c&&"function"!=typeof t)throw new TypeError("Expected a function");var l=e?e.length:0;if(l||(n&=-97,e=i=void 0),o=void 0===o?o:nn(H(o),0),u=void 0===u?u:H(u),l-=i?i.length:0,64&n){var f=e,h=i;e=i=void 0;}var v=c?void 0:yt(t),d=[t,n,r,e,i,f,h,s,o,u];if(v&&function(t,n){var r=t[1],e=n[1],i=r|e,s=i<131,o=e==Xt&&8==r||e==Xt&&256==r&&t[7].length<=n[8]||384==e&&n[7].length<=n[8]&&8==r;if(!s&&!o)return t;1&e&&(t[2]=n[2],i|=1&r?0:4);var u=n[3];if(u){var c=t[3];t[3]=c?ft(c,u,n[4]):u,t[4]=c?Qt(t[3],Jt):n[4];}(u=n[5])&&(c=t[5],t[5]=c?vt(c,u,n[6]):u,t[6]=c?Qt(t[5],Jt):n[6]),(u=n[7])&&(t[7]=u),e&Xt&&(t[8]=null==t[8]?n[8]:tn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i;}(d,v),t=d[0],n=d[1],r=d[2],e=d[3],i=d[4],!(u=d[9]=void 0===d[9]?c?0:t.length:nn(d[9]-l,0))&&24&n&&(n&=-25),n&&1!=n)p=8==n||16==n?function(t,n,r){var e=ct(t);return function i(){for(var s=arguments.length,o=Array(s),u=s,c=Zt(i);u--;)o[u]=arguments[u];var l=s<3&&o[0]!==c&&o[s-1]!==c?[]:Qt(o,c);return(s-=l.length)<r?Pt(t,n,Yt,i.placeholder,void 0,o,l,void 0,void 0,r-s):lt(this&&this!==a&&this instanceof i?e:t,this,o);};}(t,n,u):32!=n&&33!=n||i.length?Yt.apply(void 0,d):function(t,n,r,e){var i=1&n,s=ct(t);return function n(){for(var o=-1,u=arguments.length,c=-1,l=e.length,f=Array(l+u),h=this&&this!==a&&this instanceof n?s:t;++c<l;)f[c]=e[c];for(;u--;)f[c++]=arguments[++o];return lt(h,i?r:this,f);};}(t,n,r,e);else var p=function(t,n,r){var e=1&n,i=ct(t);return function n(){return(this&&this!==a&&this instanceof n?i:t).apply(e?r:this,arguments);};}(t,n,r);return Ut((v?st:_t)(p,d),t,n);}function en(t,n,r){return n=r?void 0:n,rn(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n);}function sn(t,n,r){"__proto__"==n&&Nt?Nt(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r;}function on(t,n){return t===n||t!=t&&n!=n;}function cn(t,n,r){var e=t[n];un.call(t,n)&&on(e,r)&&(void 0!==r||n in t)||sn(t,n,r);}function ln(t,n,r,e){var i=!r;r||(r={});for(var s=-1,o=n.length;++s<o;){var u=n[s],c=e?e(r[u],t[u],u,r,t):void 0;void 0===c&&(c=t[u]),i?sn(r,u,c):cn(r,u,c);}return r;}function fn(t,n,r){return n=an(void 0===n?t.length-1:n,0),function(){for(var e=arguments,i=-1,s=an(e.length-n,0),o=Array(s);++i<s;)o[i]=e[n+i];i=-1;for(var u=Array(n+1);++i<n;)u[i]=e[i];return u[n]=r(o),lt(t,this,u);};}function hn(t,n){return It(fn(t,n,F),t+"");}function vn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991;}function dn(t){return null!=t&&vn(t.length)&&!U(t);}function pn(t,n,r){if(!S(r))return!1;var e=_typeof(n);return!!("number"==e?dn(r)&&zt(n,r.length):"string"==e&&n in r)&&on(r[n],t);}function bn(t){return hn(function(n,r){var e=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(i--,s):void 0,o&&pn(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),n=Object(n);++e<i;){var u=r[e];u&&t(n,u,e,s);}return n;});}function mn(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||yn);}function gn(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e;}function wn(t){return g(t)&&"[object Arguments]"==m(t);}function qn(){return!1;}function Ln(t){return function(n){return t(n);};}function Dn(t,n){var r=k(t),e=!r&&An(t),i=!r&&!e&&_n(t),s=!r&&!e&&!i&&Bn(t),o=r||e||i||s,u=o?gn(t.length,String):[],c=u.length;for(var l in t)!n&&!Cn.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||zt(l,c))||u.push(l);return u;}function Vn(t,n){return function(r){return t(n(r));};}function Un(t){if(!mn(t))return Hn(t);var n=[];for(var r in Object(t))Fn.call(t,r)&&"constructor"!=r&&n.push(r);return n;}function Pn(t){return dn(t)?Dn(t):Un(t);}function Kn(t){if(!S(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n;}(t);var n=mn(t),r=[];for(var e in t)("constructor"!=e||!n&&zn.call(t,e))&&r.push(e);return r;}function Gn(t){return dn(t)?Dn(t,!0):Kn(t);}function nr(t,n){if(k(t))return!1;var r=_typeof(t);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!w(t))||tr.test(t)||!Xn.test(t)||null!=n&&t in Object(n);}function sr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function or(t,n){for(var r=t.length;r--;)if(on(t[r][0],n))return r;return-1;}function cr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function ar(t,n){var r,e,i=t.A;return("string"==(e=_typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map;}function fr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function hr(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var _r2=function r(){var e=arguments,i=n?n.apply(this,e):e[0],s=_r2.cache;if(s.has(i))return s.get(i);var o=t.apply(this,e);return _r2.cache=s.set(i,o)||s,o;};return _r2.cache=new(hr.Cache||fr)(),_r2;}function br(t){return null==t?"":O(t);}function yr(t,n){return k(t)?t:nr(t,n)?[t]:pr(br(t));}function mr(t){if("string"==typeof t||w(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n;}function gr(t,n){for(var r=0,e=(n=yr(n,t)).length;null!=t&&r<e;)t=t[mr(n[r++])];return r&&r==e?t:void 0;}function wr(t,n,r){var e=null==t?void 0:gr(t,n);return void 0===e?r:e;}function xr(t,n){for(var r=-1,e=n.length,i=Array(e),s=null==t;++r<e;)i[r]=s?void 0:wr(t,n[r]);return i;}function jr(t,n){for(var r=-1,e=n.length,i=t.length;++r<e;)t[i+r]=n[r];return t;}function Ar(t){return k(t)||An(t)||!!(kr&&t&&t[kr]);}function qr(t,n,r,e,i){var s=-1,o=t.length;for(r||(r=Ar),i||(i=[]);++s<o;){var u=t[s];n>0&&r(u)?n>1?qr(u,n-1,r,e,i):jr(i,u):e||(i[i.length]=u);}return i;}function Or(t){return(null==t?0:t.length)?qr(t,1):[];}function Mr(t){return It(fn(t,void 0,Or),t+"");}function Rr(t){if(!g(t)||"[object Object]"!=m(t))return!1;var n=_r(t);if(null===n)return!0;var r=Sr.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&$r.call(r)==Nr;}function Ir(t){if(!g(t))return!1;var n=m(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Rr(t);}function Cr(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r;};}function Fr(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(i);++e<i;)s[e]=t[e+n];return s;}function Ur(t,n,r){var e=t.length;return r=void 0===r?e:r,!n&&r>=e?t:Fr(t,n,r);}function Zr(t){return Pr.test(t);}function ie(t){return Zr(t)?function(t){return t.match(ee)||[];}(t):function(t){return t.split("");}(t);}function se(t){return function(n){var r=Zr(n=br(n))?ie(n):void 0,e=r?r[0]:n.charAt(0),i=r?Ur(r,1).join(""):n.slice(1);return e[t]()+i;};}function ue(t){return oe(br(t).toLowerCase());}function ce(t,n,r,e){var i=-1,s=null==t?0:t.length;for(e&&s&&(r=t[++i]);++i<s;)r=n(r,t[i],i,t);return r;}function le(t){return function(n){return null==t?void 0:t[n];};}function ve(t){return(t=br(t))&&t.replace(fe,ae).replace(he,"");}function Ce(t,n,r){return t=br(t),void 0===(n=r?void 0:n)?function(t){return pe.test(t);}(t)?function(t){return t.match(Be)||[];}(t):function(t){return t.match(de)||[];}(t):t.match(n)||[];}function Ve(t){return function(n){return ce(Ce(ve(n).replace(De,"")),t,"");};}function Pe(t){var n=Math[t];return function(t,r){if(t=C(t),(r=null==r?0:Ue(H(r),292))&&Fe(t)){var e=(br(t)+"e").split("e");return+((e=(br(n(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r));}return n(t);};}function We(t){var n=qt(t);return n.m=!0,n;}function Ge(t,n,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==n&&(t=t>=n?t:n)),t;}function Qe(t){var n=this.A=new cr(t);this.size=n.size;}function Ye(t,n){return t&&ln(n,Pn(n),t);}function ri(t,n){if(n)return t.slice();var r=t.length,e=ni?ni(r):new t.constructor(r);return t.copy(e),e;}function ei(t,n){for(var r=-1,e=null==t?0:t.length,i=0,s=[];++r<e;){var o=t[r];n(o,r,t)&&(s[i++]=o);}return s;}function ii(){return[];}function li(t,n,r){var e=n(t);return k(t)?e:jr(e,r(t));}function ai(t){return li(t,Pn,ui);}function fi(t){return li(t,Gn,ci);}function _i(t){var n=new t.constructor(t.byteLength);return new Ei(n).set(new Ei(t)),n;}function Si(t,n){var r=n?_i(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length);}function Ni(t,n,r){var e,i=t.constructor;switch(n){case"[object ArrayBuffer]":return _i(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,n){var r=n?_i(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength);}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Si(t,r);case"[object Map]":case"[object Set]":return new i();case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var n=new t.constructor(t.source,Ti.exec(t));return n.lastIndex=t.lastIndex,n;}(t);case"[object Symbol]":return e=t,$i?Object($i.call(e)):{};}}function Ri(t){return"function"!=typeof t.constructor||mn(t)?{}:ut(_r(t));}function Pi(t,n,r,e,i,s){var o,u=1&n,c=2&n,l=4&n;if(r&&(o=i?r(t,e,i,s):r(t)),void 0!==o)return o;if(!S(t))return t;var a=k(t);if(a){if(o=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&Mi.call(t,"index")&&(r.index=t.index,r.input=t.input),r;}(t),!u)return jt(t,o);}else{var f=Oi(t),h=f==Hi||"[object GeneratorFunction]"==f;if(_n(t))return ri(t,u);if(f==Fi||f==Vi||h&&!i){if(o=c||h?{}:Ri(t),!u)return c?function(t,n){return ln(t,ci(t),n);}(t,function(t,n){return t&&ln(n,Gn(n),t);}(o,t)):function(t,n){return ln(t,ui(t),n);}(t,Ye(o,t));}else{if(!Ui[f])return i?t:{};o=Ni(t,f,u);}}s||(s=new Qe());var v=s.get(t);if(v)return v;s.set(t,o),Di(t)?t.forEach(function(e){o.add(Pi(e,n,r,e,t,s));}):Bi(t)&&t.forEach(function(e,i){o.set(i,Pi(e,n,r,i,t,s));});var d=a?void 0:(l?c?fi:ai:c?Gn:Pn)(t);return Bt(d||t,function(e,i){d&&(e=t[i=e]),cn(o,i,Pi(e,n,r,i,t,s));}),o;}function Zi(t){return Pi(t,5);}function Wi(t){var n=-1,r=null==t?0:t.length;for(this.A=new fr();++n<r;)this.add(t[n]);}function zi(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1;}function Ki(t,n){return t.has(n);}function Gi(t,n,r,e,i,s){var o=1&r,u=t.length,c=n.length;if(u!=c&&!(o&&c>u))return!1;var l=s.get(t),a=s.get(n);if(l&&a)return l==n&&a==t;var f=-1,h=!0,v=2&r?new Wi():void 0;for(s.set(t,n),s.set(n,t);++f<u;){var d=t[f],p=n[f];if(e)var b=o?e(p,d,f,n,t,s):e(d,p,f,t,n,s);if(void 0!==b){if(b)continue;h=!1;break;}if(v){if(!zi(n,function(t,n){if(!Ki(v,n)&&(d===t||i(d,t,r,e,s)))return v.push(n);})){h=!1;break;}}else if(d!==p&&!i(d,p,r,e,s)){h=!1;break;}}return s["delete"](t),s["delete"](n),h;}function Qi(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t];}),r;}function Yi(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t;}),r;}function ss(t,n,r,e,i,s){var o=k(t),u=k(n),c=o?rs:Oi(t),l=u?rs:Oi(n),a=(c=c==ns?es:c)==es,f=(l=l==ns?es:l)==es,h=c==l;if(h&&_n(t)){if(!_n(n))return!1;o=!0,a=!1;}if(h&&!a)return s||(s=new Qe()),o||Bn(t)?Gi(t,n,r,e,i,s):function(t,n,r,e,i,s,o){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!s(new Ei(t),new Ei(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return on(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var u=Qi;case"[object Set]":var c=1&e;if(u||(u=Yi),t.size!=n.size&&!c)return!1;var l=o.get(t);if(l)return l==n;e|=2,o.set(t,n);var a=Gi(u(t),u(n),e,i,s,o);return o["delete"](t),a;case"[object Symbol]":if(Xi)return Xi.call(t)==Xi.call(n);}return!1;}(t,n,c,r,e,i,s);if(!(1&r)){var v=a&&is.call(t,"__wrapped__"),d=f&&is.call(n,"__wrapped__");if(v||d){var p=v?t.value():t,b=d?n.value():n;return s||(s=new Qe()),i(p,b,r,e,s);}}return!!h&&(s||(s=new Qe()),function(t,n,r,e,i,s){var o=1&r,u=ai(t),c=u.length;if(c!=ai(n).length&&!o)return!1;for(var l=c;l--;){var a=u[l];if(!(o?a in n:ts.call(n,a)))return!1;}var f=s.get(t),h=s.get(n);if(f&&h)return f==n&&h==t;var v=!0;s.set(t,n),s.set(n,t);for(var d=o;++l<c;){var p=t[a=u[l]],b=n[a];if(e)var y=o?e(b,p,a,n,t,s):e(p,b,a,t,n,s);if(!(void 0===y?p===b||i(p,b,r,e,s):y)){v=!1;break;}d||(d="constructor"==a);}if(v&&!d){var m=t.constructor,g=n.constructor;m==g||!("constructor"in t)||!("constructor"in n)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(v=!1);}return s["delete"](t),s["delete"](n),v;}(t,n,r,e,i,s));}function os(t,n,r,e,i){return t===n||(null==t||null==n||!g(t)&&!g(n)?t!=t&&n!=n:ss(t,n,r,e,os,i));}function us(t,n,r,e){var i=r.length,s=i,o=!e;if(null==t)return!s;for(t=Object(t);i--;){var u=r[i];if(o&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1;}for(;++i<s;){var c=(u=r[i])[0],l=t[c],a=u[1];if(o&&u[2]){if(void 0===l&&!(c in t))return!1;}else{var f=new Qe();if(e)var h=e(l,a,c,t,n,f);if(!(void 0===h?os(a,l,3,e,f):h))return!1;}}return!0;}function cs(t){return t==t&&!S(t);}function ls(t){for(var n=Pn(t),r=n.length;r--;){var e=n[r],i=t[e];n[r]=[e,i,cs(i)];}return n;}function as(t,n){return function(r){return null!=r&&r[t]===n&&(void 0!==n||t in Object(r));};}function fs(t){var n=ls(t);return 1==n.length&&n[0][2]?as(n[0][0],n[0][1]):function(r){return r===t||us(r,t,n);};}function hs(t,n){return null!=t&&n in Object(t);}function vs(t,n,r){for(var e=-1,i=(n=yr(n,t)).length,s=!1;++e<i;){var o=mr(n[e]);if(!(s=null!=t&&r(t,o)))break;t=t[o];}return s||++e!=i?s:!!(i=null==t?0:t.length)&&vn(i)&&zt(o,i)&&(k(t)||An(t));}function ds(t,n){return null!=t&&vs(t,n,hs);}function ps(t,n){return nr(t)&&cs(n)?as(mr(t),n):function(r){var e=wr(r,t);return void 0===e&&e===n?ds(r,t):os(n,e,3);};}function bs(t){return function(n){return null==n?void 0:n[t];};}function ys(t){return nr(t)?bs(mr(t)):function(t){return function(n){return gr(n,t);};}(t);}function ms(t){return"function"==typeof t?t:null==t?F:"object"==_typeof(t)?k(t)?ps(t[0],t[1]):fs(t):ys(t);}function gs(t,n,r){var e=r.length;if(null==t)return!e;for(t=Object(t);e--;){var i=r[e],s=n[i],o=t[i];if(void 0===o&&!(i in t)||!s(o))return!1;}return!0;}function ws(t,n,r,e){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];n(e,o,r(o),t);}return e;}function xs(t){return function(n,r,e){for(var i=-1,s=Object(n),o=e(n),u=o.length;u--;){var c=o[t?u:++i];if(!1===r(s[c],c,s))break;}return n;};}function ks(t,n){return t&&js(t,n,Pn);}function As(t,n){return function(r,e){if(null==r)return r;if(!dn(r))return t(r,e);for(var i=r.length,s=n?i:-1,o=Object(r);(n?s--:++s<i)&&!1!==e(o[s],s,o););return r;};}function Os(t,n,r,e){return qs(t,function(t,i,s){n(e,t,r(t),s);}),e;}function Ms(t,n){return function(r,e){var i=k(r)?ws:Os,s=n?n():{};return i(r,t,ms(e),s);};}function Ts(t,n,r){var e=rn(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return e.placeholder=Ts.placeholder,e;}function Ls(t,n,r){var e=rn(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return e.placeholder=Ls.placeholder,e;}function Rs(t,n,r){var e,i,s,o,u,c,l=0,a=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(n){var r=e,s=i;return e=i=void 0,l=n,o=t.apply(s,r);}function d(t){var r=t-c;return void 0===c||r>=n||r<0||f&&t-l>=s;}function p(){var t=$s();if(d(t))return b(t);u=setTimeout(p,function(t){var r=n-(t-c);return f?Ns(r,s-(t-l)):r;}(t));}function b(t){return u=void 0,h&&e?v(t):(e=i=void 0,o);}function y(){var t=$s(),r=d(t);if(e=arguments,i=this,c=t,r){if(void 0===u)return function(t){return l=t,u=setTimeout(p,n),a?v(t):o;}(c);if(f)return clearTimeout(u),u=setTimeout(p,n),v(c);}return void 0===u&&(u=setTimeout(p,n)),o;}return n=C(n)||0,S(r)&&(a=!!r.leading,s=(f="maxWait"in r)?Ss(C(r.maxWait)||0,n):s,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,e=c=i=u=void 0;},y.flush=function(){return void 0===u?o:b($s());},y;}function Ds(t,n,r){(void 0!==r&&!on(t[n],r)||void 0===r&&!(n in t))&&sn(t,n,r);}function Vs(t){return g(t)&&dn(t);}function Hs(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n];}function Fs(t){return ln(t,Gn(t));}function Us(t,n,r,e,i){t!==n&&js(n,function(s,o){if(i||(i=new Qe()),S(s))!function(t,n,r,e,i,s,o){var u=Hs(t,r),c=Hs(n,r),l=o.get(c);if(l)Ds(t,r,l);else{var a=s?s(u,c,r+"",t,n,o):void 0,f=void 0===a;if(f){var h=k(c),v=!h&&_n(c),d=!h&&!v&&Bn(c);a=c,h||v||d?k(u)?a=u:Vs(u)?a=jt(u):v?(f=!1,a=ri(c,!0)):d?(f=!1,a=Si(c,!0)):a=[]:Rr(c)||An(c)?(a=u,An(u)?a=Fs(u):S(u)&&!U(u)||(a=Ri(c))):f=!1;}f&&(o.set(c,a),i(a,c,e,s,o),o["delete"](c)),Ds(t,r,a);}}(t,n,o,r,Us,e,i);else{var u=e?e(Hs(t,o),s,o+"",t,n,i):void 0;void 0===u&&(u=s),Ds(t,o,u);}},Gn);}function Ps(t,n,r,e,i,s){return S(t)&&S(n)&&(s.set(n,t),Us(t,n,void 0,Ps,s),s["delete"](n)),t;}function zs(t,n,r){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout(function(){t.apply(void 0,r);},n);}function Qs(t,n,r){for(var e=-1,i=null==t?0:t.length;++e<i;)if(r(n,t[e]))return!0;return!1;}function Ys(t,n,r,e){var i=-1,s=Ht,o=!0,u=t.length,c=[],l=n.length;if(!u)return c;r&&(n=j(n,Ln(r))),e?(s=Qs,o=!1):n.length>=200&&(s=Ki,o=!1,n=new Wi(n));t:for(;++i<u;){var a=t[i],f=null==r?a:r(a);if(a=e||0!==a?a:0,o&&f==f){for(var h=l;h--;)if(n[h]===f)continue t;c.push(a);}else s(n,f,e)||c.push(a);}return c;}function Xs(t){var n=null==t?0:t.length;return n?t[n-1]:void 0;}function eo(t,n,r,e){for(var i=t.length,s=e?i:-1;(e?s--:++s<i)&&n(t[s],s,t););return r?Fr(t,e?0:s,e?s+1:i):Fr(t,e?s+1:0,e?i:s);}function io(t){return"function"==typeof t?t:F;}function so(t,n){return(k(t)?Bt:qs)(t,io(n));}function oo(t,n){for(var r=null==t?0:t.length;r--&&!1!==n(t[r],r,t););return t;}function co(t,n){return t&&uo(t,n,Pn);}function ao(t,n){return(k(t)?oo:lo)(t,io(n));}function fo(t){return function(n){var r=Oi(n);return"[object Map]"==r?Qi(n):"[object Set]"==r?function(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=[t,t];}),r;}(n):function(t,n){return j(n,function(n){return[n,t[n]];});}(n,t(n));};}function mo(t){return(t=br(t))&&yo.test(t)?t.replace(bo,po):t;}function xo(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(!n(t[r],r,t))return!1;return!0;}function jo(t,n){var r=!0;return qs(t,function(t,e,i){return r=!!n(t,e,i);}),r;}function ko(t){return t?Ge(H(t),0,4294967295):0;}function Ao(t,n){var r=[];return qs(t,function(t,e,i){n(t,e,i)&&r.push(t);}),r;}function qo(t){return function(n,r,e){var i=Object(n);if(!dn(n)){var s=ms(r);n=Pn(n),r=function r(t){return s(i[t],t,i);};}var o=t(n,r,e);return o>-1?i[s?n[o]:o]:void 0;};}function Mo(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:H(r);return i<0&&(i=Oo(e+i,0)),Ct(t,ms(n),i);}function _o(t,n,r){var e;return r(t,function(t,r,i){if(n(t,r,i))return e=r,!1;}),e;}function $o(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=H(r),i=r<0?To(e+i,0):Lo(i,e-1)),Ct(t,ms(n),i,!0);}function No(t){return t&&t.length?t[0]:void 0;}function Ro(t,n){var r=-1,e=dn(t)?Array(t.length):[];return qs(t,function(t,i,s){e[++r]=n(t,i,s);}),e;}function Io(t,n){return(k(t)?j:Ro)(t,ms(n));}function Vo(t){return Mr(function(n){var r=n.length,e=r,i=xt.prototype.thru;for(t&&n.reverse();e--;){var s=n[e];if("function"!=typeof s)throw new TypeError("Expected a function");if(i&&!o&&"wrapper"==wt(s))var o=new xt([],!0);}for(e=o?e:r;++e<r;){var u=wt(s=n[e]),c="wrapper"==u?yt(s):void 0;o=c&&Ot(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?o[wt(c[0])].apply(o,c[3]):1==s.length&&Ot(s)?o[u]():o.thru(s);}return function(){var t=arguments,e=t[0];if(o&&1==t.length&&k(e))return o.plant(e).value();for(var i=0,s=r?n[i].apply(this,t):e;++i<r;)s=n[i].call(this,s);return s;};});}function Uo(t,n){return ei(n,function(n){return U(t[n]);});}function Wo(t,n){return t>n;}function zo(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=C(n),r=C(r)),t(n,r);};}function Yo(t,n){return null!=t&&Qo.call(t,n);}function tu(t){return"string"==typeof t||!k(t)&&g(t)&&"[object String]"==m(t);}function nu(t,n){return j(n,function(n){return t[n];});}function ru(t){return null==t?[]:nu(t,Pn(t));}function ou(t,n,r){for(var e=r?Qs:Ht,i=t[0].length,s=t.length,o=s,u=Array(s),c=1/0,l=[];o--;){var a=t[o];o&&n&&(a=j(a,Ln(n))),c=su(a.length,c),u[o]=!r&&(n||i>=120&&a.length>=120)?new Wi(o&&a):void 0;}a=t[0];var f=-1,h=u[0];t:for(;++f<i&&l.length<c;){var v=a[f],d=n?n(v):v;if(v=r||0!==v?v:0,!(h?Ki(h,d):e(l,d,r))){for(o=s;--o;){var p=u[o];if(!(p?Ki(p,d):e(t[o],d,r)))continue t;}h&&h.push(d),l.push(v);}}return l;}function uu(t){return Vs(t)?t:[];}function fu(t,n){return function(r,e){return function(t,n,r,e){return ks(t,function(t,i,s){n(e,r(t),i,s);}),e;}(r,t,n(e),{});};}function mu(t,n){return n.length<2?t:gr(t,Fr(n,0,-1));}function gu(t,n,r){var e=null==(t=mu(t,n=yr(n,t)))?t:t[mr(Xs(n))];return null==e?void 0:lt(e,t,r);}function Mu(t,n){return os(t,n);}function _u(t){return"number"==typeof t&&t==H(t);}function Tu(t){return"number"==typeof t||g(t)&&"[object Number]"==m(t);}function Fu(t,n){return t<n;}function Zu(t,n,r){for(var e=-1,i=t.length;++e<i;){var s=t[e],o=n(s);if(null!=o&&(void 0===u?o==o&&!w(o):r(o,u)))var u=o,c=s;}return c;}function Wu(t,n){for(var r,e=-1,i=t.length;++e<i;){var s=n(t[e]);void 0!==s&&(r=void 0===r?s:r+s);}return r;}function zu(t,n){var r=null==t?0:t.length;return r?Wu(t,n)/r:NaN;}function Yu(t,n,r){var e=Pn(n),i=Uo(n,e),s=!(S(r)&&"chain"in r&&!r.chain),o=U(t);return Bt(i,function(r){var e=n[r];t[r]=e,o&&(t.prototype[r]=function(){var n=this.m;if(s||n){var r=t(this.i);return(r.o=jt(this.o)).push({func:e,args:arguments,thisArg:t}),r.m=n,r;}return e.apply(t,jr([this.value()],arguments));});}),t;}function Xu(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2]);}return!t.apply(this,n);};}function nc(t){if(!t)return[];if(dn(t))return tu(t)?ie(t):jt(t);if(tc&&t[tc])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r;}(t[tc]());var n=Oi(t);return("[object Map]"==n?Qi:"[object Set]"==n?Yi:ru)(t);}function rc(t,n){var r=t.length;if(r)return zt(n+=n<0?r:0,r)?t[n]:void 0;}function ec(t,n){return null==(t=mu(t,n=yr(n,t)))||delete t[mr(Xs(n))];}function ic(t){return Rr(t)?void 0:t;}function oc(t,n,r,e){if(!S(t))return t;for(var i=-1,s=(n=yr(n,t)).length,o=s-1,u=t;null!=u&&++i<s;){var c=mr(n[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=o){var a=u[c];void 0===(l=e?e(a,c,u):void 0)&&(l=S(a)?a:zt(n[i+1])?[]:{});}cn(u,c,l),u=u[c];}return t;}function uc(t,n,r){for(var e=-1,i=n.length,s={};++e<i;){var o=n[e],u=gr(t,o);r(u,o)&&oc(s,yr(o,t),u);}return s;}function cc(t,n){if(null==t)return{};var r=j(fi(t),function(t){return[t];});return n=ms(n),uc(t,r,function(t,r){return n(t,r[0]);});}function lc(t,n){if(t!==n){var r=void 0!==t,e=null===t,i=t==t,s=w(t),o=void 0!==n,u=null===n,c=n==n,l=w(n);if(!u&&!l&&!s&&t>n||s&&o&&c&&!u&&!l||e&&o&&c||!r&&c||!i)return 1;if(!e&&!s&&!l&&t<n||l&&r&&i&&!e&&!s||u&&r&&i||!o&&i||!c)return-1;}return 0;}function ac(t,n,r){n=n.length?j(n,function(t){return k(t)?function(n){return gr(n,1===t.length?t[0]:t);}:t;}):[F];var e=-1;n=j(n,Ln(ms));var i=Ro(t,function(t,r,i){var s=j(n,function(n){return n(t);});return{criteria:s,index:++e,value:t};});return function(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t;}(i,function(t,n){return function(t,n,r){for(var e=-1,i=t.criteria,s=n.criteria,o=i.length,u=r.length;++e<o;){var c=lc(i[e],s[e]);if(c)return e>=u?c:c*("desc"==r[e]?-1:1);}return t.index-n.index;}(t,n,r);});}function fc(t){return Mr(function(n){return n=j(n,Ln(ms)),hn(function(r){var e=this;return t(n,function(t){return lt(t,e,r);});});});}function gc(t,n){var r="";if(!t||n<1||n>9007199254740991)return r;do{n%2&&(r+=t),(n=mc(n/2))&&(t+=t);}while(n);return r;}function Sc(t){return Zr(t)?function(t){for(var n=$c.lastIndex=0;$c.test(t);)++n;return n;}(t):wc(t);}function Rc(t,n){var r=(n=void 0===n?" ":O(n)).length;if(r<2)return r?gc(n,t):n;var e=gc(n,Nc(t/Sc(n)));return Zr(n)?Ur(ie(e),0,t).join(""):e.slice(0,t);}function Pc(t,n,r,e){for(var i=r-1,s=t.length;++i<s;)if(e(t[i],n))return i;return-1;}function Wc(t,n,r,e){var i=e?Pc:Vt,s=-1,o=n.length,u=t;for(t===n&&(n=jt(n)),r&&(u=j(t,Ln(r)));++s<o;)for(var c=0,l=n[s],a=r?r(l):l;(c=i(u,a,c,e))>-1;)u!==t&&Zc.call(u,c,1),Zc.call(t,c,1);return t;}function zc(t,n){return t&&t.length&&n&&n.length?Wc(t,n):t;}function Qc(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==s){var s=i;zt(i)?Gc.call(t,i,1):ec(t,i);}}return t;}function tl(t,n){return t+Jc(Xc()*(n-t+1));}function ol(t){return function(n,r,e){return e&&"number"!=typeof e&&pn(n,r,e)&&(r=e=void 0),n=V(n),void 0===r?(r=n,n=0):r=V(r),function(t,n,r,e){for(var i=-1,s=sl(il((n-t)/(r||1)),0),o=Array(s);s--;)o[e?s:++i]=t,t+=r;return o;}(n,r,e=void 0===e?n<r?1:-1:V(e),t);};}function al(t,n,r,e,i){return i(t,function(t,i,s){r=e?(e=!1,t):n(r,t,i,s);}),r;}function fl(t,n,r,e){var i=null==t?0:t.length;for(e&&i&&(r=t[--i]);i--;)r=n(r,t[i],i,t);return r;}function vl(t){return null==t?t:hl.call(t);}function pl(t){var n=t.length;return n?t[tl(0,n-1)]:void 0;}function bl(t){return pl(ru(t));}function yl(t,n){var r=-1,e=t.length,i=e-1;for(n=void 0===n?e:n;++r<n;){var s=tl(r,i),o=t[s];t[s]=t[r],t[r]=o;}return t.length=n,t;}function ml(t,n){return yl(jt(t),Ge(n,0,t.length));}function gl(t,n){var r=ru(t);return yl(r,Ge(n,0,r.length));}function wl(t){return yl(jt(t));}function xl(t){return yl(ru(t));}function kl(t,n){var r;return qs(t,function(t,e,i){return!(r=n(t,e,i));}),!!r;}function Ml(t,n,r,e){var i=0,s=null==t?0:t.length;if(0===s)return 0;for(var o=(n=r(n))!=n,u=null===n,c=w(n),l=void 0===n;i<s;){var a=ql((i+s)/2),f=r(t[a]),h=void 0!==f,v=null===f,d=f==f,p=w(f);if(o)var b=e||d;else b=l?d&&(e||h):u?d&&h&&(e||!v):c?d&&h&&!v&&(e||!p):!v&&!p&&(e?f<=n:f<n);b?i=a+1:s=a;}return Ol(s,4294967294);}function El(t,n,r){var e=0,i=null==t?e:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;e<i;){var s=e+i>>>1,o=t[s];null!==o&&!w(o)&&(r?o<=n:o<n)?e=s+1:i=s;}return i;}return Ml(t,n,F,r);}function _l(t,n){for(var r=-1,e=t.length,i=0,s=[];++r<e;){var o=t[r],u=n?n(o):o;if(!r||!on(u,c)){var c=u;s[i++]=0===o?0:o;}}return s;}function Rl(t,n,r,e){return void 0===t||on(t,Sl[r])&&!Nl.call(e,r)?n:t;}function Bl(t){return"\\"+Il[t];}function Kl(t,n){return n(t);}function Yl(t,n){var r=t;return r instanceof pt&&(r=r.value()),ce(n,function(t,n){return n.func.apply(n.thisArg,jr([t],n.args));},r);}function Jl(){return Yl(this.i,this.o);}function ta(t,n){for(var r=t.length;r--&&Vt(n,t[r],0)>-1;);return r;}function na(t,n){for(var r=-1,e=t.length;++r<e&&Vt(n,t[r],0)>-1;);return r;}function ca(t,n,r){var e=-1,i=Ht,s=t.length,o=!0,u=[],c=u;if(r)o=!1,i=Qs;else if(s>=200){var l=n?null:ua(t);if(l)return Yi(l);o=!1,i=Ki,c=new Wi();}else c=n?[]:u;t:for(;++e<s;){var a=t[e],f=n?n(a):a;if(a=r||0!==a?a:0,o&&f==f){for(var h=c.length;h--;)if(c[h]===f)continue t;n&&c.push(f),u.push(a);}else i(c,f,r)||(c!==u&&c.push(f),u.push(a));}return u;}function da(t){if(!t||!t.length)return[];var n=0;return t=ei(t,function(t){if(Vs(t))return n=va(t.length,n),!0;}),gn(n,function(n){return j(t,bs(n));});}function pa(t,n){if(!t||!t.length)return[];var r=da(t);return null==n?r:j(r,function(t){return lt(n,void 0,t);});}function ba(t,n,r,e){return oc(t,n,r(gr(t,n)),e);}function wa(t,n,r){var e=t.length;if(e<2)return e?ca(t[0]):[];for(var i=-1,s=Array(e);++i<e;)for(var o=t[i],u=-1;++u<e;)u!=i&&(s[i]=Ys(s[i]||o,t[u],n,r));return ca(qr(s,1),n,r);}function qa(t,n,r){for(var e=-1,i=t.length,s=n.length,o={};++e<i;){var u=e<s?n[e]:void 0;r(o,t[e],u);}return o;}function rf(t,n){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf("".concat(n,"-"));});}function sf(t){var n=t.split("-"),r=n.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1);}).join("");return n[0]+r;}function vf(t,n){var r=n.find(t);if(r)return r;try{return n.create(t);}catch(_unused2){var _r4=n.create(Ya.INLINE);return Array.from(t.childNodes).forEach(function(t){_r4.domNode.appendChild(t);}),t.parentNode&&t.parentNode.replaceChild(_r4.domNode,t),_r4.attach(),_r4;}}function Lf(t,n,r,e,i){if(t===n)return t?[[0,t]]:[];if(null!=r){var s=function(t,n,r){var e="number"==typeof r?{index:r,length:0}:r.oldRange,i="number"==typeof r?null:r.newRange,s=t.length,o=n.length;if(0===e.length&&(null===i||0===i.length)){var u=e.index,c=t.slice(0,u),l=t.slice(u),a=i?i.index:null,f=u+o-s;if((null===a||a===f)&&!(f<0||f>o)){var h=n.slice(0,f);if((p=n.slice(f))===l){var v=Math.min(u,f);if((y=c.slice(0,v))===(g=h.slice(0,v)))return Wf(y,c.slice(v),h.slice(v),l);}}if(null===a||a===u){var d=u,p=(h=n.slice(0,d),n.slice(d));if(h===c){var b=Math.min(s-d,o-d);if((m=l.slice(l.length-b))===(w=p.slice(p.length-b)))return Wf(c,l.slice(0,l.length-b),p.slice(0,p.length-b),m);}}}if(e.length>0&&i&&0===i.length){var y=t.slice(0,e.index),m=t.slice(e.index+e.length);if(!(o<(v=y.length)+(b=m.length))){var g=n.slice(0,v),w=n.slice(o-b);if(y===g&&m===w)return Wf(y,t.slice(v,s-b),n.slice(v,o-b),m);}}return null;}(t,n,r);if(s)return s;}var o=Sf(t,n),u=t.substring(0,o);o=Rf(t=t.substring(o),n=n.substring(o));var c=t.substring(t.length-o),l=function(t,n){var r;if(!t)return[[1,n]];if(!n)return[[Tf,t]];var e=t.length>n.length?t:n,i=t.length>n.length?n:t,s=e.indexOf(i);if(-1!==s)return r=[[1,e.substring(0,s)],[0,i],[1,e.substring(s+i.length)]],t.length>n.length&&(r[0][0]=r[2][0]=Tf),r;if(1===i.length)return[[Tf,t],[1,n]];var o=function(t,n){var r=t.length>n.length?t:n,e=t.length>n.length?n:t;if(r.length<4||2*e.length<r.length)return null;function i(t,n,r){for(var e,i,s,o,u=t.substring(r,r+Math.floor(t.length/4)),c=-1,l="";-1!==(c=n.indexOf(u,c+1));){var a=Sf(t.substring(r),n.substring(c)),f=Rf(t.substring(0,r),n.substring(0,c));l.length<f+a&&(l=n.substring(c-f,c)+n.substring(c,c+a),e=t.substring(0,r-f),i=t.substring(r+a),s=n.substring(0,c-f),o=n.substring(c+a));}return 2*l.length>=t.length?[e,i,s,o,l]:null;}var s,o,u,c,l,a=i(r,e,Math.ceil(r.length/4)),f=i(r,e,Math.ceil(r.length/2));if(!a&&!f)return null;s=f?a&&a[4].length>f[4].length?a:f:a;t.length>n.length?(o=s[0],u=s[1],c=s[2],l=s[3]):(c=s[0],l=s[1],o=s[2],u=s[3]);var h=s[4];return[o,u,c,l,h];}(t,n);if(o){var u=o[0],c=o[1],l=o[2],a=o[3],f=o[4],h=Lf(u,l),v=Lf(c,a);return h.concat([[0,f]],v);}return function(t,n){for(var r=t.length,e=n.length,i=Math.ceil((r+e)/2),s=i,o=2*i,u=new Array(o),c=new Array(o),l=0;l<o;l++)u[l]=-1,c[l]=-1;u[s+1]=0,c[s+1]=0;for(var a=r-e,f=a%2!=0,h=0,v=0,d=0,p=0,b=0;b<i;b++){for(var y=-b+h;y<=b-v;y+=2){for(var m=s+y,g=(A=y===-b||y!==b&&u[m-1]<u[m+1]?u[m+1]:u[m-1]+1)-y;A<r&&g<e&&t.charAt(A)===n.charAt(g);)A++,g++;if(u[m]=A,A>r)v+=2;else if(g>e)h+=2;else if(f){if((j=s+a-y)>=0&&j<o&&-1!==c[j])if(A>=(x=r-c[j]))return $f(t,n,A,g);}}for(var w=-b+d;w<=b-p;w+=2){for(var x,j=s+w,k=(x=w===-b||w!==b&&c[j-1]<c[j+1]?c[j+1]:c[j-1]+1)-w;x<r&&k<e&&t.charAt(r-x-1)===n.charAt(e-k-1);)x++,k++;if(c[j]=x,x>r)p+=2;else if(k>e)d+=2;else if(!f){if((m=s+a-w)>=0&&m<o&&-1!==u[m]){var A;g=s+(A=u[m])-m;if(A>=(x=r-x))return $f(t,n,A,g);}}}}return[[Tf,t],[1,n]];}(t,n);}(t=t.substring(0,t.length-o),n=n.substring(0,n.length-o));return u&&l.unshift([0,u]),c&&l.push([0,c]),Hf(l,i),e&&function(t){var n=!1,r=[],e=0,i=null,s=0,o=0,u=0,c=0,l=0;for(;s<t.length;)0==t[s][0]?(r[e++]=s,o=c,u=l,c=0,l=0,i=t[s][1]):(1==t[s][0]?c+=t[s][1].length:l+=t[s][1].length,i&&i.length<=Math.max(o,u)&&i.length<=Math.max(c,l)&&(t.splice(r[e-1],0,[Tf,i]),t[r[e-1]+1][0]=1,e--,s=--e>0?r[e-1]:-1,o=0,u=0,c=0,l=0,i=null,n=!0)),s++;n&&Hf(t);(function(t){function n(t,n){if(!t||!n)return 6;var r=t.charAt(t.length-1),e=n.charAt(0),i=r.match(If),s=e.match(If),o=i&&r.match(Bf),u=s&&e.match(Bf),c=o&&r.match(Cf),l=u&&e.match(Cf),a=c&&t.match(Df),f=l&&n.match(Vf);return a||f?5:c||l?4:i&&!o&&u?3:o||u?2:i||s?1:0;}var r=1;for(;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var e=t[r-1][1],i=t[r][1],s=t[r+1][1],o=Rf(e,i);if(o){var u=i.substring(i.length-o);e=e.substring(0,e.length-o),i=u+i.substring(0,i.length-o),s=u+s;}for(var c=e,l=i,a=s,f=n(e,i)+n(i,s);i.charAt(0)===s.charAt(0);){e+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=n(e,i)+n(i,s);h>=f&&(f=h,c=e,l=i,a=s);}t[r-1][1]!=c&&(c?t[r-1][1]=c:(t.splice(r-1,1),r--),t[r][1]=l,a?t[r+1][1]=a:(t.splice(r+1,1),r--));}r++;}})(t),s=1;for(;s<t.length;){if(t[s-1][0]==Tf&&1==t[s][0]){var a=t[s-1][1],f=t[s][1],h=Nf(a,f),v=Nf(f,a);h>=v?(h>=a.length/2||h>=f.length/2)&&(t.splice(s,0,[0,f.substring(0,h)]),t[s-1][1]=a.substring(0,a.length-h),t[s+1][1]=f.substring(h),s++):(v>=a.length/2||v>=f.length/2)&&(t.splice(s,0,[0,a.substring(0,v)]),t[s-1][0]=1,t[s-1][1]=f.substring(0,f.length-v),t[s+1][0]=Tf,t[s+1][1]=a.substring(v),s++),s++;}s++;}}(l),l;}function $f(t,n,r,e){var i=t.substring(0,r),s=n.substring(0,e),o=t.substring(r),u=n.substring(e),c=Lf(i,s),l=Lf(o,u);return c.concat(l);}function Sf(t,n){if(!t||!n||t.charAt(0)!==n.charAt(0))return 0;for(var r=0,e=Math.min(t.length,n.length),i=e,s=0;r<i;)t.substring(s,i)==n.substring(s,i)?s=r=i:e=i,i=Math.floor((e-r)/2+r);return Ff(t.charCodeAt(i-1))&&i--,i;}function Nf(t,n){var r=t.length,e=n.length;if(0==r||0==e)return 0;r>e?t=t.substring(r-e):r<e&&(n=n.substring(0,r));var i=Math.min(r,e);if(t==n)return i;for(var s=0,o=1;;){var u=t.substring(i-o),c=n.indexOf(u);if(-1==c)return s;o+=c,0!=c&&t.substring(i-o)!=n.substring(0,o)||(s=o,o++);}}function Rf(t,n){if(!t||!n||t.slice(-1)!==n.slice(-1))return 0;for(var r=0,e=Math.min(t.length,n.length),i=e,s=0;r<i;)t.substring(t.length-i,t.length-s)==n.substring(n.length-i,n.length-s)?s=r=i:e=i,i=Math.floor((e-r)/2+r);return Uf(t.charCodeAt(t.length-i))&&i--,i;}function Hf(t,n){t.push([0,""]);for(var r,e=0,i=0,s=0,o="",u="";e<t.length;)if(e<t.length-1&&!t[e][1])t.splice(e,1);else switch(t[e][0]){case 1:s++,u+=t[e][1],e++;break;case Tf:i++,o+=t[e][1],e++;break;case 0:var c=e-s-i-1;if(n){if(c>=0&&Zf(t[c][1])){var l=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),o=l+o,u=l+u,!t[c][1]){t.splice(c,1),e--;var a=c-1;t[a]&&1===t[a][0]&&(s++,u=t[a][1]+u,a--),t[a]&&t[a][0]===Tf&&(i++,o=t[a][1]+o,a--),c=a;}}if(Pf(t[e][1])){l=t[e][1].charAt(0);t[e][1]=t[e][1].slice(1),o+=l,u+=l;}}if(e<t.length-1&&!t[e][1]){t.splice(e,1);break;}if(o.length>0||u.length>0){o.length>0&&u.length>0&&(0!==(r=Sf(u,o))&&(c>=0?t[c][1]+=u.substring(0,r):(t.splice(0,0,[0,u.substring(0,r)]),e++),u=u.substring(r),o=o.substring(r)),0!==(r=Rf(u,o))&&(t[e][1]=u.substring(u.length-r)+t[e][1],u=u.substring(0,u.length-r),o=o.substring(0,o.length-r)));var f=s+i;0===o.length&&0===u.length?(t.splice(e-f,f),e-=f):0===o.length?(t.splice(e-f,f,[1,u]),e=e-f+1):0===u.length?(t.splice(e-f,f,[Tf,o]),e=e-f+1):(t.splice(e-f,f,[Tf,o],[1,u]),e=e-f+2);}0!==e&&0===t[e-1][0]?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,s=0,i=0,o="",u="";}""===t[t.length-1][1]&&t.pop();var h=!1;for(e=1;e<t.length-1;)0===t[e-1][0]&&0===t[e+1][0]&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)===t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),h=!0):t[e][1].substring(0,t[e+1][1].length)==t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),h=!0)),e++;h&&Hf(t,n);}function Ff(t){return t>=55296&&t<=56319;}function Uf(t){return t>=56320&&t<=57343;}function Pf(t){return Uf(t.charCodeAt(0));}function Zf(t){return Ff(t.charCodeAt(t.length-1));}function Wf(t,n,r,e){return Zf(t)||Pf(e)?null:function(t){for(var n=[],r=0;r<t.length;r++)t[r][1].length>0&&n.push(t[r]);return n;}([[0,t],[Tf,n],[1,r],[0,e]]);}function zf(t,n,r,e){return Lf(t,n,r,e,!0);}function hh(t){return t.replace(/[&<>"']/g,function(t){return fh[t];});}function bh(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?n:("formats"in t&&"function"==typeof t.formats&&(n=_objectSpread(_objectSpread({},n),t.formats()),r&&delete n["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?n:bh(t.parent,n,r));}function kh(t){if(jh&&xh.indexOf(t)<=xh.indexOf(jh)){var _console;for(var n=arguments.length,r=new Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];(_console=console)[t].apply(_console,r);}}function Ah(t){return xh.reduce(function(n,r){return n[r]=kh.bind(console,r,t),n;},{});}function Th(t,n){try{n.parentNode;}catch(t){return!1;}return t.contains(n);}function Sh(t,n,r){if(0===t.length){var _Ih=Ih(r.pop()),_Ih2=_slicedToArray(_Ih,1),_t84=_Ih2[0];return n<=0?"</li></".concat(_t84,">"):"</li></".concat(_t84,">").concat(Sh([],n-1,r));}var _t85=_toArray(t),_t85$=_t85[0],e=_t85$.child,i=_t85$.offset,s=_t85$.length,o=_t85$.indent,u=_t85$.type,c=_t85.slice(1),_Ih3=Ih(u),_Ih4=_slicedToArray(_Ih3,2),l=_Ih4[0],a=_Ih4[1];if(o>n)return r.push(u),o===n+1?"<".concat(l,"><li").concat(a,">").concat(Nh(e,i,s)).concat(Sh(c,o,r)):"<".concat(l,"><li>").concat(Sh(t,n+1,r));var f=r[r.length-1];if(o===n&&u===f)return"</li><li".concat(a,">").concat(Nh(e,i,s)).concat(Sh(c,o,r));var _Ih5=Ih(r.pop()),_Ih6=_slicedToArray(_Ih5,1),h=_Ih6[0];return"</li></".concat(h,">").concat(Sh(t,n-1,r));}function Nh(t,n,r){var e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in t&&"function"==typeof t.html)return t.html(n,r);if(t instanceof ah){return hh(t.value().slice(n,n+r)).replaceAll(" ","&nbsp;");}if(t instanceof pf){if("list-container"===t.statics.blotName){var _e15=[];return t.children.forEachAt(n,r,function(t,n,r){var i="formats"in t&&"function"==typeof t.formats?t.formats():{};_e15.push({child:t,offset:n,length:r,indent:i.indent||0,type:i.list});}),Sh(_e15,-1,[]);}var _i17=[];if(t.children.forEachAt(n,r,function(t,n,r){_i17.push(Nh(t,n,r));}),e||"list"===t.statics.blotName)return _i17.join("");var _t$domNode=t.domNode,_s8=_t$domNode.outerHTML,_o8=_t$domNode.innerHTML,_s$split=_s8.split(">".concat(_o8,"<")),_s$split2=_slicedToArray(_s$split,2),_u8=_s$split2[0],_c7=_s$split2[1];return"<table"===_u8?"<table style=\"border: 1px solid #000;\">".concat(_i17.join(""),"<").concat(_c7):"".concat(_u8,">").concat(_i17.join(""),"<").concat(_c7);}return t.domNode instanceof Element?t.domNode.outerHTML:"";}function Rh(t,n){return Object.keys(n).reduce(function(r,e){if(null==t[e])return r;var i=n[e];return i===t[e]?r[e]=i:Array.isArray(i)?i.indexOf(t[e])<0?r[e]=i.concat([t[e]]):r[e]=i:r[e]=[i,t[e]],r;},{});}function Ih(t){var n="ordered"===t?"ol":"ul";switch(t){case"checked":return[n,' data-list="checked"'];case"unchecked":return[n,' data-list="unchecked"'];default:return[n,""];}}function Bh(t){return t.reduce(function(t,n){if("string"==typeof n.insert){var _r18=n.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(_r18,n.attributes);}return t.push(n);},new ch());}function Ch(t,n){var r=t.index,e=t.length;return new Eh(r+n,e);}function Yh(t){return"string"==typeof t?document.querySelector(t):t;}function Jh(t){return Object.entries(t!==null&&t!==void 0?t:{}).reduce(function(t,n){var _n20=_slicedToArray(n,2),r=_n20[0],e=_n20[1];return _objectSpread(_objectSpread({},t),{},_defineProperty({},r,!0===e?{}:e));},{});}function Xh(t){return Object.fromEntries(Object.entries(t).filter(function(t){return void 0!==t[1];}));}function tv(t,n,r,e){if(!this.isEnabled()&&n===Oh.sources.USER&&!this.allowReadOnlyEdits)return new ch();var i=null==r?null:this.getSelection();var s=this.editor.delta,o=t();if(null!=i&&(!0===r&&(r=i.index),null==e?i=rv(i,o,n):0!==e&&(i=rv(i,r,e,n)),this.setSelection(i,Oh.sources.SILENT)),o.length()>0){var _this$emitter6,_this$emitter7;var _t92=[Oh.events.TEXT_CHANGE,o,s,n];(_this$emitter6=this.emitter).emit.apply(_this$emitter6,[Oh.events.EDITOR_CHANGE].concat(_t92)),n!==Oh.sources.SILENT&&(_this$emitter7=this.emitter).emit.apply(_this$emitter7,_t92);}return o;}function nv(t,n,r,e,i){var s={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof n?(i=e,e=r,r=n,n=t.length,t=t.index):(n=t.length,t=t.index):"number"!=typeof n&&(i=e,e=r,r=n,n=0),"object"==_typeof(r)?(s=r,i=e):"string"==typeof r&&(null!=e?s[r]=e:i=r),[t,n,s,i=i||Oh.sources.API];}function rv(t,n,r,e){var _map3,_map4,_map5,_map6;var i="number"==typeof r?r:0;if(null==t)return null;var s,o;return n&&"function"==typeof n.transformPosition?(_map3=[t.index,t.index+t.length].map(function(t){return n.transformPosition(t,e!==Oh.sources.USER);}),_map4=_slicedToArray(_map3,2),s=_map4[0],o=_map4[1],_map3):(_map5=[t.index,t.index+t.length].map(function(t){return t<n||t===n&&e===Oh.sources.USER?t:i>=0?t+i:Math.max(n,t+i);}),_map6=_slicedToArray(_map5,2),s=_map6[0],o=_map6[1],_map5),new Eh(s,o-s);}function iv(t){return t instanceof dh||t instanceof ph;}function sv(t){return"function"==typeof t.updateContent;}function ov(t,n,r){r.reduce(function(n,r){var e=uh.Op.length(r);var i=r.attributes||{};if(null!=r.insert)if("string"==typeof r.insert){var _e16=r.insert;t.insertAt(n,_e16);var _t$descendant=t.descendant(ff,n),_t$descendant2=_slicedToArray(_t$descendant,1),_s10=_t$descendant2[0],_o10=bh(_s10);i=uh.AttributeMap.diff(_o10,i)||{};}else if("object"==_typeof(r.insert)){var _e17=Object.keys(r.insert)[0];if(null==_e17)return n;t.insertAt(n,_e17,r.insert[_e17]);if(null!=t.scroll.query(_e17,Ya.INLINE)){var _t$descendant3=t.descendant(ff,n),_t$descendant4=_slicedToArray(_t$descendant3,1),_r23=_t$descendant4[0],_e18=bh(_r23);i=uh.AttributeMap.diff(_e18,i)||{};}}return Object.keys(i).forEach(function(r){t.formatAt(n,e,r,i[r]);}),n+e;},n);}function Ov(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler:function handler(n,r){var e=r.event;var i=this.quill.scroll.query("code-block"),s=i.TAB;if(0===n.length&&!e.shiftKey)return this.quill.insertText(n.index,s,Qh.sources.USER),void this.quill.setSelection(n.index+s.length,Qh.sources.SILENT);var o=0===n.length?this.quill.getLines(n.index,1):this.quill.getLines(n);var u=n.index,c=n.length;o.forEach(function(n,r){t?(n.insertAt(0,s),0===r?u+=s.length:c+=s.length):n.domNode.textContent.startsWith(s)&&(n.deleteAt(0,s.length),0===r?u-=s.length:c-=s.length);}),this.quill.update(Qh.sources.USER),this.quill.setSelection(u,c,Qh.sources.SILENT);}};}function Mv(t,n){var r="ArrowLeft"===t?"prefix":"suffix";return _defineProperty(_defineProperty({key:t,shiftKey:n,altKey:null},r,/^$/),"handler",function handler(r){var e=r.index;"ArrowRight"===t&&(e+=r.length+1);var _this$quill$getLeaf=this.quill.getLeaf(e),_this$quill$getLeaf2=_slicedToArray(_this$quill$getLeaf,1),i=_this$quill$getLeaf2[0];return!(i instanceof jf)||("ArrowLeft"===t?n?this.quill.setSelection(r.index-1,r.length+1,Qh.sources.USER):this.quill.setSelection(r.index-1,Qh.sources.USER):n?this.quill.setSelection(r.index,r.length+1,Qh.sources.USER):this.quill.setSelection(r.index+r.length+1,Qh.sources.USER),!1);});}function Ev(t){return{key:t[0],shortKey:!0,handler:function handler(n,r){this.quill.format(t,!r.format[t],Qh.sources.USER);}};}function _v(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler:function handler(n,r){var e=t?"prev":"next",i=r.line,s=i.parent[e];if(null!=s){if("table-row"===s.statics.blotName){var _t94=s.children.head,_n26=i;for(;null!=_n26.prev;)_n26=_n26.prev,_t94=_t94.next;var _e21=_t94.offset(this.quill.scroll)+Math.min(r.offset,_t94.length()-1);this.quill.setSelection(_e21,0,Qh.sources.USER);}}else{var _n27=i.table()[e];null!=_n27&&(t?this.quill.setSelection(_n27.offset(this.quill.scroll)+_n27.length()-1,0,Qh.sources.USER):this.quill.setSelection(_n27.offset(this.quill.scroll),0,Qh.sources.USER));}return!1;}};}function Tv(t){var n=t.quill,r=t.range;var e=n.getLines(r);var i={};if(e.length>1){var _t95=e[0].formats(),_n28=e[e.length-1].formats();i=uh.AttributeMap.diff(_n28,_t95)||{};}n.deleteText(r,Qh.sources.USER),Object.keys(i).length>0&&n.formatLine(r.index,1,i,Qh.sources.USER),n.setSelection(r.index,Qh.sources.SILENT);}function Pv(t,n,r,e){return e.query(n)?t.reduce(function(t,e){if(!e.insert)return t;if(e.attributes&&e.attributes[n])return t.push(e);var i=r?_defineProperty({},n,r):{};return t.insert(e.insert,_objectSpread(_objectSpread({},i),e.attributes));},new ch()):t;}function Zv(t,n){var r="";for(var _e23=t.ops.length-1;_e23>=0&&r.length<n.length;--_e23){var _n33=t.ops[_e23];if("string"!=typeof _n33.insert)break;r=_n33.insert+r;}return r.slice(-1*n.length)===n;}function Wv(t,n){if(!(t instanceof Element))return!1;var r=n.query(t);return!(r&&r.prototype instanceof jf)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase());}function Kv(t){return null!=t&&(zv.has(t)||("PRE"===t.tagName?zv.set(t,!0):zv.set(t,Kv(t.parentNode))),zv.get(t));}function Gv(t,n,r,e,i){return n.nodeType===n.TEXT_NODE?e.reduce(function(r,e){return e(n,r,t);},new ch()):n.nodeType===n.ELEMENT_NODE?Array.from(n.childNodes||[]).reduce(function(s,o){var u=Gv(t,o,r,e,i);return o.nodeType===n.ELEMENT_NODE&&(u=r.reduce(function(n,r){return r(o,n,t);},u),u=(i.get(o)||[]).reduce(function(n,r){return r(o,n,t);},u)),s.concat(u);},new ch()):new ch();}function Qv(t){return function(n,r,e){return Pv(r,t,!0,e);};}function Yv(t,n,r){if(!Zv(n,"\n")){if(Wv(t,r)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return n.insert("\n");if(n.length()>0&&t.nextSibling){var _e24=t.nextSibling;for(;null!=_e24;){if(Wv(_e24,r))return n.insert("\n");var _t98=r.query(_e24);if(_t98&&_t98.prototype instanceof ph)return n.insert("\n");_e24=_e24.firstChild;}}}return n;}function Xv(t,n){var r=n;for(var _n35=t.length-1;_n35>=0;_n35-=1){var _e25=t[_n35];t[_n35]={delta:r.transform(_e25.delta,!0),range:_e25.range&&td(_e25.range,r)},r=_e25.delta.transform(r),0===t[_n35].delta.length()&&t.splice(_n35,1);}}function td(t,n){if(!t)return t;var r=n.transformPosition(t.index);return{index:r,length:n.transformPosition(t.index+t.length)-r};}function od(t,n,r){var e=document.createElement("button");e.setAttribute("type","button"),e.classList.add("ql-".concat(n)),e.setAttribute("aria-pressed","false"),null!=r?(e.value=r,e.setAttribute("aria-label","".concat(n,": ").concat(r))):e.setAttribute("aria-label",n),t.appendChild(e);}function cd(t,n){t.setAttribute(n,"".concat(!("true"===t.getAttribute(n))));}function wd(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.forEach(function(n){var e=document.createElement("option");n===r?e.setAttribute("selected","selected"):e.setAttribute("value",String(n)),t.appendChild(e);});}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){n=_lit.css;r=_lit.LitElement;e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_commonjsHelpers001CjsJs){o=_commonjsHelpers001CjsJs.c;u=_commonjsHelpers001CjsJs.g;}],execute:function execute(){_excluded=["modules"],_excluded2=["modules"];c="object"==(typeof global==="undefined"?"undefined":_typeof(global))&&global&&global.Object===Object&&global,l="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,a=c||l||Function("return this")(),f=a.Symbol,h=Object.prototype,v=h.hasOwnProperty,d=h.toString,p=f?f.toStringTag:void 0;b=Object.prototype.toString;y=f?f.toStringTag:void 0;k=Array.isArray,A=f?f.prototype:void 0,q=A?A.toString:void 0;E=M(function(t,n){return t+n;},0),_=/\s/;L=/^\s+/;N=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,I=/^0o[0-7]+$/i,B=parseInt;D=1/0;Z=a["t"],W=(P=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";z=Function.prototype.toString;G=/^\[object .+?Constructor\]$/,Q=Function.prototype,Y=Object.prototype,J=Q.toString,X=Y.hasOwnProperty,tt=RegExp("^"+J.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");et=rt(a,"WeakMap"),it=et&&new et(),st=it?function(t,n){return it.set(t,n),t;}:F,ot=Object.create,ut=function(){function t(){}return function(n){if(!S(n))return{};if(ot)return ot(n);t.prototype=n;var r=new t();return t.prototype=void 0,r;};}();at=Math.max;ht=Math.max;pt.prototype=ut(dt.prototype),pt.prototype.constructor=pt;yt=it?function(t){return it.get(t);}:bt,mt={},gt=Object.prototype.hasOwnProperty;xt.prototype=ut(dt.prototype),xt.prototype.constructor=xt;At=Object.prototype.hasOwnProperty;qt.prototype=dt.prototype,qt.prototype.constructor=qt;Mt=Date.now;_t=Et(st),Tt=/\{\n\/\* \[wrapped with (.+)\] \*/,Lt=/,? & /;$t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;Nt=function(){try{var t=rt(Object,"defineProperty");return t({},"",{}),t;}catch(t){}}(),Rt=Nt?function(t,n){return Nt(t,"toString",{configurable:!0,enumerable:!1,value:St(n),writable:!0});}:F,It=Et(Rt);Ft=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];Wt=/^(?:0|[1-9]\d*)$/;Kt=Math.min;Gt="__lodash_placeholder__";Jt="__lodash_placeholder__",Xt=128,tn=Math.min;nn=Math.max;un=Object.prototype.hasOwnProperty;an=Math.max;yn=Object.prototype;xn=Object.prototype,jn=xn.hasOwnProperty,kn=xn.propertyIsEnumerable,An=wn(function(){return arguments;}())?wn:function(t){return g(t)&&jn.call(t,"callee")&&!kn.call(t,"callee");};On="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,Mn=On&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,En=Mn&&Mn.exports===On?a.Buffer:void 0,_n=(En?En.isBuffer:void 0)||qn,Tn={};Tn["[object Float32Array]"]=Tn["[object Float64Array]"]=Tn["[object Int8Array]"]=Tn["[object Int16Array]"]=Tn["[object Int32Array]"]=Tn["[object Uint8Array]"]=Tn["[object Uint8ClampedArray]"]=Tn["[object Uint16Array]"]=Tn["[object Uint32Array]"]=!0,Tn["[object Arguments]"]=Tn["[object Array]"]=Tn["[object ArrayBuffer]"]=Tn["[object Boolean]"]=Tn["[object DataView]"]=Tn["[object Date]"]=Tn["[object Error]"]=Tn["[object Function]"]=Tn["[object Map]"]=Tn["[object Number]"]=Tn["[object Object]"]=Tn["[object RegExp]"]=Tn["[object Set]"]=Tn["[object String]"]=Tn["[object WeakMap]"]=!1;$n="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,Sn=$n&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,Nn=Sn&&Sn.exports===$n&&c.process,Rn=function(){try{var t=Sn&&Sn.require&&Sn.require("util").types;return t||Nn&&Nn.binding&&Nn.binding("util");}catch(t){}}(),In=Rn&&Rn.isTypedArray,Bn=In?Ln(In):function(t){return g(t)&&vn(t.length)&&!!Tn[m(t)];},Cn=Object.prototype.hasOwnProperty;Hn=Vn(Object.keys,Object),Fn=Object.prototype.hasOwnProperty;Zn=Object.prototype.hasOwnProperty,Wn=bn(function(t,n){if(mn(n)||dn(n))ln(n,Pn(n),t);else for(var r in n)Zn.call(n,r)&&cn(t,r,n[r]);});zn=Object.prototype.hasOwnProperty;Qn=bn(function(t,n){ln(n,Gn(n),t);}),Yn=bn(function(t,n,r,e){ln(n,Gn(n),t,e);}),Jn=bn(function(t,n,r,e){ln(n,Pn(n),t,e);}),Xn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tr=/^\w*$/;rr=rt(Object,"create");er=Object.prototype.hasOwnProperty;ir=Object.prototype.hasOwnProperty;sr.prototype.clear=function(){this.A=rr?rr(null):{},this.size=0;},sr.prototype["delete"]=function(t){var n=this.has(t)&&delete this.A[t];return this.size-=n?1:0,n;},sr.prototype.get=function(t){var n=this.A;if(rr){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r;}return er.call(n,t)?n[t]:void 0;},sr.prototype.has=function(t){var n=this.A;return rr?void 0!==n[t]:ir.call(n,t);},sr.prototype.set=function(t,n){var r=this.A;return this.size+=this.has(t)?0:1,r[t]=rr&&void 0===n?"__lodash_hash_undefined__":n,this;};ur=Array.prototype.splice;cr.prototype.clear=function(){this.A=[],this.size=0;},cr.prototype["delete"]=function(t){var n=this.A,r=or(n,t);return!(r<0)&&(r==n.length-1?n.pop():ur.call(n,r,1),--this.size,!0);},cr.prototype.get=function(t){var n=this.A,r=or(n,t);return r<0?void 0:n[r][1];},cr.prototype.has=function(t){return or(this.A,t)>-1;},cr.prototype.set=function(t,n){var r=this.A,e=or(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this;};lr=rt(a,"Map");fr.prototype.clear=function(){this.size=0,this.A={hash:new sr(),map:new(lr||cr)(),string:new sr()};},fr.prototype["delete"]=function(t){var n=ar(this,t)["delete"](t);return this.size-=n?1:0,n;},fr.prototype.get=function(t){return ar(this,t).get(t);},fr.prototype.has=function(t){return ar(this,t).has(t);},fr.prototype.set=function(t,n){var r=ar(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this;};hr.Cache=fr;vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/\\(\\)?/g,pr=function(t){var n=hr(t,function(t){return 500===r.size&&r.clear(),t;}),r=n.cache;return n;}(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(vr,function(t,r,e,i){n.push(e?i.replace(dr,"$1"):r||t);}),n;});kr=f?f.isConcatSpreadable:void 0;Er=Mr(xr),_r=Vn(Object.getPrototypeOf,Object),Tr=Function.prototype,Lr=Object.prototype,$r=Tr.toString,Sr=Lr.hasOwnProperty,Nr=$r.call(Object);Br=hn(function(t,n){try{return lt(t,void 0,n);}catch(t){return Ir(t)?t:new Error(t);}});Dr=hn(function(t,n,r){var e=1;if(r.length){var i=Qt(r,Zt(Dr));e|=32;}return rn(t,e,n,r,i);});Dr.placeholder={};Vr=Mr(function(t,n){return Bt(n,function(n){n=mr(n),sn(t,n,Dr(t[n],t));}),t;}),Hr=hn(function(t,n,r){var e=3;if(r.length){var i=Qt(r,Zt(Hr));e|=32;}return rn(n,e,t,r,i);});Hr.placeholder={};Pr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");Wr="\\ud800-\\udfff",zr="["+Wr+"]",Kr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Gr="\\ud83c[\\udffb-\\udfff]",Qr="[^"+Wr+"]",Yr="(?:\\ud83c[\\udde6-\\uddff]){2}",Jr="[\\ud800-\\udbff][\\udc00-\\udfff]",Xr="(?:"+Kr+"|"+Gr+")"+"?",te="[\\ufe0e\\ufe0f]?",ne=te+Xr+("(?:\\u200d(?:"+[Qr,Yr,Jr].join("|")+")"+te+Xr+")*"),re="(?:"+[Qr+Kr+"?",Kr,Yr,Jr,zr].join("|")+")",ee=RegExp(Gr+"(?="+Gr+")|"+re+ne,"g");oe=se("toUpperCase");ae=le({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,he=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;pe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;be="\\ud800-\\udfff",ye="\\u2700-\\u27bf",me="a-z\\xdf-\\xf6\\xf8-\\xff",ge="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="["+we+"]",je="\\d+",ke="["+ye+"]",Ae="["+me+"]",qe="[^"+be+we+je+ye+me+ge+"]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="["+ge+"]",_e="(?:"+Ae+"|"+qe+")",Te="(?:"+Ee+"|"+qe+")",Le="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Se="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Ne="[\\ufe0e\\ufe0f]?",Re=Ne+Se+("(?:\\u200d(?:"+["[^"+be+"]",Oe,Me].join("|")+")"+Ne+Se+")*"),Ie="(?:"+[ke,Oe,Me].join("|")+")"+Re,Be=RegExp([Ee+"?"+Ae+"+"+Le+"(?="+[xe,Ee,"$"].join("|")+")",Te+"+"+$e+"(?="+[xe,Ee+_e,"$"].join("|")+")",Ee+"?"+_e+"+"+Le,Ee+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ie].join("|"),"g");De=RegExp("['’]","g");He=Ve(function(t,n,r){return n=n.toLowerCase(),t+(r?ue(n):n);});Fe=a.isFinite,Ue=Math.min;Ze=Pe("ceil");ze=Math.ceil,Ke=Math.max;Qe.prototype.clear=function(){this.A=new cr(),this.size=0;},Qe.prototype["delete"]=function(t){var n=this.A,r=n["delete"](t);return this.size=n.size,r;},Qe.prototype.get=function(t){return this.A.get(t);},Qe.prototype.has=function(t){return this.A.has(t);},Qe.prototype.set=function(t,n){var r=this.A;if(r instanceof cr){var e=r.A;if(!lr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.A=new fr(e);}return r.set(t,n),this.size=r.size,this;};Je="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,Xe=Je&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,ti=Xe&&Xe.exports===Je?a.Buffer:void 0,ni=ti?ti.allocUnsafe:void 0;si=Object.prototype.propertyIsEnumerable,oi=Object.getOwnPropertySymbols,ui=oi?function(t){return null==t?[]:(t=Object(t),ei(oi(t),function(n){return si.call(t,n);}));}:ii;ci=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)jr(n,ui(t)),t=_r(t);return n;}:ii;hi=rt(a,"DataView"),vi=rt(a,"Promise"),di=rt(a,"Set"),pi="[object Map]",bi="[object Promise]",yi="[object Set]",mi="[object WeakMap]",gi="[object DataView]",wi=K(hi),xi=K(lr),ji=K(vi),ki=K(di),Ai=K(et),qi=m;(hi&&qi(new hi(new ArrayBuffer(1)))!=gi||lr&&qi(new lr())!=pi||vi&&qi(vi.resolve())!=bi||di&&qi(new di())!=yi||et&&qi(new et())!=mi)&&(qi=function qi(t){var n=m(t),r="[object Object]"==n?t.constructor:void 0,e=r?K(r):"";if(e)switch(e){case wi:return gi;case xi:return pi;case ji:return bi;case ki:return yi;case Ai:return mi;}return n;});Oi=qi,Mi=Object.prototype.hasOwnProperty;Ei=a.Uint8Array;Ti=/\w*$/;Li=f?f.prototype:void 0,$i=Li?Li.valueOf:void 0;Ii=Rn&&Rn.isMap,Bi=Ii?Ln(Ii):function(t){return g(t)&&"[object Map]"==Oi(t);};Ci=Rn&&Rn.isSet,Di=Ci?Ln(Ci):function(t){return g(t)&&"[object Set]"==Oi(t);},Vi="[object Arguments]",Hi="[object Function]",Fi="[object Object]",Ui={};Ui[Vi]=Ui["[object Array]"]=Ui["[object ArrayBuffer]"]=Ui["[object DataView]"]=Ui["[object Boolean]"]=Ui["[object Date]"]=Ui["[object Float32Array]"]=Ui["[object Float64Array]"]=Ui["[object Int8Array]"]=Ui["[object Int16Array]"]=Ui["[object Int32Array]"]=Ui["[object Map]"]=Ui["[object Number]"]=Ui[Fi]=Ui["[object RegExp]"]=Ui["[object Set]"]=Ui["[object String]"]=Ui["[object Symbol]"]=Ui["[object Uint8Array]"]=Ui["[object Uint8ClampedArray]"]=Ui["[object Uint16Array]"]=Ui["[object Uint32Array]"]=!0,Ui["[object Error]"]=Ui[Hi]=Ui["[object WeakMap]"]=!1;Wi.prototype.add=Wi.prototype.push=function(t){return this.A.set(t,"__lodash_hash_undefined__"),this;},Wi.prototype.has=function(t){return this.A.has(t);};Ji=f?f.prototype:void 0,Xi=Ji?Ji.valueOf:void 0;ts=Object.prototype.hasOwnProperty;ns="[object Arguments]",rs="[object Array]",es="[object Object]",is=Object.prototype.hasOwnProperty;js=xs();qs=As(ks);Es=Object.prototype.hasOwnProperty,_s=Ms(function(t,n,r){Es.call(t,r)?++t[r]:sn(t,r,1);});Ts.placeholder={};Ls.placeholder={};$s=function $s(){return a.Date.now();},Ss=Math.max,Ns=Math.min;Is=Object.prototype,Bs=Is.hasOwnProperty,Cs=hn(function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&pn(n[0],n[1],i)&&(e=1);++r<e;)for(var s=n[r],o=Gn(s),u=-1,c=o.length;++u<c;){var l=o[u],a=t[l];(void 0===a||on(a,Is[l])&&!Bs.call(t,l))&&(t[l]=s[l]);}return t;});Zs=bn(function(t,n,r,e){Us(t,n,r,e);}),Ws=hn(function(t){return t.push(void 0,Ps),lt(Zs,void 0,t);});Ks=hn(function(t,n){return zs(t,1,n);}),Gs=hn(function(t,n,r){return zs(t,C(n)||0,r);});Js=hn(function(t,n){return Vs(t)?Ys(t,qr(n,1,Vs,!0)):[];});to=hn(function(t,n){var r=Xs(n);return Vs(r)&&(r=void 0),Vs(t)?Ys(t,qr(n,1,Vs,!0),ms(r)):[];}),no=hn(function(t,n){var r=Xs(n);return Vs(r)&&(r=void 0),Vs(t)?Ys(t,qr(n,1,Vs,!0),void 0,r):[];}),ro=M(function(t,n){return t/n;},1);uo=xs(!0);lo=As(co,!0);ho=fo(Pn),vo=fo(Gn),po=le({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),bo=/[&<>"']/g,yo=RegExp(bo.source);go=/[\\^$.*+?()[\]{}|]/g,wo=RegExp(go.source);Oo=Math.max;Eo=qo(Mo);To=Math.max,Lo=Math.min;So=qo($o);Bo=1/0;Co=1/0;Do=Pe("floor");Ho=Vo(),Fo=Vo(!0);Po=Object.prototype.hasOwnProperty,Zo=Ms(function(t,n,r){Po.call(t,r)?t[r].push(n):sn(t,r,[n]);});Ko=zo(Wo),Go=zo(function(t,n){return t>=n;}),Qo=Object.prototype.hasOwnProperty;Jo=Math.max,Xo=Math.min;eu=Math.max;iu=Math.max;su=Math.min;cu=hn(function(t){var n=j(t,uu);return n.length&&n[0]===t[0]?ou(n):[];}),lu=hn(function(t){var n=Xs(t),r=j(t,uu);return n===Xs(r)?n=void 0:r.pop(),r.length&&r[0]===t[0]?ou(r,ms(n)):[];}),au=hn(function(t){var n=Xs(t),r=j(t,uu);return(n="function"==typeof n?n:void 0)&&r.pop(),r.length&&r[0]===t[0]?ou(r,void 0,n):[];});hu=Object.prototype.toString,vu=fu(function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=hu.call(n)),t[n]=r;},St(F)),du=Object.prototype,pu=du.hasOwnProperty,bu=du.toString,yu=fu(function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=bu.call(n)),pu.call(t,n)?t[n].push(r):t[n]=[r];},ms);wu=hn(gu),xu=hn(function(t,n,r){var e=-1,i="function"==typeof n,s=dn(t)?Array(t.length):[];return qs(t,function(t){s[++e]=i?lt(n,t,r):gu(t,n,r);}),s;});ju=Rn&&Rn.isArrayBuffer,ku=ju?Ln(ju):function(t){return g(t)&&"[object ArrayBuffer]"==m(t);};Au=Rn&&Rn.isDate,qu=Au?Ln(Au):function(t){return g(t)&&"[object Date]"==m(t);};Ou=Object.prototype.hasOwnProperty;Eu=a.isFinite;Lu=Z?U:qn;$u=Rn&&Rn.isRegExp,Su=$u?Ln($u):function(t){return g(t)&&"[object RegExp]"==m(t);},Nu=9007199254740991;Ru=Array.prototype.join;Iu=Ve(function(t,n,r){return t+(r?"-":"")+n.toLowerCase();}),Bu=Ms(function(t,n,r){sn(t,r,n);});Cu=Math.max,Du=Math.min;Vu=Ve(function(t,n,r){return t+(r?" ":"")+n.toLowerCase();}),Hu=se("toLowerCase");Uu=zo(Fu),Pu=zo(function(t,n){return t<=n;});Ku=bn(function(t,n,r){Us(t,n,r);}),Gu=hn(function(t,n){return function(r){return gu(r,t,n);};}),Qu=hn(function(t,n){return function(r){return gu(t,r,n);};});Ju=M(function(t,n){return t*n;},1);tc=f?f.iterator:void 0;sc=Mr(function(t,n){var r={};if(null==t)return r;var e=!1;n=j(n,function(n){return n=yr(n,t),e||(e=n.length>1),n;}),ln(t,fi(t),r),e&&(r=Pi(r,7,ic));for(var i=n.length;i--;)ec(r,n[i]);return r;});hc=fc(j),vc=hn,dc=Math.min,pc=vc(function(t,n){var r=(n=1==n.length&&k(n[0])?j(n[0],Ln(ms)):j(qr(n,1),Ln(ms))).length;return hn(function(e){for(var i=-1,s=dc(e.length,r);++i<s;)e[i]=n[i].call(this,e[i]);return lt(t,this,e);});}),bc=fc(xo),yc=fc(zi),mc=Math.floor;wc=bs("length"),xc="\\ud800-\\udfff",jc="["+xc+"]",kc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ac="\\ud83c[\\udffb-\\udfff]",qc="[^"+xc+"]",Oc="(?:\\ud83c[\\udde6-\\uddff]){2}",Mc="[\\ud800-\\udbff][\\udc00-\\udfff]",Ec="(?:"+kc+"|"+Ac+")"+"?",_c="[\\ufe0e\\ufe0f]?",Tc=_c+Ec+("(?:\\u200d(?:"+[qc,Oc,Mc].join("|")+")"+_c+Ec+")*"),Lc="(?:"+[qc+kc+"?",kc,Oc,Mc,jc].join("|")+")",$c=RegExp(Ac+"(?="+Ac+")|"+Lc+Tc,"g");Nc=Math.ceil;Ic=Math.ceil,Bc=Math.floor;Cc=/^\s+/,Dc=a.parseInt;Vc=hn(function(t,n){return rn(t,32,void 0,n,Qt(n,Zt(Vc)));});Vc.placeholder={};Hc=hn(function(t,n){return rn(t,64,void 0,n,Qt(n,Zt(Hc)));});Hc.placeholder={};Fc=Ms(function(t,n,r){t[r?0:1].push(n);},function(){return[[],[]];});Uc=Mr(function(t,n){return null==t?{}:function(t,n){return uc(t,n,function(n,r){return ds(t,r);});}(t,n);});Zc=Array.prototype.splice;Kc=hn(zc);Gc=Array.prototype.splice;Yc=Mr(function(t,n){var r=null==t?0:t.length,e=xr(t,n);return Qc(t,j(n,function(t){return zt(t,r)?+t:t;}).sort(lc)),e;}),Jc=Math.floor,Xc=Math.random;nl=parseFloat,rl=Math.min,el=Math.random;il=Math.ceil,sl=Math.max;ul=ol(),cl=ol(!0),ll=Mr(function(t,n){return rn(t,256,void 0,void 0,void 0,n);});hl=Array.prototype.reverse;dl=Pe("round");jl=Ve(function(t,n,r){return t+(r?"_":"")+n.toLowerCase();});Al=hn(function(t,n){if(null==t)return[];var r=n.length;return r>1&&pn(t,n[0],n[1])?n=[]:r>2&&pn(n[0],n[1],n[2])&&(n=[n[0]]),ac(t,qr(n,1),[]);}),ql=Math.floor,Ol=Math.min;Tl=Math.max;Ll=Ve(function(t,n,r){return t+(r?" ":"")+oe(n);});$l=M(function(t,n){return t-n;},0);Sl=Object.prototype,Nl=Sl.hasOwnProperty;Il={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};Cl=/<%=([\s\S]+?)%>/g,Dl={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Cl,variable:"",imports:{_:{escape:mo}}},Vl=/\b__p \+= '';/g,Hl=/\b(__p \+=) '' \+/g,Fl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ul=/[()=,{}\[\]\/\s]/,Pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zl=/($^)/,Wl=/['\n\r\u2028\u2029\\]/g,zl=Object.prototype.hasOwnProperty;Gl=4294967295,Ql=Math.min;Xl=9007199254740991;ra=/^\s+/;ea=/\w*$/;ia=le({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),sa=/&(?:amp|lt|gt|quot|#39);/g,oa=RegExp(sa.source);ua=di&&1/Yi(new di([,-0]))[1]==1/0?function(t){return new di(t);}:bt;la=hn(function(t){return ca(qr(t,1,Vs,!0));}),aa=hn(function(t){var n=Xs(t);return Vs(n)&&(n=void 0),ca(qr(t,1,Vs,!0),ms(n));}),fa=hn(function(t){var n=Xs(t);return n="function"==typeof n?n:void 0,ca(qr(t,1,Vs,!0),void 0,n);});ha=0;va=Math.max;ya=Ve(function(t,n,r){return t+(r?" ":"")+n.toUpperCase();});ma=hn(function(t,n){return Vs(t)?Ys(t,n):[];});ga=Mr(function(t){var n=t.length,r=n?t[0]:0,e=this.i,i=function i(n){return xr(n,t);};return!(n>1||this.o.length)&&e instanceof pt&&zt(r)?((e=e.slice(r,+r+(n?1:0))).o.push({func:Kl,args:[i],thisArg:void 0}),new xt(e,this.m).thru(function(t){return n&&!t.length&&t.push(void 0),t;})):this.thru(i);});xa=hn(function(t){return wa(ei(t,Vs));}),ja=hn(function(t){var n=Xs(t);return Vs(n)&&(n=void 0),wa(ei(t,Vs),ms(n));}),ka=hn(function(t){var n=Xs(t);return n="function"==typeof n?n:void 0,wa(ei(t,Vs),void 0,n);}),Aa=hn(da);Oa=hn(function(t){var n=t.length,r=n>1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,pa(t,r);}),Ma={chunk:function chunk(t,n,r){n=(r?pn(t,n,r):void 0===n)?1:Ke(H(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,s=0,o=Array(ze(e/n));i<e;)o[s++]=Fr(t,i,i+=n);return o;},compact:function compact(t){for(var n=-1,r=null==t?0:t.length,e=0,i=[];++n<r;){var s=t[n];s&&(i[e++]=s);}return i;},concat:function concat(){var t=arguments.length;if(!t)return[];for(var n=Array(t-1),r=arguments[0],e=t;e--;)n[e-1]=arguments[e];return jr(k(r)?jt(r):[r],qr(n,1));},difference:Js,differenceBy:to,differenceWith:no,drop:function drop(t,n,r){var e=null==t?0:t.length;return e?Fr(t,(n=r||void 0===n?1:H(n))<0?0:n,e):[];},dropRight:function dropRight(t,n,r){var e=null==t?0:t.length;return e?Fr(t,0,(n=e-(n=r||void 0===n?1:H(n)))<0?0:n):[];},dropRightWhile:function dropRightWhile(t,n){return t&&t.length?eo(t,ms(n),!0,!0):[];},dropWhile:function dropWhile(t,n){return t&&t.length?eo(t,ms(n),!0):[];},fill:function fill(t,n,r,e){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&pn(t,n,r)&&(r=0,e=i),function(t,n,r,e){var i=t.length;for((r=H(r))<0&&(r=-r>i?0:i+r),(e=void 0===e||e>i?i:H(e))<0&&(e+=i),e=r>e?0:ko(e);r<e;)t[r++]=n;return t;}(t,n,r,e)):[];},findIndex:Mo,findLastIndex:$o,first:No,flatten:Or,flattenDeep:function flattenDeep(t){return(null==t?0:t.length)?qr(t,Co):[];},flattenDepth:function flattenDepth(t,n){return(null==t?0:t.length)?qr(t,n=void 0===n?1:H(n)):[];},fromPairs:function fromPairs(t){for(var n=-1,r=null==t?0:t.length,e={};++n<r;){var i=t[n];e[i[0]]=i[1];}return e;},head:No,indexOf:function indexOf(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:H(r);return i<0&&(i=iu(e+i,0)),Vt(t,n,i);},initial:function initial(t){return(null==t?0:t.length)?Fr(t,0,-1):[];},intersection:cu,intersectionBy:lu,intersectionWith:au,join:function join(t,n){return null==t?"":Ru.call(t,n);},last:Xs,lastIndexOf:function lastIndexOf(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return void 0!==r&&(i=(i=H(r))<0?Cu(e+i,0):Du(i,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e;}(t,n,i):Ct(t,Dt,i,!0);},nth:function nth(t,n){return t&&t.length?rc(t,H(n)):void 0;},pull:Kc,pullAll:zc,pullAllBy:function pullAllBy(t,n,r){return t&&t.length&&n&&n.length?Wc(t,n,ms(r)):t;},pullAllWith:function pullAllWith(t,n,r){return t&&t.length&&n&&n.length?Wc(t,n,void 0,r):t;},pullAt:Yc,remove:function remove(t,n){var r=[];if(!t||!t.length)return r;var e=-1,i=[],s=t.length;for(n=ms(n);++e<s;){var o=t[e];n(o,e,t)&&(r.push(o),i.push(e));}return Qc(t,i),r;},reverse:vl,slice:function slice(t,n,r){var e=null==t?0:t.length;return e?(r&&"number"!=typeof r&&pn(t,n,r)?(n=0,r=e):(n=null==n?0:H(n),r=void 0===r?e:H(r)),Fr(t,n,r)):[];},sortedIndex:function sortedIndex(t,n){return El(t,n);},sortedIndexBy:function sortedIndexBy(t,n,r){return Ml(t,n,ms(r));},sortedIndexOf:function sortedIndexOf(t,n){var r=null==t?0:t.length;if(r){var e=El(t,n);if(e<r&&on(t[e],n))return e;}return-1;},sortedLastIndex:function sortedLastIndex(t,n){return El(t,n,!0);},sortedLastIndexBy:function sortedLastIndexBy(t,n,r){return Ml(t,n,ms(r),!0);},sortedLastIndexOf:function sortedLastIndexOf(t,n){if(null==t?0:t.length){var r=El(t,n,!0)-1;if(on(t[r],n))return r;}return-1;},sortedUniq:function sortedUniq(t){return t&&t.length?_l(t):[];},sortedUniqBy:function sortedUniqBy(t,n){return t&&t.length?_l(t,ms(n)):[];},tail:function tail(t){var n=null==t?0:t.length;return n?Fr(t,1,n):[];},take:function take(t,n,r){return t&&t.length?Fr(t,0,(n=r||void 0===n?1:H(n))<0?0:n):[];},takeRight:function takeRight(t,n,r){var e=null==t?0:t.length;return e?Fr(t,(n=e-(n=r||void 0===n?1:H(n)))<0?0:n,e):[];},takeRightWhile:function takeRightWhile(t,n){return t&&t.length?eo(t,ms(n),!1,!0):[];},takeWhile:function takeWhile(t,n){return t&&t.length?eo(t,ms(n)):[];},union:la,unionBy:aa,unionWith:fa,uniq:function uniq(t){return t&&t.length?ca(t):[];},uniqBy:function uniqBy(t,n){return t&&t.length?ca(t,ms(n)):[];},uniqWith:function uniqWith(t,n){return n="function"==typeof n?n:void 0,t&&t.length?ca(t,void 0,n):[];},unzip:da,unzipWith:pa,without:ma,xor:xa,xorBy:ja,xorWith:ka,zip:Aa,zipObject:function zipObject(t,n){return qa(t||[],n||[],cn);},zipObjectDeep:function zipObjectDeep(t,n){return qa(t||[],n||[],oc);},zipWith:Oa},Ea={countBy:_s,each:so,eachRight:ao,every:function every(t,n,r){var e=k(t)?xo:jo;return r&&pn(t,n,r)&&(n=void 0),e(t,ms(n));},filter:function filter(t,n){return(k(t)?ei:Ao)(t,ms(n));},find:Eo,findLast:So,flatMap:function flatMap(t,n){return qr(Io(t,n),1);},flatMapDeep:function flatMapDeep(t,n){return qr(Io(t,n),Bo);},flatMapDepth:function flatMapDepth(t,n,r){return r=void 0===r?1:H(r),qr(Io(t,n),r);},forEach:so,forEachRight:ao,groupBy:Zo,includes:function includes(t,n,r,e){t=dn(t)?t:ru(t),r=r&&!e?H(r):0;var i=t.length;return r<0&&(r=eu(i+r,0)),tu(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&Vt(t,n,r)>-1;},invokeMap:xu,keyBy:Bu,map:Io,orderBy:function orderBy(t,n,r,e){return null==t?[]:(k(n)||(n=null==n?[]:[n]),k(r=e?void 0:r)||(r=null==r?[]:[r]),ac(t,n,r));},partition:Fc,reduce:function reduce(t,n,r){var e=k(t)?ce:al,i=arguments.length<3;return e(t,ms(n),r,i,qs);},reduceRight:function reduceRight(t,n,r){var e=k(t)?fl:al,i=arguments.length<3;return e(t,ms(n),r,i,lo);},reject:function reject(t,n){return(k(t)?ei:Ao)(t,Xu(ms(n)));},sample:function sample(t){return(k(t)?pl:bl)(t);},sampleSize:function sampleSize(t,n,r){return n=(r?pn(t,n,r):void 0===n)?1:H(n),(k(t)?ml:gl)(t,n);},shuffle:function shuffle(t){return(k(t)?wl:xl)(t);},size:function size(t){if(null==t)return 0;if(dn(t))return tu(t)?Sc(t):t.length;var n=Oi(t);return"[object Map]"==n||"[object Set]"==n?t.size:Un(t).length;},some:function some(t,n,r){var e=k(t)?zi:kl;return r&&pn(t,n,r)&&(n=void 0),e(t,ms(n));},sortBy:Al},_a=$s,Ta={after:function after(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){if(--t<1)return n.apply(this,arguments);};},ary:en,before:Cr,bind:Dr,bindKey:Hr,curry:Ts,curryRight:Ls,debounce:Rs,defer:Ks,delay:Gs,flip:function flip(t){return rn(t,512);},memoize:hr,negate:Xu,once:function once(t){return Cr(2,t);},overArgs:pc,partial:Vc,partialRight:Hc,rearg:ll,rest:function rest(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return hn(t,n=void 0===n?n:H(n));},spread:function spread(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:Tl(H(n),0),hn(function(r){var e=r[n],i=Ur(r,0,n);return e&&jr(i,e),lt(t,this,i);});},throttle:function throttle(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return S(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),Rs(t,n,{leading:e,maxWait:n,trailing:i});},unary:function unary(t){return en(t,1);},wrap:function wrap(t,n){return Vc(io(n),t);}},La={castArray:function castArray(){if(!arguments.length)return[];var t=arguments[0];return k(t)?t:[t];},clone:function clone(t){return Pi(t,4);},cloneDeep:Zi,cloneDeepWith:function cloneDeepWith(t,n){return Pi(t,5,n="function"==typeof n?n:void 0);},cloneWith:function cloneWith(t,n){return Pi(t,4,n="function"==typeof n?n:void 0);},conformsTo:function conformsTo(t,n){return null==n||gs(t,n,Pn(n));},eq:on,gt:Ko,gte:Go,isArguments:An,isArray:k,isArrayBuffer:ku,isArrayLike:dn,isArrayLikeObject:Vs,isBoolean:function isBoolean(t){return!0===t||!1===t||g(t)&&"[object Boolean]"==m(t);},isBuffer:_n,isDate:qu,isElement:function isElement(t){return g(t)&&1===t.nodeType&&!Rr(t);},isEmpty:function isEmpty(t){if(null==t)return!0;if(dn(t)&&(k(t)||"string"==typeof t||"function"==typeof t.splice||_n(t)||Bn(t)||An(t)))return!t.length;var n=Oi(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(mn(t))return!Un(t).length;for(var r in t)if(Ou.call(t,r))return!1;return!0;},isEqual:Mu,isEqualWith:function isEqualWith(t,n,r){var e=(r="function"==typeof r?r:void 0)?r(t,n):void 0;return void 0===e?os(t,n,void 0,r):!!e;},isError:Ir,isFinite:function isFinite(t){return"number"==typeof t&&Eu(t);},isFunction:U,isInteger:_u,isLength:vn,isMap:Bi,isMatch:function isMatch(t,n){return t===n||us(t,n,ls(n));},isMatchWith:function isMatchWith(t,n,r){return r="function"==typeof r?r:void 0,us(t,n,ls(n),r);},isNaN:function isNaN(t){return Tu(t)&&t!=+t;},isNative:function isNative(t){if(Lu(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return nt(t);},isNil:function isNil(t){return null==t;},isNull:function isNull(t){return null===t;},isNumber:Tu,isObject:S,isObjectLike:g,isPlainObject:Rr,isRegExp:Su,isSafeInteger:function isSafeInteger(t){return _u(t)&&t>=-9007199254740991&&t<=Nu;},isSet:Di,isString:tu,isSymbol:w,isTypedArray:Bn,isUndefined:function isUndefined(t){return void 0===t;},isWeakMap:function isWeakMap(t){return g(t)&&"[object WeakMap]"==Oi(t);},isWeakSet:function isWeakSet(t){return g(t)&&"[object WeakSet]"==m(t);},lt:Uu,lte:Pu,toArray:nc,toFinite:V,toInteger:H,toLength:ko,toNumber:C,toPlainObject:Fs,toSafeInteger:function toSafeInteger(t){return t?Ge(H(t),-9007199254740991,Xl):0===t?t:0;},toString:br},$a={add:E,ceil:Ze,divide:ro,floor:Do,max:function max(t){return t&&t.length?Zu(t,F,Wo):void 0;},maxBy:function maxBy(t,n){return t&&t.length?Zu(t,ms(n),Wo):void 0;},mean:function mean(t){return zu(t,F);},meanBy:function meanBy(t,n){return zu(t,ms(n));},min:function min(t){return t&&t.length?Zu(t,F,Fu):void 0;},minBy:function minBy(t,n){return t&&t.length?Zu(t,ms(n),Fu):void 0;},multiply:Ju,round:dl,subtract:$l,sum:function sum(t){return t&&t.length?Wu(t,F):0;},sumBy:function sumBy(t,n){return t&&t.length?Wu(t,ms(n)):0;}},Sa=function Sa(t,n,r){return void 0===r&&(r=n,n=void 0),void 0!==r&&(r=(r=C(r))==r?r:0),void 0!==n&&(n=(n=C(n))==n?n:0),Ge(C(t),n,r);},Na=function Na(t,n,r){return n=V(n),void 0===r?(r=n,n=0):r=V(r),function(t,n,r){return t>=Xo(n,r)&&t<Jo(n,r);}(t=C(t),n,r);},Ra=function Ra(t,n,r){if(r&&"boolean"!=typeof r&&pn(t,n,r)&&(n=r=void 0),void 0===r&&("boolean"==typeof n?(r=n,n=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=V(t),void 0===n?(n=t,t=0):n=V(n)),t>n){var e=t;t=n,n=e;}if(r||t%1||n%1){var i=el();return rl(t+i*(n-t+nl("1e-"+((i+"").length-1))),n);}return tl(t,n);},Ia={assign:Wn,assignIn:Qn,assignInWith:Yn,assignWith:Jn,at:Er,create:function create(t,n){var r=ut(t);return null==n?r:Ye(r,n);},defaults:Cs,defaultsDeep:Ws,entries:ho,entriesIn:vo,extend:Qn,extendWith:Yn,findKey:function findKey(t,n){return _o(t,ms(n),ks);},findLastKey:function findLastKey(t,n){return _o(t,ms(n),co);},forIn:function forIn(t,n){return null==t?t:js(t,io(n),Gn);},forInRight:function forInRight(t,n){return null==t?t:uo(t,io(n),Gn);},forOwn:function forOwn(t,n){return t&&ks(t,io(n));},forOwnRight:function forOwnRight(t,n){return t&&co(t,io(n));},functions:function functions(t){return null==t?[]:Uo(t,Pn(t));},functionsIn:function functionsIn(t){return null==t?[]:Uo(t,Gn(t));},get:wr,has:function has(t,n){return null!=t&&vs(t,n,Yo);},hasIn:ds,invert:vu,invertBy:yu,invoke:wu,keys:Pn,keysIn:Gn,mapKeys:function mapKeys(t,n){var r={};return n=ms(n),ks(t,function(t,e,i){sn(r,n(t,e,i),t);}),r;},mapValues:function mapValues(t,n){var r={};return n=ms(n),ks(t,function(t,e,i){sn(r,e,n(t,e,i));}),r;},merge:Ku,mergeWith:Zs,omit:sc,omitBy:function omitBy(t,n){return cc(t,Xu(ms(n)));},pick:Uc,pickBy:cc,result:function result(t,n,r){var e=-1,i=(n=yr(n,t)).length;for(i||(i=1,t=void 0);++e<i;){var s=null==t?void 0:t[mr(n[e])];void 0===s&&(e=i,s=r),t=U(s)?s.call(t):s;}return t;},set:function set(t,n,r){return null==t?t:oc(t,n,r);},setWith:function setWith(t,n,r,e){return e="function"==typeof e?e:void 0,null==t?t:oc(t,n,r,e);},toPairs:ho,toPairsIn:vo,transform:function transform(t,n,r){var e=k(t),i=e||_n(t)||Bn(t);if(n=ms(n),null==r){var s=t&&t.constructor;r=i?e?new s():[]:S(t)&&U(s)?ut(_r(t)):{};}return(i?Bt:ks)(t,function(t,e,i){return n(r,t,e,i);}),r;},unset:function unset(t,n){return null==t||ec(t,n);},update:function update(t,n,r){return null==t?t:ba(t,n,io(r));},updateWith:function updateWith(t,n,r,e){return e="function"==typeof e?e:void 0,null==t?t:ba(t,n,io(r),e);},values:ru,valuesIn:function valuesIn(t){return null==t?[]:nu(t,Gn(t));}},Ba={at:ga,chain:We,commit:function commit(){return new xt(this.value(),this.m);},lodash:qt,next:function next(){void 0===this.k&&(this.k=nc(this.value()));var t=this.j>=this.k.length;return{done:t,value:t?void 0:this.k[this.j++]};},plant:function plant(t){for(var n,r=this;r instanceof dt;){var e=kt(r);e.j=0,e.k=void 0,n?i.i=e:n=e;var i=e;r=r.i;}return i.i=t,n;},reverse:function reverse(){var t=this.i;if(t instanceof pt){var n=t;return this.o.length&&(n=new pt(this)),(n=n.reverse()).o.push({func:Kl,args:[vl],thisArg:void 0}),new xt(n,this.m);}return this.thru(vl);},tap:function tap(t,n){return n(t),t;},thru:Kl,toIterator:function toIterator(){return this;},toJSON:Jl,value:Jl,valueOf:Jl,wrapperChain:function wrapperChain(){return We(this);}},Ca={camelCase:He,capitalize:ue,deburr:ve,endsWith:function endsWith(t,n,r){t=br(t),n=O(n);var e=t.length,i=r=void 0===r?e:Ge(H(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n;},escape:mo,escapeRegExp:function escapeRegExp(t){return(t=br(t))&&wo.test(t)?t.replace(go,"\\$&"):t;},kebabCase:Iu,lowerCase:Vu,lowerFirst:Hu,pad:function pad(t,n,r){t=br(t);var e=(n=H(n))?Sc(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return Rc(Bc(i),r)+t+Rc(Ic(i),r);},padEnd:function padEnd(t,n,r){t=br(t);var e=(n=H(n))?Sc(t):0;return n&&e<n?t+Rc(n-e,r):t;},padStart:function padStart(t,n,r){t=br(t);var e=(n=H(n))?Sc(t):0;return n&&e<n?Rc(n-e,r)+t:t;},parseInt:function parseInt(t,n,r){return r||null==n?n=0:n&&(n=+n),Dc(br(t).replace(Cc,""),n||0);},repeat:function repeat(t,n,r){return n=(r?pn(t,n,r):void 0===n)?1:H(n),gc(br(t),n);},replace:function replace(){var t=arguments,n=br(t[0]);return t.length<3?n:n.replace(t[1],t[2]);},snakeCase:jl,split:function split(t,n,r){return r&&"number"!=typeof r&&pn(t,n,r)&&(n=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=br(t))&&("string"==typeof n||null!=n&&!Su(n))&&!(n=O(n))&&Zr(t)?Ur(ie(t),0,r):t.split(n,r):[];},startCase:Ll,startsWith:function startsWith(t,n,r){return t=br(t),r=null==r?0:Ge(H(r),0,t.length),n=O(n),t.slice(r,r+n.length)==n;},template:function template(t,n,r){var e=Dl.imports._.templateSettings||Dl;r&&pn(t,n,r)&&(n=void 0),t=br(t),n=Yn({},n,e,Rl);var i,s,o=Yn({},n.imports,e.imports,Rl),u=Pn(o),c=nu(o,u),l=0,a=n.interpolate||Zl,f="__p += '",h=RegExp((n.escape||Zl).source+"|"+a.source+"|"+(a===Cl?Pl:Zl).source+"|"+(n.evaluate||Zl).source+"|$","g"),v=zl.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(n,r,e,o,u,c){return e||(e=o),f+=t.slice(l,c).replace(Wl,Bl),r&&(i=!0,f+="' +\n__e("+r+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),e&&(f+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=c+n.length,n;}),f+="';\n";var d=zl.call(n,"variable")&&n.variable;if(d){if(Ul.test(d))throw new Error("Invalid `variable` option passed into `_.template`");}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(Vl,""):f).replace(Hl,"$1").replace(Fl,"$1;"),f="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Br(function(){return Function(u,v+"return "+f).apply(void 0,c);});if(p.source=f,Ir(p))throw p;return p;},templateSettings:Dl,toLower:function toLower(t){return br(t).toLowerCase();},toUpper:function toUpper(t){return br(t).toUpperCase();},trim:function trim(t,n,r){if((t=br(t))&&(r||void 0===n))return $(t);if(!t||!(n=O(n)))return t;var e=ie(t),i=ie(n);return Ur(e,na(e,i),ta(e,i)+1).join("");},trimEnd:function trimEnd(t,n,r){if((t=br(t))&&(r||void 0===n))return t.slice(0,T(t)+1);if(!t||!(n=O(n)))return t;var e=ie(t);return Ur(e,0,ta(e,ie(n))+1).join("");},trimStart:function trimStart(t,n,r){if((t=br(t))&&(r||void 0===n))return t.replace(ra,"");if(!t||!(n=O(n)))return t;var e=ie(t);return Ur(e,na(e,ie(n))).join("");},truncate:function truncate(t,n){var r=30,e="...";if(S(n)){var i="separator"in n?n.separator:i;r="length"in n?H(n.length):r,e="omission"in n?O(n.omission):e;}var s=(t=br(t)).length;if(Zr(t)){var o=ie(t);s=o.length;}if(r>=s)return t;var u=r-Sc(e);if(u<1)return e;var c=o?Ur(o,0,u).join(""):t.slice(0,u);if(void 0===i)return c+e;if(o&&(u+=c.length-u),Su(i)){if(t.slice(u).search(i)){var l,a=c;for(i.global||(i=RegExp(i.source,br(ea.exec(i))+"g")),i.lastIndex=0;l=i.exec(a);)var f=l.index;c=c.slice(0,void 0===f?u:f);}}else if(t.indexOf(O(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h));}return c+e;},unescape:function unescape(t){return(t=br(t))&&oa.test(t)?t.replace(sa,ia):t;},upperCase:ya,upperFirst:oe,words:Ce},Da={attempt:Br,bindAll:Vr,cond:function cond(t){var n=null==t?0:t.length,r=ms;return t=n?j(t,function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]];}):[],hn(function(r){for(var e=-1;++e<n;){var i=t[e];if(lt(i[0],this,r))return lt(i[1],this,r);}});},conforms:function conforms(t){return function(t){var n=Pn(t);return function(r){return gs(r,t,n);};}(Pi(t,1));},constant:St,defaultTo:function defaultTo(t,n){return null==t||t!=t?n:t;},flow:Ho,flowRight:Fo,identity:F,iteratee:function iteratee(t){return ms("function"==typeof t?t:Pi(t,1));},matches:function matches(t){return fs(Pi(t,1));},matchesProperty:function matchesProperty(t,n){return ps(t,Pi(n,1));},method:Gu,methodOf:Qu,mixin:Yu,noop:bt,nthArg:function nthArg(t){return t=H(t),hn(function(n){return rc(n,t);});},over:hc,overEvery:bc,overSome:yc,property:ys,propertyOf:function propertyOf(t){return function(n){return null==t?void 0:gr(t,n);};},range:ul,rangeRight:cl,stubArray:ii,stubFalse:qn,stubObject:function stubObject(){return{};},stubString:function stubString(){return"";},stubTrue:function stubTrue(){return!0;},times:function times(t,n){if((t=H(t))<1||t>9007199254740991)return[];var r=Gl,e=Ql(t,Gl);n=io(n),t-=Gl;for(var i=gn(e,n);++r<t;)n(r);return i;},toPath:function toPath(t){return k(t)?j(t,mr):w(t)?[t]:jt(pr(br(t)));},uniqueId:function uniqueId(t){var n=++ha;return br(t)+n;}};Va=Math.max,Ha=Math.min;Fa=Math.min;/**
2
+ * @license
3
+ * Lodash (Custom Build) <https://lodash.com/>
4
+ * Build: `lodash modularize exports="es" -o ./`
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ * Released under MIT license <https://lodash.com/license>
7
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
+ */Pa=4294967295,Za=Array.prototype,Wa=Object.prototype.hasOwnProperty,za=f?f.iterator:void 0,Ka=Math.max,Ga=Math.min,Qa=function(t){return function(n,r,e){if(null==e){var i=S(r),s=i&&Pn(r),o=s&&s.length&&Uo(r,s);(o?o.length:i)||(e=r,r=n,n=this);}return t(n,r,e);};}(Yu);qt.after=Ta.after,qt.ary=Ta.ary,qt.assign=Ia.assign,qt.assignIn=Ia.assignIn,qt.assignInWith=Ia.assignInWith,qt.assignWith=Ia.assignWith,qt.at=Ia.at,qt.before=Ta.before,qt.bind=Ta.bind,qt.bindAll=Da.bindAll,qt.bindKey=Ta.bindKey,qt.castArray=La.castArray,qt.chain=Ba.chain,qt.chunk=Ma.chunk,qt.compact=Ma.compact,qt.concat=Ma.concat,qt.cond=Da.cond,qt.conforms=Da.conforms,qt.constant=Da.constant,qt.countBy=Ea.countBy,qt.create=Ia.create,qt.curry=Ta.curry,qt.curryRight=Ta.curryRight,qt.debounce=Ta.debounce,qt.defaults=Ia.defaults,qt.defaultsDeep=Ia.defaultsDeep,qt.defer=Ta.defer,qt.delay=Ta.delay,qt.difference=Ma.difference,qt.differenceBy=Ma.differenceBy,qt.differenceWith=Ma.differenceWith,qt.drop=Ma.drop,qt.dropRight=Ma.dropRight,qt.dropRightWhile=Ma.dropRightWhile,qt.dropWhile=Ma.dropWhile,qt.fill=Ma.fill,qt.filter=Ea.filter,qt.flatMap=Ea.flatMap,qt.flatMapDeep=Ea.flatMapDeep,qt.flatMapDepth=Ea.flatMapDepth,qt.flatten=Ma.flatten,qt.flattenDeep=Ma.flattenDeep,qt.flattenDepth=Ma.flattenDepth,qt.flip=Ta.flip,qt.flow=Da.flow,qt.flowRight=Da.flowRight,qt.fromPairs=Ma.fromPairs,qt.functions=Ia.functions,qt.functionsIn=Ia.functionsIn,qt.groupBy=Ea.groupBy,qt.initial=Ma.initial,qt.intersection=Ma.intersection,qt.intersectionBy=Ma.intersectionBy,qt.intersectionWith=Ma.intersectionWith,qt.invert=Ia.invert,qt.invertBy=Ia.invertBy,qt.invokeMap=Ea.invokeMap,qt.iteratee=Da.iteratee,qt.keyBy=Ea.keyBy,qt.keys=Pn,qt.keysIn=Ia.keysIn,qt.map=Ea.map,qt.mapKeys=Ia.mapKeys,qt.mapValues=Ia.mapValues,qt.matches=Da.matches,qt.matchesProperty=Da.matchesProperty,qt.memoize=Ta.memoize,qt.merge=Ia.merge,qt.mergeWith=Ia.mergeWith,qt.method=Da.method,qt.methodOf=Da.methodOf,qt.mixin=Qa,qt.negate=Xu,qt.nthArg=Da.nthArg,qt.omit=Ia.omit,qt.omitBy=Ia.omitBy,qt.once=Ta.once,qt.orderBy=Ea.orderBy,qt.over=Da.over,qt.overArgs=Ta.overArgs,qt.overEvery=Da.overEvery,qt.overSome=Da.overSome,qt.partial=Ta.partial,qt.partialRight=Ta.partialRight,qt.partition=Ea.partition,qt.pick=Ia.pick,qt.pickBy=Ia.pickBy,qt.property=Da.property,qt.propertyOf=Da.propertyOf,qt.pull=Ma.pull,qt.pullAll=Ma.pullAll,qt.pullAllBy=Ma.pullAllBy,qt.pullAllWith=Ma.pullAllWith,qt.pullAt=Ma.pullAt,qt.range=Da.range,qt.rangeRight=Da.rangeRight,qt.rearg=Ta.rearg,qt.reject=Ea.reject,qt.remove=Ma.remove,qt.rest=Ta.rest,qt.reverse=Ma.reverse,qt.sampleSize=Ea.sampleSize,qt.set=Ia.set,qt.setWith=Ia.setWith,qt.shuffle=Ea.shuffle,qt.slice=Ma.slice,qt.sortBy=Ea.sortBy,qt.sortedUniq=Ma.sortedUniq,qt.sortedUniqBy=Ma.sortedUniqBy,qt.split=Ca.split,qt.spread=Ta.spread,qt.tail=Ma.tail,qt.take=Ma.take,qt.takeRight=Ma.takeRight,qt.takeRightWhile=Ma.takeRightWhile,qt.takeWhile=Ma.takeWhile,qt.tap=Ba.tap,qt.throttle=Ta.throttle,qt.thru=Kl,qt.toArray=La.toArray,qt.toPairs=Ia.toPairs,qt.toPairsIn=Ia.toPairsIn,qt.toPath=Da.toPath,qt.toPlainObject=La.toPlainObject,qt.transform=Ia.transform,qt.unary=Ta.unary,qt.union=Ma.union,qt.unionBy=Ma.unionBy,qt.unionWith=Ma.unionWith,qt.uniq=Ma.uniq,qt.uniqBy=Ma.uniqBy,qt.uniqWith=Ma.uniqWith,qt.unset=Ia.unset,qt.unzip=Ma.unzip,qt.unzipWith=Ma.unzipWith,qt.update=Ia.update,qt.updateWith=Ia.updateWith,qt.values=Ia.values,qt.valuesIn=Ia.valuesIn,qt.without=Ma.without,qt.words=Ca.words,qt.wrap=Ta.wrap,qt.xor=Ma.xor,qt.xorBy=Ma.xorBy,qt.xorWith=Ma.xorWith,qt.zip=Ma.zip,qt.zipObject=Ma.zipObject,qt.zipObjectDeep=Ma.zipObjectDeep,qt.zipWith=Ma.zipWith,qt.entries=Ia.toPairs,qt.entriesIn=Ia.toPairsIn,qt.extend=Ia.assignIn,qt.extendWith=Ia.assignInWith,Qa(qt,qt),qt.add=$a.add,qt.attempt=Da.attempt,qt.camelCase=Ca.camelCase,qt.capitalize=Ca.capitalize,qt.ceil=$a.ceil,qt.clamp=Sa,qt.clone=La.clone,qt.cloneDeep=La.cloneDeep,qt.cloneDeepWith=La.cloneDeepWith,qt.cloneWith=La.cloneWith,qt.conformsTo=La.conformsTo,qt.deburr=Ca.deburr,qt.defaultTo=Da.defaultTo,qt.divide=$a.divide,qt.endsWith=Ca.endsWith,qt.eq=La.eq,qt.escape=Ca.escape,qt.escapeRegExp=Ca.escapeRegExp,qt.every=Ea.every,qt.find=Ea.find,qt.findIndex=Ma.findIndex,qt.findKey=Ia.findKey,qt.findLast=Ea.findLast,qt.findLastIndex=Ma.findLastIndex,qt.findLastKey=Ia.findLastKey,qt.floor=$a.floor,qt.forEach=Ea.forEach,qt.forEachRight=Ea.forEachRight,qt.forIn=Ia.forIn,qt.forInRight=Ia.forInRight,qt.forOwn=Ia.forOwn,qt.forOwnRight=Ia.forOwnRight,qt.get=Ia.get,qt.gt=La.gt,qt.gte=La.gte,qt.has=Ia.has,qt.hasIn=Ia.hasIn,qt.head=Ma.head,qt.identity=F,qt.includes=Ea.includes,qt.indexOf=Ma.indexOf,qt.inRange=Na,qt.invoke=Ia.invoke,qt.isArguments=La.isArguments,qt.isArray=k,qt.isArrayBuffer=La.isArrayBuffer,qt.isArrayLike=La.isArrayLike,qt.isArrayLikeObject=La.isArrayLikeObject,qt.isBoolean=La.isBoolean,qt.isBuffer=La.isBuffer,qt.isDate=La.isDate,qt.isElement=La.isElement,qt.isEmpty=La.isEmpty,qt.isEqual=La.isEqual,qt.isEqualWith=La.isEqualWith,qt.isError=La.isError,qt.isFinite=La.isFinite,qt.isFunction=La.isFunction,qt.isInteger=La.isInteger,qt.isLength=La.isLength,qt.isMap=La.isMap,qt.isMatch=La.isMatch,qt.isMatchWith=La.isMatchWith,qt.isNaN=La.isNaN,qt.isNative=La.isNative,qt.isNil=La.isNil,qt.isNull=La.isNull,qt.isNumber=La.isNumber,qt.isObject=S,qt.isObjectLike=La.isObjectLike,qt.isPlainObject=La.isPlainObject,qt.isRegExp=La.isRegExp,qt.isSafeInteger=La.isSafeInteger,qt.isSet=La.isSet,qt.isString=La.isString,qt.isSymbol=La.isSymbol,qt.isTypedArray=La.isTypedArray,qt.isUndefined=La.isUndefined,qt.isWeakMap=La.isWeakMap,qt.isWeakSet=La.isWeakSet,qt.join=Ma.join,qt.kebabCase=Ca.kebabCase,qt.last=Xs,qt.lastIndexOf=Ma.lastIndexOf,qt.lowerCase=Ca.lowerCase,qt.lowerFirst=Ca.lowerFirst,qt.lt=La.lt,qt.lte=La.lte,qt.max=$a.max,qt.maxBy=$a.maxBy,qt.mean=$a.mean,qt.meanBy=$a.meanBy,qt.min=$a.min,qt.minBy=$a.minBy,qt.stubArray=Da.stubArray,qt.stubFalse=Da.stubFalse,qt.stubObject=Da.stubObject,qt.stubString=Da.stubString,qt.stubTrue=Da.stubTrue,qt.multiply=$a.multiply,qt.nth=Ma.nth,qt.noop=Da.noop,qt.now=_a,qt.pad=Ca.pad,qt.padEnd=Ca.padEnd,qt.padStart=Ca.padStart,qt.parseInt=Ca.parseInt,qt.random=Ra,qt.reduce=Ea.reduce,qt.reduceRight=Ea.reduceRight,qt.repeat=Ca.repeat,qt.replace=Ca.replace,qt.result=Ia.result,qt.round=$a.round,qt.sample=Ea.sample,qt.size=Ea.size,qt.snakeCase=Ca.snakeCase,qt.some=Ea.some,qt.sortedIndex=Ma.sortedIndex,qt.sortedIndexBy=Ma.sortedIndexBy,qt.sortedIndexOf=Ma.sortedIndexOf,qt.sortedLastIndex=Ma.sortedLastIndex,qt.sortedLastIndexBy=Ma.sortedLastIndexBy,qt.sortedLastIndexOf=Ma.sortedLastIndexOf,qt.startCase=Ca.startCase,qt.startsWith=Ca.startsWith,qt.subtract=$a.subtract,qt.sum=$a.sum,qt.sumBy=$a.sumBy,qt.template=Ca.template,qt.times=Da.times,qt.toFinite=La.toFinite,qt.toInteger=H,qt.toLength=La.toLength,qt.toLower=Ca.toLower,qt.toNumber=La.toNumber,qt.toSafeInteger=La.toSafeInteger,qt.toString=La.toString,qt.toUpper=Ca.toUpper,qt.trim=Ca.trim,qt.trimEnd=Ca.trimEnd,qt.trimStart=Ca.trimStart,qt.truncate=Ca.truncate,qt.unescape=Ca.unescape,qt.uniqueId=Da.uniqueId,qt.upperCase=Ca.upperCase,qt.upperFirst=Ca.upperFirst,qt.each=Ea.forEach,qt.eachRight=Ea.forEachRight,qt.first=Ma.head,Qa(qt,(Ua={},ks(qt,function(t,n){Wa.call(qt.prototype,n)||(Ua[n]=t);}),Ua),{chain:!1}),qt.VERSION="4.17.21",(qt.templateSettings=Ca.templateSettings).imports._=qt,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){qt[t].placeholder=qt;}),Bt(["drop","take"],function(t,n){pt.prototype[t]=function(r){r=void 0===r?1:Ka(H(r),0);var e=this.l&&!n?new pt(this):this.clone();return e.l?e.v=Ga(r,e.v):e.p.push({size:Ga(r,Pa),type:t+(e.u<0?"Right":"")}),e;},pt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse();};}),Bt(["filter","map","takeWhile"],function(t,n){var r=n+1,e=1==r||3==r;pt.prototype[t]=function(t){var n=this.clone();return n.h.push({iteratee:ms(t),type:r}),n.l=n.l||e,n;};}),Bt(["head","last"],function(t,n){var r="take"+(n?"Right":"");pt.prototype[t]=function(){return this[r](1).value()[0];};}),Bt(["initial","tail"],function(t,n){var r="drop"+(n?"":"Right");pt.prototype[t]=function(){return this.l?new pt(this):this[r](1);};}),pt.prototype.compact=function(){return this.filter(F);},pt.prototype.find=function(t){return this.filter(t).head();},pt.prototype.findLast=function(t){return this.reverse().find(t);},pt.prototype.invokeMap=hn(function(t,n){return"function"==typeof t?new pt(this):this.map(function(r){return gu(r,t,n);});}),pt.prototype.reject=function(t){return this.filter(Xu(ms(t)));},pt.prototype.slice=function(t,n){t=H(t);var r=this;return r.l&&(t>0||n<0)?new pt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=H(n))<0?r.dropRight(-n):r.take(n-t)),r);},pt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse();},pt.prototype.toArray=function(){return this.take(Pa);},ks(pt.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=qt[e?"take"+("last"==n?"Right":""):n],s=e||/^find/.test(n);i&&(qt.prototype[n]=function(){var n=this.i,o=e?[1]:arguments,u=n instanceof pt,c=o[0],l=u||k(n),a=function a(t){var n=i.apply(qt,jr([t],o));return e&&f?n[0]:n;};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.m,h=!!this.o.length,v=s&&!f,d=u&&!h;if(!s&&l){n=d?n:new pt(this);var p=t.apply(n,o);return p.o.push({func:Kl,args:[a],thisArg:void 0}),new xt(p,f);}return v&&d?t.apply(this,o):(p=this.thru(a),v?e?p.value()[0]:p.value():p);});}),Bt(["pop","push","shift","sort","splice","unshift"],function(t){var n=Za[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);qt.prototype[t]=function(){var t=arguments;if(e&&!this.m){var i=this.value();return n.apply(k(i)?i:[],t);}return this[r](function(r){return n.apply(k(r)?r:[],t);});};}),ks(pt.prototype,function(t,n){var r=qt[n];if(r){var e=r.name+"";Wa.call(mt,e)||(mt[e]=[]),mt[e].push({name:n,func:r});}}),mt[Yt(void 0,2).name]=[{name:"wrapper",func:void 0}],pt.prototype.clone=function(){var t=new pt(this.i);return t.o=jt(this.o),t.u=this.u,t.l=this.l,t.h=jt(this.h),t.v=this.v,t.p=jt(this.p),t;},pt.prototype.reverse=function(){if(this.l){var t=new pt(this);t.u=-1,t.l=!0;}else(t=this.clone()).u*=-1;return t;},pt.prototype.value=function(){var t=this.i.value(),n=this.u,r=k(t),e=n<0,i=r?t.length:0,s=function(t,n,r){for(var e=-1,i=r.length;++e<i;){var s=r[e],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":n-=o;break;case"take":n=Ha(n,t+o);break;case"takeRight":t=Va(t,n-o);}}return{start:t,end:n};}(0,i,this.p),o=s.start,u=s.end,c=u-o,l=e?u:o-1,a=this.h,f=a.length,h=0,v=Fa(c,this.v);if(!r||!e&&i==c&&v==c)return Yl(t,this.o);var d=[];t:for(;c--&&h<v;){for(var p=-1,b=t[l+=n];++p<f;){var y=a[p],m=y.iteratee,g=y.type,w=m(b);if(2==g)b=w;else if(!w){if(1==g)continue t;break t;}}d[h++]=b;}return d;},qt.prototype.at=Ba.at,qt.prototype.chain=Ba.wrapperChain,qt.prototype.commit=Ba.commit,qt.prototype.next=Ba.next,qt.prototype.plant=Ba.plant,qt.prototype.reverse=Ba.reverse,qt.prototype.toJSON=qt.prototype.valueOf=qt.prototype.value=Ba.value,qt.prototype.first=qt.prototype.head,za&&(qt.prototype[za]=Ba.toIterator);Ya=function(t){return t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t;}(Ya||{});Ja=/*#__PURE__*/function(){function Ja(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,Ja);this.attrName=t,this.keyName=n;var e=Ya.TYPE&Ya.ATTRIBUTE;this.scope=null!=r.scope?r.scope&Ya.LEVEL|e:Ya.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist);}return _createClass(Ja,[{key:"add",value:function add(t,n){return!!this.canAdd(t,n)&&(t.setAttribute(this.keyName,n),!0);}},{key:"canAdd",value:function canAdd(t,n){return null==this.whitelist||("string"==typeof n?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1);}},{key:"remove",value:function remove(t){t.removeAttribute(this.keyName);}},{key:"value",value:function value(t){var n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:"";}}],[{key:"keys",value:function keys(t){return Array.from(t.attributes).map(function(t){return t.name;});}}]);}();Xa=/*#__PURE__*/function(_Error){function Xa(t){var _this;_classCallCheck(this,Xa);_this=_callSuper(this,Xa,[t="[Parchment] "+t]),_this.message=t,_this.name=_this.constructor.name;return _this;}_inherits(Xa,_Error);return _createClass(Xa);}(/*#__PURE__*/_wrapNativeSuper(Error));tf=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);this.attributes={},this.classes={},this.tags={},this.types={};}return _createClass(t,[{key:"create",value:function create(n,r,e){var i=this.query(r);if(null==i)throw new Xa("Unable to create ".concat(r," blot"));var s=i,o=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:s.create(e),u=new s(n,o,e);return t.blots.set(u.domNode,u),u;}},{key:"find",value:function find(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return t.find(n,r);}},{key:"query",value:function query(_t3){var _this2=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Ya.ANY;var r;return"string"==typeof _t3?r=this.types[_t3]||this.attributes[_t3]:_t3 instanceof Text||_t3.nodeType===Node.TEXT_NODE?r=this.types.text:"number"==typeof _t3?_t3&Ya.LEVEL&Ya.BLOCK?r=this.types.block:_t3&Ya.LEVEL&Ya.INLINE&&(r=this.types.inline):_t3 instanceof Element&&((_t3.getAttribute("class")||"").split(/\s+/).some(function(_t4){return r=_this2.classes[_t4],!!r;}),r=r||this.tags[_t3.tagName]),null==r?null:"scope"in r&&n&Ya.LEVEL&r.scope&&n&Ya.TYPE&r.scope?r:null;}},{key:"register",value:function register(){var _this3=this;for(var _len=arguments.length,_t5=new Array(_len),_key=0;_key<_len;_key++){_t5[_key]=arguments[_key];}return _t5.map(function(_t6){var n="blotName"in _t6,r="attrName"in _t6;if(!n&&!r)throw new Xa("Invalid definition");if(n&&"abstract"===_t6.blotName)throw new Xa("Cannot register abstract class");var e=n?_t6.blotName:r?_t6.attrName:void 0;return _this3.types[e]=_t6,r?"string"==typeof _t6.keyName&&(_this3.attributes[_t6.keyName]=_t6):n&&(_t6.className&&(_this3.classes[_t6.className]=_t6),_t6.tagName&&(Array.isArray(_t6.tagName)?_t6.tagName=_t6.tagName.map(function(_t7){return _t7.toUpperCase();}):_t6.tagName=_t6.tagName.toUpperCase(),(Array.isArray(_t6.tagName)?_t6.tagName:[_t6.tagName]).forEach(function(n){(null==_this3.tags[n]||null==_t6.className)&&(_this3.tags[n]=_t6);}))),_t6;});}}],[{key:"find",value:function find(_t2){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(null==_t2)return null;if(this.blots.has(_t2))return this.blots.get(_t2)||null;if(n){var _r3=null;try{_r3=_t2.parentNode;}catch(_unused){return null;}return this.find(_r3,n);}return null;}}]);}();tf.blots=new WeakMap();nf=tf;ef=/*#__PURE__*/function(_Ja){function ef(){_classCallCheck(this,ef);return _callSuper(this,ef,arguments);}_inherits(ef,_Ja);return _createClass(ef,[{key:"add",value:function add(t,n){return!!this.canAdd(t,n)&&(this.remove(t),t.classList.add("".concat(this.keyName,"-").concat(n)),!0);}},{key:"remove",value:function remove(t){rf(t,this.keyName).forEach(function(n){t.classList.remove(n);}),0===t.classList.length&&t.removeAttribute("class");}},{key:"value",value:function value(t){var n=(rf(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:"";}}],[{key:"keys",value:function keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-");});}}]);}(Ja);of=/*#__PURE__*/function(_Ja2){function of(){_classCallCheck(this,of);return _callSuper(this,of,arguments);}_inherits(of,_Ja2);return _createClass(of,[{key:"add",value:function add(t,n){return!!this.canAdd(t,n)&&(t.style[sf(this.keyName)]=n,!0);}},{key:"remove",value:function remove(t){t.style[sf(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style");}},{key:"value",value:function value(t){var n=t.style[sf(this.keyName)];return this.canAdd(t,n)?n:"";}}],[{key:"keys",value:function keys(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim();});}}]);}(Ja);uf=/*#__PURE__*/function(){function uf(t){_classCallCheck(this,uf);this.attributes={},this.domNode=t,this.build();}return _createClass(uf,[{key:"attribute",value:function attribute(t,n){n?t.add(this.domNode,n)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName]);}},{key:"build",value:function build(){var _this4=this;this.attributes={};var t=nf.find(this.domNode);if(null==t)return;var n=Ja.keys(this.domNode),r=ef.keys(this.domNode),e=of.keys(this.domNode);n.concat(r).concat(e).forEach(function(n){var r=t.scroll.query(n,Ya.ATTRIBUTE);r instanceof Ja&&(_this4.attributes[r.attrName]=r);});}},{key:"copy",value:function copy(t){var _this5=this;Object.keys(this.attributes).forEach(function(n){var r=_this5.attributes[n].value(_this5.domNode);t.format(n,r);});}},{key:"move",value:function move(t){var _this6=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){_this6.attributes[t].remove(_this6.domNode);}),this.attributes={};}},{key:"values",value:function values(){var _this7=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=_this7.attributes[n].value(_this7.domNode),t;},{});}}]);}(),cf=/*#__PURE__*/function(){function cf(t,n){_classCallCheck(this,cf);this.scroll=t,this.domNode=n,nf.blots.set(n,this),this.prev=null,this.next=null;}return _createClass(cf,[{key:"statics",get:function get(){return this.constructor;}},{key:"attach",value:function attach(){}},{key:"clone",value:function clone(){var t=this.domNode.cloneNode(!1);return this.scroll.create(t);}},{key:"detach",value:function detach(){null!=this.parent&&this.parent.removeChild(this),nf.blots["delete"](this.domNode);}},{key:"deleteAt",value:function deleteAt(t,n){this.isolate(t,n).remove();}},{key:"formatAt",value:function formatAt(t,n,r,e){var i=this.isolate(t,n);if(null!=this.scroll.query(r,Ya.BLOT)&&e)i.wrap(r,e);else if(null!=this.scroll.query(r,Ya.ATTRIBUTE)){var _t8=this.scroll.create(this.statics.scope);i.wrap(_t8),_t8.format(r,e);}}},{key:"insertAt",value:function insertAt(t,n,r){var e=null==r?this.scroll.create("text",n):this.scroll.create(n,r),i=this.split(t);this.parent.insertBefore(e,i||void 0);}},{key:"isolate",value:function isolate(t,n){var r=this.split(t);if(null==r)throw new Error("Attempt to isolate at end");return r.split(n),r;}},{key:"length",value:function length(){return 1;}},{key:"offset",value:function offset(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.parent;return null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t);}},{key:"optimize",value:function optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName);}},{key:"remove",value:function remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach();}},{key:"replaceWith",value:function replaceWith(t,n){var r="string"==typeof t?this.scroll.create(t,n):t;return null!=this.parent&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r;}},{key:"split",value:function split(t,n){return 0===t?this:this.next;}},{key:"update",value:function update(t,n){}},{key:"wrap",value:function wrap(t,n){var r="string"==typeof t?this.scroll.create(t,n):t;if(null!=this.parent&&this.parent.insertBefore(r,this.next||void 0),"function"!=typeof r.appendChild)throw new Xa("Cannot wrap ".concat(t));return r.appendChild(this),r;}}],[{key:"create",value:function create(t){if(null==this.tagName)throw new Xa("Blot definition missing tagName");var n,r;return Array.isArray(this.tagName)?("string"==typeof t?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):"number"==typeof t&&(r=t),n="number"==typeof r?document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?document.createElement(r):document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n;}}]);}();cf.blotName="abstract";lf=cf;af=/*#__PURE__*/function(_lf){function af(){_classCallCheck(this,af);return _callSuper(this,af,arguments);}_inherits(af,_lf);return _createClass(af,[{key:"index",value:function index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1;}},{key:"position",value:function position(t,n){var r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r];}},{key:"value",value:function value(){return _defineProperty({},this.statics.blotName,this.statics.value(this.domNode)||!0);}}],[{key:"value",value:function value(t){return!0;}}]);}(lf);af.scope=Ya.INLINE_BLOT;ff=af;hf=/*#__PURE__*/function(){function hf(){_classCallCheck(this,hf);this.head=null,this.tail=null,this.length=0;}return _createClass(hf,[{key:"append",value:function append(){for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}if(this.insertBefore(t[0],null),t.length>1){var _n2=t.slice(1);this.append.apply(this,_toConsumableArray(_n2));}}},{key:"at",value:function at(t){var n=this.iterator();var r=n();for(;r&&t>0;)t-=1,r=n();return r;}},{key:"contains",value:function contains(t){var n=this.iterator();var r=n();for(;r;){if(r===t)return!0;r=n();}return!1;}},{key:"indexOf",value:function indexOf(t){var n=this.iterator();var r=n(),e=0;for(;r;){if(r===t)return e;e+=1,r=n();}return-1;}},{key:"insertBefore",value:function insertBefore(t,n){null!=t&&(this.remove(t),t.next=n,null!=n?(t.prev=n.prev,null!=n.prev&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1);}},{key:"offset",value:function offset(t){var n=0,r=this.head;for(;null!=r;){if(r===t)return n;n+=r.length(),r=r.next;}return-1;}},{key:"remove",value:function remove(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1);}},{key:"iterator",value:function iterator(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.head;return function(){var n=t;return null!=t&&(t=t.next),n;};}},{key:"find",value:function find(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var r=this.iterator();var e=r();for(;e;){var _i2=e.length();if(t<_i2||n&&t===_i2&&(null==e.next||0!==e.next.length()))return[e,t];t-=_i2,e=r();}return[null,0];}},{key:"forEach",value:function forEach(t){var n=this.iterator();var r=n();for(;r;)t(r),r=n();}},{key:"forEachAt",value:function forEachAt(t,n,r){if(n<=0)return;var _this$find=this.find(t),_this$find2=_slicedToArray(_this$find,2),e=_this$find2[0],i=_this$find2[1];var s=t-i;var o=this.iterator(e);var u=o();for(;u&&s<t+n;){var _e2=u.length();t>s?r(u,t-s,Math.min(n,s+_e2-t)):r(u,0,Math.min(_e2,t+n-s)),s+=_e2,u=o();}}},{key:"map",value:function map(t){return this.reduce(function(n,r){return n.push(t(r)),n;},[]);}},{key:"reduce",value:function reduce(t,n){var r=this.iterator();var e=r();for(;e;)n=t(n,e),e=r();return n;}}]);}();df=/*#__PURE__*/function(_lf2){function t(_t9,n){var _this8;_classCallCheck(this,t);_this8=_callSuper(this,t,[_t9,n]),_this8.uiNode=null,_this8.build();return _this8;}_inherits(t,_lf2);return _createClass(t,[{key:"appendChild",value:function appendChild(_t10){this.insertBefore(_t10);}},{key:"attach",value:function attach(){_superPropGet(t,"attach",this,3)([]),this.children.forEach(function(_t11){_t11.attach();});}},{key:"attachUI",value:function attachUI(n){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=n,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild);}},{key:"build",value:function build(){var _this9=this;this.children=new hf(),Array.from(this.domNode.childNodes).filter(function(_t12){return _t12!==_this9.uiNode;}).reverse().forEach(function(_t13){try{var _n3=vf(_t13,_this9.scroll);_this9.insertBefore(_n3,_this9.children.head||void 0);}catch(_t14){if(_t14 instanceof Xa)return;throw _t14;}});}},{key:"deleteAt",value:function deleteAt(_t15,n){if(0===_t15&&n===this.length())return this.remove();this.children.forEachAt(_t15,n,function(_t16,n,r){_t16.deleteAt(n,r);});}},{key:"descendant",value:function descendant(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var _this$children$find=this.children.find(r),_this$children$find2=_slicedToArray(_this$children$find,2),e=_this$children$find2[0],i=_this$children$find2[1];return null==n.blotName&&n(e)||null!=n.blotName&&e instanceof n?[e,i]:e instanceof t?e.descendant(n,i):[null,-1];}},{key:"descendants",value:function descendants(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Number.MAX_VALUE;var i=[],s=e;return this.children.forEachAt(r,e,function(r,e,o){(null==n.blotName&&n(r)||null!=n.blotName&&r instanceof n)&&i.push(r),r instanceof t&&(i=i.concat(r.descendants(n,e,s))),s-=o;}),i;}},{key:"detach",value:function detach(){this.children.forEach(function(_t17){_t17.detach();}),_superPropGet(t,"detach",this,3)([]);}},{key:"enforceAllowedChildren",value:function enforceAllowedChildren(){var _this10=this;var n=!1;this.children.forEach(function(r){n||_this10.statics.allowedChildren.some(function(_t18){return r instanceof _t18;})||(r.statics.scope===Ya.BLOCK_BLOT?(null!=r.next&&_this10.splitAfter(r),null!=r.prev&&_this10.splitAfter(r.prev),r.parent.unwrap(),n=!0):r instanceof t?r.unwrap():r.remove());});}},{key:"formatAt",value:function formatAt(_t19,n,r,e){this.children.forEachAt(_t19,n,function(_t20,n,i){_t20.formatAt(n,i,r,e);});}},{key:"insertAt",value:function insertAt(_t21,n,r){var _this$children$find3=this.children.find(_t21),_this$children$find4=_slicedToArray(_this$children$find3,2),e=_this$children$find4[0],i=_this$children$find4[1];if(e)e.insertAt(i,n,r);else{var _t22=null==r?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(_t22);}}},{key:"insertBefore",value:function insertBefore(_t23,n){null!=_t23.parent&&_t23.parent.children.remove(_t23);var r=null;this.children.insertBefore(_t23,n||null),_t23.parent=this,null!=n&&(r=n.domNode),(this.domNode.parentNode!==_t23.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(_t23.domNode,r),_t23.attach();}},{key:"length",value:function length(){return this.children.reduce(function(_t24,n){return _t24+n.length();},0);}},{key:"moveChildren",value:function moveChildren(_t25,n){this.children.forEach(function(r){_t25.insertBefore(r,n);});}},{key:"optimize",value:function optimize(_t26){if(_superPropGet(t,"optimize",this,3)([_t26]),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var _t27=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(_t27);}else this.remove();}},{key:"path",value:function path(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var _this$children$find5=this.children.find(n,r),_this$children$find6=_slicedToArray(_this$children$find5,2),e=_this$children$find6[0],i=_this$children$find6[1],s=[[this,n]];return e instanceof t?s.concat(e.path(i,r)):(null!=e&&s.push([e,i]),s);}},{key:"removeChild",value:function removeChild(_t28){this.children.remove(_t28);}},{key:"replaceWith",value:function replaceWith(n,r){var e="string"==typeof n?this.scroll.create(n,r):n;return e instanceof t&&this.moveChildren(e),_superPropGet(t,"replaceWith",this,3)([e]);}},{key:"split",value:function split(_t29){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(!n){if(0===_t29)return this;if(_t29===this.length())return this.next;}var r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(_t29,this.length(),function(_t30,e,i){var s=_t30.split(e,n);null!=s&&r.appendChild(s);}),r;}},{key:"splitAfter",value:function splitAfter(_t31){var n=this.clone();for(;null!=_t31.next;)n.appendChild(_t31.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n;}},{key:"unwrap",value:function unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove();}},{key:"update",value:function update(_t32,n){var _this11=this;var r=[],e=[];_t32.forEach(function(_t33){_t33.target===_this11.domNode&&"childList"===_t33.type&&(r.push.apply(r,_toConsumableArray(_t33.addedNodes)),e.push.apply(e,_toConsumableArray(_t33.removedNodes)));}),e.forEach(function(_t34){if(null!=_t34.parentNode&&"IFRAME"!==_t34.tagName&&document.body.compareDocumentPosition(_t34)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;var n=_this11.scroll.find(_t34);null!=n&&(null==n.domNode.parentNode||n.domNode.parentNode===_this11.domNode)&&n.detach();}),r.filter(function(_t35){return _t35.parentNode===_this11.domNode&&_t35!==_this11.uiNode;}).sort(function(_t36,n){return _t36===n?0:_t36.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1;}).forEach(function(_t37){var n=null;null!=_t37.nextSibling&&(n=_this11.scroll.find(_t37.nextSibling));var r=vf(_t37,_this11.scroll);(r.next!==n||null==r.next)&&(null!=r.parent&&r.parent.removeChild(_this11),_this11.insertBefore(r,n||void 0));}),this.enforceAllowedChildren();}}]);}(lf);df.uiClass="";pf=df;bf=/*#__PURE__*/function(_pf){function t(_t39,n){var _this12;_classCallCheck(this,t);_this12=_callSuper(this,t,[_t39,n]),_this12.attributes=new uf(_this12.domNode);return _this12;}_inherits(t,_pf);return _createClass(t,[{key:"format",value:function format(n,r){var _this13=this;if(n!==this.statics.blotName||r){var _t40=this.scroll.query(n,Ya.INLINE);if(null==_t40)return;_t40 instanceof Ja?this.attributes.attribute(_t40,r):r&&(n!==this.statics.blotName||this.formats()[n]!==r)&&this.replaceWith(n,r);}else this.children.forEach(function(n){n instanceof t||(n=n.wrap(t.blotName,!0)),_this13.attributes.copy(n);}),this.unwrap();}},{key:"formats",value:function formats(){var _t41=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return null!=n&&(_t41[this.statics.blotName]=n),_t41;}},{key:"formatAt",value:function formatAt(_t42,n,r,e){null!=this.formats()[r]||this.scroll.query(r,Ya.ATTRIBUTE)?this.isolate(_t42,n).format(r,e):_superPropGet(t,"formatAt",this,3)([_t42,n,r,e]);}},{key:"optimize",value:function optimize(n){_superPropGet(t,"optimize",this,3)([n]);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var e=this.next;e instanceof t&&e.prev===this&&function(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var _r5 in t)if(t[_r5]!==n[_r5])return!1;return!0;}(r,e.formats())&&(e.moveChildren(this),e.remove());}},{key:"replaceWith",value:function replaceWith(_t43,n){var r=_superPropGet(t,"replaceWith",this,3)([_t43,n]);return this.attributes.copy(r),r;}},{key:"update",value:function update(_t44,n){var _this14=this;_superPropGet(t,"update",this,3)([_t44,n]),_t44.some(function(_t45){return _t45.target===_this14.domNode&&"attributes"===_t45.type;})&&this.attributes.build();}},{key:"wrap",value:function wrap(n,r){var e=_superPropGet(t,"wrap",this,3)([n,r]);return e instanceof t&&this.attributes.move(e),e;}}],[{key:"create",value:function create(_t38){return _superPropGet(t,"create",this,2)([_t38]);}},{key:"formats",value:function formats(n,r){var e=r.query(t.blotName);if(null==e||n.tagName!==e.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase();}}}]);}(pf);bf.allowedChildren=[bf,ff],bf.blotName="inline",bf.scope=Ya.INLINE_BLOT,bf.tagName="SPAN";yf=bf,mf=/*#__PURE__*/function(_pf2){function t(_t47,n){var _this15;_classCallCheck(this,t);_this15=_callSuper(this,t,[_t47,n]),_this15.attributes=new uf(_this15.domNode);return _this15;}_inherits(t,_pf2);return _createClass(t,[{key:"format",value:function format(n,r){var e=this.scroll.query(n,Ya.BLOCK);null!=e&&(e instanceof Ja?this.attributes.attribute(e,r):n!==this.statics.blotName||r?r&&(n!==this.statics.blotName||this.formats()[n]!==r)&&this.replaceWith(n,r):this.replaceWith(t.blotName));}},{key:"formats",value:function formats(){var _t48=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return null!=n&&(_t48[this.statics.blotName]=n),_t48;}},{key:"formatAt",value:function formatAt(_t49,n,r,e){null!=this.scroll.query(r,Ya.BLOCK)?this.format(r,e):_superPropGet(t,"formatAt",this,3)([_t49,n,r,e]);}},{key:"insertAt",value:function insertAt(_t50,n,r){if(null==r||null!=this.scroll.query(n,Ya.INLINE))_superPropGet(t,"insertAt",this,3)([_t50,n,r]);else{var _e3=this.split(_t50);if(null==_e3)throw new Error("Attempt to insertAt after block boundaries");{var _t51=this.scroll.create(n,r);_e3.parent.insertBefore(_t51,_e3);}}}},{key:"replaceWith",value:function replaceWith(_t52,n){var r=_superPropGet(t,"replaceWith",this,3)([_t52,n]);return this.attributes.copy(r),r;}},{key:"update",value:function update(_t53,n){var _this16=this;_superPropGet(t,"update",this,3)([_t53,n]),_t53.some(function(_t54){return _t54.target===_this16.domNode&&"attributes"===_t54.type;})&&this.attributes.build();}}],[{key:"create",value:function create(_t46){return _superPropGet(t,"create",this,2)([_t46]);}},{key:"formats",value:function formats(n,r){var e=r.query(t.blotName);if(null==e||n.tagName!==e.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase();}}}]);}(pf);mf.blotName="block",mf.scope=Ya.BLOCK_BLOT,mf.tagName="P",mf.allowedChildren=[yf,mf,ff];gf=mf,wf=/*#__PURE__*/function(_pf3){function wf(){_classCallCheck(this,wf);return _callSuper(this,wf,arguments);}_inherits(wf,_pf3);return _createClass(wf,[{key:"checkMerge",value:function checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName;}},{key:"deleteAt",value:function deleteAt(t,n){_superPropGet(wf,"deleteAt",this,3)([t,n]),this.enforceAllowedChildren();}},{key:"formatAt",value:function formatAt(t,n,r,e){_superPropGet(wf,"formatAt",this,3)([t,n,r,e]),this.enforceAllowedChildren();}},{key:"insertAt",value:function insertAt(t,n,r){_superPropGet(wf,"insertAt",this,3)([t,n,r]),this.enforceAllowedChildren();}},{key:"optimize",value:function optimize(t){_superPropGet(wf,"optimize",this,3)([t]),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove());}}]);}(pf);wf.blotName="container",wf.scope=Ya.BLOCK_BLOT;xf=wf;jf=/*#__PURE__*/function(_ff){function jf(){_classCallCheck(this,jf);return _callSuper(this,jf,arguments);}_inherits(jf,_ff);return _createClass(jf,[{key:"format",value:function format(t,n){_superPropGet(jf,"formatAt",this,3)([0,this.length(),t,n]);}},{key:"formatAt",value:function formatAt(t,n,r,e){0===t&&n===this.length()?this.format(r,e):_superPropGet(jf,"formatAt",this,3)([t,n,r,e]);}},{key:"formats",value:function formats(){return this.statics.formats(this.domNode,this.scroll);}}],[{key:"formats",value:function formats(t,n){}}]);}(ff),kf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Af=/*#__PURE__*/function(_pf4){function Af(t,n){var _this17;_classCallCheck(this,Af);_this17=_callSuper(this,Af,[null,n]),_this17.registry=t,_this17.scroll=_assertThisInitialized(_this17),_this17.build(),_this17.observer=new MutationObserver(function(t){_this17.update(t);}),_this17.observer.observe(_this17.domNode,kf),_this17.attach();return _this17;}_inherits(Af,_pf4);return _createClass(Af,[{key:"create",value:function create(t,n){return this.registry.create(this,t,n);}},{key:"find",value:function find(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null;}},{key:"query",value:function query(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Ya.ANY;return this.registry.query(t,n);}},{key:"register",value:function register(){var _this$registry;return(_this$registry=this.registry).register.apply(_this$registry,arguments);}},{key:"build",value:function build(){null!=this.scroll&&_superPropGet(Af,"build",this,3)([]);}},{key:"detach",value:function detach(){_superPropGet(Af,"detach",this,3)([]),this.observer.disconnect();}},{key:"deleteAt",value:function deleteAt(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(t){t.remove();}):_superPropGet(Af,"deleteAt",this,3)([t,n]);}},{key:"formatAt",value:function formatAt(t,n,r,e){this.update(),_superPropGet(Af,"formatAt",this,3)([t,n,r,e]);}},{key:"insertAt",value:function insertAt(t,n,r){this.update(),_superPropGet(Af,"insertAt",this,3)([t,n,r]);}},{key:"optimize",value:function optimize(){var _this18=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_superPropGet(Af,"optimize",this,3)([n]);var r=n.mutationsMap||new WeakMap();var e=Array.from(this.observer.takeRecords());for(;e.length>0;)t.push(e.pop());var _i3=function i(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;null==t||t===_this18||null!=t.domNode.parentNode&&(r.has(t.domNode)||r.set(t.domNode,[]),n&&_i3(t.parent));},_s2=function s(t){r.has(t.domNode)&&(t instanceof pf&&t.children.forEach(_s2),r["delete"](t.domNode),t.optimize(n));};var o=t;for(var _n4=0;o.length>0;_n4+=1){if(_n4>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(o.forEach(function(t){var n=_this18.find(t.target,!0);null!=n&&(n.domNode===t.target&&("childList"===t.type?(_i3(_this18.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(function(t){var n=_this18.find(t,!1);_i3(n,!1),n instanceof pf&&n.children.forEach(function(t){_i3(t,!1);});})):"attributes"===t.type&&_i3(n.prev)),_i3(n));}),this.children.forEach(_s2),o=Array.from(this.observer.takeRecords()),e=o.slice();e.length>0;)t.push(e.pop());}}},{key:"update",value:function update(t){var _this19=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t=t||this.observer.takeRecords();var r=new WeakMap();t.map(function(t){var n=_this19.find(t.target,!0);return null==n?null:r.has(n.domNode)?(r.get(n.domNode).push(t),null):(r.set(n.domNode,[t]),n);}).forEach(function(t){null!=t&&t!==_this19&&r.has(t.domNode)&&t.update(r.get(t.domNode)||[],n);}),n.mutationsMap=r,r.has(this.domNode)&&_superPropGet(Af,"update",this,3)([r.get(this.domNode),n]),this.optimize(t,n);}}]);}(pf);Af.blotName="scroll",Af.defaultChild=gf,Af.allowedChildren=[gf,xf],Af.scope=Ya.BLOCK_BLOT,Af.tagName="DIV";qf=Af,Of=/*#__PURE__*/function(_ff2){function t(_t57,n){var _this20;_classCallCheck(this,t);_this20=_callSuper(this,t,[_t57,n]),_this20.text=_this20.statics.value(_this20.domNode);return _this20;}_inherits(t,_ff2);return _createClass(t,[{key:"deleteAt",value:function deleteAt(_t58,n){this.domNode.data=this.text=this.text.slice(0,_t58)+this.text.slice(_t58+n);}},{key:"index",value:function index(_t59,n){return this.domNode===_t59?n:-1;}},{key:"insertAt",value:function insertAt(_t60,n,r){null==r?(this.text=this.text.slice(0,_t60)+n+this.text.slice(_t60),this.domNode.data=this.text):_superPropGet(t,"insertAt",this,3)([_t60,n,r]);}},{key:"length",value:function length(){return this.text.length;}},{key:"optimize",value:function optimize(n){_superPropGet(t,"optimize",this,3)([n]),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove());}},{key:"position",value:function position(_t61){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return[this.domNode,_t61];}},{key:"split",value:function split(_t62){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(!n){if(0===_t62)return this;if(_t62===this.length())return this.next;}var r=this.scroll.create(this.domNode.splitText(_t62));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r;}},{key:"update",value:function update(_t63,n){var _this21=this;_t63.some(function(_t64){return"characterData"===_t64.type&&_t64.target===_this21.domNode;})&&(this.text=this.statics.value(this.domNode));}},{key:"value",value:function value(){return this.text;}}],[{key:"create",value:function create(_t55){return document.createTextNode(_t55);}},{key:"value",value:function value(_t56){return _t56.data;}}]);}(ff);Of.blotName="text",Of.scope=Ya.INLINE_BLOT;Mf=Of;Ef=Object.freeze({__proto__:null,Attributor:Ja,AttributorStore:uf,BlockBlot:gf,ClassAttributor:ef,ContainerBlot:xf,EmbedBlot:jf,InlineBlot:yf,LeafBlot:ff,ParentBlot:pf,Registry:nf,Scope:Ya,ScrollBlot:qf,StyleAttributor:of,TextBlot:Mf}),_f={exports:{}},Tf=-1;If=/[^a-zA-Z0-9]/,Bf=/\s/,Cf=/[\r\n]/,Df=/\n\r?\n$/,Vf=/^\r?\n\r?\n/;zf.INSERT=1,zf.DELETE=Tf,zf.EQUAL=0;Kf=zf,Gf={exports:{}};!function(t,n){var r="__lodash_hash_undefined__",e=9007199254740991,i="[object Arguments]",s="[object Boolean]",u="[object Date]",c="[object Function]",l="[object GeneratorFunction]",a="[object Map]",f="[object Number]",h="[object Object]",v="[object Promise]",d="[object RegExp]",p="[object Set]",b="[object String]",y="[object Symbol]",m="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",j="[object Float64Array]",k="[object Int8Array]",A="[object Int16Array]",q="[object Int32Array]",O="[object Uint8Array]",M="[object Uint8ClampedArray]",E="[object Uint16Array]",_="[object Uint32Array]",T=/\w*$/,L=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,S={};S[i]=S["[object Array]"]=S[g]=S[w]=S[s]=S[u]=S[x]=S[j]=S[k]=S[A]=S[q]=S[a]=S[f]=S[h]=S[d]=S[p]=S[b]=S[y]=S[O]=S[M]=S[E]=S[_]=!0,S["[object Error]"]=S[c]=S[m]=!1;var N="object"==_typeof(o)&&o&&o.Object===Object&&o,R="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,I=N||R||Function("return this")(),B=n&&!n.nodeType&&n,C=B&&t&&!t.nodeType&&t,D=C&&C.exports===B;function V(t,n){return t.set(n[0],n[1]),t;}function H(t,n){return t.add(n),t;}function F(t,n,r,e){var i=-1,s=t?t.length:0;for(e&&s&&(r=t[++i]);++i<s;)r=n(r,t[i],i,t);return r;}function U(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"");}catch(t){}return n;}function P(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t];}),r;}function Z(t,n){return function(r){return t(n(r));};}function W(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t;}),r;}var z=Array.prototype,K=Function.prototype,G=Object.prototype,Q=I["t"],Y=function(){var t=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:"";}(),J=K.toString,X=G.hasOwnProperty,tt=G.toString,nt=RegExp("^"+J.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=D?I.Buffer:void 0,et=I.Symbol,it=I.Uint8Array,st=Z(Object.getPrototypeOf,Object),ot=Object.create,ut=G.propertyIsEnumerable,ct=z.splice,lt=Object.getOwnPropertySymbols,at=rt?rt.isBuffer:void 0,ft=Z(Object.keys,Object),ht=Bt(I,"DataView"),vt=Bt(I,"Map"),dt=Bt(I,"Promise"),pt=Bt(I,"Set"),bt=Bt(I,"WeakMap"),yt=Bt(Object,"create"),mt=Ft(ht),gt=Ft(vt),wt=Ft(dt),xt=Ft(pt),jt=Ft(bt),kt=et?et.prototype:void 0,At=kt?kt.valueOf:void 0;function qt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function Ot(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function Mt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function Et(t){this.A=new Ot(t);}function _t(t,n){var r=Pt(t)||function(t){return function(t){return function(t){return!!t&&"object"==_typeof(t);}(t)&&Zt(t);}(t)&&X.call(t,"callee")&&(!ut.call(t,"callee")||tt.call(t)==i);}(t)?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e;}(t.length,String):[],e=r.length,s=!!e;for(var o in t)!n&&!X.call(t,o)||s&&("length"==o||Vt(o,e))||r.push(o);return r;}function Tt(t,n,r){var e=t[n];X.call(t,n)&&Ut(e,r)&&(void 0!==r||n in t)||(t[n]=r);}function Lt(t,n){for(var r=t.length;r--;)if(Ut(t[r][0],n))return r;return-1;}function $t(t,n,r,e,o,v,m){var L;if(e&&(L=v?e(t,o,v,m):e(t)),void 0!==L)return L;if(!Kt(t))return t;var $=Pt(t);if($){if(L=function(t){var n=t.length,r=t.constructor(n);n&&"string"==typeof t[0]&&X.call(t,"index")&&(r.index=t.index,r.input=t.input);return r;}(t),!n)return function(t,n){var r=-1,e=t.length;n||(n=Array(e));for(;++r<e;)n[r]=t[r];return n;}(t,L);}else{var N=Dt(t),R=N==c||N==l;if(Wt(t))return function(t,n){if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r;}(t,n);if(N==h||N==i||R&&!v){if(U(t))return v?t:{};if(L=function(t){return"function"!=typeof t.constructor||Ht(t)?{}:(n=st(t),Kt(n)?ot(n):{});var n;}(R?{}:t),!n)return function(t,n){return Rt(t,Ct(t),n);}(t,function(t,n){return t&&Rt(n,Gt(n),t);}(L,t));}else{if(!S[N])return v?t:{};L=function(t,n,r,e){var i=t.constructor;switch(n){case g:return Nt(t);case s:case u:return new i(+t);case w:return function(t,n){var r=n?Nt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength);}(t,e);case x:case j:case k:case A:case q:case O:case M:case E:case _:return function(t,n){var r=n?Nt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length);}(t,e);case a:return function(t,n,r){var e=n?r(P(t),!0):P(t);return F(e,V,new t.constructor());}(t,e,r);case f:case b:return new i(t);case d:return function(t){var n=new t.constructor(t.source,T.exec(t));return n.lastIndex=t.lastIndex,n;}(t);case p:return function(t,n,r){var e=n?r(W(t),!0):W(t);return F(e,H,new t.constructor());}(t,e,r);case y:return o=t,At?Object(At.call(o)):{};}var o;}(t,N,$t,n);}}m||(m=new Et());var I=m.get(t);if(I)return I;if(m.set(t,L),!$)var B=r?function(t){return function(t,n,r){var e=n(t);return Pt(t)?e:function(t,n){for(var r=-1,e=n.length,i=t.length;++r<e;)t[i+r]=n[r];return t;}(e,r(t));}(t,Gt,Ct);}(t):Gt(t);return function(t,n){for(var r=-1,e=t?t.length:0;++r<e&&!1!==n(t[r],r,t););}(B||t,function(i,s){B&&(i=t[s=i]),Tt(L,s,$t(i,n,r,e,s,t,m));}),L;}function St(t){return!(!Kt(t)||function(t){return!!Y&&Y in t;}(t))&&(zt(t)||U(t)?nt:L).test(Ft(t));}function Nt(t){var n=new t.constructor(t.byteLength);return new it(n).set(new it(t)),n;}function Rt(t,n,r,e){r||(r={});for(var i=-1,s=n.length;++i<s;){var o=n[i],u=e?e(r[o],t[o],o,r,t):void 0;Tt(r,o,void 0===u?t[o]:u);}return r;}function It(t,n){var r,e,i=t.A;return("string"==(e=_typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map;}function Bt(t,n){var r=function(t,n){return null==t?void 0:t[n];}(t,n);return St(r)?r:void 0;}qt.prototype.clear=function(){this.A=yt?yt(null):{};},qt.prototype["delete"]=function(t){return this.has(t)&&delete this.A[t];},qt.prototype.get=function(t){var n=this.A;if(yt){var e=n[t];return e===r?void 0:e;}return X.call(n,t)?n[t]:void 0;},qt.prototype.has=function(t){var n=this.A;return yt?void 0!==n[t]:X.call(n,t);},qt.prototype.set=function(t,n){return this.A[t]=yt&&void 0===n?r:n,this;},Ot.prototype.clear=function(){this.A=[];},Ot.prototype["delete"]=function(t){var n=this.A,r=Lt(n,t);return!(r<0)&&(r==n.length-1?n.pop():ct.call(n,r,1),!0);},Ot.prototype.get=function(t){var n=this.A,r=Lt(n,t);return r<0?void 0:n[r][1];},Ot.prototype.has=function(t){return Lt(this.A,t)>-1;},Ot.prototype.set=function(t,n){var r=this.A,e=Lt(r,t);return e<0?r.push([t,n]):r[e][1]=n,this;},Mt.prototype.clear=function(){this.A={hash:new qt(),map:new(vt||Ot)(),string:new qt()};},Mt.prototype["delete"]=function(t){return It(this,t)["delete"](t);},Mt.prototype.get=function(t){return It(this,t).get(t);},Mt.prototype.has=function(t){return It(this,t).has(t);},Mt.prototype.set=function(t,n){return It(this,t).set(t,n),this;},Et.prototype.clear=function(){this.A=new Ot();},Et.prototype["delete"]=function(t){return this.A["delete"](t);},Et.prototype.get=function(t){return this.A.get(t);},Et.prototype.has=function(t){return this.A.has(t);},Et.prototype.set=function(t,n){var r=this.A;if(r instanceof Ot){var e=r.A;if(!vt||e.length<199)return e.push([t,n]),this;r=this.A=new Mt(e);}return r.set(t,n),this;};var Ct=lt?Z(lt,Object):function(){return[];},Dt=function Dt(t){return tt.call(t);};function Vt(t,n){return!!(n=null==n?e:n)&&("number"==typeof t||$.test(t))&&t>-1&&t%1==0&&t<n;}function Ht(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||G);}function Ft(t){if(null!=t){try{return J.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";}function Ut(t,n){return t===n||t!=t&&n!=n;}(ht&&Dt(new ht(new ArrayBuffer(1)))!=w||vt&&Dt(new vt())!=a||dt&&Dt(dt.resolve())!=v||pt&&Dt(new pt())!=p||bt&&Dt(new bt())!=m)&&(Dt=function Dt(t){var n=tt.call(t),r=n==h?t.constructor:void 0,e=r?Ft(r):void 0;if(e)switch(e){case mt:return w;case gt:return a;case wt:return v;case xt:return p;case jt:return m;}return n;});var Pt=Array.isArray;function Zt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e;}(t.length)&&!zt(t);}var Wt=at||function(){return!1;};function zt(t){var n=Kt(t)?tt.call(t):"";return n==c||n==l;}function Kt(t){var n=_typeof(t);return!!t&&("object"==n||"function"==n);}function Gt(t){return Zt(t)?_t(t):function(t){if(!Ht(t))return ft(t);var n=[];for(var r in Object(t))X.call(t,r)&&"constructor"!=r&&n.push(r);return n;}(t);}t.exports=function(t){return $t(t,!0,!0);};}(Gf,Gf.exports);Qf=Gf.exports,Yf={exports:{}};!function(t,n){var r="__lodash_hash_undefined__",e=9007199254740991,i="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",a="[object Function]",f="[object Map]",h="[object Number]",v="[object Object]",d="[object Promise]",p="[object RegExp]",b="[object Set]",y="[object String]",m="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",j=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[i]=A[s]=A[w]=A[u]=A[x]=A[c]=A[l]=A[a]=A[f]=A[h]=A[v]=A[p]=A[b]=A[y]=A[g]=!1;var q="object"==_typeof(o)&&o&&o.Object===Object&&o,O="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,M=q||O||Function("return this")(),E=n&&!n.nodeType&&n,_=E&&t&&!t.nodeType&&t,T=_&&_.exports===E,L=T&&q.process,$=function(){try{return L&&L.binding&&L.binding("util");}catch(t){}}(),S=$&&$.isTypedArray;function N(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1;}function R(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t];}),r;}function I(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t;}),r;}var B=Array.prototype,C=Function.prototype,D=Object.prototype,V=M["t"],H=C.toString,F=D.hasOwnProperty,U=function(){var t=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:"";}(),P=D.toString,Z=RegExp("^"+H.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=T?M.Buffer:void 0,z=M.Symbol,K=M.Uint8Array,G=D.propertyIsEnumerable,Q=B.splice,Y=z?z.toStringTag:void 0,J=Object.getOwnPropertySymbols,X=W?W.isBuffer:void 0,tt=function(t,n){return function(r){return t(n(r));};}(Object.keys,Object),nt=_t(M,"DataView"),rt=_t(M,"Map"),et=_t(M,"Promise"),it=_t(M,"Set"),st=_t(M,"WeakMap"),ot=_t(Object,"create"),ut=St(nt),ct=St(rt),lt=St(et),at=St(it),ft=St(st),ht=z?z.prototype:void 0,vt=ht?ht.valueOf:void 0;function dt(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function pt(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function bt(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1]);}}function yt(t){var n=-1,r=null==t?0:t.length;for(this.A=new bt();++n<r;)this.add(t[n]);}function mt(t){var n=this.A=new pt(t);this.size=n.size;}function gt(t,n){var r=It(t),e=!r&&Rt(t),i=!r&&!e&&Bt(t),s=!r&&!e&&!i&&Ft(t),o=r||e||i||s,u=o?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e;}(t.length,String):[],c=u.length;for(var l in t)!n&&!F.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||$t(l,c))||u.push(l);return u;}function wt(t,n){for(var r=t.length;r--;)if(Nt(t[r][0],n))return r;return-1;}function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Y&&Y in Object(t)?function(t){var n=F.call(t,Y),r=t[Y];try{t[Y]=void 0;var e=!0;}catch(t){}var i=P.call(t);e&&(n?t[Y]=r:delete t[Y]);return i;}(t):function(t){return P.call(t);}(t);}function jt(t){return Ht(t)&&xt(t)==i;}function kt(t,n,r,e,o){return t===n||(null==t||null==n||!Ht(t)&&!Ht(n)?t!=t&&n!=n:function(t,n,r,e,o,a){var d=It(t),g=It(n),j=d?s:Lt(t),k=g?s:Lt(n),A=(j=j==i?v:j)==v,q=(k=k==i?v:k)==v,O=j==k;if(O&&Bt(t)){if(!Bt(n))return!1;d=!0,A=!1;}if(O&&!A)return a||(a=new mt()),d||Ft(t)?Ot(t,n,r,e,o,a):function(t,n,r,e,i,s,o){switch(r){case x:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case w:return!(t.byteLength!=n.byteLength||!s(new K(t),new K(n)));case u:case c:case h:return Nt(+t,+n);case l:return t.name==n.name&&t.message==n.message;case p:case y:return t==n+"";case f:var a=R;case b:var v=1&e;if(a||(a=I),t.size!=n.size&&!v)return!1;var d=o.get(t);if(d)return d==n;e|=2,o.set(t,n);var g=Ot(a(t),a(n),e,i,s,o);return o["delete"](t),g;case m:if(vt)return vt.call(t)==vt.call(n);}return!1;}(t,n,j,r,e,o,a);if(!(1&r)){var M=A&&F.call(t,"__wrapped__"),E=q&&F.call(n,"__wrapped__");if(M||E){var _=M?t.value():t,T=E?n.value():n;return a||(a=new mt()),o(_,T,r,e,a);}}if(!O)return!1;return a||(a=new mt()),function(t,n,r,e,i,s){var o=1&r,u=Mt(t),c=u.length,l=Mt(n),a=l.length;if(c!=a&&!o)return!1;var f=c;for(;f--;){var h=u[f];if(!(o?h in n:F.call(n,h)))return!1;}var v=s.get(t);if(v&&s.get(n))return v==n;var d=!0;s.set(t,n),s.set(n,t);var p=o;for(;++f<c;){var b=t[h=u[f]],y=n[h];if(e)var m=o?e(y,b,h,n,t,s):e(b,y,h,t,n,s);if(!(void 0===m?b===y||i(b,y,r,e,s):m)){d=!1;break;}p||(p="constructor"==h);}if(d&&!p){var g=t.constructor,w=n.constructor;g==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(d=!1);}return s["delete"](t),s["delete"](n),d;}(t,n,r,e,o,a);}(t,n,r,e,kt,o));}function At(t){return!(!Vt(t)||function(t){return!!U&&U in t;}(t))&&(Ct(t)?Z:j).test(St(t));}function qt(t){if(r=(n=t)&&n.constructor,e="function"==typeof r&&r.prototype||D,n!==e)return tt(t);var n,r,e,i=[];for(var s in Object(t))F.call(t,s)&&"constructor"!=s&&i.push(s);return i;}function Ot(t,n,r,e,i,s){var o=1&r,u=t.length,c=n.length;if(u!=c&&!(o&&c>u))return!1;var l=s.get(t);if(l&&s.get(n))return l==n;var a=-1,f=!0,h=2&r?new yt():void 0;for(s.set(t,n),s.set(n,t);++a<u;){var v=t[a],d=n[a];if(e)var p=o?e(d,v,a,n,t,s):e(v,d,a,t,n,s);if(void 0!==p){if(p)continue;f=!1;break;}if(h){if(!N(n,function(t,n){if(o=n,!h.has(o)&&(v===t||i(v,t,r,e,s)))return h.push(n);var o;})){f=!1;break;}}else if(v!==d&&!i(v,d,r,e,s)){f=!1;break;}}return s["delete"](t),s["delete"](n),f;}function Mt(t){return function(t,n,r){var e=n(t);return It(t)?e:function(t,n){for(var r=-1,e=n.length,i=t.length;++r<e;)t[i+r]=n[r];return t;}(e,r(t));}(t,Ut,Tt);}function Et(t,n){var r,e,i=t.A;return("string"==(e=_typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map;}function _t(t,n){var r=function(t,n){return null==t?void 0:t[n];}(t,n);return At(r)?r:void 0;}dt.prototype.clear=function(){this.A=ot?ot(null):{},this.size=0;},dt.prototype["delete"]=function(t){var n=this.has(t)&&delete this.A[t];return this.size-=n?1:0,n;},dt.prototype.get=function(t){var n=this.A;if(ot){var e=n[t];return e===r?void 0:e;}return F.call(n,t)?n[t]:void 0;},dt.prototype.has=function(t){var n=this.A;return ot?void 0!==n[t]:F.call(n,t);},dt.prototype.set=function(t,n){var e=this.A;return this.size+=this.has(t)?0:1,e[t]=ot&&void 0===n?r:n,this;},pt.prototype.clear=function(){this.A=[],this.size=0;},pt.prototype["delete"]=function(t){var n=this.A,r=wt(n,t);return!(r<0)&&(r==n.length-1?n.pop():Q.call(n,r,1),--this.size,!0);},pt.prototype.get=function(t){var n=this.A,r=wt(n,t);return r<0?void 0:n[r][1];},pt.prototype.has=function(t){return wt(this.A,t)>-1;},pt.prototype.set=function(t,n){var r=this.A,e=wt(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this;},bt.prototype.clear=function(){this.size=0,this.A={hash:new dt(),map:new(rt||pt)(),string:new dt()};},bt.prototype["delete"]=function(t){var n=Et(this,t)["delete"](t);return this.size-=n?1:0,n;},bt.prototype.get=function(t){return Et(this,t).get(t);},bt.prototype.has=function(t){return Et(this,t).has(t);},bt.prototype.set=function(t,n){var r=Et(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this;},yt.prototype.add=yt.prototype.push=function(t){return this.A.set(t,r),this;},yt.prototype.has=function(t){return this.A.has(t);},mt.prototype.clear=function(){this.A=new pt(),this.size=0;},mt.prototype["delete"]=function(t){var n=this.A,r=n["delete"](t);return this.size=n.size,r;},mt.prototype.get=function(t){return this.A.get(t);},mt.prototype.has=function(t){return this.A.has(t);},mt.prototype.set=function(t,n){var r=this.A;if(r instanceof pt){var e=r.A;if(!rt||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.A=new bt(e);}return r.set(t,n),this.size=r.size,this;};var Tt=J?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var r=-1,e=null==t?0:t.length,i=0,s=[];++r<e;){var o=t[r];n(o,r,t)&&(s[i++]=o);}return s;}(J(t),function(n){return G.call(t,n);}));}:function(){return[];},Lt=xt;function $t(t,n){return!!(n=null==n?e:n)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<n;}function St(t){if(null!=t){try{return H.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";}function Nt(t,n){return t===n||t!=t&&n!=n;}(nt&&Lt(new nt(new ArrayBuffer(1)))!=x||rt&&Lt(new rt())!=f||et&&Lt(et.resolve())!=d||it&&Lt(new it())!=b||st&&Lt(new st())!=g)&&(Lt=function Lt(t){var n=xt(t),r=n==v?t.constructor:void 0,e=r?St(r):"";if(e)switch(e){case ut:return x;case ct:return f;case lt:return d;case at:return b;case ft:return g;}return n;});var Rt=jt(function(){return arguments;}())?jt:function(t){return Ht(t)&&F.call(t,"callee")&&!G.call(t,"callee");},It=Array.isArray;var Bt=X||function(){return!1;};function Ct(t){if(!Vt(t))return!1;var n=xt(t);return n==a||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n;}function Dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e;}function Vt(t){var n=_typeof(t);return null!=t&&("object"==n||"function"==n);}function Ht(t){return null!=t&&"object"==_typeof(t);}var Ft=S?function(t){return function(n){return t(n);};}(S):function(t){return Ht(t)&&Dt(t.length)&&!!A[xt(t)];};function Ut(t){return null!=(n=t)&&Dt(n.length)&&!Ct(n)?gt(t):qt(t);var n;}t.exports=function(t,n){return kt(t,n);};}(Yf,Yf.exports);Jf=Yf.exports,Xf={};Object.defineProperty(Xf,"q",{value:!0});th=Qf,nh=Jf;!function(t){t.compose=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;"object"!=_typeof(t)&&(t={}),"object"!=_typeof(n)&&(n={});var e=th(n);r||(e=Object.keys(e).reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t;},{}));for(var _r6 in t)void 0!==t[_r6]&&void 0===n[_r6]&&(e[_r6]=t[_r6]);return Object.keys(e).length>0?e:void 0;},t.diff=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};"object"!=_typeof(t)&&(t={}),"object"!=_typeof(n)&&(n={});var r=Object.keys(t).concat(Object.keys(n)).reduce(function(r,e){return nh(t[e],n[e])||(r[e]=void 0===n[e]?null:n[e]),r;},{});return Object.keys(r).length>0?r:void 0;},t.invert=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t=t||{};var r=Object.keys(n).reduce(function(r,e){return n[e]!==t[e]&&void 0!==t[e]&&(r[e]=n[e]),r;},{});return Object.keys(t).reduce(function(r,e){return t[e]!==n[e]&&void 0===n[e]&&(r[e]=null),r;},r);},t.transform=function(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if("object"!=_typeof(t))return n;if("object"!=_typeof(n))return;if(!r)return n;var e=Object.keys(n).reduce(function(r,e){return void 0===t[e]&&(r[e]=n[e]),r;},{});return Object.keys(e).length>0?e:void 0;};}(rh||(rh={})),Xf["default"]=rh;ih={};Object.defineProperty(ih,"q",{value:!0}),function(t){t.length=function(t){return"number"==typeof t["delete"]?t["delete"]:"number"==typeof t.retain?t.retain:"object"==_typeof(t.retain)&&null!==t.retain?1:"string"==typeof t.insert?t.insert.length:1;};}(eh||(eh={})),ih["default"]=eh;sh={};Object.defineProperty(sh,"q",{value:!0});oh=ih;sh["default"]=/*#__PURE__*/function(){function _class(t){_classCallCheck(this,_class);this.ops=t,this.index=0,this.offset=0;}return _createClass(_class,[{key:"hasNext",value:function hasNext(){return this.peekLength()<1/0;}},{key:"next",value:function next(t){t||(t=1/0);var n=this.ops[this.index];if(n){var _r7=this.offset,_e4=oh["default"].length(n);if(t>=_e4-_r7?(t=_e4-_r7,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof n["delete"])return{"delete":t};{var _e5={};return n.attributes&&(_e5.attributes=n.attributes),"number"==typeof n.retain?_e5.retain=t:"object"==_typeof(n.retain)&&null!==n.retain?_e5.retain=n.retain:"string"==typeof n.insert?_e5.insert=n.insert.substr(_r7,t):_e5.insert=n.insert,_e5;}}return{retain:1/0};}},{key:"peek",value:function peek(){return this.ops[this.index];}},{key:"peekLength",value:function peekLength(){return this.ops[this.index]?oh["default"].length(this.ops[this.index])-this.offset:1/0;}},{key:"peekType",value:function peekType(){var t=this.ops[this.index];return t?"number"==typeof t["delete"]?"delete":"number"==typeof t.retain||"object"==_typeof(t.retain)&&null!==t.retain?"retain":"insert":"retain";}},{key:"rest",value:function rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{var _t65=this.offset,_n5=this.index,_r8=this.next(),_e6=this.ops.slice(this.index);return this.offset=_t65,this.index=_n5,[_r8].concat(_e6);}}return[];}}]);}(),function(t,n){Object.defineProperty(n,"q",{value:!0}),n.AttributeMap=n.OpIterator=n.Op=void 0;var r=Kf,e=Qf,i=Jf,s=Xf;n.AttributeMap=s["default"];var o=ih;n.Op=o["default"];var u=sh;n.OpIterator=u["default"];var c=String.fromCharCode(0),l=function l(t,n){if("object"!=_typeof(t)||null===t)throw new Error("cannot retain a "+_typeof(t));if("object"!=_typeof(n)||null===n)throw new Error("cannot retain a "+_typeof(n));var r=Object.keys(t)[0];if(!r||r!==Object.keys(n)[0])throw new Error("embed types not matched: ".concat(r," != ").concat(Object.keys(n)[0]));return[r,t[r],n[r]];};var a=/*#__PURE__*/function(){function a(t){_classCallCheck(this,a);Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[];}return _createClass(a,[{key:"insert",value:function insert(t,n){var r={};return"string"==typeof t&&0===t.length?this:(r.insert=t,null!=n&&"object"==_typeof(n)&&Object.keys(n).length>0&&(r.attributes=n),this.push(r));}},{key:"delete",value:function _delete(t){return t<=0?this:this.push({"delete":t});}},{key:"retain",value:function retain(t,n){if("number"==typeof t&&t<=0)return this;var r={retain:t};return null!=n&&"object"==_typeof(n)&&Object.keys(n).length>0&&(r.attributes=n),this.push(r);}},{key:"push",value:function push(t){var n=this.ops.length,r=this.ops[n-1];if(t=e(t),"object"==_typeof(r)){if("number"==typeof t["delete"]&&"number"==typeof r["delete"])return this.ops[n-1]={"delete":r["delete"]+t["delete"]},this;if("number"==typeof r["delete"]&&null!=t.insert&&(n-=1,r=this.ops[n-1],"object"!=_typeof(r)))return this.ops.unshift(t),this;if(i(t.attributes,r.attributes)){if("string"==typeof t.insert&&"string"==typeof r.insert)return this.ops[n-1]={insert:r.insert+t.insert},"object"==_typeof(t.attributes)&&(this.ops[n-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof r.retain)return this.ops[n-1]={retain:r.retain+t.retain},"object"==_typeof(t.attributes)&&(this.ops[n-1].attributes=t.attributes),this;}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this;}},{key:"chop",value:function chop(){var t=this.ops[this.ops.length-1];return t&&"number"==typeof t.retain&&!t.attributes&&this.ops.pop(),this;}},{key:"filter",value:function filter(t){return this.ops.filter(t);}},{key:"forEach",value:function forEach(t){this.ops.forEach(t);}},{key:"map",value:function map(t){return this.ops.map(t);}},{key:"partition",value:function partition(t){var n=[],r=[];return this.forEach(function(e){(t(e)?n:r).push(e);}),[n,r];}},{key:"reduce",value:function reduce(t,n){return this.ops.reduce(t,n);}},{key:"changeLength",value:function changeLength(){return this.reduce(function(t,n){return n.insert?t+o["default"].length(n):n["delete"]?t-n["delete"]:t;},0);}},{key:"length",value:function length(){return this.reduce(function(t,n){return t+o["default"].length(n);},0);}},{key:"slice",value:function slice(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1/0;var r=[],e=new u["default"](this.ops);var i=0;for(;i<n&&e.hasNext();){var _s3=void 0;i<t?_s3=e.next(t-i):(_s3=e.next(n-i),r.push(_s3)),i+=o["default"].length(_s3);}return new a(r);}},{key:"compose",value:function compose(t){var n=new u["default"](this.ops),r=new u["default"](t.ops),e=[],o=r.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){var _t66=o.retain;for(;"insert"===n.peekType()&&n.peekLength()<=_t66;)_t66-=n.peekLength(),e.push(n.next());o.retain-_t66>0&&r.next(o.retain-_t66);}var c=new a(e);for(;n.hasNext()||r.hasNext();)if("insert"===r.peekType())c.push(r.next());else if("delete"===n.peekType())c.push(n.next());else{var _t67=Math.min(n.peekLength(),r.peekLength()),_e7=n.next(_t67),_o2=r.next(_t67);if(_o2.retain){var _u2={};if("number"==typeof _e7.retain)_u2.retain="number"==typeof _o2.retain?_t67:_o2.retain;else if("number"==typeof _o2.retain)null==_e7.retain?_u2.insert=_e7.insert:_u2.retain=_e7.retain;else{var _t68=null==_e7.retain?"insert":"retain",_l2=l(_e7[_t68],_o2.retain),_l3=_slicedToArray(_l2,3),_n6=_l3[0],_r9=_l3[1],_i4=_l3[2],_s4=a.getHandler(_n6);_u2[_t68]=_defineProperty({},_n6,_s4.compose(_r9,_i4,"retain"===_t68));}var _f2=s["default"].compose(_e7.attributes,_o2.attributes,"number"==typeof _e7.retain);if(_f2&&(_u2.attributes=_f2),c.push(_u2),!r.hasNext()&&i(c.ops[c.ops.length-1],_u2)){var _t69=new a(n.rest());return c.concat(_t69).chop();}}else"number"==typeof _o2["delete"]&&("number"==typeof _e7.retain||"object"==_typeof(_e7.retain)&&null!==_e7.retain)&&c.push(_o2);}return c.chop();}},{key:"concat",value:function concat(t){var n=new a(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n;}},{key:"diff",value:function diff(t,n){if(this.ops===t.ops)return new a();var e=[this,t].map(function(n){return n.map(function(r){if(null!=r.insert)return"string"==typeof r.insert?r.insert:c;throw new Error("diff() called "+(n===t?"on":"with")+" non-document");}).join("");}),o=new a(),l=r(e[0],e[1],n,!0),f=new u["default"](this.ops),h=new u["default"](t.ops);return l.forEach(function(t){var n=t[1].length;for(;n>0;){var _e8=0;switch(t[0]){case r.INSERT:_e8=Math.min(h.peekLength(),n),o.push(h.next(_e8));break;case r.DELETE:_e8=Math.min(n,f.peekLength()),f.next(_e8),o["delete"](_e8);break;case r.EQUAL:_e8=Math.min(f.peekLength(),h.peekLength(),n);var _t70=f.next(_e8),_u3=h.next(_e8);i(_t70.insert,_u3.insert)?o.retain(_e8,s["default"].diff(_t70.attributes,_u3.attributes)):o.push(_u3)["delete"](_e8);}n-=_e8;}}),o.chop();}},{key:"eachLine",value:function eachLine(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"\n";var r=new u["default"](this.ops);var e=new a(),i=0;for(;r.hasNext();){if("insert"!==r.peekType())return;var _s5=r.peek(),_u4=o["default"].length(_s5)-r.peekLength(),_c2="string"==typeof _s5.insert?_s5.insert.indexOf(n,_u4)-_u4:-1;if(_c2<0)e.push(r.next());else if(_c2>0)e.push(r.next(_c2));else{if(!1===t(e,r.next(1).attributes||{},i))return;i+=1,e=new a();}}e.length()>0&&t(e,{},i);}},{key:"invert",value:function invert(t){var n=new a();return this.reduce(function(r,e){if(e.insert)n["delete"](o["default"].length(e));else{if("number"==typeof e.retain&&null==e.attributes)return n.retain(e.retain),r+e.retain;if(e["delete"]||"number"==typeof e.retain){var _i5=e["delete"]||e.retain;return t.slice(r,r+_i5).forEach(function(t){e["delete"]?n.push(t):e.retain&&e.attributes&&n.retain(o["default"].length(t),s["default"].invert(e.attributes,t.attributes));}),r+_i5;}if("object"==_typeof(e.retain)&&null!==e.retain){var _i6=t.slice(r,r+1),_o3=new u["default"](_i6.ops).next(),_l4=l(e.retain,_o3.insert),_l5=_slicedToArray(_l4,3),_c3=_l5[0],_f3=_l5[1],_h2=_l5[2],_v2=a.getHandler(_c3);return n.retain(_defineProperty({},_c3,_v2.invert(_f3,_h2)),s["default"].invert(e.attributes,_o3.attributes)),r+1;}}return r;},0),n.chop();}},{key:"transform",value:function transform(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(n=!!n,"number"==typeof t)return this.transformPosition(t,n);var r=t,e=new u["default"](this.ops),i=new u["default"](r.ops),c=new a();for(;e.hasNext()||i.hasNext();)if("insert"!==e.peekType()||!n&&"insert"===i.peekType()){if("insert"===i.peekType())c.push(i.next());else{var _t71=Math.min(e.peekLength(),i.peekLength()),_r10=e.next(_t71),_o4=i.next(_t71);if(_r10["delete"])continue;if(_o4["delete"])c.push(_o4);else{var _e9=_r10.retain,_i7=_o4.retain;var _u5="object"==_typeof(_i7)&&null!==_i7?_i7:_t71;if("object"==_typeof(_e9)&&null!==_e9&&"object"==_typeof(_i7)&&null!==_i7){var _t72=Object.keys(_e9)[0];if(_t72===Object.keys(_i7)[0]){var _r11=a.getHandler(_t72);_r11&&(_u5=_defineProperty({},_t72,_r11.transform(_e9[_t72],_i7[_t72],n)));}}c.retain(_u5,s["default"].transform(_r10.attributes,_o4.attributes,n));}}}else c.retain(o["default"].length(e.next()));return c.chop();}},{key:"transformPosition",value:function transformPosition(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;n=!!n;var r=new u["default"](this.ops);var e=0;for(;r.hasNext()&&e<=t;){var _i8=r.peekLength(),_s6=r.peekType();r.next(),"delete"!==_s6?("insert"===_s6&&(e<t||!n)&&(t+=_i8),e+=_i8):t-=Math.min(_i8,t-e);}return t;}}],[{key:"registerEmbed",value:function registerEmbed(t,n){this.handlers[t]=n;}},{key:"unregisterEmbed",value:function unregisterEmbed(t){delete this.handlers[t];}},{key:"getHandler",value:function getHandler(t){var n=this.handlers[t];if(!n)throw new Error("no handlers for embed type \"".concat(t,"\""));return n;}}]);}();a.Op=o["default"],a.OpIterator=u["default"],a.AttributeMap=s["default"],a.handlers={},n["default"]=a,t.exports=a,t.exports["default"]=a;}(_f,_f.exports);uh=_f.exports,ch=u(uh);lh=/*#__PURE__*/function(_jf){function lh(){_classCallCheck(this,lh);return _callSuper(this,lh,arguments);}_inherits(lh,_jf);return _createClass(lh,[{key:"optimize",value:function optimize(){(this.prev||this.next)&&this.remove();}},{key:"length",value:function length(){return 0;}},{key:"value",value:function value(){return"";}}],[{key:"value",value:function value(){}}]);}(jf);lh.blotName="break",lh.tagName="BR";ah=/*#__PURE__*/function(_Mf){function ah(){_classCallCheck(this,ah);return _callSuper(this,ah,arguments);}_inherits(ah,_Mf);return _createClass(ah);}(Mf);fh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};vh=/*#__PURE__*/function(_yf){function vh(){_classCallCheck(this,vh);return _callSuper(this,vh,arguments);}_inherits(vh,_yf);return _createClass(vh,[{key:"formatAt",value:function formatAt(t,n,r,e){if(vh.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ya.BLOT)){var _i9=this.isolate(t,n);e&&_i9.wrap(r,e);}else _superPropGet(vh,"formatAt",this,3)([t,n,r,e]);}},{key:"optimize",value:function optimize(t){if(_superPropGet(vh,"optimize",this,3)([t]),this.parent instanceof vh&&vh.compare(this.statics.blotName,this.parent.statics.blotName)>0){var _t73=this.parent.isolate(this.offset(),this.length());this.moveChildren(_t73),_t73.wrap(this);}}}],[{key:"compare",value:function compare(t,n){var r=vh.order.indexOf(t),e=vh.order.indexOf(n);return r>=0||e>=0?r-e:t===n?0:t<n?-1:1;}}]);}(yf);_vh=vh;_defineProperty(vh,"allowedChildren",[_vh,lh,jf,ah]);_defineProperty(vh,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);dh=/*#__PURE__*/function(_gf){function dh(){var _this22;_classCallCheck(this,dh);for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}_this22=_callSuper(this,dh,[].concat(args));_defineProperty(_this22,"cache",{});return _this22;}_inherits(dh,_gf);return _createClass(dh,[{key:"delta",value:function delta(){return null==this.cache.delta&&(this.cache.delta=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(ff).reduce(function(t,r){return 0===r.length()?t:t.insert(r.value(),bh(r,{},n));},new ch()).insert("\n",bh(t));}(this)),this.cache.delta;}},{key:"deleteAt",value:function deleteAt(t,n){_superPropGet(dh,"deleteAt",this,3)([t,n]),this.cache={};}},{key:"formatAt",value:function formatAt(t,n,r,e){n<=0||(this.scroll.query(r,Ya.BLOCK)?t+n===this.length()&&this.format(r,e):_superPropGet(dh,"formatAt",this,3)([t,Math.min(n,this.length()-t-1),r,e]),this.cache={});}},{key:"insertAt",value:function insertAt(t,n,r){if(null!=r)return _superPropGet(dh,"insertAt",this,3)([t,n,r]),void(this.cache={});if(0===n.length)return;var e=n.split("\n"),i=e.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?_superPropGet(dh,"insertAt",this,3)([Math.min(t,this.length()-1),i]):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var s=this;e.reduce(function(t,n){return s=s.split(t,!0),s.insertAt(0,n),n.length;},t+i.length);}},{key:"insertBefore",value:function insertBefore(t,n){var r=this.children.head;_superPropGet(dh,"insertBefore",this,3)([t,n]),r instanceof lh&&r.remove(),this.cache={};}},{key:"length",value:function length(){return null==this.cache.length&&(this.cache.length=_superPropGet(dh,"length",this,3)([])+1),this.cache.length;}},{key:"moveChildren",value:function moveChildren(t,n){_superPropGet(dh,"moveChildren",this,3)([t,n]),this.cache={};}},{key:"optimize",value:function optimize(t){_superPropGet(dh,"optimize",this,3)([t]),this.cache={};}},{key:"path",value:function path(t){return _superPropGet(dh,"path",this,3)([t,!0]);}},{key:"removeChild",value:function removeChild(t){_superPropGet(dh,"removeChild",this,3)([t]),this.cache={};}},{key:"split",value:function split(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var _n7=this.clone();return 0===t?(this.parent.insertBefore(_n7,this),this):(this.parent.insertBefore(_n7,this.next),_n7);}var r=_superPropGet(dh,"split",this,3)([t,n]);return this.cache={},r;}}]);}(gf);dh.blotName="block",dh.tagName="P",dh.defaultChild=lh,dh.allowedChildren=[lh,vh,jf,ah];ph=/*#__PURE__*/function(_jf2){function ph(){_classCallCheck(this,ph);return _callSuper(this,ph,arguments);}_inherits(ph,_jf2);return _createClass(ph,[{key:"attach",value:function attach(){_superPropGet(ph,"attach",this,3)([]),this.attributes=new uf(this.domNode);}},{key:"delta",value:function delta(){return new ch().insert(this.value(),_objectSpread(_objectSpread({},this.formats()),this.attributes.values()));}},{key:"format",value:function format(t,n){var r=this.scroll.query(t,Ya.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,n);}},{key:"formatAt",value:function formatAt(t,n,r,e){this.format(r,e);}},{key:"insertAt",value:function insertAt(t,n,r){var _this23=this;if(null!=r)return void _superPropGet(ph,"insertAt",this,3)([t,n,r]);var e=n.split("\n"),i=e.pop(),s=e.map(function(t){var n=_this23.scroll.create(dh.blotName);return n.insertAt(0,t),n;}),o=this.split(t);s.forEach(function(t){_this23.parent.insertBefore(t,o);}),i&&this.parent.insertBefore(this.scroll.create("text",i),o);}}]);}(jf);ph.scope=Ya.BLOCK_BLOT;yh=/*#__PURE__*/function(_jf3){function yh(t,n,r){var _this24;_classCallCheck(this,yh);_this24=_callSuper(this,yh,[t,n]),_this24.selection=r,_this24.textNode=document.createTextNode(yh.CONTENTS),_this24.domNode.appendChild(_this24.textNode),_this24.savedLength=0;return _this24;}_inherits(yh,_jf3);return _createClass(yh,[{key:"detach",value:function detach(){null!=this.parent&&this.parent.removeChild(this);}},{key:"format",value:function format(t,n){if(0!==this.savedLength)return void _superPropGet(yh,"format",this,3)([t,n]);var r=this,e=0;for(;null!=r&&r.statics.scope!==Ya.BLOCK_BLOT;)e+=r.offset(r.parent),r=r.parent;null!=r&&(this.savedLength=yh.CONTENTS.length,r.optimize(),r.formatAt(e,yh.CONTENTS.length,t,n),this.savedLength=0);}},{key:"index",value:function index(t,n){return t===this.textNode?0:_superPropGet(yh,"index",this,3)([t,n]);}},{key:"length",value:function length(){return this.savedLength;}},{key:"position",value:function position(){return[this.textNode,this.textNode.data.length];}},{key:"remove",value:function remove(){_superPropGet(yh,"remove",this,3)([]),this.parent=null;}},{key:"restore",value:function restore(){if(this.selection.composing||null==this.parent)return null;var t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var n=this.prev instanceof ah?this.prev:null,r=n?n.length():0,e=this.next instanceof ah?this.next:null,i=e?e.text:"",s=this.textNode,o=s.data.split(yh.CONTENTS).join("");var u;if(s.data=yh.CONTENTS,n)u=n,(o||e)&&(n.insertAt(n.length(),o+i),e&&e.remove());else if(e)u=e,e.insertAt(0,o);else{var _t74=document.createTextNode(o);u=this.scroll.create(_t74),this.parent.insertBefore(u,this);}if(this.remove(),t){var _i10=function _i10(t,i){return n&&t===n.domNode?i:t===s?r+i-1:e&&t===e.domNode?r+o.length+i:null;},_c4=_i10(t.start.node,t.start.offset),_l6=_i10(t.end.node,t.end.offset);if(null!==_c4&&null!==_l6)return{startNode:u.domNode,startOffset:_c4,endNode:u.domNode,endOffset:_l6};}return null;}},{key:"update",value:function update(t,n){var _this25=this;if(t.some(function(t){return"characterData"===t.type&&t.target===_this25.textNode;})){var _t75=this.restore();_t75&&(n.range=_t75);}}},{key:"optimize",value:function optimize(t){_superPropGet(yh,"optimize",this,3)([t]);var n=this.parent;for(;n;){if("A"===n.domNode.tagName){this.savedLength=yh.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break;}n=n.parent;}}},{key:"value",value:function value(){return"";}}],[{key:"value",value:function value(){}}]);}(jf);_defineProperty(yh,"blotName","cursor");_defineProperty(yh,"className","ql-cursor");_defineProperty(yh,"tagName","span");_defineProperty(yh,"CONTENTS","\uFEFF");mh={exports:{}};!function(t){var n=Object.prototype.hasOwnProperty,r="~";function e(){}function i(t,n,r){this.fn=t,this.context=n,this.once=r||!1;}function s(t,n,e,s,o){if("function"!=typeof e)throw new TypeError("The listener must be a function");var u=new i(e,s||t,o),c=r?r+n:n;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t;}function o(t,n){0==--t._eventsCount?t._events=new e():delete t._events[n];}function u(){this._events=new e(),this._eventsCount=0;}Object.create&&(e.prototype=Object.create(null),new e().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i;},u.prototype.listeners=function(t){var n=r?r+t:t,e=this._events[n];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,s=e.length,o=new Array(s);i<s;i++)o[i]=e[i].fn;return o;},u.prototype.listenerCount=function(t){var n=r?r+t:t,e=this._events[n];return e?e.fn?1:e.length:0;},u.prototype.emit=function(t,n,e,i,s,o){var u=r?r+t:t;if(!this._events[u])return!1;var c,l,a=this._events[u],f=arguments.length;if(a.fn){switch(a.once&&this.removeListener(t,a.fn,void 0,!0),f){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,n),!0;case 3:return a.fn.call(a.context,n,e),!0;case 4:return a.fn.call(a.context,n,e,i),!0;case 5:return a.fn.call(a.context,n,e,i,s),!0;case 6:return a.fn.call(a.context,n,e,i,s,o),!0;}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];a.fn.apply(a.context,c);}else{var h,v=a.length;for(l=0;l<v;l++)switch(a[l].once&&this.removeListener(t,a[l].fn,void 0,!0),f){case 1:a[l].fn.call(a[l].context);break;case 2:a[l].fn.call(a[l].context,n);break;case 3:a[l].fn.call(a[l].context,n,e);break;case 4:a[l].fn.call(a[l].context,n,e,i);break;default:if(!c)for(h=1,c=new Array(f-1);h<f;h++)c[h-1]=arguments[h];a[l].fn.apply(a[l].context,c);}}return!0;},u.prototype.on=function(t,n,r){return s(this,t,n,r,!1);},u.prototype.once=function(t,n,r){return s(this,t,n,r,!0);},u.prototype.removeListener=function(t,n,e,i){var s=r?r+t:t;if(!this._events[s])return this;if(!n)return o(this,s),this;var u=this._events[s];if(u.fn)u.fn!==n||i&&!u.once||e&&u.context!==e||o(this,s);else{for(var c=0,l=[],a=u.length;c<a;c++)(u[c].fn!==n||i&&!u[c].once||e&&u[c].context!==e)&&l.push(u[c]);l.length?this._events[s]=1===l.length?l[0]:l:o(this,s);}return this;},u.prototype.removeAllListeners=function(t){var n;return t?(n=r?r+t:t,this._events[n]&&o(this,n)):(this._events=new e(),this._eventsCount=0),this;},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u;}(mh);gh=u(mh.exports),wh=new WeakMap();xh=["error","warn","log","info"];jh="warn";Ah.level=function(t){jh=t;},kh.level=Ah.level;qh=Ah("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(function(t){var _r$emitter;var r=wh.get(t);r&&r.emitter&&(_r$emitter=r.emitter).handleDOM.apply(_r$emitter,n);});});});Oh=/*#__PURE__*/function(_gh){function Oh(){var _this26;_classCallCheck(this,Oh);_this26=_callSuper(this,Oh),_this26.domListeners={},_this26.on("error",qh.error);return _this26;}_inherits(Oh,_gh);return _createClass(Oh,[{key:"emit",value:function emit(){var _qh$log;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(_qh$log=qh.log).call.apply(_qh$log,[qh].concat(n)),_superPropGet(Oh,"emit",this,3)(n);}},{key:"handleDOM",value:function handleDOM(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];(this.domListeners[t.type]||[]).forEach(function(n){var e=n.node,i=n.handler;(t.target===e||e.contains(t.target))&&i.apply(void 0,[t].concat(r));});}},{key:"listenDOM",value:function listenDOM(t,n,r){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:n,handler:r});}}]);}(gh);_defineProperty(Oh,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"});_defineProperty(Oh,"sources",{API:"api",SILENT:"silent",USER:"user"});Mh=Ah("quill:selection");Eh=/*#__PURE__*/_createClass(function Eh(t){_classCallCheck(this,Eh);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=n;});_h=/*#__PURE__*/function(){function _h(t,n){var _this27=this;_classCallCheck(this,_h);this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Eh(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){_this27.mouseDown||_this27.composing||setTimeout(_this27.update.bind(_this27,Oh.sources.USER),1);}),this.emitter.on(Oh.events.SCROLL_BEFORE_UPDATE,function(){if(!_this27.hasFocus())return;var t=_this27.getNativeRange();null!=t&&t.start.node!==_this27.cursor.textNode&&_this27.emitter.once(Oh.events.SCROLL_UPDATE,function(n,r){try{_this27.root.contains(t.start.node)&&_this27.root.contains(t.end.node)&&_this27.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset);var _e10=r.some(function(t){return"characterData"===t.type||"childList"===t.type||"attributes"===t.type&&t.target===_this27.root;});_this27.update(_e10?Oh.sources.SILENT:n);}catch(t){}});}),this.emitter.on(Oh.events.SCROLL_OPTIMIZE,function(t,n){if(n.range){var _n$range=n.range,_t76=_n$range.startNode,_r12=_n$range.startOffset,_e11=_n$range.endNode,_i11=_n$range.endOffset;_this27.setNativeRange(_t76,_r12,_e11,_i11),_this27.update(Oh.sources.SILENT);}}),this.update(Oh.sources.SILENT);}return _createClass(_h,[{key:"handleComposition",value:function handleComposition(){var _this28=this;this.emitter.on(Oh.events.COMPOSITION_BEFORE_START,function(){_this28.composing=!0;}),this.emitter.on(Oh.events.COMPOSITION_END,function(){if(_this28.composing=!1,_this28.cursor.parent){var _t77=_this28.cursor.restore();if(!_t77)return;setTimeout(function(){_this28.setNativeRange(_t77.startNode,_t77.startOffset,_t77.endNode,_t77.endOffset);},1);}});}},{key:"handleDragging",value:function handleDragging(){var _this29=this;this.emitter.listenDOM("mousedown",document.body,function(){_this29.mouseDown=!0;}),this.emitter.listenDOM("mouseup",document.body,function(){_this29.mouseDown=!1,_this29.update(Oh.sources.USER);});}},{key:"focus",value:function focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange));}},{key:"format",value:function format(t,n){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r["native"].collapsed&&!this.scroll.query(t,Ya.BLOCK)){if(r.start.node!==this.cursor.textNode){var _t78=this.scroll.find(r.start.node,!1);if(null==_t78)return;if(_t78 instanceof ff){var _n8=_t78.split(r.start.offset);_t78.parent.insertBefore(this.cursor,_n8);}else _t78.insertBefore(this.cursor,r.start.node);this.cursor.attach();}this.cursor.format(t,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update();}}},{key:"getBounds",value:function getBounds(t){var _this$scroll$leaf5,_this$scroll$leaf6,_i$position3,_i$position4;var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=this.scroll.length();var e;t=Math.min(t,r-1),n=Math.min(t+n,r-1)-t;var _this$scroll$leaf=this.scroll.leaf(t),_this$scroll$leaf2=_slicedToArray(_this$scroll$leaf,2),i=_this$scroll$leaf2[0],s=_this$scroll$leaf2[1];if(null==i)return null;if(n>0&&s===i.length()){var _this$scroll$leaf3=this.scroll.leaf(t+1),_this$scroll$leaf4=_slicedToArray(_this$scroll$leaf3,1),_n9=_this$scroll$leaf4[0];if(_n9){var _this$scroll$line=this.scroll.line(t),_this$scroll$line2=_slicedToArray(_this$scroll$line,1),_r13=_this$scroll$line2[0],_this$scroll$line3=this.scroll.line(t+1),_this$scroll$line4=_slicedToArray(_this$scroll$line3,1),_e12=_this$scroll$line4[0];_r13===_e12&&(i=_n9,s=0);}}var _i$position=i.position(s,!0);var _i$position2=_slicedToArray(_i$position,2);e=_i$position2[0];s=_i$position2[1];var o=document.createRange();if(n>0)return o.setStart(e,s),_this$scroll$leaf5=this.scroll.leaf(t+n),_this$scroll$leaf6=_slicedToArray(_this$scroll$leaf5,2),i=_this$scroll$leaf6[0],s=_this$scroll$leaf6[1],null==i?null:(_i$position3=i.position(s,!0),_i$position4=_slicedToArray(_i$position3,2),e=_i$position4[0],s=_i$position4[1],o.setEnd(e,s),o.getBoundingClientRect());var u,c="left";if(e instanceof Text){if(!e.data.length)return null;s<e.data.length?(o.setStart(e,s),o.setEnd(e,s+1)):(o.setStart(e,s-1),o.setEnd(e,s),c="right"),u=o.getBoundingClientRect();}else{if(!(i.domNode instanceof Element))return null;u=i.domNode.getBoundingClientRect(),s>0&&(c="right");}return{bottom:u.top+u.height,height:u.height,left:u[c],right:u[c],top:u.top,width:0};}},{key:"getNativeRange",value:function getNativeRange(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var n=t.getRangeAt(0);if(null==n)return null;var r=this.normalizeNative(n);return Mh.info("getNativeRange",r),r;}},{key:"getRange",value:function getRange(){var t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];var n=this.getNativeRange();if(null==n)return[null,null];return[this.normalizedToRange(n),n];}},{key:"hasFocus",value:function hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&Th(this.root,document.activeElement);}},{key:"normalizedToRange",value:function normalizedToRange(t){var _this30=this;var n=[[t.start.node,t.start.offset]];t["native"].collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var _t79=_slicedToArray(t,2),n=_t79[0],r=_t79[1],e=_this30.scroll.find(n,!0),i=e.offset(_this30.scroll);return 0===r?i:e instanceof ff?i+e.index(n,r):i+e.length();}),e=Math.min(Math.max.apply(Math,_toConsumableArray(r)),this.scroll.length()-1),i=Math.min.apply(Math,[e].concat(_toConsumableArray(r)));return new Eh(i,e-i);}},{key:"normalizeNative",value:function normalizeNative(t){if(!Th(this.root,t.startContainer)||!t.collapsed&&!Th(this.root,t.endContainer))return null;var n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},"native":t};return[n.start,n.end].forEach(function(t){var n=t.node,r=t.offset;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>r)n=n.childNodes[r],r=0;else{if(n.childNodes.length!==r)break;n=n.lastChild,r=n instanceof Text?n.data.length:n.childNodes.length>0?n.childNodes.length:n.childNodes.length+1;}t.node=n,t.offset=r;}),n;}},{key:"rangeToNative",value:function rangeToNative(t){var _this31=this;var n=this.scroll.length(),r=function r(t,_r14){t=Math.min(n-1,t);var _this31$scroll$leaf=_this31.scroll.leaf(t),_this31$scroll$leaf2=_slicedToArray(_this31$scroll$leaf,2),e=_this31$scroll$leaf2[0],i=_this31$scroll$leaf2[1];return e?e.position(i,_r14):[null,-1];};return[].concat(_toConsumableArray(r(t.index,!1)),_toConsumableArray(r(t.index+t.length,!0)));}},{key:"setNativeRange",value:function setNativeRange(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Mh.info("setNativeRange",t,n,r,e),null!=t&&(null==this.root.parentNode||null==t.parentNode||null==r.parentNode))return;var s=document.getSelection();if(null!=s)if(null!=t){this.hasFocus()||this.root.focus({preventScroll:!0});var _ref2=this.getNativeRange()||{},_o5=_ref2["native"];if(null==_o5||i||t!==_o5.startContainer||n!==_o5.startOffset||r!==_o5.endContainer||e!==_o5.endOffset){t instanceof Element&&"BR"===t.tagName&&(n=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),r instanceof Element&&"BR"===r.tagName&&(e=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);var _i12=document.createRange();_i12.setStart(t,n),_i12.setEnd(r,e),s.removeAllRanges(),s.addRange(_i12);}}else s.removeAllRanges(),this.root.blur();}},{key:"setRange",value:function setRange(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oh.sources.API;if("string"==typeof n&&(r=n,n=!1),Mh.info("setRange",t),null!=t){var _r15=this.rangeToNative(t);this.setNativeRange.apply(this,_toConsumableArray(_r15).concat([n]));}else this.setNativeRange(null);this.update(r);}},{key:"update",value:function update(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oh.sources.USER;var n=this.lastRange,_this$getRange=this.getRange(),_this$getRange2=_slicedToArray(_this$getRange,2),r=_this$getRange2[0],e=_this$getRange2[1];if(this.lastRange=r,this.lastNative=e,null!=this.lastRange&&(this.savedRange=this.lastRange),!Mu(n,this.lastRange)){var _this$emitter,_this$emitter2;if(!this.composing&&null!=e&&e["native"].collapsed&&e.start.node!==this.cursor.textNode){var _t80=this.cursor.restore();_t80&&this.setNativeRange(_t80.startNode,_t80.startOffset,_t80.endNode,_t80.endOffset);}var _r16=[Oh.events.SELECTION_CHANGE,Zi(this.lastRange),Zi(n),t];(_this$emitter=this.emitter).emit.apply(_this$emitter,[Oh.events.EDITOR_CHANGE].concat(_r16)),t!==Oh.sources.SILENT&&(_this$emitter2=this.emitter).emit.apply(_this$emitter2,_r16);}}}]);}();Lh=/^[ -~]*$/;$h=/*#__PURE__*/function(){function $h(t){_classCallCheck(this,$h);this.scroll=t,this.delta=this.getDelta();}return _createClass($h,[{key:"applyDelta",value:function applyDelta(t){var _this32=this;this.scroll.update();var n=this.scroll.length();this.scroll.batchStart();var r=Bh(t),e=new ch(),i=function(t){var n=[];return t.forEach(function(t){if("string"==typeof t.insert){t.insert.split("\n").forEach(function(r,e){e&&n.push({insert:"\n",attributes:t.attributes}),r&&n.push({insert:r,attributes:t.attributes});});}else n.push(t);}),n;}(r.ops.slice());return i.reduce(function(t,r){var i=uh.Op.length(r);var s=r.attributes||{},o=!1,u=!1;if(null!=r.insert){if(e.retain(i),"string"==typeof r.insert){var _e13=r.insert;u=!_e13.endsWith("\n")&&(n<=t||!!_this32.scroll.descendant(ph,t)[0]),_this32.scroll.insertAt(t,_e13);var _this32$scroll$line=_this32.scroll.line(t),_this32$scroll$line2=_slicedToArray(_this32$scroll$line,2),_i13=_this32$scroll$line2[0],_o6=_this32$scroll$line2[1];var _c5=Ku({},bh(_i13));if(_i13 instanceof dh){var _i13$descendant=_i13.descendant(ff,_o6),_i13$descendant2=_slicedToArray(_i13$descendant,1),_t81=_i13$descendant2[0];_t81&&(_c5=Ku(_c5,bh(_t81)));}s=uh.AttributeMap.diff(_c5,s)||{};}else if("object"==_typeof(r.insert)){var _e14=Object.keys(r.insert)[0];if(null==_e14)return t;var _i14=null!=_this32.scroll.query(_e14,Ya.INLINE);if(_i14)(n<=t||_this32.scroll.descendant(ph,t)[0])&&(u=!0);else if(t>0){var _this32$scroll$descen=_this32.scroll.descendant(ff,t-1),_this32$scroll$descen2=_slicedToArray(_this32$scroll$descen,2),_n10=_this32$scroll$descen2[0],_r17=_this32$scroll$descen2[1];if(_n10 instanceof ah){"\n"!==_n10.value()[_r17]&&(o=!0);}else _n10 instanceof jf&&_n10.statics.scope===Ya.INLINE_BLOT&&(o=!0);}if(_this32.scroll.insertAt(t,_e14,r.insert[_e14]),_i14){var _this32$scroll$descen3=_this32.scroll.descendant(ff,t),_this32$scroll$descen4=_slicedToArray(_this32$scroll$descen3,1),_n11=_this32$scroll$descen4[0];if(_n11){var _t82=Ku({},bh(_n11));s=uh.AttributeMap.diff(_t82,s)||{};}}}n+=i;}else if(e.push(r),null!==r.retain&&"object"==_typeof(r.retain)){var _n12=Object.keys(r.retain)[0];if(null==_n12)return t;_this32.scroll.updateEmbedAt(t,_n12,r.retain[_n12]);}Object.keys(s).forEach(function(n){_this32.scroll.formatAt(t,i,n,s[n]);});var c=o?1:0,l=u?1:0;return n+=c+l,e.retain(c),e["delete"](l),t+i+c+l;},0),e.reduce(function(t,n){return"number"==typeof n["delete"]?(_this32.scroll.deleteAt(t,n["delete"]),t):t+uh.Op.length(n);},0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r);}},{key:"deleteText",value:function deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new ch().retain(t)["delete"](n));}},{key:"formatLine",value:function formatLine(t,n){var _this33=this;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(function(e){_this33.scroll.lines(t,Math.max(n,1)).forEach(function(t){t.format(e,r[e]);});}),this.scroll.optimize();var e=new ch().retain(t).retain(n,Zi(r));return this.update(e);}},{key:"formatText",value:function formatText(t,n){var _this34=this;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach(function(e){_this34.scroll.formatAt(t,n,e,r[e]);});var e=new ch().retain(t).retain(n,Zi(r));return this.update(e);}},{key:"getContents",value:function getContents(t,n){return this.delta.slice(t,t+n);}},{key:"getDelta",value:function getDelta(){return this.scroll.lines().reduce(function(t,n){return t.concat(n.delta());},new ch());}},{key:"getFormat",value:function getFormat(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],e=[];0===n?this.scroll.path(t).forEach(function(t){var _t83=_slicedToArray(t,1),n=_t83[0];n instanceof dh?r.push(n):n instanceof ff&&e.push(n);}):(r=this.scroll.lines(t,n),e=this.scroll.descendants(ff,t,n));var _map=[r,e].map(function(t){var n=t.shift();if(null==n)return{};var r=bh(n);for(;Object.keys(r).length>0;){var _n13=t.shift();if(null==_n13)return r;r=Rh(bh(_n13),r);}return r;}),_map2=_slicedToArray(_map,2),i=_map2[0],s=_map2[1];return _objectSpread(_objectSpread({},i),s);}},{key:"getHTML",value:function getHTML(t,n){var _this$scroll$line5=this.scroll.line(t),_this$scroll$line6=_slicedToArray(_this$scroll$line5,2),r=_this$scroll$line6[0],e=_this$scroll$line6[1];if(r){var _i15=r.length();return!(r.length()>=e+n)||0===e&&n===_i15?Nh(this.scroll,t,n,!0):Nh(r,e,n,!0);}return"";}},{key:"getText",value:function getText(t,n){return this.getContents(t,n).filter(function(t){return"string"==typeof t.insert;}).map(function(t){return t.insert;}).join("");}},{key:"insertContents",value:function insertContents(t,n){var r=Bh(n),e=new ch().retain(t).concat(r);return this.scroll.insertContents(t,r),this.update(e);}},{key:"insertEmbed",value:function insertEmbed(t,n,r){return this.scroll.insertAt(t,n,r),this.update(new ch().retain(t).insert(_defineProperty({},n,r)));}},{key:"insertText",value:function insertText(t,n){var _this35=this;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=n.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,n),Object.keys(r).forEach(function(e){_this35.scroll.formatAt(t,n.length,e,r[e]);}),this.update(new ch().retain(t).insert(n,Zi(r)));}},{key:"isBlank",value:function isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;if((t===null||t===void 0?void 0:t.statics.blotName)!==dh.blotName)return!1;var n=t;return!(n.children.length>1)&&n.children.head instanceof lh;}},{key:"removeFormat",value:function removeFormat(t,n){var r=this.getText(t,n),_this$scroll$line7=this.scroll.line(t+n),_this$scroll$line8=_slicedToArray(_this$scroll$line7,2),e=_this$scroll$line8[0],i=_this$scroll$line8[1];var s=0,o=new ch();null!=e&&(s=e.length()-i,o=e.delta().slice(i,i+s-1).insert("\n"));var u=this.getContents(t,n+s).diff(new ch().insert(r).concat(o)),c=new ch().retain(t).concat(u);return this.applyDelta(c);}},{key:"update",value:function update(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var e=this.delta;if(1===n.length&&"characterData"===n[0].type&&n[0].target.data.match(Lh)&&this.scroll.find(n[0].target)){var _i16=this.scroll.find(n[0].target),_s7=bh(_i16),_o7=_i16.offset(this.scroll),_u7=n[0].oldValue.replace(yh.CONTENTS,""),_c6=new ch().insert(_u7),_l7=new ch().insert(_i16.value()),_a2=r&&{oldRange:Ch(r.oldRange,-_o7),newRange:Ch(r.newRange,-_o7)};t=new ch().retain(_o7).concat(_c6.diff(_l7,_a2)).reduce(function(t,n){return n.insert?t.insert(n.insert,_s7):t.push(n);},new ch()),this.delta=e.compose(t);}else this.delta=this.getDelta(),t&&Mu(e.compose(t),this.delta)||(t=e.diff(this.delta,r));return t;}}]);}();Dh=/*#__PURE__*/_createClass(function Dh(t){_classCallCheck(this,Dh);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=n;});_defineProperty(Dh,"DEFAULTS",{});Vh="\uFEFF";Hh=/*#__PURE__*/function(_jf4){function Hh(t,n){var _this36;_classCallCheck(this,Hh);_this36=_callSuper(this,Hh,[t,n]),_this36.contentNode=document.createElement("span"),_this36.contentNode.setAttribute("contenteditable","false"),Array.from(_this36.domNode.childNodes).forEach(function(t){_this36.contentNode.appendChild(t);}),_this36.leftGuard=document.createTextNode(Vh),_this36.rightGuard=document.createTextNode(Vh),_this36.domNode.appendChild(_this36.leftGuard),_this36.domNode.appendChild(_this36.contentNode),_this36.domNode.appendChild(_this36.rightGuard);return _this36;}_inherits(Hh,_jf4);return _createClass(Hh,[{key:"index",value:function index(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:_superPropGet(Hh,"index",this,3)([t,n]);}},{key:"restore",value:function restore(t){var n,r=null;var e=t.data.split(Vh).join("");if(t===this.leftGuard){if(this.prev instanceof ah){var _t86=this.prev.length();this.prev.insertAt(_t86,e),r={startNode:this.prev.domNode,startOffset:_t86+e.length};}else n=document.createTextNode(e),this.parent.insertBefore(this.scroll.create(n),this),r={startNode:n,startOffset:e.length};}else t===this.rightGuard&&(this.next instanceof ah?(this.next.insertAt(0,e),r={startNode:this.next.domNode,startOffset:e.length}):(n=document.createTextNode(e),this.parent.insertBefore(this.scroll.create(n),this.next),r={startNode:n,startOffset:e.length}));return t.data=Vh,r;}},{key:"update",value:function update(t,n){var _this37=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===_this37.leftGuard||t.target===_this37.rightGuard)){var _r19=_this37.restore(t.target);_r19&&(n.range=_r19);}});}}]);}(jf);Fh=/*#__PURE__*/function(){function Fh(t,n){_classCallCheck(this,Fh);_defineProperty(this,"isComposing",!1);this.scroll=t,this.emitter=n,this.setupListeners();}return _createClass(Fh,[{key:"setupListeners",value:function setupListeners(){var _this38=this;this.scroll.domNode.addEventListener("compositionstart",function(t){_this38.isComposing||_this38.handleCompositionStart(t);}),this.scroll.domNode.addEventListener("compositionend",function(t){_this38.isComposing&&queueMicrotask(function(){_this38.handleCompositionEnd(t);});});}},{key:"handleCompositionStart",value:function handleCompositionStart(t){var n=t.target instanceof Node?this.scroll.find(t.target,!0):null;!n||n instanceof Hh||(this.emitter.emit(Oh.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(Oh.events.COMPOSITION_START,t),this.isComposing=!0);}},{key:"handleCompositionEnd",value:function handleCompositionEnd(t){this.emitter.emit(Oh.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(Oh.events.COMPOSITION_END,t),this.isComposing=!1;}}]);}();Uh=/*#__PURE__*/function(){function Uh(t,n){_classCallCheck(this,Uh);_defineProperty(this,"modules",{});this.quill=t,this.options=n;}return _createClass(Uh,[{key:"init",value:function init(){var _this39=this;Object.keys(this.options.modules).forEach(function(t){null==_this39.modules[t]&&_this39.addModule(t);});}},{key:"addModule",value:function addModule(t){var n=this.quill.constructor["import"]("modules/".concat(t));return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t];}}]);}();_Uh=Uh;_defineProperty(Uh,"DEFAULTS",{modules:{}});_defineProperty(Uh,"themes",{"default":_Uh});Ph=function Ph(t){var n=t.getBoundingClientRect(),r="offsetWidth"in t&&Math.abs(n.width)/t.offsetWidth||1,e="offsetHeight"in t&&Math.abs(n.height)/t.offsetHeight||1;return{top:n.top,right:n.left+t.clientWidth*r,bottom:n.top+t.clientHeight*e,left:n.left};},Zh=function Zh(t){var n=parseInt(t,10);return Number.isNaN(n)?0:n;},Wh=function Wh(t,n,r,e,i,s){return t<r&&n>e?0:t<r?-(r-t+i):n>e?n-t>e-r?t+i-r:n-e+s:0;},zh=["block","break","cursor","inline","scroll","text"],Kh=Ah("quill"),Gh=new nf();pf.uiClass="ql-ui";Qh=/*#__PURE__*/function(){function Qh(t){var _this40=this;_classCallCheck(this,Qh);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(t,n){var r=Yh(t);if(!r)throw new Error("Invalid Quill container");var e=!n.theme||n.theme===Qh.DEFAULTS.theme,i=e?Uh:Qh["import"]("themes/".concat(n.theme));if(!i)throw new Error("Invalid theme ".concat(n.theme,". Did you register it?"));var _Qh$DEFAULTS=Qh.DEFAULTS,s=_Qh$DEFAULTS.modules,o=_objectWithoutProperties(_Qh$DEFAULTS,_excluded),_i$DEFAULTS=i.DEFAULTS,u=_i$DEFAULTS.modules,c=_objectWithoutProperties(_i$DEFAULTS,_excluded2);var l=Jh(n.modules);null!=l&&l.toolbar&&l.toolbar.constructor!==Object&&(l=_objectSpread(_objectSpread({},l),{},{toolbar:{container:l.toolbar}}));var a=Ku({},Jh(s),Jh(u),l),f=_objectSpread(_objectSpread(_objectSpread({},o),Xh(c)),Xh(n));var h=n.registry;h?n.formats&&Kh.warn('Ignoring "formats" option because "registry" is specified'):h=n.formats?function(t,n,r){var e=new nf();return zh.forEach(function(t){var r=n.query(t);r&&e.register(r);}),t.forEach(function(t){var i=n.query(t);i||r.error("Cannot register \"".concat(t,"\" specified in \"formats\" config. Are you sure it was registered?"));var s=0;for(;i;){var _i$requiredContainer;if(e.register(i),i="blotName"in i?(_i$requiredContainer=i.requiredContainer)!==null&&_i$requiredContainer!==void 0?_i$requiredContainer:null:null,s+=1,s>100){r.error("Cycle detected in registering blot requiredContainer: \"".concat(t,"\""));break;}}}),e;}(n.formats,f.registry,Kh):f.registry;return _objectSpread(_objectSpread({},f),{},{registry:h,container:r,theme:i,modules:Object.entries(a).reduce(function(t,n){var _n14=_slicedToArray(n,2),r=_n14[0],e=_n14[1];if(!e)return t;var i=Qh["import"]("modules/".concat(r));return null==i?(Kh.error("Cannot load ".concat(r," module. Are you sure you registered it?")),t):_objectSpread(_objectSpread({},t),{},_defineProperty({},r,Ku({},i.DEFAULTS||{},e)));},{}),bounds:Yh(f.bounds)});}(t,n),this.container=this.options.container,null==this.container)return void Kh.error("Invalid Quill container",t);this.options.debug&&Qh.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",wh.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Oh();var e=qf.blotName,i=this.options.registry.query(e);if(!i||!("blotName"in i))throw new Error("Cannot initialize Quill without \"".concat(e,"\" blot"));if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new $h(this.scroll),this.selection=new _h(this.scroll,this.emitter),this.composition=new Fh(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Oh.events.EDITOR_CHANGE,function(t){t===Oh.events.TEXT_CHANGE&&_this40.root.classList.toggle("ql-blank",_this40.editor.isBlank());}),this.emitter.on(Oh.events.SCROLL_UPDATE,function(t,n){var r=_this40.selection.lastRange,_this40$selection$get=_this40.selection.getRange(),_this40$selection$get2=_slicedToArray(_this40$selection$get,1),e=_this40$selection$get2[0],i=r&&e?{oldRange:r,newRange:e}:void 0;tv.call(_this40,function(){return _this40.editor.update(null,n,i);},t);}),this.emitter.on(Oh.events.SCROLL_EMBED_UPDATE,function(t,n){var r=_this40.selection.lastRange,_this40$selection$get3=_this40.selection.getRange(),_this40$selection$get4=_slicedToArray(_this40$selection$get3,1),e=_this40$selection$get4[0],i=r&&e?{oldRange:r,newRange:e}:void 0;tv.call(_this40,function(){var r=new ch().retain(t.offset(_this40)).retain(_defineProperty({},t.statics.blotName,n));return _this40.editor.update(r,[],i);},Qh.sources.USER);}),r){var _t87=this.clipboard.convert({html:"".concat(r,"<p><br></p>"),text:"\n"});this.setContents(_t87);}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1;}return _createClass(Qh,[{key:"addContainer",value:function addContainer(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var _n15=t;(t=document.createElement("div")).classList.add(_n15);}return this.container.insertBefore(t,n),t;}},{key:"blur",value:function blur(){this.selection.setRange(null);}},{key:"deleteText",value:function deleteText(t,n,r){var _nv,_nv2,_this41=this;return _nv=nv(t,n,r),_nv2=_slicedToArray(_nv,4),t=_nv2[0],n=_nv2[1],r=_nv2[3],tv.call(this,function(){return _this41.editor.deleteText(t,n);},r,t,-1*n);}},{key:"disable",value:function disable(){this.enable(!1);}},{key:"editReadOnly",value:function editReadOnly(t){this.allowReadOnlyEdits=!0;var n=t();return this.allowReadOnlyEdits=!1,n;}},{key:"enable",value:function enable(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t);}},{key:"focus",value:function focus(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView();}},{key:"format",value:function format(t,n){var _this42=this;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oh.sources.API;return tv.call(this,function(){var r=_this42.getSelection(!0);var e=new ch();if(null==r)return e;if(_this42.scroll.query(t,Ya.BLOCK))e=_this42.editor.formatLine(r.index,r.length,_defineProperty({},t,n));else{if(0===r.length)return _this42.selection.format(t,n),e;e=_this42.editor.formatText(r.index,r.length,_defineProperty({},t,n));}return _this42.setSelection(r,Oh.sources.SILENT),e;},r);}},{key:"formatLine",value:function formatLine(t,n,r,e,i){var _nv3,_nv4,_this43=this;var s;return _nv3=nv(t,n,r,e,i),_nv4=_slicedToArray(_nv3,4),t=_nv4[0],n=_nv4[1],s=_nv4[2],i=_nv4[3],tv.call(this,function(){return _this43.editor.formatLine(t,n,s);},i,t,0);}},{key:"formatText",value:function formatText(t,n,r,e,i){var _nv5,_nv6,_this44=this;var s;return _nv5=nv(t,n,r,e,i),_nv6=_slicedToArray(_nv5,4),t=_nv6[0],n=_nv6[1],s=_nv6[2],i=_nv6[3],tv.call(this,function(){return _this44.editor.formatText(t,n,s);},i,t,0);}},{key:"getBounds",value:function getBounds(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=null;if(r="number"==typeof t?this.selection.getBounds(t,n):this.selection.getBounds(t.index,t.length),!r)return null;var e=this.container.getBoundingClientRect();return{bottom:r.bottom-e.top,height:r.height,left:r.left-e.left,right:r.right-e.left,top:r.top-e.top,width:r.width};}},{key:"getContents",value:function getContents(){var _nv7,_nv8;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return _nv7=nv(t,n),_nv8=_slicedToArray(_nv7,2),t=_nv8[0],n=_nv8[1],this.editor.getContents(t,n);}},{key:"getFormat",value:function getFormat(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length);}},{key:"getIndex",value:function getIndex(t){return t.offset(this.scroll);}},{key:"getLength",value:function getLength(){return this.scroll.length();}},{key:"getLeaf",value:function getLeaf(t){return this.scroll.leaf(t);}},{key:"getLine",value:function getLine(t){return this.scroll.line(t);}},{key:"getLines",value:function getLines(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n);}},{key:"getModule",value:function getModule(t){return this.theme.modules[t];}},{key:"getSelection",value:function getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0];}},{key:"getSemanticHTML",value:function getSemanticHTML(){var _nv9,_nv10;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(n=n!==null&&n!==void 0?n:this.getLength()-t),_nv9=nv(t,n),_nv10=_slicedToArray(_nv9,2),t=_nv10[0],n=_nv10[1],this.editor.getHTML(t,n);}},{key:"getText",value:function getText(){var _nv11,_nv12;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(n=n!==null&&n!==void 0?n:this.getLength()-t),_nv11=nv(t,n),_nv12=_slicedToArray(_nv11,2),t=_nv12[0],n=_nv12[1],this.editor.getText(t,n);}},{key:"hasFocus",value:function hasFocus(){return this.selection.hasFocus();}},{key:"insertEmbed",value:function insertEmbed(t,n,r){var _this45=this;var e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qh.sources.API;return tv.call(this,function(){return _this45.editor.insertEmbed(t,n,r);},e,t);}},{key:"insertText",value:function insertText(t,n,r,e,i){var _nv13,_nv14,_this46=this;var s;return _nv13=nv(t,0,r,e,i),_nv14=_slicedToArray(_nv13,4),t=_nv14[0],s=_nv14[2],i=_nv14[3],tv.call(this,function(){return _this46.editor.insertText(t,n,s);},i,t,n.length);}},{key:"isEnabled",value:function isEnabled(){return this.scroll.isEnabled();}},{key:"off",value:function off(){var _this$emitter3;return(_this$emitter3=this.emitter).off.apply(_this$emitter3,arguments);}},{key:"on",value:function on(){var _this$emitter4;return(_this$emitter4=this.emitter).on.apply(_this$emitter4,arguments);}},{key:"once",value:function once(){var _this$emitter5;return(_this$emitter5=this.emitter).once.apply(_this$emitter5,arguments);}},{key:"removeFormat",value:function removeFormat(t,n,r){var _nv15,_nv16,_this47=this;return _nv15=nv(t,n,r),_nv16=_slicedToArray(_nv15,4),t=_nv16[0],n=_nv16[1],r=_nv16[3],tv.call(this,function(){return _this47.editor.removeFormat(t,n);},r,t);}},{key:"scrollRectIntoView",value:function scrollRectIntoView(t){(function(t,n){var r=t.ownerDocument;var e=n,i=t;for(;i;){var _window$visualViewpor,_window$visualViewpor2,_window$visualViewpor3,_window$visualViewpor4,_r$defaultView;var _t88=i===r.body,_n16=_t88?{top:0,right:(_window$visualViewpor=(_window$visualViewpor2=window.visualViewport)===null||_window$visualViewpor2===void 0?void 0:_window$visualViewpor2.width)!==null&&_window$visualViewpor!==void 0?_window$visualViewpor:r.documentElement.clientWidth,bottom:(_window$visualViewpor3=(_window$visualViewpor4=window.visualViewport)===null||_window$visualViewpor4===void 0?void 0:_window$visualViewpor4.height)!==null&&_window$visualViewpor3!==void 0?_window$visualViewpor3:r.documentElement.clientHeight,left:0}:Ph(i),_o9=getComputedStyle(i),_u9=Wh(e.left,e.right,_n16.left,_n16.right,Zh(_o9.scrollPaddingLeft),Zh(_o9.scrollPaddingRight)),_c8=Wh(e.top,e.bottom,_n16.top,_n16.bottom,Zh(_o9.scrollPaddingTop),Zh(_o9.scrollPaddingBottom));if(_u9||_c8)if(_t88)(_r$defaultView=r.defaultView)===null||_r$defaultView===void 0||_r$defaultView.scrollBy(_u9,_c8);else{var _i18=i,_t89=_i18.scrollLeft,_n17=_i18.scrollTop;_c8&&(i.scrollTop+=_c8),_u9&&(i.scrollLeft+=_u9);var _r20=i.scrollLeft-_t89,_s9=i.scrollTop-_n17;e={left:e.left-_r20,top:e.top-_s9,right:e.right-_r20,bottom:e.bottom-_s9};}i=_t88||"fixed"===_o9.position?null:(s=i).parentElement||s.getRootNode().host||null;}var s;})(this.root,t);}},{key:"scrollIntoView",value:function scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView();}},{key:"scrollSelectionIntoView",value:function scrollSelectionIntoView(){var t=this.selection.lastRange,n=t&&this.selection.getBounds(t.index,t.length);n&&this.scrollRectIntoView(n);}},{key:"setContents",value:function setContents(t){var _this48=this;var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oh.sources.API;return tv.call(this,function(){t=new ch(t);var n=_this48.getLength(),r=_this48.editor.deleteText(0,n),e=_this48.editor.insertContents(0,t),i=_this48.editor.deleteText(_this48.getLength()-1,1);return r.compose(e).compose(i);},n);}},{key:"setSelection",value:function setSelection(t,n,r){var _nv17,_nv18;null==t?this.selection.setRange(null,n||Qh.sources.API):(_nv17=nv(t,n,r),_nv18=_slicedToArray(_nv17,4),t=_nv18[0],n=_nv18[1],r=_nv18[3],this.selection.setRange(new Eh(Math.max(0,t),n),r),r!==Oh.sources.SILENT&&this.scrollSelectionIntoView());}},{key:"setText",value:function setText(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oh.sources.API;var r=new ch().insert(t);return this.setContents(r,n);}},{key:"update",value:function update(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oh.sources.USER;var n=this.scroll.update(t);return this.selection.update(t),n;}},{key:"updateContents",value:function updateContents(t){var _this49=this;var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oh.sources.API;return tv.call(this,function(){return t=new ch(t),_this49.editor.applyDelta(t);},n,!0);}}],[{key:"debug",value:function debug(t){!0===t&&(t="log"),Ah.level(t);}},{key:"find",value:function find(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wh.get(t)||Gh.find(t,n);}},{key:"import",value:function _import(t){return null==this.imports[t]&&Kh.error("Cannot import ".concat(t,". Are you sure it was registered?")),this.imports[t];}},{key:"register",value:function register(){var _this50=this;if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){var _t90=arguments.length<=0?void 0:arguments[0],_n18=!!(arguments.length<=1?void 0:arguments[1]),_r21="attrName"in _t90?_t90.attrName:_t90.blotName;"string"==typeof _r21?this.register("formats/".concat(_r21),_t90,_n18):Object.keys(_t90).forEach(function(r){_this50.register(r,_t90[r],_n18);});}else{var _t91=arguments.length<=0?void 0:arguments[0],_n19=arguments.length<=1?void 0:arguments[1],_r22=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[_t91]||_r22||Kh.warn("Overwriting ".concat(_t91," with"),_n19),this.imports[_t91]=_n19,(_t91.startsWith("blots/")||_t91.startsWith("formats/"))&&_n19&&"boolean"!=typeof _n19&&"abstract"!==_n19.blotName&&Gh.register(_n19),"function"==typeof _n19.register&&_n19.register(Gh);}}}]);}();_defineProperty(Qh,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Gh,theme:"default"});_defineProperty(Qh,"events",Oh.events);_defineProperty(Qh,"sources",Oh.sources);_defineProperty(Qh,"version","2.0.3");_defineProperty(Qh,"imports",{delta:ch,parchment:Ef,"core/module":Dh,"core/theme":Uh});ev=/*#__PURE__*/function(_xf){function ev(){_classCallCheck(this,ev);return _callSuper(this,ev,arguments);}_inherits(ev,_xf);return _createClass(ev);}(xf);uv={scope:Ya.BLOCK,whitelist:["right","center","justify"]},cv=new Ja("align","align",uv);new ef("align","ql-align",uv);lv=new of("align","text-align",uv);av=/*#__PURE__*/function(_of){function av(){_classCallCheck(this,av);return _callSuper(this,av,arguments);}_inherits(av,_of);return _createClass(av,[{key:"value",value:function value(t){var n=_superPropGet(av,"value",this,3)([t]);if(!n.startsWith("rgb("))return n;n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#".concat(n.split(",").map(function(t){return"00".concat(parseInt(t,10).toString(16)).slice(-2);}).join(""));}}]);}(of);new ef("color","ql-color",{scope:Ya.INLINE});fv=new av("color","color",{scope:Ya.INLINE});new ef("background","ql-bg",{scope:Ya.INLINE});hv=new av("background","background-color",{scope:Ya.INLINE});vv=/*#__PURE__*/function(_ev){function vv(){_classCallCheck(this,vv);return _callSuper(this,vv,arguments);}_inherits(vv,_ev);return _createClass(vv,[{key:"code",value:function code(t,n){return this.children.map(function(t){return t.length()<=1?"":t.domNode.innerText;}).join("\n").slice(t,t+n);}},{key:"html",value:function html(t,n){return"<pre>\n".concat(hh(this.code(t,n)),"\n</pre>");}}],[{key:"create",value:function create(t){var n=_superPropGet(vv,"create",this,2)([t]);return n.setAttribute("spellcheck","false"),n;}}]);}(ev);dv=/*#__PURE__*/function(_dh2){function dv(){_classCallCheck(this,dv);return _callSuper(this,dv,arguments);}_inherits(dv,_dh2);return _createClass(dv,null,[{key:"register",value:function register(){Qh.register(vv);}}]);}(dh);_defineProperty(dv,"TAB"," ");pv=/*#__PURE__*/function(_vh2){function pv(){_classCallCheck(this,pv);return _callSuper(this,pv,arguments);}_inherits(pv,_vh2);return _createClass(pv);}(vh);pv.blotName="code",pv.tagName="CODE",dv.blotName="code-block",dv.className="ql-code-block",dv.tagName="DIV",vv.blotName="code-block-container",vv.className="ql-code-block-container",vv.tagName="DIV",vv.allowedChildren=[dv],dv.allowedChildren=[ah,lh,yh],dv.requiredContainer=vv;bv={scope:Ya.BLOCK,whitelist:["rtl"]},yv=new Ja("direction","dir",bv);new ef("direction","ql-direction",bv);mv=new of("direction","direction",bv),gv={scope:Ya.INLINE,whitelist:["serif","monospace"]};new ef("font","ql-font",gv);wv=new(/*#__PURE__*/function(_of2){function _class2(){_classCallCheck(this,_class2);return _callSuper(this,_class2,arguments);}_inherits(_class2,_of2);return _createClass(_class2,[{key:"value",value:function value(t){return _superPropGet(_class2,"value",this,3)([t]).replace(/["']/g,"");}}]);}(of))("font","font-family",gv);new ef("size","ql-size",{scope:Ya.INLINE,whitelist:["small","large","huge"]});xv=new of("size","font-size",{scope:Ya.INLINE,whitelist:["10px","18px","32px"]}),jv=Ah("quill:keyboard"),kv=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";Av=/*#__PURE__*/function(_Dh2){function Av(t,n){var _this51;_classCallCheck(this,Av);_this51=_callSuper(this,Av,[t,n]),_this51.bindings={},Object.keys(_this51.options.bindings).forEach(function(t){_this51.options.bindings[t]&&_this51.addBinding(_this51.options.bindings[t]);}),_this51.addBinding({key:"Enter",shiftKey:null},_this51.handleEnter),_this51.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(_this51.addBinding({key:"Backspace"},{collapsed:!0},_this51.handleBackspace),_this51.addBinding({key:"Delete"},{collapsed:!0},_this51.handleDelete)):(_this51.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},_this51.handleBackspace),_this51.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},_this51.handleDelete)),_this51.addBinding({key:"Backspace"},{collapsed:!1},_this51.handleDeleteRange),_this51.addBinding({key:"Delete"},{collapsed:!1},_this51.handleDeleteRange),_this51.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_this51.handleBackspace),_this51.listen();return _this51;}_inherits(Av,_Dh2);return _createClass(Av,[{key:"addBinding",value:function addBinding(t){var _this52=this;var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var e=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=_typeof(t))return null;t=Zi(t);}t.shortKey&&(t[kv]=t.shortKey,delete t.shortKey);return t;}(t);if(null==e)return void jv.warn("Attempted to add invalid keyboard binding",e);"function"==typeof n&&(n={handler:n}),"function"==typeof r&&(r={handler:r});(Array.isArray(e.key)?e.key:[e.key]).forEach(function(t){var i=_objectSpread(_objectSpread(_objectSpread({},e),{},{key:t},n),r);_this52.bindings[i.key]=_this52.bindings[i.key]||[],_this52.bindings[i.key].push(i);});}},{key:"listen",value:function listen(){var _this53=this;this.quill.root.addEventListener("keydown",function(t){if(t.defaultPrevented||t.isComposing)return;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;var n=(_this53.bindings[t.key]||[]).concat(_this53.bindings[t.which]||[]).filter(function(n){return Av.match(t,n);});if(0===n.length)return;var r=Qh.find(t.target,!0);if(r&&r.scroll!==_this53.quill.scroll)return;var e=_this53.quill.getSelection();if(null==e||!_this53.quill.hasFocus())return;var _this53$quill$getLine=_this53.quill.getLine(e.index),_this53$quill$getLine2=_slicedToArray(_this53$quill$getLine,2),i=_this53$quill$getLine2[0],s=_this53$quill$getLine2[1],_this53$quill$getLeaf=_this53.quill.getLeaf(e.index),_this53$quill$getLeaf2=_slicedToArray(_this53$quill$getLeaf,2),o=_this53$quill$getLeaf2[0],u=_this53$quill$getLeaf2[1],_ref3=0===e.length?[o,u]:_this53.quill.getLeaf(e.index+e.length),_ref4=_slicedToArray(_ref3,2),c=_ref4[0],l=_ref4[1],a=o instanceof Mf?o.value().slice(0,u):"",f=c instanceof Mf?c.value().slice(l):"",h={collapsed:0===e.length,empty:0===e.length&&i.length()<=1,format:_this53.quill.getFormat(e),line:i,offset:s,prefix:a,suffix:f,event:t};n.some(function(t){if(null!=t.collapsed&&t.collapsed!==h.collapsed)return!1;if(null!=t.empty&&t.empty!==h.empty)return!1;if(null!=t.offset&&t.offset!==h.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(t){return null==h.format[t];}))return!1;}else if("object"==_typeof(t.format)&&!Object.keys(t.format).every(function(n){return!0===t.format[n]?null!=h.format[n]:!1===t.format[n]?null==h.format[n]:Mu(t.format[n],h.format[n]);}))return!1;return!(null!=t.prefix&&!t.prefix.test(h.prefix))&&!(null!=t.suffix&&!t.suffix.test(h.suffix))&&!0!==t.handler.call(_this53,e,h,t);})&&t.preventDefault();});}},{key:"handleBackspace",value:function handleBackspace(t,n){var r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;var e={};var _this$quill$getLine=this.quill.getLine(t.index),_this$quill$getLine2=_slicedToArray(_this$quill$getLine,1),i=_this$quill$getLine2[0];var s=new ch().retain(t.index-r)["delete"](r);if(0===n.offset){var _this$quill$getLine3=this.quill.getLine(t.index-1),_this$quill$getLine4=_slicedToArray(_this$quill$getLine3,1),_n21=_this$quill$getLine4[0];if(_n21){if(!("block"===_n21.statics.blotName&&_n21.length()<=1)){var _n22=i.formats(),_r24=this.quill.getFormat(t.index-1,1);if(e=uh.AttributeMap.diff(_n22,_r24)||{},Object.keys(e).length>0){var _n23=new ch().retain(t.index+i.length()-2).retain(1,e);s=s.compose(_n23);}}}}this.quill.updateContents(s,Qh.sources.USER),this.quill.focus();}},{key:"handleDelete",value:function handleDelete(t,n){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;var e={};var _this$quill$getLine5=this.quill.getLine(t.index),_this$quill$getLine6=_slicedToArray(_this$quill$getLine5,1),i=_this$quill$getLine6[0];var s=new ch().retain(t.index)["delete"](r);if(n.offset>=i.length()-1){var _this$quill$getLine7=this.quill.getLine(t.index+1),_this$quill$getLine8=_slicedToArray(_this$quill$getLine7,1),_n24=_this$quill$getLine8[0];if(_n24){var _r25=i.formats(),_o11=this.quill.getFormat(t.index,1);e=uh.AttributeMap.diff(_r25,_o11)||{},Object.keys(e).length>0&&(s=s.retain(_n24.length()-1).retain(1,e));}}this.quill.updateContents(s,Qh.sources.USER),this.quill.focus();}},{key:"handleDeleteRange",value:function handleDeleteRange(t){Tv({range:t,quill:this.quill}),this.quill.focus();}},{key:"handleEnter",value:function handleEnter(t,n){var _this54=this;var r=Object.keys(n.format).reduce(function(t,r){return _this54.quill.scroll.query(r,Ya.BLOCK)&&!Array.isArray(n.format[r])&&(t[r]=n.format[r]),t;},{}),e=new ch().retain(t.index)["delete"](t.length).insert("\n",r);this.quill.updateContents(e,Qh.sources.USER),this.quill.setSelection(t.index+1,Qh.sources.SILENT),this.quill.focus();}}],[{key:"match",value:function match(t,n){return!["altKey","ctrlKey","metaKey","shiftKey"].some(function(r){return!!n[r]!==t[r]&&null!==n[r];})&&(n.key===t.key||n.key===t.which);}}]);}(Dh);qv={bindings:{bold:Ev("bold"),italic:Ev("italic"),underline:Ev("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler:function handler(t,n){return!(!n.collapsed||0===n.offset)||(this.quill.format("indent","+1",Qh.sources.USER),!1);}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function handler(t,n){return!(!n.collapsed||0===n.offset)||(this.quill.format("indent","-1",Qh.sources.USER),!1);}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function handler(t,n){null!=n.format.indent?this.quill.format("indent","-1",Qh.sources.USER):null!=n.format.list&&this.quill.format("list",!1,Qh.sources.USER);}},"indent code-block":Ov(!0),"outdent code-block":Ov(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function handler(t){this.quill.deleteText(t.index-1,1,Qh.sources.USER);}},tab:{key:"Tab",handler:function handler(t,n){if(n.format.table)return!0;this.quill.history.cutoff();var r=new ch().retain(t.index)["delete"](t.length).insert("\t");return this.quill.updateContents(r,Qh.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Qh.sources.SILENT),!1;}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function handler(){this.quill.format("blockquote",!1,Qh.sources.USER);}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler:function handler(t,n){var r={list:!1};n.format.indent&&(r.indent=!1),this.quill.formatLine(t.index,t.length,r,Qh.sources.USER);}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler:function handler(t){var _this$quill$getLine9=this.quill.getLine(t.index),_this$quill$getLine10=_slicedToArray(_this$quill$getLine9,2),n=_this$quill$getLine10[0],r=_this$quill$getLine10[1],e=_objectSpread(_objectSpread({},n.formats()),{},{list:"checked"}),i=new ch().retain(t.index).insert("\n",e).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Qh.sources.USER),this.quill.setSelection(t.index+1,Qh.sources.SILENT),this.quill.scrollSelectionIntoView();}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function handler(t,n){var _this$quill$getLine11=this.quill.getLine(t.index),_this$quill$getLine12=_slicedToArray(_this$quill$getLine11,2),r=_this$quill$getLine12[0],e=_this$quill$getLine12[1],i=new ch().retain(t.index).insert("\n",n.format).retain(r.length()-e-1).retain(1,{header:null});this.quill.updateContents(i,Qh.sources.USER),this.quill.setSelection(t.index+1,Qh.sources.SILENT),this.quill.scrollSelectionIntoView();}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler:function handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler:function handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler:function handler(t){var n=this.quill.getModule("table");if(n){var _n$getTable=n.getTable(t),_n$getTable2=_slicedToArray(_n$getTable,4),_r26=_n$getTable2[0],_e19=_n$getTable2[1],_i19=_n$getTable2[2],_s11=_n$getTable2[3],_o12=function(t,n,r,e){if(null==n.prev&&null==n.next)return null==r.prev&&null==r.next?0===e?-1:1:null==r.prev?-1:1;if(null==n.prev)return-1;if(null==n.next)return 1;return null;}(0,_e19,_i19,_s11);if(null==_o12)return;var _u10=_r26.offset();if(_o12<0){var _n25=new ch().retain(_u10).insert("\n");this.quill.updateContents(_n25,Qh.sources.USER),this.quill.setSelection(t.index+1,t.length,Qh.sources.SILENT);}else if(_o12>0){_u10+=_r26.length();var _t93=new ch().retain(_u10).insert("\n");this.quill.updateContents(_t93,Qh.sources.USER),this.quill.setSelection(_u10,Qh.sources.USER);}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler:function handler(t,n){var r=n.event,e=n.line,i=e.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(i-1,Qh.sources.USER):this.quill.setSelection(i+e.length(),Qh.sources.USER);}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function handler(t,n){if(null==this.quill.scroll.query("list"))return!0;var r=n.prefix.length,_this$quill$getLine13=this.quill.getLine(t.index),_this$quill$getLine14=_slicedToArray(_this$quill$getLine13,2),e=_this$quill$getLine14[0],i=_this$quill$getLine14[1];if(i>r)return!0;var s;switch(n.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered";}this.quill.insertText(t.index," ",Qh.sources.USER),this.quill.history.cutoff();var o=new ch().retain(t.index-i)["delete"](r+1).retain(e.length()-2-i).retain(1,{list:s});return this.quill.updateContents(o,Qh.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-r,Qh.sources.SILENT),!1;}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function handler(t){var _this$quill$getLine15=this.quill.getLine(t.index),_this$quill$getLine16=_slicedToArray(_this$quill$getLine15,2),n=_this$quill$getLine16[0],r=_this$quill$getLine16[1];var e=2,i=n;for(;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,e-=1,e<=0){var _e20=new ch().retain(t.index+n.length()-r-2).retain(1,{"code-block":null})["delete"](1);return this.quill.updateContents(_e20,Qh.sources.USER),this.quill.setSelection(t.index-1,Qh.sources.SILENT),!1;}return!0;}},"embed left":Mv("ArrowLeft",!1),"embed left shift":Mv("ArrowLeft",!0),"embed right":Mv("ArrowRight",!1),"embed right shift":Mv("ArrowRight",!0),"table down":_v(!1),"table up":_v(!0)}};Av.DEFAULTS=qv;Lv=/font-weight:\s*normal/,$v=["P","OL","UL"],Sv=function Sv(t){return t&&$v.includes(t.tagName);};Nv=/\bmso-list:[^;]*ignore/i,Rv=/\bmso-list:[^;]*\bl(\d+)/i,Iv=/\bmso-list:[^;]*\blevel(\d+)/i,Bv=function Bv(t){var n=Array.from(t.querySelectorAll("[style*=mso-list]")),r=[],e=[];n.forEach(function(t){(t.getAttribute("style")||"").match(Nv)?r.push(t):e.push(t);}),r.forEach(function(t){var _t$parentNode;return(_t$parentNode=t.parentNode)===null||_t$parentNode===void 0?void 0:_t$parentNode.removeChild(t);});var i=t.documentElement.innerHTML,s=e.map(function(t){return function(t,n){var r=t.getAttribute("style"),e=r===null||r===void 0?void 0:r.match(Rv);if(!e)return null;var i=Number(e[1]),s=r===null||r===void 0?void 0:r.match(Iv),o=s?Number(s[1]):1,u=new RegExp("@list l".concat(i,":level").concat(o,"\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)"),"i"),c=n.match(u);return{id:i,indent:o,type:c&&"bullet"===c[1]?"bullet":"ordered",element:t};}(t,i);}).filter(function(t){return t;});var _loop=function _loop(){var _t$;var t=[];var n=s.shift();for(;n;){var _s$;t.push(n),n=s.length&&((_s$=s[0])===null||_s$===void 0?void 0:_s$.element)===n.element.nextElementSibling&&s[0].id===n.id?s.shift():null;}var r=document.createElement("ul");t.forEach(function(t){var n=document.createElement("li");n.setAttribute("data-list",t.type),t.indent>1&&n.setAttribute("class","ql-indent-"+(t.indent-1)),n.innerHTML=t.element.innerHTML,r.appendChild(n);});var e=(_t$=t[0])===null||_t$===void 0?void 0:_t$.element,_ref6=e!==null&&e!==void 0?e:{},i=_ref6.parentNode;e&&i!==null&&i!==void 0&&i.replaceChild(r,e),t.slice(1).forEach(function(t){var n=t.element;i===null||i===void 0||i.removeChild(n);});};for(;s.length;){_loop();}};Cv=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&Bv(t);},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&(function(t){Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(function(t){var _t$getAttribute;return(_t$getAttribute=t.getAttribute("style"))===null||_t$getAttribute===void 0?void 0:_t$getAttribute.match(Lv);}).forEach(function(n){var _n$parentNode;var r=t.createDocumentFragment();r.append.apply(r,_toConsumableArray(n.childNodes)),(_n$parentNode=n.parentNode)===null||_n$parentNode===void 0?void 0:_n$parentNode.replaceChild(r,n);});}(t),function(t){Array.from(t.querySelectorAll("br")).filter(function(t){return Sv(t.previousElementSibling)&&Sv(t.nextElementSibling);}).forEach(function(t){var _t$parentNode2;(_t$parentNode2=t.parentNode)===null||_t$parentNode2===void 0||_t$parentNode2.removeChild(t);});}(t));}],Dv=Ah("quill:clipboard"),Vv=[[Node.TEXT_NODE,function(t,n,r){var _t$parentElement;var e=t.data;if("O:P"===((_t$parentElement=t.parentElement)===null||_t$parentElement===void 0?void 0:_t$parentElement.tagName))return n.insert(e.trim());if(!Kv(t)){if(0===e.trim().length&&e.includes("\n")&&!function(t,n){return t.previousElementSibling&&t.nextElementSibling&&!Wv(t.previousElementSibling,n)&&!Wv(t.nextElementSibling,n);}(t,r))return n;e=e.replace(/[^\S\u00a0]/g," "),e=e.replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&Wv(t.parentElement,r)||t.previousSibling instanceof Element&&Wv(t.previousSibling,r))&&(e=e.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&Wv(t.parentElement,r)||t.nextSibling instanceof Element&&Wv(t.nextSibling,r))&&(e=e.replace(/ $/,"")),e=e.replaceAll(" "," ");}return n.insert(e);}],[Node.TEXT_NODE,Yv],["br",function(t,n){Zv(n,"\n")||n.insert("\n");return n;}],[Node.ELEMENT_NODE,Yv],[Node.ELEMENT_NODE,function(t,n,r){var e=r.query(t);if(null==e)return n;if(e.prototype instanceof jf){var _n29={},_i20=e.value(t);if(null!=_i20)return _n29[e.blotName]=_i20,new ch().insert(_n29,e.formats(t,r));}else if(e.prototype instanceof gf&&!Zv(n,"\n")&&n.insert("\n"),"blotName"in e&&"formats"in e&&"function"==typeof e.formats)return Pv(n,e.blotName,e.formats(t,r),r);return n;}],[Node.ELEMENT_NODE,function(t,n,r){var e=Ja.keys(t),i=ef.keys(t),s=of.keys(t),o={};return e.concat(i).concat(s).forEach(function(n){var e=r.query(n,Ya.ATTRIBUTE);null!=e&&(o[e.attrName]=e.value(t),o[e.attrName])||(e=Hv[n],null==e||e.attrName!==n&&e.keyName!==n||(o[e.attrName]=e.value(t)||void 0),e=Fv[n],null==e||e.attrName!==n&&e.keyName!==n||(e=Fv[n],o[e.attrName]=e.value(t)||void 0));}),Object.entries(o).reduce(function(t,n){var _n30=_slicedToArray(n,2),e=_n30[0],i=_n30[1];return Pv(t,e,i,r);},n);}],[Node.ELEMENT_NODE,function(t,n,r){var _i$fontWeight;var e={},i=t.style||{};"italic"===i.fontStyle&&(e.italic=!0);"underline"===i.textDecoration&&(e.underline=!0);"line-through"===i.textDecoration&&(e.strike=!0);(((_i$fontWeight=i.fontWeight)===null||_i$fontWeight===void 0?void 0:_i$fontWeight.startsWith("bold"))||parseInt(i.fontWeight,10)>=700)&&(e.bold=!0);if(n=Object.entries(e).reduce(function(t,n){var _n31=_slicedToArray(n,2),e=_n31[0],i=_n31[1];return Pv(t,e,i,r);},n),parseFloat(i.textIndent||0)>0)return new ch().insert("\t").concat(n);return n;}],["li",function(t,n,r){var e=r.query(t);if(null==e||"list"!==e.blotName||!Zv(n,"\n"))return n;var i=-1,s=t.parentNode;for(;null!=s;)["OL","UL"].includes(s.tagName)&&(i+=1),s=s.parentNode;return i<=0?n:n.reduce(function(t,n){return n.insert?n.attributes&&"number"==typeof n.attributes.indent?t.push(n):t.insert(n.insert,_objectSpread({indent:i},n.attributes||{})):t;},new ch());}],["ol, ul",function(t,n,r){var e=t;var i="OL"===e.tagName?"ordered":"bullet";var s=e.getAttribute("data-checked");s&&(i="true"===s?"checked":"unchecked");return Pv(n,"list",i,r);}],["pre",function(t,n,r){var e=r.query("code-block"),i=!e||!("formats"in e)||"function"!=typeof e.formats||e.formats(t,r);return Pv(n,"code-block",i,r);}],["tr",function(t,n,r){var _t$parentElement2,_t$parentElement3;var e="TABLE"===((_t$parentElement2=t.parentElement)===null||_t$parentElement2===void 0?void 0:_t$parentElement2.tagName)?t.parentElement:(_t$parentElement3=t.parentElement)===null||_t$parentElement3===void 0?void 0:_t$parentElement3.parentElement;if(null!=e){return Pv(n,"table",Array.from(e.querySelectorAll("tr")).indexOf(t)+1,r);}return n;}],["b",Qv("bold")],["i",Qv("italic")],["strike",Qv("strike")],["style",function(){return new ch();}]],Hv=[cv,yv].reduce(function(t,n){return t[n.keyName]=n,t;},{}),Fv=[lv,hv,fv,mv,wv,xv].reduce(function(t,n){return t[n.keyName]=n,t;},{});Uv=/*#__PURE__*/function(_Dh3){function Uv(t,n){var _this55$options$match;var _this55;_classCallCheck(this,Uv);_this55=_callSuper(this,Uv,[t,n]),_this55.quill.root.addEventListener("copy",function(t){return _this55.onCaptureCopy(t,!1);}),_this55.quill.root.addEventListener("cut",function(t){return _this55.onCaptureCopy(t,!0);}),_this55.quill.root.addEventListener("paste",_this55.onCapturePaste.bind(_assertThisInitialized(_this55))),_this55.matchers=[],Vv.concat((_this55$options$match=_this55.options.matchers)!==null&&_this55$options$match!==void 0?_this55$options$match:[]).forEach(function(t){var _t96=_slicedToArray(t,2),n=_t96[0],r=_t96[1];_this55.addMatcher(n,r);});return _this55;}_inherits(Uv,_Dh3);return _createClass(Uv,[{key:"addMatcher",value:function addMatcher(t,n){this.matchers.push([t,n]);}},{key:"convert",value:function convert(t){var n=t.html,r=t.text,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e[dv.blotName])return new ch().insert(r||"",_defineProperty({},dv.blotName,e[dv.blotName]));if(!n)return new ch().insert(r||"",e);var i=this.convertHTML(n);return Zv(i,"\n")&&(null==i.ops[i.ops.length-1].attributes||e.table)?i.compose(new ch().retain(i.length()-1)["delete"](1)):i;}},{key:"normalizeHTML",value:function normalizeHTML(t){(function(t){t.documentElement&&Cv.forEach(function(n){n(t);});})(t);}},{key:"convertHTML",value:function convertHTML(t){var n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);var r=n.body,e=new WeakMap(),_this$prepareMatching=this.prepareMatching(r,e),_this$prepareMatching2=_slicedToArray(_this$prepareMatching,2),i=_this$prepareMatching2[0],s=_this$prepareMatching2[1];return Gv(this.quill.scroll,r,i,s,e);}},{key:"dangerouslyPasteHTML",value:function dangerouslyPasteHTML(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qh.sources.API;if("string"==typeof t){var _r27=this.convert({html:t,text:""});this.quill.setContents(_r27,n),this.quill.setSelection(0,Qh.sources.SILENT);}else{var _e22=this.convert({html:n,text:""});this.quill.updateContents(new ch().retain(t).concat(_e22),r),this.quill.setSelection(t+_e22.length(),Qh.sources.SILENT);}}},{key:"onCaptureCopy",value:function onCaptureCopy(t){var _t$clipboardData,_t$clipboardData2;var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();var _this$quill$selection=this.quill.selection.getRange(),_this$quill$selection2=_slicedToArray(_this$quill$selection,1),r=_this$quill$selection2[0];if(null==r)return;var _this$onCopy=this.onCopy(r,n),e=_this$onCopy.html,i=_this$onCopy.text;(_t$clipboardData=t.clipboardData)!==null&&_t$clipboardData!==void 0&&_t$clipboardData.setData("text/plain",i),(_t$clipboardData2=t.clipboardData)!==null&&_t$clipboardData2!==void 0&&_t$clipboardData2.setData("text/html",e),n&&Tv({range:r,quill:this.quill});}},{key:"normalizeURIList",value:function normalizeURIList(t){return t.split(/\r?\n/).filter(function(t){return"#"!==t[0];}).join("\n");}},{key:"onCapturePaste",value:function onCapturePaste(t){var _t$clipboardData3,_t$clipboardData4,_t$clipboardData6;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();var n=this.quill.getSelection(!0);if(null==n)return;var r=(_t$clipboardData3=t.clipboardData)===null||_t$clipboardData3===void 0?void 0:_t$clipboardData3.getData("text/html");var e=(_t$clipboardData4=t.clipboardData)===null||_t$clipboardData4===void 0?void 0:_t$clipboardData4.getData("text/plain");if(!r&&!e){var _t$clipboardData5;var _n32=(_t$clipboardData5=t.clipboardData)===null||_t$clipboardData5===void 0?void 0:_t$clipboardData5.getData("text/uri-list");_n32&&(e=this.normalizeURIList(_n32));}var i=Array.from(((_t$clipboardData6=t.clipboardData)===null||_t$clipboardData6===void 0?void 0:_t$clipboardData6.files)||[]);if(!r&&i.length>0)this.quill.uploader.upload(n,i);else{if(r&&i.length>0){var _t97$body$firstElemen;var _t97=new DOMParser().parseFromString(r,"text/html");if(1===_t97.body.childElementCount&&"IMG"===((_t97$body$firstElemen=_t97.body.firstElementChild)===null||_t97$body$firstElemen===void 0?void 0:_t97$body$firstElemen.tagName))return void this.quill.uploader.upload(n,i);}this.onPaste(n,{html:r,text:e});}}},{key:"onCopy",value:function onCopy(t){var n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n};}},{key:"onPaste",value:function onPaste(t,n){var r=n.text,e=n.html;var i=this.quill.getFormat(t.index),s=this.convert({text:r,html:e},i);Dv.log("onPaste",s,{text:r,html:e});var o=new ch().retain(t.index)["delete"](t.length).concat(s);this.quill.updateContents(o,Qh.sources.USER),this.quill.setSelection(o.length()-t.length,Qh.sources.SILENT),this.quill.scrollSelectionIntoView();}},{key:"prepareMatching",value:function prepareMatching(t,n){var r=[],e=[];return this.matchers.forEach(function(i){var _i21=_slicedToArray(i,2),s=_i21[0],o=_i21[1];switch(s){case Node.TEXT_NODE:e.push(o);break;case Node.ELEMENT_NODE:r.push(o);break;default:Array.from(t.querySelectorAll(s)).forEach(function(t){if(n.has(t)){var _r28=n.get(t);_r28===null||_r28===void 0||_r28.push(o);}else n.set(t,[o]);});}}),[r,e];}}]);}(Dh);_defineProperty(Uv,"DEFAULTS",{matchers:[]});zv=new WeakMap();Jv=/*#__PURE__*/function(_Dh4){function Jv(t,n){var _this56;_classCallCheck(this,Jv);_this56=_callSuper(this,Jv,[t,n]),_defineProperty(_assertThisInitialized(_this56),"lastRecorded",0),_defineProperty(_assertThisInitialized(_this56),"ignoreChange",!1),_defineProperty(_assertThisInitialized(_this56),"stack",{undo:[],redo:[]}),_defineProperty(_assertThisInitialized(_this56),"currentRange",null),_this56.quill.on(Qh.events.EDITOR_CHANGE,function(t,n,r,e){t===Qh.events.SELECTION_CHANGE?n&&e!==Qh.sources.SILENT&&(_this56.currentRange=n):t===Qh.events.TEXT_CHANGE&&(_this56.ignoreChange||(_this56.options.userOnly&&e!==Qh.sources.USER?_this56.transform(n):_this56.record(n,r)),_this56.currentRange=td(_this56.currentRange,n));}),_this56.quill.keyboard.addBinding({key:"z",shortKey:!0},_this56.undo.bind(_assertThisInitialized(_this56))),_this56.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},_this56.redo.bind(_assertThisInitialized(_this56))),/Win/i.test(navigator.platform)&&_this56.quill.keyboard.addBinding({key:"y",shortKey:!0},_this56.redo.bind(_assertThisInitialized(_this56))),_this56.quill.root.addEventListener("beforeinput",function(t){"historyUndo"===t.inputType?(_this56.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(_this56.redo(),t.preventDefault());});return _this56;}_inherits(Jv,_Dh4);return _createClass(Jv,[{key:"change",value:function change(t,n){if(0===this.stack[t].length)return;var r=this.stack[t].pop();if(!r)return;var e=this.quill.getContents(),i=r.delta.invert(e);this.stack[n].push({delta:i,range:td(r.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,Qh.sources.USER),this.ignoreChange=!1,this.restoreSelection(r);}},{key:"clear",value:function clear(){this.stack={undo:[],redo:[]};}},{key:"cutoff",value:function cutoff(){this.lastRecorded=0;}},{key:"record",value:function record(t,n){if(0===t.ops.length)return;this.stack.redo=[];var r=t.invert(n),e=this.currentRange;var i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var _t99=this.stack.undo.pop();_t99&&(r=r.compose(_t99.delta),e=_t99.range);}else this.lastRecorded=i;0!==r.length()&&(this.stack.undo.push({delta:r,range:e}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift());}},{key:"redo",value:function redo(){this.change("redo","undo");}},{key:"transform",value:function transform(t){Xv(this.stack.undo,t),Xv(this.stack.redo,t);}},{key:"undo",value:function undo(){this.change("undo","redo");}},{key:"restoreSelection",value:function restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Qh.sources.USER);else{var _n34=function(t,n){var r=n.reduce(function(t,n){return t+(n["delete"]||0);},0);var e=n.length()-r;(function(t,n){var r=n.ops[n.ops.length-1];if(null==r)return!1;if(null!=r.insert)return"string"==typeof r.insert&&r.insert.endsWith("\n");if(null!=r.attributes)return Object.keys(r.attributes).some(function(n){return null!=t.query(n,Ya.BLOCK);});return!1;})(t,n)&&(e-=1);return e;}(this.quill.scroll,t.delta);this.quill.setSelection(_n34,Qh.sources.USER);}}}]);}(Dh);_defineProperty(Jv,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});nd=/*#__PURE__*/function(_Dh5){function nd(t,n){var _this57;_classCallCheck(this,nd);_this57=_callSuper(this,nd,[t,n]),t.root.addEventListener("drop",function(n){n.preventDefault();var r=null;if(document.caretRangeFromPoint)r=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){var _t100=document.caretPositionFromPoint(n.clientX,n.clientY);r=document.createRange(),r.setStart(_t100.offsetNode,_t100.offset),r.setEnd(_t100.offsetNode,_t100.offset);}var e=r&&t.selection.normalizeNative(r);if(e){var _n$dataTransfer;var _r29=t.selection.normalizedToRange(e);((_n$dataTransfer=n.dataTransfer)===null||_n$dataTransfer===void 0?void 0:_n$dataTransfer.files)&&_this57.upload(_r29,n.dataTransfer.files);}});return _this57;}_inherits(nd,_Dh5);return _createClass(nd,[{key:"upload",value:function upload(t,n){var _this58=this;var r=[];Array.from(n).forEach(function(t){var _this58$options$mimet;t&&((_this58$options$mimet=_this58.options.mimetypes)===null||_this58$options$mimet===void 0?void 0:_this58$options$mimet.includes(t.type))&&r.push(t);}),r.length>0&&this.options.handler.call(this,t,r);}}]);}(Dh);nd.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler:function handler(t,n){var _this59=this;if(!this.quill.scroll.query("image"))return;var r=n.map(function(t){return new Promise(function(n){var r=new FileReader();r.onload=function(){n(r.result);},r.readAsDataURL(t);});});Promise.all(r).then(function(n){var r=n.reduce(function(t,n){return t.insert({image:n});},new ch().retain(t.index)["delete"](t.length));_this59.quill.updateContents(r,Oh.sources.USER),_this59.quill.setSelection(t.index+n.length,Oh.sources.SILENT);});}};rd=["insertText","insertReplacementText"];ed=/Mac/i.test(navigator.platform);Qh.register({"blots/block":dh,"blots/block/embed":ph,"blots/break":lh,"blots/container":ev,"blots/cursor":yh,"blots/embed":Hh,"blots/inline":vh,"blots/scroll":(_Class=/*#__PURE__*/function(_qf){function blots_scroll(t,n,r){var _this60;_classCallCheck(this,blots_scroll);var e=r.emitter;_this60=_callSuper(this,blots_scroll,[t,n]),_this60.emitter=e,_this60.batch=!1,_this60.optimize(),_this60.enable(),_this60.domNode.addEventListener("dragstart",function(t){return _this60.handleDragStart(t);});return _this60;}_inherits(blots_scroll,_qf);return _createClass(blots_scroll,[{key:"batchStart",value:function batchStart(){Array.isArray(this.batch)||(this.batch=[]);}},{key:"batchEnd",value:function batchEnd(){if(!this.batch)return;var t=this.batch;this.batch=!1,this.update(t);}},{key:"emitMount",value:function emitMount(t){this.emitter.emit(Oh.events.SCROLL_BLOT_MOUNT,t);}},{key:"emitUnmount",value:function emitUnmount(t){this.emitter.emit(Oh.events.SCROLL_BLOT_UNMOUNT,t);}},{key:"emitEmbedUpdate",value:function emitEmbedUpdate(t,n){this.emitter.emit(Oh.events.SCROLL_EMBED_UPDATE,t,n);}},{key:"deleteAt",value:function deleteAt(t,n){var _this$line=this.line(t),_this$line2=_slicedToArray(_this$line,2),r=_this$line2[0],e=_this$line2[1],_this$line3=this.line(t+n),_this$line4=_slicedToArray(_this$line3,1),i=_this$line4[0];if(_superPropGet(blots_scroll,"deleteAt",this,3)([t,n]),null!=i&&r!==i&&e>0){if(r instanceof ph||i instanceof ph)return void this.optimize();var _t101=i.children.head instanceof lh?null:i.children.head;r.moveChildren(i,_t101),r.remove();}this.optimize();}},{key:"enable",value:function enable(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t?"true":"false");}},{key:"formatAt",value:function formatAt(t,n,r,e){_superPropGet(blots_scroll,"formatAt",this,3)([t,n,r,e]),this.optimize();}},{key:"insertAt",value:function insertAt(t,n,r){if(t>=this.length()){if(null==r||null==this.scroll.query(n,Ya.BLOCK)){var _t102=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(_t102),null==r&&n.endsWith("\n")?_t102.insertAt(0,n.slice(0,-1),r):_t102.insertAt(0,n,r);}else{var _t103=this.scroll.create(n,r);this.appendChild(_t103);}}else _superPropGet(blots_scroll,"insertAt",this,3)([t,n,r]);this.optimize();}},{key:"insertBefore",value:function insertBefore(t,n){if(t.statics.scope===Ya.INLINE_BLOT){var _r30=this.scroll.create(this.statics.defaultChild.blotName);_r30.appendChild(t),_superPropGet(blots_scroll,"insertBefore",this,3)([_r30,n]);}else _superPropGet(blots_scroll,"insertBefore",this,3)([t,n]);}},{key:"insertContents",value:function insertContents(t,n){var _this61=this;var r=this.deltaToRenderBlocks(n.concat(new ch().insert("\n"))),e=r.pop();if(null==e)return;this.batchStart();var i=r.shift();if(i){var _n36="block"===i.type&&(0===i.delta.length()||!this.descendant(ph,t)[0]&&t<this.length()),_r31="block"===i.type?i.delta:new ch().insert(_defineProperty({},i.key,i.value));ov(this,t,_r31);var _e26="block"===i.type?1:0,_s12=t+_r31.length()+_e26;_n36&&this.insertAt(_s12-1,"\n");var _o13=bh(this.line(t)[0]),_u11=uh.AttributeMap.diff(_o13,i.attributes)||{};Object.keys(_u11).forEach(function(t){_this61.formatAt(_s12-1,1,t,_u11[t]);}),t=_s12;}var _this$children$find7=this.children.find(t),_this$children$find8=_slicedToArray(_this$children$find7,2),s=_this$children$find8[0],o=_this$children$find8[1];if(r.length&&(s&&(s=s.split(o),o=0),r.forEach(function(t){if("block"===t.type){ov(_this61.createBlock(t.attributes,s||void 0),0,t.delta);}else{var _n37=_this61.create(t.key,t.value);_this61.insertBefore(_n37,s||void 0),Object.keys(t.attributes).forEach(function(r){_n37.format(r,t.attributes[r]);});}})),"block"===e.type&&e.delta.length()){ov(this,s?s.offset(s.scroll)+o:this.length(),e.delta);}this.batchEnd(),this.optimize();}},{key:"isEnabled",value:function isEnabled(){return"true"===this.domNode.getAttribute("contenteditable");}},{key:"leaf",value:function leaf(t){var n=this.path(t).pop();if(!n)return[null,-1];var _n38=_slicedToArray(n,2),r=_n38[0],e=_n38[1];return r instanceof ff?[r,e]:[null,-1];}},{key:"line",value:function line(t){return t===this.length()?this.line(t-1):this.descendant(iv,t);}},{key:"lines",value:function lines(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;var _r32=function r(t,n,e){var i=[],s=e;return t.children.forEachAt(n,e,function(t,n,e){iv(t)?i.push(t):t instanceof xf&&(i=i.concat(_r32(t,n,s))),s-=e;}),i;};return _r32(this,t,n);}},{key:"optimize",value:function optimize(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(_superPropGet(blots_scroll,"optimize",this,3)([t,n]),t.length>0&&this.emitter.emit(Oh.events.SCROLL_OPTIMIZE,t,n));}},{key:"path",value:function path(t){return _superPropGet(blots_scroll,"path",this,3)([t]).slice(1);}},{key:"remove",value:function remove(){}},{key:"update",value:function update(t){var _this62=this;if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));var n=Oh.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(function(t){var n=t.target;var r=_this62.find(n,!0);return r&&!sv(r);})).length>0&&this.emitter.emit(Oh.events.SCROLL_BEFORE_UPDATE,n,t),_superPropGet(blots_scroll,"update",this,3)([t.concat([])]),t.length>0&&this.emitter.emit(Oh.events.SCROLL_UPDATE,n,t);}},{key:"updateEmbedAt",value:function updateEmbedAt(t,n,r){var _this$descendant=this.descendant(function(t){return t instanceof ph;},t),_this$descendant2=_slicedToArray(_this$descendant,1),e=_this$descendant2[0];e&&e.statics.blotName===n&&sv(e)&&e.updateContent(r);}},{key:"handleDragStart",value:function handleDragStart(t){t.preventDefault();}},{key:"deltaToRenderBlocks",value:function deltaToRenderBlocks(t){var _this63=this;var n=[];var r=new ch();return t.forEach(function(t){var e=t===null||t===void 0?void 0:t.insert;if(e)if("string"==typeof e){var _i22=e.split("\n");_i22.slice(0,-1).forEach(function(e){var _t$attributes;r.insert(e,t.attributes),n.push({type:"block",delta:r,attributes:(_t$attributes=t.attributes)!==null&&_t$attributes!==void 0?_t$attributes:{}}),r=new ch();});var _s13=_i22[_i22.length-1];_s13&&r.insert(_s13,t.attributes);}else{var _t$attributes2;var _i23=Object.keys(e)[0];if(!_i23)return;_this63.query(_i23,Ya.INLINE)?r.push(t):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new ch(),n.push({type:"blockEmbed",key:_i23,value:e[_i23],attributes:(_t$attributes2=t.attributes)!==null&&_t$attributes2!==void 0?_t$attributes2:{}}));}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n;}},{key:"createBlock",value:function createBlock(t,n){var _this64=this;var r;var e={};Object.entries(t).forEach(function(t){var _t104=_slicedToArray(t,2),n=_t104[0],i=_t104[1];null!=_this64.query(n,Ya.BLOCK&Ya.BLOT)?r=n:e[n]=i;});var i=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(i,n||void 0);var s=i.length();return Object.entries(e).forEach(function(t){var _t105=_slicedToArray(t,2),n=_t105[0],r=_t105[1];i.formatAt(0,s,n,r);}),i;}}]);}(qf),_defineProperty(_Class,"blotName","scroll"),_defineProperty(_Class,"className","ql-editor"),_defineProperty(_Class,"tagName","DIV"),_defineProperty(_Class,"defaultChild",dh),_defineProperty(_Class,"allowedChildren",[dh,ph,ev]),_Class),"blots/text":ah,"modules/clipboard":Uv,"modules/history":Jv,"modules/keyboard":Av,"modules/uploader":nd,"modules/input":/*#__PURE__*/function(_Dh6){function modules_input(t,n){var _this65;_classCallCheck(this,modules_input);_this65=_callSuper(this,modules_input,[t,n]),t.root.addEventListener("beforeinput",function(t){_this65.handleBeforeInput(t);}),/Android/i.test(navigator.userAgent)||t.on(Qh.events.COMPOSITION_BEFORE_START,function(){_this65.handleCompositionStart();});return _this65;}_inherits(modules_input,_Dh6);return _createClass(modules_input,[{key:"deleteRange",value:function deleteRange(t){Tv({range:t,quill:this.quill});}},{key:"replaceText",value:function replaceText(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(n){var _r33=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new ch().retain(t.index).insert(n,_r33),Qh.sources.USER);}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,Qh.sources.SILENT),!0;}},{key:"handleBeforeInput",value:function handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!rd.includes(t.inputType))return;var n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||!0===n.collapsed)return;var r=function(t,_t$dataTransfer){if("string"==typeof t.data)return t.data;if((_t$dataTransfer=t.dataTransfer)!==null&&_t$dataTransfer!==void 0&&_t$dataTransfer.types.includes("text/plain"))return t.dataTransfer.getData("text/plain");return null;}(t);if(null==r)return;var e=this.quill.selection.normalizeNative(n),i=e?this.quill.selection.normalizedToRange(e):null;i&&this.replaceText(i,r)&&t.preventDefault();}},{key:"handleCompositionStart",value:function handleCompositionStart(){var t=this.quill.getSelection();t&&this.replaceText(t);}}]);}(Dh),"modules/uiNode":/*#__PURE__*/function(_Dh7){function modules_uiNode(t,n){var _this66;_classCallCheck(this,modules_uiNode);_this66=_callSuper(this,modules_uiNode,[t,n]),_defineProperty(_assertThisInitialized(_this66),"isListening",!1),_defineProperty(_assertThisInitialized(_this66),"selectionChangeDeadline",0),_this66.handleArrowKeys(),_this66.handleNavigationShortcuts();return _this66;}_inherits(modules_uiNode,_Dh7);return _createClass(modules_uiNode,[{key:"handleArrowKeys",value:function handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler:function handler(t,n){var r=n.line,e=n.event;if(!(r instanceof pf&&r.uiNode))return!0;var i="rtl"===getComputedStyle(r.domNode).direction;return!!(i&&"ArrowRight"!==e.key||!i&&"ArrowLeft"!==e.key)||(this.quill.setSelection(t.index-1,t.length+(e.shiftKey?1:0),Qh.sources.USER),!1);}});}},{key:"handleNavigationShortcuts",value:function handleNavigationShortcuts(){var _this67=this;this.quill.root.addEventListener("keydown",function(t){!t.defaultPrevented&&function(t){return"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!ed||"a"!==t.key||!0!==t.ctrlKey);}(t)&&_this67.ensureListeningToSelectionChange();});}},{key:"ensureListeningToSelectionChange",value:function ensureListeningToSelectionChange(){var _this68=this;if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;document.addEventListener("selectionchange",function(){_this68.isListening=!1,Date.now()<=_this68.selectionChangeDeadline&&_this68.handleSelectionChange();},{once:!0});}},{key:"handleSelectionChange",value:function handleSelectionChange(){var t=document.getSelection();if(!t)return;var n=t.getRangeAt(0);if(!0!==n.collapsed||0!==n.startOffset)return;var r=this.quill.scroll.find(n.startContainer);if(!(r instanceof pf&&r.uiNode))return;var e=document.createRange();e.setStartAfter(r.uiNode),e.setEndAfter(r.uiNode),t.removeAllRanges(),t.addRange(e);}}]);}(Dh)});id=Ah("quill:toolbar");sd=/*#__PURE__*/function(_Dh8){function sd(t,n){var _this69;_classCallCheck(this,sd);if(_this69=_callSuper(this,sd,[t,n]),Array.isArray(_this69.options.container)){var _t$container;var _n39=document.createElement("div");_n39.setAttribute("role","toolbar"),function(t,n){Array.isArray(n[0])||(n=[n]);n.forEach(function(n){var r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(function(t){if("string"==typeof t)od(r,t);else{var _n40=Object.keys(t)[0],_e27=t[_n40];Array.isArray(_e27)?function(t,n,r){var e=document.createElement("select");e.classList.add("ql-".concat(n)),r.forEach(function(t){var n=document.createElement("option");!1!==t?n.setAttribute("value",String(t)):n.setAttribute("selected","selected"),e.appendChild(n);}),t.appendChild(e);}(r,_n40,_e27):od(r,_n40,_e27);}}),t.appendChild(r);});}(_n39,_this69.options.container),(_t$container=t.container)!==null&&_t$container!==void 0&&(_t$container=_t$container.parentNode)!==null&&_t$container!==void 0&&_t$container.insertBefore(_n39,t.container),_this69.container=_n39;}else"string"==typeof _this69.options.container?_this69.container=document.querySelector(_this69.options.container):_this69.container=_this69.options.container;_this69.container instanceof HTMLElement?(_this69.container.classList.add("ql-toolbar"),_this69.controls=[],_this69.handlers={},_this69.options.handlers&&Object.keys(_this69.options.handlers).forEach(function(t){var _this69$options$handl;var n=(_this69$options$handl=_this69.options.handlers)===null||_this69$options$handl===void 0?void 0:_this69$options$handl[t];n&&_this69.addHandler(t,n);}),Array.from(_this69.container.querySelectorAll("button, select")).forEach(function(t){_this69.attach(t);}),_this69.quill.on(Qh.events.EDITOR_CHANGE,function(){var _this69$quill$selecti=_this69.quill.selection.getRange(),_this69$quill$selecti2=_slicedToArray(_this69$quill$selecti,1),t=_this69$quill$selecti2[0];_this69.update(t);})):id.error("Container required for toolbar",_this69.options);return _this69;}_inherits(sd,_Dh8);return _createClass(sd,[{key:"addHandler",value:function addHandler(t,n){this.handlers[t]=n;}},{key:"attach",value:function attach(t){var _this70=this;var n=Array.from(t.classList).find(function(t){return 0===t.indexOf("ql-");});if(!n)return;if(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]&&null==this.quill.scroll.query(n))return void id.warn("ignoring attaching to nonexistent format",n,t);var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var e;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var _n41=t.options[t.selectedIndex];e=!_n41.hasAttribute("selected")&&(_n41.value||!1);}else e=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();_this70.quill.focus();var _this70$quill$selecti=_this70.quill.selection.getRange(),_this70$quill$selecti2=_slicedToArray(_this70$quill$selecti,1),i=_this70$quill$selecti2[0];if(null!=_this70.handlers[n])_this70.handlers[n].call(_this70,e);else if(_this70.quill.scroll.query(n).prototype instanceof jf){if(e=prompt("Enter ".concat(n)),!e)return;_this70.quill.updateContents(new ch().retain(i.index)["delete"](i.length).insert(_defineProperty({},n,e)),Qh.sources.USER);}else _this70.quill.format(n,e,Qh.sources.USER);_this70.update(i);}),this.controls.push([n,t]);}},{key:"update",value:function update(t){var n=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(r){var _r34=_slicedToArray(r,2),e=_r34[0],i=_r34[1];if("SELECT"===i.tagName){var _r35=null;if(null==t)_r35=null;else if(null==n[e])_r35=i.querySelector("option[selected]");else if(!Array.isArray(n[e])){var _t106=n[e];"string"==typeof _t106&&(_t106=_t106.replace(/"/g,'\\"')),_r35=i.querySelector("option[value=\"".concat(_t106,"\"]"));}null==_r35?(i.value="",i.selectedIndex=-1):_r35.selected=!0;}else if(null==t)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){var _t107=n[e],_r36=_t107===i.getAttribute("value")||null!=_t107&&_t107.toString()===i.getAttribute("value")||null==_t107&&!i.getAttribute("value");i.classList.toggle("ql-active",_r36),i.setAttribute("aria-pressed",_r36.toString());}else{var _t108=null!=n[e];i.classList.toggle("ql-active",_t108),i.setAttribute("aria-pressed",_t108.toString());}});}}]);}(Dh);sd.DEFAULTS={},sd.DEFAULTS={container:null,handlers:{clean:function clean(){var _this71=this;var t=this.quill.getSelection();if(null!=t)if(0===t.length){var _t109=this.quill.getFormat();Object.keys(_t109).forEach(function(t){null!=_this71.quill.scroll.query(t,Ya.INLINE)&&_this71.quill.format(t,!1,Qh.sources.USER);});}else this.quill.removeFormat(t.index,t.length,Qh.sources.USER);},direction:function direction(t){var _this$quill$getFormat=this.quill.getFormat(),n=_this$quill$getFormat.align;"rtl"===t&&null==n?this.quill.format("align","right",Qh.sources.USER):t||"right"!==n||this.quill.format("align",!1,Qh.sources.USER),this.quill.format("direction",t,Qh.sources.USER);},indent:function indent(t){var n=this.quill.getSelection(),r=this.quill.getFormat(n),e=parseInt(r.indent||0,10);if("+1"===t||"-1"===t){var _n42="+1"===t?1:-1;"rtl"===r.direction&&(_n42*=-1),this.quill.format("indent",e+_n42,Qh.sources.USER);}},link:function link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Qh.sources.USER);},list:function list(t){var n=this.quill.getSelection(),r=this.quill.getFormat(n);"check"===t?"checked"===r.list||"unchecked"===r.list?this.quill.format("list",!1,Qh.sources.USER):this.quill.format("list","unchecked",Qh.sources.USER):this.quill.format("list",t,Qh.sources.USER);}}};ud=0;ld=/*#__PURE__*/function(){function ld(t){var _this72=this;_classCallCheck(this,ld);this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){_this72.togglePicker();}),this.label.addEventListener("keydown",function(t){switch(t.key){case"Enter":_this72.togglePicker();break;case"Escape":_this72.escape(),t.preventDefault();}}),this.select.addEventListener("change",this.update.bind(this));}return _createClass(ld,[{key:"togglePicker",value:function togglePicker(){this.container.classList.toggle("ql-expanded"),cd(this.label,"aria-expanded"),cd(this.options,"aria-hidden");}},{key:"buildItem",value:function buildItem(t){var _this73=this;var n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");var r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){_this73.selectItem(n,!0);}),n.addEventListener("keydown",function(t){switch(t.key){case"Enter":_this73.selectItem(n,!0),t.preventDefault();break;case"Escape":_this73.escape(),t.preventDefault();}}),n;}},{key:"buildLabel",value:function buildLabel(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t;}},{key:"buildOptions",value:function buildOptions(){var _this74=this;var t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-".concat(ud),ud+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(function(n){var r=_this74.buildItem(n);t.appendChild(r),!0===n.selected&&_this74.selectItem(r);}),this.container.appendChild(t);}},{key:"buildPicker",value:function buildPicker(){var _this75=this;Array.from(this.select.attributes).forEach(function(t){_this75.container.setAttribute(t.name,t.value);}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions();}},{key:"escape",value:function escape(){var _this76=this;this.close(),setTimeout(function(){return _this76.label.focus();},1);}},{key:"close",value:function close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true");}},{key:"selectItem",value:function selectItem(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=this.container.querySelector(".ql-selected");t!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())));}},{key:"update",value:function update(){var t;if(this.select.selectedIndex>-1){var _n43=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(_n43);}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n);}}]);}();ad=/*#__PURE__*/function(_ld){function ad(t,n){var _this77;_classCallCheck(this,ad);_this77=_callSuper(this,ad,[t]),_this77.label.innerHTML=n,_this77.container.classList.add("ql-color-picker"),Array.from(_this77.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(function(t){t.classList.add("ql-primary");});return _this77;}_inherits(ad,_ld);return _createClass(ad,[{key:"buildItem",value:function buildItem(t){var n=_superPropGet(ad,"buildItem",this,3)([t]);return n.style.backgroundColor=t.getAttribute("value")||"",n;}},{key:"selectItem",value:function selectItem(t,n){_superPropGet(ad,"selectItem",this,3)([t,n]);var r=this.label.querySelector(".ql-color-label"),e=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=e:r.style.fill=e);}}]);}(ld);fd=/*#__PURE__*/function(_ld2){function fd(t,n){var _this78;_classCallCheck(this,fd);_this78=_callSuper(this,fd,[t]),_this78.container.classList.add("ql-icon-picker"),Array.from(_this78.container.querySelectorAll(".ql-picker-item")).forEach(function(t){t.innerHTML=n[t.getAttribute("data-value")||""];}),_this78.defaultItem=_this78.container.querySelector(".ql-selected"),_this78.selectItem(_this78.defaultItem);return _this78;}_inherits(fd,_ld2);return _createClass(fd,[{key:"selectItem",value:function selectItem(t,n){_superPropGet(fd,"selectItem",this,3)([t,n]);var r=t||this.defaultItem;if(null!=r){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML;}}}]);}(ld);hd=/*#__PURE__*/function(){function hd(t,n){var _this79=this;_classCallCheck(this,hd);this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,function(t){var _getComputedStyle=getComputedStyle(t,null),n=_getComputedStyle.overflowY;return"visible"!==n&&"clip"!==n;}(this.quill.root)&&this.quill.root.addEventListener("scroll",function(){_this79.root.style.marginTop=-1*_this79.quill.root.scrollTop+"px";}),this.hide();}return _createClass(hd,[{key:"hide",value:function hide(){this.root.classList.add("ql-hidden");}},{key:"position",value:function position(t){var n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left="".concat(n,"px"),this.root.style.top="".concat(r,"px"),this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();var s=0;if(i.right>e.right&&(s=e.right-i.right,this.root.style.left="".concat(n+s,"px")),i.left<e.left&&(s=e.left-i.left,this.root.style.left="".concat(n+s,"px")),i.bottom>e.bottom){var _n44=i.bottom-i.top,_e28=t.bottom-t.top+_n44;this.root.style.top=r-_e28+"px",this.root.classList.add("ql-flip");}return s;}},{key:"show",value:function show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden");}}]);}();vd=[!1,"center","right","justify"],dd=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],pd=[!1,"serif","monospace"],bd=["1","2","3",!1],yd=["small",!1,"large","huge"];md=/*#__PURE__*/function(_Uh2){function md(t,n){var _this80;_classCallCheck(this,md);_this80=_callSuper(this,md,[t,n]);var _r37=function r(n){document.body.contains(t.root)?(null==_this80.tooltip||_this80.tooltip.root.contains(n.target)||document.activeElement===_this80.tooltip.textbox||_this80.quill.hasFocus()||_this80.tooltip.hide(),null!=_this80.pickers&&_this80.pickers.forEach(function(t){t.container.contains(n.target)||t.close();})):document.body.removeEventListener("click",_r37);};t.emitter.listenDOM("click",document.body,_r37);return _this80;}_inherits(md,_Uh2);return _createClass(md,[{key:"addModule",value:function addModule(t){var n=_superPropGet(md,"addModule",this,3)([t]);return"toolbar"===t&&this.extendToolbar(n),n;}},{key:"buildButtons",value:function buildButtons(t,n){Array.from(t).forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(r){if(r.startsWith("ql-")&&(r=r.slice(3),null!=n[r]))if("direction"===r)t.innerHTML=n[r][""]+n[r].rtl;else if("string"==typeof n[r])t.innerHTML=n[r];else{var _e29=t.value||"";null!=_e29&&n[r][_e29]&&(t.innerHTML=n[r][_e29]);}});});}},{key:"buildPickers",value:function buildPickers(t,n){var _this81=this;this.pickers=Array.from(t).map(function(t){if(t.classList.contains("ql-align")&&(null==t.querySelector("option")&&wd(t,vd),"object"==_typeof(n.align)))return new fd(t,n.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var _r38=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&wd(t,dd,"background"===_r38?"#ffffff":"#000000"),new ad(t,n[_r38]);}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?wd(t,pd):t.classList.contains("ql-header")?wd(t,bd):t.classList.contains("ql-size")&&wd(t,yd)),new ld(t);});this.quill.on(Oh.events.EDITOR_CHANGE,function(){_this81.pickers.forEach(function(t){t.update();});});}}]);}(Uh);md.DEFAULTS=Ku({},Uh.DEFAULTS,{modules:{toolbar:{handlers:{formula:function formula(){this.quill.theme.tooltip.edit("formula");},image:function image(){var _this82=this;var t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",function(){var n=_this82.quill.getSelection(!0);_this82.quill.uploader.upload(n,t.files),t.value="";}),this.container.appendChild(t)),t.click();},video:function video(){this.quill.theme.tooltip.edit("video");}}}}});gd=/*#__PURE__*/function(_hd){function gd(t,n){var _this83;_classCallCheck(this,gd);_this83=_callSuper(this,gd,[t,n]),_this83.textbox=_this83.root.querySelector('input[type="text"]'),_this83.listen();return _this83;}_inherits(gd,_hd);return _createClass(gd,[{key:"listen",value:function listen(){var _this84=this;this.textbox.addEventListener("keydown",function(t){"Enter"===t.key?(_this84.save(),t.preventDefault()):"Escape"===t.key&&(_this84.cancel(),t.preventDefault());});}},{key:"cancel",value:function cancel(){this.hide(),this.restoreFocus();}},{key:"edit",value:function edit(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=n?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");var r=this.quill.getBounds(this.quill.selection.savedRange);null!=r&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-".concat(t))||""),this.root.setAttribute("data-mode",t);}},{key:"restoreFocus",value:function restoreFocus(){this.quill.focus({preventScroll:!0});}},{key:"save",value:function save(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var _n45=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Oh.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Oh.sources.USER)),this.quill.root.scrollTop=_n45;break;}case"video":t=function(t){var n=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(n)return"".concat(n[1]||"https","://www.youtube.com/embed/").concat(n[2],"?showinfo=0");if(n=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return"".concat(n[1]||"https","://player.vimeo.com/video/").concat(n[2],"/");return t;}(t);case"formula":{if(!t)break;var _n46=this.quill.getSelection(!0);if(null!=_n46){var _r39=_n46.index+_n46.length;this.quill.insertEmbed(_r39,this.root.getAttribute("data-mode"),t,Oh.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(_r39+1," ",Oh.sources.USER),this.quill.setSelection(_r39+2,Oh.sources.USER);}break;}}this.textbox.value="",this.hide();}}]);}(hd);xd=/*#__PURE__*/function(_vh3){function xd(){_classCallCheck(this,xd);return _callSuper(this,xd,arguments);}_inherits(xd,_vh3);return _createClass(xd,[{key:"format",value:function format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("href",this.constructor.sanitize(n)):_superPropGet(xd,"format",this,3)([t,n]);}}],[{key:"create",value:function create(t){var n=_superPropGet(xd,"create",this,2)([t]);return n.setAttribute("href",this.sanitize(t)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n;}},{key:"formats",value:function formats(t){return t.getAttribute("href");}},{key:"sanitize",value:function sanitize(t){return function(t,n){var r=document.createElement("a");r.href=t;var e=r.href.slice(0,r.href.indexOf(":"));return n.indexOf(e)>-1;}(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL;}}]);}(vh);_defineProperty(xd,"blotName","link");_defineProperty(xd,"tagName","A");_defineProperty(xd,"SANITIZED_URL","about:blank");_defineProperty(xd,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);jd='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';kd={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:jd,"code-block":jd,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',"super":'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};Ad=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];qd=/*#__PURE__*/function(_gd){function qd(){var _this85;_classCallCheck(this,qd);for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++){args[_key4]=arguments[_key4];}_this85=_callSuper(this,qd,[].concat(args));_defineProperty(_this85,"preview",_this85.root.querySelector("a.ql-preview"));return _this85;}_inherits(qd,_gd);return _createClass(qd,[{key:"listen",value:function listen(){var _this86=this;_superPropGet(qd,"listen",this,3)([]),this.root.querySelector("a.ql-action").addEventListener("click",function(t){_this86.root.classList.contains("ql-editing")?_this86.save():_this86.edit("link",_this86.preview.textContent),t.preventDefault();}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=_this86.linkRange){var _t110=_this86.linkRange;_this86.restoreFocus(),_this86.quill.formatText(_t110,"link",!1,Oh.sources.USER),delete _this86.linkRange;}t.preventDefault(),_this86.hide();}),this.quill.on(Oh.events.SELECTION_CHANGE,function(t,n,r){if(null!=t){if(0===t.length&&r===Oh.sources.USER){var _this86$quill$scroll$=_this86.quill.scroll.descendant(xd,t.index),_this86$quill$scroll$2=_slicedToArray(_this86$quill$scroll$,2),_n47=_this86$quill$scroll$2[0],_r40=_this86$quill$scroll$2[1];if(null!=_n47){_this86.linkRange=new Eh(t.index-_r40,_n47.length());var _e30=xd.formats(_n47.domNode);_this86.preview.textContent=_e30,_this86.preview.setAttribute("href",_e30),_this86.show();var _i24=_this86.quill.getBounds(_this86.linkRange);return void(null!=_i24&&_this86.position(_i24));}}else delete _this86.linkRange;_this86.hide();}});}},{key:"show",value:function show(){_superPropGet(qd,"show",this,3)([]),this.root.removeAttribute("data-mode");}}]);}(gd);_defineProperty(qd,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));Od=/*#__PURE__*/function(_md){function Od(t,n){var _this87;_classCallCheck(this,Od);null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=Ad),_this87=_callSuper(this,Od,[t,n]),_this87.quill.container.classList.add("ql-snow");return _this87;}_inherits(Od,_md);return _createClass(Od,[{key:"extendToolbar",value:function extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),kd),this.buildPickers(t.container.querySelectorAll("select"),kd),this.tooltip=new qd(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},function(n,r){t.handlers.link.call(t,!r.format.link);}));}}]);}(md);Od.DEFAULTS=Ku({},md.DEFAULTS,{modules:{toolbar:{handlers:{link:function link(t){if(t){var _t111=this.quill.getSelection();if(null==_t111||0===_t111.length)return;var _n48=this.quill.getText(_t111);/^\S+@\S+\.\S+$/.test(_n48)&&0!==_n48.indexOf("mailto:")&&(_n48="mailto:".concat(_n48));var _r41=this.quill.theme.tooltip;_r41.edit("link",_n48);}else this.quill.format("link",!1,Qh.sources.USER);}}}}}),Qh.register("modules/toolbar",sd),Qh.register("modules/clipboard",Uv),Qh.register("modules/history",Jv),Qh.register("theme/snow",Od);_export("N",Md=/*#__PURE__*/function(_r42){function Md(){var _this88;_classCallCheck(this,Md);_this88=_callSuper(this,Md,arguments),_this88.theme="snow",_this88.placeholder="Compose an epic...",_this88.modules={toolbar:[["bold","italic","underline"],["link"]]};return _this88;}_inherits(Md,_r42);return _createClass(Md,[{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <!-- Link snow theme styles manually (quill v2 doesn't bundle CSS) -->\n <link\n rel=\"stylesheet\"\n href=\"https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css\"\n />\n <div id=\"editor-container\"></div>\n "])));}},{key:"firstUpdated",value:function firstUpdated(){var _this$shadowRoot;var t=(_this$shadowRoot=this.shadowRoot)===null||_this$shadowRoot===void 0?void 0:_this$shadowRoot.getElementById("editor-container");t&&(this.quill=new Qh(t,{theme:this.theme,placeholder:this.placeholder,modules:this.modules}));}},{key:"editor",get:function get(){return this.quill;}}]);}(r));Md.styles=n(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n :host {\n display: block;\n width: 100%;\n height: 300px;\n }\n\n #editor-container {\n height: 100%;\n }\n "]))),t([i({type:String})],Md.prototype,"theme",void 0),t([i({type:String})],Md.prototype,"placeholder",void 0),t([i({type:Object})],Md.prototype,"modules",void 0),_export("N",Md=t([s("nile-rich-text-editor")],Md));}};});
10
+ //# sourceMappingURL=nile-rich-text-editor.cjs.js.map