@lotte-innovate/ui-component-test 0.0.111 → 0.0.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (490) hide show
  1. package/dist/lib/_virtual/icons.mjs +2 -0
  2. package/dist/lib/_virtual/icons.mjs.map +1 -0
  3. package/dist/lib/_virtual/index.mjs +2 -0
  4. package/dist/lib/_virtual/index10.mjs +2 -0
  5. package/dist/lib/_virtual/index10.mjs.map +1 -0
  6. package/dist/lib/_virtual/index11.mjs +2 -0
  7. package/dist/lib/_virtual/index11.mjs.map +1 -0
  8. package/dist/lib/_virtual/index12.mjs +2 -0
  9. package/dist/lib/_virtual/index12.mjs.map +1 -0
  10. package/dist/lib/_virtual/index13.mjs +2 -0
  11. package/dist/lib/_virtual/index13.mjs.map +1 -0
  12. package/dist/lib/_virtual/index14.mjs +2 -0
  13. package/dist/lib/_virtual/index14.mjs.map +1 -0
  14. package/dist/lib/_virtual/index15.mjs +2 -0
  15. package/dist/lib/_virtual/index15.mjs.map +1 -0
  16. package/dist/lib/_virtual/index16.mjs +2 -0
  17. package/dist/lib/_virtual/index16.mjs.map +1 -0
  18. package/dist/lib/_virtual/index2.mjs +2 -0
  19. package/dist/lib/_virtual/index2.mjs.map +1 -0
  20. package/dist/lib/_virtual/index3.mjs +2 -0
  21. package/dist/lib/_virtual/index3.mjs.map +1 -0
  22. package/dist/lib/_virtual/index4.mjs +2 -0
  23. package/dist/lib/_virtual/index4.mjs.map +1 -0
  24. package/dist/lib/_virtual/index5.mjs +2 -0
  25. package/dist/lib/_virtual/index5.mjs.map +1 -0
  26. package/dist/lib/_virtual/index6.mjs +2 -0
  27. package/dist/lib/_virtual/index6.mjs.map +1 -0
  28. package/dist/lib/_virtual/index7.mjs +2 -0
  29. package/dist/lib/_virtual/index7.mjs.map +1 -0
  30. package/dist/lib/_virtual/index8.mjs +2 -0
  31. package/dist/lib/_virtual/index8.mjs.map +1 -0
  32. package/dist/lib/_virtual/index9.mjs +2 -0
  33. package/dist/lib/_virtual/index9.mjs.map +1 -0
  34. package/dist/lib/_virtual/model.mjs +2 -0
  35. package/dist/lib/_virtual/model.mjs.map +1 -0
  36. package/dist/lib/_virtual/plugin.mjs +2 -0
  37. package/dist/lib/_virtual/plugin.mjs.map +1 -0
  38. package/dist/lib/_virtual/plugin2.mjs +2 -0
  39. package/dist/lib/_virtual/plugin2.mjs.map +1 -0
  40. package/dist/lib/_virtual/plugin3.mjs +2 -0
  41. package/dist/lib/_virtual/plugin3.mjs.map +1 -0
  42. package/dist/lib/_virtual/plugin4.mjs +2 -0
  43. package/dist/lib/_virtual/plugin4.mjs.map +1 -0
  44. package/dist/lib/_virtual/plugin5.mjs +2 -0
  45. package/dist/lib/_virtual/plugin5.mjs.map +1 -0
  46. package/dist/lib/_virtual/theme.mjs +2 -0
  47. package/dist/lib/_virtual/theme.mjs.map +1 -0
  48. package/dist/lib/components/Editor/index.d.ts +11 -13
  49. package/dist/lib/components/Editor/index.js +12 -14
  50. package/dist/lib/lib/color/alpha.mjs.map +1 -0
  51. package/dist/lib/lib/color/constants.mjs.map +1 -0
  52. package/dist/lib/lib/color/light.mjs.map +1 -0
  53. package/dist/lib/lib/components/AlertDialog/index.mjs.map +1 -0
  54. package/dist/lib/lib/components/BarChart/index.mjs.map +1 -0
  55. package/dist/lib/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  56. package/dist/lib/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  57. package/dist/lib/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  58. package/dist/lib/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  59. package/dist/lib/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  60. package/dist/lib/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  61. package/dist/lib/lib/components/Breadcrumb/index.mjs.map +1 -0
  62. package/dist/lib/lib/components/BubbleChart/index.mjs.map +1 -0
  63. package/dist/lib/lib/components/Callout/index.mjs.map +1 -0
  64. package/dist/lib/lib/components/CheckboxGroup/index.mjs.map +1 -0
  65. package/dist/lib/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  66. package/dist/lib/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  67. package/dist/lib/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  68. package/dist/lib/lib/components/ContextMenu/index.mjs.map +1 -0
  69. package/dist/lib/lib/components/DataList/index.mjs.map +1 -0
  70. package/dist/lib/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  71. package/dist/lib/lib/components/Dialog/index.mjs.map +1 -0
  72. package/dist/lib/lib/components/DoughnutChart/index.mjs.map +1 -0
  73. package/dist/lib/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  74. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  75. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  76. package/dist/lib/lib/components/DropdownMenu/index.mjs.map +1 -0
  77. package/dist/lib/lib/components/Editor/index.mjs +3 -0
  78. package/dist/lib/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  79. package/dist/lib/lib/components/Gnb/index.mjs.map +1 -0
  80. package/dist/lib/lib/components/Grid/Pagination.mjs.map +1 -0
  81. package/dist/lib/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  82. package/dist/lib/lib/components/HoverCard/index.mjs.map +1 -0
  83. package/dist/lib/lib/components/LineChart/index.mjs.map +1 -0
  84. package/dist/lib/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  85. package/dist/lib/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  86. package/dist/lib/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  87. package/dist/lib/lib/components/Menubar/index.mjs.map +1 -0
  88. package/dist/lib/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  89. package/dist/lib/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  90. package/dist/lib/lib/components/NavigationMenu/index.mjs.map +1 -0
  91. package/dist/lib/lib/components/PieChart/index.mjs.map +1 -0
  92. package/dist/lib/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  93. package/dist/lib/lib/components/Popover/index.mjs.map +1 -0
  94. package/dist/lib/lib/components/RadarChart/index.mjs.map +1 -0
  95. package/dist/lib/lib/components/RadioCards/index.mjs.map +1 -0
  96. package/dist/lib/lib/components/RadioGroup/index.mjs.map +1 -0
  97. package/dist/lib/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  98. package/dist/lib/lib/components/SegmentedControl/index.mjs.map +1 -0
  99. package/dist/lib/lib/components/Toast/index.mjs.map +1 -0
  100. package/dist/lib/lib/components/ToggleGroup/index.mjs.map +1 -0
  101. package/dist/lib/lib/constants.mjs.map +1 -0
  102. package/dist/lib/lib/index.mjs.map +1 -0
  103. package/dist/lib/lib/utils/utils.mjs.map +1 -0
  104. package/dist/lib/public/tinymce/icons/default/icons.mjs +2 -0
  105. package/dist/lib/public/tinymce/icons/default/icons.mjs.map +1 -0
  106. package/dist/lib/public/tinymce/icons/default/index.mjs +2 -0
  107. package/dist/lib/public/tinymce/icons/default/index.mjs.map +1 -0
  108. package/dist/lib/public/tinymce/models/dom/index.mjs +2 -0
  109. package/dist/lib/public/tinymce/models/dom/index.mjs.map +1 -0
  110. package/dist/lib/public/tinymce/models/dom/model.mjs +2 -0
  111. package/dist/lib/public/tinymce/models/dom/model.mjs.map +1 -0
  112. package/dist/lib/public/tinymce/plugins/advlist/index.mjs +2 -0
  113. package/dist/lib/public/tinymce/plugins/advlist/index.mjs.map +1 -0
  114. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs +2 -0
  115. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs.map +1 -0
  116. package/dist/lib/public/tinymce/plugins/code/index.mjs +2 -0
  117. package/dist/lib/public/tinymce/plugins/code/index.mjs.map +1 -0
  118. package/dist/lib/public/tinymce/plugins/code/plugin.mjs +2 -0
  119. package/dist/lib/public/tinymce/plugins/code/plugin.mjs.map +1 -0
  120. package/dist/lib/public/tinymce/plugins/link/index.mjs +2 -0
  121. package/dist/lib/public/tinymce/plugins/link/index.mjs.map +1 -0
  122. package/dist/lib/public/tinymce/plugins/link/plugin.mjs +2 -0
  123. package/dist/lib/public/tinymce/plugins/link/plugin.mjs.map +1 -0
  124. package/dist/lib/public/tinymce/plugins/lists/index.mjs +2 -0
  125. package/dist/lib/public/tinymce/plugins/lists/index.mjs.map +1 -0
  126. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs +2 -0
  127. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs.map +1 -0
  128. package/dist/lib/public/tinymce/plugins/table/index.mjs +2 -0
  129. package/dist/lib/public/tinymce/plugins/table/index.mjs.map +1 -0
  130. package/dist/lib/public/tinymce/plugins/table/plugin.mjs +2 -0
  131. package/dist/lib/public/tinymce/plugins/table/plugin.mjs.map +1 -0
  132. package/dist/lib/public/tinymce/skins/content/default/content.mjs +3 -0
  133. package/dist/lib/public/tinymce/skins/content/default/content.mjs.map +1 -0
  134. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs +3 -0
  135. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs.map +1 -0
  136. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs +3 -0
  137. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs.map +1 -0
  138. package/dist/lib/public/tinymce/themes/silver/index.mjs +2 -0
  139. package/dist/lib/public/tinymce/themes/silver/index.mjs.map +1 -0
  140. package/dist/lib/public/tinymce/themes/silver/theme.mjs +2 -0
  141. package/dist/lib/public/tinymce/themes/silver/theme.mjs.map +1 -0
  142. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  143. package/dist/tsconfig.tsbuildinfo +1 -1
  144. package/package.json +1 -1
  145. package/dist/lib/_virtual/_commonjsHelpers.mjs +0 -2
  146. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  147. package/dist/lib/_virtual/tinymce.mjs +0 -2
  148. package/dist/lib/_virtual/tinymce.mjs.map +0 -1
  149. package/dist/lib/_virtual/tinymce2.mjs +0 -2
  150. package/dist/lib/_virtual/tinymce2.mjs.map +0 -1
  151. package/dist/lib/dist/lib/color/alpha.mjs.map +0 -1
  152. package/dist/lib/dist/lib/color/constants.mjs.map +0 -1
  153. package/dist/lib/dist/lib/color/light.mjs.map +0 -1
  154. package/dist/lib/dist/lib/components/AlertDialog/index.mjs.map +0 -1
  155. package/dist/lib/dist/lib/components/BarChart/index.mjs.map +0 -1
  156. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +0 -1
  157. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +0 -1
  158. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +0 -1
  159. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +0 -1
  160. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +0 -1
  161. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +0 -1
  162. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs.map +0 -1
  163. package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +0 -1
  164. package/dist/lib/dist/lib/components/Callout/index.mjs.map +0 -1
  165. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs.map +0 -1
  166. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
  167. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
  168. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
  169. package/dist/lib/dist/lib/components/ContextMenu/index.mjs.map +0 -1
  170. package/dist/lib/dist/lib/components/DataList/index.mjs.map +0 -1
  171. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
  172. package/dist/lib/dist/lib/components/Dialog/index.mjs.map +0 -1
  173. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +0 -1
  174. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
  175. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
  176. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
  177. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs.map +0 -1
  178. package/dist/lib/dist/lib/components/Editor/index.mjs +0 -3
  179. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +0 -1
  180. package/dist/lib/dist/lib/components/Gnb/index.mjs.map +0 -1
  181. package/dist/lib/dist/lib/components/Grid/Pagination.mjs.map +0 -1
  182. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
  183. package/dist/lib/dist/lib/components/HoverCard/index.mjs.map +0 -1
  184. package/dist/lib/dist/lib/components/LineChart/index.mjs.map +0 -1
  185. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
  186. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
  187. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +0 -1
  188. package/dist/lib/dist/lib/components/Menubar/index.mjs.map +0 -1
  189. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
  190. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
  191. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs.map +0 -1
  192. package/dist/lib/dist/lib/components/PieChart/index.mjs.map +0 -1
  193. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
  194. package/dist/lib/dist/lib/components/Popover/index.mjs.map +0 -1
  195. package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +0 -1
  196. package/dist/lib/dist/lib/components/RadioCards/index.mjs.map +0 -1
  197. package/dist/lib/dist/lib/components/RadioGroup/index.mjs.map +0 -1
  198. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
  199. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs.map +0 -1
  200. package/dist/lib/dist/lib/components/Toast/index.mjs.map +0 -1
  201. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs.map +0 -1
  202. package/dist/lib/dist/lib/constants.mjs.map +0 -1
  203. package/dist/lib/dist/lib/utils/utils.mjs.map +0 -1
  204. package/dist/lib/public/tinymce/tinymce.mjs +0 -2
  205. package/dist/lib/public/tinymce/tinymce.mjs.map +0 -1
  206. /package/dist/lib/{dist/lib → _virtual}/index.mjs.map +0 -0
  207. /package/dist/lib/{dist/lib → lib}/Typography/Header/index.mjs +0 -0
  208. /package/dist/lib/{dist/lib → lib}/Typography/Header/index.mjs.map +0 -0
  209. /package/dist/lib/{dist/lib → lib}/Typography/Text/index.mjs +0 -0
  210. /package/dist/lib/{dist/lib → lib}/Typography/Text/index.mjs.map +0 -0
  211. /package/dist/lib/{dist/lib → lib}/color/alpha.mjs +0 -0
  212. /package/dist/lib/{dist/lib → lib}/color/constants.mjs +0 -0
  213. /package/dist/lib/{dist/lib → lib}/color/light.mjs +0 -0
  214. /package/dist/lib/{dist/lib → lib}/components/Accordion/index.mjs +0 -0
  215. /package/dist/lib/{dist/lib → lib}/components/Accordion/index.mjs.map +0 -0
  216. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogAction.mjs +0 -0
  217. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogAction.mjs.map +0 -0
  218. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogCancel.mjs +0 -0
  219. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogCancel.mjs.map +0 -0
  220. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogContent.mjs +0 -0
  221. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogContent.mjs.map +0 -0
  222. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogDescription.mjs +0 -0
  223. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogDescription.mjs.map +0 -0
  224. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogRoot.mjs +0 -0
  225. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogRoot.mjs.map +0 -0
  226. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTitle.mjs +0 -0
  227. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTitle.mjs.map +0 -0
  228. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTrigger.mjs +0 -0
  229. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTrigger.mjs.map +0 -0
  230. /package/dist/lib/{dist/lib → lib}/components/AlertDialog/index.mjs +0 -0
  231. /package/dist/lib/{dist/lib → lib}/components/AspectRatio/index.mjs +0 -0
  232. /package/dist/lib/{dist/lib → lib}/components/AspectRatio/index.mjs.map +0 -0
  233. /package/dist/lib/{dist/lib → lib}/components/Avatar/index.mjs +0 -0
  234. /package/dist/lib/{dist/lib → lib}/components/Avatar/index.mjs.map +0 -0
  235. /package/dist/lib/{dist/lib → lib}/components/Badge/index.mjs +0 -0
  236. /package/dist/lib/{dist/lib → lib}/components/Badge/index.mjs.map +0 -0
  237. /package/dist/lib/{dist/lib → lib}/components/BarChart/index.mjs +0 -0
  238. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbEllipsis.mjs +0 -0
  239. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbItem.mjs +0 -0
  240. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbLink.mjs +0 -0
  241. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbList.mjs +0 -0
  242. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbPage.mjs +0 -0
  243. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbRoot.mjs +0 -0
  244. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbRoot.mjs.map +0 -0
  245. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbSeparator.mjs +0 -0
  246. /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/index.mjs +0 -0
  247. /package/dist/lib/{dist/lib → lib}/components/BubbleChart/index.mjs +0 -0
  248. /package/dist/lib/{dist/lib → lib}/components/Button/index.mjs +0 -0
  249. /package/dist/lib/{dist/lib → lib}/components/Button/index.mjs.map +0 -0
  250. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutIcon.mjs +0 -0
  251. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutIcon.mjs.map +0 -0
  252. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutRoot.mjs +0 -0
  253. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutRoot.mjs.map +0 -0
  254. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutText.mjs +0 -0
  255. /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutText.mjs.map +0 -0
  256. /package/dist/lib/{dist/lib → lib}/components/Callout/index.mjs +0 -0
  257. /package/dist/lib/{dist/lib → lib}/components/Card/index.mjs +0 -0
  258. /package/dist/lib/{dist/lib → lib}/components/Card/index.mjs.map +0 -0
  259. /package/dist/lib/{dist/lib → lib}/components/Checkbox/index.mjs +0 -0
  260. /package/dist/lib/{dist/lib → lib}/components/Checkbox/index.mjs.map +0 -0
  261. /package/dist/lib/{dist/lib → lib}/components/CheckboxCard/index.mjs +0 -0
  262. /package/dist/lib/{dist/lib → lib}/components/CheckboxCard/index.mjs.map +0 -0
  263. /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupItem.mjs +0 -0
  264. /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -0
  265. /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupRoot.mjs +0 -0
  266. /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -0
  267. /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/index.mjs +0 -0
  268. /package/dist/lib/{dist/lib → lib}/components/Collapsible/index.mjs +0 -0
  269. /package/dist/lib/{dist/lib → lib}/components/Collapsible/index.mjs.map +0 -0
  270. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.mjs +0 -0
  271. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -0
  272. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuContent.mjs +0 -0
  273. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuContent.mjs.map +0 -0
  274. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuGroup.mjs +0 -0
  275. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItem.mjs +0 -0
  276. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItem.mjs.map +0 -0
  277. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.mjs +0 -0
  278. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -0
  279. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuLabel.mjs +0 -0
  280. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuLabel.mjs.map +0 -0
  281. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.mjs +0 -0
  282. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -0
  283. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioItem.mjs +0 -0
  284. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioItem.mjs.map +0 -0
  285. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRoot.mjs +0 -0
  286. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRoot.mjs.map +0 -0
  287. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSeparator.mjs +0 -0
  288. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubContent.mjs +0 -0
  289. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubContent.mjs.map +0 -0
  290. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.mjs +0 -0
  291. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -0
  292. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuTrigger.mjs +0 -0
  293. /package/dist/lib/{dist/lib → lib}/components/ContextMenu/index.mjs +0 -0
  294. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListItem.mjs +0 -0
  295. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListItem.mjs.map +0 -0
  296. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListLabel.mjs +0 -0
  297. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListLabel.mjs.map +0 -0
  298. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListRoot.mjs +0 -0
  299. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListRoot.mjs.map +0 -0
  300. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListValue.mjs +0 -0
  301. /package/dist/lib/{dist/lib → lib}/components/DataList/DataListValue.mjs.map +0 -0
  302. /package/dist/lib/{dist/lib → lib}/components/DataList/index.mjs +0 -0
  303. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogAction.mjs +0 -0
  304. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogAction.mjs.map +0 -0
  305. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogCancel.mjs +0 -0
  306. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogCancel.mjs.map +0 -0
  307. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogContent.mjs +0 -0
  308. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogContent.mjs.map +0 -0
  309. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogDescription.mjs +0 -0
  310. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogDescription.mjs.map +0 -0
  311. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogRoot.mjs +0 -0
  312. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogRoot.mjs.map +0 -0
  313. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogSlot.mjs +0 -0
  314. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogSlot.mjs.map +0 -0
  315. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTitle.mjs +0 -0
  316. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTitle.mjs.map +0 -0
  317. /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTrigger.mjs +0 -0
  318. /package/dist/lib/{dist/lib → lib}/components/Dialog/index.mjs +0 -0
  319. /package/dist/lib/{dist/lib → lib}/components/DoughnutChart/index.mjs +0 -0
  320. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
  321. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.mjs +0 -0
  322. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -0
  323. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +0 -0
  324. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -0
  325. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuContent.mjs +0 -0
  326. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuContent.mjs.map +0 -0
  327. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItem.mjs +0 -0
  328. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItem.mjs.map +0 -0
  329. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.mjs +0 -0
  330. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -0
  331. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuLable.mjs +0 -0
  332. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuLable.mjs.map +0 -0
  333. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.mjs +0 -0
  334. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -0
  335. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRoot.mjs +0 -0
  336. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRoot.mjs.map +0 -0
  337. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
  338. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSub.mjs +0 -0
  339. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -0
  340. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -0
  341. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuTrigger.mjs +0 -0
  342. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -0
  343. /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/index.mjs +0 -0
  344. /package/dist/lib/{dist/lib → lib}/components/Editor/index.mjs.map +0 -0
  345. /package/dist/lib/{dist/lib → lib}/components/Footer/index.mjs +0 -0
  346. /package/dist/lib/{dist/lib → lib}/components/Footer/index.mjs.map +0 -0
  347. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbInfo.mjs +0 -0
  348. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbInfo.mjs.map +0 -0
  349. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbLogo.mjs +0 -0
  350. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbMenu.mjs +0 -0
  351. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbMenu.mjs.map +0 -0
  352. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbRoot.mjs +0 -0
  353. /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbRoot.mjs.map +0 -0
  354. /package/dist/lib/{dist/lib → lib}/components/Gnb/index.mjs +0 -0
  355. /package/dist/lib/{dist/lib → lib}/components/Grid/Pagination.mjs +0 -0
  356. /package/dist/lib/{dist/lib → lib}/components/Grid/index.mjs +0 -0
  357. /package/dist/lib/{dist/lib → lib}/components/Grid/index.mjs.map +0 -0
  358. /package/dist/lib/{dist/lib → lib}/components/Grid/useGrid.mjs +0 -0
  359. /package/dist/lib/{dist/lib → lib}/components/Grid/useGrid.mjs.map +0 -0
  360. /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardContent.mjs +0 -0
  361. /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardContent.mjs.map +0 -0
  362. /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardRoot.mjs +0 -0
  363. /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardRoot.mjs.map +0 -0
  364. /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardTrigger.mjs +0 -0
  365. /package/dist/lib/{dist/lib → lib}/components/HoverCard/index.mjs +0 -0
  366. /package/dist/lib/{dist/lib → lib}/components/IconButton/index.mjs +0 -0
  367. /package/dist/lib/{dist/lib → lib}/components/IconButton/index.mjs.map +0 -0
  368. /package/dist/lib/{dist/lib → lib}/components/Inset/index.mjs +0 -0
  369. /package/dist/lib/{dist/lib → lib}/components/Inset/index.mjs.map +0 -0
  370. /package/dist/lib/{dist/lib → lib}/components/Label/index.mjs +0 -0
  371. /package/dist/lib/{dist/lib → lib}/components/Label/index.mjs.map +0 -0
  372. /package/dist/lib/{dist/lib → lib}/components/LineChart/index.mjs +0 -0
  373. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarCheckboxItem.mjs +0 -0
  374. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarCheckboxItem.mjs.map +0 -0
  375. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarContent.mjs +0 -0
  376. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarContent.mjs.map +0 -0
  377. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItem.mjs +0 -0
  378. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItem.mjs.map +0 -0
  379. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItemIndicator.mjs +0 -0
  380. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItemIndicator.mjs.map +0 -0
  381. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarMenu.mjs +0 -0
  382. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioGroup.mjs +0 -0
  383. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioGroup.mjs.map +0 -0
  384. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioItem.mjs +0 -0
  385. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioItem.mjs.map +0 -0
  386. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRoot.mjs +0 -0
  387. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRoot.mjs.map +0 -0
  388. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSeparator.mjs +0 -0
  389. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSub.mjs +0 -0
  390. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubContent.mjs +0 -0
  391. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubContent.mjs.map +0 -0
  392. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubTrigger.mjs +0 -0
  393. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubTrigger.mjs.map +0 -0
  394. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarTrigger.mjs +0 -0
  395. /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarTrigger.mjs.map +0 -0
  396. /package/dist/lib/{dist/lib → lib}/components/Menubar/index.mjs +0 -0
  397. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuContent.mjs +0 -0
  398. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuContent.mjs.map +0 -0
  399. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuIndicator.mjs +0 -0
  400. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuItem.mjs +0 -0
  401. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuLink.mjs +0 -0
  402. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuLink.mjs.map +0 -0
  403. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuList.mjs +0 -0
  404. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuList.mjs.map +0 -0
  405. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuRoot.mjs +0 -0
  406. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuRoot.mjs.map +0 -0
  407. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.mjs +0 -0
  408. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -0
  409. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuViewport.mjs +0 -0
  410. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuViewport.mjs.map +0 -0
  411. /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/index.mjs +0 -0
  412. /package/dist/lib/{dist/lib → lib}/components/PieChart/index.mjs +0 -0
  413. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverClose.mjs +0 -0
  414. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverClose.mjs.map +0 -0
  415. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverContent.mjs +0 -0
  416. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverContent.mjs.map +0 -0
  417. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverRoot.mjs +0 -0
  418. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverRoot.mjs.map +0 -0
  419. /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverTrigger.mjs +0 -0
  420. /package/dist/lib/{dist/lib → lib}/components/Popover/index.mjs +0 -0
  421. /package/dist/lib/{dist/lib → lib}/components/Progress/index.mjs +0 -0
  422. /package/dist/lib/{dist/lib → lib}/components/Progress/index.mjs.map +0 -0
  423. /package/dist/lib/{dist/lib → lib}/components/RadarChart/index.mjs +0 -0
  424. /package/dist/lib/{dist/lib → lib}/components/Radio/index.mjs +0 -0
  425. /package/dist/lib/{dist/lib → lib}/components/Radio/index.mjs.map +0 -0
  426. /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsItem.mjs +0 -0
  427. /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsItem.mjs.map +0 -0
  428. /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsRoot.mjs +0 -0
  429. /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsRoot.mjs.map +0 -0
  430. /package/dist/lib/{dist/lib → lib}/components/RadioCards/index.mjs +0 -0
  431. /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupItem.mjs +0 -0
  432. /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupItem.mjs.map +0 -0
  433. /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupRoot.mjs +0 -0
  434. /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupRoot.mjs.map +0 -0
  435. /package/dist/lib/{dist/lib → lib}/components/RadioGroup/index.mjs +0 -0
  436. /package/dist/lib/{dist/lib → lib}/components/ScrollArea/index.mjs +0 -0
  437. /package/dist/lib/{dist/lib → lib}/components/ScrollArea/index.mjs.map +0 -0
  438. /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlItem.mjs +0 -0
  439. /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlRoot.mjs +0 -0
  440. /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlRoot.mjs.map +0 -0
  441. /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/index.mjs +0 -0
  442. /package/dist/lib/{dist/lib → lib}/components/Select/index.mjs +0 -0
  443. /package/dist/lib/{dist/lib → lib}/components/Select/index.mjs.map +0 -0
  444. /package/dist/lib/{dist/lib → lib}/components/Separator/index.mjs +0 -0
  445. /package/dist/lib/{dist/lib → lib}/components/Separator/index.mjs.map +0 -0
  446. /package/dist/lib/{dist/lib → lib}/components/Skeleton/index.mjs +0 -0
  447. /package/dist/lib/{dist/lib → lib}/components/Skeleton/index.mjs.map +0 -0
  448. /package/dist/lib/{dist/lib → lib}/components/Slider/index.mjs +0 -0
  449. /package/dist/lib/{dist/lib → lib}/components/Slider/index.mjs.map +0 -0
  450. /package/dist/lib/{dist/lib → lib}/components/Spinner/index.mjs +0 -0
  451. /package/dist/lib/{dist/lib → lib}/components/Spinner/index.mjs.map +0 -0
  452. /package/dist/lib/{dist/lib → lib}/components/TabNav/index.mjs +0 -0
  453. /package/dist/lib/{dist/lib → lib}/components/TabNav/index.mjs.map +0 -0
  454. /package/dist/lib/{dist/lib → lib}/components/Table/index.mjs +0 -0
  455. /package/dist/lib/{dist/lib → lib}/components/Table/index.mjs.map +0 -0
  456. /package/dist/lib/{dist/lib → lib}/components/Tabs/index.mjs +0 -0
  457. /package/dist/lib/{dist/lib → lib}/components/Tabs/index.mjs.map +0 -0
  458. /package/dist/lib/{dist/lib → lib}/components/TextArea/index.mjs +0 -0
  459. /package/dist/lib/{dist/lib → lib}/components/TextArea/index.mjs.map +0 -0
  460. /package/dist/lib/{dist/lib → lib}/components/TextField/index.mjs +0 -0
  461. /package/dist/lib/{dist/lib → lib}/components/TextField/index.mjs.map +0 -0
  462. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastActionButton.mjs +0 -0
  463. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastActionButton.mjs.map +0 -0
  464. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastDescription.mjs +0 -0
  465. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastDescription.mjs.map +0 -0
  466. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastRoot.mjs +0 -0
  467. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastRoot.mjs.map +0 -0
  468. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastTitle.mjs +0 -0
  469. /package/dist/lib/{dist/lib → lib}/components/Toast/ToastTitle.mjs.map +0 -0
  470. /package/dist/lib/{dist/lib → lib}/components/Toast/index.mjs +0 -0
  471. /package/dist/lib/{dist/lib → lib}/components/Toggle/ToggleWithText.mjs +0 -0
  472. /package/dist/lib/{dist/lib → lib}/components/Toggle/ToggleWithText.mjs.map +0 -0
  473. /package/dist/lib/{dist/lib → lib}/components/Toggle/index.mjs +0 -0
  474. /package/dist/lib/{dist/lib → lib}/components/Toggle/index.mjs.map +0 -0
  475. /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupItem.mjs +0 -0
  476. /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupItem.mjs.map +0 -0
  477. /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupRoot.mjs +0 -0
  478. /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupRoot.mjs.map +0 -0
  479. /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/index.mjs +0 -0
  480. /package/dist/lib/{dist/lib → lib}/components/ToggleSwitch/index.mjs +0 -0
  481. /package/dist/lib/{dist/lib → lib}/components/ToggleSwitch/index.mjs.map +0 -0
  482. /package/dist/lib/{dist/lib → lib}/components/Tooltip/index.mjs +0 -0
  483. /package/dist/lib/{dist/lib → lib}/components/Tooltip/index.mjs.map +0 -0
  484. /package/dist/lib/{dist/lib → lib}/constants.mjs +0 -0
  485. /package/dist/lib/{dist/lib → lib}/index.mjs +0 -0
  486. /package/dist/lib/{dist/lib → lib}/theme/ThemeProvider.mjs +0 -0
  487. /package/dist/lib/{dist/lib → lib}/theme/ThemeProvider.mjs.map +0 -0
  488. /package/dist/lib/{dist/lib → lib}/utils/useDarkMode.mjs +0 -0
  489. /package/dist/lib/{dist/lib → lib}/utils/useDarkMode.mjs.map +0 -0
  490. /package/dist/lib/{dist/lib → lib}/utils/utils.mjs +0 -0
@@ -0,0 +1,2 @@
1
+ import{__exports as n}from"../../../../_virtual/model.mjs";var t;function e(){if(t)return n;t=1;var e=n&&n.__assign||function(){return e=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},e.apply(this,arguments)},r=n&&n.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,o=0,u=t.length;o<u;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))};return function(){var n=tinymce.util.Tools.resolve("tinymce.ModelManager"),t=function(n){return function(t){return i=typeof(e=t),(null===e?"null":"object"===i&&Array.isArray(e)?"array":"object"===i&&(c=r=e,(o=String).prototype.isPrototypeOf(c)||(null===(u=r.constructor)||void 0===u?void 0:u.name)===o.name)?"string":i)===n;var e,r,o,u,i,c}},o=function(n){return function(t){return typeof t===n}},u=function(n){return function(t){return n===t}},i=t("string"),c=t("object"),f=t("array"),a=u(null),l=o("boolean"),s=u(void 0),m=function(n){return!function(n){return null==n}(n)},d=o("function"),v=o("number"),g=function(){},h=function(n){return function(){return n}},p=function(n){return n},b=function(n,t){return n===t};function w(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=t.concat(e);return n.apply(null,o)}}var y=function(n){return function(t){return!n(t)}},C=function(n){return n()},x=h(!1),T=h(!0),S=function(){function n(n,t){this.tag=n,this.value=t}return n.some=function(t){return new n(!0,t)},n.none=function(){return n.singletonNone},n.prototype.fold=function(n,t){return this.tag?t(this.value):n()},n.prototype.isSome=function(){return this.tag},n.prototype.isNone=function(){return!this.tag},n.prototype.map=function(t){return this.tag?n.some(t(this.value)):n.none()},n.prototype.bind=function(t){return this.tag?t(this.value):n.none()},n.prototype.exists=function(n){return this.tag&&n(this.value)},n.prototype.forall=function(n){return!this.tag||n(this.value)},n.prototype.filter=function(t){return!this.tag||t(this.value)?this:n.none()},n.prototype.getOr=function(n){return this.tag?this.value:n},n.prototype.or=function(n){return this.tag?this:n},n.prototype.getOrThunk=function(n){return this.tag?this.value:n()},n.prototype.orThunk=function(n){return this.tag?this:n()},n.prototype.getOrDie=function(n){if(this.tag)return this.value;throw new Error(null!=n?n:"Called getOrDie on None")},n.from=function(t){return m(t)?n.some(t):n.none()},n.prototype.getOrNull=function(){return this.tag?this.value:null},n.prototype.getOrUndefined=function(){return this.value},n.prototype.each=function(n){this.tag&&n(this.value)},n.prototype.toArray=function(){return this.tag?[this.value]:[]},n.prototype.toString=function(){return this.tag?"some(".concat(this.value,")"):"none()"},n}();S.singletonNone=new S(!1);var R,D,O,k,E,A=Array.prototype.slice,N=Array.prototype.indexOf,_=Array.prototype.push,B=function(n,t){return e=n,r=t,N.call(e,r)>-1;var e,r},j=function(n,t){for(var e=0,r=n.length;e<r;e++){if(t(n[e],e))return!0}return!1},z=function(n,t){for(var e=[],r=0;r<n;r++)e.push(t(r));return e},L=function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var u=n[o];r[o]=t(u,o)}return r},W=function(n,t){for(var e=0,r=n.length;e<r;e++){t(n[e],e)}},M=function(n,t){for(var e=[],r=[],o=0,u=n.length;o<u;o++){var i=n[o];(t(i,o)?e:r).push(i)}return{pass:e,fail:r}},I=function(n,t){for(var e=[],r=0,o=n.length;r<o;r++){var u=n[r];t(u,r)&&e.push(u)}return e},P=function(n,t,e){return function(n,t){for(var e=n.length-1;e>=0;e--)t(n[e],e)}(n,(function(n,r){e=t(e,n,r)})),e},F=function(n,t,e){return W(n,(function(n,r){e=t(e,n,r)})),e},H=function(n,t){return function(n,t,e){for(var r=0,o=n.length;r<o;r++){var u=n[r];if(t(u,r))return S.some(u);if(e(u,r))break}return S.none()}(n,t,x)},q=function(n,t){for(var e=0,r=n.length;e<r;e++){if(t(n[e],e))return S.some(e)}return S.none()},V=function(n){for(var t=[],e=0,r=n.length;e<r;++e){if(!f(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);_.apply(t,n[e])}return t},U=function(n,t){return V(L(n,t))},$=function(n,t){for(var e=0,r=n.length;e<r;++e){if(!0!==t(n[e],e))return!1}return!0},G=function(n,t){for(var e={},r=0,o=n.length;r<o;r++){var u=n[r];e[String(u)]=t(u,r)}return e},K=function(n,t){return t>=0&&t<n.length?S.some(n[t]):S.none()},Y=function(n){return K(n,0)},J=function(n){return K(n,n.length-1)},Q=function(n,t){for(var e=0;e<n.length;e++){var r=t(n[e],e);if(r.isSome())return r}return S.none()},X=Object.keys,Z=Object.hasOwnProperty,nn=function(n,t){for(var e=X(n),r=0,o=e.length;r<o;r++){var u=e[r];t(n[u],u)}},tn=function(n,t){return en(n,(function(n,e){return{k:e,v:t(n,e)}}))},en=function(n,t){var e={};return nn(n,(function(n,r){var o=t(n,r);e[o.k]=o.v})),e},rn=function(n,t){var e={};return function(n,t,e,r){nn(n,(function(n,o){(t(n,o)?e:r)(n,o)}))}(n,t,function(n){return function(t,e){n[e]=t}}(e),g),e},on=function(n,t){var e=[];return nn(n,(function(n,r){e.push(t(n,r))})),e},un=function(n){return on(n,p)},cn=function(n,t){return Z.call(n,t)},fn="undefined"!=typeof window?window:Function("return this;")(),an=function(n,t){return function(n,t){for(var e=null!=t?t:fn,r=0;r<n.length&&null!=e;++r)e=e[n[r]];return e}(n.split("."),t)},ln=function(n,t){var e=function(n,t){return an(n,t)}(n,t);if(null==e)throw new Error(n+" not available on this browser");return e},sn=Object.getPrototypeOf,mn=function(n){var t=an("ownerDocument.defaultView",n);return c(n)&&(function(n){return ln("HTMLElement",n)}(t).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(sn(n).constructor.name))},dn=function(n){return n.dom.nodeName.toLowerCase()},vn=function(n){return n.dom.nodeType},gn=function(n){return function(t){return vn(t)===n}},hn=function(n){return 8===vn(n)||"#comment"===dn(n)},pn=function(n){return bn(n)&&mn(n.dom)},bn=gn(1),wn=gn(3),yn=gn(9),Cn=gn(11),xn=function(n){return function(t){return bn(t)&&dn(t)===n}},Tn=function(n,t,e){if(!(i(e)||l(e)||v(e)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",e,":: Element ",n),new Error("Attribute value was not simple");n.setAttribute(t,e+"")},Sn=function(n,t,e){Tn(n.dom,t,e)},Rn=function(n,t){var e=n.dom;nn(t,(function(n,t){Tn(e,t,n)}))},Dn=function(n,t){var e=n.dom.getAttribute(t);return null===e?void 0:e},On=function(n,t){return S.from(Dn(n,t))},kn=function(n,t){n.dom.removeAttribute(t)},En=function(n){return F(n.dom.attributes,(function(n,t){return n[t.name]=t.value,n}),{})},An=function(n){if(null==n)throw new Error("Node cannot be null or undefined");return{dom:n}},Nn={fromHtml:function(n,t){var e=(t||document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||e.childNodes.length>1){var r="HTML does not have a single root node";throw console.error(r,n),new Error(r)}return An(e.childNodes[0])},fromTag:function(n,t){var e=(t||document).createElement(n);return An(e)},fromText:function(n,t){var e=(t||document).createTextNode(n);return An(e)},fromDom:An,fromPoint:function(n,t,e){return S.from(n.dom.elementFromPoint(t,e)).map(An)}},_n=function(n,t){var e=n.dom;if(1!==e.nodeType)return!1;var r=e;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Bn=function(n){return 1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType||0===n.childElementCount},jn=function(n,t){var e=void 0===t?document:t.dom;return Bn(e)?S.none():S.from(e.querySelector(n)).map(Nn.fromDom)},zn=function(n,t){return n.dom===t.dom},Ln=function(n,t){var e=n.dom,r=t.dom;return e!==r&&e.contains(r)},Wn=_n,Mn=function(n){return Nn.fromDom(n.dom.ownerDocument)},In=function(n){return yn(n)?n:Mn(n)},Pn=function(n){return S.from(n.dom.parentNode).map(Nn.fromDom)},Fn=function(n){return S.from(n.dom.parentElement).map(Nn.fromDom)},Hn=function(n,t){for(var e=d(t)?t:x,r=n.dom,o=[];null!==r.parentNode&&void 0!==r.parentNode;){var u=r.parentNode,i=Nn.fromDom(u);if(o.push(i),!0===e(i))break;r=u}return o},qn=function(n){return S.from(n.dom.previousSibling).map(Nn.fromDom)},Vn=function(n){return S.from(n.dom.nextSibling).map(Nn.fromDom)},Un=function(n){return L(n.dom.childNodes,Nn.fromDom)},$n=function(n,t){var e=n.dom.childNodes;return S.from(e[t]).map(Nn.fromDom)},Gn=function(n,t){Pn(n).each((function(e){e.dom.insertBefore(t.dom,n.dom)}))},Kn=function(n,t){Vn(n).fold((function(){Pn(n).each((function(n){Jn(n,t)}))}),(function(n){Gn(n,t)}))},Yn=function(n,t){var e=function(n){return $n(n,0)}(n);e.fold((function(){Jn(n,t)}),(function(e){n.dom.insertBefore(t.dom,e.dom)}))},Jn=function(n,t){n.dom.appendChild(t.dom)},Qn=function(n,t){Gn(n,t),Jn(t,n)},Xn=function(n,t){W(t,(function(e,r){var o=0===r?n:t[r-1];Kn(o,e)}))},Zn=function(n,t){W(t,(function(t){Jn(n,t)}))},nt=function(n){n.dom.textContent="",W(Un(n),(function(n){tt(n)}))},tt=function(n){var t=n.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},et=function(n){var t=Un(n);t.length>0&&Xn(n,t),tt(n)},rt=function(n,t){return Nn.fromDom(n.dom.cloneNode(t))},ot=function(n){return rt(n,!1)},ut=function(n){return rt(n,!0)},it=function(n,t){var e=Nn.fromTag(t),r=En(n);return Rn(e,r),e},ct=["tfoot","thead","tbody","colgroup"],ft=function(n,t,e){return{element:n,rowspan:t,colspan:e}},at=function(n,t,e){return{element:n,cells:t,section:e}},lt=function(n,t,e){return{element:n,isNew:t,isLocked:e}},st=function(n,t,e,r){return{element:n,cells:t,section:e,isNew:r}},mt=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),dt=h(mt),vt=mt?function(n){return Nn.fromDom(n.dom.getRootNode())}:In,gt=function(n){var t,e=vt(n);return Cn(t=e)&&m(t.dom.host)?S.some(e):S.none()},ht=function(n){return Nn.fromDom(n.dom.host)},pt=function(n){return m(n.dom.shadowRoot)},bt=function(n){var t=wn(n)?n.dom.parentNode:n.dom;if(null==t||null===t.ownerDocument)return!1;var e,r,o=t.ownerDocument;return gt(Nn.fromDom(t)).fold((function(){return o.body.contains(t)}),(e=bt,r=ht,function(n){return e(r(n))}))},wt=function(n){var t=n.dom.body;if(null==t)throw new Error("Body is not available yet");return Nn.fromDom(t)},yt=function(n,t){var e=[];return W(Un(n),(function(n){t(n)&&(e=e.concat([n])),e=e.concat(yt(n,t))})),e},Ct=function(n,t,e){return function(n,t,e){return I(Hn(n,e),t)}(n,(function(n){return _n(n,t)}),e)},xt=function(n,t){return function(n,t){return I(Un(n),t)}(n,(function(n){return _n(n,t)}))},Tt=function(n,t){return function(n,t){var e=void 0===t?document:t.dom;return Bn(e)?[]:L(e.querySelectorAll(n),Nn.fromDom)}(t,n)},St=function(n,t,e,r,o){return n(e,r)?S.some(e):d(o)&&o(e)?S.none():t(e,r,o)},Rt=function(n,t,e){for(var r=n.dom,o=d(e)?e:x;r.parentNode;){r=r.parentNode;var u=Nn.fromDom(r);if(t(u))return S.some(u);if(o(u))break}return S.none()},Dt=function(n,t,e){return St((function(n,t){return t(n)}),Rt,n,t,e)},Ot=function(n,t,e){return Rt(n,(function(n){return _n(n,t)}),e)},kt=function(n,t){return function(n,t){return H(n.dom.childNodes,(function(n){return t(Nn.fromDom(n))})).map(Nn.fromDom)}(n,(function(n){return _n(n,t)}))},Et=function(n,t){return jn(t,n)},At=function(n,t,e){return St((function(n,t){return _n(n,t)}),Ot,n,t,e)},Nt=function(n,t,e){return void 0===e&&(e=b),n.exists((function(n){return e(n,t)}))},_t=function(n){for(var t=[],e=function(n){t.push(n)},r=0;r<n.length;r++)n[r].each(e);return t},Bt=function(n,t){return n?S.some(t):S.none()},jt=function(n,t,e){return""===t||n.length>=t.length&&n.substr(e,e+t.length)===t},zt=function(n,t,e,r){void 0===e&&(e=0);var o=n.indexOf(t,e);return-1!==o&&(!!s(r)||o+t.length<=r)},Lt=function(n,t){return jt(n,t,0)},Wt=function(n,t){return jt(n,t,n.length-t.length)},Mt=function(n){return function(t){return t.replace(n,"")}}(/^\s+|\s+$/g),It=function(n){return n.length>0},Pt=function(n){return void 0!==n.style&&d(n.style.getPropertyValue)},Ft=function(n,t,e){if(!i(e))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",e,":: Element ",n),new Error("CSS value must be a string: "+e);Pt(n)&&n.style.setProperty(t,e)},Ht=function(n,t,e){var r=n.dom;Ft(r,t,e)},qt=function(n,t){var e=n.dom;nn(t,(function(n,t){Ft(e,t,n)}))},Vt=function(n,t){var e=n.dom,r=window.getComputedStyle(e).getPropertyValue(t);return""!==r||bt(n)?r:Ut(e,t)},Ut=function(n,t){return Pt(n)?n.style.getPropertyValue(t):""},$t=function(n,t){var e=n.dom,r=Ut(e,t);return S.from(r).filter((function(n){return n.length>0}))},Gt=function(n,t){!function(n,t){Pt(n)&&n.style.removeProperty(t)}(n.dom,t),Nt(On(n,"style").map(Mt),"")&&kn(n,"style")},Kt=function(n,t,e){return void 0===e&&(e=0),On(n,t).map((function(n){return parseInt(n,10)})).getOr(e)},Yt=function(n,t){return Kt(n,t,1)},Jt=function(n){return xn("col")(n)?Kt(n,"span",1)>1:Yt(n,"colspan")>1},Qt=function(n){return Yt(n,"rowspan")>1},Xt=function(n,t){return parseInt(Vt(n,t),10)},Zt=h(10),ne=h(10),te=function(n,t){return ee(n,t,T)},ee=function(n,t,e){return U(Un(n),(function(n){return _n(n,t)?e(n)?[n]:[]:ee(n,t,e)}))},re=function(n,t){return function(n,t,e){return void 0===e&&(e=x),e(t)?S.none():B(n,dn(t))?S.some(t):Ot(t,n.join(","),(function(n){return _n(n,"table")||e(n)}))}(["td","th"],n,t)},oe=function(n){return te(n,"th,td")},ue=function(n){return _n(n,"colgroup")?xt(n,"col"):U(fe(n),(function(n){return xt(n,"col")}))},ie=function(n,t){return At(n,"table",t)},ce=function(n){return te(n,"tr")},fe=function(n){return ie(n).fold(h([]),(function(n){return xt(n,"colgroup")}))},ae=function(n,t){return L(n,(function(n){if("colgroup"===dn(n)){var e=L(ue(n),(function(n){var t=Kt(n,"span",1);return ft(n,1,t)}));return at(n,e,"colgroup")}var r=L(oe(n),(function(n){var t=Kt(n,"rowspan",1),e=Kt(n,"colspan",1);return ft(n,t,e)}));return at(n,r,t(n))}))},le=function(n){return Pn(n).map((function(n){var t=dn(n);return function(n){return B(ct,n)}(t)?t:"tbody"})).getOr("tbody")},se=function(n){var t=ce(n),e=fe(n),o=r(r([],e,!0),t,!0);return ae(o,le)},me=function(n){var t,e=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e||(e=!0,t=n.apply(null,r)),t}},de=function(){return ve(0,0)},ve=function(n,t){return{major:n,minor:t}},ge={nu:ve,detect:function(n,t){var e=String(t).toLowerCase();return 0===n.length?de():function(n,t){var e=function(n,t){for(var e=0;e<n.length;e++){var r=n[e];if(r.test(t))return r}}(n,t);if(!e)return{major:0,minor:0};var r=function(n){return Number(t.replace(e,"$"+n))};return ve(r(1),r(2))}(n,e)},unknown:de},he=function(n,t){var e=String(t).toLowerCase();return H(n,(function(n){return n.search(e)}))},pe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,be=function(n){return function(t){return zt(t,n)}},we=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(n){return zt(n,"edge/")&&zt(n,"chrome")&&zt(n,"safari")&&zt(n,"applewebkit")}},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,pe],search:function(n){return zt(n,"chrome")&&!zt(n,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(n){return zt(n,"msie")||zt(n,"trident")}},{name:"Opera",versionRegexes:[pe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:be("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:be("firefox")},{name:"Safari",versionRegexes:[pe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(n){return(zt(n,"safari")||zt(n,"mobile/"))&&zt(n,"applewebkit")}}],ye=[{name:"Windows",search:be("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(n){return zt(n,"iphone")||zt(n,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:be("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:be("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:be("linux"),versionRegexes:[]},{name:"Solaris",search:be("sunos"),versionRegexes:[]},{name:"FreeBSD",search:be("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:be("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ce={browsers:h(we),oses:h(ye)},xe="Edge",Te="Chromium",Se="Opera",Re="Firefox",De="Safari",Oe=function(n){var t=n.current,e=n.version,r=function(n){return function(){return t===n}};return{current:t,version:e,isEdge:r(xe),isChromium:r(Te),isIE:r("IE"),isOpera:r(Se),isFirefox:r(Re),isSafari:r(De)}},ke={unknown:function(){return Oe({current:void 0,version:ge.unknown()})},nu:Oe,edge:h(xe),chromium:h(Te),ie:h("IE"),opera:h(Se),firefox:h(Re),safari:h(De)},Ee="Windows",Ae="Android",Ne="Linux",_e="macOS",Be="Solaris",je="FreeBSD",ze="ChromeOS",Le=function(n){var t=n.current,e=n.version,r=function(n){return function(){return t===n}};return{current:t,version:e,isWindows:r(Ee),isiOS:r("iOS"),isAndroid:r(Ae),isMacOS:r(_e),isLinux:r(Ne),isSolaris:r(Be),isFreeBSD:r(je),isChromeOS:r(ze)}},We={unknown:function(){return Le({current:void 0,version:ge.unknown()})},nu:Le,windows:h(Ee),ios:h("iOS"),android:h(Ae),linux:h(Ne),macos:h(_e),solaris:h(Be),freebsd:h(je),chromeos:h(ze)},Me=function(n,t,e){var r=Ce.browsers(),o=Ce.oses(),u=t.bind((function(n){return function(n,t){return Q(t.brands,(function(t){var e=t.brand.toLowerCase();return H(n,(function(n){var t;return e===(null===(t=n.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(n){return{current:n.name,version:ge.nu(parseInt(t.version,10),0)}}))}))}(r,n)})).orThunk((function(){return function(n,t){return he(n,t).map((function(n){var e=ge.detect(n.versionRegexes,t);return{current:n.name,version:e}}))}(r,n)})).fold(ke.unknown,ke.nu),i=function(n,t){return he(n,t).map((function(n){var e=ge.detect(n.versionRegexes,t);return{current:n.name,version:e}}))}(o,n).fold(We.unknown,We.nu),c=function(n,t,e,r){var o=n.isiOS()&&!0===/ipad/i.test(e),u=n.isiOS()&&!o,i=n.isiOS()||n.isAndroid(),c=i||r("(pointer:coarse)"),f=o||!u&&i&&r("(min-device-width:768px)"),a=u||i&&!f,l=t.isSafari()&&n.isiOS()&&!1===/safari/i.test(e),s=!a&&!f&&!l;return{isiPad:h(o),isiPhone:h(u),isTablet:h(f),isPhone:h(a),isTouch:h(c),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:h(l),isDesktop:h(s)}}(i,u,n,e);return{browser:u,os:i,deviceType:c}},Ie=function(n){return window.matchMedia(n).matches},Pe=me((function(){return Me(navigator.userAgent,S.from(navigator.userAgentData),Ie)})),Fe=function(){return Pe()},He=function(n,t){var e=function(e){var r=t(e);if(r<=0||null===r){var o=Vt(e,n);return parseFloat(o)||0}return r},r=function(n,t){return F(t,(function(t,e){var r=Vt(n,e),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)};return{set:function(t,e){if(!v(e)&&!e.match(/^[0-9]+$/))throw new Error(n+".set accepts only positive integer values. Value was "+e);var r=t.dom;Pt(r)&&(r.style[n]=e+"px")},get:e,getOuter:e,aggregate:r,max:function(n,t,e){var o=r(n,e);return t>o?t-o:0}}},qe=function(n,t){return function(n){var t=parseFloat(n);return isNaN(t)?S.none():S.some(t)}(n).getOr(t)},Ve=function(n,t,e){return qe(Vt(n,t),e)},Ue=function(n,t){var e=n.dom,r=e.getBoundingClientRect().width||e.offsetWidth;return"border-box"===t?r:function(n,t,e,r){return t-Ve(n,"padding-".concat(e),0)-Ve(n,"padding-".concat(r),0)-Ve(n,"border-".concat(e,"-width"),0)-Ve(n,"border-".concat(r,"-width"),0)}(n,r,"left","right")},$e=He("width",(function(n){return n.dom.offsetWidth})),Ge=function(n){return $e.get(n)},Ke=function(n){return $e.getOuter(n)},Ye=function(n){return Ue(n,"content-box")},Je=function(n){return Ve(n,"width",n.dom.offsetWidth)},Qe=function(n,t,e){var r=n.cells,o=r.slice(0,t),u=r.slice(t),i=o.concat(e).concat(u);return nr(n,i)},Xe=function(n,t,e){return Qe(n,t,[e])},Ze=function(n,t,e){n.cells[t]=e},nr=function(n,t){return st(n.element,t,n.section,n.isNew)},tr=function(n,t){return n.cells[t]},er=function(n,t){return tr(n,t).element},rr=function(n){return n.cells.length},or=function(n){var t=M(n,(function(n){return"colgroup"===n.section}));return{rows:t.fail,cols:t.pass}},ur=function(n,t,e){var r=L(n.cells,e);return st(t(n.element),r,n.section,!0)},ir="data-snooker-locked-cols",cr=function(n){return On(n,ir).bind((function(n){return S.from(n.match(/\d+/g))})).map((function(n){return G(n,T)}))},fr=function(n){var t=F(or(n).rows,(function(n,t){return W(t.cells,(function(t,e){t.isLocked&&(n[e]=!0)})),n}),{}),e=on(t,(function(n,t){return parseInt(t,10)}));return function(n,t){var e=A.call(n,0);return e.sort(t),e}(e)},ar=function(n,t){return n+","+t},lr=function(n,t){var e=U(n.all,(function(n){return n.cells}));return I(e,t)},sr=function(n){var t={},e=[],r=Y(n).map((function(n){return n.element})).bind(ie).bind(cr).getOr({}),o=0,u=0,i=0,c=M(n,(function(n){return"colgroup"===n.section})),f=c.pass,a=c.fail;W(a,(function(n){var c=[];W(n.cells,(function(n){for(var e=0;void 0!==t[ar(i,e)];)e++;for(var o=function(n,t){return cn(n,t)&&void 0!==n[t]&&null!==n[t]}(r,e.toString()),f=function(n,t,e,r,o,u){return{element:n,rowspan:t,colspan:e,row:r,column:o,isLocked:u}}(n.element,n.rowspan,n.colspan,i,e,o),a=0;a<n.colspan;a++)for(var l=0;l<n.rowspan;l++){var s=e+a,m=ar(i+l,s);t[m]=f,u=Math.max(u,s+1)}c.push(f)})),o++,e.push(at(n.element,c,n.section)),i++}));var l=J(f).map((function(n){var t=function(n){var t={},e=0;return W(n.cells,(function(n){var r=n.colspan;z(r,(function(o){var u=e+o;t[u]=function(n,t,e){return{element:n,colspan:t,column:e}}(n.element,r,u)})),e+=r})),t}(n),e=function(n,t){return{element:n,columns:t}}(n.element,un(t));return{colgroups:[e],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),s=l.columns,m=l.colgroups,d=function(n,t){return{rows:n,columns:t}}(o,u);return{grid:d,access:t,all:e,columns:s,colgroups:m}},mr={fromTable:function(n){var t=se(n);return sr(t)},generate:sr,getAt:function(n,t,e){return S.from(n.access[ar(t,e)])},findItem:function(n,t,e){var r=lr(n,(function(n){return e(t,n.element)}));return r.length>0?S.some(r[0]):S.none()},filterItems:lr,justCells:function(n){return U(n.all,(function(n){return n.cells}))},justColumns:function(n){return un(n.columns)},hasColumns:function(n){return X(n.columns).length>0},getColumnAt:function(n,t){return S.from(n.columns[t])}},dr=function(n,t){void 0===t&&(t=T);var e=n.grid,r=z(e.columns,p),o=z(e.rows,p);return L(r,(function(e){return vr((function(){return U(o,(function(t){return mr.getAt(n,t,e).filter((function(n){return n.column===e})).toArray()}))}),(function(n){return 1===n.colspan&&t(n.element)}),(function(){return mr.getAt(n,0,e)}))}))},vr=function(n,t,e){var r=n();return H(r,t).orThunk((function(){return S.from(r[0]).orThunk(e)})).map((function(n){return n.element}))},gr=function(n){var t=n.grid,e=z(t.rows,p),r=z(t.columns,p);return L(e,(function(t){return vr((function(){return U(r,(function(e){return mr.getAt(n,t,e).filter((function(n){return n.row===t})).fold(h([]),(function(n){return[n]}))}))}),(function(n){return 1===n.rowspan}),(function(){return mr.getAt(n,t,0)}))}))},hr=function(n,t){if(t<0||t>=n.length-1)return S.none();var e=n[t].fold((function(){var e=function(n){var t=A.call(n,0);return t.reverse(),t}(n.slice(0,t));return Q(e,(function(n,t){return n.map((function(n){return{value:n,delta:t+1}}))}))}),(function(n){return S.some({value:n,delta:0})})),r=n[t+1].fold((function(){var e=n.slice(t+1);return Q(e,(function(n,t){return n.map((function(n){return{value:n,delta:t+1}}))}))}),(function(n){return S.some({value:n,delta:1})}));return e.bind((function(n){return r.map((function(t){var e=t.delta+n.delta;return Math.abs(t.value-n.value)/e}))}))},pr=function(n,t){return function(e){return"rtl"===br(e)?t:n}},br=function(n){return"rtl"===Vt(n,"direction")?"rtl":"ltr"},wr=He("height",(function(n){var t=n.dom;return bt(n)?t.getBoundingClientRect().height:t.offsetHeight})),yr=function(n){return wr.get(n)},Cr=function(n){return wr.getOuter(n)},xr=function(n){return Ve(n,"height",n.dom.offsetHeight)},Tr=function(n,t){return{left:n,top:t,translate:function(e,r){return Tr(n+e,t+r)}}},Sr=Tr,Rr=function(n,t){return void 0!==n?n:void 0!==t?t:0},Dr=function(n){var t=n.dom.ownerDocument,e=t.body,r=t.defaultView,o=t.documentElement;if(e===n.dom)return Sr(e.offsetLeft,e.offsetTop);var u=Rr(null==r?void 0:r.pageYOffset,o.scrollTop),i=Rr(null==r?void 0:r.pageXOffset,o.scrollLeft),c=Rr(o.clientTop,e.clientTop),f=Rr(o.clientLeft,e.clientLeft);return Or(n).translate(i-f,u-c)},Or=function(n){var t=n.dom,e=t.ownerDocument.body;return e===t?Sr(e.offsetLeft,e.offsetTop):bt(n)?function(n){var t=n.getBoundingClientRect();return Sr(t.left,t.top)}(t):Sr(0,0)},kr=function(n,t){return{row:n,y:t}},Er=function(n,t){return{col:n,x:t}},Ar=function(n){return Dr(n).left+Ke(n)},Nr=function(n){return Dr(n).left},_r=function(n,t){return Er(n,Nr(t))},Br=function(n,t){return Er(n,Ar(t))},jr=function(n){return Dr(n).top},zr=function(n,t){return kr(n,jr(t))},Lr=function(n,t){return kr(n,jr(t)+Cr(t))},Wr=function(n,t,e){if(0===e.length)return[];var r=L(e.slice(1),(function(t,e){return t.map((function(t){return n(e,t)}))})),o=e[e.length-1].map((function(n){return t(e.length-1,n)}));return r.concat([o])},Mr={delta:p,positions:function(n){return Wr(zr,Lr,n)},edge:jr},Ir={delta:p,edge:Nr,positions:function(n){return Wr(_r,Br,n)}},Pr={delta:function(n){return-n},edge:Ar,positions:function(n){return Wr(Br,_r,n)}},Fr=pr(Ir,Pr),Hr={delta:function(n,t){return Fr(t).delta(n,t)},positions:function(n,t){return Fr(t).positions(n,t)},edge:function(n){return Fr(n).edge(n)}},qr={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Vr=(R="[0-9]+",D="[eE][+-]?"+R,O=function(n){return"(?:".concat(n,")?")},k=["Infinity",R+"\\."+O(R)+O(D),"\\."+R+O(D),R+O(D)].join("|"),E="[+-]?(?:".concat(k,")"),new RegExp("^(".concat(E,")(.*)$"))),Ur=function(n,t){return S.from(Vr.exec(n)).bind((function(n){var e=Number(n[1]),r=n[2];return function(n,t){return j(t,(function(t){return j(qr[t],(function(t){return n===t}))}))}(r,t)?S.some({value:e,unit:r}):S.none()}))},$r=/(\d+(\.\d+)?)%/,Gr=/(\d+(\.\d+)?)px|em/,Kr=xn("col"),Yr=function(n,t,e){var r=Fn(n).getOrThunk((function(){return wt(Mn(n))}));return t(n)/e(r)*100},Jr=function(n,t){Ht(n,"width",t+"px")},Qr=function(n,t){Ht(n,"width",t+"%")},Xr=function(n,t){Ht(n,"height",t+"px")},Zr=function(n,t,e,r){var o=parseFloat(n);return Wt(n,"%")&&"table"!==dn(t)?function(n,t,e,r){var o=ie(n).map((function(n){var r=e(n);return Math.floor(t/100*r)})).getOr(t);return r(n,o),o}(t,o,e,r):o},no=function(n){var t=function(n){return xr(n)+"px"}(n);return t?Zr(t,n,yr,Xr):yr(n)},to=function(n,t){return $t(n,t).orThunk((function(){return On(n,t).map((function(n){return n+"px"}))}))},eo=function(n){return to(n,"width")},ro=function(n){return Yr(n,Ge,Ye)},oo=function(n){return Kr(n)?Ge(n):Je(n)},uo=function(n){return function(n,t,e){return e(n)/Yt(n,t)}(n,"rowspan",no)},io=function(n,t,e){Ht(n,"width",t+e)},co=function(n){return Yr(n,Ge,Ye)+"%"},fo=h($r),ao=xn("col"),lo=function(n){return eo(n).getOrThunk((function(){return oo(n)+"px"}))},so=function(n){return(t=n,to(t,"height")).getOrThunk((function(){return uo(n)+"px"}));var t},mo=function(n,t,e,r,o,u){return n.filter(r).fold((function(){return u(hr(e,t))}),(function(n){return o(n)}))},vo=function(n,t,e,r){var o=dr(n),u=mr.hasColumns(n)?function(n){return L(mr.justColumns(n),(function(n){return S.from(n.element)}))}(n):o,i=[S.some(Hr.edge(t))].concat(L(Hr.positions(o,t),(function(n){return n.map((function(n){return n.x}))}))),c=y(Jt);return L(u,(function(n,t){return mo(n,t,i,c,(function(n){if(function(n){var t=Fe().browser,e=t.isChromium()||t.isFirefox();return!ao(n)||e}(n))return e(n);var u,f,a=(u=o[t],f=p,null!=u?f(u):S.none());return mo(a,t,i,c,(function(n){return r(S.some(Ge(n)))}),r)}),r)}))},go=function(n){return n.map((function(n){return n+"px"})).getOr("")},ho=function(n,t,e){return vo(n,t,oo,(function(n){return n.getOrThunk(e.minCellWidth)}))},po=function(n,t,e,r,o){var u=gr(n),i=[S.some(e.edge(t))].concat(L(e.positions(u,t),(function(n){return n.map((function(n){return n.y}))})));return L(u,(function(n,t){return mo(n,t,i,y(Qt),r,o)}))},bo=function(n,t){return function(){return bt(n)?t(n):parseFloat($t(n,"width").getOr("0"))}},wo=function(n){var t=bo(n,Ge),e=h(0);return{width:t,pixelWidth:t,getWidths:function(t,e){return ho(t,n,e)},getCellDelta:e,singleColumnWidth:h([0]),minCellWidth:e,setElementWidth:g,adjustTableWidth:g,isRelative:!0,label:"none"}},yo=function(n){var t=bo(n,(function(n){return parseFloat(co(n))})),e=bo(n,Ge);return{width:t,pixelWidth:e,getWidths:function(t,e){return function(n,t,e){return vo(n,t,ro,(function(n){return n.fold((function(){return e.minCellWidth()}),(function(n){return n/e.pixelWidth()*100}))}))}(t,n,e)},getCellDelta:function(n){return n/e()*100},singleColumnWidth:function(n,t){return[100-n]},minCellWidth:function(){return Zt()/e()*100},setElementWidth:Qr,adjustTableWidth:function(e){var r=t();Qr(n,r+e/100*r)},isRelative:!0,label:"percent"}},Co=function(n){var t=bo(n,Ge);return{width:t,pixelWidth:t,getWidths:function(t,e){return ho(t,n,e)},getCellDelta:p,singleColumnWidth:function(n,t){return[Math.max(Zt(),n+t)-n]},minCellWidth:Zt,setElementWidth:Jr,adjustTableWidth:function(e){var r=t()+e;Jr(n,r)},isRelative:!1,label:"pixel"}},xo=function(n){return eo(n).fold((function(){return wo(n)}),(function(t){return function(n,t){return null!==fo().exec(t)?yo(n):Co(n)}(n,t)}))},To=Co,So=yo,Ro=function(n,t,e){var r=n[e].element,o=Nn.fromTag("td");Jn(o,Nn.fromTag("br")),(t?Jn:Yn)(r,o)},Do=function(n,t){var e=function(n){return _n(n.element,t)},r=ut(n),o=se(r),u=xo(n),i=mr.generate(o),c=function(n,t){var e=n.grid.columns,r=n.grid.rows,o=e,u=0,i=0,c=[],f=[];return nn(n.access,(function(n){if(c.push(n),t(n)){f.push(n);var e=n.row,a=e+n.rowspan-1,l=n.column,s=l+n.colspan-1;e<r?r=e:a>u&&(u=a),l<o?o=l:s>i&&(i=s)}})),function(n,t,e,r,o,u){return{minRow:n,minCol:t,maxRow:e,maxCol:r,allCells:o,selectedCells:u}}(r,o,u,i,c,f)}(i,e),f="th:not("+t+"),td:not("+t+")",a=ee(r,"th,td",(function(n){return _n(n,f)}));W(a,tt),function(n,t,e,r){for(var o=I(n,(function(n){return"colgroup"!==n.section})),u=t.grid.columns,i=t.grid.rows,c=0;c<i;c++)for(var f=!1,a=0;a<u;a++)c<e.minRow||c>e.maxRow||a<e.minCol||a>e.maxCol||(mr.getAt(t,c,a).filter(r).isNone()?Ro(o,f,c):f=!0)}(o,i,c,e);var l=function(n,t,e,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var o=ho(t,n,e),u=F(o,(function(n,t){return n+t}),0),i=F(o.slice(r.minCol,r.maxCol+1),(function(n,t){return n+t}),0),c=i/u*e.pixelWidth()-e.pixelWidth();return e.getCellDelta(c)}(n,mr.fromTable(n),u,c);return function(n,t,e,r){nn(e.columns,(function(n){(n.column<t.minCol||n.column>t.maxCol)&&tt(n.element)}));var o=I(te(n,"tr"),(function(n){return 0===n.dom.childElementCount}));W(o,tt),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||W(te(n,"th,td"),(function(n){kn(n,"rowspan"),kn(n,"colspan")})),kn(n,ir),kn(n,"data-snooker-col-series"),xo(n).adjustTableWidth(r)}(r,c,i,l),r},Oo=function(n,t){var e=function(t){return n(t)?S.from(t.dom.nodeValue):S.none()};return{get:function(r){if(!n(r))throw new Error("Can only get "+t+" value of a "+t+" node");return e(r).getOr("")},getOption:e,set:function(e,r){if(!n(e))throw new Error("Can only set raw "+t+" value of a "+t+" node");e.dom.nodeValue=r}}}(wn,"text"),ko=function(n){return Oo.get(n)},Eo=function(n){return Oo.getOption(n)},Ao=function(n,t){return Oo.set(n,t)},No=function(n){return"img"===dn(n)?1:Eo(n).fold((function(){return Un(n).length}),(function(n){return n.length}))},_o=["img","br"],Bo=function(n){return Eo(n).filter((function(n){return 0!==n.trim().length||n.indexOf(" ")>-1})).isSome()||B(_o,dn(n))||function(n){return pn(n)&&"false"===Dn(n,"contenteditable")}(n)},jo=function(n){return t=Bo,(e=function(n){for(var r=0;r<n.childNodes.length;r++){var o=Nn.fromDom(n.childNodes[r]);if(t(o))return S.some(o);var u=e(n.childNodes[r]);if(u.isSome())return u}return S.none()})(n.dom);var t,e},zo=function(n){return Lo(n,Bo)},Lo=function(n,t){var e=function(n){for(var r=Un(n),o=r.length-1;o>=0;o--){var u=r[o];if(t(u))return S.some(u);var i=e(u);if(i.isSome())return i}return S.none()};return e(n)},Wo={scope:["row","col"]},Mo=function(n){return function(){var t=Nn.fromTag("td",n.dom);return Jn(t,Nn.fromTag("br",n.dom)),t}},Io=function(n){return function(){return Nn.fromTag("col",n.dom)}},Po=function(n){return function(){return Nn.fromTag("colgroup",n.dom)}},Fo=function(n){return function(){return Nn.fromTag("tr",n.dom)}},Ho=function(n,t,e){var r=function(n,t){var e=it(n,t),r=Un(ut(n));return Zn(e,r),e}(n,t);return nn(e,(function(n,t){null===n?kn(r,t):Sn(r,t,n)})),r},qo=function(n){return n},Vo=function(n,t,e){var r=function(n,t){var e,r,o,u;e=n.element,r=t,o=e.dom,u=r.dom,Pt(o)&&Pt(u)&&(u.style.cssText=o.style.cssText),Gt(t,"height"),1!==n.colspan&&Gt(t,"width")};return{col:function(e){var o=Nn.fromTag(dn(e.element),t.dom);return r(e,o),n(e.element,o),o},colgroup:Po(t),row:Fo(t),cell:function(o){var u=Nn.fromTag(dn(o.element),t.dom),i=e.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),c=i.length>0?function(n,t,e){return jo(n).map((function(r){var o=e.join(","),u=Ct(r,o,(function(t){return zn(t,n)}));return P(u,(function(n,t){var e=ot(t);return Jn(n,e),e}),t)})).getOr(t)}(o.element,u,i):u;return Jn(c,Nn.fromTag("br")),r(o,u),function(n,t){nn(Wo,(function(e,r){return On(n,r).filter((function(n){return B(e,n)})).each((function(n){return Sn(t,r,n)}))}))}(o.element,u),n(o.element,u),u},replace:Ho,colGap:Io(t),gap:Mo(t)}},Uo=function(n){return{col:Io(n),colgroup:Po(n),row:Fo(n),cell:Mo(n),replace:qo,colGap:Io(n),gap:Mo(n)}},$o=function(n){return function(t){return t.options.get(n)}},Go="100%",Ko=function(n){var t,e=n.dom,r=null!==(t=e.getParent(n.selection.getStart(),e.isBlock))&&void 0!==t?t:n.getBody();return Ye(Nn.fromDom(r))+"px"},Yo=function(n){return S.from(n.options.get("table_clone_elements"))},Jo=$o("table_header_type"),Qo=$o("table_column_resizing"),Xo=function(n){return"preservetable"===Qo(n)},Zo=function(n){return"resizetable"===Qo(n)},nu=$o("table_sizing_mode"),tu=function(n){return"relative"===nu(n)},eu=function(n){return"fixed"===nu(n)},ru=function(n){return"responsive"===nu(n)},ou=$o("table_resize_bars"),uu=$o("table_style_by_css"),iu=$o("table_merge_content_on_paste"),cu=function(n){var t=n.options,r=t.get("table_default_attributes");return t.isSet("table_default_attributes")?r:function(n,t){return ru(n)||uu(n)?t:eu(n)?e(e({},t),{width:Ko(n)}):e(e({},t),{width:Go})}(n,r)},fu=function(n){var t=n.options,r=t.get("table_default_styles");return t.isSet("table_default_styles")?r:function(n,t){return ru(n)||!uu(n)?t:eu(n)?e(e({},t),{width:Ko(n)}):e(e({},t),{width:Go})}(n,r)},au=$o("table_use_colgroups"),lu=function(n){return At(n,"[contenteditable]")},su=function(n,t){return void 0===t&&(t=!1),bt(n)?n.dom.isContentEditable:lu(n).fold(h(t),(function(n){return"true"===mu(n)}))},mu=function(n){return n.dom.contentEditable},du=function(n){return Nn.fromDom(n.getBody())},vu=function(n){return function(t){return zn(t,du(n))}},gu=function(n){kn(n,"data-mce-style");var t=function(n){return kn(n,"data-mce-style")};W(oe(n),t),W(ue(n),t),W(ce(n),t)},hu=function(n){return Nn.fromDom(n.selection.getStart())},pu=function(n){return n.getBoundingClientRect().width},bu=function(n){return n.getBoundingClientRect().height},wu=function(n){return Dt(n,xn("table")).exists(su)},yu=function(n,t){var e=t.column,r=t.column+t.colspan-1,o=t.row,u=t.row+t.rowspan-1;return e<=n.finishCol&&r>=n.startCol&&o<=n.finishRow&&u>=n.startRow},Cu=function(n,t){return t.column>=n.startCol&&t.column+t.colspan-1<=n.finishCol&&t.row>=n.startRow&&t.row+t.rowspan-1<=n.finishRow},xu=function(n,t,e){var r=mr.findItem(n,t,zn),o=mr.findItem(n,e,zn);return r.bind((function(n){return o.map((function(t){return e=n,r=t,o=Math.min(e.row,r.row),u=Math.min(e.column,r.column),i=Math.max(e.row+e.rowspan-1,r.row+r.rowspan-1),c=Math.max(e.column+e.colspan-1,r.column+r.colspan-1),{startRow:o,startCol:u,finishRow:i,finishCol:c};var e,r,o,u,i,c}))}))},Tu=function(n,t,e){return xu(n,t,e).bind((function(t){return function(n,t){for(var e=!0,r=w(Cu,t),o=t.startRow;o<=t.finishRow;o++)for(var u=t.startCol;u<=t.finishCol;u++)e=e&&mr.getAt(n,o,u).exists(r);return e?S.some(t):S.none()}(n,t)}))},Su=function(n,t,e){return xu(n,t,e).map((function(t){var e=mr.filterItems(n,w(yu,t));return L(e,(function(n){return n.element}))}))},Ru=function(n,t){return mr.findItem(n,t,(function(n,t){return Ln(t,n)})).map((function(n){return n.element}))},Du=function(n,t,e){return ie(n).bind((function(r){return function(n,t,e,r){return mr.findItem(n,t,zn).bind((function(t){var o=e>0?t.row+t.rowspan-1:t.row,u=r>0?t.column+t.colspan-1:t.column;return mr.getAt(n,o+e,u+r).map((function(n){return n.element}))}))}(Eu(r),n,t,e)}))},Ou=function(n,t,e){var r=Eu(n);return Su(r,t,e)},ku=function(n,t,e,r,o){var u=Eu(n),i=zn(n,e)?S.some(t):Ru(u,t),c=zn(n,o)?S.some(r):Ru(u,r);return i.bind((function(n){return c.bind((function(t){return Su(u,n,t)}))}))},Eu=mr.fromTable,Au=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Nu=function(){return{up:h({selector:Ot,closest:At,predicate:Rt,all:Hn}),down:h({selector:Tt,predicate:yt}),styles:h({get:Vt,getRaw:$t,set:Ht,remove:Gt}),attrs:h({get:Dn,set:Sn,remove:kn,copyTo:function(n,t){var e=En(n);Rn(t,e)}}),insert:h({before:Gn,after:Kn,afterAll:Xn,append:Jn,appendAll:Zn,prepend:Yn,wrap:Qn}),remove:h({unwrap:et,remove:tt}),create:h({nu:Nn.fromTag,clone:function(n){return Nn.fromDom(n.dom.cloneNode(!1))},text:Nn.fromText}),query:h({comparePosition:function(n,t){return n.dom.compareDocumentPosition(t.dom)},prevSibling:qn,nextSibling:Vn}),property:h({children:Un,name:dn,parent:Pn,document:function(n){return In(n).dom},isText:wn,isComment:hn,isElement:bn,isSpecial:function(n){var t=dn(n);return B(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:function(n){return bn(n)?On(n,"lang"):S.none()},getText:ko,setText:Ao,isBoundary:function(n){return!!bn(n)&&("body"===dn(n)||B(Au,dn(n)))},isEmptyTag:function(n){return!!bn(n)&&B(["br","img","hr","input"],dn(n))},isNonEditable:function(n){return bn(n)&&"false"===Dn(n,"contenteditable")}}),eq:zn,is:Wn}},_u=function(n,t,e,r){var o=t(n,e);return P(r,(function(e,r){var o=t(n,r);return Bu(n,e,o)}),o)},Bu=function(n,t,e){return t.bind((function(t){return e.filter(w(n.eq,t))}))},ju=function(n,t,e){return e.length>0?function(n,t,e,r){return r(n,t,e[0],e.slice(1))}(n,t,e,_u):S.none()},zu=function(n,t,e,r){void 0===r&&(r=x);var o=[t].concat(n.up().all(t)),u=[e].concat(n.up().all(e)),i=function(n){return q(n,r).fold((function(){return n}),(function(t){return n.slice(0,t+1)}))},c=i(o),f=i(u),a=H(c,(function(t){return j(f,function(n,t){return w(n.eq,t)}(n,t))}));return{firstpath:c,secondpath:f,shared:a}},Lu=Nu(),Wu=function(n,t){return ju(Lu,(function(t,e){return n(e)}),t)},Mu=function(n){return Ot(n,"table")},Iu=function(n,t,e){var r=function(n){return function(t){return void 0!==e&&e(t)||zn(t,n)}};return zn(n,t)?S.some({boxes:S.some([n]),start:n,finish:t}):Mu(n).bind((function(o){return Mu(t).bind((function(u){if(zn(o,u))return S.some({boxes:Ou(o,n,t),start:n,finish:t});if(Ln(o,u)){var i=(c=Ct(t,"td,th",r(o))).length>0?c[c.length-1]:t;return S.some({boxes:ku(o,n,o,t,u),start:n,finish:i})}if(Ln(u,o)){var c,f=(c=Ct(n,"td,th",r(u))).length>0?c[c.length-1]:n;return S.some({boxes:ku(u,n,o,t,u),start:n,finish:f})}return function(n,t,e){return zu(Lu,n,t,e)}(n,t).shared.bind((function(i){return At(i,"table",e).bind((function(e){var i=Ct(t,"td,th",r(e)),c=i.length>0?i[i.length-1]:t,f=Ct(n,"td,th",r(e)),a=f.length>0?f[f.length-1]:n;return S.some({boxes:ku(e,n,o,t,u),start:a,finish:c})}))}))}))}))},Pu=function(n,t){var e=Tt(n,t);return e.length>0?S.some(e):S.none()},Fu=function(n,t,e){return Et(n,t).bind((function(t){return Et(n,e).bind((function(n){return Wu(Mu,[t,n]).map((function(e){return{first:t,last:n,table:e}}))}))}))},Hu=function(n,t,e,r,o){return function(n,t){return H(n,(function(n){return _n(n,t)}))}(n,o).bind((function(n){return Du(n,t,e).bind((function(n){return function(n,t){return Ot(n,"table").bind((function(e){return Et(e,t).bind((function(t){return Iu(t,n).bind((function(n){return n.boxes.map((function(t){return{boxes:t,start:n.start,finish:n.finish}}))}))}))}))}(n,r)}))}))},qu=function(n,t){return Pu(n,t)},Vu=function(n,t,e){return Fu(n,t,e).bind((function(t){var e=function(t){return zn(n,t)},r="thead,tfoot,tbody,table",o=Ot(t.first,r,e),u=Ot(t.last,r,e);return o.bind((function(n){return u.bind((function(e){return zn(n,e)?function(n,t,e){var r=Eu(n);return Tu(r,t,e)}(t.table,t.first,t.last):S.none()}))}))}))},Uu=p,$u=function(n){var t=function(n,t){return On(n,t).exists((function(n){return parseInt(n,10)>1}))};return n.length>0&&$(n,(function(n){return t(n,"rowspan")||t(n,"colspan")}))?S.some(n):S.none()},Gu=function(n,t,e){return t.length<=1?S.none():Vu(n,e.firstSelectedSelector,e.lastSelectedSelector).map((function(n){return{bounds:n,cells:t}}))},Ku="data-mce-selected",Yu="td["+Ku+"],th["+Ku+"]",Ju="["+Ku+"]",Qu="data-mce-first-selected",Xu="td["+Qu+"],th["+Qu+"]",Zu="data-mce-last-selected",ni="td["+Zu+"],th["+Zu+"]",ti=Ju,ei={selected:Ku,selectedSelector:Yu,firstSelected:Qu,firstSelectedSelector:Xu,lastSelected:Zu,lastSelectedSelector:ni},ri=function(n,t,e){return{element:e,mergable:Gu(t,n,ei),unmergable:$u(n),selection:Uu(n)}},oi=function(n){return function(t,e){var r,o=dn(t),u="col"===o||"colgroup"===o?ie(r=t).bind((function(n){return qu(n,ei.firstSelectedSelector)})).fold(h(r),(function(n){return n[0]})):t;return At(u,n,e)}},ui=oi("th,td,caption"),ii=oi("th,td"),ci=function(n){return t=n.model.table.getSelectedCells(),L(t,Nn.fromDom);var t},fi=function(n,t){n.on("BeforeGetContent",(function(t){if(!0===t.selection){var e=function(n){return I(ci(n),(function(n){return _n(n,ei.selectedSelector)}))}(n);e.length>=1&&function(e){t.preventDefault(),function(n){return ie(n[0]).map((function(n){var t=Do(n,ti);return gu(t),[t]}))}(e).each((function(e){t.content="text"===t.format?function(n){return L(n,(function(n){return n.dom.innerText})).join("")}(e):function(n,t){return L(t,(function(t){return n.selection.serializer.serialize(t.dom,{})})).join("")}(n,e)}))}(e)}})),n.on("BeforeSetContent",(function(e){if(!0===e.selection&&!0===e.paste){var r=ci(n);Y(r).each((function(r){ie(r).each((function(o){var u,i,c,f=I((u=e.content,(c=(i||document).createElement("div")).innerHTML=u,Un(Nn.fromDom(c))),(function(n){return"meta"!==dn(n)})),a=xn("table");if(iu(n)&&1===f.length&&a(f[0])){e.preventDefault();var l=Nn.fromDom(n.getDoc()),s=Uo(l),m=function(n,t,e){return{element:n,clipboard:t,generators:e}}(r,f[0],s);t.pasteCells(o,m).each((function(){n.focus()}))}}))}))}}))},ai=function(n,t){return{element:n,offset:t}},li=function(n,t,e){return n.property().isText(t)&&0===n.property().getText(t).trim().length||n.property().isComment(t)?e(t).bind((function(t){return li(n,t,e).orThunk((function(){return S.some(t)}))})):S.none()},si=function(n,t){return n.property().isText(t)?n.property().getText(t).length:n.property().children(t).length},mi=function(n,t){var e=li(n,t,n.query().prevSibling).getOr(t);if(n.property().isText(e))return ai(e,si(n,e));var r=n.property().children(e);return r.length>0?mi(n,r[r.length-1]):ai(e,si(n,e))},di=mi,vi=Nu(),gi=function(n,t){if(!Jt(n)){var e=function(n){return eo(n).bind((function(n){return Ur(n,["fixed","relative","empty"])}))}(n);e.each((function(e){var r=e.value/2;io(n,r,e.unit),io(t,r,e.unit)}))}},hi=function(n){return L(n,h(0))},pi=function(n,t,e,r,o){return o(n.slice(0,t)).concat(r).concat(o(n.slice(e)))},bi=function(n){return function(t,e,r,o){if(n(r)){var u=Math.max(o,t[e]-Math.abs(r)),i=Math.abs(u-t[e]);return r>=0?i:-i}return r}},wi=bi((function(n){return n<0})),yi=bi(T),Ci=function(){var n=function(n,t,e,r){var o=(100+e)/100,u=Math.max(r,(n[t]+e)/o);return L(n,(function(n,e){return(e===t?u:n/o)-n}))},t=function(t,e,r,o,u,i){return i?n(t,e,o,u):function(n,t,e,r,o){var u=wi(n,t,r,o);return pi(n,t,e+1,[u,0],hi)}(t,e,r,o,u)};return{resizeTable:function(n,t){return n(t)},clampTableDelta:wi,calcLeftEdgeDeltas:t,calcMiddleDeltas:function(n,e,r,o,u,i,c){return t(n,r,o,u,i,c)},calcRightEdgeDeltas:function(t,e,r,o,u,i){if(i)return n(t,r,o,u);var c=wi(t,r,o,u);return hi(t.slice(0,r)).concat([c])},calcRedestributedWidths:function(n,t,e,r){if(r){var o=(t+e)/t,u=L(n,(function(n){return n/o}));return{delta:100*o-100,newSizes:u}}return{delta:e,newSizes:n}}}},xi=function(){var n=function(n,t,e,r,o){var u=yi(n,r>=0?e:t,r,o);return pi(n,t,e+1,[u,-u],hi)};return{resizeTable:function(n,t,e){e&&n(t)},clampTableDelta:function(n,t,e,r,o){if(o){if(e>=0)return e;var u=F(n,(function(n,t){return n+t-r}),0);return Math.max(-u,e)}return wi(n,t,e,r)},calcLeftEdgeDeltas:n,calcMiddleDeltas:function(t,e,r,o,u,i){return n(t,r,o,u,i)},calcRightEdgeDeltas:function(n,t,e,r,o,u){if(u)return hi(n);var i=r/n.length;return L(n,h(i))},calcRedestributedWidths:function(n,t,e,r){return{delta:0,newSizes:n}}}},Ti=function(n){return mr.fromTable(n).grid},Si=xn("th"),Ri=function(n){return $(n,(function(n){return Si(n.element)}))},Di=function(n,t){return n&&t?"sectionCells":n?"section":"cells"},Oi=function(n){var t="thead"===n.section,e=Nt(ki(n.cells),"th");return"tfoot"===n.section?{type:"footer"}:t||e?{type:"header",subType:Di(t,e)}:{type:"body"}},ki=function(n){var t=I(n,(function(n){return Si(n.element)}));return 0===t.length?S.some("td"):t.length===n.length?S.some("th"):S.none()},Ei=function(n,t,e){return lt(e(n.element,t),!0,n.isLocked)},Ai=function(n,t){return n.section!==t?st(n.element,n.cells,t,n.isNew):n},Ni=function(){return{transformRow:Ai,transformCell:function(n,t,e){var r=e(n.element,t),o="td"!==dn(r)?function(n,t){var e=it(n,t);Kn(n,e);var r=Un(n);return Zn(e,r),tt(n),e}(r,"td"):r;return lt(o,n.isNew,n.isLocked)}}},_i=function(){return{transformRow:Ai,transformCell:Ei}},Bi=function(){return{transformRow:function(n,t){return Ai(n,"thead"===t?"tbody":t)},transformCell:Ei}},ji=function(n,t){var e=function(n){return Q(n.all,(function(n){var t=Oi(n);return"header"===t.type?S.from(t.subType):S.none()}))}(mr.fromTable(n)).getOr(t);switch(e){case"section":return Ni();case"sectionCells":return _i();case"cells":return Bi()}},zi=Ni,Li=_i,Wi=Bi,Mi=function(){return{transformRow:p,transformCell:Ei}},Ii=function(n,t,e,r){e===r?kn(n,t):Sn(n,t,e)},Pi=function(n,t,e){J(xt(n,t)).fold((function(){return Yn(n,e)}),(function(n){return Kn(n,e)}))},Fi=function(n,t){var e=[],r=[],o=function(n){return L(n,(function(n){n.isNew&&e.push(n.element);var t=n.element;return nt(t),W(n.cells,(function(n){n.isNew&&r.push(n.element),Ii(n.element,"colspan",n.colspan,1),Ii(n.element,"rowspan",n.rowspan,1),Jn(t,n.element)})),t}))},u=function(n){return U(n,(function(n){return L(n.cells,(function(n){return Ii(n.element,"span",n.colspan,1),n.element}))}))},i=function(t,e){var r=function(n,t){var e=kt(n,t).getOrThunk((function(){var e=Nn.fromTag(t,Mn(n).dom);return"thead"===t?Pi(n,"caption,colgroup",e):"colgroup"===t?Pi(n,"caption",e):Jn(n,e),e}));return nt(e),e}(n,e),i=("colgroup"===e?u:o)(t);Zn(r,i)},c=function(t,e){t.length>0?i(t,e):function(t){kt(n,t).each(tt)}(e)},f=[],a=[],l=[],s=[];return W(t,(function(n){switch(n.section){case"thead":f.push(n);break;case"tbody":a.push(n);break;case"tfoot":l.push(n);break;case"colgroup":s.push(n)}})),c(s,"colgroup"),c(f,"thead"),c(a,"tbody"),c(l,"tfoot"),{newRows:e,newCells:r}},Hi=function(n,t){if(0===n.length)return 0;var e=n[0];return q(n,(function(n){return!t(e.element,n.element)})).getOr(n.length)},qi=function(n,t,e,r){var o=function(n,t){return n[t]}(n,t),u="colgroup"===o.section,i=Hi(o.cells.slice(e),r),c=u?1:Hi(function(n,t){return L(n,(function(n){return tr(n,t)}))}(n.slice(t),e),r);return{colspan:i,rowspan:c}},Vi=function(n,t){var e=L(n,(function(n){return L(n.cells,x)}));return L(n,(function(r,o){var u=U(r.cells,(function(r,u){if(!1===e[o][u]){var i=qi(n,o,u,t);return function(n,t,r,o){for(var u=n;u<n+r;u++)for(var i=t;i<t+o;i++)e[u][i]=!0}(o,u,i.rowspan,i.colspan),[(c=r.element,f=i.rowspan,a=i.colspan,l=r.isNew,{element:c,rowspan:f,colspan:a,isNew:l})]}return[];var c,f,a,l}));return function(n,t,e,r){return{element:n,cells:t,section:e,isNew:r}}(r.element,u,r.section,r.isNew)}))},Ui=function(n,t,e){var r=[];W(n.colgroups,(function(o){for(var u=[],i=0;i<n.grid.columns;i++){var c=mr.getColumnAt(n,i).map((function(n){return lt(n.element,e,!1)})).getOrThunk((function(){return lt(t.colGap(),!0,!1)}));u.push(c)}r.push(st(o.element,u,"colgroup",e))}));for(var o=0;o<n.grid.rows;o++){for(var u=[],i=0;i<n.grid.columns;i++){var c=mr.getAt(n,o,i).map((function(n){return lt(n.element,e,n.isLocked)})).getOrThunk((function(){return lt(t.gap(),!0,!1)}));u.push(c)}var f=n.all[o],a=st(f.element,u,f.section,e);r.push(a)}return r},$i=function(n){return Vi(n,zn)},Gi=function(n,t){return Q(n.all,(function(n){return H(n.cells,(function(n){return zn(t,n.element)}))}))},Ki=function(n,t,e){var r=L(t.selection,(function(t){return re(t).bind((function(t){return Gi(n,t)})).filter(e)})),o=_t(r);return Bt(o.length>0,o)},Yi=function(n,t,e,r,o){return function(u,i,c,f){var a=mr.fromTable(u),l=S.from(null==f?void 0:f.section).getOrThunk(Mi),s=t(a,i).map((function(t){var e=function(n,t){return Ui(n,t,!1)}(a,c),r=n(e,t,zn,o(c),l),u=fr(r.grid);return{info:t,grid:$i(r.grid),cursor:r.cursor,lockedColumns:u}}));return s.bind((function(n){var t=Fi(u,n.grid),o=S.from(null==f?void 0:f.sizing).getOrThunk((function(){return xo(u)})),i=S.from(null==f?void 0:f.resize).getOrThunk(xi);return e(u,n.grid,n.info,{sizing:o,resize:i,section:l}),r(u),kn(u,ir),n.lockedColumns.length>0&&Sn(u,ir,n.lockedColumns.join(",")),S.some({cursor:n.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Ji=function(n,t){return Ki(n,t,T).map((function(n){return{cells:n,generators:t.generators,clipboard:t.clipboard}}))},Qi=function(n,t){return Ki(n,t,T)},Xi=function(n,t){return Ki(n,t,(function(n){return!n.isLocked}))},Zi=function(n,t){return $(t,(function(t){return function(n,t){return Gi(n,t).exists((function(n){return!n.isLocked}))}(n,t)}))},nc=function(n,t,e,r){for(var o=or(n).rows,u=!0,i=0;i<o.length;i++)for(var c=0;c<rr(o[0]);c++){var f=o[i],a=tr(f,c),l=e(a.element,t);l&&!u?Ze(f,c,lt(r(),!0,a.isLocked)):l&&(u=!1)}return n},tc=function(n,t,e,r){var o=or(n).rows;if(t>0&&t<o.length){var u=function(n,t){return F(n,(function(n,e){return j(n,(function(n){return t(n.element,e.element)}))?n:n.concat([e])}),[])}(o[t-1].cells,e);W(u,(function(n){for(var u=S.none(),i=t;i<o.length;i++)for(var c=function(t){var c=o[i],f=tr(c,t);e(f.element,n.element)&&(u.isNone()&&(u=S.some(r())),u.each((function(n){Ze(c,t,lt(n,!0,f.isLocked))})))},f=0;f<rr(o[0]);f++)c(f)}))}return n},ec=function(n){var t=function(t){return t(n)},e=h(n),r=function(){return o},o={tag:!0,inner:n,fold:function(t,e){return e(n)},isValue:T,isError:x,map:function(t){return oc.value(t(n))},mapError:r,bind:t,exists:t,forall:t,getOr:e,or:r,getOrThunk:e,orThunk:r,getOrDie:e,each:function(t){t(n)},toOptional:function(){return S.some(n)}};return o},rc=function(n){var t,e=function(){return r},r={tag:!1,inner:n,fold:function(t,e){return t(n)},isValue:x,isError:T,map:e,mapError:function(t){return oc.error(t(n))},bind:e,exists:x,forall:T,getOr:p,or:p,getOrThunk:C,orThunk:C,getOrDie:(t=String(n),function(){throw new Error(t)}),each:g,toOptional:S.none};return r},oc={value:ec,error:rc,fromOption:function(n,t){return n.fold((function(){return rc(t)}),ec)}},uc=function(n,t){return{rowDelta:0,colDelta:rr(n[0])-rr(t[0])}},ic=function(n,t){return{rowDelta:n.length-t.length,colDelta:0}},cc=function(n,t,e,r){var o="colgroup"===t.section?e.col:e.cell;return z(n,(function(n){return lt(o(),!0,r(n))}))},fc=function(n,t,e,r){var o=n[n.length-1];return n.concat(z(t,(function(){var n="colgroup"===o.section?e.colgroup:e.row,t=ur(o,n,p),u=cc(t.cells.length,t,e,(function(n){return cn(r,n.toString())}));return nr(t,u)})))},ac=function(n,t,e,r){return L(n,(function(n){var o=cc(t,n,e,x);return Qe(n,r,o)}))},lc=function(n,t,e){var r=t.colDelta<0?ac:p,o=t.rowDelta<0?fc:p,u=fr(n),i=rr(n[0]),c=j(u,(function(n){return n===i-1})),f=r(n,Math.abs(t.colDelta),e,c?i-1:i),a=fr(f);return o(f,Math.abs(t.rowDelta),e,G(a,T))},sc=function(n,t,e,r){var o=w(r,tr(n[t],e).element),u=n[t];return n.length>1&&rr(u)>1&&(e>0&&o(er(u,e-1))||e<u.cells.length-1&&o(er(u,e+1))||t>0&&o(er(n[t-1],e))||t<n.length-1&&o(er(n[t+1],e)))},mc=function(n,t,e){return I(e,(function(e){return e>=n.column&&e<=rr(t[0])+n.column}))},dc=function(n,t,r,o,u){var i=fr(t),c=function(n,t,e){var r=rr(t[0]),o=or(t).cols.length+n.row,u=z(r-n.column,(function(t){return t+n.column})),i=H(u,(function(n){return $(e,(function(t){return t!==n}))})).getOr(r-1);return{row:o,column:i}}(n,t,i),f=or(r).rows,a=mc(c,f,i),l=function(n,t,e){if(n.row>=t.length||n.column>rr(t[0]))return oc.error("invalid start address out of table bounds, row: "+n.row+", column: "+n.column);var r=t.slice(n.row),o=r[0].cells.slice(n.column),u=rr(e[0]),i=e.length;return oc.value({rowDelta:r.length-i,colDelta:o.length-u})}(c,t,f);return l.map((function(n){var r=e(e({},n),{colDelta:n.colDelta-a.length}),i=lc(t,r,o),l=fr(i),s=mc(c,f,l);return function(n,t,e,r,o,u){for(var i=n.row,c=n.column,f=i+e.length,a=c+rr(e[0])+u.length,l=G(u,T),s=i;s<f;s++)for(var m=0,d=c;d<a;d++)if(l[d])m++;else{sc(t,s,d,o)&&nc(t,er(t[s],d),o,r.cell);var v=d-c-m,g=tr(e[s-i],v),h=g.element,p=r.replace(h);Ze(t[s],d,lt(p,!0,g.isLocked))}return t}(c,i,f,o,u,s)}))},vc=function(n,t,e,r,o){!function(n,t,e,r){t>0&&t<n[0].cells.length&&W(n,(function(n){for(var o=n.cells[t-1],u=0,i=r();n.cells.length>t+u&&e(o.element,n.cells[t+u].element);)Ze(n,t+u,lt(i,!0,n.cells[t+u].isLocked)),u++}))}(t,n,o,r.cell);var u=ic(e,t),i=lc(e,u,r),c=ic(t,i),f=lc(t,c,r);return L(f,(function(t,e){return Qe(t,n,i[e].cells)}))},gc=function(n,t,o,u,i){tc(t,n,i,u.cell);var c=fr(t),f=uc(t,o),a=e(e({},f),{colDelta:f.colDelta-c.length}),l=lc(t,a,u),s=or(l),m=s.cols,d=s.rows,v=fr(l),g=uc(o,t),h=e(e({},g),{colDelta:g.colDelta+v.length}),p=function(n,t,e){return L(n,(function(n){return F(e,(function(e,r){var o=cc(1,n,t,T)[0];return Xe(e,r,o)}),n)}))}(o,u,v),b=lc(p,h,u);return r(r(r(r([],m,!0),d.slice(0,n),!0),b,!0),d.slice(n,d.length),!0)},hc=function(n,t,e,o,u){var i=or(n),c=i.rows,f=i.cols,a=c.slice(0,t),l=c.slice(t),s=function(n,t,e,r){return ur(n,(function(n){return r(n,e)}),t)}(c[e],(function(n,e){return t>0&&t<c.length&&o(er(c[t-1],e),er(c[t],e))?tr(c[t],e):lt(u(n.element,o),!0,n.isLocked)}),o,u);return r(r(r(r([],f,!0),a,!0),[s],!1),l,!0)},pc=function(n,t,e,r,o){return L(n,(function(n){var u=t>0&&t<rr(n)&&r(er(n,t-1),er(n,t)),i=function(n,t,e,r,o,u,i){if("colgroup"!==e&&r)return tr(n,t);var c=tr(n,o);return lt(i(c.element,u),!0,!1)}(n,t,n.section,u,e,r,o);return Xe(n,t,i)}))},bc=function(n,t,e,r){return function(n,t,e,r){return void 0!==er(n[t],e)&&t>0&&r(er(n[t-1],e),er(n[t],e))}(n,t,e,r)||function(n,t,e){return t>0&&e(er(n,t-1),er(n,t))}(n[t],e,r)},wc=function(n,t,e,r){var o=function(n){return function(n){return"row"===n?Qt(t):Jt(t)}(n)?"".concat(n,"group"):n};return n?Si(t)?o(e):null:r&&Si(t)?o("row"===e?"col":"row"):null},yc=function(n,t,e){return lt(e(n.element,t),!0,n.isLocked)},Cc=function(n,t,e,r,o,u,i){return L(n,(function(n,c){return function(n,t){var e=n.cells,r=L(e,t);return st(n.element,r,n.section,n.isNew)}(n,(function(n,f){if(function(n){return j(t,(function(t){return e(n.element,t.element)}))}(n)){var a=i(n,c,f)?o(n,e,r):n;return u(a,c,f).each((function(n){var t,e;t=a.element,e={scope:S.from(n)},nn(e,(function(n,e){n.fold((function(){kn(t,e)}),(function(n){Tn(t.dom,e,n)}))}))})),a}return n}))}))},xc=function(n,t,e){return U(n,(function(r,o){return bc(n,o,t,e)?[]:[tr(r,t)]}))},Tc=function(n,t,e,r,o){var u=or(n).rows,i=U(t,(function(n){return xc(u,n,r)})),c=L(u,(function(n){return Ri(n.cells)})),f=function(n,t){return $(t,p)&&Ri(n)?T:function(n,e,r){return!("th"===dn(n.element)&&t[e])}}(i,c),a=function(n,t){return function(e,r){return S.some(wc(n,e.element,"row",t[r]))}}(e,c);return Cc(n,i,r,o,yc,a,f)},Sc=function(n,t,e,o,u,i,c){var f=or(n),a=f.cols,l=f.rows,s=l[t[0]],m=U(t,(function(n){return function(n,t,e){var r=n[t];return U(r.cells,(function(r,o){return bc(n,t,o,e)?[]:[r]}))}(l,n,u)})),d=L(s.cells,(function(n,t){return Ri(xc(l,t,u))})),v=r([],l,!0);W(t,(function(n){v[n]=c.transformRow(l[n],e)}));var g=r(r([],a,!0),v,!0),h=function(n,t){return $(t,p)&&Ri(n.cells)?T:function(n,e,r){return!("th"===dn(n.element)&&t[r])}}(s,d),b=function(n,t){return function(e,r,o){return S.some(wc(n,e.element,"col",t[o]))}}(o,d);return Cc(g,m,u,i,c.transformCell,b,h)},Rc=function(n,t,e,r){var o=or(n).rows,u=L(t,(function(n){return tr(o[n.row],n.column)}));return Cc(n,u,e,r,yc,S.none,T)},Dc=function(n){if(!f(n))throw new Error("cases must be an array");if(0===n.length)throw new Error("there must be at least one case");var t=[],e={};return W(n,(function(r,o){var u=X(r);if(1!==u.length)throw new Error("one and only one name per case");var i=u[0],c=r[i];if(void 0!==e[i])throw new Error("duplicate key detected:"+i);if("cata"===i)throw new Error("cannot have a case named cata (sorry)");if(!f(c))throw new Error("case arguments must be an array");t.push(i),e[i]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var u=e.length;if(u!==c.length)throw new Error("Wrong number of arguments to case "+i+". Expected "+c.length+" ("+c+"), got "+u);return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==n.length)throw new Error("Wrong number of arguments to fold. Expected "+n.length+", got "+t.length);return t[o].apply(null,e)},match:function(n){var r=X(n);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!$(t,(function(n){return B(r,n)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return n[i].apply(null,e)},log:function(n){console.log(n,{constructors:t,constructor:i,params:e})}}}})),e},Oc=Dc([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),kc=e({},Oc),Ec=function(n,t,e,r,o){var u=n.slice(0),i=function(n,t){return 0===n.length?kc.none():1===n.length?kc.only(0):0===t?kc.left(0,1):t===n.length-1?kc.right(t-1,t):t>0&&t<n.length-1?kc.middle(t-1,t,t+1):kc.none()}(n,t),c=h(L(u,h(0)));return i.fold(c,(function(n){return r.singleColumnWidth(u[n],e)}),(function(n,t){return o.calcLeftEdgeDeltas(u,n,t,e,r.minCellWidth(),r.isRelative)}),(function(n,t,i){return o.calcMiddleDeltas(u,n,t,i,e,r.minCellWidth(),r.isRelative)}),(function(n,t){return o.calcRightEdgeDeltas(u,n,t,e,r.minCellWidth(),r.isRelative)}))},Ac=function(n,t,e){for(var r=0,o=n;o<t;o++)r+=void 0!==e[o]?e[o]:0;return r},Nc=function(n,t){var e=mr.justCells(n);return L(e,(function(n){var e=Ac(n.row,n.row+n.rowspan,t);return{element:n.element,height:e,rowspan:n.rowspan}}))},_c=function(n,t){return mr.hasColumns(n)?function(n,t){var e=mr.justColumns(n);return L(e,(function(n,e){return{element:n.element,width:t[e],colspan:n.colspan}}))}(n,t):function(n,t){var e=mr.justCells(n);return L(e,(function(n){var e=Ac(n.column,n.column+n.colspan,t);return{element:n.element,width:e,colspan:n.colspan}}))}(n,t)},Bc=function(n,t,e){var r=_c(n,t);W(r,(function(n){e.setElementWidth(n.element,n.width)}))},jc=function(n,t,e,r,o){var u=mr.fromTable(n),i=o.getCellDelta(t),c=o.getWidths(u,o),f=e===u.grid.columns-1,a=r.clampTableDelta(c,e,i,o.minCellWidth(),f),l=Ec(c,e,a,o,r),s=L(l,(function(n,t){return n+c[t]}));Bc(u,s,o),r.resizeTable(o.adjustTableWidth,a,f)},zc=function(n,t,e,r){var o=mr.fromTable(n),u=function(n,t,e){return po(n,t,e,uo,(function(n){return n.getOrThunk(ne)}))}(o,n,r),i=L(u,(function(n,r){return e===r?Math.max(t+n,ne()):n})),c=Nc(o,i),f=function(n,t){return L(n.all,(function(n,e){return{element:n.element,height:t[e]}}))}(o,i);W(f,(function(n){Xr(n.element,n.height)})),W(c,(function(n){Xr(n.element,n.height)}));var a=P(i,(function(n,t){return n+t}),0);Xr(n,a)},Lc=function(n){return F(n,(function(n,t){return j(n,(function(n){return n.column===t.column}))?n:n.concat([t])}),[]).sort((function(n,t){return n.column-t.column}))},Wc=xn("col"),Mc=xn("colgroup"),Ic=function(n){return"tr"===dn(n)||Mc(n)},Pc=function(n){return{element:n,colspan:Kt(n,"colspan",1),rowspan:Kt(n,"rowspan",1)}},Fc=function(n){return On(n,"scope").map((function(n){return n.substr(0,3)}))},Hc=function(n,t){void 0===t&&(t=Pc);var e=function(e){if(Ic(e))return Mc((o={element:e}).element)?n.colgroup(o):n.row(o);var o,u=e,i=function(t){return Wc(t.element)?n.col(t):n.cell(t)}(t(u));return r=S.some({item:u,replacement:i}),i},r=S.none();return{getOrInit:function(n,t){return r.fold((function(){return e(n)}),(function(r){return t(n,r.item)?r.replacement:e(n)}))}}},qc=function(n){return function(t){var e=[],r=function(r){var o="td"===n?{scope:null}:{},u=t.replace(r,n,o);return e.push({item:r,sub:u}),u};return{replaceOrInit:function(n,t){if(Ic(n)||Wc(n))return n;var o=n;return function(n,t){return H(e,(function(e){return t(e.item,n)}))}(o,t).fold((function(){return r(o)}),(function(e){return t(n,e.item)?e.sub:r(o)}))}}}},Vc=function(n){return{unmerge:function(t){var e=Fc(t);return e.each((function(n){return Sn(t,"scope",n)})),function(){var r=n.cell({element:t,colspan:1,rowspan:1});return Gt(r,"width"),Gt(t,"width"),e.each((function(n){return Sn(r,"scope",n)})),r}},merge:function(n){return Gt(n[0],"width"),function(){var t=_t(L(n,Fc));if(0===t.length)return S.none();var e=t[0],r=["row","col"];return j(t,(function(n){return n!==e&&B(r,n)}))?S.none():S.from(e)}().fold((function(){return kn(n[0],"scope")}),(function(t){return Sn(n[0],"scope",t+"group")})),h(n[0])}}},Uc=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],$c=Nu(),Gc=function(n){return function(n,t){var e=n.property().name(t);return B(Uc,e)}($c,n)},Kc=function(n){return function(n,t){var e=n.property().name(t);return B(["ol","ul"],e)}($c,n)},Yc=function(n){return function(n,t){return B(["br","img","hr","input"],n.property().name(t))}($c,n)},Jc=function(n){var t,e=xn("br"),r=function(n){return zo(n).bind((function(t){var r=Vn(t).map((function(n){return!!Gc(n)||!!Yc(n)&&"img"!==dn(n)})).getOr(!1);return Pn(t).map((function(o){return!0===r||function(n){return"li"===dn(n)||Rt(n,Kc).isSome()}(o)||e(t)||Gc(o)&&!zn(n,o)?[]:[Nn.fromTag("br")]}))})).getOr([])},o=(t=U(n,(function(n){var t=Un(n);return function(n){return $(n,(function(n){return e(n)||wn(n)&&0===ko(n).trim().length}))}(t)?[]:t.concat(r(n))})),0===t.length?[Nn.fromTag("br")]:t);nt(n[0]),Zn(n[0],o)},Qc=function(n){return su(n,!0)},Xc=function(n){0===oe(n).length&&tt(n)},Zc=function(n,t){return{grid:n,cursor:t}},nf=function(n,t,e){var r,o,u=or(n).rows;return S.from(null===(o=null===(r=u[t])||void 0===r?void 0:r.cells[e])||void 0===o?void 0:o.element).filter(Qc).orThunk((function(){return function(n){return Q(n,(function(n){return Q(n.cells,(function(n){var t=n.element;return Bt(Qc(t),t)}))}))}(u)}))},tf=function(n,t,e){var r=nf(n,t,e);return Zc(n,r)},ef=function(n){return F(n,(function(n,t){return j(n,(function(n){return n.row===t.row}))?n:n.concat([t])}),[]).sort((function(n,t){return n.row-t.row}))},rf=function(n,t){return function(e,r,o,u,i){var c=ef(r),f=L(c,(function(n){return n.row})),a=Sc(e,f,n,t,o,u.replaceOrInit,i);return tf(a,r[0].row,r[0].column)}},of=rf("thead",!0),uf=rf("tbody",!1),cf=rf("tfoot",!1),ff=function(n,t,e){var r=function(n,t){return ae(n,(function(){return t}))}(n,e.section),o=mr.generate(r);return Ui(o,t,!0)},af=function(n,t,e,r){return function(n,t,e,r){var o=mr.generate(t),u=r.getWidths(o,r);Bc(o,u,r)}(0,t,0,r.sizing)},lf=function(n,t,e,r){return function(n,t,e,r,o){var u=mr.generate(t),i=r.getWidths(u,r),c=r.pixelWidth(),f=o.calcRedestributedWidths(i,c,e.pixelDelta,r.isRelative),a=f.newSizes,l=f.delta;Bc(u,a,r),r.adjustTableWidth(l)}(0,t,e,r.sizing,r.resize)},sf=function(n,t){return j(t,(function(n){return 0===n.column&&n.isLocked}))},mf=function(n,t){return j(t,(function(t){return t.column+t.colspan>=n.grid.columns&&t.isLocked}))},df=function(n,t){var e=dr(n),r=Lc(t);return F(r,(function(n,t){return n+e[t.column].map(Ke).getOr(0)}),0)},vf=function(n){return function(t,e){return Qi(t,e).filter((function(e){return!(n?sf:mf)(t,e)})).map((function(n){return{details:n,pixelDelta:df(t,n)}}))}},gf=function(n){return function(t,e){return Ji(t,e).filter((function(e){return!(n?sf:mf)(t,e.cells)}))}},hf=qc("th"),pf=qc("td"),bf=Yi((function(n,t,e,r){var o=t[0].row,u=ef(t),i=P(u,(function(n,t){return{grid:hc(n.grid,o,t.row+n.delta,e,r.getOrInit),delta:n.delta+1}}),{grid:n,delta:0}).grid;return tf(i,o,t[0].column)}),Qi,g,g,Hc),wf=Yi((function(n,t,e,r){var o=ef(t),u=o[o.length-1],i=u.row+u.rowspan,c=P(o,(function(n,t){return hc(n,i,t.row,e,r.getOrInit)}),n);return tf(c,i,t[0].column)}),Qi,g,g,Hc),yf=Yi((function(n,t,e,r){var o=t.details,u=Lc(o),i=u[0].column,c=P(u,(function(n,t){return{grid:pc(n.grid,i,t.column+n.delta,e,r.getOrInit),delta:n.delta+1}}),{grid:n,delta:0}).grid;return tf(c,o[0].row,i)}),vf(!0),lf,g,Hc),Cf=Yi((function(n,t,e,r){var o=t.details,u=o[o.length-1],i=u.column+u.colspan,c=Lc(o),f=P(c,(function(n,t){return pc(n,i,t.column,e,r.getOrInit)}),n);return tf(f,o[0].row,i)}),vf(!1),lf,g,Hc),xf=Yi((function(n,t,e,r){var o=Lc(t.details),u=function(n,t){return U(n,(function(n){var e=n.cells,r=P(t,(function(n,t){return t>=0&&t<n.length?n.slice(0,t).concat(n.slice(t+1)):n}),e);return r.length>0?[st(n.element,r,n.section,n.isNew)]:[]}))}(n,L(o,(function(n){return n.column}))),i=u.length>0?u[0].cells.length-1:0;return tf(u,o[0].row,Math.min(o[0].column,i))}),(function(n,t){return Xi(n,t).map((function(t){return{details:t,pixelDelta:-df(n,t)}}))}),lf,Xc,Hc),Tf=Yi((function(n,t,e,o){var u=ef(t),i=function(n,t,e){var o=or(n),u=o.rows,i=o.cols;return r(r(r([],i,!0),u.slice(0,t),!0),u.slice(e+1),!0)}(n,u[0].row,u[u.length-1].row),c=i.length>0?i.length-1:0;return tf(i,Math.min(t[0].row,c),t[0].column)}),Qi,g,Xc,Hc),Sf=Yi((function(n,t,e,r){var o=Lc(t),u=L(o,(function(n){return n.column})),i=Tc(n,u,!0,e,r.replaceOrInit);return tf(i,t[0].row,t[0].column)}),Xi,g,g,hf),Rf=Yi((function(n,t,e,r){var o=Lc(t),u=L(o,(function(n){return n.column})),i=Tc(n,u,!1,e,r.replaceOrInit);return tf(i,t[0].row,t[0].column)}),Xi,g,g,pf),Df=Yi(of,Xi,g,g,hf),Of=Yi(uf,Xi,g,g,pf),kf=Yi(cf,Xi,g,g,pf),Ef=Yi((function(n,t,e,r){var o=Rc(n,t,e,r.replaceOrInit);return tf(o,t[0].row,t[0].column)}),Xi,g,g,hf),Af=Yi((function(n,t,e,r){var o=Rc(n,t,e,r.replaceOrInit);return tf(o,t[0].row,t[0].column)}),Xi,g,g,pf),Nf=Yi((function(n,t,e,r){var o=t.cells;Jc(o);var u=function(n,t,e,r){var o=or(n).rows;if(0===o.length)return n;for(var u=t.startRow;u<=t.finishRow;u++)for(var i=t.startCol;i<=t.finishCol;i++){var c=o[u],f=tr(c,i).isLocked;Ze(c,i,lt(r(),!1,f))}return n}(n,t.bounds,0,r.merge(o));return Zc(u,S.from(o[0]))}),(function(n,t){return function(n,t){return t.mergable}(0,t).filter((function(t){return Zi(n,t.cells)}))}),af,g,Vc),_f=Yi((function(n,t,e,r){var o=P(t,(function(n,t){return nc(n,t,e,r.unmerge(t))}),n);return Zc(o,S.from(t[0]))}),(function(n,t){return function(n,t){return t.unmergable}(0,t).filter((function(t){return Zi(n,t)}))}),af,g,Vc),Bf=Yi((function(n,t,e,r){var o=function(n,t){var e=mr.fromTable(n);return Ui(e,t,!0)}(t.clipboard,t.generators),u=function(n,t){return{row:n,column:t}}(t.row,t.column);return dc(u,n,o,t.generators,e).fold((function(){return Zc(n,S.some(t.element))}),(function(n){return tf(n,t.row,t.column)}))}),(function(n,t){return re(t.element).bind((function(r){return Gi(n,r).map((function(n){return e(e({},n),{generators:t.generators,clipboard:t.clipboard})}))}))}),af,g,Hc),jf=Yi((function(n,t,e,r){var o=or(n).rows,u=t.cells[0].column,i=o[t.cells[0].row],c=ff(t.clipboard,t.generators,i),f=vc(u,n,c,t.generators,e);return tf(f,t.cells[0].row,t.cells[0].column)}),gf(!0),g,g,Hc),zf=Yi((function(n,t,e,r){var o=or(n).rows,u=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,i=o[t.cells[0].row],c=ff(t.clipboard,t.generators,i),f=vc(u,n,c,t.generators,e);return tf(f,t.cells[0].row,t.cells[0].column)}),gf(!1),g,g,Hc),Lf=Yi((function(n,t,e,r){var o=or(n).rows,u=t.cells[0].row,i=o[u],c=ff(t.clipboard,t.generators,i),f=gc(u,n,c,t.generators,e);return tf(f,t.cells[0].row,t.cells[0].column)}),Ji,g,g,Hc),Wf=Yi((function(n,t,e,r){var o=or(n).rows,u=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,i=o[t.cells[0].row],c=ff(t.clipboard,t.generators,i),f=gc(u,n,c,t.generators,e);return tf(f,t.cells[0].row,t.cells[0].column)}),Ji,g,g,Hc),Mf=function(n,t){var e=mr.fromTable(n);return Qi(e,t).bind((function(n){var t=n[n.length-1],r=n[0].column,o=t.column+t.colspan,u=V(L(e.all,(function(n){return I(n.cells,(function(n){return n.column>=r&&n.column<o}))})));return ki(u)})).getOr("")},If=function(n,t){var e=mr.fromTable(n);return Qi(e,t).bind(ki).getOr("")},Pf=function(n,t){var e=mr.fromTable(n);return Qi(e,t).bind((function(n){var t=n[n.length-1],r=n[0].row,o=t.row+t.rowspan;return function(n){var t=L(n,(function(n){return Oi(n).type})),e=B(t,"header"),r=B(t,"footer");if(e||r){var o=B(t,"body");return!e||o||r?e||o||!r?S.none():S.some("footer"):S.some("header")}return S.some("body")}(e.all.slice(r,o))})).getOr("")},Ff=function(n,t){return n.dispatch("NewRow",{node:t})},Hf=function(n,t){return n.dispatch("NewCell",{node:t})},qf=function(n,t,r){n.dispatch("TableModified",e(e({},r),{table:t}))},Vf={structure:!1,style:!0},Uf={structure:!0,style:!1},$f={structure:!0,style:!0},Gf=function(n,t){return tu(n)?So(t):eu(n)?To(t):xo(t)},Kf=function(n,t,e){var r=function(n){return"table"===dn(du(n))},o=Yo(n),u=Zo(n)?g:gi,i=function(t){switch(Jo(n)){case"section":return zi();case"sectionCells":return Li();case"cells":return Wi();default:return ji(t,"section")}},c=function(t,r){return r.cursor.fold((function(){var r=oe(t);return Y(r).filter(bt).map((function(r){e.clearSelectedCells(t.dom);var o=n.dom.createRng();return o.selectNode(r.dom),n.selection.setRng(o),Sn(r,"data-mce-selected","1"),o}))}),(function(r){var o=di(vi,r),u=n.dom.createRng();return u.setStart(o.element.dom,o.offset),u.setEnd(o.element.dom,o.offset),n.selection.setRng(u),e.clearSelectedCells(t.dom),S.some(u)}))},f=function(e,r,u,f){return function(a,l,s){void 0===s&&(s=!1),gu(a);var m=Nn.fromDom(n.getDoc()),d=Vo(u,m,o),v={sizing:Gf(n,a),resize:Zo(n)?Ci():xi(),section:i(a)};return r(a)?e(a,l,d,v).bind((function(e){t.refresh(a.dom),W(e.newRows,(function(t){Ff(n,t.dom)})),W(e.newCells,(function(t){Hf(n,t.dom)}));var r=c(a,e);return bt(a)&&(gu(a),s||qf(n,a.dom,f)),r.map((function(n){return{rng:n,effect:f}}))})):S.none()}},a=f(Tf,(function(t){return!r(n)||Ti(t).rows>1}),g,Uf),l=f(xf,(function(t){return!r(n)||Ti(t).columns>1}),g,Uf);return{deleteRow:a,deleteColumn:l,insertRowsBefore:f(bf,T,g,Uf),insertRowsAfter:f(wf,T,g,Uf),insertColumnsBefore:f(yf,T,u,Uf),insertColumnsAfter:f(Cf,T,u,Uf),mergeCells:f(Nf,T,g,Uf),unmergeCells:f(_f,T,g,Uf),pasteColsBefore:f(jf,T,g,Uf),pasteColsAfter:f(zf,T,g,Uf),pasteRowsBefore:f(Lf,T,g,Uf),pasteRowsAfter:f(Wf,T,g,Uf),pasteCells:f(Bf,T,g,$f),makeCellsHeader:f(Ef,T,g,Uf),unmakeCellsHeader:f(Af,T,g,Uf),makeColumnsHeader:f(Sf,T,g,Uf),unmakeColumnsHeader:f(Rf,T,g,Uf),makeRowsHeader:f(Df,T,g,Uf),makeRowsBody:f(Of,T,g,Uf),makeRowsFooter:f(kf,T,g,Uf),getTableRowType:Pf,getTableCellType:If,getTableColType:Mf}},Yf=function(n,t,e){var r=Kt(n,t,1);1===e||r<=1?kn(n,t):Sn(n,t,Math.min(e,r))},Jf=function(n,t){return function(e){var r=e.column+e.colspan-1,o=e.column;return r>=n&&o<t}},Qf=function(n,t){var e=mr.fromTable(n);return Xi(e,t).map((function(n){var t=n[n.length-1],o=n[0].column,u=t.column+t.colspan,i=function(n,t,e){if(mr.hasColumns(n)){var r=I(mr.justColumns(n),Jf(t,e)),o=L(r,(function(n){var r=ut(n.element);return Yf(r,"span",e-t),r})),u=Nn.fromTag("colgroup");return Zn(u,o),[u]}return[]}(e,o,u),c=function(n,t,e){return L(n.all,(function(n){var r=I(n.cells,Jf(t,e)),o=L(r,(function(n){var r=ut(n.element);return Yf(r,"colspan",e-t),r})),u=Nn.fromTag("tr");return Zn(u,o),u}))}(e,o,u);return r(r([],i,!0),c,!0)}))},Xf=function(n,t,r){var o=mr.fromTable(n);return Qi(o,t).bind((function(n){var t=Ui(o,r,!1),u=or(t).rows.slice(n[0].row,n[n.length-1].row+n[n.length-1].rowspan),i=U(u,(function(n){var t=I(n.cells,(function(n){return!n.isLocked}));return t.length>0?[e(e({},n),{cells:t})]:[]})),c=$i(i);return Bt(c.length>0,c)})).map((function(n){return function(n){return L(n,(function(n){var t=ot(n.element);return W(n.cells,(function(n){var e=ut(n.element);Ii(e,"colspan",n.colspan,1),Ii(e,"rowspan",n.rowspan,1),Jn(t,e)})),t}))}(n)}))},Zf=Dc([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),na=function(n,t,e){var r=e.substring(0,e.length-n.length),o=parseFloat(r);return r===o.toString()?t(o):Zf.invalid(e)},ta=e(e({},Zf),{from:function(n){return Wt(n,"%")?na("%",Zf.percent,n):Wt(n,"px")?na("px",Zf.pixels,n):Zf.invalid(n)}}),ea=function(n,t,e){return n.fold((function(){return t}),(function(n){return function(n,t,e){var r=e/t;return L(n,(function(n){return ta.from(n).fold((function(){return n}),(function(n){return n*r+"px"}),(function(n){return n/100*e+"px"}))}))}(t,e,n)}),(function(n){return function(n,t){return L(n,(function(n){return ta.from(n).fold((function(){return n}),(function(n){return n/t*100+"%"}),(function(n){return n+"%"}))}))}(t,e)}))},ra=function(n,t,e){var r=ta.from(e),o=$(n,(function(n){return"0px"===n}))?function(n,t){var e=n.fold((function(){return h("")}),(function(n){return h(n/t+"px")}),(function(){return h(100/t+"%")}));return z(t,e)}(r,n.length):ea(r,n,t);return ia(o)},oa=function(n,t){return 0===n.length?t:P(n,(function(n,t){return ta.from(t).fold(h(0),p,p)+n}),0)},ua=function(n,t){return ta.from(n).fold(h(n),(function(n){return n+t+"px"}),(function(n){return n+t+"%"}))},ia=function(n){if(0===n.length)return n;var t=P(n,(function(n,t){var e=ta.from(t).fold((function(){return{value:t,remainder:0}}),(function(n){return function(n,t){var e=Math.floor(n);return{value:e+t,remainder:n-e}}(n,"px")}),(function(n){return{value:n+"%",remainder:0}}));return{output:[e.value].concat(n.output),remainder:n.remainder+e.remainder}}),{output:[],remainder:0}),e=t.output;return e.slice(0,e.length-1).concat([ua(e[e.length-1],Math.round(t.remainder))])},ca=ta.from,fa=function(n){return ca(n).fold(h("px"),h("px"),h("%"))},aa=function(n,t,e){var r=mr.fromTable(n),o=r.all,u=mr.justCells(r),i=mr.justColumns(r);t.each((function(t){var e=fa(t),o=Ge(n),c=function(n,t){return vo(n,t,lo,go)}(r,n),f=ra(c,o,t);mr.hasColumns(r)?function(n,t,e){W(t,(function(t,r){var o=oa([n[r]],Zt());Ht(t.element,"width",o+e)}))}(f,i,e):function(n,t,e){W(t,(function(t){var r=n.slice(t.column,t.colspan+t.column),o=oa(r,Zt());Ht(t.element,"width",o+e)}))}(f,u,e),Ht(n,"width",t)})),e.each((function(t){var e=fa(t),i=yr(n),c=function(n,t,e){return po(n,t,e,so,go)}(r,n,Mr);!function(n,t,e,r){W(e,(function(t){var e=n.slice(t.row,t.rowspan+t.row),o=oa(e,ne());Ht(t.element,"height",o+r)})),W(t,(function(t,e){Ht(t.element,"height",n[e])}))}(ra(c,i,t),o,u,e),Ht(n,"height",t)}))},la=function(n){return eo(n).exists((function(n){return $r.test(n)}))},sa=function(n){return eo(n).exists((function(n){return Gr.test(n)}))},ma=function(n){return eo(n).isNone()},da=function(n){kn(n,"width")},va=function(n){var t=co(n);aa(n,S.some(t),S.none()),da(n)},ga=function(n){var t=function(n){return Ge(n)+"px"}(n);aa(n,S.some(t),S.none()),da(n)},ha=function(n){Gt(n,"width");var t=ue(n),e=t.length>0?t:oe(n);W(e,(function(n){Gt(n,"width"),da(n)})),da(n)},pa={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},ba=function(n){var t=Nn.fromTag("colgroup");return z(n,(function(){return Jn(t,Nn.fromTag("col"))})),t},wa=function(n,t,e,r){return z(n,(function(n){return function(n,t,e,r){for(var o=Nn.fromTag("tr"),u=0;u<n;u++){var i=r<t||u<e?Nn.fromTag("th"):Nn.fromTag("td");u<e&&Sn(i,"scope","row"),r<t&&Sn(i,"scope","col"),Jn(i,Nn.fromTag("br")),Jn(o,i)}return o}(t,e,r,n)}))},ya=function(n,t){n.selection.select(t.dom,!0),n.selection.collapse(!0)},Ca=function(n,t,e,r,o){var u=fu(n),c={styles:u,attributes:cu(n),colGroups:au(n)};return n.undoManager.ignore((function(){var u=function(n,t,e,r,o,u){void 0===u&&(u=pa);var i=Nn.fromTag("table"),c="cells"!==o;qt(i,u.styles),Rn(i,u.attributes),u.colGroups&&Jn(i,ba(t));var f=Math.min(n,e);if(c&&e>0){var a=Nn.fromTag("thead");Jn(i,a);var l=wa(e,t,"sectionCells"===o?f:0,r);Zn(a,l)}var s=Nn.fromTag("tbody");Jn(i,s);var m=wa(c?n-f:n,t,c?0:e,r);return Zn(s,m),i}(e,t,o,r,Jo(n),c);Sn(u,"data-mce-id","__mce");var i=function(n){var t=Nn.fromTag("div"),e=Nn.fromDom(n.dom.cloneNode(!0));return Jn(t,e),function(n){return n.dom.innerHTML}(t)}(u);n.insertContent(i),n.addVisual()})),Et(du(n),'table[data-mce-id="__mce"]').map((function(t){return eu(n)?ga(t):ru(n)?ha(t):(tu(n)||function(n){return i(n)&&-1!==n.indexOf("%")}(u.width))&&va(t),gu(t),kn(t,"data-mce-id"),function(n,t){W(Tt(t,"tr"),(function(t){Ff(n,t.dom),W(Tt(t,"th,td"),(function(t){Hf(n,t.dom)}))}))}(n,t),function(n,t){Et(t,"td,th").each(w(ya,n))}(n,t),t.dom})).getOrNull()},xa=tinymce.util.Tools.resolve("tinymce.FakeClipboard"),Ta="x-tinymce/dom-table-",Sa=Ta+"rows",Ra=Ta+"columns",Da=function(n){var t=xa.FakeClipboardItem(n);xa.write([t])},Oa=function(n){var t,e=null!==(t=xa.read())&&void 0!==t?t:[];return Q(e,(function(t){return S.from(t.getType(n))}))},ka=function(n){Oa(n).isSome()&&xa.clear()},Ea=function(n){n.fold(Na,(function(n){var t;return Da(((t={})[Sa]=n,t))}))},Aa=function(){return Oa(Sa)},Na=function(){return ka(Sa)},_a=function(n){n.fold(ja,(function(n){var t;return Da(((t={})[Ra]=n,t))}))},Ba=function(){return Oa(Ra)},ja=function(){return ka(Ra)},za=function(n){return ui(hu(n),vu(n)).filter(wu)},La=function(n,t){var e=vu(n),r=function(n){return ie(n,e)},o=function(t){return function(n){return ii(hu(n),vu(n)).filter(wu)}(n).bind((function(n){return r(n).map((function(e){return t(e,n)}))}))},u=function(t){n.focus()},f=function(t,e){return void 0===e&&(e=!1),o((function(r,o){var i=ri(ci(n),r,o);t(r,i,e).each(u)}))},a=function(){return o((function(t,e){var r=ri(ci(n),t,e),o=Vo(g,Nn.fromDom(n.getDoc()),S.none());return Xf(t,r,o)}))},l=function(){return o((function(t,e){var r=ri(ci(n),t,e);return Qf(t,r)}))},s=function(t,e){return e().each((function(e){var r=L(e,(function(n){return ut(n)}));o((function(e,o){var i=Uo(Nn.fromDom(n.getDoc())),c=function(n,t,e,r){return{selection:Uu(n),clipboard:e,generators:r}}(ci(n),0,r,i);t(e,c).each(u)}))}))},m=function(n){return function(t,e){return function(n,t){return cn(n,t)?S.from(n[t]):S.none()}(e,"type").each((function(t){f(n(t),e.no_events)}))}};nn({mceTableSplitCells:function(){return f(t.unmergeCells)},mceTableMergeCells:function(){return f(t.mergeCells)},mceTableInsertRowBefore:function(){return f(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return f(t.insertRowsAfter)},mceTableInsertColBefore:function(){return f(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return f(t.insertColumnsAfter)},mceTableDeleteCol:function(){return f(t.deleteColumn)},mceTableDeleteRow:function(){return f(t.deleteRow)},mceTableCutCol:function(){return l().each((function(n){_a(n),f(t.deleteColumn)}))},mceTableCutRow:function(){return a().each((function(n){Ea(n),f(t.deleteRow)}))},mceTableCopyCol:function(){return l().each((function(n){return _a(n)}))},mceTableCopyRow:function(){return a().each((function(n){return Ea(n)}))},mceTablePasteColBefore:function(){return s(t.pasteColsBefore,Ba)},mceTablePasteColAfter:function(){return s(t.pasteColsAfter,Ba)},mceTablePasteRowBefore:function(){return s(t.pasteRowsBefore,Aa)},mceTablePasteRowAfter:function(){return s(t.pasteRowsAfter,Aa)},mceTableDelete:function(){return za(n).each((function(t){ie(t,e).filter(y(e)).each((function(t){var e=Nn.fromText("");if(Kn(t,e),tt(t),n.dom.isEmpty(n.getBody()))n.setContent(""),n.selection.setCursorLocation();else{var r=n.dom.createRng();r.setStart(e.dom,0),r.setEnd(e.dom,0),n.selection.setRng(r),n.nodeChanged()}}))}))},mceTableCellToggleClass:function(t,e){o((function(t){var r=ci(n),o=$(r,(function(t){return n.formatter.match("tablecellclass",{value:e},t.dom)})),u=o?n.formatter.remove:n.formatter.apply;W(r,(function(n){return u("tablecellclass",{value:e},n.dom)})),qf(n,t.dom,Vf)}))},mceTableToggleClass:function(t,e){o((function(t){n.formatter.toggle("tableclass",{value:e},t.dom),qf(n,t.dom,Vf)}))},mceTableToggleCaption:function(){za(n).each((function(t){ie(t,e).each((function(e){kt(e,"caption").fold((function(){var t=Nn.fromTag("caption");Jn(t,Nn.fromText("Caption")),function(n,t,e){$n(n,e).fold((function(){Jn(n,t)}),(function(n){Gn(n,t)}))}(e,t,0),n.selection.setCursorLocation(t.dom,0)}),(function(r){xn("caption")(t)&&jn("td",e).each((function(t){return n.selection.setCursorLocation(t.dom,0)})),tt(r)})),qf(n,e.dom,Uf)}))}))},mceTableSizingMode:function(t,r){return function(t){return za(n).each((function(r){ru(n)||eu(n)||tu(n)||ie(r,e).each((function(e){"relative"!==t||la(e)?"fixed"!==t||sa(e)?"responsive"!==t||ma(e)||ha(e):ga(e):va(e),gu(e),qf(n,e.dom,Uf)}))}))}(r)},mceTableCellType:m((function(n){return"th"===n?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:m((function(n){return"th"===n?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:m((function(n){switch(n){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,e){return n.addCommand(e,t)})),n.addCommand("mceInsertTable",(function(t,e){!function(n,t,e,r){void 0===r&&(r={});var o=function(n){return v(n)&&n>0};if(o(t)&&o(e)){var u=r.headerRows||0,i=r.headerColumns||0;return Ca(n,e,t,i,u)}console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table.")}(n,e.rows,e.columns,e.options)})),n.addCommand("mceTableApplyCellStyle",(function(t,e){var o=function(n){return"tablecell"+n.toLowerCase().replace("-","")};if(c(e)){var u=I(ci(n),wu);if(0!==u.length){var f=rn(e,(function(t,e){return n.formatter.has(o(e))&&i(t)}));(function(n){for(var t in n)if(Z.call(n,t))return!1;return!0})(f)||(nn(f,(function(t,e){var r=o(e);W(u,(function(e){""===t?n.formatter.remove(r,{value:null},e.dom,!0):n.formatter.apply(r,{value:t},e.dom)}))})),r(u[0]).each((function(t){return qf(n,t.dom,Vf)})))}}}))},Wa=Dc([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Ma={before:Wa.before,on:Wa.on,after:Wa.after,cata:function(n,t,e,r){return n.fold(t,e,r)},getStart:function(n){return n.fold(p,p,p)}},Ia=function(n,t){return{selection:n,kill:t}},Pa=function(n,t){var e=n.document.createRange();return e.selectNode(t.dom),e},Fa=function(n,t){var e=n.document.createRange();return Ha(e,t),e},Ha=function(n,t){return n.selectNodeContents(t.dom)},qa=function(n,t,e){var r,o=n.document.createRange();return r=o,t.fold((function(n){r.setStartBefore(n.dom)}),(function(n,t){r.setStart(n.dom,t)}),(function(n){r.setStartAfter(n.dom)})),function(n,t){t.fold((function(t){n.setEndBefore(t.dom)}),(function(t,e){n.setEnd(t.dom,e)}),(function(t){n.setEndAfter(t.dom)}))}(o,e),o},Va=function(n,t,e,r,o){var u=n.document.createRange();return u.setStart(t.dom,e),u.setEnd(r.dom,o),u},Ua=function(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},$a=Dc([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ga=function(n,t,e){return t(Nn.fromDom(e.startContainer),e.startOffset,Nn.fromDom(e.endContainer),e.endOffset)},Ka=function(n,t){var e=function(n,t){return t.match({domRange:function(n){return{ltr:h(n),rtl:S.none}},relative:function(t,e){return{ltr:me((function(){return qa(n,t,e)})),rtl:me((function(){return S.some(qa(n,e,t))}))}},exact:function(t,e,r,o){return{ltr:me((function(){return Va(n,t,e,r,o)})),rtl:me((function(){return S.some(Va(n,r,o,t,e))}))}}})}(n,t);return function(n,t){var e=t.ltr();return e.collapsed?t.rtl().filter((function(n){return!1===n.collapsed})).map((function(n){return $a.rtl(Nn.fromDom(n.endContainer),n.endOffset,Nn.fromDom(n.startContainer),n.startOffset)})).getOrThunk((function(){return Ga(0,$a.ltr,e)})):Ga(0,$a.ltr,e)}(0,e)},Ya=function(n,t){return Ka(n,t).match({ltr:function(t,e,r,o){var u=n.document.createRange();return u.setStart(t.dom,e),u.setEnd(r.dom,o),u},rtl:function(t,e,r,o){var u=n.document.createRange();return u.setStart(r.dom,o),u.setEnd(t.dom,e),u}})};$a.ltr,$a.rtl;var Ja=function(n,t,e,r){return{start:n,soffset:t,finish:e,foffset:r}},Qa=function(n,t,e,r){return{start:Ma.on(n,t),finish:Ma.on(e,r)}},Xa=function(n,t){var e=Ya(n,t);return Ja(Nn.fromDom(e.startContainer),e.startOffset,Nn.fromDom(e.endContainer),e.endOffset)},Za=Qa,nl=function(n,t,e,r,o){return zn(e,r)?S.none():Iu(e,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(o(n,r,t.start,t.finish),S.some(Ia(S.some(Za(e,0,e,No(e))),!0))):S.none()}))},tl=function(n,t){return{item:n,mode:t}},el=function(n,t,e,r){return void 0===r&&(r=rl),n.property().parent(t).map((function(n){return tl(n,r)}))},rl=function(n,t,e,r){return void 0===r&&(r=ol),e.sibling(n,t).map((function(n){return tl(n,r)}))},ol=function(n,t,e,r){void 0===r&&(r=ol);var o=n.property().children(t);return e.first(o).map((function(n){return tl(n,r)}))},ul=[{current:el,next:rl,fallback:S.none()},{current:rl,next:ol,fallback:S.some(el)},{current:ol,next:ol,fallback:S.some(rl)}],il=function(n,t,e,r,o){return void 0===o&&(o=ul),H(o,(function(n){return n.current===e})).bind((function(e){return e.current(n,t,r,e.next).orThunk((function(){return e.fallback.bind((function(e){return il(n,t,e,r)}))}))}))},cl=function(){return{sibling:function(n,t){return n.query().prevSibling(t)},first:function(n){return n.length>0?S.some(n[n.length-1]):S.none()}}},fl=function(){return{sibling:function(n,t){return n.query().nextSibling(t)},first:function(n){return n.length>0?S.some(n[0]):S.none()}}},al=function(n,t,e,r,o,u){return il(n,t,r,o).bind((function(t){return u(t.item)?S.none():e(t.item)?S.some(t.item):al(n,t.item,e,t.mode,o,u)}))},ll=function(n){return function(t){return 0===n.property().children(t).length}},sl=function(n,t,e,r){return al(n,t,e,rl,cl(),r)},ml=function(n,t,e,r){return al(n,t,e,rl,fl(),r)},dl=Nu(),vl=function(n,t){return function(n,t,e){return sl(n,t,ll(n),e)}(dl,n,t)},gl=function(n,t){return function(n,t,e){return ml(n,t,ll(n),e)}(dl,n,t)},hl=Dc([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),pl=function(n){return At(n,"tr")},bl=e(e({},hl),{verify:function(n,t,e,r,o,u,i){return At(r,"td,th",i).bind((function(e){return At(t,"td,th",i).map((function(t){return zn(e,t)?zn(r,e)&&No(e)===o?u(t):hl.none("in same cell"):Wu(pl,[e,t]).fold((function(){return function(n,t,e){var r=n.getRect(t),o=n.getRect(e);return o.right>r.left&&o.left<r.right}(n,t,e)?hl.success():u(t)}),(function(n){return u(t)}))}))})).getOr(hl.none("default"))},cata:function(n,t,e,r,o){return n.fold(t,e,r,o)}}),wl=function(n,t){return q(n,w(zn,t))},yl=xn("br"),Cl=function(n,t,e){return t(n,e).bind((function(n){return wn(n)&&0===ko(n).trim().length?Cl(n,t,e):S.some(n)}))},xl=function(n,t,e,r){return function(n,t){return $n(n,t).filter(yl).orThunk((function(){return $n(n,t-1).filter(yl)}))}(t,e).bind((function(t){return r.traverse(t).fold((function(){return Cl(t,r.gather,n).map(r.relative)}),(function(n){return function(n){return Pn(n).bind((function(t){var e=Un(t);return wl(e,n).map((function(r){return function(n,t,e,r){return{parent:n,children:t,element:e,index:r}}(t,e,n,r)}))}))}(n).map((function(n){return Ma.on(n.parent,n.index)}))}))}))},Tl=function(n,t,e,r){var o=yl(t)?function(n,t,e){return e.traverse(t).orThunk((function(){return Cl(t,e.gather,n)})).map(e.relative)}(n,t,r):xl(n,t,e,r);return o.map((function(n){return{start:n,finish:n}}))},Sl=function(n,t){return{left:n.left,top:n.top+t,right:n.right,bottom:n.bottom+t}},Rl=function(n,t){return{left:n.left,top:n.top-t,right:n.right,bottom:n.bottom-t}},Dl=function(n,t,e){return{left:n.left+t,top:n.top+e,right:n.right+t,bottom:n.bottom+e}},Ol=function(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}},kl=function(n,t){return S.some(n.getRect(t))},El=function(n,t,e){return bn(t)?kl(n,t).map(Ol):wn(t)?function(n,t,e){return e>=0&&e<No(t)?n.getRangedRect(t,e,t,e+1):e>0?n.getRangedRect(t,e-1,t,e):S.none()}(n,t,e).map(Ol):S.none()},Al=function(n,t){return bn(t)?kl(n,t).map(Ol):wn(t)?n.getRangedRect(t,0,t,No(t)).map(Ol):S.none()},Nl=Dc([{none:[]},{retry:["caret"]}]),_l=function(n,t,e){return Dt(t,Gc).fold(x,(function(t){return Al(n,t).exists((function(n){return function(n,t){return n.left<t.left||Math.abs(t.right-n.left)<1||n.left>t.right}(e,n)}))}))},Bl={point:function(n){return n.bottom},adjuster:function(n,t,e,r,o){var u=Sl(o,5);return Math.abs(e.bottom-r.bottom)<1||e.top>o.bottom?Nl.retry(u):e.top===o.bottom?Nl.retry(Sl(o,1)):_l(n,t,o)?Nl.retry(Dl(u,5,0)):Nl.none()},move:Sl,gather:gl},jl=function(n,t,e,r,o){return 0===o?S.some(r):function(n,t,e){return n.elementFromPoint(t,e).filter((function(n){return"table"===dn(n)})).isSome()}(n,r.left,t.point(r))?function(n,t,e,r,o){return jl(n,t,e,t.move(r,5),o)}(n,t,e,r,o-1):n.situsFromPoint(r.left,t.point(r)).bind((function(u){return u.start.fold(S.none,(function(u){return Al(n,u).bind((function(i){return t.adjuster(n,u,i,e,r).fold(S.none,(function(r){return jl(n,t,e,r,o-1)}))})).orThunk((function(){return S.some(r)}))}),S.none)}))},zl=function(n,t,e){var r=n.move(e,5),o=jl(t,n,e,r,100).getOr(r);return function(n,t,e){return n.point(t)>e.getInnerHeight()?S.some(n.point(t)-e.getInnerHeight()):n.point(t)<0?S.some(-n.point(t)):S.none()}(n,o,t).fold((function(){return t.situsFromPoint(o.left,n.point(o))}),(function(e){return t.scrollBy(0,e),t.situsFromPoint(o.left,n.point(o)-e)}))},Ll={tryUp:w(zl,{point:function(n){return n.top},adjuster:function(n,t,e,r,o){var u=Rl(o,5);return Math.abs(e.top-r.top)<1||e.bottom<o.top?Nl.retry(u):e.bottom===o.top?Nl.retry(Rl(o,1)):_l(n,t,o)?Nl.retry(Dl(u,5,0)):Nl.none()},move:Rl,gather:vl}),tryDown:w(zl,Bl),getJumpSize:h(5)},Wl=function(n,t,e){return n.getSelection().bind((function(r){return Tl(t,r.finish,r.foffset,e).fold((function(){return S.some(ai(r.finish,r.foffset))}),(function(o){var u=n.fromSitus(o);return function(n){return bl.cata(n,(function(n){return S.none()}),(function(){return S.none()}),(function(n){return S.some(ai(n,0))}),(function(n){return S.some(ai(n,No(n)))}))}(bl.verify(n,r.finish,r.foffset,u.finish,u.foffset,e.failure,t))}))}))},Ml=function(n,t,e,r,o,u){return 0===u?S.none():Fl(n,t,e,r,o).bind((function(i){var c=n.fromSitus(i),f=bl.verify(n,e,r,c.finish,c.foffset,o.failure,t);return bl.cata(f,(function(){return S.none()}),(function(){return S.some(i)}),(function(i){return zn(e,i)&&0===r?Il(n,e,r,Rl,o):Ml(n,t,i,0,o,u-1)}),(function(i){return zn(e,i)&&r===No(i)?Il(n,e,r,Sl,o):Ml(n,t,i,No(i),o,u-1)}))}))},Il=function(n,t,e,r,o){return El(n,t,e).bind((function(t){return Pl(n,o,r(t,Ll.getJumpSize()))}))},Pl=function(n,t,e){var r=Fe().browser;return r.isChromium()||r.isSafari()||r.isFirefox()?t.retry(n,e):S.none()},Fl=function(n,t,e,r,o){return El(n,e,r).bind((function(t){return Pl(n,o,t)}))},Hl=function(n,t){return Rt(n,(function(n){return Pn(n).exists((function(n){return zn(n,t)}))}),e).isSome();var e},ql=function(n,t,e,r,o){return At(r,"td,th",t).bind((function(r){return At(r,"table",t).bind((function(u){return Hl(o,u)?function(n,t,e){return Wl(n,t,e).bind((function(r){return Ml(n,t,r.element,r.offset,e,20).map(n.fromSitus)}))}(n,t,e).bind((function(n){return At(n.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:n}}))})):S.none()}))}))},Vl=function(n,t,e,r,o,u){return u(r,t).orThunk((function(){return ql(n,t,e,r,o).map((function(n){var t=n.range;return Ia(S.some(Za(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Ul=function(n,t){return At(n,"tr",t).bind((function(n){return At(n,"table",t).bind((function(e){var r=Tt(e,"tr");return zn(n,r[0])?function(n,t,e){return sl(dl,n,t,e)}(e,(function(n){return zo(n).isSome()}),t).map((function(n){var t=No(n);return Ia(S.some(Za(n,t,n,t)),!0)})):S.none()}))}))},$l=function(n,t){return At(n,"tr",t).bind((function(n){return At(n,"table",t).bind((function(e){var r=Tt(e,"tr");return zn(n,r[r.length-1])?function(n,t,e){return ml(dl,n,t,e)}(e,(function(n){return jo(n).isSome()}),t).map((function(n){return Ia(S.some(Za(n,0,n,0)),!0)})):S.none()}))}))},Gl=function(n,t,e,r,o,u,i){return ql(n,e,r,o,u).bind((function(n){return nl(t,e,n.start,n.finish,i)}))},Kl=function(n){var t=n;return{get:function(){return t},set:function(n){t=n}}},Yl=function(){var n=function(n){var t=Kl(S.none()),e=function(){return t.get().each(n)};return{clear:function(){e(),t.set(S.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(n){e(),t.set(S.some(n))}}}(g);return e(e({},n),{on:function(t){return n.get().each(t)}})},Jl=function(n,t){return At(n,"td,th",t)},Ql=function(n){return Fn(n).exists(su)},Xl={traverse:Vn,gather:gl,relative:Ma.before,retry:Ll.tryDown,failure:bl.failedDown},Zl={traverse:qn,gather:vl,relative:Ma.before,retry:Ll.tryUp,failure:bl.failedUp},ns=function(n){return function(t){return t===n}},ts=ns(38),es=ns(40),rs=function(n){return n>=37&&n<=40},os={isBackward:ns(37),isForward:ns(39)},us={isBackward:ns(39),isForward:ns(37)},is=Dc([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),cs={domRange:is.domRange,relative:is.relative,exact:is.exact,exactFromRange:function(n){return is.exact(n.start,n.soffset,n.finish,n.foffset)},getWin:function(n){var t,e=function(n){return n.match({domRange:function(n){return Nn.fromDom(n.startContainer)},relative:function(n,t){return Ma.getStart(n)},exact:function(n,t,e,r){return n}})}(n);return t=e,Nn.fromDom(In(t).dom.defaultView)},range:Ja},fs=function(n,t,e){var r,o;return S.from(null===(o=(r=n.dom).caretPositionFromPoint)||void 0===o?void 0:o.call(r,t,e)).bind((function(t){if(null===t.offsetNode)return S.none();var e=n.dom.createRange();return e.setStart(t.offsetNode,t.offset),e.collapse(),S.some(e)}))},as=function(n,t,e){var r,o;return S.from(null===(o=(r=n.dom).caretRangeFromPoint)||void 0===o?void 0:o.call(r,t,e))},ls=document.caretPositionFromPoint?fs:document.caretRangeFromPoint?as:S.none,ss=function(n,t){var e=dn(n);return"input"===e?Ma.after(n):B(["br","img"],e)?0===t?Ma.before(n):Ma.after(n):Ma.on(n,t)},ms=function(n,t,e,r){var o=function(n,t,e,r){var o=Mn(n).dom.createRange();return o.setStart(n.dom,t),o.setEnd(e.dom,r),o}(n,t,e,r),u=zn(n,e)&&t===r;return o.collapsed&&!u},ds=function(n){return S.from(n.getSelection())},vs=function(n,t){ds(n).each((function(n){n.removeAllRanges(),n.addRange(t)}))},gs=function(n,t,e,r,o){var u=Va(n,t,e,r,o);vs(n,u)},hs=function(n,t){return Ka(n,t).match({ltr:function(t,e,r,o){gs(n,t,e,r,o)},rtl:function(t,e,r,o){ds(n).each((function(u){if(u.setBaseAndExtent)u.setBaseAndExtent(t.dom,e,r.dom,o);else if(u.extend)try{!function(n,t,e,r,o,u){t.collapse(e.dom,r),t.extend(o.dom,u)}(0,u,t,e,r,o)}catch(u){gs(n,r,o,t,e)}else gs(n,r,o,t,e)}))}})},ps=function(n,t,e,r,o){var u=function(n,t,e,r){var o=ss(n,t),u=ss(e,r);return cs.relative(o,u)}(t,e,r,o);hs(n,u)},bs=function(n,t,e){var r=function(n,t){var e=n.fold(Ma.before,ss,Ma.after),r=t.fold(Ma.before,ss,Ma.after);return cs.relative(e,r)}(t,e);hs(n,r)},ws=function(n){if(n.rangeCount>0){var t=n.getRangeAt(0),e=n.getRangeAt(n.rangeCount-1);return S.some(Ja(Nn.fromDom(t.startContainer),t.startOffset,Nn.fromDom(e.endContainer),e.endOffset))}return S.none()},ys=function(n){if(null===n.anchorNode||null===n.focusNode)return ws(n);var t=Nn.fromDom(n.anchorNode),e=Nn.fromDom(n.focusNode);return ms(t,n.anchorOffset,e,n.focusOffset)?S.some(Ja(t,n.anchorOffset,e,n.focusOffset)):ws(n)},Cs=function(n,t,e){void 0===e&&(e=!0);var r=(e?Fa:Pa)(n,t);vs(n,r)},xs=function(n){return function(n){return ds(n).filter((function(n){return n.rangeCount>0})).bind(ys)}(n).map((function(n){return cs.exact(n.start,n.soffset,n.finish,n.foffset)}))},Ts=function(n,t){return function(n){var t=n.getClientRects(),e=t.length>0?t[0]:n.getBoundingClientRect();return e.width>0||e.height>0?S.some(e).map(Ua):S.none()}(Ya(n,t))},Ss=function(n,t,e){return function(n,t,e){var r=Nn.fromDom(n.document);return ls(r,t,e).map((function(n){return Ja(Nn.fromDom(n.startContainer),n.startOffset,Nn.fromDom(n.endContainer),n.endOffset)}))}(n,t,e)},Rs=function(n){return{elementFromPoint:function(t,e){return Nn.fromPoint(Nn.fromDom(n.document),t,e)},getRect:function(n){return n.dom.getBoundingClientRect()},getRangedRect:function(t,e,r,o){var u=cs.exact(t,e,r,o);return Ts(n,u)},getSelection:function(){return xs(n).map((function(t){return Xa(n,t)}))},fromSitus:function(t){var e=cs.relative(t.start,t.finish);return Xa(n,e)},situsFromPoint:function(t,e){return Ss(n,t,e).map((function(n){return Qa(n.start,n.soffset,n.finish,n.foffset)}))},clearSelection:function(){!function(n){ds(n).each((function(n){return n.removeAllRanges()}))}(n)},collapseSelection:function(t){void 0===t&&(t=!1),xs(n).each((function(e){return e.fold((function(n){return n.collapse(t)}),(function(e,r){var o=t?e:r;bs(n,o,o)}),(function(e,r,o,u){var i=t?e:o,c=t?r:u;ps(n,i,c,i,c)}))}))},setSelection:function(t){ps(n,t.start,t.soffset,t.finish,t.foffset)},setRelativeSelection:function(t,e){bs(n,t,e)},selectNode:function(t){Cs(n,t,!1)},selectContents:function(t){Cs(n,t)},getInnerHeight:function(){return n.innerHeight},getScrollY:function(){var t,e,r,o;return(t=Nn.fromDom(n.document),e=void 0!==t?t.dom:document,r=e.body.scrollLeft||e.documentElement.scrollLeft,o=e.body.scrollTop||e.documentElement.scrollTop,Sr(r,o)).top},scrollBy:function(t,e){!function(n,t,e){var r=(void 0!==e?e.dom:document).defaultView;r&&r.scrollBy(n,t)}(t,e,Nn.fromDom(n.document))}}},Ds=function(n,t){return{rows:n,cols:t}},Os=function(n,t,e,r){var o=function(n,t,e,r){var o=Yl(),u=o.clear,i=function(u){o.on((function(o){r.clearBeforeUpdate(t),Jl(u.target,e).each((function(i){Iu(o,i,e).each((function(e){var o=e.boxes.getOr([]);if(1===o.length){var c=o[0],f="false"===mu(c),a=Nt(lu(u.target),c,zn);f&&a&&(r.selectRange(t,o,c,c),n.selectContents(c))}else o.length>1&&(r.selectRange(t,o,e.start,e.finish),n.selectContents(i))}))}))}))};return{clearstate:u,mousedown:function(n){r.clear(t),Jl(n.target,e).filter(Ql).each(o.set)},mouseover:function(n){i(n)},mouseup:function(n){i(n),u()}}}(Rs(n),t,e,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},ks=function(n){return Dt(n,pn).exists(su)},Es=function(n,t){return ks(n)||ks(t)},As=function(n,t,e,r){var o=Rs(n),u=function(){return r.clear(t),S.none()};return{keydown:function(n,i,c,f,a,l){var s=n.raw,m=s.which,d=!0===s.shiftKey,v=Pu(t,r.selectedSelector).fold((function(){return rs(m)&&!d&&r.clearBeforeUpdate(t),rs(m)&&d&&!Es(i,f)?S.none:es(m)&&d?w(Gl,o,t,e,Xl,f,i,r.selectRange):ts(m)&&d?w(Gl,o,t,e,Zl,f,i,r.selectRange):es(m)?w(Vl,o,e,Xl,f,i,$l):ts(m)?w(Vl,o,e,Zl,f,i,Ul):S.none}),(function(n){var e=function(e){return function(){var u=Q(e,(function(e){return function(n,t,e,r,o){return Hu(r,n,t,o.firstSelectedSelector,o.lastSelectedSelector).map((function(n){return o.clearBeforeUpdate(e),o.selectRange(e,n.boxes,n.start,n.finish),n.boxes}))}(e.rows,e.cols,t,n,r)}));return u.fold((function(){return Fu(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(n){var e=es(m)||l.isForward(m)?Ma.after:Ma.before;return o.setRelativeSelection(Ma.on(n.first,0),e(n.table)),r.clear(t),Ia(S.none(),!0)}))}),(function(n){return S.some(Ia(S.none(),!0))}))}};return rs(m)&&d&&!Es(i,f)?S.none:es(m)&&d?e([Ds(1,0)]):ts(m)&&d?e([Ds(-1,0)]):l.isBackward(m)&&d?e([Ds(0,-1),Ds(-1,0)]):l.isForward(m)&&d?e([Ds(0,1),Ds(1,0)]):rs(m)&&!d?u:S.none}));return v()},keyup:function(n,o,u,i,c){return Pu(t,r.selectedSelector).fold((function(){var f=n.raw,a=f.which;return!0===f.shiftKey&&rs(a)&&Es(o,i)?function(n,t,e,r,o,u,i){return zn(e,o)&&r===u?S.none():At(e,"td,th",t).bind((function(e){return At(o,"td,th",t).bind((function(r){return nl(n,t,e,r,i)}))}))}(t,e,o,u,i,c,r.selectRange):S.none()}),S.none)}}},Ns=function(n,t){var e=Dn(n,t);return void 0===e||""===e?[]:e.split(" ")},_s=function(n){return void 0!==n.dom.classList},Bs=function(n,t){return function(n,t,e){var r=Ns(n,t).concat([e]);return Sn(n,t,r.join(" ")),!0}(n,"class",t)},js=function(n,t){_s(n)?n.dom.classList.add(t):Bs(n,t)},zs=function(n,t){return _s(n)&&n.dom.classList.contains(t)},Ls=function(n,t,e){var r=function(t){kn(t,n.selected),kn(t,n.firstSelected),kn(t,n.lastSelected)},o=function(t){Sn(t,n.selected,"1")},u=function(n){i(n),e()},i=function(t){var e=Tt(t,"".concat(n.selectedSelector,",").concat(n.firstSelectedSelector,",").concat(n.lastSelectedSelector));W(e,r)};return{clearBeforeUpdate:i,clear:u,selectRange:function(e,r,i,c){u(e),W(r,o),Sn(i,n.firstSelected,"1"),Sn(c,n.lastSelected,"1"),t(r,i,c)},selectedSelector:n.selectedSelector,firstSelectedSelector:n.firstSelectedSelector,lastSelectedSelector:n.lastSelectedSelector}},Ws=function(){return{tag:"none"}},Ms=function(n){return{tag:"multiple",elements:n}},Is=function(n){return{tag:"single",element:n}},Ps=function(n,t,e){var r=mr.fromTable(n);return Qi(r,t).map((function(n){var t=Ui(r,e,!1),o=or(t).rows,u=function(n,t){var e=n.slice(0,t[t.length-1].row+1),r=$i(e);return U(r,(function(n){var e=n.cells.slice(0,t[t.length-1].column+1);return L(e,(function(n){return n.element}))}))}(o,n),i=function(n,t){var e=n.slice(t[0].row+t[0].rowspan-1,n.length),r=$i(e);return U(r,(function(n){var e=n.cells.slice(t[0].column+t[0].colspan-1,n.cells.length);return L(e,(function(n){return n.element}))}))}(o,n);return{upOrLeftCells:u,downOrRightCells:i}}))},Fs=function(n){var t,e,r=Nn.fromDom(function(n){if(dt()&&m(n.target)){var t=Nn.fromDom(n.target);if(bn(t)&&pt(t)&&n.composed&&n.composedPath){var e=n.composedPath();if(e)return Y(e)}}return S.from(n.target)}(n).getOr(n.target)),o=function(){return n.stopPropagation()},u=function(){return n.preventDefault()},i=(t=u,e=o,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))});return function(n,t,e,r,o,u,i){return{target:n,x:t,y:e,stop:r,prevent:o,kill:u,raw:i}}(r,n.clientX,n.clientY,o,u,i,n)},Hs=function(n,t,e,r,o){var u=function(n,t){return function(e){n(e)&&t(Fs(e))}}(e,r);return n.dom.addEventListener(t,u,o),{unbind:w(qs,n,t,u,o)}},qs=function(n,t,e,r){n.dom.removeEventListener(t,e,r)},Vs=T,Us=function(n,t,e){return function(n,t,e,r){return Hs(n,t,e,r,!1)}(n,t,Vs,e)},$s=Fs,Gs=function(n){return!zs(Nn.fromDom(n.target),"ephox-snooker-resizer-bar")},Ks=function(n,t){var e=function(n,t,e){return{get:function(){return qu(n(),e).fold((function(){return t().fold(Ws,Is)}),Ms)}}}((function(){return Nn.fromDom(n.getBody())}),(function(){return ii(hu(n),vu(n))}),ei.selectedSelector),r=Ls(ei,(function(t,e,r){ie(e).each((function(o){var u=Yo(n),i=Vo(g,Nn.fromDom(n.getDoc()),u),c=ci(n),f=Ps(o,{selection:c},i);!function(n,t,e,r,o){n.dispatch("TableSelectionChange",{cells:t,start:e,finish:r,otherCells:o})}(n,t,e,r,f)}))}),(function(){return function(n){n.dispatch("TableSelectionClear")}(n)}));n.on("init",(function(e){var o=n.getWin(),u=du(n),i=vu(n),c=Os(o,u,i,r),f=As(o,u,i,r),a=function(n,t,e,r){var o=Rs(n);return function(n,u){r.clearBeforeUpdate(t),Iu(n,u,e).each((function(n){var e=n.boxes.getOr([]);r.selectRange(t,e,n.start,n.finish),o.selectContents(u),o.collapseSelection()}))}}(o,u,i,r);n.on("TableSelectorChange",(function(n){return a(n.start,n.finish)}));var l,s,m=function(t,e){(function(n){return!0===n.raw.shiftKey})(t)&&(e.kill&&t.kill(),e.selection.each((function(t){var e=cs.relative(t.start,t.finish),r=Ya(o,e);n.selection.setRng(r)})))},d=function(n){return 0===n.button},v=(l=Kl(Nn.fromDom(u)),s=Kl(0),{touchEnd:function(n){var t=Nn.fromDom(n.target);if(xn("td")(t)||xn("th")(t)){var e=l.get(),r=s.get();zn(e,t)&&n.timeStamp-r<300&&(n.preventDefault(),a(t,t))}l.set(t),s.set(n.timeStamp)}});n.on("dragstart",(function(n){c.clearstate()})),n.on("mousedown",(function(n){d(n)&&Gs(n)&&c.mousedown($s(n))})),n.on("mouseover",(function(n){var t;(void 0===(t=n).buttons||1&t.buttons)&&Gs(n)&&c.mouseover($s(n))})),n.on("mouseup",(function(n){d(n)&&Gs(n)&&c.mouseup($s(n))})),n.on("touchend",v.touchEnd),n.on("keyup",(function(t){var e=$s(t);if(e.raw.shiftKey&&rs(e.raw.which)){var r=n.selection.getRng(),o=Nn.fromDom(r.startContainer),u=Nn.fromDom(r.endContainer);f.keyup(e,o,r.startOffset,u,r.endOffset).each((function(n){m(e,n)}))}})),n.on("keydown",(function(e){var r=$s(e);t.hide();var o=n.selection.getRng(),u=Nn.fromDom(o.startContainer),i=Nn.fromDom(o.endContainer),c=pr(os,us)(Nn.fromDom(n.selection.getStart()));f.keydown(r,u,o.startOffset,i,o.endOffset,c).each((function(n){m(r,n)})),t.show()})),n.on("NodeChange",(function(){var t=n.selection,e=Nn.fromDom(t.getStart()),o=Nn.fromDom(t.getEnd());Wu(ie,[e,o]).fold((function(){return r.clear(u)}),g)}))})),n.on("PreInit",(function(){n.serializer.addTempAttr(ei.firstSelected),n.serializer.addTempAttr(ei.lastSelected)}));return{getSelectedCells:function(){return function(n,t,e,r){switch(n.tag){case"none":return t();case"single":return r(n.element);case"multiple":return e(n.elements)}}(e.get(),h([]),(function(n){return L(n,(function(n){return n.dom}))}),(function(n){return[n.dom]}))},clearSelectedCells:function(n){return r.clear(Nn.fromDom(n))}}},Ys=function(n){var t=[];return{bind:function(n){if(void 0===n)throw new Error("Event bind error: undefined handler");t.push(n)},unbind:function(n){t=I(t,(function(t){return t!==n}))},trigger:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o={};W(n,(function(n,t){o[n]=e[t]})),W(t,(function(n){n(o)}))}}},Js=function(n){return{registry:tn(n,(function(n){return{bind:n.bind,unbind:n.unbind}})),trigger:tn(n,(function(n){return n.trigger}))}},Qs=function(n){return n.slice(0).sort()},Xs=function(n,t,e){if(0===t.length)throw new Error("You must specify at least one required field.");var r;return function(n,t){if(!f(t))throw new Error("The "+n+" fields must be an array. Was: "+t+".");W(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+n+" fields was not a string.")}))}("required",t),r=Qs(t),H(r,(function(n,t){return t<r.length-1&&n===r[t+1]})).each((function(n){throw new Error("The field: "+n+" occurs more than once in the combined fields: ["+r.join(", ")+"].")})),function(r){var o=X(r);$(t,(function(n){return B(o,n)}))||function(n,t){throw new Error("All required keys ("+Qs(n).join(", ")+") were not specified. Specified keys were: "+Qs(t).join(", ")+".")}(t,o),n(t,o);var u=I(t,(function(n){return!e.validate(r[n],n)}));return u.length>0&&function(n,t){throw new Error("All values need to be of type: "+t+". Keys ("+Qs(n).join(", ")+") were not.")}(u,e.label),r}},Zs=function(n,t){var e=I(t,(function(t){return!B(n,t)}));e.length>0&&function(n){throw new Error("Unsupported keys for object: "+Qs(n).join(", "))}(e)},nm=function(n){return function(n,t){return Xs(n,t,{validate:d,label:"function"})}(Zs,n)},tm=nm(["compare","extract","mutate","sink"]),em=nm(["element","start","stop","destroy"]),rm=nm(["forceDrop","drop","move","delayDrop"]),om=function(){var n=S.none(),t=Js({move:Ys(["info"])});return{onEvent:function(e,r){r.extract(e).each((function(e){var o=function(t,e){var r=n.map((function(n){return t.compare(n,e)}));return n=S.some(e),r}(r,e);o.each((function(n){t.trigger.move(n)}))}))},reset:function(){n=S.none()},events:t.registry}},um=function(){var n,t=(n=Js({move:Ys(["info"])}),{onEvent:g,reset:g,events:n.registry}),e=om(),r=t;return{on:function(){r.reset(),r=e},off:function(){r.reset(),r=t},isOn:function(){return r===e},onEvent:function(n,t){r.onEvent(n,t)},events:e.events}},im=function(n,t,e){var r,o,u,i,c=!1,f=Js({start:Ys([]),stop:Ys([])}),l=um(),s=function(){v.stop(),l.isOn()&&(l.off(),f.trigger.stop())},m=(r=s,o=200,u=null,{cancel:i=function(){a(u)||(clearTimeout(u),u=null)},throttle:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];i(),u=setTimeout((function(){u=null,r.apply(null,n)}),o)}});l.events.move.bind((function(e){t.mutate(n,e.info)}));var d=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];c&&n.apply(null,t)}},v=t.sink(rm({forceDrop:s,drop:d(s),move:d((function(n){m.cancel(),l.onEvent(n,t)})),delayDrop:d(m.throttle)}),e);return{element:v.element,go:function(n){v.start(n),l.on(),f.trigger.start()},on:function(){c=!0},off:function(){c=!1},isActive:function(){return c},destroy:function(){v.destroy()},events:f.registry}},cm=function(n){var t=n.replace(/\./g,"-");return{resolve:function(n){return t+"-"+n}}},fm=cm("ephox-dragster").resolve,am=tm({compare:function(n,t){return Sr(t.left-n.left,t.top-n.top)},extract:function(n){return S.some(Sr(n.x,n.y))},sink:function(n,t){var r=function(n){var t=e({layerClass:fm("blocker")},n),r=Nn.fromTag("div");return Sn(r,"role","presentation"),qt(r,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),js(r,fm("blocker")),js(r,t.layerClass),{element:h(r),destroy:function(){tt(r)}}}(t),o=Us(r.element(),"mousedown",n.forceDrop),u=Us(r.element(),"mouseup",n.drop),i=Us(r.element(),"mousemove",n.move),c=Us(r.element(),"mouseout",n.delayDrop);return em({element:r.element,start:function(n){Jn(n,r.element())},stop:function(){tt(r.element())},destroy:function(){r.destroy(),u.unbind(),i.unbind(),c.unbind(),o.unbind()}})},mutate:function(n,t){n.mutate(t.left,t.top)}}),lm=cm("ephox-snooker").resolve,sm=function(){var n=Js({drag:Ys(["xDelta","yDelta","target"])}),t=S.none(),e=function(){var n=Js({drag:Ys(["xDelta","yDelta"])});return{mutate:function(t,e){n.trigger.drag(t,e)},events:n.registry}}();e.events.drag.bind((function(e){t.each((function(t){n.trigger.drag(e.xDelta,e.yDelta,t)}))}));return{assign:function(n){t=S.some(n)},get:function(){return t},mutate:e.mutate,events:n.registry}},mm=lm("resizer-bar"),dm=lm("resizer-rows"),vm=lm("resizer-cols"),gm=function(n){var t=Tt(n.parent(),"."+mm);W(t,tt)},hm=function(n,t,e){var r=n.origin();W(t,(function(t){t.each((function(t){var o=e(r,t);js(o,mm),Jn(n.parent(),o)}))}))},pm=function(n,t,e,r){hm(n,t,(function(n,t){var o,u,i,c,f,a,l=(o=t.col,u=t.x-n.left,i=e.top-n.top,c=7,f=r,a=Nn.fromTag("div"),qt(a,{position:"absolute",left:u-c/2+"px",top:i+"px",height:f+"px",width:c+"px"}),Rn(a,{"data-column":o,role:"presentation"}),a);return js(l,vm),l}))},bm=function(n,t,e,r){hm(n,t,(function(n,t){var o=function(n,t,e,r,o){var u=Nn.fromTag("div");return qt(u,{position:"absolute",left:t+"px",top:e-o/2+"px",height:o+"px",width:r+"px"}),Rn(u,{"data-row":n,role:"presentation"}),u}(t.row,e.left-n.left,t.y-n.top,r,7);return js(o,dm),o}))},wm=function(n,t,e,r,o){var u=Dr(e),i=t.isResizable,c=r.length>0?Mr.positions(r,e):[],f=c.length>0?function(n,t){return U(n.all,(function(n,e){return t(n.element)?[e]:[]}))}(n,i):[],a=I(c,(function(n,t){return j(f,(function(n){return t===n}))}));bm(t,a,u,Ke(e));var l=o.length>0?Hr.positions(o,e):[],s=l.length>0?function(n,t){var e=[];return z(n.grid.columns,(function(r){var o=mr.getColumnAt(n,r).map((function(n){return n.element}));o.forall(t)&&e.push(r)})),I(e,(function(e){var r=mr.filterItems(n,(function(n){return n.column===e}));return $(r,(function(n){return t(n.element)}))}))}(n,i):[],m=I(l,(function(n,t){return j(s,(function(n){return t===n}))}));pm(t,m,u,Cr(e))},ym=function(n,t){if(gm(n),n.isResizable(t)){var e=mr.fromTable(t),r=gr(e),o=dr(e);wm(e,n,t,r,o)}},Cm=function(n,t){var e=Tt(n.parent(),"."+mm);W(e,t)},xm=function(n){Cm(n,(function(n){Ht(n,"display","none")}))},Tm=function(n){Cm(n,(function(n){Ht(n,"display","block")}))},Sm=lm("resizer-bar-dragging"),Rm=function(n){var t=sm(),e=function(n,t){var e;void 0===t&&(t={});var r=null!==(e=t.mode)&&void 0!==e?e:am;return im(n,r,t)}(t,{}),r=S.none(),o=function(n,t){return S.from(Dn(n,t))};t.events.drag.bind((function(n){o(n.target,"data-row").each((function(t){var e=Xt(n.target,"top");Ht(n.target,"top",e+n.yDelta+"px")})),o(n.target,"data-column").each((function(t){var e=Xt(n.target,"left");Ht(n.target,"left",e+n.xDelta+"px")}))}));var u=function(n,t){return Xt(n,t)-Kt(n,"data-initial-"+t,0)};e.events.stop.bind((function(){t.get().each((function(t){r.each((function(e){o(t,"data-row").each((function(n){var r=u(t,"top");kn(t,"data-initial-top"),l.trigger.adjustHeight(e,r,parseInt(n,10))})),o(t,"data-column").each((function(n){var r=u(t,"left");kn(t,"data-initial-left"),l.trigger.adjustWidth(e,r,parseInt(n,10))})),ym(n,e)}))}))}));var i=function(r,o){l.trigger.startAdjust(),t.assign(r),Sn(r,"data-initial-"+o,Xt(r,o)),js(r,Sm),Ht(r,"opacity","0.2"),e.go(n.parent())},c=Us(n.parent(),"mousedown",(function(n){var t;t=n.target,zs(t,dm)&&i(n.target,"top"),function(n){return zs(n,vm)}(n.target)&&i(n.target,"left")})),f=function(t){return zn(t,n.view())},a=Us(n.view(),"mouseover",(function(t){var o;(o=t.target,At(o,"table",f).filter(su)).fold((function(){bt(t.target)&&gm(n)}),(function(t){e.isActive()&&(r=S.some(t),ym(n,t))}))})),l=Js({adjustHeight:Ys(["table","delta","row"]),adjustWidth:Ys(["table","delta","column"]),startAdjust:Ys([])});return{destroy:function(){c.unbind(),a.unbind(),e.destroy(),gm(n)},refresh:function(t){ym(n,t)},on:e.on,off:e.off,hideBars:w(xm,n),showBars:w(Tm,n),events:l.registry}},Dm=function(n,t,e){var r=Mr,o=Hr,u=Rm(n),i=Js({beforeResize:Ys(["table","type"]),afterResize:Ys(["table","type"]),startDrag:Ys([])});return u.events.adjustHeight.bind((function(n){var t=n.table;i.trigger.beforeResize(t,"row");var e=r.delta(n.delta,t);zc(t,e,n.row,r),i.trigger.afterResize(t,"row")})),u.events.startAdjust.bind((function(n){i.trigger.startDrag()})),u.events.adjustWidth.bind((function(n){var r=n.table;i.trigger.beforeResize(r,"col");var u=o.delta(n.delta,r),c=e(r);jc(r,u,n.column,t,c),i.trigger.afterResize(r,"col")})),{on:u.on,off:u.off,refreshBars:u.refresh,hideBars:u.hideBars,showBars:u.showBars,destroy:u.destroy,events:i.registry}},Om=function(n,t){var e=yn(n)?function(n){return Nn.fromDom(In(n).dom.documentElement)}(n):n;return{parent:h(e),view:h(n),origin:h(Sr(0,0)),isResizable:t}},km=function(n,t,e){return{parent:h(t),view:h(n),origin:h(Sr(0,0)),isResizable:e}},Em=function(){var n=Nn.fromTag("div");return qt(n,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Jn(wt(Nn.fromDom(document)),n),n},Am=function(n){return m(n)&&"TABLE"===n.nodeName},Nm="bar-",_m=function(n){return"false"!==Dn(n,"data-mce-resize")},Bm=function(n){var t,e,r=Yl(),o=Yl(),u=Yl(),i=function(t){return Gf(n,t)},c=function(){return Xo(n)?xi():Ci()},f=function(r,o,u){var f=Wt(o,"e");if(""===e&&va(r),u!==t&&""!==e){Ht(r,"width",e);var a=c(),l=i(r),s=Xo(n)||f?function(n){return Ti(n).columns}(r)-1:0;jc(r,u-t,s,a,l)}else if(function(n){return/^(\d+(\.\d+)?)%$/.test(n)}(e)){var m=parseFloat(e.replace("%",""));Ht(r,"width",u*m/t+"%")}(function(n){return/^(\d+(\.\d+)?)px$/.test(n)})(e)&&function(n){var t=mr.fromTable(n);mr.hasColumns(t)||W(oe(n),(function(n){var t=Vt(n,"width");Ht(n,"width",t),kn(n,"width")}))}(r)},a=function(){o.on((function(n){n.destroy()})),u.on((function(t){!function(n,t){n.inline&&tt(t.parent())}(n,t)}))};n.on("init",(function(){var t=function(n,t){return n.inline?km(Nn.fromDom(n.getBody()),Em(),t):Om(Nn.fromDom(n.getDoc()),t)}(n,_m);if(u.set(t),function(n){var t=n.options.get("object_resizing");return B(t.split(","),"table")}(n)&&ou(n)){var e=c(),f=Dm(t,e,i);f.on(),f.events.startDrag.bind((function(t){r.set(n.selection.getRng())})),f.events.beforeResize.bind((function(t){var e=t.table.dom;!function(n,t,e,r,o){n.dispatch("ObjectResizeStart",{target:t,width:e,height:r,origin:o})}(n,e,pu(e),bu(e),Nm+t.type)})),f.events.afterResize.bind((function(t){var e=t.table,o=e.dom;gu(e),r.on((function(t){n.selection.setRng(t),n.focus()})),function(n,t,e,r,o){n.dispatch("ObjectResized",{target:t,width:e,height:r,origin:o})}(n,o,pu(o),bu(o),Nm+t.type),n.undoManager.add()})),o.set(f)}})),n.on("ObjectResizeStart",(function(r){var o=r.target;if(Am(o)){var u=Nn.fromDom(o);W(n.dom.select(".mce-clonedresizable"),(function(t){n.dom.addClass(t,"mce-"+Qo(n)+"-columns")})),!sa(u)&&eu(n)?ga(u):!la(u)&&tu(n)&&va(u),ma(u)&&Lt(r.origin,Nm)&&va(u),t=r.width,e=ru(n)?"":function(n,t){var e=n.dom.getStyle(t,"width")||n.dom.getAttrib(t,"width");return S.from(e).filter(It)}(n,o).getOr("")}})),n.on("ObjectResized",(function(t){var e=t.target;if(Am(e)){var r=Nn.fromDom(e),o=t.origin;Lt(o,"corner-")&&f(r,o,t.width),gu(r),qf(n,r.dom,Vf)}})),n.on("SwitchMode",(function(){o.on((function(t){n.mode.isReadOnly()?t.hideBars():t.showBars()}))})),n.on("dragstart dragend",(function(n){o.on((function(t){"dragstart"===n.type?(t.hideBars(),t.off()):(t.on(),t.showBars())}))})),n.on("remove",(function(){a()}));return{refresh:function(n){o.on((function(t){return t.refreshBars(Nn.fromDom(n))}))},hide:function(){o.on((function(n){return n.hideBars()}))},show:function(){o.on((function(n){return n.showBars()}))}}},jm=function(n){!function(n){var t=n.options.register;t("table_clone_elements",{processor:"string[]"}),t("table_use_colgroups",{processor:"boolean",default:!0}),t("table_header_type",{processor:function(n){var t=B(["section","cells","sectionCells","auto"],n);return t?{value:n,valid:t}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),t("table_sizing_mode",{processor:"string",default:"auto"}),t("table_default_attributes",{processor:"object",default:{border:"1"}}),t("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),t("table_column_resizing",{processor:function(n){var t=B(["preservetable","resizetable"],n);return t?{value:n,valid:t}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),t("table_resize_bars",{processor:"boolean",default:!0}),t("table_style_by_css",{processor:"boolean",default:!0}),t("table_merge_content_on_paste",{processor:"boolean",default:!0})}(n);var t=Bm(n),e=Ks(n,t),r=Kf(n,t,e);return La(n,r),function(n,t){var e=vu(n),r=function(t){return ii(hu(n)).bind((function(r){return ie(r,e).map((function(e){var o=ri(ci(n),e,r);return t(e,o)}))})).getOr("")};nn({mceTableRowType:function(){return r(t.getTableRowType)},mceTableCellType:function(){return r(t.getTableCellType)},mceTableColType:function(){return r(t.getTableColType)}},(function(t,e){return n.addQueryValueHandler(e,t)}))}(n,r),fi(n,r),{getSelectedCells:e.getSelectedCells,clearSelectedCells:e.clearSelectedCells}},zm=function(n){return{table:jm(n)}};n.add("dom",zm)}(),n}export{e as __require};
2
+ //# sourceMappingURL=model.mjs.map