@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +93 -5
  75. package/dist/index.css +118 -5
  76. package/dist/index.js +4 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/translations/af.po +224 -0
  224. package/lang/translations/ar.po +232 -0
  225. package/lang/translations/ast.po +224 -0
  226. package/lang/translations/az.po +224 -0
  227. package/lang/translations/be.po +226 -0
  228. package/lang/translations/bg.po +224 -0
  229. package/lang/translations/bn.po +224 -0
  230. package/lang/translations/bs.po +226 -0
  231. package/lang/translations/ca.po +224 -0
  232. package/lang/translations/cs.po +226 -0
  233. package/lang/translations/da.po +224 -0
  234. package/lang/translations/de-ch.po +224 -0
  235. package/lang/translations/de.po +224 -0
  236. package/lang/translations/el.po +224 -0
  237. package/lang/translations/en-au.po +224 -0
  238. package/lang/translations/en-gb.po +224 -0
  239. package/lang/translations/en.po +224 -0
  240. package/lang/translations/eo.po +224 -0
  241. package/lang/translations/es-co.po +224 -0
  242. package/lang/translations/es.po +224 -0
  243. package/lang/translations/et.po +224 -0
  244. package/lang/translations/eu.po +224 -0
  245. package/lang/translations/fa.po +222 -0
  246. package/lang/translations/fi.po +224 -0
  247. package/lang/translations/fr.po +224 -0
  248. package/lang/translations/gl.po +224 -0
  249. package/lang/translations/gu.po +224 -0
  250. package/lang/translations/he.po +224 -0
  251. package/lang/translations/hi.po +224 -0
  252. package/lang/translations/hr.po +226 -0
  253. package/lang/translations/hu.po +224 -0
  254. package/lang/translations/hy.po +224 -0
  255. package/lang/translations/id.po +222 -0
  256. package/lang/translations/it.po +224 -0
  257. package/lang/translations/ja.po +222 -0
  258. package/lang/translations/jv.po +224 -0
  259. package/lang/translations/kk.po +224 -0
  260. package/lang/translations/km.po +222 -0
  261. package/lang/translations/kn.po +224 -0
  262. package/lang/translations/ko.po +222 -0
  263. package/lang/translations/ku.po +224 -0
  264. package/lang/translations/lt.po +226 -0
  265. package/lang/translations/lv.po +226 -0
  266. package/lang/translations/ms.po +222 -0
  267. package/lang/translations/nb.po +224 -0
  268. package/lang/translations/ne.po +224 -0
  269. package/lang/translations/nl.po +224 -0
  270. package/lang/translations/no.po +224 -0
  271. package/lang/translations/oc.po +224 -0
  272. package/lang/translations/pl.po +226 -0
  273. package/lang/translations/pt-br.po +224 -0
  274. package/lang/translations/pt.po +224 -0
  275. package/lang/translations/ro.po +226 -0
  276. package/lang/translations/ru.po +226 -0
  277. package/lang/translations/si.po +224 -0
  278. package/lang/translations/sk.po +226 -0
  279. package/lang/translations/sl.po +228 -0
  280. package/lang/translations/sq.po +224 -0
  281. package/lang/translations/sr-latn.po +226 -0
  282. package/lang/translations/sr.po +226 -0
  283. package/lang/translations/sv.po +224 -0
  284. package/lang/translations/th.po +222 -0
  285. package/lang/translations/ti.po +224 -0
  286. package/lang/translations/tk.po +224 -0
  287. package/lang/translations/tr.po +224 -0
  288. package/lang/translations/tt.po +222 -0
  289. package/lang/translations/ug.po +222 -0
  290. package/lang/translations/uk.po +226 -0
  291. package/lang/translations/ur.po +224 -0
  292. package/lang/translations/uz.po +224 -0
  293. package/lang/translations/vi.po +222 -0
  294. package/lang/translations/zh-cn.po +222 -0
  295. package/lang/translations/zh.po +222 -0
  296. package/package.json +15 -15
  297. package/src/aiactions/aiactions.js +1 -1
  298. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  299. package/src/aiactions/model/aiactionsreply.js +1 -1
  300. package/src/aiassistant/adapters/aiadapter.js +1 -1
  301. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  302. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  303. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  304. package/src/aiassistant/aiassistant.js +1 -1
  305. package/src/aiassistant/aiassistantediting.js +1 -1
  306. package/src/aiassistant/aiassistantui.js +1 -1
  307. package/src/aiassistant/legacyerrors.js +1 -1
  308. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  309. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  310. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  311. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  312. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformview.js +1 -1
  314. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  315. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  316. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  317. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  318. package/src/aiassistant/utils/common-translations.js +1 -1
  319. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  320. package/src/aiballoon/aiballoon.js +1 -1
  321. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  322. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  323. package/src/aiballoon/ui/aiballoonview.js +1 -1
  324. package/src/aichat/aichat.d.ts +12 -4
  325. package/src/aichat/aichat.js +1 -1
  326. package/src/aichat/aichatcontroller.d.ts +0 -1
  327. package/src/aichat/aichatcontroller.js +1 -1
  328. package/src/aichat/aichatui.d.ts +0 -1
  329. package/src/aichat/aichatui.js +1 -1
  330. package/src/aichat/model/aichatcontext.d.ts +1 -227
  331. package/src/aichat/model/aichatcontext.js +1 -1
  332. package/src/aichat/model/aichatconversation.js +1 -1
  333. package/src/aichat/model/aichatinteraction.d.ts +3 -0
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.d.ts +0 -30
  336. package/src/aichat/model/aichatmodels.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  338. package/src/aichat/ui/aichatfeedview.js +1 -1
  339. package/src/aichat/ui/aichatheaderview.js +1 -1
  340. package/src/aichat/ui/aichatview.js +1 -1
  341. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  362. package/src/aichat/utils/eventnames.js +1 -1
  363. package/src/aichat/utils/promisequeue.js +1 -1
  364. package/src/aichat/utils/scrollmanager.js +1 -1
  365. package/src/aichathistory/aichathistory.js +1 -1
  366. package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
  367. package/src/aichathistory/aichathistorycontroller.js +1 -1
  368. package/src/aichathistory/aichathistoryui.d.ts +0 -1
  369. package/src/aichathistory/aichathistoryui.js +1 -1
  370. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  371. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  372. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  374. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  375. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  376. package/src/aiconfig.d.ts +47 -9
  377. package/src/aicore/aiconnector.d.ts +2 -3
  378. package/src/aicore/aiconnector.js +1 -1
  379. package/src/aicore/aiediting.d.ts +0 -1
  380. package/src/aicore/aiediting.js +1 -1
  381. package/src/aicore/model/aicapabilities.js +1 -1
  382. package/src/aicore/model/aicontext.js +1 -1
  383. package/src/aicore/model/aiinteraction.js +1 -1
  384. package/src/aicore/model/aireply.js +1 -1
  385. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  386. package/src/aicore/pipeline/airesponseparser.js +2 -2
  387. package/src/aicore/ui/aidisclaimerview.js +1 -1
  388. package/src/aicore/ui/aiskeleton.js +1 -1
  389. package/src/aicore/ui/aispinner.js +1 -1
  390. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  391. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  392. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  393. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  394. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  395. package/src/aicore/utils/common-translations.js +1 -1
  396. package/src/aicore/utils/createresizebutton.js +1 -1
  397. package/src/aicore/utils/documentposition.js +1 -1
  398. package/src/aicore/utils/documentrange.js +1 -1
  399. package/src/aicore/utils/eventnames.d.ts +0 -1
  400. package/src/aicore/utils/eventnames.js +1 -1
  401. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  402. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  403. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  404. package/src/aicore/utils/htmlparser.js +1 -1
  405. package/src/aicore/utils/htmlstreamer.js +1 -1
  406. package/src/aieditorintegration/aieditorintegration.js +1 -1
  407. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
  408. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  409. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  410. package/src/aiquickactions/aiquickactions.d.ts +164 -1
  411. package/src/aiquickactions/aiquickactions.js +1 -1
  412. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  413. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  414. package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
  415. package/src/aiquickactions/aiquickactionsui.js +1 -1
  416. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  417. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  418. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  419. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
  420. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  421. package/src/aireviewmode/aireviewmode.d.ts +29 -0
  422. package/src/aireviewmode/aireviewmode.js +1 -1
  423. package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
  424. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  425. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
  426. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  427. package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
  428. package/src/aireviewmode/aireviewmodeui.js +1 -1
  429. package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
  430. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  431. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
  432. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  433. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  434. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  435. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  436. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  437. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
  438. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  439. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  440. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
  441. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  442. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  443. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  444. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  449. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  450. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  452. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  453. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  454. package/src/aitabs/aitabs.d.ts +6 -16
  455. package/src/aitabs/aitabs.js +1 -1
  456. package/src/aitabs/aitabsmainview.js +1 -1
  457. package/src/aitabs/tabs/aitabsview.js +1 -1
  458. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  459. package/src/aitabs/tabs/tabpanelview.js +1 -1
  460. package/src/index.js +1 -1
  461. package/theme/aichat/aichat.css +1 -0
  462. package/theme/aichat/aichatfeed.css +39 -0
  463. package/theme/aieditorintegration/aitogglebutton.css +23 -0
  464. package/theme/aiquickactions/aiquickactions.css +23 -4
  465. package/theme/aireviewmode/aireviewmode.css +23 -0
  466. package/theme/common/aibutton.css +1 -1
  467. package/theme/common/aitrackchanges.css +13 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d4386=_0x183e;(function(_0x4073ea,_0x5a02b6){const _0x2ab50f=_0x183e,_0x51e5c4=_0x4073ea();while(!![]){try{const _0x1873a8=parseInt(_0x2ab50f(0xfd))/0x1*(parseInt(_0x2ab50f(0xbb))/0x2)+parseInt(_0x2ab50f(0xde))/0x3*(parseInt(_0x2ab50f(0xca))/0x4)+parseInt(_0x2ab50f(0xee))/0x5+-parseInt(_0x2ab50f(0xf7))/0x6+parseInt(_0x2ab50f(0xc1))/0x7*(parseInt(_0x2ab50f(0xb7))/0x8)+parseInt(_0x2ab50f(0xe4))/0x9*(parseInt(_0x2ab50f(0xe5))/0xa)+-parseInt(_0x2ab50f(0xe9))/0xb*(parseInt(_0x2ab50f(0xd1))/0xc);if(_0x1873a8===_0x5a02b6)break;else _0x51e5c4['push'](_0x51e5c4['shift']());}catch(_0x6528aa){_0x51e5c4['push'](_0x51e5c4['shift']());}}}(_0xe75c,0x6aa81));import{AITextAdapter as _0x4c6bc6}from'./aitextadapter.js';function _0x183e(_0x5c45f9,_0x3269fe){const _0xe75c57=_0xe75c();return _0x183e=function(_0x183e52,_0x304d79){_0x183e52=_0x183e52-0xb6;let _0x5e5057=_0xe75c57[_0x183e52];return _0x5e5057;},_0x183e(_0x5c45f9,_0x3269fe);}import{AIRequestError as _0x58d34b}from'./aiadapter.js';import{getTranslation as _0x81356a}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x4c6bc6{[_0x5d4386(0xc6)];[_0x5d4386(0xd7)];[_0x5d4386(0xf8)];static get[_0x5d4386(0xd3)](){const _0x1740f1=_0x5d4386;return _0x1740f1(0xf6);}constructor(_0x133fb5){const _0x491382=_0x5d4386;super(_0x133fb5),_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xc0),_0x491382(0xda)),_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5))||_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xf5),{'model':_0x491382(0xe6),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x491382(0xc6)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xc0)),this[_0x491382(0xd7)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xdd))||{},this[_0x491382(0xf8)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5));}async[_0x5d4386(0xe3)]({query:_0x3a6c73,context:_0x50d88b,onData:_0x108849,actionId:_0x2a567b}){const _0x1192d9=_0x5d4386,_0x59eed2=this[_0x1192d9(0xc2)][_0x1192d9(0xcf)],_0x5b73bb=await this[_0x1192d9(0xdf)](_0x3a6c73,_0x50d88b,_0x2a567b),_0x6af956=await this[_0x1192d9(0xc3)](this[_0x1192d9(0xd7)],_0x2a567b),_0x46a9c8=await this[_0x1192d9(0xce)](this[_0x1192d9(0xf8)],_0x2a567b),_0xebfbe4={'messages':_0x5b73bb,..._0x46a9c8},_0x57da21={'method':_0x1192d9(0xdb),'headers':_0x6af956,'body':JSON[_0x1192d9(0xbe)](_0xebfbe4),'signal':this[_0x1192d9(0xf4)][_0x1192d9(0xec)]},_0x2d980e=await fetch(this[_0x1192d9(0xc6)],_0x57da21);if(_0x2d980e['ok'])return _0x46a9c8[_0x1192d9(0xfc)]?await this[_0x1192d9(0xd4)](_0x2d980e,_0x108849):await this[_0x1192d9(0xb9)](_0x2d980e,_0x108849),Promise[_0x1192d9(0xf0)]();{const _0x29ccaf=await _0x2d980e[_0x1192d9(0xe1)]();return _0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xb6))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xf1)))):_0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xf9))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xbf)))):Promise[_0x1192d9(0xc7)](new Error(_0x29ccaf));}}async[_0x5d4386(0xdf)](_0x457f0c,_0x6fbba,_0x2e360a){const _0x3b8342=_0x5d4386;let _0x44f722,_0x448d7d;return _0x6fbba?(_0x44f722=_0x3b8342(0xe2),_0x448d7d=_0x3b8342(0xbc)+_0x457f0c+_0x3b8342(0xc8)+_0x6fbba):(_0x44f722=_0x3b8342(0xdc),_0x448d7d=_0x457f0c),[{'role':_0x3b8342(0xcc),'content':_0x44f722},{'role':_0x3b8342(0xb8),'content':_0x448d7d}];}async[_0x5d4386(0xd4)](_0x5aa354,_0x53fd9a){const _0x40b080=_0x5d4386,_0x1d0ca9=_0x5aa354[_0x40b080(0xfa)][_0x40b080(0xed)](),_0x4f4aef=new TextDecoder();let _0x2e3675='',_0x772c64='',_0x4d929b='',_0x45c73e=!0x1;for(;!_0x45c73e;){const {done:_0x1f65aa,value:_0x2c6f44}=await _0x1d0ca9[_0x40b080(0xe8)](),_0x1c632e=_0x2e3675+_0x4f4aef[_0x40b080(0xeb)](_0x2c6f44);let _0x305693='';_0x45c73e=_0x1f65aa;try{_0x305693=this[_0x40b080(0xf3)](_0x1c632e),_0x2e3675='';}catch{_0x2e3675=_0x1c632e;continue;}_0x772c64+=_0x305693,!_0x45c73e&&this[_0x40b080(0xea)](_0x772c64)||_0x772c64&&(_0x4d929b+=_0x772c64,_0x772c64='',_0x53fd9a(_0x4d929b));}return Promise[_0x40b080(0xf0)]();}async[_0x5d4386(0xb9)](_0x4a5a0d,_0xafc189){const _0x32d93b=_0x5d4386;return _0xafc189((await _0x4a5a0d[_0x32d93b(0xcb)]())[_0x32d93b(0xc9)][0x0][_0x32d93b(0xd0)][_0x32d93b(0xe7)]),Promise[_0x32d93b(0xf0)]();}[_0x5d4386(0xea)](_0x4fe696){const _0x3e2ee3=_0x5d4386,_0x43c5e0=_0x4fe696[_0x3e2ee3(0xd9)]('<')[_0x3e2ee3(0xe0)]!==_0x4fe696[_0x3e2ee3(0xd9)]('>')[_0x3e2ee3(0xe0)],_0x2e2f17=_0x4fe696[_0x3e2ee3(0xe0)]<0x1e;return _0x43c5e0&&_0x2e2f17;}[_0x5d4386(0xf3)](_0x792d71){const _0xed0792=_0x5d4386;return _0x792d71[_0xed0792(0xd9)](/\n(?![^{]*\})/g)[_0xed0792(0xc5)](_0x4b8e93=>_0x4b8e93[_0xed0792(0xf2)](_0xed0792(0xcd),''))[_0xed0792(0xfb)](_0x101e63=>_0x101e63&&_0x101e63[_0xed0792(0xe0)]>0x0&&_0xed0792(0xd2)!==_0x101e63)[_0xed0792(0xc5)](_0x3b604c=>{const _0x557a6e=_0xed0792,{choices:_0x213348}=JSON[_0x557a6e(0xef)](_0x3b604c);if(_0x213348[0x0]?.[_0x557a6e(0xba)]?.[_0x557a6e(0xe7)])return _0x213348[0x0][_0x557a6e(0xba)][_0x557a6e(0xe7)];})[_0xed0792(0xfb)](_0x18121f=>_0x18121f)[_0xed0792(0xd5)]('');}}function _0xe75c(){const _0x5cf7db=['system','data:\x20','_prepareRequestParameters','locale','message','14328oXLQnE','[DONE]','pluginName','_readStreamableResponse','join','config','_requestHeaders','includes','split','https://api.openai.com/v1/chat/completions','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.openAI.requestHeaders','259866dnJnbo','prepareMessages','length','text','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','sendRequest','9ODIvbQ','8195830FTouDw','gpt-4o','content','read','25806fAcuIr','_isBufferIncomplete','decode','signal','getReader','2315560BoOVYx','parse','resolve','AI_ERROR_CONTEXT_LENGTH','replace','_cleanUpData','abortController','ai.assistant.adapter.openAI.requestParameters','OpenAITextAdapter','915726kHkhfp','_requestParameters','Moderation','body','filter','stream','357wNmORW','context_length_exceeded','6362288DSgtZC','user','_readStaticResponse','delta','4442AmmbGY','Instruction:\x0a','get','stringify','AI_ERROR_MODERATION','ai.assistant.adapter.openAI.apiUrl','7pZUWhN','editor','_prepareRequestHeaders','define','map','_apiUrl','reject','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','choices','24DfFQgX','json'];_0xe75c=function(){return _0x5cf7db;};return _0xe75c();}
23
+ function _0x3e08(_0x494880,_0x434ac2){const _0x183efc=_0x183e();return _0x3e08=function(_0x3e08ef,_0x43035d){_0x3e08ef=_0x3e08ef-0xab;let _0x5a7eba=_0x183efc[_0x3e08ef];return _0x5a7eba;},_0x3e08(_0x494880,_0x434ac2);}const _0x945657=_0x3e08;(function(_0x103938,_0x501efe){const _0x5afa44=_0x3e08,_0x1c3dd1=_0x103938();while(!![]){try{const _0xcb5651=parseInt(_0x5afa44(0xd7))/0x1*(-parseInt(_0x5afa44(0xae))/0x2)+parseInt(_0x5afa44(0xc4))/0x3+parseInt(_0x5afa44(0xbd))/0x4*(-parseInt(_0x5afa44(0xcc))/0x5)+parseInt(_0x5afa44(0xf1))/0x6*(-parseInt(_0x5afa44(0xf0))/0x7)+-parseInt(_0x5afa44(0xec))/0x8*(-parseInt(_0x5afa44(0xeb))/0x9)+parseInt(_0x5afa44(0xca))/0xa*(-parseInt(_0x5afa44(0xc2))/0xb)+parseInt(_0x5afa44(0xc5))/0xc*(parseInt(_0x5afa44(0xaf))/0xd);if(_0xcb5651===_0x501efe)break;else _0x1c3dd1['push'](_0x1c3dd1['shift']());}catch(_0x48ee32){_0x1c3dd1['push'](_0x1c3dd1['shift']());}}}(_0x183e,0x42b4c));import{AITextAdapter as _0x1f39e6}from'./aitextadapter.js';import{AIRequestError as _0x3edc4c}from'./aiadapter.js';import{getTranslation as _0x22100d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1f39e6{[_0x945657(0xc1)];[_0x945657(0xb0)];[_0x945657(0xac)];static get[_0x945657(0xe9)](){const _0x481265=_0x945657;return _0x481265(0xcb);}constructor(_0x2ed524){const _0x45fa19=_0x945657;super(_0x2ed524),_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xe3)](_0x45fa19(0xad),_0x45fa19(0xb6)),_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xed)](_0x45fa19(0xef))||_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xe3)](_0x45fa19(0xef),{'model':_0x45fa19(0xc7),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x45fa19(0xc1)]=_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xed)](_0x45fa19(0xad)),this[_0x45fa19(0xb0)]=_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xed)](_0x45fa19(0xdb))||{},this[_0x45fa19(0xac)]=_0x2ed524[_0x45fa19(0xdc)][_0x45fa19(0xed)](_0x45fa19(0xef));}async[_0x945657(0xd5)]({query:_0x1646d1,context:_0x526843,onData:_0x478f97,actionId:_0x445b62}){const _0x2fe121=_0x945657,_0x50c9f3=this[_0x2fe121(0xbe)][_0x2fe121(0xab)],_0xe7da41=await this[_0x2fe121(0xd2)](_0x1646d1,_0x526843,_0x445b62),_0x5422e=await this[_0x2fe121(0xc8)](this[_0x2fe121(0xb0)],_0x445b62),_0x13980e=await this[_0x2fe121(0xe7)](this[_0x2fe121(0xac)],_0x445b62),_0x46ee8d={'messages':_0xe7da41,..._0x13980e},_0x1a9987={'method':_0x2fe121(0xbc),'headers':_0x5422e,'body':JSON[_0x2fe121(0xce)](_0x46ee8d),'signal':this[_0x2fe121(0xba)][_0x2fe121(0xb2)]},_0xd16251=await fetch(this[_0x2fe121(0xc1)],_0x1a9987);if(_0xd16251['ok'])return _0x13980e[_0x2fe121(0xee)]?await this[_0x2fe121(0xe8)](_0xd16251,_0x478f97):await this[_0x2fe121(0xb3)](_0xd16251,_0x478f97),Promise[_0x2fe121(0xd9)]();{const _0x50d5a6=await _0xd16251[_0x2fe121(0xc9)]();return _0x50d5a6[_0x2fe121(0xd3)](_0x2fe121(0xbb))?Promise[_0x2fe121(0xe2)](new _0x3edc4c(_0x22100d(_0x50c9f3,_0x2fe121(0xe6)))):_0x50d5a6[_0x2fe121(0xd3)](_0x2fe121(0xd1))?Promise[_0x2fe121(0xe2)](new _0x3edc4c(_0x22100d(_0x50c9f3,_0x2fe121(0xe5)))):Promise[_0x2fe121(0xe2)](new Error(_0x50d5a6));}}async[_0x945657(0xd2)](_0x3b190c,_0x146066,_0x422cbe){const _0x169796=_0x945657;let _0x202d16,_0x239e80;return _0x146066?(_0x202d16=_0x169796(0xc0),_0x239e80=_0x169796(0xf2)+_0x3b190c+_0x169796(0xcd)+_0x146066):(_0x202d16=_0x169796(0xf3),_0x239e80=_0x3b190c),[{'role':_0x169796(0xc6),'content':_0x202d16},{'role':_0x169796(0xcf),'content':_0x239e80}];}async[_0x945657(0xe8)](_0x4dbb4b,_0x581814){const _0x4e4a0b=_0x945657,_0x12b85d=_0x4dbb4b[_0x4e4a0b(0xb8)][_0x4e4a0b(0xda)](),_0x4e8ebf=new TextDecoder();let _0x2823e1='',_0x3274e5='',_0x48a72d='',_0x28638c=!0x1;for(;!_0x28638c;){const {done:_0x4e3b29,value:_0x27070e}=await _0x12b85d[_0x4e4a0b(0xb9)](),_0x4717e8=_0x2823e1+_0x4e8ebf[_0x4e4a0b(0xd4)](_0x27070e);let _0x4e674e='';_0x28638c=_0x4e3b29;try{_0x4e674e=this[_0x4e4a0b(0xd6)](_0x4717e8),_0x2823e1='';}catch{_0x2823e1=_0x4717e8;continue;}_0x3274e5+=_0x4e674e,!_0x28638c&&this[_0x4e4a0b(0xb7)](_0x3274e5)||_0x3274e5&&(_0x48a72d+=_0x3274e5,_0x3274e5='',_0x581814(_0x48a72d));}return Promise[_0x4e4a0b(0xd9)]();}async[_0x945657(0xb3)](_0x11b2cc,_0x38d59f){const _0x1d7e68=_0x945657;return _0x38d59f((await _0x11b2cc[_0x1d7e68(0xb4)]())[_0x1d7e68(0xb5)][0x0][_0x1d7e68(0xbf)][_0x1d7e68(0xb1)]),Promise[_0x1d7e68(0xd9)]();}[_0x945657(0xb7)](_0x2dfb30){const _0x5744fa=_0x945657,_0x39da99=_0x2dfb30[_0x5744fa(0xea)]('<')[_0x5744fa(0xd0)]!==_0x2dfb30[_0x5744fa(0xea)]('>')[_0x5744fa(0xd0)],_0x37ac57=_0x2dfb30[_0x5744fa(0xd0)]<0x1e;return _0x39da99&&_0x37ac57;}[_0x945657(0xd6)](_0x5b6a26){const _0x5bdd13=_0x945657;return _0x5b6a26[_0x5bdd13(0xea)](/\n(?![^{]*\})/g)[_0x5bdd13(0xe0)](_0x5a8313=>_0x5a8313[_0x5bdd13(0xdd)](_0x5bdd13(0xde),''))[_0x5bdd13(0xdf)](_0x57b5fa=>_0x57b5fa&&_0x57b5fa[_0x5bdd13(0xd0)]>0x0&&_0x5bdd13(0xe4)!==_0x57b5fa)[_0x5bdd13(0xe0)](_0x27187d=>{const _0x7b0a05=_0x5bdd13,{choices:_0x1f6596}=JSON[_0x7b0a05(0xd8)](_0x27187d);if(_0x1f6596[0x0]?.[_0x7b0a05(0xc3)]?.[_0x7b0a05(0xb1)])return _0x1f6596[0x0][_0x7b0a05(0xc3)][_0x7b0a05(0xb1)];})[_0x5bdd13(0xdf)](_0x1db7ed=>_0x1db7ed)[_0x5bdd13(0xe1)]('');}}function _0x183e(){const _0x542780=['message','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_apiUrl','11ZVusch','delta','619842veNJoR','6036giXtLN','system','gpt-4o','_prepareRequestHeaders','text','5105220IyRgwT','OpenAITextAdapter','5CePUko','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stringify','user','length','Moderation','prepareMessages','includes','decode','sendRequest','_cleanUpData','98309yBoCQq','parse','resolve','getReader','ai.assistant.adapter.openAI.requestHeaders','config','replace','data:\x20','filter','map','join','reject','define','[DONE]','AI_ERROR_MODERATION','AI_ERROR_CONTEXT_LENGTH','_prepareRequestParameters','_readStreamableResponse','pluginName','split','381978DsTdvT','56KipRfq','get','stream','ai.assistant.adapter.openAI.requestParameters','3558317zmWFqb','6EFBRZP','Instruction:\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','locale','_requestParameters','ai.assistant.adapter.openAI.apiUrl','2lQMOtJ','27807jbtzBX','_requestHeaders','content','signal','_readStaticResponse','json','choices','https://api.openai.com/v1/chat/completions','_isBufferIncomplete','body','read','abortController','context_length_exceeded','POST','756940TGmEZc','editor'];_0x183e=function(){return _0x542780;};return _0x183e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1421fe=_0x1e9a;(function(_0x39503d,_0x4fb57e){const _0x1c9bad=_0x1e9a,_0x5d1b06=_0x39503d();while(!![]){try{const _0x5246a9=parseInt(_0x1c9bad(0x218))/0x1+parseInt(_0x1c9bad(0x20d))/0x2*(-parseInt(_0x1c9bad(0x23d))/0x3)+parseInt(_0x1c9bad(0x237))/0x4*(parseInt(_0x1c9bad(0x21a))/0x5)+parseInt(_0x1c9bad(0x20f))/0x6+-parseInt(_0x1c9bad(0x21d))/0x7*(-parseInt(_0x1c9bad(0x25f))/0x8)+parseInt(_0x1c9bad(0x231))/0x9+-parseInt(_0x1c9bad(0x238))/0xa*(parseInt(_0x1c9bad(0x1f9))/0xb);if(_0x5246a9===_0x4fb57e)break;else _0x5d1b06['push'](_0x5d1b06['shift']());}catch(_0x460ecf){_0x5d1b06['push'](_0x5d1b06['shift']());}}}(_0x29f9,0x34199));import{Plugin as _0x59a176}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5632f1}from'./aiassistantui.js';import{AIAssistantEditing as _0x202a4}from'./aiassistantediting.js';import{getTranslation as _0x2494ab}from'./utils/common-translations.js';function _0x29f9(){const _0x171382=['filter','Translate\x20the\x20content\x20to\x20English\x20language.','Professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateArabic','pluginName','162107YzgpNu','Edit\x20or\x20review','groupId','Spanish','improveWriting','translateHindi','summarize','translateFrench','Make\x20shorter','Journalism','Translate\x20the\x20content\x20to\x20Arabic\x20language.','French','Make\x20longer','Simplified\x20Chinese','poetic','locale','Hindi','push','Generate\x20from\x20selection','Portuguese','65246qWdgzg','changeTone','311064mqnkpR','AIAssistant','Arabic','Continue','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','forEach','translateGerman','includes','184156BbNxRQ','makeShorter','5TJCRMQ','Legal','Summarize','315MbGjzs','ai.assistant.removeCommands','friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Change\x20tone','translateEnglish','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Business','professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','get','makeLonger','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','journalism','Casual','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','find','713745yxFmbS','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','changeStyle','define','390392tsuBcg','40JpABeX','Translate','ai.assistant.preserveComments','Direct','Friendly','39wlzSpJ','translate','simplifyLanguage','Translate\x20the\x20content\x20to\x20French\x20language.','legal','confident','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','direct','set','editOrReview','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Confident','isOfficialPlugin','requires','generate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.commands','German','concat','isPremiumPlugin','commands','continue','Simplify\x20language','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateChinese','casual','translateSpanish','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','business','50408yigaTd','translatePortuguese','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Change\x20style'];_0x29f9=function(){return _0x171382;};return _0x29f9();}function _0x1e9a(_0x303255,_0x3bdbcb){const _0x29f901=_0x29f9();return _0x1e9a=function(_0x1e9a01,_0x52d8c1){_0x1e9a01=_0x1e9a01-0x1f3;let _0x1fda40=_0x29f901[_0x1e9a01];return _0x1fda40;},_0x1e9a(_0x303255,_0x3bdbcb);}import{normalizeCommandsConfig as _0x3e9c9f}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x59a176{static get[_0x1421fe(0x24b)](){return[_0x5632f1,_0x202a4];}static get[_0x1421fe(0x1f8)](){const _0x3fbf33=_0x1421fe;return _0x3fbf33(0x210);}static get[_0x1421fe(0x24a)](){return!0x0;}static get[_0x1421fe(0x251)](){return!0x0;}constructor(_0x46a1a5){const _0x19ee70=_0x1421fe;super(_0x46a1a5);const _0x18df9d=_0x46a1a5[_0x19ee70(0x213)],_0x567aad=_0x46a1a5[_0x19ee70(0x208)];_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x23a),!0x0),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x24e),getDefaultAICommands(_0x567aad)),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x234),[]),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x21e),[]);let _0x57601f=_0x3e9c9f(_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x24e)),_0x567aad);const _0x1cab79=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x234)),_0x409827=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x21e));_0x1cab79[_0x19ee70(0x215)](_0x5bef06=>{const _0x766c6f=_0x19ee70,_0x5b0cde=_0x57601f[_0x766c6f(0x230)](_0x28eb47=>_0x28eb47[_0x766c6f(0x1fb)]===_0x5bef06[_0x766c6f(0x1fb)]);_0x5b0cde?_0x5b0cde[_0x766c6f(0x252)]=_0x5b0cde[_0x766c6f(0x252)][_0x766c6f(0x250)](_0x5bef06[_0x766c6f(0x252)]):_0x57601f[_0x766c6f(0x20a)](_0x5bef06);}),_0x57601f=_0x57601f[_0x19ee70(0x1f3)](_0x3073b5=>!_0x409827[_0x19ee70(0x217)](_0x3073b5[_0x19ee70(0x1fb)])),_0x57601f[_0x19ee70(0x215)](_0x1e1c0d=>{const _0x374295=_0x19ee70;_0x1e1c0d[_0x374295(0x252)]=_0x1e1c0d[_0x374295(0x252)][_0x374295(0x1f3)](_0x3556f1=>!_0x409827[_0x374295(0x217)](_0x3556f1['id']));}),_0x18df9d[_0x19ee70(0x245)](_0x19ee70(0x24e),_0x57601f);}}export function getDefaultAICommands(_0x37066b){const _0x4cdc37=_0x1421fe;return[{'groupId':_0x4cdc37(0x246),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x1fa)),'commands':[{'id':_0x4cdc37(0x1fd),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22e)),'prompt':_0x4cdc37(0x226)},{'id':_0x4cdc37(0x219),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x201)),'prompt':_0x4cdc37(0x220)},{'id':_0x4cdc37(0x229),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x205)),'prompt':_0x4cdc37(0x223)},{'id':_0x4cdc37(0x23f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x254)),'prompt':_0x4cdc37(0x243)}]},{'groupId':_0x4cdc37(0x24c),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x20b)),'commands':[{'id':_0x4cdc37(0x1ff),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21c)),'prompt':_0x4cdc37(0x248)},{'id':_0x4cdc37(0x253),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x212)),'prompt':_0x4cdc37(0x247)}]},{'groupId':_0x4cdc37(0x20e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x221)),'commands':[{'id':_0x4cdc37(0x225),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1f5)),'prompt':_0x4cdc37(0x1f6)},{'id':_0x4cdc37(0x25a),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22d)),'prompt':_0x4cdc37(0x261)},{'id':_0x4cdc37(0x244),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23b)),'prompt':_0x4cdc37(0x232)},{'id':_0x4cdc37(0x242),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x249)),'prompt':_0x4cdc37(0x255)},{'id':_0x4cdc37(0x21f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23c)),'prompt':_0x4cdc37(0x24d)}]},{'groupId':_0x4cdc37(0x235),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x262)),'commands':[{'id':_0x4cdc37(0x25e),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x224)),'prompt':_0x4cdc37(0x22b)},{'id':_0x4cdc37(0x241),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21b)),'prompt':_0x4cdc37(0x258)},{'id':_0x4cdc37(0x22c),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x202)),'prompt':_0x4cdc37(0x214)},{'id':_0x4cdc37(0x207),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x257)),'prompt':_0x4cdc37(0x22f)}]},{'groupId':_0x4cdc37(0x23e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x239)),'commands':[{'id':_0x4cdc37(0x222),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x227)),'prompt':_0x4cdc37(0x1f4)},{'id':_0x4cdc37(0x25b),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1fc)),'prompt':_0x4cdc37(0x25d)},{'id':_0x4cdc37(0x260),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x20c)),'prompt':_0x4cdc37(0x256)},{'id':_0x4cdc37(0x216),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x24f)),'prompt':_0x4cdc37(0x25c)},{'id':_0x4cdc37(0x200),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x204)),'prompt':_0x4cdc37(0x240)},{'id':_0x4cdc37(0x259),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x206)),'prompt':_0x4cdc37(0x233)},{'id':_0x4cdc37(0x1fe),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x209)),'prompt':_0x4cdc37(0x22a)},{'id':_0x4cdc37(0x1f7),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x211)),'prompt':_0x4cdc37(0x203)}]}];}
23
+ const _0x270965=_0x296b;(function(_0x12ef07,_0x1a7e4b){const _0x463928=_0x296b,_0xb9a55f=_0x12ef07();while(!![]){try{const _0x16def3=-parseInt(_0x463928(0xab))/0x1+-parseInt(_0x463928(0xe1))/0x2*(-parseInt(_0x463928(0xf2))/0x3)+-parseInt(_0x463928(0xb0))/0x4*(parseInt(_0x463928(0x10a))/0x5)+-parseInt(_0x463928(0x110))/0x6*(parseInt(_0x463928(0xc0))/0x7)+-parseInt(_0x463928(0xdf))/0x8+-parseInt(_0x463928(0xfd))/0x9*(-parseInt(_0x463928(0x102))/0xa)+parseInt(_0x463928(0xfc))/0xb*(parseInt(_0x463928(0xc3))/0xc);if(_0x16def3===_0x1a7e4b)break;else _0xb9a55f['push'](_0xb9a55f['shift']());}catch(_0x282500){_0xb9a55f['push'](_0xb9a55f['shift']());}}}(_0x1912,0x35dfa));import{Plugin as _0x1f446f}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x377c2d}from'./aiassistantui.js';import{AIAssistantEditing as _0x41da42}from'./aiassistantediting.js';import{getTranslation as _0x10a885}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x1fedf3}from'./utils/normalizecommandsconfig.js';function _0x1912(){const _0x306cc1=['6957uHLyOX','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateGerman','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','poetic','1660nFKRbT','French','Translate\x20the\x20content\x20to\x20Spanish\x20language.','isOfficialPlugin','editOrReview','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.removeCommands','2145KwkJdA','Portuguese','generate','translateHindi','changeStyle','forEach','62166FcllCM','Translate\x20the\x20content\x20to\x20English\x20language.','filter','Make\x20shorter','translateChinese','legal','English','includes','isPremiumPlugin','translateFrench','ai.assistant.preserveComments','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','383975cQtQdq','requires','Casual','Change\x20tone','translateSpanish','2896tGgvBT','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','ai.assistant.extraCommandGroups','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateArabic','locale','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Spanish','Professional','business','casual','Generate\x20from\x20selection','makeShorter','133HVMpXT','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','groupId','252276xezXFC','Hindi','Simplify\x20language','ai.assistant.commands','improveWriting','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','define','Translate\x20the\x20content\x20to\x20German\x20language.','changeTone','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','set','Make\x20longer','Change\x20style','Poetic','Translate','get','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','pluginName','direct','Legal','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','commands','find','Business','summarize','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','1162416kHfSXt','Continue','138zMrTzY','config','Simplified\x20Chinese','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translatePortuguese','translateEnglish','Direct','professional','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','simplifyLanguage','push','continue','translate','Friendly','journalism','Journalism','18927nBuOyN','Edit\x20or\x20review','friendly','confident','AIAssistant','German','Arabic','concat','Confident','Improve\x20writing','363HAeOYf'];_0x1912=function(){return _0x306cc1;};return _0x1912();}function _0x296b(_0x20f382,_0x485a54){const _0x1912f6=_0x1912();return _0x296b=function(_0x296bfd,_0x1f7b37){_0x296bfd=_0x296bfd-0xa7;let _0x524376=_0x1912f6[_0x296bfd];return _0x524376;},_0x296b(_0x20f382,_0x485a54);}export class AIAssistant extends _0x1f446f{static get[_0x270965(0xac)](){return[_0x377c2d,_0x41da42];}static get[_0x270965(0xd5)](){const _0x19fdb7=_0x270965;return _0x19fdb7(0xf6);}static get[_0x270965(0x105)](){return!0x0;}static get[_0x270965(0xa7)](){return!0x0;}constructor(_0x4014e4){const _0x430aa6=_0x270965;super(_0x4014e4);const _0x574ff2=_0x4014e4[_0x430aa6(0xe2)],_0x154bab=_0x4014e4[_0x430aa6(0xb8)];_0x574ff2[_0x430aa6(0xc9)](_0x430aa6(0xa9),!0x0),_0x574ff2[_0x430aa6(0xc9)](_0x430aa6(0xc6),getDefaultAICommands(_0x154bab)),_0x574ff2[_0x430aa6(0xc9)](_0x430aa6(0xb3),[]),_0x574ff2[_0x430aa6(0xc9)](_0x430aa6(0x109),[]);let _0x3a0ea4=_0x1fedf3(_0x574ff2[_0x430aa6(0xd3)](_0x430aa6(0xc6)),_0x154bab);const _0x2f137d=_0x574ff2[_0x430aa6(0xd3)](_0x430aa6(0xb3)),_0x19d264=_0x574ff2[_0x430aa6(0xd3)](_0x430aa6(0x109));_0x2f137d[_0x430aa6(0x10f)](_0xff4349=>{const _0x24f0b0=_0x430aa6,_0x21395e=_0x3a0ea4[_0x24f0b0(0xdb)](_0x1b1a17=>_0x1b1a17[_0x24f0b0(0xc2)]===_0xff4349[_0x24f0b0(0xc2)]);_0x21395e?_0x21395e[_0x24f0b0(0xda)]=_0x21395e[_0x24f0b0(0xda)][_0x24f0b0(0xf9)](_0xff4349[_0x24f0b0(0xda)]):_0x3a0ea4[_0x24f0b0(0xec)](_0xff4349);}),_0x3a0ea4=_0x3a0ea4[_0x430aa6(0x112)](_0x4bf6d3=>!_0x19d264[_0x430aa6(0x117)](_0x4bf6d3[_0x430aa6(0xc2)])),_0x3a0ea4[_0x430aa6(0x10f)](_0x41f94e=>{const _0x68ea1a=_0x430aa6;_0x41f94e[_0x68ea1a(0xda)]=_0x41f94e[_0x68ea1a(0xda)][_0x68ea1a(0x112)](_0x1a1d5b=>!_0x19d264[_0x68ea1a(0x117)](_0x1a1d5b['id']));}),_0x574ff2[_0x430aa6(0xce)](_0x430aa6(0xc6),_0x3a0ea4);}}export function getDefaultAICommands(_0x223b48){const _0x35e4b0=_0x270965;return[{'groupId':_0x35e4b0(0x106),'groupLabel':_0x10a885(_0x223b48,_0x35e4b0(0xf3)),'commands':[{'id':_0x35e4b0(0xc7),'label':_0x10a885(_0x223b48,_0x35e4b0(0xfb)),'prompt':_0x35e4b0(0xb2)},{'id':_0x35e4b0(0xbf),'label':_0x10a885(_0x223b48,_0x35e4b0(0x113)),'prompt':_0x35e4b0(0xd8)},{'id':_0x35e4b0(0xcd),'label':_0x10a885(_0x223b48,_0x35e4b0(0xcf)),'prompt':_0x35e4b0(0xc8)},{'id':_0x35e4b0(0xeb),'label':_0x10a885(_0x223b48,_0x35e4b0(0xc5)),'prompt':_0x35e4b0(0xe4)}]},{'groupId':_0x35e4b0(0x10c),'groupLabel':_0x10a885(_0x223b48,_0x35e4b0(0xbe)),'commands':[{'id':_0x35e4b0(0xdd),'label':_0x10a885(_0x223b48,_0x35e4b0(0xb4)),'prompt':_0x35e4b0(0xaa)},{'id':_0x35e4b0(0xed),'label':_0x10a885(_0x223b48,_0x35e4b0(0xe0)),'prompt':_0x35e4b0(0x107)}]},{'groupId':_0x35e4b0(0xcb),'groupLabel':_0x10a885(_0x223b48,_0x35e4b0(0xae)),'commands':[{'id':_0x35e4b0(0xe9),'label':_0x10a885(_0x223b48,_0x35e4b0(0xbb)),'prompt':_0x35e4b0(0xcc)},{'id':_0x35e4b0(0xbd),'label':_0x10a885(_0x223b48,_0x35e4b0(0xad)),'prompt':_0x35e4b0(0x100)},{'id':_0x35e4b0(0xd6),'label':_0x10a885(_0x223b48,_0x35e4b0(0xe8)),'prompt':_0x35e4b0(0xb6)},{'id':_0x35e4b0(0xf5),'label':_0x10a885(_0x223b48,_0x35e4b0(0xfa)),'prompt':_0x35e4b0(0xfe)},{'id':_0x35e4b0(0xf4),'label':_0x10a885(_0x223b48,_0x35e4b0(0xef)),'prompt':_0x35e4b0(0xb5)}]},{'groupId':_0x35e4b0(0x10e),'groupLabel':_0x10a885(_0x223b48,_0x35e4b0(0xd0)),'commands':[{'id':_0x35e4b0(0xbc),'label':_0x10a885(_0x223b48,_0x35e4b0(0xdc)),'prompt':_0x35e4b0(0xea)},{'id':_0x35e4b0(0x115),'label':_0x10a885(_0x223b48,_0x35e4b0(0xd7)),'prompt':_0x35e4b0(0x108)},{'id':_0x35e4b0(0xf0),'label':_0x10a885(_0x223b48,_0x35e4b0(0xf1)),'prompt':_0x35e4b0(0xd4)},{'id':_0x35e4b0(0x101),'label':_0x10a885(_0x223b48,_0x35e4b0(0xd1)),'prompt':_0x35e4b0(0xc1)}]},{'groupId':_0x35e4b0(0xee),'groupLabel':_0x10a885(_0x223b48,_0x35e4b0(0xd2)),'commands':[{'id':_0x35e4b0(0xe7),'label':_0x10a885(_0x223b48,_0x35e4b0(0x116)),'prompt':_0x35e4b0(0x111)},{'id':_0x35e4b0(0xaf),'label':_0x10a885(_0x223b48,_0x35e4b0(0xba)),'prompt':_0x35e4b0(0x104)},{'id':_0x35e4b0(0xe6),'label':_0x10a885(_0x223b48,_0x35e4b0(0x10b)),'prompt':_0x35e4b0(0xb9)},{'id':_0x35e4b0(0xff),'label':_0x10a885(_0x223b48,_0x35e4b0(0xf7)),'prompt':_0x35e4b0(0xca)},{'id':_0x35e4b0(0xa8),'label':_0x10a885(_0x223b48,_0x35e4b0(0x103)),'prompt':_0x35e4b0(0xd9)},{'id':_0x35e4b0(0x114),'label':_0x10a885(_0x223b48,_0x35e4b0(0xe3)),'prompt':_0x35e4b0(0xde)},{'id':_0x35e4b0(0x10d),'label':_0x10a885(_0x223b48,_0x35e4b0(0xc4)),'prompt':_0x35e4b0(0xe5)},{'id':_0x35e4b0(0xb7),'label':_0x10a885(_0x223b48,_0x35e4b0(0xf8)),'prompt':_0x35e4b0(0xb1)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x70adfb=_0x46e7;(function(_0x30e8d5,_0x137018){const _0x20597a=_0x46e7,_0x1c75d5=_0x30e8d5();while(!![]){try{const _0x692701=-parseInt(_0x20597a(0xdb))/0x1+parseInt(_0x20597a(0x117))/0x2*(parseInt(_0x20597a(0xf9))/0x3)+parseInt(_0x20597a(0xc7))/0x4*(parseInt(_0x20597a(0x126))/0x5)+parseInt(_0x20597a(0xf1))/0x6*(parseInt(_0x20597a(0xc1))/0x7)+parseInt(_0x20597a(0xdf))/0x8+-parseInt(_0x20597a(0xe0))/0x9*(-parseInt(_0x20597a(0xd5))/0xa)+-parseInt(_0x20597a(0x10e))/0xb*(parseInt(_0x20597a(0x127))/0xc);if(_0x692701===_0x137018)break;else _0x1c75d5['push'](_0x1c75d5['shift']());}catch(_0x51e2e3){_0x1c75d5['push'](_0x1c75d5['shift']());}}}(_0x1057,0x4c52e));import{uid as _0x5eded6}from'ckeditor5/src/utils.js';import{Plugin as _0x37bea0}from'ckeditor5/src/core.js';function _0x46e7(_0x740dbb,_0x970c79){const _0x10578b=_0x1057();return _0x46e7=function(_0x46e797,_0x98a93d){_0x46e797=_0x46e797-0xba;let _0x992358=_0x10578b[_0x46e797];return _0x992358;},_0x46e7(_0x740dbb,_0x970c79);}import{ClipboardPipeline as _0x1a5419}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xde72bc,ViewDataTransfer as _0x511870}from'ckeditor5/src/engine.js';const P=globalThis[_0x70adfb(0xd8)],B=_0x70adfb(0x11b);export class AIAssistantEditing extends _0x37bea0{static get[_0x70adfb(0xd9)](){const _0x9405d0=_0x70adfb;return _0x9405d0(0x107);}static get[_0x70adfb(0xdc)](){return!0x0;}static get[_0x70adfb(0x128)](){return!0x0;}[_0x70adfb(0xfd)](){const _0x135ea3=_0x70adfb,{editor:_0xa3e3b7}=this,_0x25856c=[_0x135ea3(0xf0)];_0xa3e3b7[_0x135ea3(0x10d)][_0x135ea3(0x101)](_0x135ea3(0x106))&&_0x25856c[_0x135ea3(0xba)](_0x135ea3(0xee)),_0xa3e3b7[_0x135ea3(0x109)][_0x135ea3(0xda)](_0x135ea3(0xc8))[_0x135ea3(0xf6)]({'model':B,'view':{'classes':_0x25856c,'priority':0xc}}),_0xa3e3b7[_0x135ea3(0x109)][_0x135ea3(0xda)](_0x135ea3(0xc8))[_0x135ea3(0xd1)]({'model':B,'view':(_0x233cd2,{writer:_0x4c7856})=>{const _0x6cad6a=_0x135ea3;if(!_0x233cd2[_0x6cad6a(0x113)][_0x6cad6a(0x115)])return null;const _0x45db28=_0x4c7856[_0x6cad6a(0xca)](_0x6cad6a(0xcd));return _0x4c7856[_0x6cad6a(0x11d)]([_0x6cad6a(0xf0),_0x6cad6a(0x100)],_0x45db28),_0x45db28;}});}[_0x70adfb(0xbe)](){!async function(_0x44b6bb){const _0x5e65b6=_0x431ef5([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x2e9efb=0x3dffc4e1,_0x3a5c02=0x3df8b039^_0x2e9efb,_0x154d89=window[_0x431ef5([0x44,0x61,0x74,0x65])][_0x431ef5([0x6e,0x6f,0x77])](),_0x308bbf=_0x44b6bb[_0x431ef5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4840ec=new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb267=>{_0x308bbf[_0x431ef5([0x6f,0x6e,0x63,0x65])](_0x431ef5([0x72,0x65,0x61,0x64,0x79]),_0x5eb267);}),_0x4f3d77={[_0x431ef5([0x6b,0x74,0x79])]:_0x431ef5([0x45,0x43]),[_0x431ef5([0x75,0x73,0x65])]:_0x431ef5([0x73,0x69,0x67]),[_0x431ef5([0x63,0x72,0x76])]:_0x431ef5([0x50,0x2d,0x32,0x35,0x36]),[_0x431ef5([0x78])]:_0x431ef5([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x431ef5([0x79])]:_0x431ef5([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x431ef5([0x61,0x6c,0x67])]:_0x431ef5([0x45,0x53,0x32,0x35,0x36])},_0x5528a7=_0x308bbf[_0x431ef5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x431ef5([0x67,0x65,0x74])](_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7e4c4b(){let _0x256970,_0x4130ae=null,_0x557d74=null;try{if(_0x5528a7==_0x431ef5([0x47,0x50,0x4c]))return _0x431ef5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x256970=_0x3b1abd(),!_0x256970)return _0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x256970[_0x431ef5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x557d74=_0xb3cf47(_0x256970[_0x431ef5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x256970[_0x431ef5([0x6a,0x74,0x69])])),await _0x389479()?_0x481dbe()?_0x13cb66()?_0x431ef5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50de6f()?(_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431ef5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4130ae=_0x20db85(_0x431ef5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431ef5([0x74,0x72,0x69,0x61,0x6c])&&(_0x4130ae=_0x20db85(_0x431ef5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x274a6f()):_0x431ef5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x431ef5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x431ef5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13cb66(){const _0x15a246=[_0x431ef5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x431ef5([0x74,0x72,0x69,0x61,0x6c])][_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x154d89/0x3e8:0xe10*_0x3a5c02;return _0x256970[_0x431ef5([0x65,0x78,0x70])]<_0x15a246;}function _0x481dbe(){const _0x33d39c=_0x256970[_0x431ef5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33d39c&&(!!_0x33d39c[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x2a]))||!!_0x33d39c[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x41,0x49])));}function _0x50de6f(){const _0xa4c1b0=_0x46e7,_0x2ee15a=_0x256970[_0x431ef5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ee15a||0x0==_0x2ee15a[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x147155}=new URL(window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa4c1b0(0xff)]);if(_0x2ee15a[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x147155))return!0x0;const _0x53c78b=_0x147155[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e]));return _0x2ee15a[_0x431ef5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3241c6=>_0x3241c6[_0x431ef5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431ef5([0x2a])))[_0x431ef5([0x6d,0x61,0x70])](_0x454744=>_0x454744[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e])))[_0x431ef5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32669d=>_0x32669d[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53c78b[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431ef5([0x6d,0x61,0x70])](_0x3c58c2=>Array(_0x53c78b[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c58c2[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431ef5([0x66,0x69,0x6c,0x6c])](_0x3c58c2[0x0]===_0x431ef5([0x2a])?_0x431ef5([0x2a]):'')[_0x431ef5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c58c2))[_0x431ef5([0x73,0x6f,0x6d,0x65])](_0x474442=>_0x53c78b[_0x431ef5([0x65,0x76,0x65,0x72,0x79])]((_0x158441,_0x3f50d3)=>_0x474442[_0x3f50d3]===_0x158441||_0x474442[_0x3f50d3]===_0x431ef5([0x2a])));}function _0x274a6f(){return _0x4130ae&&_0x557d74?new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5329d9,_0x5d8e37)=>{_0x4130ae[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x5329d9,_0x5d8e37),_0x557d74[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x320a96=>{_0x320a96!=_0x431ef5([0x56,0x61,0x6c,0x69,0x64])&&_0x5329d9(_0x320a96);},_0x5d8e37);}):_0x4130ae||_0x557d74||_0x431ef5([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb3cf47(_0x14e794,_0x56a4aa){return new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d1777=>{if(_0x1f9b7a())return _0x4d1777(_0x431ef5([0x56,0x61,0x6c,0x69,0x64]));_0x274774(),_0x308bbf[_0x431ef5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d6f77=!0x1;const _0x30838b=_0x5eded6();function _0x480623(_0x2ca263){return!!_0x2ca263&&(typeof _0x2ca263===_0x431ef5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ca263===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ca263[_0x431ef5([0x74,0x68,0x65,0x6e])]===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ca263[_0x431ef5([0x63,0x61,0x74,0x63,0x68])]===_0x431ef5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fd2d2(_0x405ba0){_0x5e042d(_0x405ba0)[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x115603=>{if(!_0x115603||_0x115603[_0x431ef5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x431ef5([0x6f,0x6b]))return _0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a4e93(_0x856c7d(_0x30838b+_0x56a4aa))!=_0x115603[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x431ef5([0x56,0x61,0x6c,0x69,0x64]);})[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x4f5bc7=>(_0x555428(),_0x4f5bc7),()=>{const _0x41698a=_0x20aef5();return null==_0x41698a?(_0x555428(),_0x431ef5([0x56,0x61,0x6c,0x69,0x64])):_0x431ef5(_0x154d89-_0x41698a>(0x19f340e1^_0x2e9efb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x4d1777)[_0x431ef5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe7f52a=0x3dc92a61^_0x2e9efb;function _0x555428(){const _0x50d34b=_0x431ef5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a4e93(_0x856c7d(_0x14e794)),_0x4a4d4c=_0x11625a(_0x4a4e93(window[_0x431ef5([0x4d,0x61,0x74,0x68])][_0x431ef5([0x63,0x65,0x69,0x6c])](_0x154d89/_0xe7f52a)));window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431ef5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50d34b,_0x4a4d4c);}function _0x20aef5(){const _0x2e0b26=_0x431ef5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a4e93(_0x856c7d(_0x14e794)),_0xa1ece7=window[_0x431ef5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431ef5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e0b26);return _0xa1ece7?window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11625a(_0xa1ece7),0x10)*_0xe7f52a:null;}function _0x5e042d(_0x4b2774){return new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b88f,_0x4ca795)=>{_0x4b2774[_0x431ef5([0x74,0x68,0x65,0x6e])](_0x29b88f,_0x4ca795),window[_0x431ef5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ca795,0x3dfe1021^_0x2e9efb);});}}_0x308bbf[_0x431ef5([0x6f,0x6e])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c3813,_0x5c9030)=>{if(_0x5c9030[0x0]!=_0x14e794)return _0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c9030[0x1]={..._0x5c9030[0x1],[_0x431ef5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30838b};},{[_0x431ef5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431ef5([0x68,0x69,0x67,0x68])}),_0x308bbf[_0x431ef5([0x6f,0x6e])](_0x431ef5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d8775=>{_0x480623(_0x4d8775[_0x431ef5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d6f77=!0x0,_0x2fd2d2(_0x4d8775[_0x431ef5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x431ef5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431ef5([0x6c,0x6f,0x77])}),_0x4840ec[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>{_0x4d6f77||_0x4d1777(_0x431ef5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f9b7a(){return _0x308bbf[_0x431ef5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431ef5([0x76,0x69,0x65,0x77])][_0x431ef5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x431ef5([0x61,0x75,0x74,0x6f]);}function _0x274774(){_0x308bbf[_0x431ef5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431ef5([0x76,0x69,0x65,0x77])][_0x431ef5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431ef5([0x61,0x75,0x74,0x6f]);}}function _0x20db85(_0x70c8cb){const _0x594c31=[new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x72bdf0=>setTimeout(_0x72bdf0,0x3df6fa2d^_0x2e9efb)),_0x4840ec[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359f55=>{let _0x22a1d9=0x0;_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x6f,0x6e])](_0x431ef5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58fd2c,_0x1d72d4)=>{_0x1d72d4[0x0][_0x431ef5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22a1d9++,_0x22a1d9==(0x3dffc519^_0x2e9efb)&&(_0x359f55(),_0x58fd2c[_0x431ef5([0x6f,0x66,0x66])]());});}))];return window[_0x431ef5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431ef5([0x72,0x61,0x63,0x65])](_0x594c31)[_0x431ef5([0x74,0x68,0x65,0x6e])](()=>_0x70c8cb);}async function _0x569ef8(){await _0x4840ec,_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55dc8c,_0x308bbf[_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c])][_0x431ef5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55dc8c,_0x308bbf[_0x431ef5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x431ef5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1663(_0x216dc9){const _0x1ba661=_0x38349f();_0x308bbf[_0x1ba661]=_0x431ef5([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x216dc9,_0x216dc9!=_0x431ef5([0x56,0x61,0x6c,0x69,0x64])&&_0x569ef8();}function _0x38349f(){const _0x492343=window[_0x431ef5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x431ef5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x431ef5([0x6e,0x6f,0x77])]())[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x431ef5([0x2e]),'');let _0x4ec9d4=_0x431ef5([0x6e]);for(let _0x485119=0x0;_0x485119<_0x492343[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485119+=0x2){let _0x37b4be=window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492343[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485119,_0x485119+0x2));_0x37b4be>=_0x5e65b6[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37b4be-=_0x5e65b6[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ec9d4+=_0x5e65b6[_0x37b4be];}return _0x4ec9d4;}function _0x3b1abd(){const _0x55ed77=_0x5528a7[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e]));if(0x3!=_0x55ed77[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x144896(_0x55ed77[0x1]);function _0x144896(_0x436f99){const _0x5c66bf=_0x4dfd50(_0x436f99);return _0x5c66bf&&_0x44b809()?_0x5c66bf:null;function _0x44b809(){const _0x50c2ed=_0x5c66bf[_0x431ef5([0x6a,0x74,0x69])],_0x160d39=window[_0x431ef5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50c2ed[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c2ed[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x428cd6={..._0x5c66bf,[_0x431ef5([0x6a,0x74,0x69])]:_0x50c2ed[_0x431ef5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50c2ed[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x428cd6[_0x431ef5([0x76,0x63])],_0x856c7d(_0x428cd6)==_0x160d39;}}}async function _0x389479(){let _0x465c83=!0x0;try{const _0x579326=_0x5528a7[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])](_0x431ef5([0x2e])),[_0x432239,_0x41887d,_0xa6464a]=_0x579326;return _0x45496a(_0x432239),await _0x22b86c(_0x432239,_0x41887d,_0xa6464a),_0x465c83;}catch{return!0x1;}function _0x45496a(_0x264d6c){const _0x5edf10=_0x4dfd50(_0x264d6c);_0x5edf10&&_0x5edf10[_0x431ef5([0x61,0x6c,0x67])]==_0x431ef5([0x45,0x53,0x32,0x35,0x36])||(_0x465c83=!0x1);}async function _0x22b86c(_0x183391,_0x645652,_0x31f3bd){const _0x1e9e30=window[_0x431ef5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x431ef5([0x66,0x72,0x6f,0x6d])](_0x120e0e(_0x31f3bd),_0x37bd53=>_0x37bd53[_0x431ef5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cb994=new window[(_0x431ef5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x431ef5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x183391+_0x431ef5([0x2e])+_0x645652),_0x10e2e5=window[_0x431ef5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x431ef5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10e2e5)return;const _0xee9318=await _0x10e2e5[_0x431ef5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x431ef5([0x6a,0x77,0x6b]),_0x4f3d77,{[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x45,0x43,0x44,0x53,0x41]),[_0x431ef5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x431ef5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10e2e5[_0x431ef5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x45,0x43,0x44,0x53,0x41]),[_0x431ef5([0x68,0x61,0x73,0x68])]:{[_0x431ef5([0x6e,0x61,0x6d,0x65])]:_0x431ef5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xee9318,_0x1e9e30,_0x3cb994)||(_0x465c83=!0x1);}}function _0x4dfd50(_0x191708){return _0x191708[_0x431ef5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x431ef5([0x65,0x79]))?JSON[_0x431ef5([0x70,0x61,0x72,0x73,0x65])](_0x120e0e(_0x191708)):null;}function _0x120e0e(_0x51d835){return window[_0x431ef5([0x61,0x74,0x6f,0x62])](_0x51d835[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x431ef5([0x2b]))[_0x431ef5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x431ef5([0x2f])));}function _0x856c7d(_0x1f71eb){let _0x421f73=0x1505;function _0x187bd3(_0x2978dc){for(let _0x27d7b2=0x0;_0x27d7b2<_0x2978dc[_0x431ef5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27d7b2++){const _0x47520f=_0x2978dc[_0x431ef5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27d7b2);_0x421f73=(_0x421f73<<0x5)+_0x421f73+_0x47520f,_0x421f73&=_0x421f73;}}function _0x370a6e(_0x4b0045){Array[_0x431ef5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b0045)?_0x4b0045[_0x431ef5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370a6e):_0x4b0045&&typeof _0x4b0045==_0x431ef5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x431ef5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b0045)[_0x431ef5([0x73,0x6f,0x72,0x74])]()[_0x431ef5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5502ad,_0x178041])=>{_0x187bd3(_0x5502ad),_0x370a6e(_0x178041);}):_0x187bd3(window[_0x431ef5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b0045));}return _0x370a6e(_0x1f71eb),_0x421f73>>>0x0;}function _0x4a4e93(_0x472553){return _0x472553[_0x431ef5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x431ef5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x431ef5([0x30]));}function _0x11625a(_0x562607){return _0x562607[_0x431ef5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x431ef5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x431ef5([0x6a,0x6f,0x69,0x6e])]('');}function _0x55dc8c(){}function _0x431ef5(_0x223fb0){const _0x42b717=_0x46e7;return _0x223fb0[_0x42b717(0xd4)](_0x4de6b5=>String[_0x42b717(0xe9)](_0x4de6b5))[_0x42b717(0xfb)]('');}_0x4b1663(await _0x7e4c4b());}(this);}[_0x70adfb(0xed)](){const _0x82f3f0=_0x70adfb,_0x38c5c5=this[_0x82f3f0(0xbd)][_0x82f3f0(0xe7)];_0x38c5c5[_0x82f3f0(0xec)](_0x1d1772=>{const _0x32a123=_0x82f3f0,_0x1e43f9=_0x38c5c5[_0x32a123(0x105)][_0x32a123(0xcf)][_0x32a123(0x11c)]();let _0x1a333a=0x0;for(const _0x5928b3 of _0x1e43f9){const _0x43b560=B+':'+_0x1a333a;if(_0x38c5c5[_0x32a123(0x10b)][_0x32a123(0x10f)](_0x43b560))_0x1d1772[_0x32a123(0xd7)](_0x43b560,{'range':_0x5928b3});else{if(_0x5928b3[_0x32a123(0x110)][_0x32a123(0xc3)]){const _0x13ded1=_0x5928b3[_0x32a123(0x110)][_0x32a123(0x114)](({item:_0x26cd30})=>!_0x38c5c5[_0x32a123(0xe4)][_0x32a123(0xfa)](_0x26cd30),{'boundaries':_0x5928b3});_0x1d1772[_0x32a123(0x129)](_0x43b560,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1d1772[_0x32a123(0x11f)](_0x13ded1,_0x5928b3[_0x32a123(0x111)])});}else _0x1d1772[_0x32a123(0x129)](_0x43b560,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5928b3});}_0x1a333a++;}});}[_0x70adfb(0x123)](){const _0x5973db=_0x70adfb,_0x20f191=this[_0x5973db(0xbd)][_0x5973db(0xe7)],_0xc7a86c=Array[_0x5973db(0xef)](this[_0x5973db(0xbd)][_0x5973db(0xe7)][_0x5973db(0x10b)][_0x5973db(0xe5)](B));_0xc7a86c[_0x5973db(0xfc)]&&_0x20f191[_0x5973db(0xec)](_0x230629=>{const _0x10e4da=_0x5973db;_0xc7a86c[_0x10e4da(0x11e)](_0xbefad6=>{const _0x4280c2=_0x10e4da;_0x230629[_0x4280c2(0xbc)](_0xbefad6);});});}[_0x70adfb(0x10c)](_0x362dd5,_0x42b015){const _0x35554b=_0x70adfb,_0x280ca0=this[_0x35554b(0xc4)](),_0x415e6d=_0x42b015||_0x280ca0[_0x35554b(0xbb)]();this[_0x35554b(0xbd)][_0x35554b(0xe7)][_0x35554b(0x125)](_0x415e6d)&&this[_0x35554b(0xbd)][_0x35554b(0xe7)][_0x35554b(0xec)](_0x45f06a=>{const _0x48c5a7=_0x35554b;this[_0x48c5a7(0x123)](),_0x42b015||this[_0x48c5a7(0xf3)](_0x45f06a,_0x280ca0),this[_0x48c5a7(0xe2)]({'insertAt':_0x415e6d,'writer':_0x45f06a,'html':_0x362dd5});});}[_0x70adfb(0x103)](_0x369cb1){const _0x37ce22=_0x70adfb,{model:_0x2f4293}=this[_0x37ce22(0xbd)],_0x5bf1f8=this[_0x37ce22(0xc4)]();_0x2f4293[_0x37ce22(0xec)](()=>{const _0x1b69e4=_0x37ce22,_0x3a19e7=this[_0x1b69e4(0x112)](_0x369cb1,_0x5bf1f8)||this[_0x1b69e4(0x10a)](_0x5bf1f8);this[_0x1b69e4(0x10c)](_0x369cb1,_0x3a19e7);});}[_0x70adfb(0xc4)](){const _0x22f411=_0x70adfb,_0x4d3149=this[_0x22f411(0xbd)][_0x22f411(0xe7)],_0x3f995d=Array[_0x22f411(0xef)](_0x4d3149[_0x22f411(0x10b)][_0x22f411(0xe5)](B))[_0x22f411(0xd4)](_0x384065=>_0x384065[_0x22f411(0xe6)]());return _0x4d3149[_0x22f411(0x108)](_0x3f995d);}[_0x70adfb(0xe2)]({writer:_0xcae92,html:_0x3d1a33,insertAt:_0x171f98}){const _0x23b111=_0x70adfb,{view:_0x25e1da}=this[_0x23b111(0xbd)][_0x23b111(0xc6)],_0x32f1bf=this[_0x23b111(0xbd)][_0x23b111(0xcb)][_0x23b111(0x101)](_0x1a5419),_0x3c5f6b=new P();_0x3c5f6b[_0x23b111(0x124)](_0x23b111(0x116),_0x3d1a33);const _0xcdc338=new ClipboardEvent(_0x23b111(0xf7),{'clipboardData':_0x3c5f6b}),_0x2fb414=new _0xde72bc(_0x25e1da,_0xcdc338,{'dataTransfer':new _0x511870(_0x3c5f6b)});_0xcae92[_0x23b111(0xc9)](_0x171f98);const _0x2fc8e0=(_0x2fb8e5,_0x5945e0)=>{const _0x1326ce=_0x23b111;_0x5945e0[_0x1326ce(0x119)]&&_0xcae92[_0x1326ce(0xc9)](_0x5945e0[_0x1326ce(0x119)]);};_0x32f1bf[_0x23b111(0xe3)](_0x23b111(0xe1),_0x2fc8e0,{'priority':_0x23b111(0xf5)}),_0x25e1da[_0x23b111(0x105)][_0x23b111(0xea)](_0x23b111(0xf7),_0x2fb414),_0x32f1bf[_0x23b111(0xc2)](_0x23b111(0xe1),_0x2fc8e0);}[_0x70adfb(0x10a)](_0x1a2801){const _0x496a87=_0x70adfb,{model:_0x3dab95}=this[_0x496a87(0xbd)],_0x79e3eb=Array[_0x496a87(0xef)](_0x1a2801[_0x496a87(0xf2)]());return _0x79e3eb[_0x496a87(0xfc)]?_0x3dab95[_0x496a87(0xbf)](_0x79e3eb[_0x496a87(0x122)]()):_0x1a2801[_0x496a87(0x104)]();}[_0x70adfb(0x112)](_0x28b591,_0x4f8b7e){const _0x1c7e5f=_0x70adfb,{model:_0x5f054d,plugins:_0x16e88a}=this[_0x1c7e5f(0xbd)];if(_0x16e88a[_0x1c7e5f(0x10f)](_0x1c7e5f(0x11a))){const _0x1c1d20=_0x16e88a[_0x1c7e5f(0x101)](_0x1c7e5f(0x11a))[_0x1c7e5f(0xeb)](_0x4f8b7e);if(_0x1c1d20[_0x1c7e5f(0xfc)]){const _0x432609=this[_0x1c7e5f(0xcc)](_0x28b591),_0x327f31=this[_0x1c7e5f(0x102)](_0x1c1d20,_0x432609);return _0x5f054d[_0x1c7e5f(0xf4)](_0x327f31,0x0);}}return null;}[_0x70adfb(0xcc)](_0x476e9e){const _0x44e4af=_0x70adfb,_0x5544f7=this[_0x44e4af(0xbd)][_0x44e4af(0xcb)][_0x44e4af(0x101)](_0x44e4af(0x11a)),_0x34f8d6=this[_0x44e4af(0xbd)][_0x44e4af(0xde)][_0x44e4af(0xc0)](_0x476e9e),_0xee92b3=Array[_0x44e4af(0xef)](_0x34f8d6[_0x44e4af(0xc5)]())[_0x44e4af(0xdd)](_0x56dd38=>_0x56dd38['is'](_0x44e4af(0xd0),_0x44e4af(0x120)));let _0x2c74ec=0x0;return _0xee92b3[_0x44e4af(0x11e)](_0x392cab=>{const _0x47d82a=_0x44e4af;_0x2c74ec+=_0x5544f7[_0x47d82a(0xf8)](_0x392cab);}),_0x2c74ec;}[_0x70adfb(0x102)](_0xfafb6,_0x36c52c){const _0x46d810=_0x70adfb,_0x39ff74=this[_0x46d810(0xbd)][_0x46d810(0xcb)][_0x46d810(0x101)](_0x46d810(0x11a)),_0x522823=_0x39ff74[_0x46d810(0xfe)](_0xfafb6),_0xa6c84e=_0x39ff74[_0x46d810(0xce)](_0xfafb6),_0x55d8d3=_0x522823[_0x46d810(0xd2)]+0x1,_0x592b9f=_0xa6c84e[_0x46d810(0xd3)],_0x2db0c4=_0xfafb6[0x0][_0x46d810(0xe8)](_0x46d810(0x120));for(let _0x2960c0=0x0;_0x2960c0<_0x36c52c;_0x2960c0++)_0x39ff74[_0x46d810(0x121)](_0x2db0c4,{'at':_0x55d8d3});return _0x2db0c4[_0x46d810(0xd6)](_0x55d8d3)[_0x46d810(0xd6)](_0x592b9f);}[_0x70adfb(0xf3)](_0x548312,_0x4ad1ba){const _0x346731=_0x70adfb,{plugins:_0x23da04}=this[_0x346731(0xbd)],{model:_0x28d5fd}=_0x548312;if(!_0x23da04[_0x346731(0x10f)](_0x346731(0x11a)))return;_0x23da04[_0x346731(0x101)](_0x346731(0x11a))[_0x346731(0xeb)](_0x4ad1ba)[_0x346731(0xfc)]&&_0x28d5fd[_0x346731(0x118)](_0x4ad1ba);}}function _0x1057(){const _0x3fe0ce=['getRowIndexes','href','ck-fake-ai-selection_collapsed','get','_createEmptyTableRows','insertContentBelow','getLastPosition','document','ai.assistant.useTheme','AIAssistantEditing','createSelection','conversion','_getDefaultInsertBelowPosition','markers','insertContent','config','1111FhuEAN','has','start','end','_prepareTableInsertBelowPosition','markerRange','getLastMatchingPosition','isCollapsed','text/html','1074YZhpne','deleteContent','resultRange','TableUtils','ai-ui','getRanges','addClass','forEach','createRange','table','insertRows','pop','hideFakeVisualSelection','setData','canEditAt','369925OOsHDa','143196WXEmUJ','isPremiumPlugin','addMarker','push','getFirstRange','removeMarker','editor','afterInit','createPositionAfter','parse','1402261ojyzzZ','off','isAtEnd','_getAISelection','getChildren','editing','32mHxqFu','editingDowncast','setSelection','createUIElement','plugins','_getTableRowCountFromContent','span','getColumnIndexes','selection','element','markerToElement','last','first','map','90nuDBYA','getChild','updateMarker','DataTransfer','pluginName','for','248139fYaDSH','isOfficialPlugin','filter','data','1538328uMRmFe','611271JKQlfV','contentInsertion','_pasteHTMLUsingClipboard','once','schema','getMarkersGroup','getRange','model','findAncestor','fromCharCode','fire','getSelectedTableCells','change','showFakeVisualSelection','ck-ai-assistant-ui_theme','from','ck-fake-ai-selection','6aGrXMu','getSelectedBlocks','_resetContentOfSelectedTableCells','createPositionAt','lowest','markerToHighlight','paste','getRows','951tZeLKL','isContent','join','length','init'];_0x1057=function(){return _0x3fe0ce;};return _0x1057();}
23
+ const _0x4dc3dd=_0x2acc;(function(_0x36cf8e,_0x3a182c){const _0x41ebe0=_0x2acc,_0x44797b=_0x36cf8e();while(!![]){try{const _0x802747=-parseInt(_0x41ebe0(0x1fe))/0x1*(-parseInt(_0x41ebe0(0x1fd))/0x2)+parseInt(_0x41ebe0(0x1f3))/0x3+parseInt(_0x41ebe0(0x1a7))/0x4*(-parseInt(_0x41ebe0(0x1cb))/0x5)+-parseInt(_0x41ebe0(0x200))/0x6+parseInt(_0x41ebe0(0x19e))/0x7+-parseInt(_0x41ebe0(0x1a1))/0x8*(-parseInt(_0x41ebe0(0x1d9))/0x9)+parseInt(_0x41ebe0(0x1c0))/0xa;if(_0x802747===_0x3a182c)break;else _0x44797b['push'](_0x44797b['shift']());}catch(_0x3731b0){_0x44797b['push'](_0x44797b['shift']());}}}(_0x4c22,0xdb433));import{uid as _0x37484b}from'ckeditor5/src/utils.js';import{Plugin as _0x43c0a6}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5b39a7}from'ckeditor5/src/clipboard.js';function _0x4c22(){const _0x5998cc=['showFakeVisualSelection','ck-fake-ai-selection_collapsed','9521911oENxbV','contentInsertion','init','8687984jTFFYX','hideFakeVisualSelection','getMarkersGroup','lowest','createRange','editing','1417244fpGuyk','pop','createPositionAt','isContent','has','for','data','forEach','canEditAt','updateMarker','deleteContent','fire','_getDefaultInsertBelowPosition','parse','setData','addClass','createPositionAfter','end','createUIElement','afterInit','markerToHighlight','last','getRanges','ck-ai-assistant-ui_theme','getSelectedBlocks','3037710VkDRzZ','_getTableRowCountFromContent','getChild','isAtEnd','href','isCollapsed','getRowIndexes','editor','start','editingDowncast','model','25kHUlDR','_resetContentOfSelectedTableCells','table','findAncestor','change','isOfficialPlugin','getLastMatchingPosition','text/html','getChildren','conversion','insertContentBelow','getLastPosition','span','isPremiumPlugin','9LpzWTB','getRows','_getAISelection','fromCharCode','addMarker','off','length','config','map','getRange','getFirstRange','removeMarker','paste','markerToElement','ck-fake-ai-selection','markers','filter','AIAssistantEditing','_createEmptyTableRows','once','insertContent','getSelectedTableCells','document','markerRange','push','insertRows','483738ooKQNV','first','plugins','ai-ui','DataTransfer','TableUtils','createSelection','selection','get','setSelection','165626WqWFXY','8ZVyJqZ','_pasteHTMLUsingClipboard','5424828EGHDix','schema','element','getColumnIndexes','resultRange','ai.assistant.useTheme','from','join','_prepareTableInsertBelowPosition','pluginName'];_0x4c22=function(){return _0x5998cc;};return _0x4c22();}import{ViewDocumentDomEventData as _0x52285a,ViewDataTransfer as _0x3ec12a}from'ckeditor5/src/engine.js';const P=globalThis[_0x4dc3dd(0x1f7)],B=_0x4dc3dd(0x1f6);function _0x2acc(_0x3e237c,_0x167fe1){const _0x4c22c4=_0x4c22();return _0x2acc=function(_0x2acc07,_0x33a853){_0x2acc07=_0x2acc07-0x19e;let _0x171d82=_0x4c22c4[_0x2acc07];return _0x171d82;},_0x2acc(_0x3e237c,_0x167fe1);}export class AIAssistantEditing extends _0x43c0a6{static get[_0x4dc3dd(0x209)](){const _0x5763da=_0x4dc3dd;return _0x5763da(0x1ea);}static get[_0x4dc3dd(0x1d0)](){return!0x0;}static get[_0x4dc3dd(0x1d8)](){return!0x0;}[_0x4dc3dd(0x1a0)](){const _0x189dee=_0x4dc3dd,{editor:_0x19fe9c}=this,_0x5babb9=[_0x189dee(0x1e7)];_0x19fe9c[_0x189dee(0x1e0)][_0x189dee(0x1fb)](_0x189dee(0x205))&&_0x5babb9[_0x189dee(0x1f1)](_0x189dee(0x1be)),_0x19fe9c[_0x189dee(0x1d4)][_0x189dee(0x1ac)](_0x189dee(0x1c9))[_0x189dee(0x1bb)]({'model':B,'view':{'classes':_0x5babb9,'priority':0xc}}),_0x19fe9c[_0x189dee(0x1d4)][_0x189dee(0x1ac)](_0x189dee(0x1c9))[_0x189dee(0x1e6)]({'model':B,'view':(_0x4d39b9,{writer:_0x44a5db})=>{const _0x594445=_0x189dee;if(!_0x4d39b9[_0x594445(0x1f0)][_0x594445(0x1c5)])return null;const _0x33c622=_0x44a5db[_0x594445(0x1b9)](_0x594445(0x1d7));return _0x44a5db[_0x594445(0x1b6)]([_0x594445(0x1e7),_0x594445(0x20b)],_0x33c622),_0x33c622;}});}[_0x4dc3dd(0x1ba)](){!async function(_0x39cf2d){const _0x3a40d0=_0x43b719([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x46a4ed=0x3dffc4e1,_0x2d1fac=0x3df8b011^_0x46a4ed,_0x3f89ed=window[_0x43b719([0x44,0x61,0x74,0x65])][_0x43b719([0x6e,0x6f,0x77])](),_0x131391=_0x39cf2d[_0x43b719([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x226a1e=new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a7330=>{_0x131391[_0x43b719([0x6f,0x6e,0x63,0x65])](_0x43b719([0x72,0x65,0x61,0x64,0x79]),_0x9a7330);}),_0x4d7a80={[_0x43b719([0x6b,0x74,0x79])]:_0x43b719([0x45,0x43]),[_0x43b719([0x75,0x73,0x65])]:_0x43b719([0x73,0x69,0x67]),[_0x43b719([0x63,0x72,0x76])]:_0x43b719([0x50,0x2d,0x32,0x35,0x36]),[_0x43b719([0x78])]:_0x43b719([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x43b719([0x79])]:_0x43b719([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x43b719([0x61,0x6c,0x67])]:_0x43b719([0x45,0x53,0x32,0x35,0x36])},_0x59f608=_0x131391[_0x43b719([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43b719([0x67,0x65,0x74])](_0x43b719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9b9622(){let _0x4412c5,_0x37b3bf=null,_0x368fc4=null;try{if(_0x59f608==_0x43b719([0x47,0x50,0x4c]))return _0x43b719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4412c5=_0x3349ad(),!_0x4412c5)return _0x43b719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4412c5[_0x43b719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x368fc4=_0x484a7e(_0x4412c5[_0x43b719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4412c5[_0x43b719([0x6a,0x74,0x69])])),await _0x5f3c4f()?_0x3cdfeb()?_0x5d7c32()?_0x43b719([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14124c()?(_0x4412c5[_0x43b719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43b719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37b3bf=_0x27f458(_0x43b719([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4412c5[_0x43b719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43b719([0x74,0x72,0x69,0x61,0x6c])&&(_0x37b3bf=_0x27f458(_0x43b719([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39771f()):_0x43b719([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43b719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43b719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x43b719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d7c32(){const _0x595a97=[_0x43b719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43b719([0x74,0x72,0x69,0x61,0x6c])][_0x43b719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4412c5[_0x43b719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f89ed/0x3e8:0xe10*_0x2d1fac;return _0x4412c5[_0x43b719([0x65,0x78,0x70])]<_0x595a97;}function _0x3cdfeb(){const _0x38ab5f=_0x4412c5[_0x43b719([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38ab5f&&(!!_0x38ab5f[_0x43b719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b719([0x2a]))||!!_0x38ab5f[_0x43b719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b719([0x41,0x49])));}function _0x14124c(){const _0x32be65=_0x2acc,_0x542995=_0x4412c5[_0x43b719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x542995||0x0==_0x542995[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e84ec}=new URL(window[_0x43b719([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x32be65(0x1c4)]);if(_0x542995[_0x43b719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e84ec))return!0x0;const _0x284e2f=_0x4e84ec[_0x43b719([0x73,0x70,0x6c,0x69,0x74])](_0x43b719([0x2e]));return _0x542995[_0x43b719([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a7ab0=>_0x1a7ab0[_0x43b719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b719([0x2a])))[_0x43b719([0x6d,0x61,0x70])](_0x413388=>_0x413388[_0x43b719([0x73,0x70,0x6c,0x69,0x74])](_0x43b719([0x2e])))[_0x43b719([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x127c57=>_0x127c57[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x284e2f[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43b719([0x6d,0x61,0x70])](_0x52e09b=>Array(_0x284e2f[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52e09b[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43b719([0x66,0x69,0x6c,0x6c])](_0x52e09b[0x0]===_0x43b719([0x2a])?_0x43b719([0x2a]):'')[_0x43b719([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52e09b))[_0x43b719([0x73,0x6f,0x6d,0x65])](_0x11500b=>_0x284e2f[_0x43b719([0x65,0x76,0x65,0x72,0x79])]((_0x88a25,_0x37905a)=>_0x11500b[_0x37905a]===_0x88a25||_0x11500b[_0x37905a]===_0x43b719([0x2a])));}function _0x39771f(){return _0x37b3bf&&_0x368fc4?new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54223d,_0x1ba1d4)=>{_0x37b3bf[_0x43b719([0x74,0x68,0x65,0x6e])](_0x54223d,_0x1ba1d4),_0x368fc4[_0x43b719([0x74,0x68,0x65,0x6e])](_0x547605=>{_0x547605!=_0x43b719([0x56,0x61,0x6c,0x69,0x64])&&_0x54223d(_0x547605);},_0x1ba1d4);}):_0x37b3bf||_0x368fc4||_0x43b719([0x56,0x61,0x6c,0x69,0x64]);}}function _0x484a7e(_0x274d52,_0x3a2511){return new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a150=>{if(_0x47b6c8())return _0x10a150(_0x43b719([0x56,0x61,0x6c,0x69,0x64]));_0x58b767(),_0x131391[_0x43b719([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43b719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b5773=!0x1;const _0x260176=_0x37484b();function _0x16e32e(_0x130c7d){return!!_0x130c7d&&(typeof _0x130c7d===_0x43b719([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x130c7d===_0x43b719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x130c7d[_0x43b719([0x74,0x68,0x65,0x6e])]===_0x43b719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x130c7d[_0x43b719([0x63,0x61,0x74,0x63,0x68])]===_0x43b719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x585896(_0x4f320f){_0x4addea(_0x4f320f)[_0x43b719([0x74,0x68,0x65,0x6e])](_0x9b698d=>{if(!_0x9b698d||_0x9b698d[_0x43b719([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43b719([0x6f,0x6b]))return _0x43b719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36d983(_0x586013(_0x260176+_0x3a2511))!=_0x9b698d[_0x43b719([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43b719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43b719([0x56,0x61,0x6c,0x69,0x64]);})[_0x43b719([0x74,0x68,0x65,0x6e])](_0x389030=>(_0x52e77d(),_0x389030),()=>{const _0xb4763e=_0x3c0bcb();return null==_0xb4763e?(_0x52e77d(),_0x43b719([0x56,0x61,0x6c,0x69,0x64])):_0x43b719(_0x3f89ed-_0xb4763e>(0x19f340e1^_0x46a4ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43b719([0x74,0x68,0x65,0x6e])](_0x10a150)[_0x43b719([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10a150(_0x43b719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe6bffe=0x3dc92a61^_0x46a4ed;function _0x52e77d(){const _0x2f1f1f=_0x43b719([0x6c,0x6c,0x63,0x74,0x2d])+_0x36d983(_0x586013(_0x274d52)),_0x42f121=_0x1eda9d(_0x36d983(window[_0x43b719([0x4d,0x61,0x74,0x68])][_0x43b719([0x63,0x65,0x69,0x6c])](_0x3f89ed/_0xe6bffe)));window[_0x43b719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43b719([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f1f1f,_0x42f121);}function _0x3c0bcb(){const _0x5ae7d8=_0x43b719([0x6c,0x6c,0x63,0x74,0x2d])+_0x36d983(_0x586013(_0x274d52)),_0x59c98c=window[_0x43b719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43b719([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae7d8);return _0x59c98c?window[_0x43b719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eda9d(_0x59c98c),0x10)*_0xe6bffe:null;}function _0x4addea(_0x4e0f3c){return new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x521b4b,_0x5451ba)=>{_0x4e0f3c[_0x43b719([0x74,0x68,0x65,0x6e])](_0x521b4b,_0x5451ba),window[_0x43b719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5451ba,0x3dfe1021^_0x46a4ed);});}}_0x131391[_0x43b719([0x6f,0x6e])](_0x43b719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ca695,_0x186554)=>{if(_0x186554[0x0]!=_0x274d52)return _0x10a150(_0x43b719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x186554[0x1]={..._0x186554[0x1],[_0x43b719([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x260176};},{[_0x43b719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43b719([0x68,0x69,0x67,0x68])}),_0x131391[_0x43b719([0x6f,0x6e])](_0x43b719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32fc7c=>{_0x16e32e(_0x32fc7c[_0x43b719([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b5773=!0x0,_0x585896(_0x32fc7c[_0x43b719([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43b719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43b719([0x6c,0x6f,0x77])}),_0x226a1e[_0x43b719([0x74,0x68,0x65,0x6e])](()=>{_0x3b5773||_0x10a150(_0x43b719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47b6c8(){return _0x131391[_0x43b719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43b719([0x76,0x69,0x65,0x77])][_0x43b719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43b719([0x61,0x75,0x74,0x6f]);}function _0x58b767(){_0x131391[_0x43b719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43b719([0x76,0x69,0x65,0x77])][_0x43b719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43b719([0x61,0x75,0x74,0x6f]);}}function _0x27f458(_0x54bfbc){const _0x5d6d1b=[new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22a2c3=>setTimeout(_0x22a2c3,0x3df6fa2d^_0x46a4ed)),_0x226a1e[_0x43b719([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af770=>{let _0x59a8df=0x0;_0x131391[_0x43b719([0x6d,0x6f,0x64,0x65,0x6c])][_0x43b719([0x6f,0x6e])](_0x43b719([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a2933,_0x5e14d5)=>{_0x5e14d5[0x0][_0x43b719([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59a8df++,_0x59a8df==(0x3dffc519^_0x46a4ed)&&(_0x4af770(),_0x5a2933[_0x43b719([0x6f,0x66,0x66])]());});}))];return window[_0x43b719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43b719([0x72,0x61,0x63,0x65])](_0x5d6d1b)[_0x43b719([0x74,0x68,0x65,0x6e])](()=>_0x54bfbc);}async function _0x355ad2(){await _0x226a1e,_0x131391[_0x43b719([0x6d,0x6f,0x64,0x65,0x6c])][_0x43b719([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4e24,_0x131391[_0x43b719([0x6d,0x6f,0x64,0x65,0x6c])][_0x43b719([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4e24,_0x131391[_0x43b719([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43b719([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x533e93(_0x1338bf){const _0x5312d5=_0x524c34();_0x131391[_0x5312d5]=_0x43b719([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1338bf,_0x1338bf!=_0x43b719([0x56,0x61,0x6c,0x69,0x64])&&_0x355ad2();}function _0x524c34(){const _0x252a8b=window[_0x43b719([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43b719([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43b719([0x6e,0x6f,0x77])]())[_0x43b719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43b719([0x2e]),'');let _0x4eee0c=_0x43b719([0x6e]);for(let _0x4d2118=0x0;_0x4d2118<_0x252a8b[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d2118+=0x2){let _0x10ee4c=window[_0x43b719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x252a8b[_0x43b719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d2118,_0x4d2118+0x2));_0x10ee4c>=_0x3a40d0[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10ee4c-=_0x3a40d0[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eee0c+=_0x3a40d0[_0x10ee4c];}return _0x4eee0c;}function _0x3349ad(){const _0x3336b5=_0x59f608[_0x43b719([0x73,0x70,0x6c,0x69,0x74])](_0x43b719([0x2e]));if(0x3!=_0x3336b5[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a6a4e(_0x3336b5[0x1]);function _0x4a6a4e(_0x7fb924){const _0x4e0d44=_0xcc3987(_0x7fb924);return _0x4e0d44&&_0x4e8b2d()?_0x4e0d44:null;function _0x4e8b2d(){const _0x369ac5=_0x4e0d44[_0x43b719([0x6a,0x74,0x69])],_0x246878=window[_0x43b719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369ac5[_0x43b719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x369ac5[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x764362={..._0x4e0d44,[_0x43b719([0x6a,0x74,0x69])]:_0x369ac5[_0x43b719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x369ac5[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x764362[_0x43b719([0x76,0x63])],_0x586013(_0x764362)==_0x246878;}}}async function _0x5f3c4f(){let _0x14e9d6=!0x0;try{const _0x21a126=_0x59f608[_0x43b719([0x73,0x70,0x6c,0x69,0x74])](_0x43b719([0x2e])),[_0xf4daa5,_0xa92201,_0x5f3dd7]=_0x21a126;return _0x3cd3f1(_0xf4daa5),await _0x529c66(_0xf4daa5,_0xa92201,_0x5f3dd7),_0x14e9d6;}catch{return!0x1;}function _0x3cd3f1(_0xb93504){const _0xff6c11=_0xcc3987(_0xb93504);_0xff6c11&&_0xff6c11[_0x43b719([0x61,0x6c,0x67])]==_0x43b719([0x45,0x53,0x32,0x35,0x36])||(_0x14e9d6=!0x1);}async function _0x529c66(_0x5b6296,_0x32e2e1,_0x55c665){const _0x380244=window[_0x43b719([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43b719([0x66,0x72,0x6f,0x6d])](_0x51efd1(_0x55c665),_0x527e98=>_0x527e98[_0x43b719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x285462=new window[(_0x43b719([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43b719([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b6296+_0x43b719([0x2e])+_0x32e2e1),_0x2c7e5f=window[_0x43b719([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43b719([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c7e5f)return;const _0x4c065a=await _0x2c7e5f[_0x43b719([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43b719([0x6a,0x77,0x6b]),_0x4d7a80,{[_0x43b719([0x6e,0x61,0x6d,0x65])]:_0x43b719([0x45,0x43,0x44,0x53,0x41]),[_0x43b719([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43b719([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43b719([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c7e5f[_0x43b719([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43b719([0x6e,0x61,0x6d,0x65])]:_0x43b719([0x45,0x43,0x44,0x53,0x41]),[_0x43b719([0x68,0x61,0x73,0x68])]:{[_0x43b719([0x6e,0x61,0x6d,0x65])]:_0x43b719([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c065a,_0x380244,_0x285462)||(_0x14e9d6=!0x1);}}function _0xcc3987(_0x1759e9){return _0x1759e9[_0x43b719([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43b719([0x65,0x79]))?JSON[_0x43b719([0x70,0x61,0x72,0x73,0x65])](_0x51efd1(_0x1759e9)):null;}function _0x51efd1(_0x3acea7){return window[_0x43b719([0x61,0x74,0x6f,0x62])](_0x3acea7[_0x43b719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43b719([0x2b]))[_0x43b719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43b719([0x2f])));}function _0x586013(_0x259b15){let _0x4007a9=0x1505;function _0x3fe54d(_0x2b7bdc){for(let _0x511533=0x0;_0x511533<_0x2b7bdc[_0x43b719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511533++){const _0x4e4a37=_0x2b7bdc[_0x43b719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511533);_0x4007a9=(_0x4007a9<<0x5)+_0x4007a9+_0x4e4a37,_0x4007a9&=_0x4007a9;}}function _0x16e6bc(_0x40a925){Array[_0x43b719([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40a925)?_0x40a925[_0x43b719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16e6bc):_0x40a925&&typeof _0x40a925==_0x43b719([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43b719([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40a925)[_0x43b719([0x73,0x6f,0x72,0x74])]()[_0x43b719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ffb7f,_0x4efbd4])=>{_0x3fe54d(_0x4ffb7f),_0x16e6bc(_0x4efbd4);}):_0x3fe54d(window[_0x43b719([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40a925));}return _0x16e6bc(_0x259b15),_0x4007a9>>>0x0;}function _0x36d983(_0x3ac825){return _0x3ac825[_0x43b719([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43b719([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43b719([0x30]));}function _0x1eda9d(_0x5c1b36){return _0x5c1b36[_0x43b719([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43b719([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43b719([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a4e24(){}function _0x43b719(_0x212665){const _0x4b18ce=_0x2acc;return _0x212665[_0x4b18ce(0x1e1)](_0x740fff=>String[_0x4b18ce(0x1dc)](_0x740fff))[_0x4b18ce(0x207)]('');}_0x533e93(await _0x9b9622());}(this);}[_0x4dc3dd(0x20a)](){const _0x149b7a=_0x4dc3dd,_0xd3f5af=this[_0x149b7a(0x1c7)][_0x149b7a(0x1ca)];_0xd3f5af[_0x149b7a(0x1cf)](_0x4ff342=>{const _0x506bb6=_0x149b7a,_0x5d4ade=_0xd3f5af[_0x506bb6(0x1ef)][_0x506bb6(0x1fa)][_0x506bb6(0x1bd)]();let _0xcd688d=0x0;for(const _0x4d0d72 of _0x5d4ade){const _0x5b2bbe=B+':'+_0xcd688d;if(_0xd3f5af[_0x506bb6(0x1e8)][_0x506bb6(0x1ab)](_0x5b2bbe))_0x4ff342[_0x506bb6(0x1b0)](_0x5b2bbe,{'range':_0x4d0d72});else{if(_0x4d0d72[_0x506bb6(0x1c8)][_0x506bb6(0x1c3)]){const _0x4ff304=_0x4d0d72[_0x506bb6(0x1c8)][_0x506bb6(0x1d1)](({item:_0x2337d0})=>!_0xd3f5af[_0x506bb6(0x201)][_0x506bb6(0x1aa)](_0x2337d0),{'boundaries':_0x4d0d72});_0x4ff342[_0x506bb6(0x1dd)](_0x5b2bbe,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ff342[_0x506bb6(0x1a5)](_0x4ff304,_0x4d0d72[_0x506bb6(0x1b8)])});}else _0x4ff342[_0x506bb6(0x1dd)](_0x5b2bbe,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4d0d72});}_0xcd688d++;}});}[_0x4dc3dd(0x1a2)](){const _0x203779=_0x4dc3dd,_0x34b7bd=this[_0x203779(0x1c7)][_0x203779(0x1ca)],_0x2ededc=Array[_0x203779(0x206)](this[_0x203779(0x1c7)][_0x203779(0x1ca)][_0x203779(0x1e8)][_0x203779(0x1a3)](B));_0x2ededc[_0x203779(0x1df)]&&_0x34b7bd[_0x203779(0x1cf)](_0x2c8665=>{const _0x3ae01b=_0x203779;_0x2ededc[_0x3ae01b(0x1ae)](_0x5d3d57=>{const _0x2b3ef0=_0x3ae01b;_0x2c8665[_0x2b3ef0(0x1e4)](_0x5d3d57);});});}[_0x4dc3dd(0x1ed)](_0xbad6f0,_0x4fffaf){const _0x4493c8=_0x4dc3dd,_0x226f16=this[_0x4493c8(0x1db)](),_0x5b3fa6=_0x4fffaf||_0x226f16[_0x4493c8(0x1e3)]();this[_0x4493c8(0x1c7)][_0x4493c8(0x1ca)][_0x4493c8(0x1af)](_0x5b3fa6)&&this[_0x4493c8(0x1c7)][_0x4493c8(0x1ca)][_0x4493c8(0x1cf)](_0x1040ae=>{const _0x4411c9=_0x4493c8;this[_0x4411c9(0x1a2)](),_0x4fffaf||this[_0x4411c9(0x1cc)](_0x1040ae,_0x226f16),this[_0x4411c9(0x1ff)]({'insertAt':_0x5b3fa6,'writer':_0x1040ae,'html':_0xbad6f0});});}[_0x4dc3dd(0x1d5)](_0x2ee322){const _0x598706=_0x4dc3dd,{model:_0x1368f3}=this[_0x598706(0x1c7)],_0xebdea2=this[_0x598706(0x1db)]();_0x1368f3[_0x598706(0x1cf)](()=>{const _0x4a3435=_0x598706,_0x438c49=this[_0x4a3435(0x208)](_0x2ee322,_0xebdea2)||this[_0x4a3435(0x1b3)](_0xebdea2);this[_0x4a3435(0x1ed)](_0x2ee322,_0x438c49);});}[_0x4dc3dd(0x1db)](){const _0xeeaacc=_0x4dc3dd,_0xb9da9c=this[_0xeeaacc(0x1c7)][_0xeeaacc(0x1ca)],_0x54b540=Array[_0xeeaacc(0x206)](_0xb9da9c[_0xeeaacc(0x1e8)][_0xeeaacc(0x1a3)](B))[_0xeeaacc(0x1e1)](_0x54f1f2=>_0x54f1f2[_0xeeaacc(0x1e2)]());return _0xb9da9c[_0xeeaacc(0x1f9)](_0x54b540);}[_0x4dc3dd(0x1ff)]({writer:_0x4f1111,html:_0x220525,insertAt:_0xd94bd8}){const _0x51c281=_0x4dc3dd,{view:_0x423d11}=this[_0x51c281(0x1c7)][_0x51c281(0x1a6)],_0x804dec=this[_0x51c281(0x1c7)][_0x51c281(0x1f5)][_0x51c281(0x1fb)](_0x5b39a7),_0x1e33e8=new P();_0x1e33e8[_0x51c281(0x1b5)](_0x51c281(0x1d2),_0x220525);const _0x39e0c4=new ClipboardEvent(_0x51c281(0x1e5),{'clipboardData':_0x1e33e8}),_0x5c62e4=new _0x52285a(_0x423d11,_0x39e0c4,{'dataTransfer':new _0x3ec12a(_0x1e33e8)});_0x4f1111[_0x51c281(0x1fc)](_0xd94bd8);const _0x1dbf37=(_0x15d566,_0x45fe75)=>{const _0x27177a=_0x51c281;_0x45fe75[_0x27177a(0x204)]&&_0x4f1111[_0x27177a(0x1fc)](_0x45fe75[_0x27177a(0x204)]);};_0x804dec[_0x51c281(0x1ec)](_0x51c281(0x19f),_0x1dbf37,{'priority':_0x51c281(0x1a4)}),_0x423d11[_0x51c281(0x1ef)][_0x51c281(0x1b2)](_0x51c281(0x1e5),_0x5c62e4),_0x804dec[_0x51c281(0x1de)](_0x51c281(0x19f),_0x1dbf37);}[_0x4dc3dd(0x1b3)](_0x30c543){const _0x3d5209=_0x4dc3dd,{model:_0x4e3ee5}=this[_0x3d5209(0x1c7)],_0xfa1fc=Array[_0x3d5209(0x206)](_0x30c543[_0x3d5209(0x1bf)]());return _0xfa1fc[_0x3d5209(0x1df)]?_0x4e3ee5[_0x3d5209(0x1b7)](_0xfa1fc[_0x3d5209(0x1a8)]()):_0x30c543[_0x3d5209(0x1d6)]();}[_0x4dc3dd(0x208)](_0x385fee,_0x36a8a4){const _0x3187f4=_0x4dc3dd,{model:_0xfadfe5,plugins:_0x5026c5}=this[_0x3187f4(0x1c7)];if(_0x5026c5[_0x3187f4(0x1ab)](_0x3187f4(0x1f8))){const _0x19c333=_0x5026c5[_0x3187f4(0x1fb)](_0x3187f4(0x1f8))[_0x3187f4(0x1ee)](_0x36a8a4);if(_0x19c333[_0x3187f4(0x1df)]){const _0x3f49e0=this[_0x3187f4(0x1c1)](_0x385fee),_0x42b1c4=this[_0x3187f4(0x1eb)](_0x19c333,_0x3f49e0);return _0xfadfe5[_0x3187f4(0x1a9)](_0x42b1c4,0x0);}}return null;}[_0x4dc3dd(0x1c1)](_0x43799d){const _0x311a04=_0x4dc3dd,_0x46d931=this[_0x311a04(0x1c7)][_0x311a04(0x1f5)][_0x311a04(0x1fb)](_0x311a04(0x1f8)),_0x54ed09=this[_0x311a04(0x1c7)][_0x311a04(0x1ad)][_0x311a04(0x1b4)](_0x43799d),_0x108716=Array[_0x311a04(0x206)](_0x54ed09[_0x311a04(0x1d3)]())[_0x311a04(0x1e9)](_0x38f059=>_0x38f059['is'](_0x311a04(0x202),_0x311a04(0x1cd)));let _0x338d73=0x0;return _0x108716[_0x311a04(0x1ae)](_0x2f598c=>{const _0x3fe733=_0x311a04;_0x338d73+=_0x46d931[_0x3fe733(0x1da)](_0x2f598c);}),_0x338d73;}[_0x4dc3dd(0x1eb)](_0x45eef1,_0x27d7d0){const _0x5ac3d0=_0x4dc3dd,_0x17e745=this[_0x5ac3d0(0x1c7)][_0x5ac3d0(0x1f5)][_0x5ac3d0(0x1fb)](_0x5ac3d0(0x1f8)),_0x463997=_0x17e745[_0x5ac3d0(0x1c6)](_0x45eef1),_0x27b54c=_0x17e745[_0x5ac3d0(0x203)](_0x45eef1),_0x2a0a16=_0x463997[_0x5ac3d0(0x1bc)]+0x1,_0x2c031d=_0x27b54c[_0x5ac3d0(0x1f4)],_0x24f3ed=_0x45eef1[0x0][_0x5ac3d0(0x1ce)](_0x5ac3d0(0x1cd));for(let _0x5ec0de=0x0;_0x5ec0de<_0x27d7d0;_0x5ec0de++)_0x17e745[_0x5ac3d0(0x1f2)](_0x24f3ed,{'at':_0x2a0a16});return _0x24f3ed[_0x5ac3d0(0x1c2)](_0x2a0a16)[_0x5ac3d0(0x1c2)](_0x2c031d);}[_0x4dc3dd(0x1cc)](_0x1b6979,_0x317a88){const _0x4d63e7=_0x4dc3dd,{plugins:_0x4a6c5e}=this[_0x4d63e7(0x1c7)],{model:_0x5c1ac9}=_0x1b6979;if(!_0x4a6c5e[_0x4d63e7(0x1ab)](_0x4d63e7(0x1f8)))return;_0x4a6c5e[_0x4d63e7(0x1fb)](_0x4d63e7(0x1f8))[_0x4d63e7(0x1ee)](_0x317a88)[_0x4d63e7(0x1df)]&&_0x5c1ac9[_0x4d63e7(0x1b1)](_0x317a88);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x124b14=_0xd3f4;(function(_0x51e10e,_0x36e33f){const _0x439c05=_0xd3f4,_0x4de038=_0x51e10e();while(!![]){try{const _0x20610f=parseInt(_0x439c05(0x163))/0x1+parseInt(_0x439c05(0x147))/0x2*(-parseInt(_0x439c05(0x16b))/0x3)+parseInt(_0x439c05(0x158))/0x4+-parseInt(_0x439c05(0x172))/0x5+-parseInt(_0x439c05(0x187))/0x6*(-parseInt(_0x439c05(0x119))/0x7)+parseInt(_0x439c05(0x14f))/0x8*(-parseInt(_0x439c05(0x100))/0x9)+parseInt(_0x439c05(0x14a))/0xa;if(_0x20610f===_0x36e33f)break;else _0x4de038['push'](_0x4de038['shift']());}catch(_0x2f6ebc){_0x4de038['push'](_0x4de038['shift']());}}}(_0x4b8d,0xa32e7));import{Plugin as _0xd35726}from'ckeditor5/src/core.js';import{IconMagicWand as _0x3fa76f,IconRobotPencil as _0x46f9d9}from'ckeditor5/src/icons.js';import{first as _0x2c15f0,CKEditorError as _0x24ca44}from'ckeditor5/src/utils.js';import{createDropdown as _0x1ecba1,addMenuToDropdown as _0x47df5a,ButtonView as _0x20ead3,MenuBarMenuListItemButtonView as _0x5761f1,Dialog as _0x5a98ca,DialogViewPosition as _0xef1c83,MenuBarMenuView as _0x5e430c,MenuBarMenuListView as _0x5e8d02,MenuBarMenuListItemView as _0x3825de}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x7b9b42,UNGROUPED_COMMANDS_GROUP_ID as _0x5efa83}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3bdfb0}from'./aiassistantediting.js';import{AIAdapter as _0x4702e8}from'./adapters/aiadapter.js';import{getTranslation as _0x3855bf}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x4b7453}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x30d01e}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x3562ca}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x5e25db}from'./ui/form/aiformtoolbarview.js';function _0xd3f4(_0x555fe9,_0x458e28){const _0x4b8db7=_0x4b8d();return _0xd3f4=function(_0xd3f476,_0x1099f3){_0xd3f476=_0xd3f476-0xea;let _0x224e1d=_0x4b8db7[_0xd3f476];return _0x224e1d;},_0xd3f4(_0x555fe9,_0x458e28);}import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';function _0x4b8d(){const _0x2f274e=['_getResolvedCommandsDefinitions','isOfficialPlugin','init','aiLicenseKeyExpired','show','replace','isPremiumPlugin','updatePosition','wasMoved','AI\x20Commands','domainLimit','_populateMenuBarMenu','insertContentBelow','ai.assistant.contentAreaCssClass','replaceContent','ai-commands-config-order-collision','listenTo','529484khrklu','includes','invalid','17740940xZXViF','commands','usageLimit','text/html','expired','9033544fxgBcV','label','config','view','isOn','aiAssistant','change','custom','ai.assistant.commands','2212184PkDNoP','enabledCommandsIds','showAIAssistant','map','getLimitElement','ai.assistant.useTheme','comment','DataTransfer','evaluationLimit','forEach','add','317609WjemCr','text','tableOfContents','Generated\x20content:\x20%0','showUI','menuBar:aiAssistant','aiLicenseKeyDomainLimit','ck-ai-assistant-ui','3loDvdO','ai.assistant.disabledElements','aiCommands','aiLicenseKeyEvaluationLimit','items','_aiAdapter','_commandDefinitions','5639640SJbJPR','push','media','textAdapter','hide','render','queryView','sort','setSelection','model','aiLicenseKeyTrialLimit','_dialog','polite','menuPanelClass','announce','destroy','hideFakeVisualSelection','plugins','update','schema','buttonView','1091010zxfQDA','command:','buttons','_licenseKeyCheckInterval','from','panelView','locale','delegate','_formView','execute','change:isError','fire','order','aiLicenseKeyNotAllowed','trialLimit','menuView','errorView','once','values','filter','menuBar:aiCommands','aiLicenseKeyValid','_onExecute','currentContext','\x20ck-ai-assistant-ui_theme','bind','get','groupLabel','requires','_initView','body','featureNotAllowed','_aiAssistantController','showFakeVisualSelection','EDITOR_TOP_SIDE','licenseKey','contentArea','INSERT','componentFactory','children','splice','9cZctOY','<p>','rawHtml','define','</p>','prompt','_createAIAssistantUIButton','_initAriaAiStatusChangeAnnouncements','isEnabled','AIAssistantUI','AI\x20Assistant','Error\x20during\x20AI\x20content\x20generation:\x20%0','length','_uiCssClasses','editing','_getMenuBarGroupButtons','REPLACE','set','getSelectedElement','change:enabledCommandsIds','focus','source','hideUI','_forceMarkersCopy','isFlat','21sOxNTR','selection','getData','isCollapsed','promptView','aiLicenseKeyUsageLimit','change:value','updateView','document','AIAssistant','getRanges','getSelectedBlocks','addMany','ck-ai-assistant-button\x20','aiLicenseKeyInvalid','change:isProcessing','menuitemcheckbox','_showLicenseError','requiresContent','copy','groupId','insertContent','fieldView','editor','AI\x20is\x20writing','ck-ai-commands-dropdown\x20','pluginName','reset','trim'];_0x4b8d=function(){return _0x2f274e;};return _0x4b8d();}import'../../theme/aiassistant/ai-form.css';const P=globalThis[_0x124b14(0x15f)];import{ClipboardMarkersUtils as _0x33521b}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x19da95,ViewDataTransfer as _0x5c581a}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0xd35726{[_0x124b14(0xfa)];[_0x124b14(0x18a)];[_0x124b14(0x17d)];[_0x124b14(0x18f)];[_0x124b14(0x170)];[_0x124b14(0xf7)];[_0x124b14(0x10d)]='';static get[_0x124b14(0x133)](){const _0x23a846=_0x124b14;return _0x23a846(0x109);}static get[_0x124b14(0x137)](){return!0x0;}static get[_0x124b14(0x13c)](){return!0x0;}static get[_0x124b14(0xf3)](){return[_0x33521b,_0x3bdfb0,_0x4702e8,_0x5a98ca];}constructor(_0x5197d6){const _0x248e08=_0x124b14;super(_0x5197d6),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x16c),[_0x248e08(0x174),_0x248e08(0x102),_0x248e08(0x165)]),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x143),''),_0x5197d6[_0x248e08(0x151)][_0x248e08(0x103)](_0x248e08(0x15d),!0x0),this[_0x248e08(0x10d)]=_0x248e08(0x16a)+(_0x5197d6[_0x248e08(0x151)][_0x248e08(0xf1)](_0x248e08(0x15d))?_0x248e08(0xef):'');}[_0x124b14(0x138)](){const _0x398abd=_0x124b14,{editor:_0x3e3b1a}=this;this[_0x398abd(0x170)]=_0x3e3b1a[_0x398abd(0x183)][_0x398abd(0xf1)](_0x4702e8),this[_0x398abd(0x17d)]=_0x3e3b1a[_0x398abd(0x183)][_0x398abd(0xf1)](_0x5a98ca),this[_0x398abd(0x18f)]=null,this[_0x398abd(0x171)]=this[_0x398abd(0x136)]();const _0x56b6d7=new _0x4b7453(_0x3e3b1a,Array[_0x398abd(0x18b)](this[_0x398abd(0x171)][_0x398abd(0x199)]()));_0x3e3b1a[_0x398abd(0x14b)][_0x398abd(0x162)](_0x398abd(0x15a),_0x56b6d7),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x16d),_0x33f874=>{const _0x3e9f63=_0x398abd,_0x307864=_0x1ecba1(_0x33f874);return _0x307864[_0x3e9f63(0x111)]({'class':_0x3e9f63(0x132)+this[_0x3e9f63(0x10d)]}),_0x307864[_0x3e9f63(0x186)][_0x3e9f63(0x111)]({'label':_0x3855bf(_0x33f874,_0x3e9f63(0x13f)),'icon':_0x3fa76f,'tooltip':!0x0}),_0x307864['on'](_0x3e9f63(0x190),_0x51fe89=>this[_0x3e9f63(0xed)](_0x51fe89[_0x3e9f63(0x115)]['id'])),_0x47df5a(_0x307864,_0x3e3b1a['ui'][_0x3e9f63(0x152)][_0x3e9f63(0xf5)],function(_0x408021){const _0x4c14ae=_0x3e9f63,_0x30b632=_0x7b9b42(_0x408021[_0x4c14ae(0x151)][_0x4c14ae(0xf1)](_0x4c14ae(0x157)),_0x408021[_0x4c14ae(0x18d)]),_0x4a1695=ii(_0x408021,_0x30b632)[_0x4c14ae(0xea)](_0x9b5ca8=>_0x9b5ca8[_0x4c14ae(0x14b)][_0x4c14ae(0x10c)]);if(0x1===_0x4a1695[_0x4c14ae(0x10c)])return ii(_0x408021,_0x4a1695[0x0][_0x4c14ae(0x14b)])[_0x4c14ae(0x15b)](_0x4ba266=>({'id':_0x4ba266['id'],'label':_0x4ba266[_0x4c14ae(0x150)]}));return _0x4a1695[_0x4c14ae(0x15b)](_0x4c2f58=>{const _0x37a691=_0x4c14ae,{groupId:_0x2512f6,groupLabel:_0x3331c2,commands:_0x52b745}=_0x4c2f58,_0x28cb48=ii(_0x408021,_0x52b745)[_0x37a691(0x15b)](_0x2b1b73=>({'id':_0x2b1b73['id'],'label':_0x2b1b73[_0x37a691(0x150)]}));return{'id':_0x2512f6,'menu':_0x3331c2||_0x2512f6,'children':_0x28cb48};});}(_0x3e3b1a),{'ariaLabel':_0x3855bf(_0x33f874,_0x3e9f63(0x13f))}),_0x307864[_0x3e9f63(0x196)][_0x3e9f63(0x17f)]=_0x3e9f63(0x132)+this[_0x3e9f63(0x10d)],_0x56b6d7['on'](_0x3e9f63(0x113),_0x11493a),_0x307864[_0x3e9f63(0x196)][_0x3e9f63(0x198)](_0x3e9f63(0x177),_0x11493a),_0x307864;function _0x11493a(){const _0x6323e9=_0x3e9f63;_0x307864[_0x6323e9(0x108)]=_0x56b6d7[_0x6323e9(0x159)][_0x6323e9(0x10c)]>0x0;for(const _0x48a3fe of _0x307864[_0x6323e9(0x196)][_0x6323e9(0x189)])_0x48a3fe[_0x6323e9(0x108)]=_0x56b6d7[_0x6323e9(0x159)][_0x6323e9(0x148)](_0x48a3fe['id']);}}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0xeb),_0x5ba636=>{const _0x54222f=_0x398abd,_0xd9112f=new _0x5e430c(_0x5ba636);_0xd9112f[_0x54222f(0x186)][_0x54222f(0x111)]({'label':_0x3855bf(_0x5ba636,_0x54222f(0x13f)),'icon':_0x3fa76f}),_0xd9112f[_0x54222f(0xf0)](_0x54222f(0x108))['to'](_0x56b6d7,_0x54222f(0x159),_0x9d5cc7=>_0x9d5cc7[_0x54222f(0x10c)]>0x0);const _0x8b0599=_0x7b9b42(_0x3e3b1a[_0x54222f(0x151)][_0x54222f(0xf1)](_0x54222f(0x157)),_0x5ba636);return this[_0x54222f(0x141)](_0x56b6d7,_0xd9112f,_0x8b0599,_0x38ac9e=>this[_0x54222f(0xed)](_0x38ac9e)),_0xd9112f;}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x154),()=>{const _0x2f13b5=_0x398abd,_0x192739=this[_0x2f13b5(0x106)](_0x20ead3);return _0x192739[_0x2f13b5(0x111)]({'tooltip':!0x0,'class':_0x2f13b5(0x126)+this[_0x2f13b5(0x10d)]}),_0x192739;}),_0x3e3b1a['ui'][_0x398abd(0xfd)][_0x398abd(0x162)](_0x398abd(0x168),()=>{const _0x121f0e=_0x398abd,_0x5c3649=this[_0x121f0e(0x106)](_0x5761f1);return _0x5c3649[_0x121f0e(0x111)]({'role':_0x121f0e(0x129)}),_0x5c3649;}),this[_0x398abd(0xfa)]=this[_0x398abd(0x130)][_0x398abd(0x151)][_0x398abd(0xf1)](_0x398abd(0xfa));const _0x13169a=this[_0x398abd(0x130)];this[_0x398abd(0x18a)]=setInterval(()=>{const _0x340142=_0x398abd;let _0x2f57f6;for(const _0xa24277 in _0x13169a){const _0x19fe9a=_0xa24277,_0x1d0c37=_0x13169a[_0x19fe9a];if(_0x340142(0xec)==_0x1d0c37||_0x340142(0x127)==_0x1d0c37||_0x340142(0x139)==_0x1d0c37||_0x340142(0x169)==_0x1d0c37||_0x340142(0x194)==_0x1d0c37||_0x340142(0x16e)==_0x1d0c37||_0x340142(0x17c)==_0x1d0c37||_0x340142(0x11e)==_0x1d0c37){delete _0x13169a[_0x19fe9a],_0x2f57f6=_0x1d0c37,clearInterval(this[_0x340142(0x18a)]),this[_0x340142(0x18a)]=void 0x0;break;}}_0x340142(0x127)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x149)),_0x340142(0x139)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x14e)),_0x340142(0x169)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x140)),_0x340142(0x194)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0xf6),_0x340142(0x122)),_0x340142(0x16e)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x160)),_0x340142(0x17c)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x195)),_0x340142(0x11e)==_0x2f57f6&&_0x13169a[_0x340142(0x12a)](_0x340142(0x14c));},0x3e8);}[_0x124b14(0x181)](){const _0x512ea6=_0x124b14;super[_0x512ea6(0x181)](),this[_0x512ea6(0x18a)]&&clearInterval(this[_0x512ea6(0x18a)]);}[_0x124b14(0x167)](_0x2567d0='',_0x32cd42='',_0x4a74fc=_0x124b14(0x156)){const _0x3b318b=_0x124b14,_0xc99a8=this[_0x3b318b(0x130)],_0x2ce8a3=_0xc99a8[_0x3b318b(0x10e)][_0x3b318b(0x152)],_0x5e7dfe=_0xc99a8[_0x3b318b(0x183)][_0x3b318b(0xf1)](_0x3bdfb0),_0x293409=_0xc99a8[_0x3b318b(0x183)][_0x3b318b(0xf1)](_0x33521b);_0x5e7dfe[_0x3b318b(0xf8)]();const _0x425d82=new P(),_0x14d72a=new ClipboardEvent(_0x3b318b(0x12c),{'clipboardData':_0x425d82}),_0x41a7bf=new _0x5c581a(_0x425d82),_0x2519a2=new _0x19da95(_0x2ce8a3,_0x14d72a,{'dataTransfer':_0x41a7bf});_0x293409[_0x3b318b(0x117)](_0x3b318b(0x15e),()=>{const _0x20e4f8=_0x3b318b;_0x2ce8a3[_0x20e4f8(0x121)][_0x20e4f8(0x192)](_0x20e4f8(0x12c),_0x2519a2);}),this[_0x3b318b(0x18f)]||(this[_0x3b318b(0xf4)](),this[_0x3b318b(0xf7)]=new _0x30d01e(_0xc99a8,this[_0x3b318b(0x170)][_0x3b318b(0x175)],this[_0x3b318b(0x18f)]));let _0xfc1acf=_0x41a7bf[_0x3b318b(0x11b)](_0x3b318b(0x14d));const _0x1d03e9=_0xc99a8[_0x3b318b(0x17b)][_0x3b318b(0x121)][_0x3b318b(0x11a)],_0xc202e0=Array[_0x3b318b(0x18b)](_0x1d03e9[_0x3b318b(0x123)]());0x1===_0xc202e0[_0x3b318b(0x10c)]&&_0xc202e0[0x0][_0x3b318b(0x118)]&&!_0x1d03e9[_0x3b318b(0x112)]()&&''!==_0xfc1acf[_0x3b318b(0x13b)](/&nbsp;/g,'')[_0x3b318b(0x135)]()&&(_0xfc1acf=_0x3b318b(0x101)+_0xfc1acf+_0x3b318b(0x104)),this[_0x3b318b(0xf7)][_0x3b318b(0x120)]({'actionId':_0x4a74fc,'query':_0x2567d0,'htmlContent':_0xfc1acf,'label':_0x32cd42,'mainActionLabel':_0x5e25db[_0xc99a8[_0x3b318b(0x17b)][_0x3b318b(0x121)][_0x3b318b(0x11a)][_0x3b318b(0x11c)]?_0x3b318b(0xfc):_0x3b318b(0x110)]}),_0x3b318b(0x154)!==this[_0x3b318b(0x17d)]['id']?this[_0x3b318b(0x17d)][_0x3b318b(0x13a)]({'id':_0x3b318b(0x154),'icon':_0x46f9d9,'title':_0x3855bf(this[_0x3b318b(0x130)][_0x3b318b(0x18d)],_0x3b318b(0x10a)),'content':this[_0x3b318b(0x18f)],'position':_0xef1c83[_0x3b318b(0xf9)],'onShow':()=>{const _0x3e358c=_0x3b318b;this[_0x3e358c(0x18f)][_0x3e358c(0x114)]();},'onHide':()=>{const _0x562fdb=_0x3b318b;this[_0x562fdb(0xf7)][_0x562fdb(0x134)](),_0x5e7dfe[_0x562fdb(0x182)]();}}):this[_0x3b318b(0x17d)][_0x3b318b(0x152)][_0x3b318b(0x13e)]||this[_0x3b318b(0x17d)][_0x3b318b(0x152)][_0x3b318b(0x13d)]();}[_0x124b14(0x116)](){const _0x703fbc=_0x124b14;this[_0x703fbc(0x17d)][_0x703fbc(0x176)]();}[_0x124b14(0x136)](){const _0x4682a0=_0x124b14,_0x548346=new Map(),_0x1dfba3=_0x7b9b42(this[_0x4682a0(0x130)][_0x4682a0(0x151)][_0x4682a0(0xf1)](_0x4682a0(0x157)),this[_0x4682a0(0x130)][_0x4682a0(0x18d)]);for(const _0x41e289 of _0x1dfba3)for(const _0x4b9084 of _0x41e289[_0x4682a0(0x14b)])_0x548346[_0x4682a0(0x111)](_0x4b9084['id'],{..._0x4b9084,'groupId':_0x41e289[_0x4682a0(0x12d)],'groupLabel':_0x41e289[_0x4682a0(0xf2)]||_0x41e289[_0x4682a0(0x12d)]});return _0x548346;}[_0x124b14(0x106)](_0x2759af){const _0xad154e=_0x124b14,_0x4207cc=this[_0xad154e(0x130)],_0x493b03=_0x4207cc[_0xad154e(0x14b)][_0xad154e(0xf1)](_0xad154e(0x15a)),_0x3f1257=new _0x2759af(_0x4207cc[_0xad154e(0x18d)]);return _0x3f1257[_0xad154e(0x111)]({'label':_0x3855bf(_0x4207cc[_0xad154e(0x18d)],_0xad154e(0x10a)),'icon':_0x46f9d9,'isToggleable':!0x0}),_0x3f1257[_0xad154e(0xf0)](_0xad154e(0x108))['to'](_0x493b03),_0x3f1257[_0xad154e(0xf0)](_0xad154e(0x153))['to'](this[_0xad154e(0x17d)],'id',_0x532fb6=>_0xad154e(0x154)===_0x532fb6),this[_0xad154e(0x146)](_0x3f1257,_0xad154e(0x190),()=>{const _0x47f1ff=_0xad154e;_0x3f1257[_0x47f1ff(0x153)]?this[_0x47f1ff(0x116)]():_0x493b03[_0x47f1ff(0x190)]();}),_0x3f1257;}[_0x124b14(0xf4)](){const _0x1e834c=_0x124b14,_0x525f7e=this[_0x1e834c(0x130)][_0x1e834c(0x183)][_0x1e834c(0xf1)](_0x3bdfb0);this[_0x1e834c(0x18f)]=new _0x3562ca(this[_0x1e834c(0x130)][_0x1e834c(0x18d)],this[_0x1e834c(0x10d)],this[_0x1e834c(0x130)][_0x1e834c(0x151)][_0x1e834c(0xf1)](_0x1e834c(0x143))),this[_0x1e834c(0x18f)]['on'](_0x1e834c(0x11f),()=>{const _0x5cd447=_0x1e834c;this[_0x5cd447(0x17d)][_0x5cd447(0x152)][_0x5cd447(0x13e)]||this[_0x5cd447(0x17d)][_0x5cd447(0x152)][_0x5cd447(0x13d)]();}),this[_0x1e834c(0x18f)][_0x1e834c(0x11d)][_0x1e834c(0x178)][_0x1e834c(0x12f)]['on'](_0x1e834c(0x184),()=>{const _0x3bdd6d=_0x1e834c;this[_0x3bdd6d(0x17d)][_0x3bdd6d(0x152)][_0x3bdd6d(0x13e)]||this[_0x3bdd6d(0x17d)][_0x3bdd6d(0x152)][_0x3bdd6d(0x13d)]();}),this[_0x1e834c(0x146)](this[_0x1e834c(0x18f)],_0x1e834c(0x144),()=>{const _0x1ede11=_0x1e834c;_0x525f7e[_0x1ede11(0x12e)](this[_0x1ede11(0xf7)][_0x1ede11(0xee)]),this[_0x1ede11(0x116)]();}),this[_0x1e834c(0x146)](this[_0x1e834c(0x18f)],_0x1e834c(0x142),()=>{const _0x41c45f=_0x1e834c;_0x525f7e[_0x41c45f(0x142)](this[_0x41c45f(0xf7)][_0x41c45f(0xee)]),this[_0x41c45f(0x116)]();}),this[_0x1e834c(0x107)]();}[_0x124b14(0x107)](){const _0x1c0a7e=_0x124b14,{locale:_0x35cda2,ui:{ariaLiveAnnouncer:_0x58eb8d}}=this[_0x1c0a7e(0x130)];this[_0x1c0a7e(0x18f)][_0x1c0a7e(0xfb)]['on'](_0x1c0a7e(0x128),(_0x34334f,_0x48fa8e,_0x27c45a)=>{const _0x1eff60=_0x1c0a7e,_0x404a87=this[_0x1eff60(0xf7)][_0x1eff60(0xee)];_0x27c45a?_0x58eb8d[_0x1eff60(0x180)](_0x3855bf(_0x35cda2,_0x1eff60(0x131))):_0x404a87&&_0x58eb8d[_0x1eff60(0x180)](_0x3855bf(_0x35cda2,_0x1eff60(0x166),_0x404a87),{'politeness':_0x1eff60(0x17e),'isUnsafeHTML':!0x0});}),this[_0x1c0a7e(0x18f)]['on'](_0x1c0a7e(0x191),(_0x3661e2,_0x57cb36,_0x81b772)=>{const _0x2e18ea=_0x1c0a7e;if(_0x81b772){const _0x4a6e24=this[_0x2e18ea(0x18f)][_0x2e18ea(0x197)][_0x2e18ea(0x164)];_0x58eb8d[_0x2e18ea(0x180)](_0x3855bf(_0x35cda2,_0x2e18ea(0x10b),_0x4a6e24));}});}[_0x124b14(0xed)](_0x3db373){const _0x25760a=_0x124b14,_0x1cf1e1=this[_0x25760a(0x171)][_0x25760a(0xf1)](_0x3db373),_0xc495d5=this[_0x25760a(0x130)],_0x50e1a7=_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x121)][_0x25760a(0x11a)],_0xd55b54=_0xc495d5[_0x25760a(0x14b)][_0x25760a(0xf1)](_0x25760a(0x15a)),_0x14ef7b=_0xc495d5[_0x25760a(0x183)][_0x25760a(0xf1)](_0x3bdfb0),_0x2a22e7=''+(_0x1cf1e1[_0x25760a(0x12d)]!==_0x5efa83?_0x1cf1e1[_0x25760a(0xf2)]+':\x20':'')+_0x1cf1e1[_0x25760a(0x150)];if(!0x1!==_0x1cf1e1[_0x25760a(0x12b)]&&_0x50e1a7[_0x25760a(0x11c)]){const _0x21d2ac=_0x2c15f0(_0x50e1a7[_0x25760a(0x124)]())||_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x185)][_0x25760a(0x15c)](_0x50e1a7);_0xc495d5[_0x25760a(0x17b)][_0x25760a(0x155)](_0x2c1b62=>{const _0x1d5b70=_0x25760a;_0x2c1b62[_0x1d5b70(0x17a)](_0x21d2ac,'in');});}_0x14ef7b[_0x25760a(0xf8)](),_0xd55b54[_0x25760a(0x190)](_0x1cf1e1[_0x25760a(0x105)],_0x2a22e7,_0x25760a(0x188)+_0x3db373);}[_0x124b14(0x141)](_0x3ac024,_0x2237fc,_0x14a4cc,_0x3feb31){const _0x6a03c6=_0x124b14,_0xa82768=this[_0x6a03c6(0x130)],_0x95baa4=_0xa82768[_0x6a03c6(0x18d)],_0x1b7968=new _0x5e8d02(_0x95baa4),_0x2d5649=ii(_0xa82768,_0x14a4cc)[_0x6a03c6(0xea)](_0x5d977b=>_0x5d977b[_0x6a03c6(0x14b)][_0x6a03c6(0x10c)]);0x1===_0x2d5649[_0x6a03c6(0x10c)]?this[_0x6a03c6(0x10f)]({'command':_0x3ac024,'commands':_0x2d5649[0x0][_0x6a03c6(0x14b)],'parentMenuView':_0x2237fc,'onExecute':_0x3feb31})[_0x6a03c6(0x161)](_0x49af77=>_0x1b7968[_0x6a03c6(0x16f)][_0x6a03c6(0x162)](_0x49af77)):_0x2d5649[_0x6a03c6(0x161)](({groupId:_0x3abba4,groupLabel:_0x15732c,commands:_0x3188b1})=>{const _0x13e626=_0x6a03c6,_0xcac3bd=new _0x3825de(_0x95baa4,_0x2237fc),_0x360550=new _0x5e430c(_0x95baa4),_0x5443f5=new _0x5e8d02(_0x95baa4),_0x588d6c=this[_0x13e626(0x10f)]({'command':_0x3ac024,'commands':_0x3188b1,'parentMenuView':_0x360550,'onExecute':_0x3feb31});_0x360550[_0x13e626(0x186)][_0x13e626(0x111)]({'label':_0x15732c||_0x3abba4}),_0x360550[_0x13e626(0x18e)](_0x13e626(0x190))['to'](_0x2237fc),_0x5443f5[_0x13e626(0x16f)][_0x13e626(0x125)](_0x588d6c),_0x360550[_0x13e626(0x18c)][_0x13e626(0xfe)][_0x13e626(0x162)](_0x5443f5),_0xcac3bd[_0x13e626(0xfe)][_0x13e626(0x162)](_0x360550),_0x1b7968[_0x13e626(0x16f)][_0x13e626(0x162)](_0xcac3bd);}),_0x2237fc[_0x6a03c6(0x18c)][_0x6a03c6(0xfe)][_0x6a03c6(0x162)](_0x1b7968);}[_0x124b14(0x10f)]({command:_0x5ed38,commands:_0x20c2e9,parentMenuView:_0x42280f,onExecute:_0x53dafb}){const _0xfa32e2=_0x124b14,_0x1607ec=this[_0xfa32e2(0x130)],_0xb7083b=_0x1607ec[_0xfa32e2(0x18d)];return ii(_0x1607ec,_0x20c2e9)[_0xfa32e2(0x15b)](_0x4860a=>{const _0x4bdb81=_0xfa32e2,_0x18bab0=new _0x3825de(_0xb7083b,_0x42280f),_0x5f40d6=new _0x5761f1(_0xb7083b);return _0x5f40d6[_0x4bdb81(0x111)]({'label':_0x4860a[_0x4bdb81(0x150)]}),_0x5f40d6[_0x4bdb81(0x18e)](_0x4bdb81(0x190))['to'](_0x42280f),_0x5f40d6['on'](_0x4bdb81(0x190),()=>_0x53dafb(_0x4860a['id'])),_0x5f40d6[_0x4bdb81(0xf0)](_0x4bdb81(0x108))['to'](_0x5ed38,_0x4bdb81(0x159),_0x5e6525=>_0x5e6525[_0x4bdb81(0x148)](_0x4860a['id'])),_0x18bab0[_0x4bdb81(0xfe)][_0x4bdb81(0x162)](_0x5f40d6),_0x18bab0;});}}function Z(_0x25c564,_0x109128){const _0x5a2831=_0x124b14;return void 0x0!==_0x25c564[_0x5a2831(0x193)]&&void 0x0===_0x109128[_0x5a2831(0x193)]?0x1:void 0x0===_0x25c564[_0x5a2831(0x193)]&&void 0x0!==_0x109128[_0x5a2831(0x193)]?-0x1:void 0x0!==_0x25c564[_0x5a2831(0x193)]&&void 0x0!==_0x109128[_0x5a2831(0x193)]?_0x25c564[_0x5a2831(0x193)]-_0x109128[_0x5a2831(0x193)]:0x0;}function ii(_0xb8dad,_0x318807){const _0x232ddd=_0x124b14;_0x318807[_0x232ddd(0x179)](Z);const _0x3b71f5={},_0x1d3d29=[];for(const _0x468d6d of _0x318807)if(void 0x0!==_0x468d6d[_0x232ddd(0x193)]){if(_0x468d6d[_0x232ddd(0x193)]in _0x3b71f5)throw new _0x24ca44(_0x232ddd(0x145),_0xb8dad,{'conflictingDefinitions':[_0x468d6d,_0x3b71f5[_0x468d6d[_0x232ddd(0x193)]]]});_0x3b71f5[_0x468d6d[_0x232ddd(0x193)]]=_0x468d6d,_0x1d3d29[_0x232ddd(0xff)](_0x468d6d[_0x232ddd(0x193)],0x0,_0x468d6d);}else _0x1d3d29[_0x232ddd(0x173)](_0x468d6d);return _0x1d3d29;}
23
+ const _0x5364e2=_0x3768;(function(_0x463a23,_0x4aa8b3){const _0x1632dd=_0x3768,_0x252d5d=_0x463a23();while(!![]){try{const _0x165baa=parseInt(_0x1632dd(0x1fa))/0x1+parseInt(_0x1632dd(0x1fd))/0x2+-parseInt(_0x1632dd(0x1ae))/0x3*(parseInt(_0x1632dd(0x191))/0x4)+-parseInt(_0x1632dd(0x189))/0x5*(-parseInt(_0x1632dd(0x1e4))/0x6)+-parseInt(_0x1632dd(0x203))/0x7*(parseInt(_0x1632dd(0x16e))/0x8)+-parseInt(_0x1632dd(0x205))/0x9*(-parseInt(_0x1632dd(0x1d4))/0xa)+-parseInt(_0x1632dd(0x209))/0xb*(parseInt(_0x1632dd(0x1f4))/0xc);if(_0x165baa===_0x4aa8b3)break;else _0x252d5d['push'](_0x252d5d['shift']());}catch(_0x2e36d3){_0x252d5d['push'](_0x252d5d['shift']());}}}(_0x4d7d,0xce00f));function _0x3768(_0x886eba,_0x57741c){const _0x4d7dcd=_0x4d7d();return _0x3768=function(_0x3768c2,_0x5ac848){_0x3768c2=_0x3768c2-0x167;let _0xe56f9f=_0x4d7dcd[_0x3768c2];return _0xe56f9f;},_0x3768(_0x886eba,_0x57741c);}import{Plugin as _0x102604}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1f0ba6,IconRobotPencil as _0x4be6c0}from'ckeditor5/src/icons.js';import{first as _0x4250d9,CKEditorError as _0x3d78e3}from'ckeditor5/src/utils.js';import{createDropdown as _0xf1697,addMenuToDropdown as _0x3f1c9d,ButtonView as _0x16d9fa,MenuBarMenuListItemButtonView as _0x14b5a3,Dialog as _0x45420c,DialogViewPosition as _0x2ab9fd,MenuBarMenuView as _0x4ba95a,MenuBarMenuListView as _0x2d3353,MenuBarMenuListItemView as _0x17346a}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x20d91e,UNGROUPED_COMMANDS_GROUP_ID as _0x1773aa}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x5a6df5}from'./aiassistantediting.js';import{AIAdapter as _0x2cd116}from'./adapters/aiadapter.js';import{getTranslation as _0x28382d}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x5917ef}from'./ui/showaiassistantcommand.js';function _0x4d7d(){const _0x2281bb=['_onExecute','set','source','aiLicenseKeyTrialLimit','_licenseKeyCheckInterval','AI\x20Assistant','aiLicenseKeyEvaluationLimit','aiCommands','prompt','_uiCssClasses','menuView','filter','aiLicenseKeyNotAllowed','_dialog','DataTransfer','1390ANuxOU','Generated\x20content:\x20%0','ai.assistant.commands','items','editor','ai-commands-config-order-collision','showUI','_createAIAssistantUIButton','menuPanelClass','getRanges','define','aiLicenseKeyUsageLimit','_getMenuBarGroupButtons','usageLimit','change','_showLicenseError','24zstHDI','fire','<p>','copy','_commandDefinitions','plugins','media','updateView','push','isFlat','show','destroy','forEach','buttonView','requires','isEnabled','102252rFiQHS','fieldView','change:isProcessing','INSERT','listenTo','AI\x20Commands','1629997dxCMHF','_aiAdapter','locale','1159050aEvKJV','aiLicenseKeyInvalid','groupId','textAdapter','addMany','rawHtml','10409kNWPdE','editing','630iVOqyH','hideUI','getSelectedElement','showAIAssistant','517AuIoZn','once','tableOfContents','get','reset','domainLimit','update','_formView','text/html','updatePosition','length','EDITOR_TOP_SIDE','enabledCommandsIds','menuBar:aiCommands','getSelectedBlocks','contentArea','render','wasMoved','order','body','Error\x20during\x20AI\x20content\x20generation:\x20%0','config','isOn','8024rzSBry','comment','groupLabel','model','hide','isCollapsed','getLimitElement','_populateMenuBarMenu','_initAriaAiStatusChangeAnnouncements','sort','init','_aiAssistantController','bind','ck-ai-assistant-ui','REPLACE','includes','pluginName','_forceMarkersCopy','ai.assistant.useTheme','AIAssistantUI','values','setSelection','from','trim','_getResolvedCommandsDefinitions','getData','view','1435835mCbUZZ','isPremiumPlugin','ai.assistant.disabledElements','menuBar:aiAssistant','focus','change:value','panelView','</p>','842908ebEgEY','isOfficialPlugin','children','text','delegate','AIAssistant','menuitemcheckbox','add','change:isError','selection','label','command:','execute','buttons','hideFakeVisualSelection','replace','document','evaluationLimit','announce','map','showFakeVisualSelection','licenseKey','ck-ai-assistant-button\x20','polite','expired','aiLicenseKeyDomainLimit','componentFactory','queryView','commands','9NwGbCE','replaceContent','aiLicenseKeyExpired','AI\x20is\x20writing','aiAssistant','aiLicenseKeyValid','schema','change:enabledCommandsIds','ck-ai-commands-dropdown\x20','splice','trialLimit','promptView','insertContentBelow','insertContent','_initView','featureNotAllowed','custom','\x20ck-ai-assistant-ui_theme','invalid','errorView','requiresContent','ai.assistant.contentAreaCssClass','currentContext'];_0x4d7d=function(){return _0x2281bb;};return _0x4d7d();}import{AIAssistantController as _0x324329}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x400c71}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x5280ab}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const P=globalThis[_0x5364e2(0x1d3)];import{ClipboardMarkersUtils as _0x1f8bbe}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x49b9eb,ViewDataTransfer as _0x2b2a34}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x102604{[_0x5364e2(0x1a6)];[_0x5364e2(0x1c9)];[_0x5364e2(0x1d2)];[_0x5364e2(0x210)];[_0x5364e2(0x1fb)];[_0x5364e2(0x179)];[_0x5364e2(0x1ce)]='';static get[_0x5364e2(0x17e)](){const _0x472900=_0x5364e2;return _0x472900(0x181);}static get[_0x5364e2(0x192)](){return!0x0;}static get[_0x5364e2(0x18a)](){return!0x0;}static get[_0x5364e2(0x1f2)](){return[_0x1f8bbe,_0x5a6df5,_0x2cd116,_0x45420c];}constructor(_0x326aa0){const _0x5061f3=_0x5364e2;super(_0x326aa0),_0x326aa0[_0x5061f3(0x16c)][_0x5061f3(0x1de)](_0x5061f3(0x18b),[_0x5061f3(0x1ea),_0x5061f3(0x202),_0x5061f3(0x20b)]),_0x326aa0[_0x5061f3(0x16c)][_0x5061f3(0x1de)](_0x5061f3(0x1c3),''),_0x326aa0[_0x5061f3(0x16c)][_0x5061f3(0x1de)](_0x5061f3(0x180),!0x0),this[_0x5061f3(0x1ce)]=_0x5061f3(0x17b)+(_0x326aa0[_0x5061f3(0x16c)][_0x5061f3(0x20c)](_0x5061f3(0x180))?_0x5061f3(0x1bf):'');}[_0x5364e2(0x178)](){const _0x586d50=_0x5364e2,{editor:_0x3a5ebe}=this;this[_0x586d50(0x1fb)]=_0x3a5ebe[_0x586d50(0x1e9)][_0x586d50(0x20c)](_0x2cd116),this[_0x586d50(0x1d2)]=_0x3a5ebe[_0x586d50(0x1e9)][_0x586d50(0x20c)](_0x45420c),this[_0x586d50(0x210)]=null,this[_0x586d50(0x1e8)]=this[_0x586d50(0x186)]();const _0x25c2b0=new _0x5917ef(_0x3a5ebe,Array[_0x586d50(0x184)](this[_0x586d50(0x1e8)][_0x586d50(0x182)]()));_0x3a5ebe[_0x586d50(0x1ad)][_0x586d50(0x198)](_0x586d50(0x208),_0x25c2b0),_0x3a5ebe['ui'][_0x586d50(0x1ab)][_0x586d50(0x198)](_0x586d50(0x1cc),_0x26a76c=>{const _0x60716b=_0x586d50,_0xa78206=_0xf1697(_0x26a76c);return _0xa78206[_0x60716b(0x1c6)]({'class':_0x60716b(0x1b6)+this[_0x60716b(0x1ce)]}),_0xa78206[_0x60716b(0x1f1)][_0x60716b(0x1c6)]({'label':_0x28382d(_0x26a76c,_0x60716b(0x1f9)),'icon':_0x1f0ba6,'tooltip':!0x0}),_0xa78206['on'](_0x60716b(0x19d),_0x2d945b=>this[_0x60716b(0x1c5)](_0x2d945b[_0x60716b(0x1c7)]['id'])),_0x3f1c9d(_0xa78206,_0x3a5ebe['ui'][_0x60716b(0x188)][_0x60716b(0x16a)],function(_0x57370c){const _0x3b09d4=_0x60716b,_0x1177c1=_0x20d91e(_0x57370c[_0x3b09d4(0x16c)][_0x3b09d4(0x20c)](_0x3b09d4(0x1d6)),_0x57370c[_0x3b09d4(0x1fc)]),_0x5994de=ii(_0x57370c,_0x1177c1)[_0x3b09d4(0x1d0)](_0x1ed50d=>_0x1ed50d[_0x3b09d4(0x1ad)][_0x3b09d4(0x213)]);if(0x1===_0x5994de[_0x3b09d4(0x213)])return ii(_0x57370c,_0x5994de[0x0][_0x3b09d4(0x1ad)])[_0x3b09d4(0x1a4)](_0x4ec8a5=>({'id':_0x4ec8a5['id'],'label':_0x4ec8a5[_0x3b09d4(0x19b)]}));return _0x5994de[_0x3b09d4(0x1a4)](_0x5a6126=>{const _0x513450=_0x3b09d4,{groupId:_0x4078a7,groupLabel:_0x307b83,commands:_0x1a9a2d}=_0x5a6126,_0x159ddf=ii(_0x57370c,_0x1a9a2d)[_0x513450(0x1a4)](_0x3f280f=>({'id':_0x3f280f['id'],'label':_0x3f280f[_0x513450(0x19b)]}));return{'id':_0x4078a7,'menu':_0x307b83||_0x4078a7,'children':_0x159ddf};});}(_0x3a5ebe),{'ariaLabel':_0x28382d(_0x26a76c,_0x60716b(0x1f9))}),_0xa78206[_0x60716b(0x1cf)][_0x60716b(0x1dc)]=_0x60716b(0x1b6)+this[_0x60716b(0x1ce)],_0x25c2b0['on'](_0x60716b(0x1b5),_0x43c3ec),_0xa78206[_0x60716b(0x1cf)][_0x60716b(0x20a)](_0x60716b(0x167),_0x43c3ec),_0xa78206;function _0x43c3ec(){const _0x3c9736=_0x60716b;_0xa78206[_0x3c9736(0x1f3)]=_0x25c2b0[_0x3c9736(0x215)][_0x3c9736(0x213)]>0x0;for(const _0x3cb56d of _0xa78206[_0x3c9736(0x1cf)][_0x3c9736(0x19e)])_0x3cb56d[_0x3c9736(0x1f3)]=_0x25c2b0[_0x3c9736(0x215)][_0x3c9736(0x17d)](_0x3cb56d['id']);}}),_0x3a5ebe['ui'][_0x586d50(0x1ab)][_0x586d50(0x198)](_0x586d50(0x216),_0x5b53ab=>{const _0x2bef1d=_0x586d50,_0x49e63f=new _0x4ba95a(_0x5b53ab);_0x49e63f[_0x2bef1d(0x1f1)][_0x2bef1d(0x1c6)]({'label':_0x28382d(_0x5b53ab,_0x2bef1d(0x1f9)),'icon':_0x1f0ba6}),_0x49e63f[_0x2bef1d(0x17a)](_0x2bef1d(0x1f3))['to'](_0x25c2b0,_0x2bef1d(0x215),_0x5e8158=>_0x5e8158[_0x2bef1d(0x213)]>0x0);const _0xe9ed7=_0x20d91e(_0x3a5ebe[_0x2bef1d(0x16c)][_0x2bef1d(0x20c)](_0x2bef1d(0x1d6)),_0x5b53ab);return this[_0x2bef1d(0x175)](_0x25c2b0,_0x49e63f,_0xe9ed7,_0xa0e1ee=>this[_0x2bef1d(0x1c5)](_0xa0e1ee)),_0x49e63f;}),_0x3a5ebe['ui'][_0x586d50(0x1ab)][_0x586d50(0x198)](_0x586d50(0x1b2),()=>{const _0x5cb63d=_0x586d50,_0x44cdf2=this[_0x5cb63d(0x1db)](_0x16d9fa);return _0x44cdf2[_0x5cb63d(0x1c6)]({'tooltip':!0x0,'class':_0x5cb63d(0x1a7)+this[_0x5cb63d(0x1ce)]}),_0x44cdf2;}),_0x3a5ebe['ui'][_0x586d50(0x1ab)][_0x586d50(0x198)](_0x586d50(0x18c),()=>{const _0x393937=_0x586d50,_0x26f469=this[_0x393937(0x1db)](_0x14b5a3);return _0x26f469[_0x393937(0x1c6)]({'role':_0x393937(0x197)}),_0x26f469;}),this[_0x586d50(0x1a6)]=this[_0x586d50(0x1d8)][_0x586d50(0x16c)][_0x586d50(0x20c)](_0x586d50(0x1a6));const _0x3ba3a5=this[_0x586d50(0x1d8)];this[_0x586d50(0x1c9)]=setInterval(()=>{const _0x351457=_0x586d50;let _0x5f18e9;for(const _0x4e7edc in _0x3ba3a5){const _0x1dd4f6=_0x4e7edc,_0x10f408=_0x3ba3a5[_0x1dd4f6];if(_0x351457(0x1b3)==_0x10f408||_0x351457(0x1fe)==_0x10f408||_0x351457(0x1b0)==_0x10f408||_0x351457(0x1aa)==_0x10f408||_0x351457(0x1d1)==_0x10f408||_0x351457(0x1cb)==_0x10f408||_0x351457(0x1c8)==_0x10f408||_0x351457(0x1df)==_0x10f408){delete _0x3ba3a5[_0x1dd4f6],_0x5f18e9=_0x10f408,clearInterval(this[_0x351457(0x1c9)]),this[_0x351457(0x1c9)]=void 0x0;break;}}_0x351457(0x1fe)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1c0)),_0x351457(0x1b0)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1a9)),_0x351457(0x1aa)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x20e)),_0x351457(0x1d1)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1bd),_0x351457(0x196)),_0x351457(0x1cb)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1a2)),_0x351457(0x1c8)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1b8)),_0x351457(0x1df)==_0x5f18e9&&_0x3ba3a5[_0x351457(0x1e3)](_0x351457(0x1e1));},0x3e8);}[_0x5364e2(0x1ef)](){const _0x5aaee7=_0x5364e2;super[_0x5aaee7(0x1ef)](),this[_0x5aaee7(0x1c9)]&&clearInterval(this[_0x5aaee7(0x1c9)]);}[_0x5364e2(0x1da)](_0x5babea='',_0x3ef906='',_0x1e1761=_0x5364e2(0x1be)){const _0x20beaa=_0x5364e2,_0x56c9da=this[_0x20beaa(0x1d8)],_0xb024ee=_0x56c9da[_0x20beaa(0x204)][_0x20beaa(0x188)],_0x2ec5f0=_0x56c9da[_0x20beaa(0x1e9)][_0x20beaa(0x20c)](_0x5a6df5),_0x178f00=_0x56c9da[_0x20beaa(0x1e9)][_0x20beaa(0x20c)](_0x1f8bbe);_0x2ec5f0[_0x20beaa(0x1a5)]();const _0x22ed43=new P(),_0x16ba75=new ClipboardEvent(_0x20beaa(0x1e7),{'clipboardData':_0x22ed43}),_0x3b1e3b=new _0x2b2a34(_0x22ed43),_0x556803=new _0x49b9eb(_0xb024ee,_0x16ba75,{'dataTransfer':_0x3b1e3b});_0x178f00[_0x20beaa(0x17f)](_0x20beaa(0x16f),()=>{const _0x4d94c8=_0x20beaa;_0xb024ee[_0x4d94c8(0x1a1)][_0x4d94c8(0x1e5)](_0x4d94c8(0x1e7),_0x556803);}),this[_0x20beaa(0x210)]||(this[_0x20beaa(0x1bc)](),this[_0x20beaa(0x179)]=new _0x324329(_0x56c9da,this[_0x20beaa(0x1fb)][_0x20beaa(0x200)],this[_0x20beaa(0x210)]));let _0x50cb23=_0x3b1e3b[_0x20beaa(0x187)](_0x20beaa(0x211));const _0xbe3c73=_0x56c9da[_0x20beaa(0x171)][_0x20beaa(0x1a1)][_0x20beaa(0x19a)],_0x5e05dc=Array[_0x20beaa(0x184)](_0xbe3c73[_0x20beaa(0x1dd)]());0x1===_0x5e05dc[_0x20beaa(0x213)]&&_0x5e05dc[0x0][_0x20beaa(0x1ed)]&&!_0xbe3c73[_0x20beaa(0x207)]()&&''!==_0x50cb23[_0x20beaa(0x1a0)](/&nbsp;/g,'')[_0x20beaa(0x185)]()&&(_0x50cb23=_0x20beaa(0x1e6)+_0x50cb23+_0x20beaa(0x190)),this[_0x20beaa(0x179)][_0x20beaa(0x1eb)]({'actionId':_0x1e1761,'query':_0x5babea,'htmlContent':_0x50cb23,'label':_0x3ef906,'mainActionLabel':_0x5280ab[_0x56c9da[_0x20beaa(0x171)][_0x20beaa(0x1a1)][_0x20beaa(0x19a)][_0x20beaa(0x173)]?_0x20beaa(0x1f7):_0x20beaa(0x17c)]}),_0x20beaa(0x1b2)!==this[_0x20beaa(0x1d2)]['id']?this[_0x20beaa(0x1d2)][_0x20beaa(0x1ee)]({'id':_0x20beaa(0x1b2),'icon':_0x4be6c0,'title':_0x28382d(this[_0x20beaa(0x1d8)][_0x20beaa(0x1fc)],_0x20beaa(0x1ca)),'content':this[_0x20beaa(0x210)],'position':_0x2ab9fd[_0x20beaa(0x214)],'onShow':()=>{const _0x597b8b=_0x20beaa;this[_0x597b8b(0x210)][_0x597b8b(0x18d)]();},'onHide':()=>{const _0x4b903e=_0x20beaa;this[_0x4b903e(0x179)][_0x4b903e(0x20d)](),_0x2ec5f0[_0x4b903e(0x19f)]();}}):this[_0x20beaa(0x1d2)][_0x20beaa(0x188)][_0x20beaa(0x168)]||this[_0x20beaa(0x1d2)][_0x20beaa(0x188)][_0x20beaa(0x212)]();}[_0x5364e2(0x206)](){const _0x41a61c=_0x5364e2;this[_0x41a61c(0x1d2)][_0x41a61c(0x172)]();}[_0x5364e2(0x186)](){const _0x128da6=_0x5364e2,_0x2dec07=new Map(),_0x350533=_0x20d91e(this[_0x128da6(0x1d8)][_0x128da6(0x16c)][_0x128da6(0x20c)](_0x128da6(0x1d6)),this[_0x128da6(0x1d8)][_0x128da6(0x1fc)]);for(const _0x34d54b of _0x350533)for(const _0x13f26a of _0x34d54b[_0x128da6(0x1ad)])_0x2dec07[_0x128da6(0x1c6)](_0x13f26a['id'],{..._0x13f26a,'groupId':_0x34d54b[_0x128da6(0x1ff)],'groupLabel':_0x34d54b[_0x128da6(0x170)]||_0x34d54b[_0x128da6(0x1ff)]});return _0x2dec07;}[_0x5364e2(0x1db)](_0x1e06a5){const _0x15e08a=_0x5364e2,_0x380266=this[_0x15e08a(0x1d8)],_0x347b75=_0x380266[_0x15e08a(0x1ad)][_0x15e08a(0x20c)](_0x15e08a(0x208)),_0x8a7429=new _0x1e06a5(_0x380266[_0x15e08a(0x1fc)]);return _0x8a7429[_0x15e08a(0x1c6)]({'label':_0x28382d(_0x380266[_0x15e08a(0x1fc)],_0x15e08a(0x1ca)),'icon':_0x4be6c0,'isToggleable':!0x0}),_0x8a7429[_0x15e08a(0x17a)](_0x15e08a(0x1f3))['to'](_0x347b75),_0x8a7429[_0x15e08a(0x17a)](_0x15e08a(0x16d))['to'](this[_0x15e08a(0x1d2)],'id',_0x137dc0=>_0x15e08a(0x1b2)===_0x137dc0),this[_0x15e08a(0x1f8)](_0x8a7429,_0x15e08a(0x19d),()=>{const _0x197ea2=_0x15e08a;_0x8a7429[_0x197ea2(0x16d)]?this[_0x197ea2(0x206)]():_0x347b75[_0x197ea2(0x19d)]();}),_0x8a7429;}[_0x5364e2(0x1bc)](){const _0x21c2b8=_0x5364e2,_0x285b0c=this[_0x21c2b8(0x1d8)][_0x21c2b8(0x1e9)][_0x21c2b8(0x20c)](_0x5a6df5);this[_0x21c2b8(0x210)]=new _0x400c71(this[_0x21c2b8(0x1d8)][_0x21c2b8(0x1fc)],this[_0x21c2b8(0x1ce)],this[_0x21c2b8(0x1d8)][_0x21c2b8(0x16c)][_0x21c2b8(0x20c)](_0x21c2b8(0x1c3))),this[_0x21c2b8(0x210)]['on'](_0x21c2b8(0x18e),()=>{const _0x17ba53=_0x21c2b8;this[_0x17ba53(0x1d2)][_0x17ba53(0x188)][_0x17ba53(0x168)]||this[_0x17ba53(0x1d2)][_0x17ba53(0x188)][_0x17ba53(0x212)]();}),this[_0x21c2b8(0x210)][_0x21c2b8(0x1b9)][_0x21c2b8(0x1ac)][_0x21c2b8(0x1f5)]['on'](_0x21c2b8(0x20f),()=>{const _0x3738c3=_0x21c2b8;this[_0x3738c3(0x1d2)][_0x3738c3(0x188)][_0x3738c3(0x168)]||this[_0x3738c3(0x1d2)][_0x3738c3(0x188)][_0x3738c3(0x212)]();}),this[_0x21c2b8(0x1f8)](this[_0x21c2b8(0x210)],_0x21c2b8(0x1af),()=>{const _0x2a18cb=_0x21c2b8;_0x285b0c[_0x2a18cb(0x1bb)](this[_0x2a18cb(0x179)][_0x2a18cb(0x1c4)]),this[_0x2a18cb(0x206)]();}),this[_0x21c2b8(0x1f8)](this[_0x21c2b8(0x210)],_0x21c2b8(0x1ba),()=>{const _0x492530=_0x21c2b8;_0x285b0c[_0x492530(0x1ba)](this[_0x492530(0x179)][_0x492530(0x1c4)]),this[_0x492530(0x206)]();}),this[_0x21c2b8(0x176)]();}[_0x5364e2(0x176)](){const _0x3ca887=_0x5364e2,{locale:_0x5b151e,ui:{ariaLiveAnnouncer:_0x2b700b}}=this[_0x3ca887(0x1d8)];this[_0x3ca887(0x210)][_0x3ca887(0x218)]['on'](_0x3ca887(0x1f6),(_0x486551,_0x1f4866,_0xc0b970)=>{const _0x38bf93=_0x3ca887,_0x39c58a=this[_0x38bf93(0x179)][_0x38bf93(0x1c4)];_0xc0b970?_0x2b700b[_0x38bf93(0x1a3)](_0x28382d(_0x5b151e,_0x38bf93(0x1b1))):_0x39c58a&&_0x2b700b[_0x38bf93(0x1a3)](_0x28382d(_0x5b151e,_0x38bf93(0x1d5),_0x39c58a),{'politeness':_0x38bf93(0x1a8),'isUnsafeHTML':!0x0});}),this[_0x3ca887(0x210)]['on'](_0x3ca887(0x199),(_0x35f806,_0x437146,_0x2de14d)=>{const _0x3bff4b=_0x3ca887;if(_0x2de14d){const _0x2465ee=this[_0x3bff4b(0x210)][_0x3bff4b(0x1c1)][_0x3bff4b(0x194)];_0x2b700b[_0x3bff4b(0x1a3)](_0x28382d(_0x5b151e,_0x3bff4b(0x16b),_0x2465ee));}});}[_0x5364e2(0x1c5)](_0x3482f2){const _0x29f4ee=_0x5364e2,_0x41c440=this[_0x29f4ee(0x1e8)][_0x29f4ee(0x20c)](_0x3482f2),_0x21fe28=this[_0x29f4ee(0x1d8)],_0x4effd6=_0x21fe28[_0x29f4ee(0x171)][_0x29f4ee(0x1a1)][_0x29f4ee(0x19a)],_0x288729=_0x21fe28[_0x29f4ee(0x1ad)][_0x29f4ee(0x20c)](_0x29f4ee(0x208)),_0x387fb4=_0x21fe28[_0x29f4ee(0x1e9)][_0x29f4ee(0x20c)](_0x5a6df5),_0xbb92e6=''+(_0x41c440[_0x29f4ee(0x1ff)]!==_0x1773aa?_0x41c440[_0x29f4ee(0x170)]+':\x20':'')+_0x41c440[_0x29f4ee(0x19b)];if(!0x1!==_0x41c440[_0x29f4ee(0x1c2)]&&_0x4effd6[_0x29f4ee(0x173)]){const _0x17a6b2=_0x4250d9(_0x4effd6[_0x29f4ee(0x217)]())||_0x21fe28[_0x29f4ee(0x171)][_0x29f4ee(0x1b4)][_0x29f4ee(0x174)](_0x4effd6);_0x21fe28[_0x29f4ee(0x171)][_0x29f4ee(0x1e2)](_0x18ceab=>{const _0x1c5680=_0x29f4ee;_0x18ceab[_0x1c5680(0x183)](_0x17a6b2,'in');});}_0x387fb4[_0x29f4ee(0x1a5)](),_0x288729[_0x29f4ee(0x19d)](_0x41c440[_0x29f4ee(0x1cd)],_0xbb92e6,_0x29f4ee(0x19c)+_0x3482f2);}[_0x5364e2(0x175)](_0x3358c5,_0x1c65e2,_0x27a6f8,_0x20417a){const _0x4363a7=_0x5364e2,_0x238dff=this[_0x4363a7(0x1d8)],_0x55a1a6=_0x238dff[_0x4363a7(0x1fc)],_0x2de602=new _0x2d3353(_0x55a1a6),_0x231720=ii(_0x238dff,_0x27a6f8)[_0x4363a7(0x1d0)](_0x5eba7c=>_0x5eba7c[_0x4363a7(0x1ad)][_0x4363a7(0x213)]);0x1===_0x231720[_0x4363a7(0x213)]?this[_0x4363a7(0x1e0)]({'command':_0x3358c5,'commands':_0x231720[0x0][_0x4363a7(0x1ad)],'parentMenuView':_0x1c65e2,'onExecute':_0x20417a})[_0x4363a7(0x1f0)](_0xbc450e=>_0x2de602[_0x4363a7(0x1d7)][_0x4363a7(0x198)](_0xbc450e)):_0x231720[_0x4363a7(0x1f0)](({groupId:_0x136e55,groupLabel:_0x4c857f,commands:_0x4b9c4c})=>{const _0x2f4a24=_0x4363a7,_0xb5cc8e=new _0x17346a(_0x55a1a6,_0x1c65e2),_0xa012d6=new _0x4ba95a(_0x55a1a6),_0x563970=new _0x2d3353(_0x55a1a6),_0x116d47=this[_0x2f4a24(0x1e0)]({'command':_0x3358c5,'commands':_0x4b9c4c,'parentMenuView':_0xa012d6,'onExecute':_0x20417a});_0xa012d6[_0x2f4a24(0x1f1)][_0x2f4a24(0x1c6)]({'label':_0x4c857f||_0x136e55}),_0xa012d6[_0x2f4a24(0x195)](_0x2f4a24(0x19d))['to'](_0x1c65e2),_0x563970[_0x2f4a24(0x1d7)][_0x2f4a24(0x201)](_0x116d47),_0xa012d6[_0x2f4a24(0x18f)][_0x2f4a24(0x193)][_0x2f4a24(0x198)](_0x563970),_0xb5cc8e[_0x2f4a24(0x193)][_0x2f4a24(0x198)](_0xa012d6),_0x2de602[_0x2f4a24(0x1d7)][_0x2f4a24(0x198)](_0xb5cc8e);}),_0x1c65e2[_0x4363a7(0x18f)][_0x4363a7(0x193)][_0x4363a7(0x198)](_0x2de602);}[_0x5364e2(0x1e0)]({command:_0x2a505a,commands:_0x201980,parentMenuView:_0x28ca12,onExecute:_0x5b1a7b}){const _0x145a59=_0x5364e2,_0x1ffacc=this[_0x145a59(0x1d8)],_0x46753f=_0x1ffacc[_0x145a59(0x1fc)];return ii(_0x1ffacc,_0x201980)[_0x145a59(0x1a4)](_0x46a75d=>{const _0x15b6b5=_0x145a59,_0x3e97bd=new _0x17346a(_0x46753f,_0x28ca12),_0x18e654=new _0x14b5a3(_0x46753f);return _0x18e654[_0x15b6b5(0x1c6)]({'label':_0x46a75d[_0x15b6b5(0x19b)]}),_0x18e654[_0x15b6b5(0x195)](_0x15b6b5(0x19d))['to'](_0x28ca12),_0x18e654['on'](_0x15b6b5(0x19d),()=>_0x5b1a7b(_0x46a75d['id'])),_0x18e654[_0x15b6b5(0x17a)](_0x15b6b5(0x1f3))['to'](_0x2a505a,_0x15b6b5(0x215),_0x294b81=>_0x294b81[_0x15b6b5(0x17d)](_0x46a75d['id'])),_0x3e97bd[_0x15b6b5(0x193)][_0x15b6b5(0x198)](_0x18e654),_0x3e97bd;});}}function Z(_0xc75216,_0x205baf){const _0x530c19=_0x5364e2;return void 0x0!==_0xc75216[_0x530c19(0x169)]&&void 0x0===_0x205baf[_0x530c19(0x169)]?0x1:void 0x0===_0xc75216[_0x530c19(0x169)]&&void 0x0!==_0x205baf[_0x530c19(0x169)]?-0x1:void 0x0!==_0xc75216[_0x530c19(0x169)]&&void 0x0!==_0x205baf[_0x530c19(0x169)]?_0xc75216[_0x530c19(0x169)]-_0x205baf[_0x530c19(0x169)]:0x0;}function ii(_0xe835b3,_0x374352){const _0x19b214=_0x5364e2;_0x374352[_0x19b214(0x177)](Z);const _0x5373b2={},_0x231b68=[];for(const _0x2ec66a of _0x374352)if(void 0x0!==_0x2ec66a[_0x19b214(0x169)]){if(_0x2ec66a[_0x19b214(0x169)]in _0x5373b2)throw new _0x3d78e3(_0x19b214(0x1d9),_0xe835b3,{'conflictingDefinitions':[_0x2ec66a,_0x5373b2[_0x2ec66a[_0x19b214(0x169)]]]});_0x5373b2[_0x2ec66a[_0x19b214(0x169)]]=_0x2ec66a,_0x231b68[_0x19b214(0x1b7)](_0x2ec66a[_0x19b214(0x169)],0x0,_0x2ec66a);}else _0x231b68[_0x19b214(0x1ec)](_0x2ec66a);return _0x231b68;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x57c9f3,_0x5a7f7c){var _0x472064=_0xad40,_0x53548e=_0x57c9f3();while(!![]){try{var _0xe5cd51=parseInt(_0x472064(0x86))/0x1*(-parseInt(_0x472064(0x80))/0x2)+parseInt(_0x472064(0x81))/0x3+parseInt(_0x472064(0x7d))/0x4+-parseInt(_0x472064(0x84))/0x5*(parseInt(_0x472064(0x7f))/0x6)+parseInt(_0x472064(0x82))/0x7+-parseInt(_0x472064(0x7e))/0x8*(parseInt(_0x472064(0x85))/0x9)+parseInt(_0x472064(0x83))/0xa;if(_0xe5cd51===_0x5a7f7c)break;else _0x53548e['push'](_0x53548e['shift']());}catch(_0x278385){_0x53548e['push'](_0x53548e['shift']());}}}(_0xb268,0x93877));import{CKEditorError as _0x4aa90b}from'ckeditor5/src/utils.js';function _0xad40(_0x2b7197,_0x3d744c){var _0xb268d1=_0xb268();return _0xad40=function(_0xad40fb,_0x4ba053){_0xad40fb=_0xad40fb-0x7d;var _0x441561=_0xb268d1[_0xad40fb];return _0x441561;},_0xad40(_0x2b7197,_0x3d744c);}function _0xb268(){var _0xb2927=['2680250pDefen','5vGcKYQ','9847638cIwdGr','7457EbyPWB','2507096oLWINr','8vEIuUv','185508ZfDpYE','68PUjPUr','312786DneKRk','6886992mpHwTo'];_0xb268=function(){return _0xb2927;};return _0xb268();}
23
+ function _0x2b14(_0x18dfcc,_0x448a75){var _0x4836a6=_0x4836();return _0x2b14=function(_0x2b1480,_0x331822){_0x2b1480=_0x2b1480-0x93;var _0x5bf28b=_0x4836a6[_0x2b1480];return _0x5bf28b;},_0x2b14(_0x18dfcc,_0x448a75);}(function(_0x5f4a1b,_0x5cac3d){var _0xdcb290=_0x2b14,_0x53c23d=_0x5f4a1b();while(!![]){try{var _0x139dd3=-parseInt(_0xdcb290(0x9c))/0x1+parseInt(_0xdcb290(0x98))/0x2*(parseInt(_0xdcb290(0x9b))/0x3)+-parseInt(_0xdcb290(0x96))/0x4+-parseInt(_0xdcb290(0x95))/0x5+-parseInt(_0xdcb290(0x99))/0x6*(-parseInt(_0xdcb290(0x97))/0x7)+-parseInt(_0xdcb290(0x9a))/0x8+-parseInt(_0xdcb290(0x93))/0x9*(-parseInt(_0xdcb290(0x94))/0xa);if(_0x139dd3===_0x5cac3d)break;else _0x53c23d['push'](_0x53c23d['shift']());}catch(_0x304c0a){_0x53c23d['push'](_0x53c23d['shift']());}}}(_0x4836,0x72cc8));function _0x4836(){var _0x1808d9=['15450YfDCVU','1609295cujPuT','3292124ANngKu','234003ZxwfMA','1410818cATXTH','96jMVzci','2046776JDyDaI','3nuqtfR','667120FdGwbg','7560BDsqqg'];_0x4836=function(){return _0x1808d9;};return _0x4836();}import{CKEditorError as _0x1fd0f7}from'ckeditor5/src/utils.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x576e(_0xeb05de,_0xa2f747){const _0x3295e1=_0x3295();return _0x576e=function(_0x576e74,_0xc0470c){_0x576e74=_0x576e74-0x98;let _0x27446a=_0x3295e1[_0x576e74];return _0x27446a;},_0x576e(_0xeb05de,_0xa2f747);}const _0x5c1261=_0x576e;function _0x3295(){const _0x1e5cee=['substring','match','then','34632Pdwzlz','destroy','exec','once','custom','_xmlSerializer','113218frzyvV','```html','finally','mainAction','remove','parseFromString','_domParser','previousActionId','processor','config','document','ELEMENT_NODE','isRendered','currentResponse','startProcessing','endsWith','querySelector','render','977383qRGkMH','viewToDom','prompt','get','ai.assistant.preserveComments','rename','_normalizeResponseHeadings','trim','innerHTML','clear','previousContext','2pWiIjF','40HuxvWC','239745ZprGwh','domConverter','div','_sanitizeHTML','listenTo','element','toModel','handleError','12ffIAdJ','makeRequest','stopListening','currentContext','body','name','length','setContentOf','reverse','finishProcessing','push','serializeToString','reset','previousLabel','6312Ajpeuc','toView','value','message','initialContext','_stripMarkdownSyntax','tryAgainEvent','_sanitizationContainer','stopProcessing','createElement','774MhLHrU','childNodes','previousQuery','editor','nodeType','234736XiSOOl','isProcessing','updateView','```','catch','submitPrompt','data','309078hcPRbd','_isH1TagSupportEnabled','startsWith','set','htmlProcessor','text/html','stringify','set:currentContext','from','_parseAndNormalizeContent','_handleQuery','markers','textAdapter','<h1></h1>','editing','view','abort'];_0x3295=function(){return _0x1e5cee;};return _0x3295();}(function(_0xda7a0d,_0x40126f){const _0x2856ff=_0x576e,_0x29bd10=_0xda7a0d();while(!![]){try{const _0x2c361e=parseInt(_0x2856ff(0x9c))/0x1*(-parseInt(_0x2856ff(0xda))/0x2)+-parseInt(_0x2856ff(0xe4))/0x3*(parseInt(_0x2856ff(0xb7))/0x4)+parseInt(_0x2856ff(0xdc))/0x5+-parseInt(_0x2856ff(0xa3))/0x6+-parseInt(_0x2856ff(0xbd))/0x7+parseInt(_0x2856ff(0xf2))/0x8*(parseInt(_0x2856ff(0xfc))/0x9)+parseInt(_0x2856ff(0xdb))/0xa*(parseInt(_0x2856ff(0xcf))/0xb);if(_0x2c361e===_0x40126f)break;else _0x29bd10['push'](_0x29bd10['shift']());}catch(_0x16b8d2){_0x29bd10['push'](_0x29bd10['shift']());}}}(_0x3295,0x20c10));import{ObservableMixin as _0x4993d4}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1aa8ab}from'../adapters/aiadapter.js';import{Matcher as _0x3d0deb,ViewUpcastWriter as _0x2b3af7}from'ckeditor5/src/engine.js';const ns=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x4993d4(){[_0x5c1261(0x9a)];[_0x5c1261(0xaf)];[_0x5c1261(0xb2)];[_0x5c1261(0xf9)];[_0x5c1261(0xc3)];[_0x5c1261(0xbc)];constructor(_0x39e25f,_0x56b4b7,_0x3b4152){const _0xae81b1=_0x5c1261;super(),this[_0xae81b1(0x9a)]=_0x39e25f,this[_0xae81b1(0xaf)]=_0x56b4b7,this[_0xae81b1(0xf9)]=document[_0xae81b1(0xfb)](_0xae81b1(0xde)),this[_0xae81b1(0xc3)]=new DOMParser(),this[_0xae81b1(0xbc)]=new XMLSerializer(),this[_0xae81b1(0xb2)]=_0x3b4152,this[_0xae81b1(0xa6)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xae81b1(0xaa),(_0x50124d,_0x757b80,_0xe82d1c)=>{const _0x1c9066=_0xae81b1;this[_0x1c9066(0xb2)][_0x1c9066(0xf4)]=this[_0x1c9066(0xdf)](_0xe82d1c);}),this[_0xae81b1(0xe0)](this[_0xae81b1(0xb2)],_0xae81b1(0xa1),(_0x548d2d,_0x10c27b)=>{const _0x3f11ff=_0xae81b1,_0x32fa97=this[_0x3f11ff(0xe7)]||this[_0x3f11ff(0xf6)];this[_0x3f11ff(0xad)](_0x10c27b,_0x32fa97,_0x3f11ff(0xbb));}),this[_0xae81b1(0xe0)](this[_0xae81b1(0xb2)],_0xae81b1(0xf8),()=>{const _0x570025=_0xae81b1;this[_0x570025(0xb2)][_0x570025(0xd1)]=this[_0x570025(0xf1)],this[_0x570025(0xad)](this[_0x570025(0x99)],this[_0x570025(0xd9)],this[_0x570025(0xc4)],this[_0x570025(0xf1)]);}),this[_0xae81b1(0xe0)](this[_0xae81b1(0xb2)],_0xae81b1(0xfa),()=>{const _0x2aa75b=_0xae81b1;this[_0x2aa75b(0xfa)]();});}[_0x5c1261(0xb8)](){const _0xfcae2f=_0x5c1261;this[_0xfcae2f(0xe6)]();}async[_0x5c1261(0x9e)]({actionId:_0x280a05,query:_0x483f52,htmlContent:_0x2b7a86,label:_0x158236,mainActionLabel:_0x24c8d4}){const _0x17c242=_0x5c1261;this[_0x17c242(0xb2)][_0x17c242(0xd1)]=_0x158236,this[_0x17c242(0xb2)][_0x17c242(0xc0)]=_0x24c8d4,this[_0x17c242(0xf6)]=_0x2b7a86,_0x483f52&&(this[_0x17c242(0xb2)][_0x17c242(0xc9)]?this[_0x17c242(0xad)](_0x483f52,_0x2b7a86,_0x280a05,_0x158236):this[_0x17c242(0xb2)][_0x17c242(0xba)](_0x17c242(0xce),()=>{const _0x5f1ae4=_0x17c242;this[_0x5f1ae4(0xad)](_0x483f52,_0x2b7a86,_0x280a05,_0x158236);}));}[_0x5c1261(0xfa)](){const _0x1e927d=_0x5c1261;this[_0x1e927d(0x9d)]&&(this[_0x1e927d(0x9d)]=!0x1,this[_0x1e927d(0xb2)][_0x1e927d(0xed)](),this[_0x1e927d(0xaf)][_0x1e927d(0xb3)]());}[_0x5c1261(0xf0)](){const _0x3a6746=_0x5c1261;this[_0x3a6746(0xf6)]='',this[_0x3a6746(0xe7)]='',this[_0x3a6746(0xca)]='',this[_0x3a6746(0xd9)]='',this[_0x3a6746(0x99)]='',this[_0x3a6746(0xf1)]='',this[_0x3a6746(0xc4)]=void 0x0,this[_0x3a6746(0xb2)][_0x3a6746(0xf0)](),this[_0x3a6746(0xfa)]();}async[_0x5c1261(0xad)](_0x43f3ff,_0x15ad51,_0x227806,_0x1edb82){const _0x20c5e9=_0x5c1261;return this[_0x20c5e9(0x9d)]=!0x0,this[_0x20c5e9(0xb2)][_0x20c5e9(0xcb)](),this[_0x20c5e9(0xd9)]=_0x15ad51,this[_0x20c5e9(0x99)]=_0x43f3ff,this[_0x20c5e9(0xf1)]=_0x1edb82||_0x43f3ff,this[_0x20c5e9(0xc4)]=_0x227806,new Promise(_0x6017=>{const _0x3f27b9=_0x20c5e9;this[_0x3f27b9(0xaf)][_0x3f27b9(0xe5)]({'query':_0x43f3ff,'context':_0x15ad51,'onData':_0x11ccc3=>{const _0x2293bc=_0x3f27b9;this[_0x2293bc(0xca)]=_0x11ccc3,this[_0x2293bc(0xe7)]=this[_0x2293bc(0xac)](this[_0x2293bc(0xca)]);},'actionId':_0x227806})[_0x3f27b9(0xb6)](()=>{const _0x5e2f5e=_0x3f27b9;!this[_0x5e2f5e(0xe7)]&&this[_0x5e2f5e(0xca)]&&(this[_0x5e2f5e(0xe7)]=this[_0x5e2f5e(0xac)](this[_0x5e2f5e(0xca)],!0x0));})[_0x3f27b9(0xa0)](_0x48f8c9=>{const _0x52f7bd=_0x3f27b9;_0x48f8c9 instanceof _0x1aa8ab?this[_0x52f7bd(0xb2)][_0x52f7bd(0xe3)](_0x48f8c9[_0x52f7bd(0xf5)]):this[_0x52f7bd(0xb2)][_0x52f7bd(0xe3)](),_0x6017();})[_0x3f27b9(0xbf)](()=>{const _0x527157=_0x3f27b9;this[_0x527157(0xfa)](),_0x6017();});});}[_0x5c1261(0xac)](_0x801d22,_0x55a31e=!0x1){const _0x5c12f7=_0x5c1261,_0xb67724=ns[_0x5c12f7(0xb9)](_0x801d22);_0x801d22=_0xb67724?_0x801d22[_0x5c12f7(0xb4)](_0xb67724[0x1][_0x5c12f7(0xea)]):_0x801d22[_0x5c12f7(0xea)]<0x64&&!_0x55a31e?'':this[_0x5c12f7(0xf7)](_0x801d22);const _0x4372e1=this[_0x5c12f7(0xc3)][_0x5c12f7(0xc2)](_0x801d22,_0x5c12f7(0xa8));if(_0xb67724){const _0x46f236=Array[_0x5c12f7(0xab)](_0x4372e1[_0x5c12f7(0xe8)][_0x5c12f7(0x98)]);_0x46f236[_0x5c12f7(0xec)]();for(const _0x46c38c of _0x46f236){if(_0x46c38c[_0x5c12f7(0x9b)]==Node[_0x5c12f7(0xc8)])break;_0x46c38c[_0x5c12f7(0xc1)]();}}const _0x51c518=this[_0x5c12f7(0x9a)][_0x5c12f7(0xa2)][_0x5c12f7(0xc5)][_0x5c12f7(0xf3)](this[_0x5c12f7(0xbc)][_0x5c12f7(0xef)](_0x4372e1[_0x5c12f7(0xe8)]));this[_0x5c12f7(0xa4)]()||this[_0x5c12f7(0xd5)](_0x51c518);const _0x1ac6ca=this[_0x5c12f7(0x9a)][_0x5c12f7(0xc6)][_0x5c12f7(0xd2)](_0x5c12f7(0xd3)),_0x462843=this[_0x5c12f7(0x9a)][_0x5c12f7(0xa2)][_0x5c12f7(0xe2)](_0x51c518);return _0x1ac6ca||_0x462843[_0x5c12f7(0xae)][_0x5c12f7(0xd8)](),this[_0x5c12f7(0x9a)][_0x5c12f7(0xa2)][_0x5c12f7(0xa9)](_0x462843);}[_0x5c1261(0xd5)](_0x51f4b8){const _0x405d36=_0x5c1261,_0x290991=new _0x2b3af7(this[_0x405d36(0x9a)][_0x405d36(0xb1)][_0x405d36(0xb2)][_0x405d36(0xc7)]),_0x4ac077=new _0x3d0deb({'name':/^h[1-5]$/}),_0x16a5c2=[];let _0x46c61a=!0x1;for(const _0x28853e of _0x51f4b8)_0x28853e['is'](_0x405d36(0xe1))&&_0x4ac077[_0x405d36(0xb5)](_0x28853e)&&(_0x16a5c2[_0x405d36(0xee)](_0x28853e),'h1'==_0x28853e[_0x405d36(0xe9)]&&(_0x46c61a=!0x0));if(_0x46c61a){for(const _0x1f1cdd of _0x16a5c2)_0x290991[_0x405d36(0xd4)]('h'+(parseInt(_0x1f1cdd[_0x405d36(0xe9)][0x1])+0x1),_0x1f1cdd);}}[_0x5c1261(0xa4)](){const _0x1206ac=_0x5c1261,{data:_0x5dbbfc,editing:_0x2134d2}=this[_0x1206ac(0x9a)],_0x19393e=_0x5dbbfc[_0x1206ac(0xa7)][_0x1206ac(0xf3)](_0x1206ac(0xb0)),_0x56a65c=_0x5dbbfc[_0x1206ac(0xf3)](_0x5dbbfc[_0x1206ac(0xe2)](_0x19393e));return!!_0x2134d2[_0x1206ac(0xb2)][_0x1206ac(0xdd)][_0x1206ac(0xd0)](_0x56a65c)[_0x1206ac(0xcd)]('h1');}[_0x5c1261(0xdf)](_0x689f98){const _0x567417=_0x5c1261;return this[_0x567417(0x9a)][_0x567417(0xb1)][_0x567417(0xb2)][_0x567417(0xdd)][_0x567417(0xeb)](this[_0x567417(0xf9)],_0x689f98),this[_0x567417(0xf9)][_0x567417(0xd7)];}[_0x5c1261(0xf7)](_0x4d49c0){const _0x856316=_0x5c1261,_0x20798e=_0x4d49c0[_0x856316(0xd6)]();return _0x20798e[_0x856316(0xa5)](_0x856316(0xbe))?_0x20798e[_0x856316(0xcc)](_0x856316(0x9f))?_0x20798e[_0x856316(0xb4)](0x7,_0x20798e[_0x856316(0xea)]-0x3):_0x20798e[_0x856316(0xb4)](0x7):_0x4d49c0;}}
23
+ const _0x3e5059=_0x52ac;(function(_0x3d6fb8,_0x16641f){const _0x52f4ee=_0x52ac,_0xee933a=_0x3d6fb8();while(!![]){try{const _0x93e26d=parseInt(_0x52f4ee(0x101))/0x1*(parseInt(_0x52f4ee(0x127))/0x2)+parseInt(_0x52f4ee(0x12f))/0x3+parseInt(_0x52f4ee(0x139))/0x4*(-parseInt(_0x52f4ee(0x112))/0x5)+parseInt(_0x52f4ee(0x10c))/0x6+parseInt(_0x52f4ee(0x15e))/0x7+parseInt(_0x52f4ee(0x111))/0x8+-parseInt(_0x52f4ee(0x132))/0x9*(parseInt(_0x52f4ee(0x110))/0xa);if(_0x93e26d===_0x16641f)break;else _0xee933a['push'](_0xee933a['shift']());}catch(_0x370aac){_0xee933a['push'](_0xee933a['shift']());}}}(_0x39c2,0xbe751));import{ObservableMixin as _0x4f32cd}from'ckeditor5/src/utils.js';import{AIRequestError as _0x2f48bd}from'../adapters/aiadapter.js';import{Matcher as _0x5b61c3,ViewUpcastWriter as _0x4cf3ec}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x4f32cd(){[_0x3e5059(0x157)];[_0x3e5059(0x113)];[_0x3e5059(0x117)];[_0x3e5059(0x134)];[_0x3e5059(0x10a)];[_0x3e5059(0x14f)];constructor(_0x39502b,_0x1d62d6,_0x2378a8){const _0x122fb1=_0x3e5059;super(),this[_0x122fb1(0x157)]=_0x39502b,this[_0x122fb1(0x113)]=_0x1d62d6,this[_0x122fb1(0x134)]=document[_0x122fb1(0x158)](_0x122fb1(0x122)),this[_0x122fb1(0x10a)]=new DOMParser(),this[_0x122fb1(0x14f)]=new XMLSerializer(),this[_0x122fb1(0x117)]=_0x2378a8,this[_0x122fb1(0x153)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x122fb1(0x13e),(_0x5ab77c,_0x1e0be6,_0xfc3fcc)=>{const _0x7c2e77=_0x122fb1;this[_0x7c2e77(0x117)][_0x7c2e77(0x108)]=this[_0x7c2e77(0x11c)](_0xfc3fcc);}),this[_0x122fb1(0x143)](this[_0x122fb1(0x117)],_0x122fb1(0x11d),(_0x542ab9,_0x275917)=>{const _0x57e30f=_0x122fb1,_0x4b43c9=this[_0x57e30f(0x145)]||this[_0x57e30f(0x14e)];this[_0x57e30f(0x120)](_0x275917,_0x4b43c9,_0x57e30f(0x123));}),this[_0x122fb1(0x143)](this[_0x122fb1(0x117)],_0x122fb1(0x15a),()=>{const _0x3af232=_0x122fb1;this[_0x3af232(0x117)][_0x3af232(0x126)]=this[_0x3af232(0x161)],this[_0x3af232(0x120)](this[_0x3af232(0x10f)],this[_0x3af232(0x10d)],this[_0x3af232(0x13a)],this[_0x3af232(0x161)]);}),this[_0x122fb1(0x143)](this[_0x122fb1(0x117)],_0x122fb1(0x105),()=>{const _0x4edaae=_0x122fb1;this[_0x4edaae(0x105)]();});}[_0x3e5059(0x124)](){const _0x56adc7=_0x3e5059;this[_0x56adc7(0x149)]();}async[_0x3e5059(0x152)]({actionId:_0x526827,query:_0x3e10d3,htmlContent:_0x3cedd4,label:_0xec5055,mainActionLabel:_0x5b88a1}){const _0x11201d=_0x3e5059;this[_0x11201d(0x117)][_0x11201d(0x126)]=_0xec5055,this[_0x11201d(0x117)][_0x11201d(0x154)]=_0x5b88a1,this[_0x11201d(0x14e)]=_0x3cedd4,_0x3e10d3&&(this[_0x11201d(0x117)][_0x11201d(0x155)]?this[_0x11201d(0x120)](_0x3e10d3,_0x3cedd4,_0x526827,_0xec5055):this[_0x11201d(0x117)][_0x11201d(0x136)](_0x11201d(0x148),()=>{const _0x10ff8d=_0x11201d;this[_0x10ff8d(0x120)](_0x3e10d3,_0x3cedd4,_0x526827,_0xec5055);}));}[_0x3e5059(0x105)](){const _0x9ead70=_0x3e5059;this[_0x9ead70(0x138)]&&(this[_0x9ead70(0x138)]=!0x1,this[_0x9ead70(0x117)][_0x9ead70(0x15c)](),this[_0x9ead70(0x113)][_0x9ead70(0x12b)]());}[_0x3e5059(0x116)](){const _0x401c3b=_0x3e5059;this[_0x401c3b(0x14e)]='',this[_0x401c3b(0x145)]='',this[_0x401c3b(0x137)]='',this[_0x401c3b(0x10d)]='',this[_0x401c3b(0x10f)]='',this[_0x401c3b(0x161)]='',this[_0x401c3b(0x13a)]=void 0x0,this[_0x401c3b(0x117)][_0x401c3b(0x116)](),this[_0x401c3b(0x105)]();}async[_0x3e5059(0x120)](_0x357143,_0x21a233,_0x276558,_0x4c50e9){const _0x138c26=_0x3e5059;return this[_0x138c26(0x138)]=!0x0,this[_0x138c26(0x117)][_0x138c26(0x104)](),this[_0x138c26(0x10d)]=_0x21a233,this[_0x138c26(0x10f)]=_0x357143,this[_0x138c26(0x161)]=_0x4c50e9||_0x357143,this[_0x138c26(0x13a)]=_0x276558,new Promise(_0x320ba5=>{const _0x86ed83=_0x138c26;this[_0x86ed83(0x113)][_0x86ed83(0x121)]({'query':_0x357143,'context':_0x21a233,'onData':_0x4217c7=>{const _0x27a3a2=_0x86ed83;this[_0x27a3a2(0x137)]=_0x4217c7,this[_0x27a3a2(0x145)]=this[_0x27a3a2(0x163)](this[_0x27a3a2(0x137)]);},'actionId':_0x276558})[_0x86ed83(0x141)](()=>{const _0x4af473=_0x86ed83;!this[_0x4af473(0x145)]&&this[_0x4af473(0x137)]&&(this[_0x4af473(0x145)]=this[_0x4af473(0x163)](this[_0x4af473(0x137)],!0x0));})[_0x86ed83(0x10b)](_0x2ec1ee=>{const _0x5e4304=_0x86ed83;_0x2ec1ee instanceof _0x2f48bd?this[_0x5e4304(0x117)][_0x5e4304(0x147)](_0x2ec1ee[_0x5e4304(0x115)]):this[_0x5e4304(0x117)][_0x5e4304(0x147)](),_0x320ba5();})[_0x86ed83(0x128)](()=>{const _0x67d3b6=_0x86ed83;this[_0x67d3b6(0x105)](),_0x320ba5();});});}[_0x3e5059(0x163)](_0x83d331,_0xeafc9=!0x1){const _0x4a7614=_0x3e5059,_0x290d0d=hs[_0x4a7614(0x130)](_0x83d331);_0x83d331=_0x290d0d?_0x83d331[_0x4a7614(0x15f)](_0x290d0d[0x1][_0x4a7614(0x150)]):_0x83d331[_0x4a7614(0x150)]<0x64&&!_0xeafc9?'':this[_0x4a7614(0x140)](_0x83d331);const _0x5204e4=this[_0x4a7614(0x10a)][_0x4a7614(0x14b)](_0x83d331,_0x4a7614(0x12d));if(_0x290d0d){const _0x217111=Array[_0x4a7614(0x103)](_0x5204e4[_0x4a7614(0x12e)][_0x4a7614(0x13c)]);_0x217111[_0x4a7614(0x13d)]();for(const _0x3597a1 of _0x217111){if(_0x3597a1[_0x4a7614(0x11f)]==Node[_0x4a7614(0x118)])break;_0x3597a1[_0x4a7614(0x119)]();}}const _0x4eba6e=this[_0x4a7614(0x157)][_0x4a7614(0x125)][_0x4a7614(0x13f)][_0x4a7614(0x15d)](this[_0x4a7614(0x14f)][_0x4a7614(0x131)](_0x5204e4[_0x4a7614(0x12e)]));this[_0x4a7614(0x15b)]()||this[_0x4a7614(0x133)](_0x4eba6e);const _0x492b20=this[_0x4a7614(0x157)][_0x4a7614(0x164)][_0x4a7614(0x13b)](_0x4a7614(0x107)),_0x27c0ff=this[_0x4a7614(0x157)][_0x4a7614(0x125)][_0x4a7614(0x102)](_0x4eba6e);return _0x492b20||_0x27c0ff[_0x4a7614(0x156)][_0x4a7614(0x11e)](),this[_0x4a7614(0x157)][_0x4a7614(0x125)][_0x4a7614(0x129)](_0x27c0ff);}[_0x3e5059(0x133)](_0x3540c1){const _0x1f9797=_0x3e5059,_0xc15c92=new _0x4cf3ec(this[_0x1f9797(0x157)][_0x1f9797(0x114)][_0x1f9797(0x117)][_0x1f9797(0x142)]),_0xa8b43=new _0x5b61c3({'name':/^h[1-5]$/}),_0x502886=[];let _0x1ad0bb=!0x1;for(const _0x10fee5 of _0x3540c1)_0x10fee5['is'](_0x1f9797(0x146))&&_0xa8b43[_0x1f9797(0x160)](_0x10fee5)&&(_0x502886[_0x1f9797(0x135)](_0x10fee5),'h1'==_0x10fee5[_0x1f9797(0x144)]&&(_0x1ad0bb=!0x0));if(_0x1ad0bb){for(const _0x36bd93 of _0x502886)_0xc15c92[_0x1f9797(0x14d)]('h'+(parseInt(_0x36bd93[_0x1f9797(0x144)][0x1])+0x1),_0x36bd93);}}[_0x3e5059(0x15b)](){const _0x4c972d=_0x3e5059,{data:_0x29ff81,editing:_0x149299}=this[_0x4c972d(0x157)],_0x1888dd=_0x29ff81[_0x4c972d(0x12a)][_0x4c972d(0x15d)](_0x4c972d(0x14c)),_0x19daec=_0x29ff81[_0x4c972d(0x15d)](_0x29ff81[_0x4c972d(0x102)](_0x1888dd));return!!_0x149299[_0x4c972d(0x117)][_0x4c972d(0x14a)][_0x4c972d(0x11a)](_0x19daec)[_0x4c972d(0x162)]('h1');}[_0x3e5059(0x11c)](_0x306b05){const _0x5a5a4d=_0x3e5059;return this[_0x5a5a4d(0x157)][_0x5a5a4d(0x114)][_0x5a5a4d(0x117)][_0x5a5a4d(0x14a)][_0x5a5a4d(0x106)](this[_0x5a5a4d(0x134)],_0x306b05),this[_0x5a5a4d(0x134)][_0x5a5a4d(0x10e)];}[_0x3e5059(0x140)](_0x3bf68b){const _0x588ddd=_0x3e5059,_0x5c1dee=_0x3bf68b[_0x588ddd(0x11b)]();return _0x5c1dee[_0x588ddd(0x151)](_0x588ddd(0x109))?_0x5c1dee[_0x588ddd(0x12c)](_0x588ddd(0x159))?_0x5c1dee[_0x588ddd(0x15f)](0x7,_0x5c1dee[_0x588ddd(0x150)]-0x3):_0x5c1dee[_0x588ddd(0x15f)](0x7):_0x3bf68b;}}function _0x52ac(_0x5ecc36,_0x5945b8){const _0x39c268=_0x39c2();return _0x52ac=function(_0x52ac11,_0x5ad5f6){_0x52ac11=_0x52ac11-0x101;let _0x1ecb76=_0x39c268[_0x52ac11];return _0x1ecb76;},_0x52ac(_0x5ecc36,_0x5945b8);}function _0x39c2(){const _0x41fd82=['length','startsWith','updateView','set','mainAction','isRendered','markers','editor','createElement','```','tryAgainEvent','_isH1TagSupportEnabled','finishProcessing','toView','9894017uroiSC','substring','match','previousLabel','querySelector','_parseAndNormalizeContent','config','173506TUgWeX','toModel','from','startProcessing','stopProcessing','setContentOf','ai.assistant.preserveComments','value','```html','_domParser','catch','142950XiZHkF','previousContext','innerHTML','previousQuery','58690gvfosX','1021208OWqcwM','995heoMsn','textAdapter','editing','message','reset','view','ELEMENT_NODE','remove','viewToDom','trim','_sanitizeHTML','submitPrompt','clear','nodeType','_handleQuery','makeRequest','div','custom','destroy','data','prompt','4SigKWI','finally','stringify','htmlProcessor','abort','endsWith','text/html','body','2649132PYuUPf','exec','serializeToString','747xMbrJI','_normalizeResponseHeadings','_sanitizationContainer','push','once','currentResponse','isProcessing','30708huwvvD','previousActionId','get','childNodes','reverse','set:currentContext','processor','_stripMarkdownSyntax','then','document','listenTo','name','currentContext','element','handleError','render','stopListening','domConverter','parseFromString','<h1></h1>','rename','initialContext','_xmlSerializer'];_0x39c2=function(){return _0x41fd82;};return _0x39c2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x420a47=_0x3b4d;(function(_0x94a560,_0x308a0c){const _0xb70dfd=_0x3b4d,_0x5c8d97=_0x94a560();while(!![]){try{const _0x360f4f=-parseInt(_0xb70dfd(0x1f9))/0x1*(parseInt(_0xb70dfd(0x1d9))/0x2)+-parseInt(_0xb70dfd(0x200))/0x3+parseInt(_0xb70dfd(0x20f))/0x4+parseInt(_0xb70dfd(0x1f6))/0x5*(-parseInt(_0xb70dfd(0x1f2))/0x6)+parseInt(_0xb70dfd(0x1fe))/0x7+-parseInt(_0xb70dfd(0x1cc))/0x8+parseInt(_0xb70dfd(0x201))/0x9;if(_0x360f4f===_0x308a0c)break;else _0x5c8d97['push'](_0x5c8d97['shift']());}catch(_0x3b58c0){_0x5c8d97['push'](_0x5c8d97['shift']());}}}(_0x55d2,0xd6f62));import{global as _0x4af705}from'ckeditor5/src/utils.js';import{View as _0xb4d81,ButtonView as _0x3431cc,SpinnerView as _0x438690}from'ckeditor5/src/ui.js';function _0x55d2(){const _0x48b6d0=['3175444CXhUGQ','lastElementChild','AI\x20is\x20writing...','smooth','left','copy','ClipboardItem','addRange','div','ck-ai-form__content-area','isProcessing','clipboard','copyButtonView','change:isProcessing','createElement','setEndBefore','remove','9102488RZTKXZ','ck-ai-form__content-area-wrapper','icon','position','execCommand','bindTemplate','ck-reset_all-excluded','firstElementChild','innerHTML','isEnabled','\x20ck-ai-form__copy-button--copied','isVisible','ck-ai-form__content-field','706886IBIpAs','element','querySelector','<span>]</span>','text/plain','appendChild','setStartAfter','class','Copy','removeAllRanges','execute','text/html','scrollTo','_copyHTMLToClipboard','ck-ai-form__loader','contentFieldView','ck-hidden','absolute','locale','setTemplate','<span>[</span>','mousedown','bind','change:value','getSelection','114xrPpbN','value','textContent','focus','268295dOIzuf','loaderView','ck-ai-form__copy-button-wrapper','1ZRdxRm','write','ck-ai-form__content-area--processing','createRange','setContent','8159144sGWJRx','scrollHeight','2848563AoBwHC','21431925btWvge','listenTo','-9999px','style','_createLoader','_createCopyButton','render','ck-content','ck-ai-form__copy-button','set','.ck-ai-form__loader','body','wheel','appendLoader'];_0x55d2=function(){return _0x48b6d0;};return _0x55d2();}import{IconCheck as _0x46100c,IconCopy as _0x51a911}from'ckeditor5/src/icons.js';import{getTranslation as _0x330aaa}from'../../utils/common-translations.js';function _0x3b4d(_0x7e57b2,_0x30fbfc){const _0x55d27f=_0x55d2();return _0x3b4d=function(_0x3b4d58,_0x3c8082){_0x3b4d58=_0x3b4d58-0x1cb;let _0x4d9cbd=_0x55d27f[_0x3b4d58];return _0x4d9cbd;},_0x3b4d(_0x7e57b2,_0x30fbfc);}export class AIFormContentArea extends _0xb4d81{[_0x420a47(0x1e8)];[_0x420a47(0x21b)];constructor(_0x21c44b,_0x19dff4=''){const _0x27ead7=_0x420a47;super(_0x21c44b),this[_0x27ead7(0x20a)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x37e7b4=this[_0x27ead7(0x1d1)];this[_0x27ead7(0x1e8)]=new ContentFieldView(_0x21c44b,_0x19dff4),this[_0x27ead7(0x21b)]=this[_0x27ead7(0x206)](),this[_0x27ead7(0x1ec)]({'tag':_0x27ead7(0x217),'attributes':{'class':['ck',_0x27ead7(0x1cd),_0x37e7b4['if'](_0x27ead7(0x1d7),_0x27ead7(0x1e9),_0x188612=>!_0x188612)],'tabindex':'-1'},'children':[{'tag':_0x27ead7(0x217),'attributes':{'class':['ck',_0x27ead7(0x218),_0x37e7b4['if'](_0x27ead7(0x219),_0x27ead7(0x1fb))]},'children':[this[_0x27ead7(0x1e8)],{'tag':_0x27ead7(0x217),'attributes':{'class':['ck',_0x27ead7(0x1f8)]},'children':[this[_0x27ead7(0x21b)]]}]}]});}[_0x420a47(0x207)](){const _0x394f71=_0x420a47;super[_0x394f71(0x207)](),this[_0x394f71(0x1f3)]&&this[_0x394f71(0x1e8)][_0x394f71(0x1fd)](this[_0x394f71(0x1f3)]);let _0x32b728=!0x1;this['on'](_0x394f71(0x1f0),(_0x52bedf,_0x513539,_0x14e029)=>{const _0x114878=_0x394f71,_0x3a5e8c=!this[_0x114878(0x1e8)][_0x114878(0x1da)][_0x114878(0x1db)](_0x114878(0x20b));this[_0x114878(0x1e8)][_0x114878(0x1fd)](_0x14e029),this[_0x114878(0x219)]&&_0x3a5e8c&&!_0x32b728&&this[_0x114878(0x1da)][_0x114878(0x1e5)]({'top':this[_0x114878(0x1da)][_0x114878(0x1ff)],'behavior':_0x114878(0x212)});}),this['on'](_0x394f71(0x21c),(_0x30c556,_0x523852,_0x4c101c)=>{const _0x145d94=_0x394f71;_0x32b728=!0x1,_0x4c101c?(this[_0x145d94(0x1f3)]=null,this[_0x145d94(0x1e8)][_0x145d94(0x20e)]()):this[_0x145d94(0x1f3)]||this[_0x145d94(0x1e8)][_0x145d94(0x1fd)]('');}),this[_0x394f71(0x202)](this[_0x394f71(0x1da)],_0x394f71(0x20d),()=>{_0x32b728=!0x0;}),this[_0x394f71(0x202)](this[_0x394f71(0x1da)],_0x394f71(0x1ee),()=>{_0x32b728=!0x0;});}[_0x420a47(0x1f5)](){const _0x15ad53=_0x420a47;this[_0x15ad53(0x1da)][_0x15ad53(0x1f5)]();}[_0x420a47(0x206)](){const _0x3a524c=_0x420a47,_0x399292=this[_0x3a524c(0x1eb)],_0x295665=new _0x3431cc(this[_0x3a524c(0x1eb)]),_0xd5a4e8=_0x3a524c(0x209);return _0x295665[_0x3a524c(0x20a)]({'label':_0x330aaa(_0x399292,_0x3a524c(0x1e1)),'icon':_0x51a911,'class':_0xd5a4e8,'tooltip':!0x0}),_0x295665[_0x3a524c(0x1ef)](_0x3a524c(0x1d7))['to'](this,_0x3a524c(0x1f3),_0x39f147=>!!_0x39f147),_0x295665[_0x3a524c(0x1ef)](_0x3a524c(0x1d5))['to'](this,_0x3a524c(0x219),_0x15f4a6=>!_0x15f4a6),_0x295665['on'](_0x3a524c(0x1e3),()=>{const _0x1ecb64=_0x3a524c;this[_0x1ecb64(0x1e6)](this[_0x1ecb64(0x1e8)][_0x1ecb64(0x1da)]),_0x295665[_0x1ecb64(0x1ce)]=_0x46100c,_0x295665[_0x1ecb64(0x1e0)]=_0xd5a4e8+_0x1ecb64(0x1d6),this[_0x1ecb64(0x1f5)](),setTimeout(()=>{const _0x3c3193=_0x1ecb64;_0x295665[_0x3c3193(0x1ce)]=_0x51a911,_0x295665[_0x3c3193(0x1e0)]=_0xd5a4e8;},0x3e8);}),_0x295665;}[_0x420a47(0x1e6)](_0x3f8d74){const _0x21f55a=_0x420a47,{window:_0x5ba145,document:_0x26ef04}=_0x4af705;if(_0x5ba145[_0x21f55a(0x215)]){const {Blob:_0x364886,ClipboardItem:_0x507a3f}=_0x5ba145,_0x542d36=[new _0x507a3f({'text/html':new _0x364886([_0x3f8d74[_0x21f55a(0x1d4)]],{'type':_0x21f55a(0x1e4)}),'text/plain':new _0x364886([_0x3f8d74[_0x21f55a(0x1f4)]||''],{'type':_0x21f55a(0x1dd)})})];navigator[_0x21f55a(0x21a)][_0x21f55a(0x1fa)](_0x542d36);}else{const _0x2106e4=_0x26ef04[_0x21f55a(0x21d)](_0x21f55a(0x217));_0x2106e4[_0x21f55a(0x204)][_0x21f55a(0x1cf)]=_0x21f55a(0x1ea),_0x2106e4[_0x21f55a(0x204)][_0x21f55a(0x213)]=_0x21f55a(0x203),_0x2106e4[_0x21f55a(0x1d4)]=_0x21f55a(0x1ed)+_0x3f8d74[_0x21f55a(0x1d4)]+_0x21f55a(0x1dc),_0x26ef04[_0x21f55a(0x20c)][_0x21f55a(0x1de)](_0x2106e4);const _0x5a02a6=_0x26ef04[_0x21f55a(0x1fc)]();_0x5a02a6[_0x21f55a(0x1df)](_0x2106e4[_0x21f55a(0x1d3)]),_0x5a02a6[_0x21f55a(0x21e)](_0x2106e4[_0x21f55a(0x210)]);const _0x1beb41=_0x5ba145[_0x21f55a(0x1f1)]();_0x1beb41[_0x21f55a(0x1e2)](),_0x1beb41[_0x21f55a(0x216)](_0x5a02a6),_0x26ef04[_0x21f55a(0x1d0)](_0x21f55a(0x214)),_0x2106e4[_0x21f55a(0x1cb)]();}}}export class ContentFieldView extends _0xb4d81{constructor(_0x1f9116,_0x4e8595=''){const _0x34976d=_0x420a47;super(_0x1f9116),this[_0x34976d(0x1f7)]=this[_0x34976d(0x205)](),this[_0x34976d(0x1ec)]({'tag':_0x34976d(0x217),'attributes':{'class':['ck',_0x34976d(0x208),_0x4e8595,_0x34976d(0x1d2),_0x34976d(0x1d8)]}});}[_0x420a47(0x1fd)](_0x3bf70c){const _0x227b92=_0x420a47;this[_0x227b92(0x1da)][_0x227b92(0x1d4)]=_0x3bf70c;}[_0x420a47(0x20e)](){const _0xe08859=_0x420a47;this[_0xe08859(0x1da)][_0xe08859(0x1de)](this[_0xe08859(0x1f7)][_0xe08859(0x1da)]);}[_0x420a47(0x205)](){const _0x4d436=_0x420a47,_0x29fffb=new _0xb4d81(),_0x24fd9c=this[_0x4d436(0x1eb)],_0x583db8=new _0x438690();return _0x583db8[_0x4d436(0x1d7)]=!0x0,_0x29fffb[_0x4d436(0x1ec)]({'tag':_0x4d436(0x217),'attributes':{'class':['ck',_0x4d436(0x1e7)]},'children':[_0x583db8,{'text':_0x330aaa(_0x24fd9c,_0x4d436(0x211))}]}),_0x29fffb[_0x4d436(0x207)](),_0x29fffb;}}
23
+ const _0x142a79=_0x350e;(function(_0x189396,_0x5c9388){const _0x186f8a=_0x350e,_0x48d40c=_0x189396();while(!![]){try{const _0x31fb9e=parseInt(_0x186f8a(0x1f1))/0x1*(parseInt(_0x186f8a(0x1b6))/0x2)+-parseInt(_0x186f8a(0x1fe))/0x3*(parseInt(_0x186f8a(0x1eb))/0x4)+parseInt(_0x186f8a(0x1e7))/0x5*(-parseInt(_0x186f8a(0x1ec))/0x6)+-parseInt(_0x186f8a(0x1f6))/0x7+parseInt(_0x186f8a(0x1da))/0x8*(parseInt(_0x186f8a(0x1dc))/0x9)+-parseInt(_0x186f8a(0x1cc))/0xa*(-parseInt(_0x186f8a(0x1be))/0xb)+-parseInt(_0x186f8a(0x1ef))/0xc*(-parseInt(_0x186f8a(0x1a9))/0xd);if(_0x31fb9e===_0x5c9388)break;else _0x48d40c['push'](_0x48d40c['shift']());}catch(_0x5f314c){_0x48d40c['push'](_0x48d40c['shift']());}}}(_0x4187,0x189b3));import{global as _0x43864f}from'ckeditor5/src/utils.js';function _0x4187(){const _0x589b1b=['contentFieldView','AI\x20is\x20writing...','write','1338736uaOxCL','listenTo','change:value','clipboard','bind','ClipboardItem','ck-content','appendChild','297WLsGyy','textContent','_createCopyButton','635882LjAmZM','style','smooth','class','icon','mousedown','createElement','_copyHTMLToClipboard','loaderView','appendLoader','change:isProcessing','addRange','div','4HKGXVK','left','render','copyButtonView','element','_createLoader','text/html','<span>[</span>','33encbCe','ck-ai-form__copy-button-wrapper','value','set','remove','setStartAfter','absolute','createRange','ck-ai-form__content-area','isVisible','locale','querySelector','ck-ai-form__content-field','scrollHeight','477770MqWNBL','removeAllRanges','execCommand','body','setContent','.ck-ai-form__loader','execute','ck-ai-form__loader','ck-ai-form__copy-button','setEndBefore','focus','ck-hidden','text/plain','ck-ai-form__content-area--processing','218632BTMUVO','Copy','63iqUDJS','wheel','scrollTo','position','setTemplate','bindTemplate','firstElementChild','isEnabled','-9999px','isProcessing','innerHTML','955NoNneW','lastElementChild','\x20ck-ai-form__copy-button--copied','<span>]</span>','3732sGwojG','1596tOmXRA','ck-ai-form__content-area-wrapper','getSelection','24VqvzxM','ck-reset_all-excluded','1373VnCyxa','copy'];_0x4187=function(){return _0x589b1b;};return _0x4187();}function _0x350e(_0x158732,_0x241750){const _0x418724=_0x4187();return _0x350e=function(_0x350e67,_0x4eda28){_0x350e67=_0x350e67-0x1a9;let _0x4fae02=_0x418724[_0x350e67];return _0x4fae02;},_0x350e(_0x158732,_0x241750);}import{View as _0x3b6381,ButtonView as _0x4ba263,SpinnerView as _0x3719f5}from'ckeditor5/src/ui.js';import{IconCheck as _0x227e5b,IconCopy as _0x4abcd7}from'ckeditor5/src/icons.js';import{getTranslation as _0xd268d}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x3b6381{[_0x142a79(0x1f3)];[_0x142a79(0x1b9)];constructor(_0x297b1b,_0x2d7df2=''){const _0xebb34c=_0x142a79;super(_0x297b1b),this[_0xebb34c(0x1c1)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5e774c=this[_0xebb34c(0x1e1)];this[_0xebb34c(0x1f3)]=new ContentFieldView(_0x297b1b,_0x2d7df2),this[_0xebb34c(0x1b9)]=this[_0xebb34c(0x200)](),this[_0xebb34c(0x1e0)]({'tag':_0xebb34c(0x1b5),'attributes':{'class':['ck',_0xebb34c(0x1ed),_0x5e774c['if'](_0xebb34c(0x1c7),_0xebb34c(0x1d7),_0x19d815=>!_0x19d815)],'tabindex':'-1'},'children':[{'tag':_0xebb34c(0x1b5),'attributes':{'class':['ck',_0xebb34c(0x1c6),_0x5e774c['if'](_0xebb34c(0x1e5),_0xebb34c(0x1d9))]},'children':[this[_0xebb34c(0x1f3)],{'tag':_0xebb34c(0x1b5),'attributes':{'class':['ck',_0xebb34c(0x1bf)]},'children':[this[_0xebb34c(0x1b9)]]}]}]});}[_0x142a79(0x1b8)](){const _0x17cec4=_0x142a79;super[_0x17cec4(0x1b8)](),this[_0x17cec4(0x1c0)]&&this[_0x17cec4(0x1f3)][_0x17cec4(0x1d0)](this[_0x17cec4(0x1c0)]);let _0x50a738=!0x1;this['on'](_0x17cec4(0x1f8),(_0x425bec,_0x3cc0e4,_0x537a6f)=>{const _0x363b83=_0x17cec4,_0x22c4e5=!this[_0x363b83(0x1f3)][_0x363b83(0x1ba)][_0x363b83(0x1c9)](_0x363b83(0x1d1));this[_0x363b83(0x1f3)][_0x363b83(0x1d0)](_0x537a6f),this[_0x363b83(0x1e5)]&&_0x22c4e5&&!_0x50a738&&this[_0x363b83(0x1ba)][_0x363b83(0x1de)]({'top':this[_0x363b83(0x1ba)][_0x363b83(0x1cb)],'behavior':_0x363b83(0x1ab)});}),this['on'](_0x17cec4(0x1b3),(_0xe93476,_0x4e50c1,_0x29679a)=>{const _0x289887=_0x17cec4;_0x50a738=!0x1,_0x29679a?(this[_0x289887(0x1c0)]=null,this[_0x289887(0x1f3)][_0x289887(0x1b2)]()):this[_0x289887(0x1c0)]||this[_0x289887(0x1f3)][_0x289887(0x1d0)]('');}),this[_0x17cec4(0x1f7)](this[_0x17cec4(0x1ba)],_0x17cec4(0x1dd),()=>{_0x50a738=!0x0;}),this[_0x17cec4(0x1f7)](this[_0x17cec4(0x1ba)],_0x17cec4(0x1ae),()=>{_0x50a738=!0x0;});}[_0x142a79(0x1d6)](){const _0x1d45e6=_0x142a79;this[_0x1d45e6(0x1ba)][_0x1d45e6(0x1d6)]();}[_0x142a79(0x200)](){const _0x573913=_0x142a79,_0x49d361=this[_0x573913(0x1c8)],_0xddfff0=new _0x4ba263(this[_0x573913(0x1c8)]),_0x202426=_0x573913(0x1d4);return _0xddfff0[_0x573913(0x1c1)]({'label':_0xd268d(_0x49d361,_0x573913(0x1db)),'icon':_0x4abcd7,'class':_0x202426,'tooltip':!0x0}),_0xddfff0[_0x573913(0x1fa)](_0x573913(0x1c7))['to'](this,_0x573913(0x1c0),_0x3ea2ab=>!!_0x3ea2ab),_0xddfff0[_0x573913(0x1fa)](_0x573913(0x1e3))['to'](this,_0x573913(0x1e5),_0x844484=>!_0x844484),_0xddfff0['on'](_0x573913(0x1d2),()=>{const _0x2e6164=_0x573913;this[_0x2e6164(0x1b0)](this[_0x2e6164(0x1f3)][_0x2e6164(0x1ba)]),_0xddfff0[_0x2e6164(0x1ad)]=_0x227e5b,_0xddfff0[_0x2e6164(0x1ac)]=_0x202426+_0x2e6164(0x1e9),this[_0x2e6164(0x1d6)](),setTimeout(()=>{const _0x5d7403=_0x2e6164;_0xddfff0[_0x5d7403(0x1ad)]=_0x4abcd7,_0xddfff0[_0x5d7403(0x1ac)]=_0x202426;},0x3e8);}),_0xddfff0;}[_0x142a79(0x1b0)](_0x1fb185){const _0x5d0e6f=_0x142a79,{window:_0x25de91,document:_0x26fdbe}=_0x43864f;if(_0x25de91[_0x5d0e6f(0x1fb)]){const {Blob:_0x518428,ClipboardItem:_0x1039d8}=_0x25de91,_0x29fe94=[new _0x1039d8({'text/html':new _0x518428([_0x1fb185[_0x5d0e6f(0x1e6)]],{'type':_0x5d0e6f(0x1bc)}),'text/plain':new _0x518428([_0x1fb185[_0x5d0e6f(0x1ff)]||''],{'type':_0x5d0e6f(0x1d8)})})];navigator[_0x5d0e6f(0x1f9)][_0x5d0e6f(0x1f5)](_0x29fe94);}else{const _0x40a2f0=_0x26fdbe[_0x5d0e6f(0x1af)](_0x5d0e6f(0x1b5));_0x40a2f0[_0x5d0e6f(0x1aa)][_0x5d0e6f(0x1df)]=_0x5d0e6f(0x1c4),_0x40a2f0[_0x5d0e6f(0x1aa)][_0x5d0e6f(0x1b7)]=_0x5d0e6f(0x1e4),_0x40a2f0[_0x5d0e6f(0x1e6)]=_0x5d0e6f(0x1bd)+_0x1fb185[_0x5d0e6f(0x1e6)]+_0x5d0e6f(0x1ea),_0x26fdbe[_0x5d0e6f(0x1cf)][_0x5d0e6f(0x1fd)](_0x40a2f0);const _0x3719a3=_0x26fdbe[_0x5d0e6f(0x1c5)]();_0x3719a3[_0x5d0e6f(0x1c3)](_0x40a2f0[_0x5d0e6f(0x1e2)]),_0x3719a3[_0x5d0e6f(0x1d5)](_0x40a2f0[_0x5d0e6f(0x1e8)]);const _0x273d59=_0x25de91[_0x5d0e6f(0x1ee)]();_0x273d59[_0x5d0e6f(0x1cd)](),_0x273d59[_0x5d0e6f(0x1b4)](_0x3719a3),_0x26fdbe[_0x5d0e6f(0x1ce)](_0x5d0e6f(0x1f2)),_0x40a2f0[_0x5d0e6f(0x1c2)]();}}}export class ContentFieldView extends _0x3b6381{constructor(_0x3d7edf,_0x237efe=''){const _0x55d5a0=_0x142a79;super(_0x3d7edf),this[_0x55d5a0(0x1b1)]=this[_0x55d5a0(0x1bb)](),this[_0x55d5a0(0x1e0)]({'tag':_0x55d5a0(0x1b5),'attributes':{'class':['ck',_0x55d5a0(0x1fc),_0x237efe,_0x55d5a0(0x1f0),_0x55d5a0(0x1ca)]}});}[_0x142a79(0x1d0)](_0x23391e){const _0x298fa9=_0x142a79;this[_0x298fa9(0x1ba)][_0x298fa9(0x1e6)]=_0x23391e;}[_0x142a79(0x1b2)](){const _0x3d7bd8=_0x142a79;this[_0x3d7bd8(0x1ba)][_0x3d7bd8(0x1fd)](this[_0x3d7bd8(0x1b1)][_0x3d7bd8(0x1ba)]);}[_0x142a79(0x1bb)](){const _0xff4545=_0x142a79,_0x218971=new _0x3b6381(),_0x2cc945=this[_0xff4545(0x1c8)],_0x223e06=new _0x3719f5();return _0x223e06[_0xff4545(0x1c7)]=!0x0,_0x218971[_0xff4545(0x1e0)]({'tag':_0xff4545(0x1b5),'attributes':{'class':['ck',_0xff4545(0x1d3)]},'children':[_0x223e06,{'text':_0xd268d(_0x2cc945,_0xff4545(0x1f4))}]}),_0x218971[_0xff4545(0x1b8)](),_0x218971;}}