@ckeditor/ckeditor5-ai 47.6.1-alpha.0 → 47.6.1

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 (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e92c4=_0x39b0;(function(_0x1fa362,_0x1736c5){const _0x3d3398=_0x39b0,_0x59f41e=_0x1fa362();while(!![]){try{const _0x2c736b=parseInt(_0x3d3398(0x175))/0x1*(-parseInt(_0x3d3398(0x1d7))/0x2)+-parseInt(_0x3d3398(0x1ce))/0x3+-parseInt(_0x3d3398(0x146))/0x4+-parseInt(_0x3d3398(0x15e))/0x5*(-parseInt(_0x3d3398(0x1a6))/0x6)+-parseInt(_0x3d3398(0x16c))/0x7+parseInt(_0x3d3398(0x1ba))/0x8+-parseInt(_0x3d3398(0x14f))/0x9*(-parseInt(_0x3d3398(0x19b))/0xa);if(_0x2c736b===_0x1736c5)break;else _0x59f41e['push'](_0x59f41e['shift']());}catch(_0x139e64){_0x59f41e['push'](_0x59f41e['shift']());}}}(_0x463e,0x92223));import{createParser as _0x4e17be}from'eventsource-parser';import{ContextPlugin as _0x5532eb}from'ckeditor5/src/core.js';function _0x463e(){const _0x1fdda0=['fetchConversationMessages','fetchConversation','/actions/custom/calls/','6116376zJCdAF','/documents','message','createdAt','define','/conversations?','json','true','PATCH','text','improve-writing','fetchConversations','items','/documents/','_token','upsertAIReviewRating','limit','/models/1?','continue','releaseLock','655797cCezzq','callCustomReview','decode','/files','PUT','make-tone-casual','upsertCustomAIReviewRating','application/json','read','2bOBrsT','_sendApiRequest','upsertAIChatRating','/reviews/system/','3648784xNIgzF','name','init','MAKE_TONE_FORMAL','excludeEmpty','value','status','deleteConversation','/messages','430191otDRPX','Content-Type','AIConnector','context','then','/web-resources/','sortBy','translate','ai-missing-token','executeAction','request','100','totalCount','IMPROVE_WRITING','callSystemReview','238870LdXqbE','MAKE_TONE_CASUAL','DELETE','/actions/system/','positiveCount','parse','token','fix-grammar','upsertAIActionRating','/actions/custom/calls','signal','CloudServices','push','traceId','5147247TSgkBZ','/conversations','/ratings','reset','toString','plugins','desc','modificationId','uploadDocument','976287ayBFQz','data','deleteWebResource','/conversations/','make-shorter','/calls','AbortError','length','deleteFile','/calls/','_decoder','language','group','isOfficialPlugin','ai-request-failed','uploadUrl','file','MAKE_LONGER','Bearer\x20','code','CONTINUE','config','append','getReader','isPremiumPlugin','updateConversation','feed','startConversation','GET','order','uploadFile','_handleError','/web-resources','ai-request-aborted','upsertCustomAIActionRating','catch','FIX_GRAMMAR','/reviews/custom/calls','430ngIZdM','make-tone-formal','POST','_getStreamReader','/files/','https://ai.cke-cs.com/v1','MAKE_SHORTER','false','pluginName','make-longer','_apiUrl','78BlgjDI','ai.serviceUrl','body','getModels','attributes','queryAssistant','abortController','deleteDocument','fetchDocument','get','/reviews/custom/calls/','statusText','requires','executeCustomAction','TRANSLATE','stringify','/messages/'];_0x463e=function(){return _0x1fdda0;};return _0x463e();}function _0x39b0(_0x1445e0,_0xe1a7bb){const _0x463ea4=_0x463e();return _0x39b0=function(_0x39b00e,_0x25d98d){_0x39b00e=_0x39b00e-0x144;let _0x1702cb=_0x463ea4[_0x39b00e];return _0x1702cb;},_0x39b0(_0x1445e0,_0xe1a7bb);}import{CKEditorError as _0x116ebd}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xc9321){const _0x2a8fd0=_0x39b0;_0xc9321[_0x2a8fd0(0x189)]=_0x2a8fd0(0x1cc),_0xc9321[_0x2a8fd0(0x199)]=_0x2a8fd0(0x165),_0xc9321[_0x2a8fd0(0x15c)]=_0x2a8fd0(0x1c4),_0xc9321[_0x2a8fd0(0x186)]=_0x2a8fd0(0x1a4),_0xc9321[_0x2a8fd0(0x1a1)]=_0x2a8fd0(0x179),_0xc9321[_0x2a8fd0(0x15f)]=_0x2a8fd0(0x1d3),_0xc9321[_0x2a8fd0(0x149)]=_0x2a8fd0(0x19c),_0xc9321[_0x2a8fd0(0x1b4)]=_0x2a8fd0(0x156);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5532eb{[_0x3e92c4(0x1a5)];[_0x3e92c4(0x1c8)];[_0x3e92c4(0x17f)];static get[_0x3e92c4(0x1b2)](){const _0x9a7b23=_0x3e92c4;return[_0x9a7b23(0x169)];}static get[_0x3e92c4(0x1a3)](){const _0x3c1cf4=_0x3e92c4;return _0x3c1cf4(0x151);}static get[_0x3e92c4(0x182)](){return!0x0;}static get[_0x3e92c4(0x18d)](){return!0x0;}constructor(_0x23b046){const _0x1015b3=_0x3e92c4;super(_0x23b046),this[_0x1015b3(0x152)][_0x1015b3(0x18a)][_0x1015b3(0x1be)](_0x1015b3(0x1a7),_0x1015b3(0x1a0)),this[_0x1015b3(0x1a5)]=this[_0x1015b3(0x152)][_0x1015b3(0x18a)][_0x1015b3(0x1af)](_0x1015b3(0x1a7)),this[_0x1015b3(0x1c8)]=null,this[_0x1015b3(0x17f)]=new TextDecoder();}[_0x3e92c4(0x148)](){const _0x5d4f70=_0x3e92c4,_0x31b49e=this[_0x5d4f70(0x152)][_0x5d4f70(0x171)][_0x5d4f70(0x1af)](_0x5d4f70(0x169));if(!_0x31b49e[_0x5d4f70(0x164)])throw new _0x116ebd(_0x5d4f70(0x157),this);this[_0x5d4f70(0x1c8)]=_0x31b49e[_0x5d4f70(0x164)];}[_0x3e92c4(0x190)](_0x2d77bc,_0x4e8811){const _0x4152bf=_0x3e92c4,_0x23d7ad=this[_0x4152bf(0x1d8)](_0x4152bf(0x16d),_0x4152bf(0x19d),{'id':_0x2d77bc,'group':_0x4e8811});return{'getConversation':async()=>(await _0x23d7ad[_0x4152bf(0x159)])[_0x4152bf(0x1c0)](),'abortController':_0x23d7ad[_0x4152bf(0x1ac)]};}[_0x3e92c4(0x1ab)]({message:_0xb7f32c,conversationId:_0x12aa28,parts:_0x188da4,capabilities:_0xd1d9a9,model:_0x5c8db6,attributes:_0x2e361c}){const _0x227dab=_0x3e92c4,_0x3a3ef8={'prompt':_0xb7f32c,'content':_0x188da4,'model':_0x5c8db6,..._0xd1d9a9&&{'capabilities':_0xd1d9a9},..._0x2e361c&&{'attributes':_0x2e361c}},_0x240344=this[_0x227dab(0x1d8)](_0x227dab(0x178)+_0x12aa28+_0x227dab(0x14e),_0x227dab(0x19d),_0x3a3ef8);return{'getStream':async()=>{const _0x3c0ff9=_0x227dab,_0x524300=(await _0x240344[_0x3c0ff9(0x159)])[_0x3c0ff9(0x1a8)];return this[_0x3c0ff9(0x19e)](_0x524300);},'abortController':_0x240344[_0x227dab(0x1ac)]};}[_0x3e92c4(0x1b3)]({content:_0x3dc7e6,message:_0x41c64b,model:_0x3ac0b5,outputFormat:_0x102332}){const _0x3891c5=_0x3e92c4,_0x4951c0={'content':[{'type':_0x3891c5(0x1c3),'content':_0x3dc7e6}],'prompt':_0x41c64b,'model':_0x3ac0b5,'outputFormat':_0x102332},_0x161525=this[_0x3891c5(0x1d8)](_0x3891c5(0x167),_0x3891c5(0x19d),_0x4951c0);return{'getStream':async()=>{const _0x57ea7b=_0x3891c5,_0x409c53=(await _0x161525[_0x57ea7b(0x159)])[_0x57ea7b(0x1a8)];return this[_0x57ea7b(0x19e)](_0x409c53);},'abortController':_0x161525[_0x3891c5(0x1ac)]};}[_0x3e92c4(0x158)]({actionName:_0x145558,content:_0x3310f2,args:_0x34e87b}){const _0x4480bf=_0x3e92c4,_0x51b13c={'content':[{'type':_0x4480bf(0x1c3),'content':_0x3310f2}],'args':_0x34e87b},_0x37e711=this[_0x4480bf(0x1d8)](_0x4480bf(0x161)+_0x145558+_0x4480bf(0x17a),_0x4480bf(0x19d),_0x51b13c);return{'getStream':async()=>{const _0x383230=_0x4480bf,_0x2760a2=(await _0x37e711[_0x383230(0x159)])[_0x383230(0x1a8)];return this[_0x383230(0x19e)](_0x2760a2);},'abortController':_0x37e711[_0x4480bf(0x1ac)]};}[_0x3e92c4(0x193)](_0xbd3464,_0x3fbe9e,_0xceec0d){const _0x52deac=_0x3e92c4,_0x4a8a4b=new FormData();_0x4a8a4b[_0x52deac(0x18b)](_0x52deac(0x185),_0x3fbe9e,_0x3fbe9e[_0x52deac(0x147)]),_0xceec0d&&_0x4a8a4b[_0x52deac(0x18b)](_0x52deac(0x1aa),JSON[_0x52deac(0x1b5)](_0xceec0d));const _0x39c677=this[_0x52deac(0x1d8)](_0x52deac(0x178)+_0xbd3464+_0x52deac(0x1d1),_0x52deac(0x19d),_0x4a8a4b);return{'getId':async()=>(await _0x39c677[_0x52deac(0x159)])[_0x52deac(0x1c0)](),'abortController':_0x39c677[_0x52deac(0x1ac)]};}[_0x3e92c4(0x1ae)](_0x3096a5,_0x30fa50){const _0x185cf5=_0x3e92c4,_0x29d979=this[_0x185cf5(0x1d8)](_0x185cf5(0x178)+_0x3096a5+_0x185cf5(0x1c7)+_0x30fa50,_0x185cf5(0x191));return{'getDocument':async()=>(await _0x29d979[_0x185cf5(0x159)])[_0x185cf5(0x1c0)](),'abortController':_0x29d979[_0x185cf5(0x1ac)]};}[_0x3e92c4(0x174)](_0x4a6ecb,_0x16a0c8,_0x154f9d){const _0x51c9c5=_0x3e92c4,_0x27084b={'content':_0x16a0c8};_0x154f9d&&(_0x27084b[_0x51c9c5(0x1aa)]=_0x154f9d);const _0x12d08e=this[_0x51c9c5(0x1d8)](_0x51c9c5(0x178)+_0x4a6ecb+_0x51c9c5(0x1bb),_0x51c9c5(0x19d),_0x27084b);return{'getId':async()=>(await _0x12d08e[_0x51c9c5(0x159)])[_0x51c9c5(0x1c0)](),'abortController':_0x12d08e[_0x51c9c5(0x1ac)]};}[_0x3e92c4(0x1c5)](_0x3ccdd3,_0x58bd71={}){const _0x878567=_0x3e92c4,_0x514126=new URLSearchParams();_0x514126[_0x878567(0x18b)](_0x878567(0x181),_0x3ccdd3),_0x514126[_0x878567(0x18b)](_0x878567(0x14a),!0x1!==_0x58bd71[_0x878567(0x14a)]?_0x878567(0x1c1):_0x878567(0x1a2)),_0x514126[_0x878567(0x18b)](_0x878567(0x1ca),_0x58bd71[_0x878567(0x1ca)]?_0x58bd71[_0x878567(0x1ca)][_0x878567(0x170)]():_0x878567(0x15a)),_0x514126[_0x878567(0x18b)](_0x878567(0x155),_0x58bd71[_0x878567(0x155)]?_0x58bd71[_0x878567(0x155)]:_0x878567(0x1bd)),_0x514126[_0x878567(0x18b)](_0x878567(0x192),_0x58bd71[_0x878567(0x192)]?_0x58bd71[_0x878567(0x192)]:_0x878567(0x172));const _0x1bf3e9=this[_0x878567(0x1d8)](_0x878567(0x1bf)+_0x514126[_0x878567(0x170)](),_0x878567(0x191));return{'getConversations':async()=>{const _0x1a5045=_0x878567,_0x6d8d4e=await _0x1bf3e9[_0x1a5045(0x159)];return(await _0x6d8d4e[_0x1a5045(0x1c0)]())[_0x1a5045(0x1c6)];},'abortController':_0x1bf3e9[_0x878567(0x1ac)]};}[_0x3e92c4(0x14d)](_0x79100e){const _0x1c42f9=_0x3e92c4,_0x266451=this[_0x1c42f9(0x1d8)](_0x1c42f9(0x178)+_0x79100e,_0x1c42f9(0x160));return{'execute':async()=>{const _0x5ae89a=_0x1c42f9;await _0x266451[_0x5ae89a(0x159)];},'abortController':_0x266451[_0x1c42f9(0x1ac)]};}[_0x3e92c4(0x18e)](_0xf0ff4f,_0xbf3fce){const _0x409b6e=_0x3e92c4,_0x103ad5=this[_0x409b6e(0x1d8)](_0x409b6e(0x178)+_0xf0ff4f,_0x409b6e(0x1c2),_0xbf3fce);return{'getResult':async()=>(await _0x103ad5[_0x409b6e(0x159)],_0xbf3fce),'abortController':_0x103ad5[_0x409b6e(0x1ac)]};}[_0x3e92c4(0x1b8)](_0x3dbba5){const _0x5d61d1=_0x3e92c4,_0x5adfdf=this[_0x5d61d1(0x1d8)](_0x5d61d1(0x178)+_0x3dbba5,_0x5d61d1(0x191));return{'getConversation':async()=>(await _0x5adfdf[_0x5d61d1(0x159)])[_0x5d61d1(0x1c0)](),'abortController':_0x5adfdf[_0x5d61d1(0x1ac)]};}[_0x3e92c4(0x1b7)](_0x46cc68){const _0x334e96=_0x3e92c4,_0x1f8e33=this[_0x334e96(0x1d8)](_0x334e96(0x178)+_0x46cc68+_0x334e96(0x14e),_0x334e96(0x191));return{'getMessages':async()=>{const _0x3873df=_0x334e96,_0x7023d2=await _0x1f8e33[_0x3873df(0x159)];return(await _0x7023d2[_0x3873df(0x1c0)]())[_0x3873df(0x1c6)];},'abortController':_0x1f8e33[_0x334e96(0x1ac)]};}[_0x3e92c4(0x184)](_0x55f21e,_0x306e61,_0x195120){const _0x3b4fa6=_0x3e92c4,_0x5eb05c=this[_0x3b4fa6(0x1d8)](_0x3b4fa6(0x178)+_0x55f21e+_0x3b4fa6(0x195),_0x3b4fa6(0x19d),{'url':_0x306e61,'attributes':_0x195120});return{'getId':async()=>(await _0x5eb05c[_0x3b4fa6(0x159)])[_0x3b4fa6(0x1c0)](),'abortController':_0x5eb05c[_0x3b4fa6(0x1ac)]};}[_0x3e92c4(0x1a9)](_0x38144f='en'){const _0x1cab34=_0x3e92c4,_0x579241=new URLSearchParams();_0x579241[_0x1cab34(0x18b)](_0x1cab34(0x180),_0x38144f);const _0x269c4d=_0x1cab34(0x1cb)+_0x579241[_0x1cab34(0x170)](),_0x186ddd=this[_0x1cab34(0x1d8)](_0x269c4d,_0x1cab34(0x191));return{'list':async()=>await(await _0x186ddd[_0x1cab34(0x159)])[_0x1cab34(0x1c0)](),'abortController':_0x186ddd[_0x1cab34(0x1ac)]};}[_0x3e92c4(0x17d)](_0x370f48,_0x56e95a){const _0xd4af73=_0x3e92c4,_0x180220=this[_0xd4af73(0x1d8)](_0xd4af73(0x178)+_0x370f48+_0xd4af73(0x19f)+_0x56e95a,_0xd4af73(0x160));return{'execute':async()=>{const _0x482e1a=_0xd4af73;await _0x180220[_0x482e1a(0x159)];},'abortController':_0x180220[_0xd4af73(0x1ac)]};}[_0x3e92c4(0x1ad)](_0x4f06ae,_0x27f563){const _0x59457a=_0x3e92c4,_0x48a247=this[_0x59457a(0x1d8)](_0x59457a(0x178)+_0x4f06ae+_0x59457a(0x1c7)+_0x27f563,_0x59457a(0x160));return{'execute':async()=>{const _0x2bfff6=_0x59457a;await _0x48a247[_0x2bfff6(0x159)];},'abortController':_0x48a247[_0x59457a(0x1ac)]};}[_0x3e92c4(0x177)](_0x5af2e2,_0xe97d11){const _0x5a9e1c=_0x3e92c4,_0x24bb4b=this[_0x5a9e1c(0x1d8)](_0x5a9e1c(0x178)+_0x5af2e2+_0x5a9e1c(0x154)+_0xe97d11,_0x5a9e1c(0x160));return{'execute':async()=>{const _0x49c89e=_0x5a9e1c;await _0x24bb4b[_0x49c89e(0x159)];},'abortController':_0x24bb4b[_0x5a9e1c(0x1ac)]};}[_0x3e92c4(0x15d)]({reviewName:_0x5d597c,content:_0x4cba09,args:_0x57ad86}){const _0x3a7e2c=_0x3e92c4,_0x32f52e=this[_0x3a7e2c(0x1d8)](_0x3a7e2c(0x145)+_0x5d597c+_0x3a7e2c(0x17a),_0x3a7e2c(0x19d),{'content':[{'type':_0x3a7e2c(0x1c3),'content':_0x4cba09}],'args':_0x57ad86});return{'getStream':async()=>{const _0x12e9da=_0x3a7e2c,_0x52f872=(await _0x32f52e[_0x12e9da(0x159)])[_0x12e9da(0x1a8)];return this[_0x12e9da(0x19e)](_0x52f872);},'abortController':_0x32f52e[_0x3a7e2c(0x1ac)]};}[_0x3e92c4(0x1cf)]({content:_0x3ef99a,prompt:_0x1dedd9,model:_0x7bf064}){const _0x12f64f=_0x3e92c4,_0x468800=this[_0x12f64f(0x1d8)](_0x12f64f(0x19a),_0x12f64f(0x19d),{'content':[{'type':_0x12f64f(0x1c3),'content':_0x3ef99a}],'prompt':_0x1dedd9,'model':_0x7bf064});return{'getStream':async()=>{const _0x1c234f=_0x12f64f,_0x1a0ccc=(await _0x468800[_0x1c234f(0x159)])[_0x1c234f(0x1a8)];return this[_0x1c234f(0x19e)](_0x1a0ccc);},'abortController':_0x468800[_0x12f64f(0x1ac)]};}[_0x3e92c4(0x144)](_0x3cd93e,_0x338aa2,_0x1de7ef){const _0x21c082=_0x3e92c4,_0x3ec76f=this[_0x21c082(0x1d8)](_0x21c082(0x178)+_0x3cd93e+_0x21c082(0x1b6)+_0x338aa2+_0x21c082(0x16e),_0x21c082(0x1d2),{'positiveCount':_0x1de7ef[_0x21c082(0x162)],'totalCount':_0x1de7ef[_0x21c082(0x15b)],'modificationId':_0x1de7ef[_0x21c082(0x173)]});return{'execute':async()=>{const _0x4f5306=_0x21c082;await _0x3ec76f[_0x4f5306(0x159)];},'abortController':_0x3ec76f[_0x21c082(0x1ac)]};}[_0x3e92c4(0x166)](_0x245e1d,_0x2caa61,_0x4f8faa){const _0x2035eb=_0x3e92c4,_0x27b197=this[_0x2035eb(0x1d8)](_0x2035eb(0x161)+_0x245e1d+_0x2035eb(0x17e)+_0x2caa61+_0x2035eb(0x16e),_0x2035eb(0x1d2),{'positiveCount':_0x4f8faa[_0x2035eb(0x162)],'totalCount':_0x4f8faa[_0x2035eb(0x15b)]});return{'execute':async()=>{const _0x249c71=_0x2035eb;await _0x27b197[_0x249c71(0x159)];},'abortController':_0x27b197[_0x2035eb(0x1ac)]};}[_0x3e92c4(0x197)](_0x13c929,_0xb1948a){const _0x7f8695=_0x3e92c4,_0x4c393f=this[_0x7f8695(0x1d8)](_0x7f8695(0x1b9)+_0x13c929+_0x7f8695(0x16e),_0x7f8695(0x1d2),{'positiveCount':_0xb1948a[_0x7f8695(0x162)],'totalCount':_0xb1948a[_0x7f8695(0x15b)]});return{'execute':async()=>{const _0x132feb=_0x7f8695;await _0x4c393f[_0x132feb(0x159)];},'abortController':_0x4c393f[_0x7f8695(0x1ac)]};}[_0x3e92c4(0x1c9)](_0x112487,_0x6f5ac8,_0x4d5ec5,_0x17fe04){const _0x2d13ab=_0x3e92c4,_0x5376bb=this[_0x2d13ab(0x1d8)](_0x2d13ab(0x145)+_0x112487+_0x2d13ab(0x17e)+_0x6f5ac8+_0x2d13ab(0x16e),_0x2d13ab(0x1d2),{'positiveCount':_0x4d5ec5[_0x2d13ab(0x162)],'totalCount':_0x4d5ec5[_0x2d13ab(0x15b)],'dataId':_0x17fe04});return{'execute':async()=>{const _0x1b35c4=_0x2d13ab;await _0x5376bb[_0x1b35c4(0x159)];},'abortController':_0x5376bb[_0x2d13ab(0x1ac)]};}[_0x3e92c4(0x1d4)](_0x20ebe5,_0x5a642d,_0x1360af){const _0x36b890=_0x3e92c4,_0xf6986b=this[_0x36b890(0x1d8)](_0x36b890(0x1b0)+_0x20ebe5+_0x36b890(0x16e),_0x36b890(0x1d2),{'positiveCount':_0x5a642d[_0x36b890(0x162)],'totalCount':_0x5a642d[_0x36b890(0x15b)],'dataId':_0x1360af});return{'execute':async()=>{const _0x2d74bf=_0x36b890;await _0xf6986b[_0x2d74bf(0x159)];},'abortController':_0xf6986b[_0x36b890(0x1ac)]};}[_0x3e92c4(0x1d8)](_0x4565f2,_0x4dd4fe,_0x2001c3){const _0x1aeaad=_0x3e92c4,_0x2b480c=new AbortController(),_0xe52feb=_0x2001c3 instanceof FormData,_0x4c3baa={'Authorization':_0x1aeaad(0x187)+this[_0x1aeaad(0x1c8)]?.[_0x1aeaad(0x14b)]};_0x2001c3&&!_0xe52feb&&(_0x4c3baa[_0x1aeaad(0x150)]=_0x1aeaad(0x1d5));const _0x4a1371={'method':_0x4dd4fe,'headers':_0x4c3baa,'signal':_0x2b480c[_0x1aeaad(0x168)]};return _0x2001c3&&(_0x4a1371[_0x1aeaad(0x1a8)]=_0xe52feb?_0x2001c3:JSON[_0x1aeaad(0x1b5)](_0x2001c3)),{'request':fetch(''+this[_0x1aeaad(0x1a5)]+_0x4565f2,_0x4a1371)[_0x1aeaad(0x198)](_0x476f43=>{const _0x16bfa1=_0x1aeaad;this[_0x16bfa1(0x194)](_0x476f43);})[_0x1aeaad(0x153)](_0x5bb384=>_0x5bb384['ok']?_0x5bb384:_0x5bb384[_0x1aeaad(0x1c0)]()[_0x1aeaad(0x153)](_0x188449=>{const _0x3a4a4d=_0x1aeaad;throw{'url':this[_0x3a4a4d(0x1a5)],'path':_0x4565f2,'method':_0x4dd4fe,'body':_0x2001c3,'status':(_0x5bb384||{})[_0x3a4a4d(0x14c)],'statusText':(_0x5bb384||{})[_0x3a4a4d(0x1b1)],'code':_0x188449[_0x3a4a4d(0x188)],'message':_0x188449[_0x3a4a4d(0x1bc)],'traceId':_0x188449[_0x3a4a4d(0x16b)]};})),'abortController':_0x2b480c};}async*[_0x3e92c4(0x19e)](_0x307cc5){const _0x6553b0=_0x3e92c4,_0x43b4dc=[],_0x2da26f=_0x307cc5[_0x6553b0(0x18c)](),_0x57be94=_0x4e17be({'onError':_0x2e7dd7=>{const _0x25169b=_0x6553b0;this[_0x25169b(0x194)](_0x2e7dd7);},'onEvent':_0xc1c84b=>{const _0x245670=_0x6553b0;_0xc1c84b[_0x245670(0x176)]=JSON[_0x245670(0x163)](_0xc1c84b[_0x245670(0x176)]),_0x43b4dc[_0x245670(0x16a)](_0xc1c84b);}});try{let _0x485f67=!0x1;for(;!_0x485f67;){const {done:_0x16cbb4,value:_0x2baba8}=await _0x2da26f[_0x6553b0(0x1d6)]();_0x16cbb4&&(_0x485f67=!0x0),_0x57be94[_0x6553b0(0x18f)](this[_0x6553b0(0x17f)][_0x6553b0(0x1d0)](_0x2baba8,{'stream':!0x0})),yield*_0x43b4dc,_0x43b4dc[_0x6553b0(0x17c)]=0x0;}}catch(_0x3401d9){this[_0x6553b0(0x194)](_0x3401d9);}finally{_0x2da26f[_0x6553b0(0x1cd)](),_0x57be94[_0x6553b0(0x16f)]();}}[_0x3e92c4(0x194)](_0x388f8d){const _0x2df7fc=_0x3e92c4;if(_0x388f8d instanceof _0x116ebd)throw _0x388f8d;if(_0x388f8d instanceof Error&&_0x2df7fc(0x17b)===_0x388f8d[_0x2df7fc(0x147)])throw new _0x116ebd(_0x2df7fc(0x196),this,{'originalError':_0x388f8d});throw new _0x116ebd(_0x2df7fc(0x183),this,{'originalError':_0x388f8d});}}
23
+ function _0x27d0(_0x541f86,_0x34c528){const _0x5438fb=_0x5438();return _0x27d0=function(_0x27d084,_0x3e4e84){_0x27d084=_0x27d084-0x104;let _0x3fd611=_0x5438fb[_0x27d084];return _0x3fd611;},_0x27d0(_0x541f86,_0x34c528);}const _0x866c86=_0x27d0;(function(_0x2e89f1,_0x33a1d5){const _0x1d13f4=_0x27d0,_0x253a53=_0x2e89f1();while(!![]){try{const _0x27932a=-parseInt(_0x1d13f4(0x10b))/0x1*(-parseInt(_0x1d13f4(0x115))/0x2)+parseInt(_0x1d13f4(0x15e))/0x3+parseInt(_0x1d13f4(0x12b))/0x4+parseInt(_0x1d13f4(0x16c))/0x5*(parseInt(_0x1d13f4(0x199))/0x6)+parseInt(_0x1d13f4(0x121))/0x7*(parseInt(_0x1d13f4(0x12a))/0x8)+parseInt(_0x1d13f4(0x11e))/0x9*(parseInt(_0x1d13f4(0x16e))/0xa)+parseInt(_0x1d13f4(0x10e))/0xb*(-parseInt(_0x1d13f4(0x141))/0xc);if(_0x27932a===_0x33a1d5)break;else _0x253a53['push'](_0x253a53['shift']());}catch(_0x39c003){_0x253a53['push'](_0x253a53['shift']());}}}(_0x5438,0xab77d));import{createParser as _0x489be6}from'eventsource-parser';import{ContextPlugin as _0x36fd92}from'ckeditor5/src/core.js';function _0x5438(){const _0x512a97=['language','fetchDocument','totalCount','_apiUrl','executeCustomAction','https://ai.cke-cs.com/v1','100','fetchConversations','statusText','parse','excludeEmpty','ai.serviceUrl','POST','get','callSystemReview','false','/conversations','/actions/system/','config','make-longer','plugins','1904544UTcwhk','MAKE_TONE_CASUAL','make-shorter','code','continue','GET','value','order','releaseLock','DELETE','sortBy','feed','/conversations?','stringify','5BftkSf','/documents/','6453610avrArN','TRANSLATE','callCustomReview','upsertCustomAIActionRating','uploadFile','AbortError','group','IMPROVE_WRITING','/web-resources','init','push','/calls/','desc','ai-request-aborted','deleteConversation','fix-grammar','PATCH','/reviews/custom/calls','make-tone-casual','MAKE_LONGER','queryAssistant','json','/ratings','isPremiumPlugin','/documents','FIX_GRAMMAR','body','/actions/custom/calls/','improve-writing','deleteDocument','message','request','token','CONTINUE','requires','deleteFile','executeAction','catch','/models/1?','name','make-tone-formal','_getStreamReader','toString','6029130EwjMjQ','/files','read','translate','fetchConversationMessages','items','traceId','_decoder','getModels','15gCPWhy','MAKE_SHORTER','ai-missing-token','11FusQKA','/web-resources/','isOfficialPlugin','true','upsertAIActionRating','Bearer\x20','/reviews/system/','151410IOPqtV','updateConversation','signal','upsertAIReviewRating','/actions/custom/calls','then','abortController','/files/','append','9UNJDef','application/json','modificationId','2751XjnXLJ','/messages','/conversations/','upsertAIChatRating','PUT','createdAt','_sendApiRequest','CloudServices','reset','10312VtJqdo','1323296irzYqU','uploadUrl','status','context','MAKE_TONE_FORMAL','limit','fetchConversation','attributes','/calls','getReader','startConversation','ai-request-failed','positiveCount','pluginName','length','file','AIConnector','data','decode','text','_token','_handleError','42668484ylHTLp','define','/messages/','uploadDocument','/reviews/custom/calls/','deleteWebResource','Content-Type','upsertCustomAIReviewRating'];_0x5438=function(){return _0x512a97;};return _0x5438();}import{CKEditorError as _0x526cf5}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x346d71){const _0x395876=_0x27d0;_0x346d71[_0x395876(0x18f)]=_0x395876(0x162),_0x346d71[_0x395876(0x187)]=_0x395876(0x17d),_0x346d71[_0x395876(0x175)]=_0x395876(0x18a),_0x346d71[_0x395876(0x181)]=_0x395876(0x15c),_0x346d71[_0x395876(0x10c)]=_0x395876(0x160),_0x346d71[_0x395876(0x15f)]=_0x395876(0x180),_0x346d71[_0x395876(0x12f)]=_0x395876(0x196),_0x346d71[_0x395876(0x16f)]=_0x395876(0x105);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x36fd92{[_0x866c86(0x14c)];[_0x866c86(0x13f)];[_0x866c86(0x109)];static get[_0x866c86(0x190)](){const _0x1821dc=_0x866c86;return[_0x1821dc(0x128)];}static get[_0x866c86(0x138)](){const _0x40d228=_0x866c86;return _0x40d228(0x13b);}static get[_0x866c86(0x110)](){return!0x0;}static get[_0x866c86(0x185)](){return!0x0;}constructor(_0x83a5d6){const _0x18c76c=_0x866c86;super(_0x83a5d6),this[_0x18c76c(0x12e)][_0x18c76c(0x15b)][_0x18c76c(0x142)](_0x18c76c(0x154),_0x18c76c(0x14e)),this[_0x18c76c(0x14c)]=this[_0x18c76c(0x12e)][_0x18c76c(0x15b)][_0x18c76c(0x156)](_0x18c76c(0x154)),this[_0x18c76c(0x13f)]=null,this[_0x18c76c(0x109)]=new TextDecoder();}[_0x866c86(0x177)](){const _0x23e59a=_0x866c86,_0x4724a3=this[_0x23e59a(0x12e)][_0x23e59a(0x15d)][_0x23e59a(0x156)](_0x23e59a(0x128));if(!_0x4724a3[_0x23e59a(0x18e)])throw new _0x526cf5(_0x23e59a(0x10d),this);this[_0x23e59a(0x13f)]=_0x4724a3[_0x23e59a(0x18e)];}[_0x866c86(0x135)](_0xf38691,_0x4db8e8){const _0x2c1a19=_0x866c86,_0x4174b6=this[_0x2c1a19(0x127)](_0x2c1a19(0x159),_0x2c1a19(0x155),{'id':_0xf38691,'group':_0x4db8e8});return{'getConversation':async()=>(await _0x4174b6[_0x2c1a19(0x18d)])[_0x2c1a19(0x183)](),'abortController':_0x4174b6[_0x2c1a19(0x11b)]};}[_0x866c86(0x182)]({message:_0x2222ed,conversationId:_0x4da1e4,parts:_0x18251d,capabilities:_0x20adf0,model:_0x31f069,attributes:_0x5b781e}){const _0x5ecc27=_0x866c86,_0x493d4d={'prompt':_0x2222ed,'content':_0x18251d,'model':_0x31f069,..._0x20adf0&&{'capabilities':_0x20adf0},..._0x5b781e&&{'attributes':_0x5b781e}},_0x4d1a60=this[_0x5ecc27(0x127)](_0x5ecc27(0x123)+_0x4da1e4+_0x5ecc27(0x122),_0x5ecc27(0x155),_0x493d4d);return{'getStream':async()=>{const _0x3d6e15=_0x5ecc27,_0x223411=(await _0x4d1a60[_0x3d6e15(0x18d)])[_0x3d6e15(0x188)];return this[_0x3d6e15(0x197)](_0x223411);},'abortController':_0x4d1a60[_0x5ecc27(0x11b)]};}[_0x866c86(0x14d)]({content:_0x16cb8a,message:_0x59dcd7,model:_0x13d41e,outputFormat:_0x3bb80f}){const _0x1896e8=_0x866c86,_0x306d6d={'content':[{'type':_0x1896e8(0x13e),'content':_0x16cb8a}],'prompt':_0x59dcd7,'model':_0x13d41e,'outputFormat':_0x3bb80f},_0x4caae4=this[_0x1896e8(0x127)](_0x1896e8(0x119),_0x1896e8(0x155),_0x306d6d);return{'getStream':async()=>{const _0x9d7287=_0x1896e8,_0x150bf2=(await _0x4caae4[_0x9d7287(0x18d)])[_0x9d7287(0x188)];return this[_0x9d7287(0x197)](_0x150bf2);},'abortController':_0x4caae4[_0x1896e8(0x11b)]};}[_0x866c86(0x192)]({actionName:_0x5f551d,content:_0x2fc5e1,args:_0x4ef265}){const _0x2dbee6=_0x866c86,_0x8f79b9={'content':[{'type':_0x2dbee6(0x13e),'content':_0x2fc5e1}],'args':_0x4ef265},_0x2f065d=this[_0x2dbee6(0x127)](_0x2dbee6(0x15a)+_0x5f551d+_0x2dbee6(0x133),_0x2dbee6(0x155),_0x8f79b9);return{'getStream':async()=>{const _0x35361c=_0x2dbee6,_0xc3c302=(await _0x2f065d[_0x35361c(0x18d)])[_0x35361c(0x188)];return this[_0x35361c(0x197)](_0xc3c302);},'abortController':_0x2f065d[_0x2dbee6(0x11b)]};}[_0x866c86(0x172)](_0x8d13f0,_0x45d503,_0x457f1d){const _0x18d1f7=_0x866c86,_0x5bf15d=new FormData();_0x5bf15d[_0x18d1f7(0x11d)](_0x18d1f7(0x13a),_0x45d503,_0x45d503[_0x18d1f7(0x195)]),_0x457f1d&&_0x5bf15d[_0x18d1f7(0x11d)](_0x18d1f7(0x132),JSON[_0x18d1f7(0x16b)](_0x457f1d));const _0x1044a6=this[_0x18d1f7(0x127)](_0x18d1f7(0x123)+_0x8d13f0+_0x18d1f7(0x19a),_0x18d1f7(0x155),_0x5bf15d);return{'getId':async()=>(await _0x1044a6[_0x18d1f7(0x18d)])[_0x18d1f7(0x183)](),'abortController':_0x1044a6[_0x18d1f7(0x11b)]};}[_0x866c86(0x14a)](_0x3c4549,_0x896d3){const _0x5808c3=_0x866c86,_0x3f0f8b=this[_0x5808c3(0x127)](_0x5808c3(0x123)+_0x3c4549+_0x5808c3(0x16d)+_0x896d3,_0x5808c3(0x163));return{'getDocument':async()=>(await _0x3f0f8b[_0x5808c3(0x18d)])[_0x5808c3(0x183)](),'abortController':_0x3f0f8b[_0x5808c3(0x11b)]};}[_0x866c86(0x144)](_0x5e10a8,_0x30bdee,_0x4a6240){const _0x424f3f=_0x866c86,_0x63a313={'content':_0x30bdee};_0x4a6240&&(_0x63a313[_0x424f3f(0x132)]=_0x4a6240);const _0x11208b=this[_0x424f3f(0x127)](_0x424f3f(0x123)+_0x5e10a8+_0x424f3f(0x186),_0x424f3f(0x155),_0x63a313);return{'getId':async()=>(await _0x11208b[_0x424f3f(0x18d)])[_0x424f3f(0x183)](),'abortController':_0x11208b[_0x424f3f(0x11b)]};}[_0x866c86(0x150)](_0x9152eb,_0x5ec256={}){const _0x592b28=_0x866c86,_0x1cf22d=new URLSearchParams();_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x174),_0x9152eb),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x153),!0x1!==_0x5ec256[_0x592b28(0x153)]?_0x592b28(0x111):_0x592b28(0x158)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x130),_0x5ec256[_0x592b28(0x130)]?_0x5ec256[_0x592b28(0x130)][_0x592b28(0x198)]():_0x592b28(0x14f)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x168),_0x5ec256[_0x592b28(0x168)]?_0x5ec256[_0x592b28(0x168)]:_0x592b28(0x126)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x165),_0x5ec256[_0x592b28(0x165)]?_0x5ec256[_0x592b28(0x165)]:_0x592b28(0x17a));const _0x16c9c7=this[_0x592b28(0x127)](_0x592b28(0x16a)+_0x1cf22d[_0x592b28(0x198)](),_0x592b28(0x163));return{'getConversations':async()=>{const _0x44576b=_0x592b28,_0x3a0ef4=await _0x16c9c7[_0x44576b(0x18d)];return(await _0x3a0ef4[_0x44576b(0x183)]())[_0x44576b(0x107)];},'abortController':_0x16c9c7[_0x592b28(0x11b)]};}[_0x866c86(0x17c)](_0x3581fc){const _0x44bb0f=_0x866c86,_0x1bc6e4=this[_0x44bb0f(0x127)](_0x44bb0f(0x123)+_0x3581fc,_0x44bb0f(0x167));return{'execute':async()=>{const _0x535e3d=_0x44bb0f;await _0x1bc6e4[_0x535e3d(0x18d)];},'abortController':_0x1bc6e4[_0x44bb0f(0x11b)]};}[_0x866c86(0x116)](_0x497b67,_0x452726){const _0x7db3e4=_0x866c86,_0x27617e=this[_0x7db3e4(0x127)](_0x7db3e4(0x123)+_0x497b67,_0x7db3e4(0x17e),_0x452726);return{'getResult':async()=>(await _0x27617e[_0x7db3e4(0x18d)],_0x452726),'abortController':_0x27617e[_0x7db3e4(0x11b)]};}[_0x866c86(0x131)](_0x44b911){const _0x501da4=_0x866c86,_0x5eabb6=this[_0x501da4(0x127)](_0x501da4(0x123)+_0x44b911,_0x501da4(0x163));return{'getConversation':async()=>(await _0x5eabb6[_0x501da4(0x18d)])[_0x501da4(0x183)](),'abortController':_0x5eabb6[_0x501da4(0x11b)]};}[_0x866c86(0x106)](_0x51d955){const _0x1acda9=_0x866c86,_0x3e1a46=this[_0x1acda9(0x127)](_0x1acda9(0x123)+_0x51d955+_0x1acda9(0x122),_0x1acda9(0x163));return{'getMessages':async()=>{const _0x1c9ac4=_0x1acda9,_0x1ddabb=await _0x3e1a46[_0x1c9ac4(0x18d)];return(await _0x1ddabb[_0x1c9ac4(0x183)]())[_0x1c9ac4(0x107)];},'abortController':_0x3e1a46[_0x1acda9(0x11b)]};}[_0x866c86(0x12c)](_0x11c4bb,_0x4c7085,_0x291628){const _0x47213f=_0x866c86,_0x2fc1c3=this[_0x47213f(0x127)](_0x47213f(0x123)+_0x11c4bb+_0x47213f(0x176),_0x47213f(0x155),{'url':_0x4c7085,'attributes':_0x291628});return{'getId':async()=>(await _0x2fc1c3[_0x47213f(0x18d)])[_0x47213f(0x183)](),'abortController':_0x2fc1c3[_0x47213f(0x11b)]};}[_0x866c86(0x10a)](_0x575a5='en'){const _0x23ddaf=_0x866c86,_0x9896bb=new URLSearchParams();_0x9896bb[_0x23ddaf(0x11d)](_0x23ddaf(0x149),_0x575a5);const _0x3062e1=_0x23ddaf(0x194)+_0x9896bb[_0x23ddaf(0x198)](),_0xe2ced5=this[_0x23ddaf(0x127)](_0x3062e1,_0x23ddaf(0x163));return{'list':async()=>await(await _0xe2ced5[_0x23ddaf(0x18d)])[_0x23ddaf(0x183)](),'abortController':_0xe2ced5[_0x23ddaf(0x11b)]};}[_0x866c86(0x191)](_0x54da51,_0x1ec743){const _0x30cdb7=_0x866c86,_0x153ced=this[_0x30cdb7(0x127)](_0x30cdb7(0x123)+_0x54da51+_0x30cdb7(0x11c)+_0x1ec743,_0x30cdb7(0x167));return{'execute':async()=>{const _0x2c9bf0=_0x30cdb7;await _0x153ced[_0x2c9bf0(0x18d)];},'abortController':_0x153ced[_0x30cdb7(0x11b)]};}[_0x866c86(0x18b)](_0x1bd49c,_0x31502c){const _0x158790=_0x866c86,_0x248b71=this[_0x158790(0x127)](_0x158790(0x123)+_0x1bd49c+_0x158790(0x16d)+_0x31502c,_0x158790(0x167));return{'execute':async()=>{const _0x347cbb=_0x158790;await _0x248b71[_0x347cbb(0x18d)];},'abortController':_0x248b71[_0x158790(0x11b)]};}[_0x866c86(0x146)](_0x1ce582,_0x77cea){const _0x22b7ab=_0x866c86,_0x135d38=this[_0x22b7ab(0x127)](_0x22b7ab(0x123)+_0x1ce582+_0x22b7ab(0x10f)+_0x77cea,_0x22b7ab(0x167));return{'execute':async()=>{const _0x2d56ad=_0x22b7ab;await _0x135d38[_0x2d56ad(0x18d)];},'abortController':_0x135d38[_0x22b7ab(0x11b)]};}[_0x866c86(0x157)]({reviewName:_0x5dff63,content:_0x4b794c,args:_0x5d0a9e}){const _0x252796=_0x866c86,_0x25e10c=this[_0x252796(0x127)](_0x252796(0x114)+_0x5dff63+_0x252796(0x133),_0x252796(0x155),{'content':[{'type':_0x252796(0x13e),'content':_0x4b794c}],'args':_0x5d0a9e});return{'getStream':async()=>{const _0x16301f=_0x252796,_0xc42c03=(await _0x25e10c[_0x16301f(0x18d)])[_0x16301f(0x188)];return this[_0x16301f(0x197)](_0xc42c03);},'abortController':_0x25e10c[_0x252796(0x11b)]};}[_0x866c86(0x170)]({content:_0x25082d,prompt:_0x49787e,model:_0x23f272}){const _0x44910=_0x866c86,_0x307dec=this[_0x44910(0x127)](_0x44910(0x17f),_0x44910(0x155),{'content':[{'type':_0x44910(0x13e),'content':_0x25082d}],'prompt':_0x49787e,'model':_0x23f272});return{'getStream':async()=>{const _0x41e1f1=_0x44910,_0x1f54a1=(await _0x307dec[_0x41e1f1(0x18d)])[_0x41e1f1(0x188)];return this[_0x41e1f1(0x197)](_0x1f54a1);},'abortController':_0x307dec[_0x44910(0x11b)]};}[_0x866c86(0x124)](_0x184f9d,_0xde9545,_0x59fc07){const _0xa2f1d9=_0x866c86,_0x3aca74=this[_0xa2f1d9(0x127)](_0xa2f1d9(0x123)+_0x184f9d+_0xa2f1d9(0x143)+_0xde9545+_0xa2f1d9(0x184),_0xa2f1d9(0x125),{'positiveCount':_0x59fc07[_0xa2f1d9(0x137)],'totalCount':_0x59fc07[_0xa2f1d9(0x14b)],'modificationId':_0x59fc07[_0xa2f1d9(0x120)]});return{'execute':async()=>{const _0x29b7ed=_0xa2f1d9;await _0x3aca74[_0x29b7ed(0x18d)];},'abortController':_0x3aca74[_0xa2f1d9(0x11b)]};}[_0x866c86(0x112)](_0xd9df05,_0x50f344,_0x41e9c6){const _0x169c35=_0x866c86,_0x15a526=this[_0x169c35(0x127)](_0x169c35(0x15a)+_0xd9df05+_0x169c35(0x179)+_0x50f344+_0x169c35(0x184),_0x169c35(0x125),{'positiveCount':_0x41e9c6[_0x169c35(0x137)],'totalCount':_0x41e9c6[_0x169c35(0x14b)]});return{'execute':async()=>{const _0xb4b116=_0x169c35;await _0x15a526[_0xb4b116(0x18d)];},'abortController':_0x15a526[_0x169c35(0x11b)]};}[_0x866c86(0x171)](_0x5a8ac5,_0x47cbf8){const _0x97f81a=_0x866c86,_0x20662a=this[_0x97f81a(0x127)](_0x97f81a(0x189)+_0x5a8ac5+_0x97f81a(0x184),_0x97f81a(0x125),{'positiveCount':_0x47cbf8[_0x97f81a(0x137)],'totalCount':_0x47cbf8[_0x97f81a(0x14b)]});return{'execute':async()=>{const _0xe7a6bc=_0x97f81a;await _0x20662a[_0xe7a6bc(0x18d)];},'abortController':_0x20662a[_0x97f81a(0x11b)]};}[_0x866c86(0x118)](_0x4c6f5b,_0x3122ac,_0x3e45a9,_0xf010f5){const _0x57a25a=_0x866c86,_0x4e8456=this[_0x57a25a(0x127)](_0x57a25a(0x114)+_0x4c6f5b+_0x57a25a(0x179)+_0x3122ac+_0x57a25a(0x184),_0x57a25a(0x125),{'positiveCount':_0x3e45a9[_0x57a25a(0x137)],'totalCount':_0x3e45a9[_0x57a25a(0x14b)],'dataId':_0xf010f5});return{'execute':async()=>{const _0x2ae0b8=_0x57a25a;await _0x4e8456[_0x2ae0b8(0x18d)];},'abortController':_0x4e8456[_0x57a25a(0x11b)]};}[_0x866c86(0x148)](_0x3ae9da,_0x244a0b,_0x17fdaa){const _0x11e379=_0x866c86,_0x4c0a43=this[_0x11e379(0x127)](_0x11e379(0x145)+_0x3ae9da+_0x11e379(0x184),_0x11e379(0x125),{'positiveCount':_0x244a0b[_0x11e379(0x137)],'totalCount':_0x244a0b[_0x11e379(0x14b)],'dataId':_0x17fdaa});return{'execute':async()=>{const _0x5a62b2=_0x11e379;await _0x4c0a43[_0x5a62b2(0x18d)];},'abortController':_0x4c0a43[_0x11e379(0x11b)]};}[_0x866c86(0x127)](_0x3de209,_0x519e58,_0x500046){const _0x37b03c=_0x866c86,_0x2ac8e9=new AbortController(),_0x34b46b=_0x500046 instanceof FormData,_0x27fde7={'Authorization':_0x37b03c(0x113)+this[_0x37b03c(0x13f)]?.[_0x37b03c(0x164)]};_0x500046&&!_0x34b46b&&(_0x27fde7[_0x37b03c(0x147)]=_0x37b03c(0x11f));const _0x2be418={'method':_0x519e58,'headers':_0x27fde7,'signal':_0x2ac8e9[_0x37b03c(0x117)]};return _0x500046&&(_0x2be418[_0x37b03c(0x188)]=_0x34b46b?_0x500046:JSON[_0x37b03c(0x16b)](_0x500046)),{'request':fetch(''+this[_0x37b03c(0x14c)]+_0x3de209,_0x2be418)[_0x37b03c(0x193)](_0x5a93a6=>{const _0x47b179=_0x37b03c;this[_0x47b179(0x140)](_0x5a93a6);})[_0x37b03c(0x11a)](_0x1416a1=>_0x1416a1['ok']?_0x1416a1:_0x1416a1[_0x37b03c(0x183)]()[_0x37b03c(0x11a)](_0x4178a2=>{const _0x13f687=_0x37b03c;throw{'url':this[_0x13f687(0x14c)],'path':_0x3de209,'method':_0x519e58,'body':_0x500046,'status':(_0x1416a1||{})[_0x13f687(0x12d)],'statusText':(_0x1416a1||{})[_0x13f687(0x151)],'code':_0x4178a2[_0x13f687(0x161)],'message':_0x4178a2[_0x13f687(0x18c)],'traceId':_0x4178a2[_0x13f687(0x108)]};})),'abortController':_0x2ac8e9};}async*[_0x866c86(0x197)](_0x57ba5f){const _0x1ae24a=_0x866c86,_0x3895df=[],_0x254752=_0x57ba5f[_0x1ae24a(0x134)](),_0x54bc42=_0x489be6({'onError':_0x47f3dd=>{const _0x19e235=_0x1ae24a;this[_0x19e235(0x140)](_0x47f3dd);},'onEvent':_0x24cf28=>{const _0x142f0f=_0x1ae24a;_0x24cf28[_0x142f0f(0x13c)]=JSON[_0x142f0f(0x152)](_0x24cf28[_0x142f0f(0x13c)]),_0x3895df[_0x142f0f(0x178)](_0x24cf28);}});try{let _0x1cfa2e=!0x1;for(;!_0x1cfa2e;){const {done:_0x18241c,value:_0x4ee45d}=await _0x254752[_0x1ae24a(0x104)]();_0x18241c&&(_0x1cfa2e=!0x0),_0x54bc42[_0x1ae24a(0x169)](this[_0x1ae24a(0x109)][_0x1ae24a(0x13d)](_0x4ee45d,{'stream':!0x0})),yield*_0x3895df,_0x3895df[_0x1ae24a(0x139)]=0x0;}}catch(_0x2088c9){this[_0x1ae24a(0x140)](_0x2088c9);}finally{_0x254752[_0x1ae24a(0x166)](),_0x54bc42[_0x1ae24a(0x129)]();}}[_0x866c86(0x140)](_0x376d00){const _0x102246=_0x866c86;if(_0x376d00 instanceof _0x526cf5)throw _0x376d00;if(_0x376d00 instanceof Error&&_0x102246(0x173)===_0x376d00[_0x102246(0x195)])throw new _0x526cf5(_0x102246(0x17b),this,{'originalError':_0x376d00});throw new _0x526cf5(_0x102246(0x136),this,{'originalError':_0x376d00});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x142776=_0x5392;function _0x5e5c(){const _0xcc7e67=['viewToDom','dataDowncast','624172gJsJQR','processor','selection','for','ready','toView','isAtEnd','sort','markerToElement','context','123706rnlXst','getSelection','getHtml','_getMarkersInDocumentOrder','convertAiChatSelectionMarker','model','config','add','version','_displayedFakeSelectionLocked','name','random','containerElement','_nextDataId','fromCharCode','htmlWriter','getMarkersGroup','getSelectionText','editing','afterInit','$textProxy','getItems','push','isBefore',':start></','plugins','ck-ai-assistant-ui_theme','getStart','_outputDataProcessor','get','_sessionId','showFakeVisualSelection','floor','toData','isOpening','590086DkTcrl','sessionId','createRange','ai-selection:','291795kBEHkQ',':end>','RealTimeCollaborationClient','domConverter','has','hideFakeVisualSelection','removeAllRanges','_getDocumentDataStringFromView','length','_setDataIdsOnChildren','ck-fake-ai-selection','5510214ruXBjU','substring','from',':end></','removeMarker','createUIElement','data','define','locale','end','ai.models.showModelSelector','editors','1279269yaotsV','change','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getDocumentData',':start>','4714104vWOnHj','getLastMatchingPosition','schema','conversion','8NuWRiH','_integrateEditor','isAfter','getChildren','getRanges','10hhfTuo','trim','indexOf','element','modelToDataWithIds','isContent','AIEditing','document','setAttribute','_displayedFakeSelectionId','isPremiumPlugin','ai-selection','markers','start','markerToHighlight','getRoot','editingDowncast','markerName','view','data-id','pluginName','listenTo','isOfficialPlugin','_setOutputDataProcessor','addMarker','join','emptyElement'];_0x5e5c=function(){return _0xcc7e67;};return _0x5e5c();}(function(_0x53e443,_0x285200){const _0x7abf99=_0x5392,_0x57074a=_0x53e443();while(!![]){try{const _0x5d9013=parseInt(_0x7abf99(0x14a))/0x1+parseInt(_0x7abf99(0x16d))/0x2+-parseInt(_0x7abf99(0x188))/0x3+-parseInt(_0x7abf99(0x140))/0x4*(-parseInt(_0x7abf99(0x196))/0x5)+parseInt(_0x7abf99(0x18d))/0x6+parseInt(_0x7abf99(0x171))/0x7*(parseInt(_0x7abf99(0x191))/0x8)+-parseInt(_0x7abf99(0x17c))/0x9;if(_0x5d9013===_0x285200)break;else _0x57074a['push'](_0x57074a['shift']());}catch(_0x2c1154){_0x57074a['push'](_0x57074a['shift']());}}}(_0x5e5c,0x7ed6f));import{ViewDowncastWriter as _0x198b25}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1e822f,Editor as _0x12ee13}from'ckeditor5/src/core.js';import{uid as _0x39bbde}from'ckeditor5/src/utils.js';import{getTranslation as _0x215b18}from'./utils/common-translations.js';import{getEditorFromContext as _0x51ee77}from'./utils/geteditorfromcontext.js';function _0x5392(_0x2b9d9b,_0x56f853){const _0x5e5cd4=_0x5e5c();return _0x5392=function(_0x53929d,_0x2da0aa){_0x53929d=_0x53929d-0x137;let _0x309642=_0x5e5cd4[_0x53929d];return _0x309642;},_0x5392(_0x2b9d9b,_0x56f853);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x142776(0x1a1);export class AIEditing extends _0x1e822f{constructor(_0xad3eff){const _0x432005=_0x142776;super(_0xad3eff),this[_0x432005(0x149)][_0x432005(0x150)][_0x432005(0x183)](_0x432005(0x186),!0x0);}[_0x142776(0x166)];[_0x142776(0x19f)]=null;[_0x142776(0x153)]=!0x1;[_0x142776(0x168)];static get[_0x142776(0x137)](){const _0x4ce5b0=_0x142776;return _0x4ce5b0(0x19c);}static get[_0x142776(0x139)](){return!0x0;}static get[_0x142776(0x1a0)](){return!0x0;}get[_0x142776(0x16e)](){const _0x145d77=_0x142776;if(!this[_0x145d77(0x168)]){const _0x33ef1c=_0x51ee77(this[_0x145d77(0x149)]),_0x286a9f=_0x33ef1c[_0x145d77(0x163)][_0x145d77(0x175)](_0x145d77(0x173))&&_0x33ef1c[_0x145d77(0x163)][_0x145d77(0x167)](_0x145d77(0x173))[_0x145d77(0x16e)];this[_0x145d77(0x168)]=_0x286a9f||_0x39bbde();}return this[_0x145d77(0x168)];}async[_0x142776(0x18b)](){const _0x56adb2=_0x142776,_0xfd38ff=_0x51ee77(this[_0x56adb2(0x149)]),_0x23b19a=_0xfd38ff[_0x56adb2(0x14f)],_0x35ba8b=_0xfd38ff[_0x56adb2(0x182)][_0x56adb2(0x145)](_0x23b19a[_0x56adb2(0x19d)][_0x56adb2(0x1a5)](),{'convertAiChatSelectionMarker':!0x0}),_0x18fe17=new _0x198b25(_0xfd38ff[_0x56adb2(0x15c)][_0x56adb2(0x1a8)][_0x56adb2(0x19d)]);this[_0x56adb2(0x17a)](_0x35ba8b,_0x18fe17);let _0x3c826a=await this[_0x56adb2(0x178)](_0x35ba8b);const _0x26d612=this[_0x56adb2(0x14d)](),_0x28479c=[];for(const _0x30c766 of _0x26d612){const _0x2ed6ba='<'+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x162)+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x18c),_0x35dbfd=_0x3c826a[_0x56adb2(0x198)](_0x2ed6ba);_0x3c826a=_0x3c826a[_0x56adb2(0x17d)](0x0,_0x35dbfd)+_0x3c826a[_0x56adb2(0x17d)](_0x35dbfd+_0x2ed6ba[_0x56adb2(0x179)]);const _0x9c07f1='<'+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x17f)+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x172),_0x34168b=_0x3c826a[_0x56adb2(0x198)](_0x9c07f1);_0x3c826a=_0x3c826a[_0x56adb2(0x17d)](0x0,_0x34168b)+_0x3c826a[_0x56adb2(0x17d)](_0x34168b+_0x9c07f1[_0x56adb2(0x179)]),_0x28479c[_0x56adb2(0x160)]({'markerName':_0x30c766[_0x56adb2(0x154)],'start':_0x35dbfd,'end':_0x34168b,'htmlFragment':_0x3c826a[_0x56adb2(0x17d)](_0x35dbfd,_0x34168b)});}return{'content':_0x3c826a,'version':_0xfd38ff[_0x56adb2(0x14f)][_0x56adb2(0x19d)][_0x56adb2(0x152)],'sessionId':this[_0x56adb2(0x16e)],'selections':_0x28479c};}async[_0x142776(0x15d)](){const _0x4f810c=_0x142776;this[_0x4f810c(0x149)]instanceof _0x12ee13?this[_0x4f810c(0x192)](this[_0x4f810c(0x149)]):this[_0x4f810c(0x138)](this[_0x4f810c(0x149)][_0x4f810c(0x187)],_0x4f810c(0x151),(_0x3395bb,_0x15b251)=>{const _0x5d6f63=_0x4f810c;_0x15b251['on'](_0x5d6f63(0x144),()=>{const _0xa5af17=_0x5d6f63;this[_0xa5af17(0x192)](_0x15b251);});});}[_0x142776(0x13a)](_0x734c97){const _0x1fc79e=_0x142776;this[_0x1fc79e(0x166)]=_0x734c97;}async[_0x142776(0x178)](_0x12bd47){const _0x5dd85c=_0x142776;let _0x3b56bb;const _0xde2ae6=_0x51ee77(this[_0x5dd85c(0x149)]);if(this[_0x5dd85c(0x166)]){const _0x168a0d=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x174)][_0x5dd85c(0x13e)](_0x12bd47),_0x4f8100=await this[_0x5dd85c(0x166)](_0x168a0d);_0x3b56bb=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x159)][_0x5dd85c(0x14c)](_0x4f8100);}else _0x3b56bb=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x16b)](_0x12bd47);return _0x3b56bb;}[_0x142776(0x192)](_0x4f393f){const _0x17dfca=_0x142776;_0x4f393f[_0x17dfca(0x190)][_0x17dfca(0x143)](_0x17dfca(0x1a6))[_0x17dfca(0x1a4)]({'model':_0x17dfca(0x1a1),'view':{'classes':[_0x17dfca(0x17b),_0x17dfca(0x164)],'priority':0xc}}),_0x4f393f[_0x17dfca(0x190)][_0x17dfca(0x143)](_0x17dfca(0x13f))[_0x17dfca(0x148)]({'model':_0x17dfca(0x1a1),'view':(_0x18c01d,{writer:_0x32c7ad,options:_0xabbbbb})=>_0xabbbbb[_0x17dfca(0x14e)]?_0x32c7ad[_0x17dfca(0x181)](_0x18c01d[_0x17dfca(0x1a7)]+':'+(_0x18c01d[_0x17dfca(0x16c)]?_0x17dfca(0x1a3):_0x17dfca(0x185))):null});}[_0x142776(0x169)](_0x397f3f,_0x2e4ac3,_0x5dd088=!0x1,_0x18c1db=!0x1){const _0xb5fdf9=_0x142776;if(this[_0xb5fdf9(0x153)]&&!_0x18c1db)return!0x1;const _0x5c5c55=_0x51ee77(this[_0xb5fdf9(0x149)])[_0xb5fdf9(0x14f)];return _0x5c5c55[_0xb5fdf9(0x189)](_0x450a57=>{const _0x567e29=_0xb5fdf9;this[_0x567e29(0x19f)]&&this[_0x567e29(0x176)](this[_0x567e29(0x19f)]),this[_0x567e29(0x19f)]=_0x2e4ac3,this[_0x567e29(0x153)]=_0x5dd088;let _0x37e1fb=0x0;for(let _0x1edfa7 of _0x397f3f){const _0x454f51=_0x567e29(0x170)+_0x37e1fb;if(_0x1edfa7[_0x567e29(0x1a3)][_0x567e29(0x146)]){const _0x37318e=_0x1edfa7[_0x567e29(0x1a3)][_0x567e29(0x18e)](({item:_0x3fb0bd})=>!_0x5c5c55[_0x567e29(0x18f)][_0x567e29(0x19b)](_0x3fb0bd),{'boundaries':_0x1edfa7});_0x1edfa7=_0x450a57[_0x567e29(0x16f)](_0x37318e,_0x1edfa7[_0x567e29(0x185)]);}_0x450a57[_0x567e29(0x13b)](_0x454f51,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1edfa7}),_0x37e1fb++;}}),window[_0xb5fdf9(0x14b)]()?.[_0xb5fdf9(0x177)](),!0x0;}[_0x142776(0x176)](_0x1864bc){const _0x14ebc8=_0x142776;if(this[_0x14ebc8(0x19f)]!=_0x1864bc)return!0x1;this[_0x14ebc8(0x19f)]=null,this[_0x14ebc8(0x153)]=!0x1;const _0x19c960=_0x51ee77(this[_0x14ebc8(0x149)]),_0x45fb7b=_0x19c960[_0x14ebc8(0x14f)][_0x14ebc8(0x1a2)][_0x14ebc8(0x15a)](_0x14ebc8(0x1a1));return _0x19c960[_0x14ebc8(0x14f)][_0x14ebc8(0x189)](_0xc64369=>{const _0x524ec2=_0x14ebc8;for(const _0x20acb0 of _0x45fb7b)_0xc64369[_0x524ec2(0x180)](_0x20acb0);}),!0x0;}async[_0x142776(0x19a)](_0xa50d4){const _0x2167ed=_0x142776,_0x1dbad4=_0x51ee77(this[_0x2167ed(0x149)]),_0x976bb3=_0x1dbad4[_0x2167ed(0x182)][_0x2167ed(0x145)](_0xa50d4),_0x1404e8=new _0x198b25(_0x1dbad4[_0x2167ed(0x15c)][_0x2167ed(0x1a8)][_0x2167ed(0x19d)]);return this[_0x2167ed(0x17a)](_0x976bb3,_0x1404e8),this[_0x2167ed(0x178)](_0x976bb3);}[_0x142776(0x17a)](_0x163d90,_0x5b80a0){const _0x57da6e=_0x142776;let _0x3afef3=!0x1;const _0x215ff9=new Set();for(const _0x3030b1 of _0x163d90[_0x57da6e(0x194)]()){const _0x320cfe=_0x3030b1['is'](_0x57da6e(0x13d))||_0x3030b1['is'](_0x57da6e(0x156));if(!_0x3030b1['is'](_0x57da6e(0x199)))continue;(this[_0x57da6e(0x17a)](_0x3030b1,_0x5b80a0)||_0x320cfe)&&(_0x5b80a0[_0x57da6e(0x19e)](_0x57da6e(0x1a9),this[_0x57da6e(0x157)](_0x215ff9),_0x3030b1),_0x3afef3=!0x0);}return _0x3afef3;}[_0x142776(0x157)](_0x51ca8f){const _0xd02177=_0x142776;let _0x4cb363;do{_0x4cb363='';for(let _0x45b3d7=0x0;_0x45b3d7<0x4;_0x45b3d7++)_0x4cb363+=String[_0xd02177(0x158)](0x61+Math[_0xd02177(0x16a)](0x1a*Math[_0xd02177(0x155)]()));}while(_0x51ca8f[_0xd02177(0x175)](_0x4cb363));return _0x51ca8f[_0xd02177(0x151)](_0x4cb363),_0x4cb363;}[_0x142776(0x15b)](){const _0x1b3aed=_0x142776,{model:_0x22bff2}=_0x51ee77(this[_0x1b3aed(0x149)]),_0x5d2030=_0x22bff2[_0x1b3aed(0x19d)][_0x1b3aed(0x142)],_0x2726a7=[];for(const _0x21a89e of _0x5d2030[_0x1b3aed(0x195)]())for(const _0x263526 of _0x21a89e[_0x1b3aed(0x15f)]())_0x263526['is'](_0x1b3aed(0x15e))?_0x2726a7[_0x1b3aed(0x160)](_0x263526[_0x1b3aed(0x182)]):_0x263526['is'](_0x1b3aed(0x199))&&_0x2726a7[_0x1b3aed(0x179)]>0x0&&'\x20'!==_0x2726a7[_0x2726a7[_0x1b3aed(0x179)]-0x1]&&_0x2726a7[_0x1b3aed(0x160)]('\x20');return _0x2726a7[_0x1b3aed(0x179)]?'\x22'+_0x2726a7[_0x1b3aed(0x13c)]('')[_0x1b3aed(0x197)]()+'\x22':_0x215b18(this[_0x1b3aed(0x149)][_0x1b3aed(0x184)],_0x1b3aed(0x18a));}[_0x142776(0x14d)](){const _0x31fc5f=_0x142776,_0x588b5d=_0x51ee77(this[_0x31fc5f(0x149)])[_0x31fc5f(0x14f)];return Array[_0x31fc5f(0x17e)](_0x588b5d[_0x31fc5f(0x1a2)][_0x31fc5f(0x15a)](_0x31fc5f(0x1a1)))[_0x31fc5f(0x147)]((_0x51a6d7,_0x5e0454)=>_0x51a6d7[_0x31fc5f(0x165)]()[_0x31fc5f(0x161)](_0x5e0454[_0x31fc5f(0x165)]())?-0x1:_0x51a6d7[_0x31fc5f(0x165)]()[_0x31fc5f(0x193)](_0x5e0454[_0x31fc5f(0x165)]())?0x1:0x0);}}
23
+ const _0x5b33d5=_0x56e5;(function(_0x2ddca6,_0x1c0892){const _0x1bfae0=_0x56e5,_0x538d96=_0x2ddca6();while(!![]){try{const _0x2573b3=parseInt(_0x1bfae0(0xa2))/0x1+-parseInt(_0x1bfae0(0xe7))/0x2*(parseInt(_0x1bfae0(0xe0))/0x3)+parseInt(_0x1bfae0(0xa1))/0x4+parseInt(_0x1bfae0(0xef))/0x5+-parseInt(_0x1bfae0(0xf8))/0x6*(-parseInt(_0x1bfae0(0xae))/0x7)+-parseInt(_0x1bfae0(0xce))/0x8*(parseInt(_0x1bfae0(0x92))/0x9)+parseInt(_0x1bfae0(0x9b))/0xa;if(_0x2573b3===_0x1c0892)break;else _0x538d96['push'](_0x538d96['shift']());}catch(_0x492daa){_0x538d96['push'](_0x538d96['shift']());}}}(_0x3059,0xb8657));import{ViewDowncastWriter as _0x47f2ed}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1d7a47,Editor as _0x491314}from'ckeditor5/src/core.js';function _0x56e5(_0x2953d0,_0x2fe67c){const _0x305921=_0x3059();return _0x56e5=function(_0x56e5d4,_0x541b49){_0x56e5d4=_0x56e5d4-0x89;let _0x24f88b=_0x305921[_0x56e5d4];return _0x24f88b;},_0x56e5(_0x2953d0,_0x2fe67c);}function _0x3059(){const _0x598760=['9xuBaXS','conversion','context','editors','isContent','_getDocumentDataStringFromView','version','name','locale','7443990TChdNZ','_sessionId','$textProxy','domConverter','processor','editing','4333884VxtfWU','39186qWVSdu','afterInit','modelToDataWithIds','join','convertAiChatSelectionMarker','editingDowncast','markerName','define','document','ready','getStart','isOpening','266329AfFOrH','selection','isOfficialPlugin','emptyElement','isAtEnd','ck-fake-ai-selection',':start></','dataDowncast',':end></','getMarkersGroup','containerElement','getDocumentData','has','_setOutputDataProcessor','markerToElement','change','substring','model','data','getLastMatchingPosition','ai-selection:','config','plugins','start','get','data-id','sessionId','removeAllRanges','markers','createRange','showFakeVisualSelection','end','5722904vbnaVw','_getMarkersInDocumentOrder','for','view','htmlWriter','RealTimeCollaborationClient','AIEditing','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getHtml','_displayedFakeSelectionId','isPremiumPlugin',':start>','fromCharCode','viewToDom',':end>','_setDataIdsOnChildren','toView','ai.models.showModelSelector','1265811EvCtsU','isBefore','_displayedFakeSelectionLocked','_outputDataProcessor','ck-ai-assistant-ui_theme','schema','markerToHighlight','4RaLZzH','ai-selection','listenTo','getSelection','getChildren','isAfter','createUIElement','getItems','1856870kFGLYj','_nextDataId','_integrateEditor','element','getRanges','push','add','indexOf','floor','12CtIJfX','addMarker','length','removeMarker','sort','from','pluginName','getRoot','random','trim','getSelectionText','toData','setAttribute','hideFakeVisualSelection'];_0x3059=function(){return _0x598760;};return _0x3059();}import{uid as _0x124f97}from'ckeditor5/src/utils.js';import{getTranslation as _0x587847}from'./utils/common-translations.js';import{getEditorFromContext as _0x4f64c7}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x5b33d5(0xe8);export class AIEditing extends _0x1d7a47{constructor(_0x131447){const _0x520bb0=_0x5b33d5;super(_0x131447),this[_0x520bb0(0x94)][_0x520bb0(0xc3)][_0x520bb0(0xa9)](_0x520bb0(0xdf),!0x0);}[_0x5b33d5(0xe3)];[_0x5b33d5(0xd7)]=null;[_0x5b33d5(0xe2)]=!0x1;[_0x5b33d5(0x9c)];static get[_0x5b33d5(0x8a)](){const _0x336d7e=_0x5b33d5;return _0x336d7e(0xd4);}static get[_0x5b33d5(0xb0)](){return!0x0;}static get[_0x5b33d5(0xd8)](){return!0x0;}get[_0x5b33d5(0xc8)](){const _0x1e857d=_0x5b33d5;if(!this[_0x1e857d(0x9c)]){const _0x4549f0=_0x4f64c7(this[_0x1e857d(0x94)]),_0x3f112a=_0x4549f0[_0x1e857d(0xc4)][_0x1e857d(0xba)](_0x1e857d(0xd3))&&_0x4549f0[_0x1e857d(0xc4)][_0x1e857d(0xc6)](_0x1e857d(0xd3))[_0x1e857d(0xc8)];this[_0x1e857d(0x9c)]=_0x3f112a||_0x124f97();}return this[_0x1e857d(0x9c)];}async[_0x5b33d5(0xb9)](){const _0x46610c=_0x5b33d5,_0x1a32cb=_0x4f64c7(this[_0x46610c(0x94)]),_0x57314d=_0x1a32cb[_0x46610c(0xbf)],_0x27596f=_0x1a32cb[_0x46610c(0xc0)][_0x46610c(0xde)](_0x57314d[_0x46610c(0xaa)][_0x46610c(0x8b)](),{'convertAiChatSelectionMarker':!0x0}),_0x8aafeb=new _0x47f2ed(_0x1a32cb[_0x46610c(0xa0)][_0x46610c(0xd1)][_0x46610c(0xaa)]);this[_0x46610c(0xdd)](_0x27596f,_0x8aafeb);let _0x202989=await this[_0x46610c(0x97)](_0x27596f);const _0x3aee40=this[_0x46610c(0xcf)](),_0x5aaffb=[];for(const _0x129484 of _0x3aee40){const _0x123c9a='<'+_0x129484[_0x46610c(0x99)]+_0x46610c(0xb4)+_0x129484[_0x46610c(0x99)]+_0x46610c(0xd9),_0x2d889e=_0x202989[_0x46610c(0xf6)](_0x123c9a);_0x202989=_0x202989[_0x46610c(0xbe)](0x0,_0x2d889e)+_0x202989[_0x46610c(0xbe)](_0x2d889e+_0x123c9a[_0x46610c(0xfa)]);const _0x4ebe9f='<'+_0x129484[_0x46610c(0x99)]+_0x46610c(0xb6)+_0x129484[_0x46610c(0x99)]+_0x46610c(0xdc),_0x1f43e3=_0x202989[_0x46610c(0xf6)](_0x4ebe9f);_0x202989=_0x202989[_0x46610c(0xbe)](0x0,_0x1f43e3)+_0x202989[_0x46610c(0xbe)](_0x1f43e3+_0x4ebe9f[_0x46610c(0xfa)]),_0x5aaffb[_0x46610c(0xf4)]({'markerName':_0x129484[_0x46610c(0x99)],'start':_0x2d889e,'end':_0x1f43e3,'htmlFragment':_0x202989[_0x46610c(0xbe)](_0x2d889e,_0x1f43e3)});}return{'content':_0x202989,'version':_0x1a32cb[_0x46610c(0xbf)][_0x46610c(0xaa)][_0x46610c(0x98)],'sessionId':this[_0x46610c(0xc8)],'selections':_0x5aaffb};}async[_0x5b33d5(0xa3)](){const _0x58fefc=_0x5b33d5;this[_0x58fefc(0x94)]instanceof _0x491314?this[_0x58fefc(0xf1)](this[_0x58fefc(0x94)]):this[_0x58fefc(0xe9)](this[_0x58fefc(0x94)][_0x58fefc(0x95)],_0x58fefc(0xf5),(_0x374b5a,_0x3688fe)=>{const _0x3fcba2=_0x58fefc;_0x3688fe['on'](_0x3fcba2(0xab),()=>{const _0x883ffa=_0x3fcba2;this[_0x883ffa(0xf1)](_0x3688fe);});});}[_0x5b33d5(0xbb)](_0x22ed0b){const _0x399cda=_0x5b33d5;this[_0x399cda(0xe3)]=_0x22ed0b;}async[_0x5b33d5(0x97)](_0xbc776f){const _0x58fe7e=_0x5b33d5;let _0x14bb2d;const _0x224e23=_0x4f64c7(this[_0x58fe7e(0x94)]);if(this[_0x58fe7e(0xe3)]){const _0x1774d7=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0x9e)][_0x58fe7e(0xdb)](_0xbc776f),_0x5c88ea=await this[_0x58fe7e(0xe3)](_0x1774d7);_0x14bb2d=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0xd2)][_0x58fe7e(0xd6)](_0x5c88ea);}else _0x14bb2d=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0x8f)](_0xbc776f);return _0x14bb2d;}[_0x5b33d5(0xf1)](_0x121bf7){const _0x5f537c=_0x5b33d5;_0x121bf7[_0x5f537c(0x93)][_0x5f537c(0xd0)](_0x5f537c(0xa7))[_0x5f537c(0xe6)]({'model':_0x5f537c(0xe8),'view':{'classes':[_0x5f537c(0xb3),_0x5f537c(0xe4)],'priority':0xc}}),_0x121bf7[_0x5f537c(0x93)][_0x5f537c(0xd0)](_0x5f537c(0xb5))[_0x5f537c(0xbc)]({'model':_0x5f537c(0xe8),'view':(_0x29b905,{writer:_0xa1f11e,options:_0x5601a0})=>_0x5601a0[_0x5f537c(0xa6)]?_0xa1f11e[_0x5f537c(0xed)](_0x29b905[_0x5f537c(0xa8)]+':'+(_0x29b905[_0x5f537c(0xad)]?_0x5f537c(0xc5):_0x5f537c(0xcd))):null});}[_0x5b33d5(0xcc)](_0x305f65,_0x257019,_0x208ab2=!0x1,_0x560f89=!0x1){const _0x2b8b21=_0x5b33d5;if(this[_0x2b8b21(0xe2)]&&!_0x560f89)return!0x1;const _0x3270b6=_0x4f64c7(this[_0x2b8b21(0x94)])[_0x2b8b21(0xbf)];return _0x3270b6[_0x2b8b21(0xbd)](_0x2cec1d=>{const _0x205886=_0x2b8b21;this[_0x205886(0xd7)]&&this[_0x205886(0x91)](this[_0x205886(0xd7)]),this[_0x205886(0xd7)]=_0x257019,this[_0x205886(0xe2)]=_0x208ab2;let _0x1d3320=0x0;for(let _0x463733 of _0x305f65){const _0x2386c2=_0x205886(0xc2)+_0x1d3320;if(_0x463733[_0x205886(0xc5)][_0x205886(0xb2)]){const _0x3bb01c=_0x463733[_0x205886(0xc5)][_0x205886(0xc1)](({item:_0x178cef})=>!_0x3270b6[_0x205886(0xe5)][_0x205886(0x96)](_0x178cef),{'boundaries':_0x463733});_0x463733=_0x2cec1d[_0x205886(0xcb)](_0x3bb01c,_0x463733[_0x205886(0xcd)]);}_0x2cec1d[_0x205886(0xf9)](_0x2386c2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x463733}),_0x1d3320++;}}),window[_0x2b8b21(0xea)]()?.[_0x2b8b21(0xc9)](),!0x0;}[_0x5b33d5(0x91)](_0x2e0b80){const _0x16f28d=_0x5b33d5;if(this[_0x16f28d(0xd7)]!=_0x2e0b80)return!0x1;this[_0x16f28d(0xd7)]=null,this[_0x16f28d(0xe2)]=!0x1;const _0x29a3f9=_0x4f64c7(this[_0x16f28d(0x94)]),_0xb0cb4a=_0x29a3f9[_0x16f28d(0xbf)][_0x16f28d(0xca)][_0x16f28d(0xb7)](_0x16f28d(0xe8));return _0x29a3f9[_0x16f28d(0xbf)][_0x16f28d(0xbd)](_0x152b58=>{const _0x208737=_0x16f28d;for(const _0x5e2a5c of _0xb0cb4a)_0x152b58[_0x208737(0xfb)](_0x5e2a5c);}),!0x0;}async[_0x5b33d5(0xa4)](_0x303dcc){const _0x1374e1=_0x5b33d5,_0x4c3426=_0x4f64c7(this[_0x1374e1(0x94)]),_0x5b77cc=_0x4c3426[_0x1374e1(0xc0)][_0x1374e1(0xde)](_0x303dcc),_0x3562db=new _0x47f2ed(_0x4c3426[_0x1374e1(0xa0)][_0x1374e1(0xd1)][_0x1374e1(0xaa)]);return this[_0x1374e1(0xdd)](_0x5b77cc,_0x3562db),this[_0x1374e1(0x97)](_0x5b77cc);}[_0x5b33d5(0xdd)](_0x2f5bc9,_0x5403ed){const _0x4c53d0=_0x5b33d5;let _0x39a8f9=!0x1;const _0x466b38=new Set();for(const _0x370664 of _0x2f5bc9[_0x4c53d0(0xeb)]()){const _0x3ac5f2=_0x370664['is'](_0x4c53d0(0xb1))||_0x370664['is'](_0x4c53d0(0xb8));if(!_0x370664['is'](_0x4c53d0(0xf2)))continue;(this[_0x4c53d0(0xdd)](_0x370664,_0x5403ed)||_0x3ac5f2)&&(_0x5403ed[_0x4c53d0(0x90)](_0x4c53d0(0xc7),this[_0x4c53d0(0xf0)](_0x466b38),_0x370664),_0x39a8f9=!0x0);}return _0x39a8f9;}[_0x5b33d5(0xf0)](_0x16da2c){const _0x537804=_0x5b33d5;let _0x54b598;do{_0x54b598='';for(let _0x418b97=0x0;_0x418b97<0x4;_0x418b97++)_0x54b598+=String[_0x537804(0xda)](0x61+Math[_0x537804(0xf7)](0x1a*Math[_0x537804(0x8c)]()));}while(_0x16da2c[_0x537804(0xba)](_0x54b598));return _0x16da2c[_0x537804(0xf5)](_0x54b598),_0x54b598;}[_0x5b33d5(0x8e)](){const _0xfcac97=_0x5b33d5,{model:_0xb74b0b}=_0x4f64c7(this[_0xfcac97(0x94)]),_0x3d6878=_0xb74b0b[_0xfcac97(0xaa)][_0xfcac97(0xaf)],_0x3a6320=[];for(const _0x59c177 of _0x3d6878[_0xfcac97(0xf3)]())for(const _0xb8abaa of _0x59c177[_0xfcac97(0xee)]())_0xb8abaa['is'](_0xfcac97(0x9d))?_0x3a6320[_0xfcac97(0xf4)](_0xb8abaa[_0xfcac97(0xc0)]):_0xb8abaa['is'](_0xfcac97(0xf2))&&_0x3a6320[_0xfcac97(0xfa)]>0x0&&'\x20'!==_0x3a6320[_0x3a6320[_0xfcac97(0xfa)]-0x1]&&_0x3a6320[_0xfcac97(0xf4)]('\x20');return _0x3a6320[_0xfcac97(0xfa)]?'\x22'+_0x3a6320[_0xfcac97(0xa5)]('')[_0xfcac97(0x8d)]()+'\x22':_0x587847(this[_0xfcac97(0x94)][_0xfcac97(0x9a)],_0xfcac97(0xd5));}[_0x5b33d5(0xcf)](){const _0x491b4c=_0x5b33d5,_0x206bd8=_0x4f64c7(this[_0x491b4c(0x94)])[_0x491b4c(0xbf)];return Array[_0x491b4c(0x89)](_0x206bd8[_0x491b4c(0xca)][_0x491b4c(0xb7)](_0x491b4c(0xe8)))[_0x491b4c(0xfc)]((_0x40651a,_0x27195a)=>_0x40651a[_0x491b4c(0xac)]()[_0x491b4c(0xe1)](_0x27195a[_0x491b4c(0xac)]())?-0x1:_0x40651a[_0x491b4c(0xac)]()[_0x491b4c(0xec)](_0x27195a[_0x491b4c(0xac)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x330c(){const _0xfb9e3e=['135gDdXPw','setWebSearch','getCapabilitiesRequestData','2360070ngmfIX','184507RKZqVe','toggleReasoning','_isWebSearchEnabled','15267VfjxEg','reset','capabilitiesUpdated','10870bDXQqX','5FIpkHO','13749Ebovpj','isWebSearchEnabled','_isReasoningEnabled','reasoning','122FMEYez','1476636jTyZTI','280amqEBM','getCapabilitiesConfig','fire','webSearch','toggleWebSearch','init','setReasoning','isReasoningEnabled','8917898ssOuWr'];_0x330c=function(){return _0xfb9e3e;};return _0x330c();}const _0xea175c=_0x4e8d;(function(_0x53e2d8,_0x1ad34d){const _0x356cb0=_0x4e8d,_0x1325f7=_0x53e2d8();while(!![]){try{const _0x45f3d8=parseInt(_0x356cb0(0x19d))/0x1+-parseInt(_0x356cb0(0x1a9))/0x2*(-parseInt(_0x356cb0(0x1a5))/0x3)+parseInt(_0x356cb0(0x1aa))/0x4*(parseInt(_0x356cb0(0x1a4))/0x5)+parseInt(_0x356cb0(0x1b7))/0x6+parseInt(_0x356cb0(0x1a0))/0x7*(-parseInt(_0x356cb0(0x1ab))/0x8)+parseInt(_0x356cb0(0x1b4))/0x9*(-parseInt(_0x356cb0(0x1a3))/0xa)+-parseInt(_0x356cb0(0x1b3))/0xb;if(_0x45f3d8===_0x1ad34d)break;else _0x1325f7['push'](_0x1325f7['shift']());}catch(_0x3e5ac8){_0x1325f7['push'](_0x1325f7['shift']());}}}(_0x330c,0x4ee90));import{EmitterMixin as _0x577a4f}from'ckeditor5/src/utils.js';function _0x4e8d(_0x3e7b16,_0x134b78){const _0x330c1f=_0x330c();return _0x4e8d=function(_0x4e8d0b,_0x30d6c8){_0x4e8d0b=_0x4e8d0b-0x19d;let _0x16fde3=_0x330c1f[_0x4e8d0b];return _0x16fde3;},_0x4e8d(_0x3e7b16,_0x134b78);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xea175c(0x1a2)];export class AICapabilities extends _0x577a4f(){[_0xea175c(0x19f)];[_0xea175c(0x1a7)];constructor(){const _0x345f23=_0xea175c;super(),this[_0x345f23(0x19f)]=!0x1,this[_0x345f23(0x1a7)]=!0x1;}[_0xea175c(0x1b0)](){const _0x3eb16f=_0xea175c;this[_0x3eb16f(0x1a1)]();}[_0xea175c(0x1a1)](){const _0x3ac265=_0xea175c;this[_0x3ac265(0x1b5)](!0x1),this[_0x3ac265(0x1b1)](!0x1);}[_0xea175c(0x1ac)](){const _0x47e216=_0xea175c;return{'isWebSearchEnabled':this[_0x47e216(0x19f)],'isReasoningEnabled':this[_0x47e216(0x1a7)]};}static[_0xea175c(0x1b6)](_0x259089){const _0x93189e=_0xea175c,_0x46d0d9={};return _0x259089&&_0x259089[_0x93189e(0x1a6)]&&(_0x46d0d9[_0x93189e(0x1ae)]={}),_0x259089&&_0x259089[_0x93189e(0x1b2)]&&(_0x46d0d9[_0x93189e(0x1a8)]={}),_0x46d0d9;}[_0xea175c(0x1af)](){const _0x187e89=_0xea175c;this[_0x187e89(0x1b5)](!this[_0x187e89(0x19f)]);}[_0xea175c(0x19e)](){const _0x5efe85=_0xea175c;this[_0x5efe85(0x1b1)](!this[_0x5efe85(0x1a7)]);}[_0xea175c(0x1b5)](_0x4e8789){const _0x3d13b6=_0xea175c;_0x4e8789!==this[_0x3d13b6(0x19f)]&&(this[_0x3d13b6(0x19f)]=_0x4e8789,this[_0x3d13b6(0x1ad)](_0x3d13b6(0x1a2),this[_0x3d13b6(0x1ac)]()));}[_0xea175c(0x1b1)](_0x31592d){const _0x25324d=_0xea175c;_0x31592d!==this[_0x25324d(0x1a7)]&&(this[_0x25324d(0x1a7)]=_0x31592d,this[_0x25324d(0x1ad)](_0x25324d(0x1a2),this[_0x25324d(0x1ac)]()));}}
23
+ const _0x4ae962=_0x3adf;(function(_0x204bcc,_0x11046f){const _0x56805f=_0x3adf,_0x5c2596=_0x204bcc();while(!![]){try{const _0x365491=parseInt(_0x56805f(0xaf))/0x1+parseInt(_0x56805f(0xb9))/0x2+parseInt(_0x56805f(0xb1))/0x3+-parseInt(_0x56805f(0xb2))/0x4*(parseInt(_0x56805f(0xae))/0x5)+parseInt(_0x56805f(0xc0))/0x6*(-parseInt(_0x56805f(0xbc))/0x7)+-parseInt(_0x56805f(0xbb))/0x8+parseInt(_0x56805f(0xb6))/0x9;if(_0x365491===_0x11046f)break;else _0x5c2596['push'](_0x5c2596['shift']());}catch(_0x427e23){_0x5c2596['push'](_0x5c2596['shift']());}}}(_0x27a1,0x6e15b));function _0x3adf(_0x7f0fae,_0x4df57f){const _0x27a12f=_0x27a1();return _0x3adf=function(_0x3adfe6,_0x3d73b2){_0x3adfe6=_0x3adfe6-0xae;let _0x1cdcf8=_0x27a12f[_0x3adfe6];return _0x1cdcf8;},_0x3adf(_0x7f0fae,_0x4df57f);}import{EmitterMixin as _0xf887fc}from'ckeditor5/src/utils.js';function _0x27a1(){const _0x182f20=['18LgbPyj','init','getCapabilitiesConfig','reset','toggleWebSearch','getCapabilitiesRequestData','isWebSearchEnabled','3399445QMLHab','441185ECucKP','fire','198735sOhuiS','4disKaE','capabilitiesUpdated','setReasoning','_isWebSearchEnabled','16106283hqeGcO','isReasoningEnabled','_isReasoningEnabled','361254IIJTss','reasoning','4566056tIOTlv','1810879wlAnin','webSearch','setWebSearch','toggleReasoning'];_0x27a1=function(){return _0x182f20;};return _0x27a1();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4ae962(0xb3)];export class AICapabilities extends _0xf887fc(){[_0x4ae962(0xb5)];[_0x4ae962(0xb8)];constructor(){const _0x36a342=_0x4ae962;super(),this[_0x36a342(0xb5)]=!0x1,this[_0x36a342(0xb8)]=!0x1;}[_0x4ae962(0xc1)](){const _0x4b5857=_0x4ae962;this[_0x4b5857(0xc3)]();}[_0x4ae962(0xc3)](){const _0x571e97=_0x4ae962;this[_0x571e97(0xbe)](!0x1),this[_0x571e97(0xb4)](!0x1);}[_0x4ae962(0xc2)](){const _0xe6b1ff=_0x4ae962;return{'isWebSearchEnabled':this[_0xe6b1ff(0xb5)],'isReasoningEnabled':this[_0xe6b1ff(0xb8)]};}static[_0x4ae962(0xc5)](_0x137ce7){const _0x165c6c=_0x4ae962,_0x44bf18={};return _0x137ce7&&_0x137ce7[_0x165c6c(0xc6)]&&(_0x44bf18[_0x165c6c(0xbd)]={}),_0x137ce7&&_0x137ce7[_0x165c6c(0xb7)]&&(_0x44bf18[_0x165c6c(0xba)]={}),_0x44bf18;}[_0x4ae962(0xc4)](){const _0x4673b8=_0x4ae962;this[_0x4673b8(0xbe)](!this[_0x4673b8(0xb5)]);}[_0x4ae962(0xbf)](){const _0x247899=_0x4ae962;this[_0x247899(0xb4)](!this[_0x247899(0xb8)]);}[_0x4ae962(0xbe)](_0x2d592e){const _0x5ede79=_0x4ae962;_0x2d592e!==this[_0x5ede79(0xb5)]&&(this[_0x5ede79(0xb5)]=_0x2d592e,this[_0x5ede79(0xb0)](_0x5ede79(0xb3),this[_0x5ede79(0xc2)]()));}[_0x4ae962(0xb4)](_0x24019c){const _0x50ba1d=_0x4ae962;_0x24019c!==this[_0x50ba1d(0xb8)]&&(this[_0x50ba1d(0xb8)]=_0x24019c,this[_0x50ba1d(0xb0)](_0x50ba1d(0xb3),this[_0x50ba1d(0xc2)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x43d2fc,_0x7e90f0){var _0xa81659=_0x1737,_0x4ac867=_0x43d2fc();while(!![]){try{var _0xf32e51=parseInt(_0xa81659(0x91))/0x1*(parseInt(_0xa81659(0x8f))/0x2)+parseInt(_0xa81659(0x86))/0x3+-parseInt(_0xa81659(0x92))/0x4+parseInt(_0xa81659(0x87))/0x5+parseInt(_0xa81659(0x83))/0x6+-parseInt(_0xa81659(0x88))/0x7*(parseInt(_0xa81659(0x84))/0x8)+parseInt(_0xa81659(0x97))/0x9*(parseInt(_0xa81659(0x89))/0xa);if(_0xf32e51===_0x7e90f0)break;else _0x4ac867['push'](_0x4ac867['shift']());}catch(_0x218a65){_0x4ac867['push'](_0x4ac867['shift']());}}}(_0x25f8,0x674ac));export var AIContextItemType;function _0x1737(_0x4f8de1,_0x5ce423){var _0x25f8dc=_0x25f8();return _0x1737=function(_0x1737bd,_0x29d5c9){_0x1737bd=_0x1737bd-0x7f;var _0xceda36=_0x25f8dc[_0x1737bd];return _0xceda36;},_0x1737(_0x4f8de1,_0x5ce423);}!function(_0x7f7d7d){var _0x4571d2=_0x1737;_0x7f7d7d[_0x4571d2(0x90)]=_0x4571d2(0x80),_0x7f7d7d[_0x4571d2(0x93)]=_0x4571d2(0x81),_0x7f7d7d[_0x4571d2(0x98)]=_0x4571d2(0x8c),_0x7f7d7d[_0x4571d2(0x8b)]=_0x4571d2(0x96),_0x7f7d7d[_0x4571d2(0x8a)]=_0x4571d2(0x85),_0x7f7d7d[_0x4571d2(0x8d)]=_0x4571d2(0x8e);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x25f8(){var _0x55fcf6=['DOCUMENT','HTML','mcp-tool-context','file','MARKDOWN','2016876mRZJRU','23800UoHSJW','text','283656UFPCQC','2061655gQWSyT','917LCYYgZ','170yDPeoS','TEXT','URL','document','SELECTION','selection','4uuSUEm','TOOL','118396XIEVfe','1755052sIVaXq','FILE','html','markdown','web-resource','90927NmpxuH'];_0x25f8=function(){return _0x55fcf6;};return _0x25f8();}!function(_0x33bade){var _0x1c938c=_0x1737;_0x33bade[_0x1c938c(0x8a)]=_0x1c938c(0x85),_0x33bade[_0x1c938c(0x82)]=_0x1c938c(0x95),_0x33bade[_0x1c938c(0x7f)]=_0x1c938c(0x94);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x124ba6,_0x2091ed){var _0x54c129=_0x4533,_0x2ad893=_0x124ba6();while(!![]){try{var _0x488be7=parseInt(_0x54c129(0xc4))/0x1*(-parseInt(_0x54c129(0xd1))/0x2)+-parseInt(_0x54c129(0xd7))/0x3+-parseInt(_0x54c129(0xc2))/0x4*(-parseInt(_0x54c129(0xc9))/0x5)+-parseInt(_0x54c129(0xcf))/0x6+-parseInt(_0x54c129(0xd2))/0x7+-parseInt(_0x54c129(0xcb))/0x8+parseInt(_0x54c129(0xca))/0x9;if(_0x488be7===_0x2091ed)break;else _0x2ad893['push'](_0x2ad893['shift']());}catch(_0x317ea8){_0x2ad893['push'](_0x2ad893['shift']());}}}(_0x4114,0xb14bf));export var AIContextItemType;!function(_0x4006af){var _0x9c494f=_0x4533;_0x4006af[_0x9c494f(0xd0)]=_0x9c494f(0xda),_0x4006af[_0x9c494f(0xc8)]=_0x9c494f(0xce),_0x4006af[_0x9c494f(0xc6)]=_0x9c494f(0xc5),_0x4006af[_0x9c494f(0xc3)]=_0x9c494f(0xd6),_0x4006af[_0x9c494f(0xd3)]=_0x9c494f(0xd4),_0x4006af[_0x9c494f(0xc7)]=_0x9c494f(0xcd);}(AIContextItemType||(AIContextItemType={}));function _0x4114(){var _0x5eb5ec=['html','MARKDOWN','mcp-tool-context','33484maGQAL','URL','6846HmQucV','document','DOCUMENT','SELECTION','FILE','165JXTHYn','45178740pLztkU','5035296rGEPGB','markdown','selection','file','7649814auoRDc','TOOL','202ssuZCw','9423834ZlRkdm','TEXT','text','HTML','web-resource','1883421GGRTju'];_0x4114=function(){return _0x5eb5ec;};return _0x4114();}function _0x4533(_0x42f267,_0x3a798d){var _0x4114b1=_0x4114();return _0x4533=function(_0x4533ee,_0x583c1f){_0x4533ee=_0x4533ee-0xc2;var _0x913994=_0x4114b1[_0x4533ee];return _0x913994;},_0x4533(_0x42f267,_0x3a798d);}export var AIContextTextResourceType;!function(_0x3d2d6f){var _0x99051d=_0x4533;_0x3d2d6f[_0x99051d(0xd3)]=_0x99051d(0xd4),_0x3d2d6f[_0x99051d(0xd9)]=_0x99051d(0xcc),_0x3d2d6f[_0x99051d(0xd5)]=_0x99051d(0xd8);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4aea0d=_0x15ce;function _0x15ce(_0x1c12ea,_0x218d4b){const _0x1bd507=_0x1bd5();return _0x15ce=function(_0x15ce3d,_0x21fdbd){_0x15ce3d=_0x15ce3d-0xa8;let _0x5fcaf9=_0x1bd507[_0x15ce3d];return _0x5fcaf9;},_0x15ce(_0x1c12ea,_0x218d4b);}(function(_0x3d1b8b,_0x6738c0){const _0x1e9bc0=_0x15ce,_0x2c6ca5=_0x3d1b8b();while(!![]){try{const _0x514745=parseInt(_0x1e9bc0(0xf4))/0x1*(parseInt(_0x1e9bc0(0xad))/0x2)+parseInt(_0x1e9bc0(0xf8))/0x3+parseInt(_0x1e9bc0(0xfb))/0x4*(-parseInt(_0x1e9bc0(0xe3))/0x5)+-parseInt(_0x1e9bc0(0xc8))/0x6*(-parseInt(_0x1e9bc0(0xc4))/0x7)+-parseInt(_0x1e9bc0(0xc0))/0x8+-parseInt(_0x1e9bc0(0xdf))/0x9*(parseInt(_0x1e9bc0(0xf0))/0xa)+parseInt(_0x1e9bc0(0xb2))/0xb;if(_0x514745===_0x6738c0)break;else _0x2c6ca5['push'](_0x2c6ca5['shift']());}catch(_0x471d93){_0x2c6ca5['push'](_0x2c6ca5['shift']());}}}(_0x1bd5,0xae98a));import{CKEditorError as _0x402d5b,EmitterMixin as _0x276cf6,uid as _0x24bf85}from'ckeditor5/src/utils.js';import{AIReply as _0x3ae690}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4aea0d(0xd6),_0x4aea0d(0xbb),_0x4aea0d(0xc5),_0x4aea0d(0xef),_0x4aea0d(0xf3),_0x4aea0d(0xe8),_0x4aea0d(0xab),_0x4aea0d(0xd0),_0x4aea0d(0xf9),_0x4aea0d(0xfd),_0x4aea0d(0xcb),_0x4aea0d(0xd9),_0x4aea0d(0xee),_0x4aea0d(0xc1),_0x4aea0d(0xfe)];export class AIInteraction extends _0x276cf6(){['id'];[_0x4aea0d(0xdd)]=[];[_0x4aea0d(0xb6)];[_0x4aea0d(0xb9)];[_0x4aea0d(0xbd)];[_0x4aea0d(0xa9)];[_0x4aea0d(0xe5)];[_0x4aea0d(0xe4)]=!0x1;[_0x4aea0d(0xb1)]=!0x1;[_0x4aea0d(0xea)];[_0x4aea0d(0xac)]=!0x1;[_0x4aea0d(0xe6)]=!0x1;constructor({connector:_0x170f0e,editor:_0x465ad8}){const _0xe6c057=_0x4aea0d;super(),this['id']=_0x24bf85(),this[_0xe6c057(0xe5)]=_0x170f0e,this[_0xe6c057(0xe4)]=!0x0,this[_0xe6c057(0xea)]=_0x465ad8;}async[_0x4aea0d(0xce)](){const _0x55df36=_0x4aea0d,_0x1480e4=[];let _0x109f19,_0x21b345,_0xca1c7a;this[_0x55df36(0xe4)]=!0x1;try{this[_0x55df36(0xa9)]=await this[_0x55df36(0xc2)](),this[_0x55df36(0xaa)](_0x55df36(0xbb),this);const _0x573c6a=await this[_0x55df36(0xa9)][_0x55df36(0xf5)]();for await(const _0x27fce7 of _0x573c6a){if(this[_0x55df36(0xe4)])return;if(_0x55df36(0xfe)==_0x27fce7[_0x55df36(0xaf)])return void this[_0x55df36(0xaa)](_0x55df36(0xfe),{'error':new _0x402d5b(_0x55df36(0xbf),this)});switch(_0x27fce7[_0x55df36(0xaf)]){case _0x55df36(0xda):this[_0x55df36(0xb9)]=_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xb9)];break;case _0x55df36(0xdb):this[_0x55df36(0xbd)]=_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xca)];break;case _0x55df36(0xcd):this[_0x55df36(0xf9)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xb0)],!0x0);break;case _0x55df36(0xe1):_0x1480e4[_0x55df36(0xff)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xe1)]);break;case _0x55df36(0xd8):this[_0x55df36(0xe6)]||(this[_0x55df36(0xe6)]=!0x0,this[_0x55df36(0xaa)](_0x55df36(0xfd),this));break;case _0x55df36(0xf1):this[_0x55df36(0xac)]||(this[_0x55df36(0xac)]=!0x0,this[_0x55df36(0xaa)](_0x55df36(0xd9),this));break;case _0x55df36(0xec):case _0x55df36(0xbe):this[_0x55df36(0xc3)](),this[_0x55df36(0xf7)](),_0x109f19=_0x55df36(0xec)==_0x27fce7[_0x55df36(0xaf)]?_0x55df36(0xe7):_0x55df36(0xa8),_0x21b345=_0x55df36(0xec)==_0x27fce7[_0x55df36(0xaf)]?_0x27fce7[_0x55df36(0xd3)]['id']:void 0x0,this[_0x55df36(0xb6)]&&this[_0x55df36(0xb6)][_0x55df36(0xcc)]!=_0x109f19&&(this[_0x55df36(0xb6)][_0x55df36(0xfa)](),this[_0x55df36(0xb6)]=void 0x0),this[_0x55df36(0xb6)]||(this[_0x55df36(0xb6)]=this[_0x55df36(0xb8)]({'type':_0x109f19,'interactionId':this['id'],'id':_0x21b345}),_0x55df36(0xe7)==_0x109f19&&(this[_0x55df36(0xb6)][_0x55df36(0xdc)]=_0x1480e4[_0x55df36(0xf6)](0x0))),this[_0x55df36(0xb6)][_0x55df36(0xb3)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xeb)]);break;case _0x55df36(0xe9):_0xca1c7a=JSON[_0x55df36(0xd4)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xed)]),this[_0x55df36(0xb7)]({'toolName':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xc6)],'data':_0xca1c7a[_0x55df36(0xd3)],'attributes':_0xca1c7a[_0x55df36(0xb5)]});break;case _0x55df36(0xf2):this[_0x55df36(0xc9)]({'toolName':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xc6)],'data':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xd3)]});}}}finally{this[_0x55df36(0xe4)]||(this[_0x55df36(0xb6)]&&_0x1480e4[_0x55df36(0xe0)]>0x0&&(this[_0x55df36(0xb6)][_0x55df36(0xdc)]=_0x1480e4[_0x55df36(0xf6)](0x0)),this[_0x55df36(0xbc)](),this[_0x55df36(0xaa)](_0x55df36(0xef),this));}}[_0x4aea0d(0xfc)](){const _0x47c283=_0x4aea0d;this[_0x47c283(0xe4)]||(this[_0x47c283(0xbc)](),this[_0x47c283(0xaa)](_0x47c283(0xc5),this));}[_0x4aea0d(0xd5)](_0xc40a5c){const _0xc0010d=_0x4aea0d;return this[_0xc0010d(0xdd)][_0xc0010d(0xb4)](_0x2ba32c=>_0x2ba32c['id']===_0xc40a5c);}[_0x4aea0d(0xd1)](){const _0x512377=_0x4aea0d;this[_0x512377(0xb1)]||(this[_0x512377(0xfc)](),this[_0x512377(0xdd)][_0x512377(0xae)](_0x3b5b34=>_0x3b5b34[_0x512377(0xd1)]()),this[_0x512377(0xdd)]=[],this[_0x512377(0xb1)]=!0x0,this[_0x512377(0xaa)](_0x512377(0xf3),this),this[_0x512377(0xd2)]());}[_0x4aea0d(0xb8)](_0xb1e917){const _0x303577=_0x4aea0d,_0x32ed85=new _0x3ae690({'editor':this[_0x303577(0xea)],'documentContextContent':this[_0x303577(0xe2)]()?.[_0x303577(0xc7)],..._0xb1e917});return this[_0x303577(0xdd)][_0x303577(0xff)](_0x32ed85),_0x32ed85[_0x303577(0xde)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x303577(0xaa)](_0x303577(0xe8),_0x32ed85),_0x32ed85;}[_0x4aea0d(0xf9)](_0x192726,_0x5911ca=!0x1){const _0x4e9905=_0x4aea0d;this[_0x4e9905(0xaa)](_0x4e9905(0xf9),_0x192726,_0x5911ca);}[_0x4aea0d(0xf7)](){const _0x8dff04=_0x4aea0d;this[_0x8dff04(0xe6)]&&(this[_0x8dff04(0xe6)]=!0x1,this[_0x8dff04(0xaa)](_0x8dff04(0xcb),this));}[_0x4aea0d(0xc3)](){const _0x2b7393=_0x4aea0d;this[_0x2b7393(0xac)]&&(this[_0x2b7393(0xac)]=!0x1,this[_0x2b7393(0xaa)](_0x2b7393(0xee),this));}[_0x4aea0d(0xb7)](_0x29c454){const _0x1538de=_0x4aea0d;this[_0x1538de(0xaa)](_0x1538de(0xc1),{'type':_0x1538de(0xed),'toolName':_0x29c454[_0x1538de(0xc6)],'data':structuredClone(_0x29c454[_0x1538de(0xd3)]||{}),'attributes':structuredClone(_0x29c454[_0x1538de(0xb5)]||{})},this);}[_0x4aea0d(0xc9)](_0x5cfaf4){const _0x15faa1=_0x4aea0d;this[_0x15faa1(0xaa)](_0x15faa1(0xc1),{'type':_0x15faa1(0xba),'toolName':_0x5cfaf4[_0x15faa1(0xc6)],'data':structuredClone(_0x5cfaf4[_0x15faa1(0xd3)])},this);}[_0x4aea0d(0xbc)](){const _0x10b3f0=_0x4aea0d;this[_0x10b3f0(0xe4)]=!0x0,this[_0x10b3f0(0xa9)]&&this[_0x10b3f0(0xa9)][_0x10b3f0(0xd7)][_0x10b3f0(0xcf)](),this[_0x10b3f0(0xb6)]&&this[_0x10b3f0(0xb6)][_0x10b3f0(0xfa)](),this[_0x10b3f0(0xa9)]=this[_0x10b3f0(0xb6)]=void 0x0;}}function _0x1bd5(){const _0x219f32=['11tLIMaw','getStream','splice','resetWebSearchState','1784124IKmjiy','setConversationTitle','done','12CkpuNu','stop','webSearchStarted','error','push','text','currentRequest','fire','replyContentUpdated','_isReasoning','55986IhEQWR','forEach','event','conversationTitle','isDestroyed','2066977jmzmil','appendContent','find','attributes','currentReply','_handleToolResultData','createReply','messageId','notification','interactionStarted','_finalizeInteraction','actionCallId','text-delta','ai-chat-interaction-error','2378720GwncAk','toolDataReceived','sendRequest','resetReasoningState','7EzgsJT','interactionStopped','toolName','content','6675258qBaawE','_handleToolNotificationData','callId','webSearchFinished','type','conversation-title','start','abort','replyChangeGroupStateUpdated','destroy','stopListening','data','parse','getReply','interactionCreated','abortController','web-search','reasoningStarted','message-metadata','action-metadata','sources','replies','delegate','1340487jfmOtK','length','source','getDocumentContext','494895nipEjD','isStopped','connector','_isWebSearching','modification','replyCreated','mcp-tool-result','editor','textDelta','modification-delta','result','reasoningFinished','interactionFinished','60hdCeUu','reasoning','mcp-tool-notification','interactionDestroyed'];_0x1bd5=function(){return _0x219f32;};return _0x1bd5();}
23
+ function _0x36f3(_0x2b047b,_0x53d112){const _0xd8656d=_0xd865();return _0x36f3=function(_0x36f388,_0x5dba6a){_0x36f388=_0x36f388-0xd2;let _0x375d86=_0xd8656d[_0x36f388];return _0x375d86;},_0x36f3(_0x2b047b,_0x53d112);}const _0x4345df=_0x36f3;(function(_0x1a8f98,_0x3aef2d){const _0x87518b=_0x36f3,_0x1ca895=_0x1a8f98();while(!![]){try{const _0x3ff821=parseInt(_0x87518b(0xee))/0x1*(-parseInt(_0x87518b(0xd4))/0x2)+parseInt(_0x87518b(0xe5))/0x3*(-parseInt(_0x87518b(0xea))/0x4)+-parseInt(_0x87518b(0x113))/0x5+parseInt(_0x87518b(0xe4))/0x6*(parseInt(_0x87518b(0x10a))/0x7)+-parseInt(_0x87518b(0xf2))/0x8*(parseInt(_0x87518b(0xdb))/0x9)+-parseInt(_0x87518b(0x120))/0xa+parseInt(_0x87518b(0xda))/0xb*(parseInt(_0x87518b(0x123))/0xc);if(_0x3ff821===_0x3aef2d)break;else _0x1ca895['push'](_0x1ca895['shift']());}catch(_0x40360d){_0x1ca895['push'](_0x1ca895['shift']());}}}(_0xd865,0xa0bd6));function _0xd865(){const _0x2a164f=['replies','callId','start','mcp-tool-notification','actionCallId','setConversationTitle','379560vLjCjj','reasoningStarted','reasoningFinished','replyCreated','toolName','webSearchFinished','_handleToolNotificationData','resetWebSearchState','action-metadata','interactionFinished','fire','ai-chat-interaction-error','result','2312100mTjIyO','notification','connector','216OjusDs','forEach','toolDataReceived','isDestroyed','_handleToolResultData','replyChangeGroupStateUpdated','splice','interactionStarted','sendRequest','stopListening','14fJhWAw','text','getDocumentContext','modification','sources','done','1746063aDVGsw','144qgLYnz','text-delta','abort','_isWebSearching','_isReasoning','source','interactionDestroyed','content','interactionStopped','78hrmnKt','3201SxBsSv','appendContent','currentReply','messageId','delegate','3596sjCUin','abortController','type','editor','94695hwwnZJ','currentRequest','getReply','find','640336kGlqGD','interactionCreated','isStopped','attributes','modification-delta','mcp-tool-result','reasoning','conversation-title','stop','conversationTitle','textDelta','push','message-metadata','createReply','getStream','resetReasoningState','parse','event','web-search','webSearchStarted','replyContentUpdated','destroy','data','length','544432NGRHzT','_finalizeInteraction','error'];_0xd865=function(){return _0x2a164f;};return _0xd865();}import{CKEditorError as _0x2a88d8,EmitterMixin as _0x5f27e6,uid as _0x5d435e}from'ckeditor5/src/utils.js';import{AIReply as _0x51e744}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4345df(0xf3),_0x4345df(0x12a),_0x4345df(0xe3),_0x4345df(0x11c),_0x4345df(0xe1),_0x4345df(0x116),_0x4345df(0x106),_0x4345df(0x128),_0x4345df(0x112),_0x4345df(0x105),_0x4345df(0x118),_0x4345df(0x114),_0x4345df(0x115),_0x4345df(0x125),_0x4345df(0x10c)];export class AIInteraction extends _0x5f27e6(){['id'];[_0x4345df(0x10d)]=[];[_0x4345df(0xe7)];[_0x4345df(0xe8)];[_0x4345df(0x111)];[_0x4345df(0xef)];[_0x4345df(0x122)];[_0x4345df(0xf4)]=!0x1;[_0x4345df(0x126)]=!0x1;[_0x4345df(0xed)];[_0x4345df(0xdf)]=!0x1;[_0x4345df(0xde)]=!0x1;constructor({connector:_0x396be9,editor:_0x4ec04b}){const _0x29a1d4=_0x4345df;super(),this['id']=_0x5d435e(),this[_0x29a1d4(0x122)]=_0x396be9,this[_0x29a1d4(0xf4)]=!0x0,this[_0x29a1d4(0xed)]=_0x4ec04b;}async[_0x4345df(0x10f)](){const _0x177870=_0x4345df,_0x513b27=[];let _0x346459,_0x44628c,_0x13978f;this[_0x177870(0xf4)]=!0x1;try{this[_0x177870(0xef)]=await this[_0x177870(0xd2)](),this[_0x177870(0x11d)](_0x177870(0x12a),this);const _0x1375f4=await this[_0x177870(0xef)][_0x177870(0x100)]();for await(const _0x4fc77c of _0x1375f4){if(this[_0x177870(0xf4)])return;if(_0x177870(0x10c)==_0x4fc77c[_0x177870(0x103)])return void this[_0x177870(0x11d)](_0x177870(0x10c),{'error':new _0x2a88d8(_0x177870(0x11e),this)});switch(_0x4fc77c[_0x177870(0x103)]){case _0x177870(0xfe):this[_0x177870(0xe8)]=_0x4fc77c[_0x177870(0x108)][_0x177870(0xe8)];break;case _0x177870(0x11b):this[_0x177870(0x111)]=_0x4fc77c[_0x177870(0x108)][_0x177870(0x10e)];break;case _0x177870(0xf9):this[_0x177870(0x112)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xfb)],!0x0);break;case _0x177870(0xe0):_0x513b27[_0x177870(0xfd)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xe0)]);break;case _0x177870(0x104):this[_0x177870(0xde)]||(this[_0x177870(0xde)]=!0x0,this[_0x177870(0x11d)](_0x177870(0x105),this));break;case _0x177870(0xf8):this[_0x177870(0xdf)]||(this[_0x177870(0xdf)]=!0x0,this[_0x177870(0x11d)](_0x177870(0x114),this));break;case _0x177870(0xf6):case _0x177870(0xdc):this[_0x177870(0x101)](),this[_0x177870(0x11a)](),_0x346459=_0x177870(0xf6)==_0x4fc77c[_0x177870(0x103)]?_0x177870(0xd7):_0x177870(0xd5),_0x44628c=_0x177870(0xf6)==_0x4fc77c[_0x177870(0x103)]?_0x4fc77c[_0x177870(0x108)]['id']:void 0x0,this[_0x177870(0xe7)]&&this[_0x177870(0xe7)][_0x177870(0xec)]!=_0x346459&&(this[_0x177870(0xe7)][_0x177870(0xd9)](),this[_0x177870(0xe7)]=void 0x0),this[_0x177870(0xe7)]||(this[_0x177870(0xe7)]=this[_0x177870(0xff)]({'type':_0x346459,'interactionId':this['id'],'id':_0x44628c}),_0x177870(0xd7)==_0x346459&&(this[_0x177870(0xe7)][_0x177870(0xd8)]=_0x513b27[_0x177870(0x129)](0x0))),this[_0x177870(0xe7)][_0x177870(0xe6)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xfc)]);break;case _0x177870(0xf7):_0x13978f=JSON[_0x177870(0x102)](_0x4fc77c[_0x177870(0x108)][_0x177870(0x11f)]),this[_0x177870(0x127)]({'toolName':_0x4fc77c[_0x177870(0x108)][_0x177870(0x117)],'data':_0x13978f[_0x177870(0x108)],'attributes':_0x13978f[_0x177870(0xf5)]});break;case _0x177870(0x110):this[_0x177870(0x119)]({'toolName':_0x4fc77c[_0x177870(0x108)][_0x177870(0x117)],'data':_0x4fc77c[_0x177870(0x108)][_0x177870(0x108)]});}}}finally{this[_0x177870(0xf4)]||(this[_0x177870(0xe7)]&&_0x513b27[_0x177870(0x109)]>0x0&&(this[_0x177870(0xe7)][_0x177870(0xd8)]=_0x513b27[_0x177870(0x129)](0x0)),this[_0x177870(0x10b)](),this[_0x177870(0x11d)](_0x177870(0x11c),this));}}[_0x4345df(0xfa)](){const _0x3c6484=_0x4345df;this[_0x3c6484(0xf4)]||(this[_0x3c6484(0x10b)](),this[_0x3c6484(0x11d)](_0x3c6484(0xe3),this));}[_0x4345df(0xf0)](_0x22c839){const _0x12bdc6=_0x4345df;return this[_0x12bdc6(0x10d)][_0x12bdc6(0xf1)](_0x254164=>_0x254164['id']===_0x22c839);}[_0x4345df(0x107)](){const _0x317047=_0x4345df;this[_0x317047(0x126)]||(this[_0x317047(0xfa)](),this[_0x317047(0x10d)][_0x317047(0x124)](_0x1dc8d5=>_0x1dc8d5[_0x317047(0x107)]()),this[_0x317047(0x10d)]=[],this[_0x317047(0x126)]=!0x0,this[_0x317047(0x11d)](_0x317047(0xe1),this),this[_0x317047(0xd3)]());}[_0x4345df(0xff)](_0x295398){const _0x3baaba=_0x4345df,_0x58b8c0=new _0x51e744({'editor':this[_0x3baaba(0xed)],'documentContextContent':this[_0x3baaba(0xd6)]()?.[_0x3baaba(0xe2)],..._0x295398});return this[_0x3baaba(0x10d)][_0x3baaba(0xfd)](_0x58b8c0),_0x58b8c0[_0x3baaba(0xe9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3baaba(0x11d)](_0x3baaba(0x116),_0x58b8c0),_0x58b8c0;}[_0x4345df(0x112)](_0x50a3aa,_0x14837a=!0x1){const _0x343637=_0x4345df;this[_0x343637(0x11d)](_0x343637(0x112),_0x50a3aa,_0x14837a);}[_0x4345df(0x11a)](){const _0x48d2b1=_0x4345df;this[_0x48d2b1(0xde)]&&(this[_0x48d2b1(0xde)]=!0x1,this[_0x48d2b1(0x11d)](_0x48d2b1(0x118),this));}[_0x4345df(0x101)](){const _0x5b095a=_0x4345df;this[_0x5b095a(0xdf)]&&(this[_0x5b095a(0xdf)]=!0x1,this[_0x5b095a(0x11d)](_0x5b095a(0x115),this));}[_0x4345df(0x127)](_0x2bdddc){const _0x2a4c00=_0x4345df;this[_0x2a4c00(0x11d)](_0x2a4c00(0x125),{'type':_0x2a4c00(0x11f),'toolName':_0x2bdddc[_0x2a4c00(0x117)],'data':structuredClone(_0x2bdddc[_0x2a4c00(0x108)]||{}),'attributes':structuredClone(_0x2bdddc[_0x2a4c00(0xf5)]||{})},this);}[_0x4345df(0x119)](_0x246b4b){const _0x4c4cdd=_0x4345df;this[_0x4c4cdd(0x11d)](_0x4c4cdd(0x125),{'type':_0x4c4cdd(0x121),'toolName':_0x246b4b[_0x4c4cdd(0x117)],'data':structuredClone(_0x246b4b[_0x4c4cdd(0x108)])},this);}[_0x4345df(0x10b)](){const _0x313df7=_0x4345df;this[_0x313df7(0xf4)]=!0x0,this[_0x313df7(0xef)]&&this[_0x313df7(0xef)][_0x313df7(0xeb)][_0x313df7(0xdd)](),this[_0x313df7(0xe7)]&&this[_0x313df7(0xe7)][_0x313df7(0xd9)](),this[_0x313df7(0xef)]=this[_0x313df7(0xe7)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4eca(_0x322d45,_0x46a3cd){const _0x1a2968=_0x1a29();return _0x4eca=function(_0x4eca8a,_0x218d10){_0x4eca8a=_0x4eca8a-0x128;let _0x1ae19c=_0x1a2968[_0x4eca8a];return _0x1ae19c;},_0x4eca(_0x322d45,_0x46a3cd);}const _0x4ea033=_0x4eca;(function(_0xd2b829,_0x66997e){const _0x1d6a11=_0x4eca,_0x221436=_0xd2b829();while(!![]){try{const _0x36cc8e=-parseInt(_0x1d6a11(0x12f))/0x1+parseInt(_0x1d6a11(0x138))/0x2*(parseInt(_0x1d6a11(0x144))/0x3)+-parseInt(_0x1d6a11(0x13b))/0x4*(parseInt(_0x1d6a11(0x12b))/0x5)+parseInt(_0x1d6a11(0x14d))/0x6+parseInt(_0x1d6a11(0x157))/0x7+-parseInt(_0x1d6a11(0x136))/0x8+parseInt(_0x1d6a11(0x14f))/0x9*(-parseInt(_0x1d6a11(0x156))/0xa);if(_0x36cc8e===_0x66997e)break;else _0x221436['push'](_0x221436['shift']());}catch(_0x3a6ce1){_0x221436['push'](_0x221436['shift']());}}}(_0x1a29,0x8cae3));import{EmitterMixin as _0x4fcba9,logWarning as _0x2c8b1f,logError as _0x3df085}from'ckeditor5/src/utils.js';import{getTranslation as _0x2bf1a7}from'../utils/common-translations.js';export class AIModels extends _0x4fcba9(){[_0x4ea033(0x150)];[_0x4ea033(0x131)];[_0x4ea033(0x153)];[_0x4ea033(0x154)]=[];[_0x4ea033(0x139)]=null;constructor({connector:_0x5aa485,config:_0x2a34eb,locale:_0x1d626c}){const _0x5c1424=_0x4ea033;super(),this[_0x5c1424(0x150)]=_0x5aa485,this[_0x5c1424(0x131)]=_0x2a34eb,this[_0x5c1424(0x153)]=_0x1d626c;}get[_0x4ea033(0x12d)](){const _0x623365=_0x4ea033;return this[_0x623365(0x131)]?.[_0x623365(0x135)];}get[_0x4ea033(0x14b)](){const _0x1a49a8=_0x4ea033;return this[_0x1a49a8(0x131)]?.[_0x1a49a8(0x13f)];}async[_0x4ea033(0x12a)](){const _0x564ae2=_0x4ea033;return this[_0x564ae2(0x139)]||(this[_0x564ae2(0x139)]=this[_0x564ae2(0x14c)]()),this[_0x564ae2(0x139)];}async[_0x4ea033(0x15b)](){const _0x5648a8=_0x4ea033,_0x1b2754=await this[_0x5648a8(0x12a)]();let _0x1c3c33;return _0x1c3c33=this[_0x5648a8(0x12d)]?this[_0x5648a8(0x146)](_0x1b2754,this[_0x5648a8(0x12d)]):_0x1b2754[_0x5648a8(0x152)](_0x1549e8=>_0x1549e8[_0x5648a8(0x141)]),_0x1c3c33;}async[_0x4ea033(0x145)](_0x4c9ae7){const _0x1761f3=_0x4ea033,_0x7e8ef9=await this[_0x1761f3(0x12a)]();if(!_0x7e8ef9[_0x1761f3(0x13c)])return null;if(_0x4c9ae7){const _0x30de7b=this[_0x1761f3(0x132)](_0x7e8ef9,_0x4c9ae7);if(_0x30de7b)return _0x30de7b;_0x2c8b1f(_0x1761f3(0x13a),{'modelId':_0x4c9ae7,'fallBackModelId':this[_0x1761f3(0x14b)]});}return this[_0x1761f3(0x151)]();}async[_0x4ea033(0x151)](){const _0x7f18f2=_0x4ea033,_0xecbfc5=await this[_0x7f18f2(0x15b)]();if(!_0xecbfc5[_0x7f18f2(0x13c)])return null;if(this[_0x7f18f2(0x14b)]){const _0xd0fb6e=this[_0x7f18f2(0x132)](_0xecbfc5,this[_0x7f18f2(0x14b)]);if(_0xd0fb6e)return _0xd0fb6e;_0x2c8b1f(_0x7f18f2(0x149),{'defaultModelId':this[_0x7f18f2(0x14b)],'fallBackModelId':_0xecbfc5[0x0]['id']});}return _0xecbfc5[0x0];}async[_0x4ea033(0x128)](_0x112a37){const _0x145170=_0x4ea033;return(await this[_0x145170(0x15b)]())[_0x145170(0x159)](_0x41f734=>_0x41f734[_0x145170(0x134)]===_0x112a37[_0x145170(0x134)]&&_0x41f734[_0x145170(0x158)]===_0x112a37[_0x145170(0x158)]);}async[_0x4ea033(0x14c)](){const _0x37f45c=_0x4ea033;if(!this[_0x37f45c(0x154)][_0x37f45c(0x13c)])try{const _0x3c9cdc=this[_0x37f45c(0x153)][_0x37f45c(0x148)]||'en',_0x314715=this[_0x37f45c(0x150)][_0x37f45c(0x15a)](_0x3c9cdc),_0x4aeddd=await _0x314715[_0x37f45c(0x12e)]();this[_0x37f45c(0x154)]=_0x4aeddd[_0x37f45c(0x133)][_0x37f45c(0x140)](_0x64f877=>Bi(_0x64f877)?{..._0x64f877,'name':_0x2bf1a7(this[_0x37f45c(0x153)],_0x37f45c(0x14a))}:_0x64f877);}catch(_0x4daa6c){throw _0x3df085(_0x37f45c(0x137),{'error':_0x4daa6c}),_0x4daa6c;}return[...this[_0x37f45c(0x154)]];}[_0x4ea033(0x146)](_0x4a1ad8,_0x24a19c){const _0x279eb0=_0x4ea033;let _0x58706e;if(_0x24a19c){_0x58706e=[];const _0x304849=new Set(),_0x4c4a17=_0x279eb0(0x130)==typeof _0x24a19c?[_0x24a19c[_0x279eb0(0x142)]()]:_0x24a19c[_0x279eb0(0x140)](_0x2f0a9e=>_0x2f0a9e[_0x279eb0(0x142)]());for(const _0x20e905 of _0x4c4a17)for(const _0x267492 of _0x4a1ad8)!_0x304849[_0x279eb0(0x155)](_0x267492['id'])&&this[_0x279eb0(0x12c)](_0x267492,_0x20e905)&&(_0x58706e[_0x279eb0(0x14e)](_0x267492),_0x304849[_0x279eb0(0x13e)](_0x267492['id']));}else _0x58706e=_0x4a1ad8;return _0x58706e;}[_0x4ea033(0x12c)](_0x4007ce,_0x47ebb8){const _0x3d23e5=_0x4ea033,_0xca0104=_0x4007ce['id'][_0x3d23e5(0x142)](),_0x2922e7=_0x4007ce[_0x3d23e5(0x134)][_0x3d23e5(0x142)](),_0x340cfe=_0x4007ce[_0x3d23e5(0x158)][_0x3d23e5(0x142)]();return _0xca0104===_0x47ebb8||_0x2922e7===_0x47ebb8||Bi(_0x4007ce)&&_0x3d23e5(0x147)===_0x47ebb8||_0x340cfe===_0x47ebb8||_0xca0104[_0x3d23e5(0x13d)](_0x47ebb8);}[_0x4ea033(0x132)](_0x47f1e5,_0x4be973){const _0x2048e9=_0x4ea033;return _0x47f1e5[_0x2048e9(0x129)](_0x2a8565=>Bi(_0x2a8565)&&_0x2048e9(0x147)===_0x4be973?_0x2a8565:_0x2a8565['id']===_0x4be973)||null;}}function _0x1a29(){const _0x277449=['ai-chat-default-model-id-unrecognized','AI_MODEL_NAME_AUTO','_defaultModelId','_retrieveModels','594870ijpTKU','push','1359TEHaGz','_connector','getDefault','filter','_locale','_modelList','has','32290OgkUQt','6776798BYwxtG','provider','some','getModels','getAvailableModels','isAvailable','find','getAll','65qVrMnC','_isMatchingFilter','_availableModels','list','484084NTamvV','string','_config','_getModelById','items','name','displayedModels','528728MFkVhB','ai-models-unable-to-retrieve','206OrHCFi','_modelsRequest','ai-chat-model-id-unrecognized','19428sTlMCT','length','startsWith','add','defaultModelId','map','recommended','toLocaleLowerCase','agent','17763RWRKRv','getModel','_filterModels','auto','uiLanguage'];_0x1a29=function(){return _0x277449;};return _0x1a29();}function Bi(_0x3ea829){const _0x18d3b1=_0x4ea033;return _0x3ea829['id'][_0x18d3b1(0x13d)](_0x18d3b1(0x143));}
23
+ const _0x2b72e0=_0x2574;(function(_0x2021c1,_0x8a0e79){const _0x595637=_0x2574,_0x5d43da=_0x2021c1();while(!![]){try{const _0x136977=-parseInt(_0x595637(0x184))/0x1+parseInt(_0x595637(0x199))/0x2*(parseInt(_0x595637(0x195))/0x3)+-parseInt(_0x595637(0x190))/0x4*(parseInt(_0x595637(0x1b0))/0x5)+-parseInt(_0x595637(0x185))/0x6*(-parseInt(_0x595637(0x1a1))/0x7)+-parseInt(_0x595637(0x1b2))/0x8*(-parseInt(_0x595637(0x193))/0x9)+-parseInt(_0x595637(0x1a0))/0xa+-parseInt(_0x595637(0x1af))/0xb;if(_0x136977===_0x8a0e79)break;else _0x5d43da['push'](_0x5d43da['shift']());}catch(_0x226f29){_0x5d43da['push'](_0x5d43da['shift']());}}}(_0x3612,0xd0324));import{EmitterMixin as _0xcb3d0,logWarning as _0x16414b,logError as _0x1bca1b}from'ckeditor5/src/utils.js';import{getTranslation as _0x44117d}from'../utils/common-translations.js';function _0x3612(){const _0x10cdd6=['auto','items','ai-chat-default-model-id-unrecognized','defaultModelId','_getModelById','length','add','_filterModels','filter','33268mTyEKm','getModel','AI_MODEL_NAME_AUTO','9350478LmFvNV','_retrieveModels','8493pqspgG','string','displayedModels','uiLanguage','140OrBHoO','startsWith','getModels','has','list','map','toLocaleLowerCase','2504550wqWPsy','2853991sVfwnZ','isAvailable','_isMatchingFilter','_modelList','ai-chat-model-id-unrecognized','name','_locale','getDefault','push','ai-models-unable-to-retrieve','getAvailableModels','_connector','some','_defaultModelId','1354551aUYXoP','485PuQcJx','_availableModels','8HHryzf','_config','recommended','_modelsRequest','provider','agent','find','427134qKgKBq','18nJgDEJ','getAll'];_0x3612=function(){return _0x10cdd6;};return _0x3612();}function _0x2574(_0x3ac440,_0xfedd55){const _0x361227=_0x3612();return _0x2574=function(_0x2574b8,_0x331e56){_0x2574b8=_0x2574b8-0x180;let _0x153cbd=_0x361227[_0x2574b8];return _0x153cbd;},_0x2574(_0x3ac440,_0xfedd55);}export class AIModels extends _0xcb3d0(){[_0x2b72e0(0x1ac)];[_0x2b72e0(0x1b3)];[_0x2b72e0(0x1a7)];[_0x2b72e0(0x1a4)]=[];[_0x2b72e0(0x180)]=null;constructor({connector:_0x1ab242,config:_0x556d9f,locale:_0x4c8062}){const _0x1eee10=_0x2b72e0;super(),this[_0x1eee10(0x1ac)]=_0x1ab242,this[_0x1eee10(0x1b3)]=_0x556d9f,this[_0x1eee10(0x1a7)]=_0x4c8062;}get[_0x2b72e0(0x1b1)](){const _0x4db318=_0x2b72e0;return this[_0x4db318(0x1b3)]?.[_0x4db318(0x197)];}get[_0x2b72e0(0x1ae)](){const _0x5135b7=_0x2b72e0;return this[_0x5135b7(0x1b3)]?.[_0x5135b7(0x18a)];}async[_0x2b72e0(0x186)](){const _0x4bc7ad=_0x2b72e0;return this[_0x4bc7ad(0x180)]||(this[_0x4bc7ad(0x180)]=this[_0x4bc7ad(0x194)]()),this[_0x4bc7ad(0x180)];}async[_0x2b72e0(0x1ab)](){const _0x117349=_0x2b72e0,_0x215e26=await this[_0x117349(0x186)]();let _0x1a3fcb;return _0x1a3fcb=this[_0x117349(0x1b1)]?this[_0x117349(0x18e)](_0x215e26,this[_0x117349(0x1b1)]):_0x215e26[_0x117349(0x18f)](_0x26d4b7=>_0x26d4b7[_0x117349(0x1b4)]),_0x1a3fcb;}async[_0x2b72e0(0x191)](_0x1c6f36){const _0x144264=_0x2b72e0,_0x458ccf=await this[_0x144264(0x186)]();if(!_0x458ccf[_0x144264(0x18c)])return null;if(_0x1c6f36){const _0x368cfb=this[_0x144264(0x18b)](_0x458ccf,_0x1c6f36);if(_0x368cfb)return _0x368cfb;_0x16414b(_0x144264(0x1a5),{'modelId':_0x1c6f36,'fallBackModelId':this[_0x144264(0x1ae)]});}return this[_0x144264(0x1a8)]();}async[_0x2b72e0(0x1a8)](){const _0x3f2e95=_0x2b72e0,_0x4130d1=await this[_0x3f2e95(0x1ab)]();if(!_0x4130d1[_0x3f2e95(0x18c)])return null;if(this[_0x3f2e95(0x1ae)]){const _0x52b3e8=this[_0x3f2e95(0x18b)](_0x4130d1,this[_0x3f2e95(0x1ae)]);if(_0x52b3e8)return _0x52b3e8;_0x16414b(_0x3f2e95(0x189),{'defaultModelId':this[_0x3f2e95(0x1ae)],'fallBackModelId':_0x4130d1[0x0]['id']});}return _0x4130d1[0x0];}async[_0x2b72e0(0x1a2)](_0x13c909){const _0x12ec6a=_0x2b72e0;return(await this[_0x12ec6a(0x1ab)]())[_0x12ec6a(0x1ad)](_0x3daeab=>_0x3daeab[_0x12ec6a(0x1a6)]===_0x13c909[_0x12ec6a(0x1a6)]&&_0x3daeab[_0x12ec6a(0x181)]===_0x13c909[_0x12ec6a(0x181)]);}async[_0x2b72e0(0x194)](){const _0x356731=_0x2b72e0;if(!this[_0x356731(0x1a4)][_0x356731(0x18c)])try{const _0x20a75b=this[_0x356731(0x1a7)][_0x356731(0x198)]||'en',_0x3511e8=this[_0x356731(0x1ac)][_0x356731(0x19b)](_0x20a75b),_0x1e07ad=await _0x3511e8[_0x356731(0x19d)]();this[_0x356731(0x1a4)]=_0x1e07ad[_0x356731(0x188)][_0x356731(0x19e)](_0x6e391e=>ze(_0x6e391e)?{..._0x6e391e,'name':_0x44117d(this[_0x356731(0x1a7)],_0x356731(0x192))}:_0x6e391e);}catch(_0x3faecf){throw _0x1bca1b(_0x356731(0x1aa),{'error':_0x3faecf}),_0x3faecf;}return[...this[_0x356731(0x1a4)]];}[_0x2b72e0(0x18e)](_0x2db714,_0x24f7e9){const _0x4634a3=_0x2b72e0;let _0xd6f7c0;if(_0x24f7e9){_0xd6f7c0=[];const _0x26b0ac=new Set(),_0x291c10=_0x4634a3(0x196)==typeof _0x24f7e9?[_0x24f7e9[_0x4634a3(0x19f)]()]:_0x24f7e9[_0x4634a3(0x19e)](_0x40e5b4=>_0x40e5b4[_0x4634a3(0x19f)]());for(const _0x3bce35 of _0x291c10)for(const _0xd40b4b of _0x2db714)!_0x26b0ac[_0x4634a3(0x19c)](_0xd40b4b['id'])&&this[_0x4634a3(0x1a3)](_0xd40b4b,_0x3bce35)&&(_0xd6f7c0[_0x4634a3(0x1a9)](_0xd40b4b),_0x26b0ac[_0x4634a3(0x18d)](_0xd40b4b['id']));}else _0xd6f7c0=_0x2db714;return _0xd6f7c0;}[_0x2b72e0(0x1a3)](_0x3561d7,_0x1ca9e4){const _0x295a6e=_0x2b72e0,_0x2b43d4=_0x3561d7['id'][_0x295a6e(0x19f)](),_0x7391c7=_0x3561d7[_0x295a6e(0x1a6)][_0x295a6e(0x19f)](),_0xb25897=_0x3561d7[_0x295a6e(0x181)][_0x295a6e(0x19f)]();return _0x2b43d4===_0x1ca9e4||_0x7391c7===_0x1ca9e4||ze(_0x3561d7)&&_0x295a6e(0x187)===_0x1ca9e4||_0xb25897===_0x1ca9e4||_0x2b43d4[_0x295a6e(0x19a)](_0x1ca9e4);}[_0x2b72e0(0x18b)](_0x180ea2,_0x5f0c9d){const _0x1c9d22=_0x2b72e0;return _0x180ea2[_0x1c9d22(0x183)](_0x4153c6=>ze(_0x4153c6)&&_0x1c9d22(0x187)===_0x5f0c9d?_0x4153c6:_0x4153c6['id']===_0x5f0c9d)||null;}}function ze(_0x44be86){const _0xf4f0cb=_0x2b72e0;return _0x44be86['id'][_0xf4f0cb(0x19a)](_0xf4f0cb(0x182));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc61a91=_0x2c27;(function(_0x48c118,_0x51c106){const _0x5f0642=_0x2c27,_0x54b254=_0x48c118();while(!![]){try{const _0xcfe738=parseInt(_0x5f0642(0x13c))/0x1+-parseInt(_0x5f0642(0x181))/0x2*(-parseInt(_0x5f0642(0x156))/0x3)+-parseInt(_0x5f0642(0x139))/0x4+-parseInt(_0x5f0642(0x179))/0x5*(parseInt(_0x5f0642(0x13e))/0x6)+-parseInt(_0x5f0642(0x155))/0x7*(-parseInt(_0x5f0642(0x17f))/0x8)+parseInt(_0x5f0642(0x13f))/0x9+-parseInt(_0x5f0642(0x16c))/0xa*(parseInt(_0x5f0642(0x14b))/0xb);if(_0xcfe738===_0x51c106)break;else _0x54b254['push'](_0x54b254['shift']());}catch(_0x353e99){_0x54b254['push'](_0x54b254['shift']());}}}(_0x2596,0x1cac6));import{CKEditorError as _0x39386d,ObservableMixin as _0xb77364,uid as _0x225570}from'ckeditor5/src/utils.js';import{Element as _0x5726bf,findAll as _0x255ee0,getAttribute as _0x24013f,getParents as _0x13d20f,Document as _0x2337cf,parse as _0x58c4b7,Text as _0x47919b}from'../utils/htmlparser.js';import{AIResponseParser as _0x2c5c21}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2b2814}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x20e994}from'../utils/getsuggestionpartsfromreply.js';function _0x2596(){const _0x116b94=['136288ApHOyD','type','34kLMijd','splice','withoutDiff','getContentParts','set','map','every','data-id','find','338640NDUfdr','pending','previousSibling','173220IMKpMY','filter','114baQgHU','506394VBaiNe','index','aiResponseParser','fire','replyChangeGroupStateUpdated','aiResponseApplier','isDone','destroy','context','AI_SUGGESTION_CONTENT_PART_REMOVED','appendContent','change:content','1786004RqfgDD','indexOf','sources','color:\x20#808080;\x20font-style:\x20italic','parseAndNormalizeHTML','_getDifferentChangeGroups','changeGroups','forEach','node','updateChangeGroups','84dyhsSL','4821bhLhhA','onContentChange','includes','unshift','push','_setCachedContentParts','nextSibling','locale','parsedMergedContent','interactionId','ai-get-editor-from-context-no-editor','documentContextContent','areActionsDisabled','modification','merge','removed','new','data-unstable','withDiff','setChangeGroupState','modified','replyContentUpdated','10CyljUk','modifiedNodeIds','cachedSuggestionContentParts','done','cloneNode','content','parsedContent','stopListening','newNodeIds','ai-reply-get-content-parts-group-not-found','removedNodeIds','length','changes','25465cplbTo','_getCachedContentParts','state','span','editor','convertMarkdownToHTML'];_0x2596=function(){return _0x116b94;};return _0x2596();}import{getTranslation as _0x2eb2d0}from'../utils/common-translations.js';import{cloneDeep as _0x132432}from'es-toolkit';function _0x2c27(_0x3f8762,_0x1274f4){const _0x259616=_0x2596();return _0x2c27=function(_0x2c27d1,_0x389c60){_0x2c27d1=_0x2c27d1-0x133;let _0x3746b2=_0x259616[_0x2c27d1];return _0x3746b2;},_0x2c27(_0x3f8762,_0x1274f4);}export class AIReply extends _0xb77364(){['id'];[_0xc61a91(0x15f)];[_0xc61a91(0x180)];[_0xc61a91(0x14d)]=[];[_0xc61a91(0x172)]=new _0x2337cf([]);[_0xc61a91(0x15e)]=new _0x2337cf([]);[_0xc61a91(0x151)]=[];[_0xc61a91(0x162)]=!0x1;[_0xc61a91(0x161)];[_0xc61a91(0x141)];[_0xc61a91(0x144)];[_0xc61a91(0x17d)];[_0xc61a91(0x16e)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x56dc9e,content:_0xad6a18='',isDone:_0x241cbe=!0x1,interactionId:_0x2b2d8d,areActionsDisabled:_0x25c02a,documentContextContent:_0x2ef3e6,editor:_0x525890,id:_0x41c96b}){const _0x5b81b0=_0xc61a91;super(),this['id']=_0x41c96b||_0x225570(),this[_0x5b81b0(0x15f)]=_0x2b2d8d,this[_0x5b81b0(0x180)]=_0x56dc9e,this[_0x5b81b0(0x162)]=!!_0x25c02a,this[_0x5b81b0(0x17d)]=_0x525890,this[_0x5b81b0(0x141)]=new _0x2c5c21(),this[_0x5b81b0(0x144)]=new _0x2b2814(),this[_0x5b81b0(0x161)]=_0x58c4b7(_0x2ef3e6||''),this[_0x5b81b0(0x134)](_0x5b81b0(0x145),_0x241cbe),this['on'](_0x5b81b0(0x14a),()=>{const _0x389057=_0x5b81b0;this[_0x389057(0x157)]();}),this[_0x5b81b0(0x134)](_0x5b81b0(0x171),_0xad6a18);}[_0xc61a91(0x149)](_0x362cdc){const _0x36d89=_0xc61a91;this[_0x36d89(0x134)](_0x36d89(0x171),this[_0x36d89(0x171)]+_0x362cdc);}[_0xc61a91(0x16f)](){const _0x243fb1=_0xc61a91;this[_0x243fb1(0x145)]||(this[_0x243fb1(0x134)](_0x243fb1(0x145),!0x0),this[_0x243fb1(0x157)]());}[_0xc61a91(0x146)](){const _0x118f8f=_0xc61a91;this[_0x118f8f(0x173)]();}[_0xc61a91(0x169)](_0x5c9b1f,_0x4132bb){const _0x4349d0=_0xc61a91;this[_0x4349d0(0x151)][_0x5c9b1f][_0x4349d0(0x17b)]=_0x4132bb,this[_0x4349d0(0x142)](_0x4349d0(0x143),{'reply':this,'index':_0x5c9b1f,'state':_0x4132bb});}[_0xc61a91(0x133)]({showDiff:_0x3c90f1,groupIndex:_0x435974}){const _0x3e6588=_0xc61a91;if(!this[_0x3e6588(0x17d)])throw new _0x39386d(_0x3e6588(0x160),null,{'aiReply':this});const _0x4fcc73=this[_0x3e6588(0x17a)](_0x3c90f1,_0x435974);if(_0x4fcc73)return _0x4fcc73;let _0xcd51eb=[];if(void 0x0===_0x435974)_0xcd51eb=this[_0x3e6588(0x151)];else{const _0x54ccf1=this[_0x3e6588(0x151)][_0x3e6588(0x138)](({index:_0x936caa})=>_0x936caa===_0x435974);if(!_0x54ccf1)throw new _0x39386d(_0x3e6588(0x175),null,{'aiReply':this,'groupIndex':_0x435974});_0xcd51eb=[_0x54ccf1];}const _0x4d076a=_0x20e994({'editor':this[_0x3e6588(0x17d)],'showDiff':_0x3c90f1,'changeGroups':_0xcd51eb,'documentContextContent':this[_0x3e6588(0x161)]});return this[_0x3e6588(0x15b)](_0x3c90f1,_0x4d076a),_0x4d076a;}[_0xc61a91(0x17a)](_0xe9c1bb,_0x4c7850){const _0x4dd00d=_0xc61a91,_0x303096=_0xe9c1bb?_0x4dd00d(0x168):_0x4dd00d(0x183);if(!this[_0x4dd00d(0x16e)][_0x303096][_0x4dd00d(0x177)])return null;const _0x9ad166=this[_0x4dd00d(0x16e)][_0x303096];if(void 0x0===_0x4c7850)return _0x9ad166[_0x4dd00d(0x177)]>0x0&&_0x9ad166[_0x4dd00d(0x177)]!==this[_0x4dd00d(0x151)][_0x4dd00d(0x177)]?(this[_0x4dd00d(0x15b)](_0xe9c1bb,null),null):_0x132432(_0x9ad166);{const _0x12d6b7=_0x9ad166[_0x4dd00d(0x138)](({index:_0x20d895})=>_0x20d895===_0x4c7850);if(_0x12d6b7)return[_0x132432(_0x12d6b7)];}return null;}[_0xc61a91(0x15b)](_0x292659,_0x4887e1){const _0x143a7d=_0xc61a91,_0x17ba80=_0x292659?_0x143a7d(0x168):_0x143a7d(0x183);_0x4887e1?_0x4887e1[_0x143a7d(0x152)](_0x2e6357=>{const _0x252051=_0x143a7d,_0x2d38f=this[_0x252051(0x16e)][_0x17ba80],_0x1dbdb6=_0x2d38f[_0x252051(0x138)](({index:_0x46790e})=>_0x46790e===_0x2e6357[_0x252051(0x140)]);if(_0x1dbdb6){const _0x4a6591=_0x2d38f[_0x252051(0x14c)](_0x1dbdb6);_0x2d38f[_0x252051(0x182)](_0x4a6591,0x1,_0x2e6357);}else _0x2d38f[_0x252051(0x15a)](_0x2e6357);}):this[_0x143a7d(0x16e)][_0x17ba80][_0x143a7d(0x177)]=0x0;}[_0xc61a91(0x157)](){const _0x3c4fa1=_0xc61a91;if(_0x3c4fa1(0x163)===this[_0x3c4fa1(0x180)]){this[_0x3c4fa1(0x172)]=this[_0x3c4fa1(0x141)][_0x3c4fa1(0x14f)](this[_0x3c4fa1(0x171)]);const _0x66b8e0=this[_0x3c4fa1(0x151)];this[_0x3c4fa1(0x154)]();const _0x571f38=this[_0x3c4fa1(0x150)](_0x66b8e0,this[_0x3c4fa1(0x151)]);(_0x571f38[_0x3c4fa1(0x177)]||this[_0x3c4fa1(0x145)])&&(this[_0x3c4fa1(0x142)](_0x3c4fa1(0x16b),this,_0x571f38),this[_0x3c4fa1(0x16e)][_0x3c4fa1(0x168)][_0x3c4fa1(0x177)]=this[_0x3c4fa1(0x16e)][_0x3c4fa1(0x183)][_0x3c4fa1(0x177)]=0x0);}else this[_0x3c4fa1(0x172)]=this[_0x3c4fa1(0x141)][_0x3c4fa1(0x17e)](this[_0x3c4fa1(0x171)]),this[_0x3c4fa1(0x142)](_0x3c4fa1(0x16b),this);}[_0xc61a91(0x150)](_0x5878d7,_0x227a6f){const _0x3f8a62=_0xc61a91,_0x320b31=[];for(const _0x330db1 of _0x227a6f){const _0x2d0bb9=_0x5878d7[_0x330db1[_0x3f8a62(0x140)]];_0x2d0bb9?_0x2d0bb9[_0x3f8a62(0x178)][_0x3f8a62(0x177)]!==_0x330db1[_0x3f8a62(0x178)][_0x3f8a62(0x177)]?_0x320b31[_0x3f8a62(0x15a)](_0x330db1):_0x2d0bb9[_0x3f8a62(0x178)][_0x3f8a62(0x152)]((_0x5dc967,_0x5d27ad)=>{const _0x2aee80=_0x3f8a62,_0x4d7e85=_0x330db1[_0x2aee80(0x178)][_0x5d27ad];_0x5dc967['id']!==_0x4d7e85['id']&&_0x320b31[_0x2aee80(0x15a)](_0x330db1);}):_0x320b31[_0x3f8a62(0x15a)](_0x330db1);}return _0x320b31;}[_0xc61a91(0x154)](){const _0x2f8ba7=_0xc61a91,_0x474002=new _0x5726bf('p',{},[new _0x5726bf(_0x2f8ba7(0x17c),{'style':_0x2f8ba7(0x14e)},[new _0x47919b(_0x2eb2d0(this[_0x2f8ba7(0x17d)][_0x2f8ba7(0x15d)],_0x2f8ba7(0x148)))])]),_0x29f590=this[_0x2f8ba7(0x144)][_0x2f8ba7(0x164)](this[_0x2f8ba7(0x172)],this[_0x2f8ba7(0x161)][_0x2f8ba7(0x170)](!0x0),{'markUnstableElements':!this[_0x2f8ba7(0x145)],'replaceRemovedWith':_0x474002,'cutAfterLastChange':!this[_0x2f8ba7(0x145)]});if(!_0x29f590[_0x2f8ba7(0x16d)][_0x2f8ba7(0x177)]&&!this[_0x2f8ba7(0x145)])return;this[_0x2f8ba7(0x15e)]=_0x29f590[_0x2f8ba7(0x172)];let _0x523e2a=[];if(_0x255ee0(_0x33c63a=>{const _0x16cac1=_0x2f8ba7,_0x11e9fd=_0x24013f(_0x33c63a,_0x16cac1(0x137));if(!_0x11e9fd||!_0x383907(_0x11e9fd))return!0x1;const _0x246ce0=[_0x33c63a,..._0x13d20f(_0x33c63a)]['at'](-0x2);if(_0x33c63a!=_0x246ce0){const _0x1831cd=_0x24013f(_0x246ce0,_0x16cac1(0x137));_0x383907(_0x1831cd)||(_0x523e2a[_0x16cac1(0x15a)]({'node':_0x246ce0,'id':_0x1831cd,'type':_0x16cac1(0x16a)}),_0x29f590[_0x16cac1(0x16d)][_0x16cac1(0x15a)](_0x1831cd));}else _0x29f590[_0x16cac1(0x16d)][_0x16cac1(0x158)](_0x11e9fd)?_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x16a),'id':_0x11e9fd}):_0x29f590[_0x16cac1(0x174)][_0x16cac1(0x158)](_0x11e9fd)?_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x166),'id':_0x11e9fd,'anchorId':_0x24013f(_0x33c63a[_0x16cac1(0x13b)],_0x16cac1(0x137))}):_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x165),'id':_0x11e9fd});return!0x0;},this[_0x2f8ba7(0x15e)]),_0x523e2a=_0x523e2a[_0x2f8ba7(0x13d)](({node:_0x9ca951})=>[..._0x13d20f(_0x9ca951),_0x9ca951][_0x2f8ba7(0x136)](_0x19bf81=>!_0x24013f(_0x19bf81,_0x2f8ba7(0x167)))),0x0==_0x523e2a[_0x2f8ba7(0x177)])return;const _0x26ddcb=[[_0x523e2a[0x0]]];for(let _0x36db1f=0x1;_0x36db1f<_0x523e2a[_0x2f8ba7(0x177)];_0x36db1f++){const _0x5db321=_0x26ddcb[_0x26ddcb[_0x2f8ba7(0x177)]-0x1],_0x2924bf=_0x5db321[_0x5db321[_0x2f8ba7(0x177)]-0x1];_0x523e2a[_0x36db1f][_0x2f8ba7(0x153)][_0x2f8ba7(0x13b)]==_0x2924bf[_0x2f8ba7(0x153)]&&_0x2f8ba7(0x16a)!=_0x523e2a[_0x36db1f][_0x2f8ba7(0x180)]&&_0x2f8ba7(0x16a)!=_0x2924bf[_0x2f8ba7(0x180)]?_0x5db321[_0x2f8ba7(0x15a)](_0x523e2a[_0x36db1f]):_0x26ddcb[_0x2f8ba7(0x15a)]([_0x523e2a[_0x36db1f]]);}for(const _0x57231d of _0x26ddcb){const _0x2e1998=_0x57231d[0x0],_0x287dd8=_0x57231d[_0x57231d[_0x2f8ba7(0x177)]-0x1],_0x24475b=_0x1a54ae(_0x2e1998[_0x2f8ba7(0x153)][_0x2f8ba7(0x13b)]);_0x24475b&&_0x57231d[_0x2f8ba7(0x159)](_0x24475b);const _0x9c32b0=_0x1a54ae(_0x287dd8[_0x2f8ba7(0x153)][_0x2f8ba7(0x15c)]);_0x9c32b0&&_0x57231d[_0x2f8ba7(0x15a)](_0x9c32b0);}function _0x383907(_0x5865ab){const _0x525dca=_0x2f8ba7;return _0x29f590[_0x525dca(0x16d)][_0x525dca(0x158)](_0x5865ab)||_0x29f590[_0x525dca(0x174)][_0x525dca(0x158)](_0x5865ab)||_0x29f590[_0x525dca(0x176)][_0x525dca(0x158)](_0x5865ab);}function _0x1a54ae(_0x2949dc){const _0x1e4647=_0x2f8ba7;if(_0x2949dc&&_0x24013f(_0x2949dc,_0x1e4647(0x137))&&!_0x24013f(_0x2949dc,_0x1e4647(0x167))){const _0x1327fd=_0x24013f(_0x2949dc,_0x1e4647(0x137));if(!_0x383907(_0x1327fd))return{'node':_0x2949dc,'type':_0x1e4647(0x147),'id':_0x1327fd};}return null;}this[_0x2f8ba7(0x151)]=_0x26ddcb[_0x2f8ba7(0x135)]((_0x3e6446,_0x4e1dd7)=>({'changes':_0x3e6446,'state':_0x2f8ba7(0x13a),'index':_0x4e1dd7}));}}
23
+ const _0x49d78a=_0x4dfb;function _0x4dfb(_0x2bc9e1,_0x3e46cb){const _0x3d2c9f=_0x3d2c();return _0x4dfb=function(_0x4dfb00,_0x38fc5f){_0x4dfb00=_0x4dfb00-0x1e5;let _0x16e028=_0x3d2c9f[_0x4dfb00];return _0x16e028;},_0x4dfb(_0x2bc9e1,_0x3e46cb);}(function(_0x39750a,_0x47a01e){const _0x58d2b3=_0x4dfb,_0x5a5e8d=_0x39750a();while(!![]){try{const _0x2a358e=parseInt(_0x58d2b3(0x234))/0x1*(parseInt(_0x58d2b3(0x225))/0x2)+parseInt(_0x58d2b3(0x224))/0x3+-parseInt(_0x58d2b3(0x208))/0x4+-parseInt(_0x58d2b3(0x1e6))/0x5*(-parseInt(_0x58d2b3(0x213))/0x6)+parseInt(_0x58d2b3(0x1f9))/0x7*(-parseInt(_0x58d2b3(0x1f7))/0x8)+-parseInt(_0x58d2b3(0x203))/0x9*(parseInt(_0x58d2b3(0x21e))/0xa)+parseInt(_0x58d2b3(0x1e9))/0xb;if(_0x2a358e===_0x47a01e)break;else _0x5a5e8d['push'](_0x5a5e8d['shift']());}catch(_0x252085){_0x5a5e8d['push'](_0x5a5e8d['shift']());}}}(_0x3d2c,0x72fe1));import{CKEditorError as _0x3195d3,ObservableMixin as _0x58cad9,uid as _0x36c775}from'ckeditor5/src/utils.js';import{Element as _0x395757,findAll as _0xdc7c2e,getAttribute as _0x58664d,getParents as _0x585239,Document as _0x5a2250,parse as _0x3b0df1,Text as _0x2b474c}from'../utils/htmlparser.js';import{AIResponseParser as _0x10aeea}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4531d8}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1fc053}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3f3c72}from'../utils/common-translations.js';import{cloneDeep as _0x1d8426}from'es-toolkit';export class AIReply extends _0x58cad9(){['id'];[_0x49d78a(0x210)];[_0x49d78a(0x21f)];[_0x49d78a(0x1ea)]=[];[_0x49d78a(0x217)]=new _0x5a2250([]);[_0x49d78a(0x215)]=new _0x5a2250([]);[_0x49d78a(0x22b)]=[];[_0x49d78a(0x20c)]=!0x1;[_0x49d78a(0x209)];[_0x49d78a(0x235)];[_0x49d78a(0x233)];[_0x49d78a(0x219)];[_0x49d78a(0x1e7)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xf93d4d,content:_0x110f56='',isDone:_0x4205f0=!0x1,interactionId:_0x51c314,areActionsDisabled:_0x5a69c8,documentContextContent:_0x5bd979,editor:_0x331353,id:_0x4ea223}){const _0x26325f=_0x49d78a;super(),this['id']=_0x4ea223||_0x36c775(),this[_0x26325f(0x210)]=_0x51c314,this[_0x26325f(0x21f)]=_0xf93d4d,this[_0x26325f(0x20c)]=!!_0x5a69c8,this[_0x26325f(0x219)]=_0x331353,this[_0x26325f(0x235)]=new _0x10aeea(),this[_0x26325f(0x233)]=new _0x4531d8(),this[_0x26325f(0x209)]=_0x3b0df1(_0x5bd979||''),this[_0x26325f(0x200)](_0x26325f(0x228),_0x4205f0),this['on'](_0x26325f(0x1f4),()=>{const _0x15b736=_0x26325f;this[_0x15b736(0x211)]();}),this[_0x26325f(0x200)](_0x26325f(0x1ec),_0x110f56);}[_0x49d78a(0x1ef)](_0xb9fd01){const _0x4c2d10=_0x49d78a;this[_0x4c2d10(0x200)](_0x4c2d10(0x1ec),this[_0x4c2d10(0x1ec)]+_0xb9fd01);}[_0x49d78a(0x20f)](){const _0x2fdf69=_0x49d78a;this[_0x2fdf69(0x228)]||(this[_0x2fdf69(0x200)](_0x2fdf69(0x228),!0x0),this[_0x2fdf69(0x211)]());}[_0x49d78a(0x22d)](){const _0x4c0be1=_0x49d78a;this[_0x4c0be1(0x22a)]();}[_0x49d78a(0x1e5)](_0x54724b,_0x21be95){const _0x317a2d=_0x49d78a;this[_0x317a2d(0x22b)][_0x54724b][_0x317a2d(0x1eb)]=_0x21be95,this[_0x317a2d(0x1fd)](_0x317a2d(0x1fb),{'reply':this,'index':_0x54724b,'state':_0x21be95});}[_0x49d78a(0x229)]({showDiff:_0x26f075,groupIndex:_0x5bfd63}){const _0x4f775d=_0x49d78a;if(!this[_0x4f775d(0x219)])throw new _0x3195d3(_0x4f775d(0x1fc),null,{'aiReply':this});const _0x44cb14=this[_0x4f775d(0x227)](_0x26f075,_0x5bfd63);if(_0x44cb14)return _0x44cb14;let _0x32fe02=[];if(void 0x0===_0x5bfd63)_0x32fe02=this[_0x4f775d(0x22b)];else{const _0x536347=this[_0x4f775d(0x22b)][_0x4f775d(0x1ee)](({index:_0x468591})=>_0x468591===_0x5bfd63);if(!_0x536347)throw new _0x3195d3(_0x4f775d(0x223),null,{'aiReply':this,'groupIndex':_0x5bfd63});_0x32fe02=[_0x536347];}const _0x7a9b15=_0x1fc053({'editor':this[_0x4f775d(0x219)],'showDiff':_0x26f075,'changeGroups':_0x32fe02,'documentContextContent':this[_0x4f775d(0x209)]});return this[_0x4f775d(0x20e)](_0x26f075,_0x7a9b15),_0x7a9b15;}[_0x49d78a(0x227)](_0x2bee16,_0x257f81){const _0x52d575=_0x49d78a,_0x4f752b=_0x2bee16?_0x52d575(0x21d):_0x52d575(0x222);if(!this[_0x52d575(0x1e7)][_0x4f752b][_0x52d575(0x22f)])return null;const _0x2dee5e=this[_0x52d575(0x1e7)][_0x4f752b];if(void 0x0===_0x257f81)return _0x2dee5e[_0x52d575(0x22f)]>0x0&&_0x2dee5e[_0x52d575(0x22f)]!==this[_0x52d575(0x22b)][_0x52d575(0x22f)]?(this[_0x52d575(0x20e)](_0x2bee16,null),null):_0x1d8426(_0x2dee5e);{const _0x55289e=_0x2dee5e[_0x52d575(0x1ee)](({index:_0x4aa0d0})=>_0x4aa0d0===_0x257f81);if(_0x55289e)return[_0x1d8426(_0x55289e)];}return null;}[_0x49d78a(0x20e)](_0x561a71,_0x37bd97){const _0x1b3e47=_0x49d78a,_0x581a45=_0x561a71?_0x1b3e47(0x21d):_0x1b3e47(0x222);_0x37bd97?_0x37bd97[_0x1b3e47(0x1f0)](_0x59893e=>{const _0x572a9f=_0x1b3e47,_0x2d1e5c=this[_0x572a9f(0x1e7)][_0x581a45],_0x4dfc2f=_0x2d1e5c[_0x572a9f(0x1ee)](({index:_0x360e3b})=>_0x360e3b===_0x59893e[_0x572a9f(0x218)]);if(_0x4dfc2f){const _0x21d6b3=_0x2d1e5c[_0x572a9f(0x21b)](_0x4dfc2f);_0x2d1e5c[_0x572a9f(0x1f2)](_0x21d6b3,0x1,_0x59893e);}else _0x2d1e5c[_0x572a9f(0x212)](_0x59893e);}):this[_0x1b3e47(0x1e7)][_0x581a45][_0x1b3e47(0x22f)]=0x0;}[_0x49d78a(0x211)](){const _0x19ed5d=_0x49d78a;if(_0x19ed5d(0x221)===this[_0x19ed5d(0x21f)]){this[_0x19ed5d(0x217)]=this[_0x19ed5d(0x235)][_0x19ed5d(0x1ff)](this[_0x19ed5d(0x1ec)]);const _0x3878fe=this[_0x19ed5d(0x22b)];this[_0x19ed5d(0x20d)]();const _0x473951=this[_0x19ed5d(0x204)](_0x3878fe,this[_0x19ed5d(0x22b)]);(_0x473951[_0x19ed5d(0x22f)]||this[_0x19ed5d(0x228)])&&(this[_0x19ed5d(0x1fd)](_0x19ed5d(0x220),this,_0x473951),this[_0x19ed5d(0x1e7)][_0x19ed5d(0x21d)][_0x19ed5d(0x22f)]=this[_0x19ed5d(0x1e7)][_0x19ed5d(0x222)][_0x19ed5d(0x22f)]=0x0);}else this[_0x19ed5d(0x217)]=this[_0x19ed5d(0x235)][_0x19ed5d(0x205)](this[_0x19ed5d(0x1ec)]),this[_0x19ed5d(0x1fd)](_0x19ed5d(0x220),this);}[_0x49d78a(0x204)](_0x5b4a50,_0x415311){const _0x52d323=_0x49d78a,_0x30d8a3=[];for(const _0x1b4377 of _0x415311){const _0x5536d1=_0x5b4a50[_0x1b4377[_0x52d323(0x218)]];_0x5536d1?_0x5536d1[_0x52d323(0x226)][_0x52d323(0x22f)]!==_0x1b4377[_0x52d323(0x226)][_0x52d323(0x22f)]?_0x30d8a3[_0x52d323(0x212)](_0x1b4377):_0x5536d1[_0x52d323(0x226)][_0x52d323(0x1f0)]((_0xf73e55,_0x46cdc4)=>{const _0x1e3170=_0x52d323,_0x3b1b01=_0x1b4377[_0x1e3170(0x226)][_0x46cdc4];_0xf73e55['id']!==_0x3b1b01['id']&&_0x30d8a3[_0x1e3170(0x212)](_0x1b4377);}):_0x30d8a3[_0x52d323(0x212)](_0x1b4377);}return _0x30d8a3;}[_0x49d78a(0x20d)](){const _0x3f6d62=_0x49d78a,_0x516e4c=new _0x395757('p',{},[new _0x395757(_0x3f6d62(0x21a),{'style':_0x3f6d62(0x22e)},[new _0x2b474c(_0x3f3c72(this[_0x3f6d62(0x219)][_0x3f6d62(0x1e8)],_0x3f6d62(0x1f5)))])]),_0x25db5a=this[_0x3f6d62(0x233)][_0x3f6d62(0x1f6)](this[_0x3f6d62(0x217)],this[_0x3f6d62(0x209)][_0x3f6d62(0x206)](!0x0),{'markUnstableElements':!this[_0x3f6d62(0x228)],'replaceRemovedWith':_0x516e4c,'cutAfterLastChange':!this[_0x3f6d62(0x228)]});if(!_0x25db5a[_0x3f6d62(0x216)][_0x3f6d62(0x22f)]&&!this[_0x3f6d62(0x228)])return;this[_0x3f6d62(0x215)]=_0x25db5a[_0x3f6d62(0x217)];let _0x19658c=[];if(_0xdc7c2e(_0x63b07a=>{const _0x37ba10=_0x3f6d62,_0x5e00bb=_0x58664d(_0x63b07a,_0x37ba10(0x1fe));if(!_0x5e00bb||!_0x51f5fd(_0x5e00bb))return!0x1;const _0x240410=[_0x63b07a,..._0x585239(_0x63b07a)]['at'](-0x2);if(_0x63b07a!=_0x240410){const _0x5eabc4=_0x58664d(_0x240410,_0x37ba10(0x1fe));_0x51f5fd(_0x5eabc4)||(_0x19658c[_0x37ba10(0x212)]({'node':_0x240410,'id':_0x5eabc4,'type':_0x37ba10(0x230)}),_0x25db5a[_0x37ba10(0x216)][_0x37ba10(0x212)](_0x5eabc4));}else _0x25db5a[_0x37ba10(0x216)][_0x37ba10(0x1fa)](_0x5e00bb)?_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x230),'id':_0x5e00bb}):_0x25db5a[_0x37ba10(0x214)][_0x37ba10(0x1fa)](_0x5e00bb)?_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x207),'id':_0x5e00bb,'anchorId':_0x58664d(_0x63b07a[_0x37ba10(0x1f8)],_0x37ba10(0x1fe))}):_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x201),'id':_0x5e00bb});return!0x0;},this[_0x3f6d62(0x215)]),_0x19658c=_0x19658c[_0x3f6d62(0x232)](({node:_0x29c9f4})=>[..._0x585239(_0x29c9f4),_0x29c9f4][_0x3f6d62(0x22c)](_0x3a7fcd=>!_0x58664d(_0x3a7fcd,_0x3f6d62(0x21c)))),0x0==_0x19658c[_0x3f6d62(0x22f)])return;const _0x32f43a=[[_0x19658c[0x0]]];for(let _0xa21acf=0x1;_0xa21acf<_0x19658c[_0x3f6d62(0x22f)];_0xa21acf++){const _0x129611=_0x32f43a[_0x32f43a[_0x3f6d62(0x22f)]-0x1],_0x32ef8a=_0x129611[_0x129611[_0x3f6d62(0x22f)]-0x1];_0x19658c[_0xa21acf][_0x3f6d62(0x231)][_0x3f6d62(0x1f8)]==_0x32ef8a[_0x3f6d62(0x231)]&&_0x3f6d62(0x230)!=_0x19658c[_0xa21acf][_0x3f6d62(0x21f)]&&_0x3f6d62(0x230)!=_0x32ef8a[_0x3f6d62(0x21f)]?_0x129611[_0x3f6d62(0x212)](_0x19658c[_0xa21acf]):_0x32f43a[_0x3f6d62(0x212)]([_0x19658c[_0xa21acf]]);}for(const _0x515fba of _0x32f43a){const _0x1203fe=_0x515fba[0x0],_0x21ef57=_0x515fba[_0x515fba[_0x3f6d62(0x22f)]-0x1],_0x3ecf96=_0x104373(_0x1203fe[_0x3f6d62(0x231)][_0x3f6d62(0x1f8)]);_0x3ecf96&&_0x515fba[_0x3f6d62(0x20b)](_0x3ecf96);const _0x3f7661=_0x104373(_0x21ef57[_0x3f6d62(0x231)][_0x3f6d62(0x1ed)]);_0x3f7661&&_0x515fba[_0x3f6d62(0x212)](_0x3f7661);}function _0x51f5fd(_0x486158){const _0x2c8c0a=_0x3f6d62;return _0x25db5a[_0x2c8c0a(0x216)][_0x2c8c0a(0x1fa)](_0x486158)||_0x25db5a[_0x2c8c0a(0x214)][_0x2c8c0a(0x1fa)](_0x486158)||_0x25db5a[_0x2c8c0a(0x1f1)][_0x2c8c0a(0x1fa)](_0x486158);}function _0x104373(_0x53ba17){const _0x2b4f4e=_0x3f6d62;if(_0x53ba17&&_0x58664d(_0x53ba17,_0x2b4f4e(0x1fe))&&!_0x58664d(_0x53ba17,_0x2b4f4e(0x21c))){const _0x423d19=_0x58664d(_0x53ba17,_0x2b4f4e(0x1fe));if(!_0x51f5fd(_0x423d19))return{'node':_0x53ba17,'type':_0x2b4f4e(0x1f3),'id':_0x423d19};}return null;}this[_0x3f6d62(0x22b)]=_0x32f43a[_0x3f6d62(0x20a)]((_0x40856d,_0xb9db14)=>({'changes':_0x40856d,'state':_0x3f6d62(0x202),'index':_0xb9db14}));}}function _0x3d2c(){const _0xdf018e=['removedNodeIds','splice','context','change:content','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','7544JCtVfa','previousSibling','1925YcvhZC','includes','replyChangeGroupStateUpdated','ai-get-editor-from-context-no-editor','fire','data-id','parseAndNormalizeHTML','set','removed','pending','691299DAwtiB','_getDifferentChangeGroups','convertMarkdownToHTML','cloneNode','new','1497672YZmApR','documentContextContent','map','unshift','areActionsDisabled','updateChangeGroups','_setCachedContentParts','done','interactionId','onContentChange','push','48CPMFZF','newNodeIds','parsedMergedContent','modifiedNodeIds','parsedContent','index','editor','span','indexOf','data-unstable','withDiff','70jyipys','type','replyContentUpdated','modification','withoutDiff','ai-reply-get-content-parts-group-not-found','1267017cOBpEh','1170702KDrnAe','changes','_getCachedContentParts','isDone','getContentParts','stopListening','changeGroups','every','destroy','color:\x20#808080;\x20font-style:\x20italic','length','modified','node','filter','aiResponseApplier','1cfhsnm','aiResponseParser','setChangeGroupState','115725nXcQfE','cachedSuggestionContentParts','locale','4945369Hnrnuj','sources','state','content','nextSibling','find','appendContent','forEach'];_0x3d2c=function(){return _0xdf018e;};return _0x3d2c();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c84(){const _0x1e465e=['childNodes','modifiedIds','_existingDataIds','_isNewNode','cutAfterLastChange','slice','_storeDeletedElementIds','_replaceNode','afterend','beforebegin','lastTouchedId','removedIds','_removeSpecialComments','_isExistingContentComment','_getUid','_markLastTagElementUnstable','_findReferenceNode','trim','nodeType','has','parentNode','_hasWrappedParent','4618215vQCcAm','7195914dbHmdc','true','cloneNode','6387460GuCSGV','replaceRemovedWith','filter','_getNodeDataId','map','afterbegin','587229OLhUGc','_findNextElementWithDataId','markUnstableElements','splice','20LkYxwJ','1021568lCxtvS','11HpsfAP','data-wrapped-id','_isExistingNode','6926082DXdkMw','length','markUnstableElementsDepth','merge','_findPrevElementWithDataId','_touchedNodesState','invalidIds','push','_markWrappedElements','reverse','data-id','data-unstable','lastChild','_markUnstableElements','previousSibling','indexOf','_isDelNode','_insertNodes','nextSibling','forEach','new-element','571240bbzJys','match','2zTJrnt','7yEnqHH','_generateUid','data-removed','from','newIds','_findFallbackReferenceNode','includes'];_0x2c84=function(){return _0x1e465e;};return _0x2c84();}const _0x67440e=_0x5215;(function(_0x4267c3,_0xa1c268){const _0x4c6eaa=_0x5215,_0x5b3154=_0x4267c3();while(!![]){try{const _0x3ce4fb=-parseInt(_0x4c6eaa(0xbf))/0x1*(-parseInt(_0x4c6eaa(0xda))/0x2)+parseInt(_0x4c6eaa(0xba))/0x3*(parseInt(_0x4c6eaa(0xbe))/0x4)+-parseInt(_0x4c6eaa(0xb0))/0x5+parseInt(_0x4c6eaa(0xc3))/0x6+-parseInt(_0x4c6eaa(0xdb))/0x7*(parseInt(_0x4c6eaa(0xd8))/0x8)+-parseInt(_0x4c6eaa(0xb1))/0x9+parseInt(_0x4c6eaa(0xb4))/0xa*(-parseInt(_0x4c6eaa(0xc0))/0xb);if(_0x3ce4fb===_0xa1c268)break;else _0x5b3154['push'](_0x5b3154['shift']());}catch(_0x24aa7a){_0x5b3154['push'](_0x5b3154['shift']());}}}(_0x2c84,0xb018a));import{ObservableMixin as _0x2e0c57,uid as _0x7608e4}from'ckeditor5/src/utils.js';function _0x5215(_0x3c1aaa,_0x4f4997){const _0x2c845f=_0x2c84();return _0x5215=function(_0x5215da,_0x2725d8){_0x5215da=_0x5215da-0xa6;let _0x444f0f=_0x2c845f[_0x5215da];return _0x444f0f;},_0x5215(_0x3c1aaa,_0x4f4997);}import{findAllByAttribute as _0x586f40,findByAttribute as _0x161020,getAttribute as _0x698170,isComment as _0x363848,isTag as _0x20d53d,insertElement as _0x33f485,moveElement as _0x148f84,removeElement as _0x55e6db,replaceElement as _0x2bd8e0,serialize as _0x25e902,setAttribute as _0x4ed74e,clone as _0x47f1b3,findAllComments as _0x149bfe,getParents as _0x2d98cf,getNodeNestingLevel as _0x55f7f1,areNodesSame as _0x2b2bc5,removeElementsAfter as _0x52267d}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2e0c57(){[_0x67440e(0xdc)];[_0x67440e(0xc8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x67440e(0xe4)]=new Set();constructor(_0x4fb2af){const _0xa775ea=_0x67440e;super(),this[_0xa775ea(0xdc)]=_0x4fb2af||_0x7608e4;}[_0x67440e(0xc6)](_0xbd9def,_0x533e14,_0x11108e){const _0x48ad85=_0x67440e,_0x2afa18=_0x47f1b3(_0xbd9def);if(0x0===_0x533e14[_0x48ad85(0xe2)][_0x48ad85(0xc4)]){const _0x2ca5ae=[];return _0x586f40(_0x48ad85(0xcd),_0x48ad85(0xd7),_0x2afa18)[_0x48ad85(0xd6)](_0xeed175=>{const _0x3593d=_0x48ad85,_0x52a158=this[_0x3593d(0xdc)]();_0x4ed74e(_0xeed175,_0x3593d(0xcd),_0x52a158),_0x2ca5ae[_0x3593d(0xca)](_0x52a158);}),this[_0x48ad85(0xa6)](_0x2afa18),{'parsedContent':_0x2afa18,'newNodeIds':_0x2ca5ae,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x11108e&&_0x11108e[_0x48ad85(0xbc)]&&this[_0x48ad85(0xa9)](_0x2afa18),this[_0x48ad85(0xc8)][_0x48ad85(0xdf)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xe3)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xed)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xc9)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xec)]=null,this[_0x48ad85(0xe4)]=new Set(_0x586f40(_0x48ad85(0xcd),null,_0x533e14)[_0x48ad85(0xb8)](_0x1a25f3=>_0x698170(_0x1a25f3,_0x48ad85(0xcd)))[_0x48ad85(0xb6)](_0x5f5a4d=>!!_0x5f5a4d));let _0xb9d135=-0x1,_0x2e59be=!0x1;const _0x3bd698=_0x2afa18[_0x48ad85(0xe2)],_0x3d1267=Array[_0x48ad85(0xde)](_0x3bd698)[_0x48ad85(0xb6)](_0x3dd941=>!(0x3===_0x3dd941[_0x48ad85(0xac)]&&''===_0x25e902(_0x3dd941)[_0x48ad85(0xab)]())),_0x5756f3=_0x3d1267[_0x48ad85(0xc4)];for(let _0x5e2ec7=0x0;_0x5e2ec7<_0x5756f3;_0x5e2ec7++){const _0x32812f=_0x3d1267[_0x5e2ec7],_0x30a9e7=_0x3d1267[_0x5e2ec7+0x1];if(this[_0x48ad85(0xe5)](_0x32812f)){if(-0x1===_0xb9d135&&(_0xb9d135=_0x5e2ec7),this[_0x48ad85(0xcb)](_0x32812f),!this[_0x48ad85(0xe5)](_0x30a9e7)){const [_0x28e41c,_0x226d3a]=this[_0x48ad85(0xaa)](_0x32812f,_0x2e59be,_0x533e14);if(_0x28e41c){const _0x987640=Array[_0x48ad85(0xde)](_0x3d1267)[_0x48ad85(0xe7)](_0xb9d135,_0x5e2ec7+0x1);this[_0x48ad85(0xd4)](_0x28e41c,_0x987640,_0x226d3a),_0xb9d135=-0x1;}}}else{if(this[_0x48ad85(0xa7)](_0x32812f))_0x2e59be=!0x0;else{if(this[_0x48ad85(0xc2)](_0x32812f)){const _0x4d2de9=_0x698170(_0x32812f,_0x48ad85(0xcd));if(_0x4d2de9&&this[_0x48ad85(0xe4)][_0x48ad85(0xad)](_0x4d2de9)){const _0x1f34e7=_0x161020(_0x48ad85(0xcd),_0x4d2de9,_0x533e14);this[_0x48ad85(0xe9)](_0x1f34e7,_0x32812f);}if(this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xe1)](_0x4d2de9)){const _0x31349a=this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xd2)](_0x4d2de9);this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xbd)](_0x31349a,0x1);}}else{if(this[_0x48ad85(0xd3)](_0x32812f)){const _0x348971=_0x698170(_0x32812f,_0x48ad85(0xcd));this[_0x48ad85(0xc8)][_0x48ad85(0xe3)][_0x48ad85(0xe1)](_0x348971)||this[_0x48ad85(0xe8)](_0x32812f);}}}}}for(const _0x582e96 of this[_0x48ad85(0xc8)][_0x48ad85(0xed)]){const _0x4bc134=_0x161020(_0x48ad85(0xcd),_0x582e96,_0x533e14);if(_0x4bc134){if(_0x11108e&&_0x11108e[_0x48ad85(0xb5)]){this[_0x48ad85(0xc8)][_0x48ad85(0xec)]=_0x582e96;const _0x46a4b9=_0x11108e[_0x48ad85(0xb5)][_0x48ad85(0xb3)](!0x0);_0x4ed74e(_0x46a4b9,_0x48ad85(0xcd),_0x582e96),_0x4ed74e(_0x46a4b9,_0x48ad85(0xdd),_0x48ad85(0xb2)),_0x2bd8e0(_0x4bc134,_0x46a4b9);}else _0x55e6db(_0x4bc134);}}if(_0x586f40(_0x48ad85(0xc1),null,_0x533e14)[_0x48ad85(0xd6)](_0x772298=>{const _0x4eb212=_0x48ad85,_0x4de0d0=_0x698170(_0x772298,_0x4eb212(0xc1)),_0x4bdff7=_0x161020(_0x4eb212(0xcd),_0x4de0d0,_0x533e14);_0x4bdff7&&_0x148f84(_0x4bdff7,_0x772298);}),_0x586f40(_0x48ad85(0xcd),_0x48ad85(0xd7),_0x533e14)[_0x48ad85(0xd6)](_0x4e467e=>{const _0x22d455=_0x48ad85,_0x40187a=this[_0x22d455(0xa8)](_0x4e467e);_0x4ed74e(_0x4e467e,_0x22d455(0xcd),_0x40187a),this[_0x22d455(0xc8)][_0x22d455(0xdf)][_0x22d455(0xca)](_0x40187a);}),this[_0x48ad85(0xa6)](_0x533e14),_0x11108e&&_0x11108e[_0x48ad85(0xbc)]&&this[_0x48ad85(0xd0)](_0x533e14,_0x11108e[_0x48ad85(0xc5)]||0x0),_0x11108e&&_0x11108e[_0x48ad85(0xe6)]&&this[_0x48ad85(0xc8)][_0x48ad85(0xec)]){let _0x1c19c9=_0x161020(_0x48ad85(0xcd),this[_0x48ad85(0xc8)][_0x48ad85(0xec)],_0x533e14);for(;_0x1c19c9;)_0x52267d(_0x1c19c9),_0x1c19c9=_0x1c19c9[_0x48ad85(0xae)];}return{'parsedContent':_0x533e14,'newNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xdf)],'modifiedNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xe3)],'removedNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xed)]};}[_0x67440e(0xd4)](_0x13bb3c,_0xdf2d6e,_0x2e440b){const _0x260b97=_0x67440e;for(const _0x77e1be of _0xdf2d6e){const _0x36735f=this[_0x260b97(0xa8)](_0x77e1be);_0x4ed74e(_0x77e1be,_0x260b97(0xcd),_0x36735f),this[_0x260b97(0xc8)][_0x260b97(0xdf)][_0x260b97(0xca)](_0x36735f),this[_0x260b97(0xc8)][_0x260b97(0xec)]=_0x36735f;}const _0x2a4c15=_0x260b97(0xb9)===_0x2e440b||_0x260b97(0xea)===_0x2e440b?_0xdf2d6e[_0x260b97(0xcc)]():_0xdf2d6e;for(const _0x48cb93 of _0x2a4c15)_0x33f485(_0x13bb3c,_0x48cb93,_0x2e440b);}[_0x67440e(0xe9)](_0x45cc07,_0x23c296){const _0x3208c1=_0x67440e;if(!_0x45cc07)return;if(_0x2b2bc5(_0x45cc07,_0x23c296))return;const _0x511cea=this[_0x3208c1(0xa8)](_0x45cc07);_0x4ed74e(_0x23c296,_0x3208c1(0xcd),_0x511cea),this[_0x3208c1(0xc8)][_0x3208c1(0xe3)][_0x3208c1(0xca)](_0x511cea),this[_0x3208c1(0xc8)][_0x3208c1(0xec)]=_0x511cea,_0x2bd8e0(_0x45cc07,_0x23c296[_0x3208c1(0xb3)](!0x0));}[_0x67440e(0xaa)](_0x276f84,_0x58bb5d,_0x4ec472){const _0x33c718=_0x67440e,_0x2dda6c=this[_0x33c718(0xc7)](_0x276f84,!0x1);if(_0x2dda6c){const _0x1fa8fc=this[_0x33c718(0xb7)](_0x2dda6c),_0x133167=_0x161020(_0x33c718(0xcd),_0x1fa8fc,_0x4ec472);if(_0x133167)return[_0x133167,_0x33c718(0xea)];this[_0x33c718(0xc8)][_0x33c718(0xc9)][_0x33c718(0xca)](_0x1fa8fc);}const _0x58b043=this[_0x33c718(0xbb)](_0x276f84,!0x1);if(_0x58b043){const _0xa6d1ea=this[_0x33c718(0xb7)](_0x58b043),_0x3cd8b8=_0x161020(_0x33c718(0xcd),_0xa6d1ea,_0x4ec472);if(_0x3cd8b8)return[_0x3cd8b8,_0x33c718(0xeb)];this[_0x33c718(0xc8)][_0x33c718(0xc9)][_0x33c718(0xca)](_0xa6d1ea);}return _0x58bb5d?_0x276f84[_0x33c718(0xd5)]?this[_0x33c718(0xe0)](_0x276f84,_0x4ec472):[_0x4ec472[_0x33c718(0xe2)][_0x4ec472[_0x33c718(0xe2)][_0x33c718(0xc4)]-0x1],_0x33c718(0xea)]:[_0x4ec472[_0x33c718(0xe2)][0x0],_0x33c718(0xeb)];}[_0x67440e(0xe0)](_0x5684b4,_0xbf37c6){const _0x58dadd=_0x67440e,_0x31ab58=[],_0x1ee4a3=this[_0x58dadd(0xc7)](_0x5684b4,!0x0);if(_0x1ee4a3){const _0x14311d=this[_0x58dadd(0xb7)](_0x1ee4a3),_0x3fd385=_0x161020(_0x58dadd(0xcd),_0x14311d,_0xbf37c6);_0x3fd385&&_0x31ab58[_0x58dadd(0xca)]([_0x3fd385,_0x58dadd(0xea)]);}const _0x1e596e=this[_0x58dadd(0xbb)](_0x5684b4,!0x0);if(_0x1e596e){const _0x4e6627=this[_0x58dadd(0xb7)](_0x1e596e),_0x190e48=_0x161020(_0x58dadd(0xcd),_0x4e6627,_0xbf37c6);_0x190e48&&_0x31ab58[_0x58dadd(0xca)]([_0x190e48,_0x58dadd(0xeb)]);}if(_0x31ab58[_0x58dadd(0xc4)]>0x1)return _0x55f7f1(_0x31ab58[0x0][0x0])<=_0x55f7f1(_0x31ab58[0x1][0x0])?_0x31ab58[0x0]:_0x31ab58[0x1];return 0x1===_0x31ab58[_0x58dadd(0xc4)]?_0x31ab58[0x0]:[_0xbf37c6[_0x58dadd(0xcf)],_0x58dadd(0xea)];}[_0x67440e(0xbb)](_0x14e7f7,_0x465499){const _0x5d59a5=_0x67440e;let _0x4342fa=_0x14e7f7[_0x5d59a5(0xd5)],_0x44099a=null,_0x15549b=!0x1;for(;_0x4342fa;){if(_0x363848(_0x4342fa)){if(this[_0x5d59a5(0xd3)](_0x4342fa)&&(_0x44099a=_0x4342fa),this[_0x5d59a5(0xa7)](_0x4342fa)&&_0x465499&&!_0x15549b){_0x15549b=!0x0,_0x4342fa=_0x4342fa[_0x5d59a5(0xd5)];continue;}break;}const _0x2ab650=_0x698170(_0x4342fa,_0x5d59a5(0xcd));if(_0x2ab650&&_0x5d59a5(0xd7)!==_0x2ab650&&this[_0x5d59a5(0xe4)][_0x5d59a5(0xad)](_0x2ab650)){_0x44099a=_0x4342fa;break;}_0x4342fa=_0x4342fa[_0x5d59a5(0xd5)];}return _0x44099a;}[_0x67440e(0xc7)](_0x4a96b0,_0x2b71f8){const _0x262d3b=_0x67440e;let _0x1a0192=_0x4a96b0[_0x262d3b(0xd1)],_0x12a774=null,_0x5a6b77=!0x1;for(;_0x1a0192;){if(_0x363848(_0x1a0192)){if(this[_0x262d3b(0xd3)](_0x1a0192)&&(_0x12a774=_0x1a0192),this[_0x262d3b(0xa7)](_0x1a0192)&&_0x2b71f8&&!_0x5a6b77){_0x5a6b77=!0x0,_0x1a0192=_0x1a0192[_0x262d3b(0xd1)];continue;}break;}const _0x5e65d4=_0x698170(_0x1a0192,_0x262d3b(0xcd));if(_0x5e65d4&&_0x262d3b(0xd7)!==_0x5e65d4&&this[_0x262d3b(0xe4)][_0x262d3b(0xad)](_0x5e65d4)){_0x12a774=_0x1a0192;break;}_0x1a0192=_0x1a0192[_0x262d3b(0xd1)];}return _0x12a774;}[_0x67440e(0xcb)](_0x3159e5){const _0x5562d6=_0x67440e;_0x20d53d(_0x3159e5)&&_0x586f40(_0x5562d6(0xcd),null,_0x3159e5)[_0x5562d6(0xd6)](_0x355479=>{const _0x233de3=_0x5562d6;if(this[_0x233de3(0xc2)](_0x355479)&&!this[_0x233de3(0xaf)](_0x355479)){const _0xd413d8=_0x698170(_0x355479,_0x233de3(0xcd));_0x4ed74e(_0x355479,_0x233de3(0xc1),_0xd413d8),_0x4ed74e(_0x355479,_0x233de3(0xcd),null);}});}[_0x67440e(0xb7)](_0x3fdc45){const _0x298125=_0x67440e;if(!_0x3fdc45)return null;if(_0x20d53d(_0x3fdc45))return _0x698170(_0x3fdc45,_0x298125(0xcd));if(_0x363848(_0x3fdc45)){const _0x1cf555=_0x25e902(_0x3fdc45)[_0x298125(0xd9)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cf555&&_0x1cf555[0x1])return _0x1cf555[0x1];}return null;}[_0x67440e(0xe8)](_0x165316){const _0x3cd6c4=_0x67440e;if(_0x363848(_0x165316)){const _0x96dbdb=_0x25e902(_0x165316)[_0x3cd6c4(0xd9)](/removed[\s*-]data-id="([^"]+)"/);_0x96dbdb&&_0x96dbdb[0x1]&&this[_0x3cd6c4(0xc8)][_0x3cd6c4(0xed)][_0x3cd6c4(0xca)](_0x96dbdb[0x1]);}}[_0x67440e(0xa8)](_0x1552e5){const _0x39c6f2=_0x67440e;return this[_0x39c6f2(0xc2)](_0x1552e5)?_0x698170(_0x1552e5,_0x39c6f2(0xcd)):this[_0x39c6f2(0xdc)]();}[_0x67440e(0xa6)](_0x13e1f1){const _0xd06b5d=_0x67440e;_0x149bfe(_0x13e1f1)[_0xd06b5d(0xb6)](_0x348e58=>this[_0xd06b5d(0xd3)](_0x348e58)||this[_0xd06b5d(0xa7)](_0x348e58))[_0xd06b5d(0xd6)](_0x46d106=>{_0x55e6db(_0x46d106);});}[_0x67440e(0xa9)](_0x1eee64){const _0x38fddc=_0x67440e,_0x146414=_0x1eee64[_0x38fddc(0xe2)],_0x1cb88a=_0x146414[_0x146414[_0x38fddc(0xc4)]-0x1];_0x1cb88a&&_0x20d53d(_0x1cb88a)&&_0x4ed74e(_0x1cb88a,_0x38fddc(0xce),_0x38fddc(0xb2));}[_0x67440e(0xd0)](_0x20eb41,_0x652d61){const _0x5b341f=_0x67440e,_0x53bd9b=_0x161020(_0x5b341f(0xce),_0x5b341f(0xb2),_0x20eb41);if(!_0x53bd9b)return;const _0x59c2df=_0x2d98cf(_0x53bd9b)[_0x5b341f(0xe7)](0x0,-0x1),_0x1469f0=_0x59c2df[_0x5b341f(0xc4)];let _0xe7e4c3=_0x53bd9b;if(_0x1469f0>_0x652d61){let _0x1ecefb=_0x1469f0,_0x459d71=null;for(;_0x1ecefb>_0x652d61&&_0x1ecefb>=0x0;)_0x1ecefb--,_0x459d71=_0x59c2df[_0x1ecefb];_0x459d71&&(_0xe7e4c3=_0x459d71,_0x4ed74e(_0x53bd9b,_0x5b341f(0xce),null),_0x4ed74e(_0x459d71,_0x5b341f(0xce),_0x5b341f(0xb2)));}else{if(_0x1469f0<_0x652d61){let _0x32a333=_0x1469f0,_0x196e15=_0x53bd9b;for(;_0x32a333<_0x652d61;){const _0x5843a1=_0x196e15[_0x5b341f(0xe2)][_0x5b341f(0xb6)](_0x45fadc=>_0x20d53d(_0x45fadc));if(0x0===_0x5843a1[_0x5b341f(0xc4)])break;_0x32a333++,_0x196e15=_0x5843a1[_0x5843a1[_0x5b341f(0xc4)]-0x1];}_0x196e15&&(_0xe7e4c3=_0x196e15,_0x4ed74e(_0x53bd9b,_0x5b341f(0xce),null),_0x4ed74e(_0x196e15,_0x5b341f(0xce),_0x5b341f(0xb2)));}}let _0x423df7=_0xe7e4c3;for(;_0x423df7;){for(;_0x423df7[_0x5b341f(0xd5)];)_0x423df7=_0x423df7[_0x5b341f(0xd5)],_0x20d53d(_0x423df7)&&_0x4ed74e(_0x423df7,_0x5b341f(0xce),_0x5b341f(0xb2));_0x423df7=_0x423df7[_0x5b341f(0xae)];}}[_0x67440e(0xe5)](_0x539761){const _0x23674d=_0x67440e;return Boolean(_0x23674d(0xd7)===_0x698170(_0x539761,_0x23674d(0xcd)));}[_0x67440e(0xc2)](_0x404190){const _0x54b14e=_0x67440e;return Boolean((_0x698170(_0x404190,_0x54b14e(0xcd))||'')[_0x54b14e(0xc4)]>0x0&&_0x54b14e(0xd7)!==_0x698170(_0x404190,_0x54b14e(0xcd)));}[_0x67440e(0xd3)](_0x23466b){const _0x13a1b8=_0x67440e;return!!_0x23466b&&Boolean(_0x363848(_0x23466b)&&_0x25e902(_0x23466b)[_0x13a1b8(0xd9)](/removed[\s*-]data-id="[^"]+"/));}[_0x67440e(0xaf)](_0x1de3da){const _0x43821b=_0x67440e;let _0x5b5c60=_0x1de3da[_0x43821b(0xae)];for(;_0x5b5c60;){if(_0x698170(_0x5b5c60,_0x43821b(0xc1)))return!0x0;_0x5b5c60=_0x5b5c60[_0x43821b(0xae)];}return!0x1;}[_0x67440e(0xa7)](_0x40cab8){const _0x5672a7=_0x67440e;return Boolean(_0x363848(_0x40cab8)&&_0x25e902(_0x40cab8)[_0x5672a7(0xd9)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x468679=_0x3e1a;(function(_0x3caaa6,_0x348c0e){const _0xeaf564=_0x3e1a,_0x2aa2e4=_0x3caaa6();while(!![]){try{const _0x1c0a4b=parseInt(_0xeaf564(0x18d))/0x1*(-parseInt(_0xeaf564(0x190))/0x2)+-parseInt(_0xeaf564(0x182))/0x3*(parseInt(_0xeaf564(0x16c))/0x4)+-parseInt(_0xeaf564(0x165))/0x5+-parseInt(_0xeaf564(0x198))/0x6*(parseInt(_0xeaf564(0x193))/0x7)+parseInt(_0xeaf564(0x187))/0x8*(parseInt(_0xeaf564(0x1a1))/0x9)+-parseInt(_0xeaf564(0x16d))/0xa*(-parseInt(_0xeaf564(0x174))/0xb)+parseInt(_0xeaf564(0x1a5))/0xc;if(_0x1c0a4b===_0x348c0e)break;else _0x2aa2e4['push'](_0x2aa2e4['shift']());}catch(_0x3e0bf3){_0x2aa2e4['push'](_0x2aa2e4['shift']());}}}(_0x426a,0x4ab22));import{ObservableMixin as _0x5725ae,uid as _0x271636}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x26f8a2,findByAttribute as _0x33fe5f,getAttribute as _0x243bd5,isComment as _0x233bfa,isTag as _0x3cc076,insertElement as _0x200756,moveElement as _0x1525b7,removeElement as _0x84d80,replaceElement as _0x4308eb,serialize as _0x5dfc74,setAttribute as _0x2631a3,clone as _0x8b103a,findAllComments as _0x1d41d2,getParents as _0x2aa3c5,getNodeNestingLevel as _0x10fb6f,areNodesSame as _0x46a661,removeElementsAfter as _0x369e90}from'../utils/htmlparser.js';function _0x3e1a(_0xa4152,_0x1e3a7d){const _0x426a99=_0x426a();return _0x3e1a=function(_0x3e1a0f,_0x1f8b25){_0x3e1a0f=_0x3e1a0f-0x162;let _0x4f9abc=_0x426a99[_0x3e1a0f];return _0x4f9abc;},_0x3e1a(_0xa4152,_0x1e3a7d);}function _0x426a(){const _0x168230=['83677TWfblF','data-removed','_replaceNode','nodeType','_findNextElementWithDataId','markUnstableElementsDepth','forEach','_findReferenceNode','modifiedIds','match','newIds','_isExistingContentComment','_touchedNodesState','_generateUid','3kHAQKN','_markLastTagElementUnstable','childNodes','true','merge','208WNHEEO','slice','includes','_insertNodes','afterbegin','cloneNode','1jvYTGi','push','lastTouchedId','1146094fHUhmB','previousSibling','_isExistingNode','468433oNfAmh','removedIds','map','_removeSpecialComments','nextSibling','36PYWyur','afterend','splice','_existingDataIds','_isDelNode','_markUnstableElements','_getUid','lastChild','from','74547QRcMKZ','reverse','invalidIds','_getNodeDataId','14281068GbVCLX','filter','has','_hasWrappedParent','markUnstableElements','new-element','beforebegin','_findFallbackReferenceNode','_isNewNode','2964985onvldn','_markWrappedElements','replaceRemovedWith','cutAfterLastChange','_storeDeletedElementIds','data-id','data-unstable','409840mHWXuo','750JmmThB','data-wrapped-id','parentNode','_findPrevElementWithDataId','indexOf','trim','length'];_0x426a=function(){return _0x168230;};return _0x426a();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5725ae(){[_0x468679(0x181)];[_0x468679(0x180)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x468679(0x19b)]=new Set();constructor(_0x431d55){const _0xe593de=_0x468679;super(),this[_0xe593de(0x181)]=_0x431d55||_0x271636;}[_0x468679(0x186)](_0x53206b,_0x2b31dd,_0x5863c5){const _0x3c8e88=_0x468679,_0x39024a=_0x8b103a(_0x53206b);if(0x0===_0x2b31dd[_0x3c8e88(0x184)][_0x3c8e88(0x173)]){const _0x1b87df=[];return _0x26f8a2(_0x3c8e88(0x16a),_0x3c8e88(0x1aa),_0x39024a)[_0x3c8e88(0x17a)](_0x1eaa0f=>{const _0x340e96=_0x3c8e88,_0x405322=this[_0x340e96(0x181)]();_0x2631a3(_0x1eaa0f,_0x340e96(0x16a),_0x405322),_0x1b87df[_0x340e96(0x18e)](_0x405322);}),this[_0x3c8e88(0x196)](_0x39024a),{'parsedContent':_0x39024a,'newNodeIds':_0x1b87df,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5863c5&&_0x5863c5[_0x3c8e88(0x1a9)]&&this[_0x3c8e88(0x183)](_0x39024a),this[_0x3c8e88(0x180)][_0x3c8e88(0x17e)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x1a3)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]=null,this[_0x3c8e88(0x19b)]=new Set(_0x26f8a2(_0x3c8e88(0x16a),null,_0x2b31dd)[_0x3c8e88(0x195)](_0x48e04e=>_0x243bd5(_0x48e04e,_0x3c8e88(0x16a)))[_0x3c8e88(0x1a6)](_0x4556a7=>!!_0x4556a7));let _0x516b05=-0x1,_0x2adf9e=!0x1;const _0x318afa=_0x39024a[_0x3c8e88(0x184)],_0x105836=Array[_0x3c8e88(0x1a0)](_0x318afa)[_0x3c8e88(0x1a6)](_0x1f1ab3=>!(0x3===_0x1f1ab3[_0x3c8e88(0x177)]&&''===_0x5dfc74(_0x1f1ab3)[_0x3c8e88(0x172)]())),_0x14b1e0=_0x105836[_0x3c8e88(0x173)];for(let _0x5da99b=0x0;_0x5da99b<_0x14b1e0;_0x5da99b++){const _0x12667a=_0x105836[_0x5da99b],_0x33dfc0=_0x105836[_0x5da99b+0x1];if(this[_0x3c8e88(0x164)](_0x12667a)){if(-0x1===_0x516b05&&(_0x516b05=_0x5da99b),this[_0x3c8e88(0x166)](_0x12667a),!this[_0x3c8e88(0x164)](_0x33dfc0)){const [_0x1ff2a1,_0x47be30]=this[_0x3c8e88(0x17b)](_0x12667a,_0x2adf9e,_0x2b31dd);if(_0x1ff2a1){const _0x413d6f=Array[_0x3c8e88(0x1a0)](_0x105836)[_0x3c8e88(0x188)](_0x516b05,_0x5da99b+0x1);this[_0x3c8e88(0x18a)](_0x1ff2a1,_0x413d6f,_0x47be30),_0x516b05=-0x1;}}}else{if(this[_0x3c8e88(0x17f)](_0x12667a))_0x2adf9e=!0x0;else{if(this[_0x3c8e88(0x192)](_0x12667a)){const _0x146548=_0x243bd5(_0x12667a,_0x3c8e88(0x16a));if(_0x146548&&this[_0x3c8e88(0x19b)][_0x3c8e88(0x1a7)](_0x146548)){const _0x9c5a1a=_0x33fe5f(_0x3c8e88(0x16a),_0x146548,_0x2b31dd);this[_0x3c8e88(0x176)](_0x9c5a1a,_0x12667a);}if(this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x189)](_0x146548)){const _0x566c8a=this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x171)](_0x146548);this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x19a)](_0x566c8a,0x1);}}else{if(this[_0x3c8e88(0x19c)](_0x12667a)){const _0x34cdb3=_0x243bd5(_0x12667a,_0x3c8e88(0x16a));this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)][_0x3c8e88(0x189)](_0x34cdb3)||this[_0x3c8e88(0x169)](_0x12667a);}}}}}for(const _0x5a4846 of this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]){const _0x94ad43=_0x33fe5f(_0x3c8e88(0x16a),_0x5a4846,_0x2b31dd);if(_0x94ad43){if(_0x5863c5&&_0x5863c5[_0x3c8e88(0x167)]){this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]=_0x5a4846;const _0x1a8118=_0x5863c5[_0x3c8e88(0x167)][_0x3c8e88(0x18c)](!0x0);_0x2631a3(_0x1a8118,_0x3c8e88(0x16a),_0x5a4846),_0x2631a3(_0x1a8118,_0x3c8e88(0x175),_0x3c8e88(0x185)),_0x4308eb(_0x94ad43,_0x1a8118);}else _0x84d80(_0x94ad43);}}if(_0x26f8a2(_0x3c8e88(0x16e),null,_0x2b31dd)[_0x3c8e88(0x17a)](_0x405d2e=>{const _0x5f214e=_0x3c8e88,_0x5018c0=_0x243bd5(_0x405d2e,_0x5f214e(0x16e)),_0x195437=_0x33fe5f(_0x5f214e(0x16a),_0x5018c0,_0x2b31dd);_0x195437&&_0x1525b7(_0x195437,_0x405d2e);}),_0x26f8a2(_0x3c8e88(0x16a),_0x3c8e88(0x1aa),_0x2b31dd)[_0x3c8e88(0x17a)](_0x242b4b=>{const _0x4a2cf4=_0x3c8e88,_0x5c212b=this[_0x4a2cf4(0x19e)](_0x242b4b);_0x2631a3(_0x242b4b,_0x4a2cf4(0x16a),_0x5c212b),this[_0x4a2cf4(0x180)][_0x4a2cf4(0x17e)][_0x4a2cf4(0x18e)](_0x5c212b);}),this[_0x3c8e88(0x196)](_0x2b31dd),_0x5863c5&&_0x5863c5[_0x3c8e88(0x1a9)]&&this[_0x3c8e88(0x19d)](_0x2b31dd,_0x5863c5[_0x3c8e88(0x179)]||0x0),_0x5863c5&&_0x5863c5[_0x3c8e88(0x168)]&&this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]){let _0x3a26a4=_0x33fe5f(_0x3c8e88(0x16a),this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)],_0x2b31dd);for(;_0x3a26a4;)_0x369e90(_0x3a26a4),_0x3a26a4=_0x3a26a4[_0x3c8e88(0x16f)];}return{'parsedContent':_0x2b31dd,'newNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x17e)],'modifiedNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)],'removedNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]};}[_0x468679(0x18a)](_0x47daa7,_0x3dd88e,_0x5aebe8){const _0x2236e6=_0x468679;for(const _0x110cbd of _0x3dd88e){const _0x537f4c=this[_0x2236e6(0x19e)](_0x110cbd);_0x2631a3(_0x110cbd,_0x2236e6(0x16a),_0x537f4c),this[_0x2236e6(0x180)][_0x2236e6(0x17e)][_0x2236e6(0x18e)](_0x537f4c),this[_0x2236e6(0x180)][_0x2236e6(0x18f)]=_0x537f4c;}const _0x5b387c=_0x2236e6(0x18b)===_0x5aebe8||_0x2236e6(0x199)===_0x5aebe8?_0x3dd88e[_0x2236e6(0x1a2)]():_0x3dd88e;for(const _0x4d48c0 of _0x5b387c)_0x200756(_0x47daa7,_0x4d48c0,_0x5aebe8);}[_0x468679(0x176)](_0x3750be,_0x1e307e){const _0x31a6ea=_0x468679;if(!_0x3750be)return;if(_0x46a661(_0x3750be,_0x1e307e))return;const _0x19d19c=this[_0x31a6ea(0x19e)](_0x3750be);_0x2631a3(_0x1e307e,_0x31a6ea(0x16a),_0x19d19c),this[_0x31a6ea(0x180)][_0x31a6ea(0x17c)][_0x31a6ea(0x18e)](_0x19d19c),this[_0x31a6ea(0x180)][_0x31a6ea(0x18f)]=_0x19d19c,_0x4308eb(_0x3750be,_0x1e307e[_0x31a6ea(0x18c)](!0x0));}[_0x468679(0x17b)](_0xa9bcfd,_0x1516e6,_0x269efc){const _0x2863f1=_0x468679,_0x586375=this[_0x2863f1(0x170)](_0xa9bcfd,!0x1);if(_0x586375){const _0x4dba36=this[_0x2863f1(0x1a4)](_0x586375),_0x5557c2=_0x33fe5f(_0x2863f1(0x16a),_0x4dba36,_0x269efc);if(_0x5557c2)return[_0x5557c2,_0x2863f1(0x199)];this[_0x2863f1(0x180)][_0x2863f1(0x1a3)][_0x2863f1(0x18e)](_0x4dba36);}const _0x465132=this[_0x2863f1(0x178)](_0xa9bcfd,!0x1);if(_0x465132){const _0x275e76=this[_0x2863f1(0x1a4)](_0x465132),_0x22fd20=_0x33fe5f(_0x2863f1(0x16a),_0x275e76,_0x269efc);if(_0x22fd20)return[_0x22fd20,_0x2863f1(0x162)];this[_0x2863f1(0x180)][_0x2863f1(0x1a3)][_0x2863f1(0x18e)](_0x275e76);}return _0x1516e6?_0xa9bcfd[_0x2863f1(0x197)]?this[_0x2863f1(0x163)](_0xa9bcfd,_0x269efc):[_0x269efc[_0x2863f1(0x184)][_0x269efc[_0x2863f1(0x184)][_0x2863f1(0x173)]-0x1],_0x2863f1(0x199)]:[_0x269efc[_0x2863f1(0x184)][0x0],_0x2863f1(0x162)];}[_0x468679(0x163)](_0x429416,_0x542cc7){const _0x177d3b=_0x468679,_0x48ed71=[],_0x30c8fc=this[_0x177d3b(0x170)](_0x429416,!0x0);if(_0x30c8fc){const _0xb49498=this[_0x177d3b(0x1a4)](_0x30c8fc),_0x2329bc=_0x33fe5f(_0x177d3b(0x16a),_0xb49498,_0x542cc7);_0x2329bc&&_0x48ed71[_0x177d3b(0x18e)]([_0x2329bc,_0x177d3b(0x199)]);}const _0x1858c5=this[_0x177d3b(0x178)](_0x429416,!0x0);if(_0x1858c5){const _0x193e71=this[_0x177d3b(0x1a4)](_0x1858c5),_0x5b528c=_0x33fe5f(_0x177d3b(0x16a),_0x193e71,_0x542cc7);_0x5b528c&&_0x48ed71[_0x177d3b(0x18e)]([_0x5b528c,_0x177d3b(0x162)]);}if(_0x48ed71[_0x177d3b(0x173)]>0x1)return _0x10fb6f(_0x48ed71[0x0][0x0])<=_0x10fb6f(_0x48ed71[0x1][0x0])?_0x48ed71[0x0]:_0x48ed71[0x1];return 0x1===_0x48ed71[_0x177d3b(0x173)]?_0x48ed71[0x0]:[_0x542cc7[_0x177d3b(0x19f)],_0x177d3b(0x199)];}[_0x468679(0x178)](_0x235bc6,_0x4d6fb9){const _0x945a03=_0x468679;let _0x34e57c=_0x235bc6[_0x945a03(0x197)],_0x13b63d=null,_0x55c17f=!0x1;for(;_0x34e57c;){if(_0x233bfa(_0x34e57c)){if(this[_0x945a03(0x19c)](_0x34e57c)&&(_0x13b63d=_0x34e57c),this[_0x945a03(0x17f)](_0x34e57c)&&_0x4d6fb9&&!_0x55c17f){_0x55c17f=!0x0,_0x34e57c=_0x34e57c[_0x945a03(0x197)];continue;}break;}const _0x262c5c=_0x243bd5(_0x34e57c,_0x945a03(0x16a));if(_0x262c5c&&_0x945a03(0x1aa)!==_0x262c5c&&this[_0x945a03(0x19b)][_0x945a03(0x1a7)](_0x262c5c)){_0x13b63d=_0x34e57c;break;}_0x34e57c=_0x34e57c[_0x945a03(0x197)];}return _0x13b63d;}[_0x468679(0x170)](_0x143bee,_0x123308){const _0x16be05=_0x468679;let _0x57fcb0=_0x143bee[_0x16be05(0x191)],_0x3f55f6=null,_0x23d143=!0x1;for(;_0x57fcb0;){if(_0x233bfa(_0x57fcb0)){if(this[_0x16be05(0x19c)](_0x57fcb0)&&(_0x3f55f6=_0x57fcb0),this[_0x16be05(0x17f)](_0x57fcb0)&&_0x123308&&!_0x23d143){_0x23d143=!0x0,_0x57fcb0=_0x57fcb0[_0x16be05(0x191)];continue;}break;}const _0x58d65c=_0x243bd5(_0x57fcb0,_0x16be05(0x16a));if(_0x58d65c&&_0x16be05(0x1aa)!==_0x58d65c&&this[_0x16be05(0x19b)][_0x16be05(0x1a7)](_0x58d65c)){_0x3f55f6=_0x57fcb0;break;}_0x57fcb0=_0x57fcb0[_0x16be05(0x191)];}return _0x3f55f6;}[_0x468679(0x166)](_0x433fea){const _0x12c480=_0x468679;_0x3cc076(_0x433fea)&&_0x26f8a2(_0x12c480(0x16a),null,_0x433fea)[_0x12c480(0x17a)](_0x113e37=>{const _0x3d87fc=_0x12c480;if(this[_0x3d87fc(0x192)](_0x113e37)&&!this[_0x3d87fc(0x1a8)](_0x113e37)){const _0x4f9c46=_0x243bd5(_0x113e37,_0x3d87fc(0x16a));_0x2631a3(_0x113e37,_0x3d87fc(0x16e),_0x4f9c46),_0x2631a3(_0x113e37,_0x3d87fc(0x16a),null);}});}[_0x468679(0x1a4)](_0x579537){const _0x53c41=_0x468679;if(!_0x579537)return null;if(_0x3cc076(_0x579537))return _0x243bd5(_0x579537,_0x53c41(0x16a));if(_0x233bfa(_0x579537)){const _0x412d24=_0x5dfc74(_0x579537)[_0x53c41(0x17d)](/removed[\s*-]data-id="([^"]+)"/);if(_0x412d24&&_0x412d24[0x1])return _0x412d24[0x1];}return null;}[_0x468679(0x169)](_0x4a273c){const _0x3a12fe=_0x468679;if(_0x233bfa(_0x4a273c)){const _0x390ce7=_0x5dfc74(_0x4a273c)[_0x3a12fe(0x17d)](/removed[\s*-]data-id="([^"]+)"/);_0x390ce7&&_0x390ce7[0x1]&&this[_0x3a12fe(0x180)][_0x3a12fe(0x194)][_0x3a12fe(0x18e)](_0x390ce7[0x1]);}}[_0x468679(0x19e)](_0x4a7ed7){const _0xaf3e0f=_0x468679;return this[_0xaf3e0f(0x192)](_0x4a7ed7)?_0x243bd5(_0x4a7ed7,_0xaf3e0f(0x16a)):this[_0xaf3e0f(0x181)]();}[_0x468679(0x196)](_0x5cd801){const _0x594160=_0x468679;_0x1d41d2(_0x5cd801)[_0x594160(0x1a6)](_0x1ddf42=>this[_0x594160(0x19c)](_0x1ddf42)||this[_0x594160(0x17f)](_0x1ddf42))[_0x594160(0x17a)](_0x5728cc=>{_0x84d80(_0x5728cc);});}[_0x468679(0x183)](_0x181ed4){const _0x2d2cf4=_0x468679,_0x10553b=_0x181ed4[_0x2d2cf4(0x184)],_0x4984aa=_0x10553b[_0x10553b[_0x2d2cf4(0x173)]-0x1];_0x4984aa&&_0x3cc076(_0x4984aa)&&_0x2631a3(_0x4984aa,_0x2d2cf4(0x16b),_0x2d2cf4(0x185));}[_0x468679(0x19d)](_0x19d7d0,_0x5942de){const _0x46bf2a=_0x468679,_0x1fc691=_0x33fe5f(_0x46bf2a(0x16b),_0x46bf2a(0x185),_0x19d7d0);if(!_0x1fc691)return;const _0x14c95b=_0x2aa3c5(_0x1fc691)[_0x46bf2a(0x188)](0x0,-0x1),_0x8f3288=_0x14c95b[_0x46bf2a(0x173)];let _0x22082b=_0x1fc691;if(_0x8f3288>_0x5942de){let _0x46b4b8=_0x8f3288,_0x2786ef=null;for(;_0x46b4b8>_0x5942de&&_0x46b4b8>=0x0;)_0x46b4b8--,_0x2786ef=_0x14c95b[_0x46b4b8];_0x2786ef&&(_0x22082b=_0x2786ef,_0x2631a3(_0x1fc691,_0x46bf2a(0x16b),null),_0x2631a3(_0x2786ef,_0x46bf2a(0x16b),_0x46bf2a(0x185)));}else{if(_0x8f3288<_0x5942de){let _0x4dafdd=_0x8f3288,_0x121a18=_0x1fc691;for(;_0x4dafdd<_0x5942de;){const _0x384102=_0x121a18[_0x46bf2a(0x184)][_0x46bf2a(0x1a6)](_0x552d2f=>_0x3cc076(_0x552d2f));if(0x0===_0x384102[_0x46bf2a(0x173)])break;_0x4dafdd++,_0x121a18=_0x384102[_0x384102[_0x46bf2a(0x173)]-0x1];}_0x121a18&&(_0x22082b=_0x121a18,_0x2631a3(_0x1fc691,_0x46bf2a(0x16b),null),_0x2631a3(_0x121a18,_0x46bf2a(0x16b),_0x46bf2a(0x185)));}}let _0x5c0f13=_0x22082b;for(;_0x5c0f13;){for(;_0x5c0f13[_0x46bf2a(0x197)];)_0x5c0f13=_0x5c0f13[_0x46bf2a(0x197)],_0x3cc076(_0x5c0f13)&&_0x2631a3(_0x5c0f13,_0x46bf2a(0x16b),_0x46bf2a(0x185));_0x5c0f13=_0x5c0f13[_0x46bf2a(0x16f)];}}[_0x468679(0x164)](_0x2d2bb6){const _0x300d15=_0x468679;return Boolean(_0x300d15(0x1aa)===_0x243bd5(_0x2d2bb6,_0x300d15(0x16a)));}[_0x468679(0x192)](_0x197cf4){const _0xee665d=_0x468679;return Boolean((_0x243bd5(_0x197cf4,_0xee665d(0x16a))||'')[_0xee665d(0x173)]>0x0&&_0xee665d(0x1aa)!==_0x243bd5(_0x197cf4,_0xee665d(0x16a)));}[_0x468679(0x19c)](_0x1b0fac){const _0x5916ee=_0x468679;return!!_0x1b0fac&&Boolean(_0x233bfa(_0x1b0fac)&&_0x5dfc74(_0x1b0fac)[_0x5916ee(0x17d)](/removed[\s*-]data-id="[^"]+"/));}[_0x468679(0x1a8)](_0x22230f){const _0x79912f=_0x468679;let _0x142acd=_0x22230f[_0x79912f(0x16f)];for(;_0x142acd;){if(_0x243bd5(_0x142acd,_0x79912f(0x16e)))return!0x0;_0x142acd=_0x142acd[_0x79912f(0x16f)];}return!0x1;}[_0x468679(0x17f)](_0x18198){const _0x23385d=_0x468679;return Boolean(_0x233bfa(_0x18198)&&_0x5dfc74(_0x18198)[_0x23385d(0x17d)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f732c=_0x4e37;(function(_0x5ae3b9,_0x3e822b){const _0x3e60fe=_0x4e37,_0x50af3e=_0x5ae3b9();while(!![]){try{const _0x37a5de=-parseInt(_0x3e60fe(0x1e4))/0x1*(-parseInt(_0x3e60fe(0x1ed))/0x2)+-parseInt(_0x3e60fe(0x1ec))/0x3+parseInt(_0x3e60fe(0x1e5))/0x4+-parseInt(_0x3e60fe(0x1ee))/0x5+-parseInt(_0x3e60fe(0x1e0))/0x6+-parseInt(_0x3e60fe(0x1e1))/0x7+parseInt(_0x3e60fe(0x1e6))/0x8;if(_0x37a5de===_0x3e822b)break;else _0x50af3e['push'](_0x50af3e['shift']());}catch(_0x57e1d1){_0x50af3e['push'](_0x50af3e['shift']());}}}(_0x1508,0xdd38f));import{ObservableMixin as _0x589cf7}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x118ef1}from'@ckeditor/ckeditor5-markdown-gfm';function _0x1508(){const _0x562e4f=['2724120BphTXR','parse','parseAndNormalizeHTML','1306901ftvYHp','4527124PyocqQ','14269952HcvnxL','_parseHTML','</dummy>','convertMarkdownToHTML','<dummy>','children','3442743nSGXoj','2jnGGGR','2727940jDxinv','_m2html','replace','7403820jjtLkG'];_0x1508=function(){return _0x562e4f;};return _0x1508();}function _0x4e37(_0x21872b,_0x8347f4){const _0x150885=_0x1508();return _0x4e37=function(_0x4e370f,_0x238932){_0x4e370f=_0x4e370f-0x1de;let _0xef7543=_0x150885[_0x4e370f];return _0xef7543;},_0x4e37(_0x21872b,_0x8347f4);}import{parse as _0x3110f9}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x589cf7(){[_0x4f732c(0x1de)];constructor(){const _0x15aee6=_0x4f732c;super(),this[_0x15aee6(0x1de)]=new _0x118ef1();}[_0x4f732c(0x1e9)](_0x159e25){const _0x1fc466=_0x4f732c,_0x49ba39=this[_0x1fc466(0x1de)][_0x1fc466(0x1e2)](_0x159e25);return this[_0x1fc466(0x1e3)](_0x49ba39);}[_0x4f732c(0x1e3)](_0x2fb3cc){const _0x1f6589=_0x4f732c;return this[_0x1f6589(0x1e7)](_0x2fb3cc);}[_0x4f732c(0x1e7)](_0x58bdf5){const _0x24d8d8=_0x4f732c,_0x2b7824=_0x58bdf5[_0x24d8d8(0x1df)](/^\t+/gm,'\x20')[_0x24d8d8(0x1df)](/\n*/g,'')[_0x24d8d8(0x1df)](/\s+/g,'\x20')[_0x24d8d8(0x1df)](/<[^>]*?$/g,''),_0x1ae4cb=_0x3110f9(_0x24d8d8(0x1ea)+_0x2b7824+_0x24d8d8(0x1e8));return _0x1ae4cb[_0x24d8d8(0x1eb)]=_0x1ae4cb[_0x24d8d8(0x1eb)][0x0][_0x24d8d8(0x1eb)],_0x1ae4cb;}}
23
+ const _0x1f043c=_0x33da;(function(_0x5a1564,_0x463c35){const _0x30ad22=_0x33da,_0xee15a7=_0x5a1564();while(!![]){try{const _0x4c3694=parseInt(_0x30ad22(0x197))/0x1+parseInt(_0x30ad22(0x194))/0x2*(parseInt(_0x30ad22(0x191))/0x3)+parseInt(_0x30ad22(0x189))/0x4+parseInt(_0x30ad22(0x188))/0x5+parseInt(_0x30ad22(0x198))/0x6*(parseInt(_0x30ad22(0x196))/0x7)+parseInt(_0x30ad22(0x195))/0x8+-parseInt(_0x30ad22(0x18b))/0x9;if(_0x4c3694===_0x463c35)break;else _0xee15a7['push'](_0xee15a7['shift']());}catch(_0x57b579){_0xee15a7['push'](_0xee15a7['shift']());}}}(_0x2840,0xe052d));import{ObservableMixin as _0x491117}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x35dd7b}from'@ckeditor/ckeditor5-markdown-gfm';function _0x33da(_0x33424f,_0xade393){const _0x284035=_0x2840();return _0x33da=function(_0x33da0b,_0xb32d54){_0x33da0b=_0x33da0b-0x187;let _0x31aa1e=_0x284035[_0x33da0b];return _0x31aa1e;},_0x33da(_0x33424f,_0xade393);}function _0x2840(){const _0x2d06d7=['replace','children','_m2html','12PVLBXK','convertMarkdownToHTML','<dummy>','836392rNUxDg','543400hcUqBS','35tUqARG','334397ZTZmxT','245046qBTVMn','</dummy>','13990jexOPE','7135604WAAYXN','parse','28324629GVirbt','_parseHTML','parseAndNormalizeHTML'];_0x2840=function(){return _0x2d06d7;};return _0x2840();}import{parse as _0x18e79e}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x491117(){[_0x1f043c(0x190)];constructor(){const _0x355bae=_0x1f043c;super(),this[_0x355bae(0x190)]=new _0x35dd7b();}[_0x1f043c(0x192)](_0x2d0c54){const _0x826968=_0x1f043c,_0x277264=this[_0x826968(0x190)][_0x826968(0x18a)](_0x2d0c54);return this[_0x826968(0x18d)](_0x277264);}[_0x1f043c(0x18d)](_0x719dc6){const _0x50449d=_0x1f043c;return this[_0x50449d(0x18c)](_0x719dc6);}[_0x1f043c(0x18c)](_0x4ef7a3){const _0x50c0bb=_0x1f043c,_0x5033f8=_0x4ef7a3[_0x50c0bb(0x18e)](/^\t+/gm,'\x20')[_0x50c0bb(0x18e)](/\n*/g,'')[_0x50c0bb(0x18e)](/\s+/g,'\x20')[_0x50c0bb(0x18e)](/<[^>]*?$/g,''),_0x30b171=_0x18e79e(_0x50c0bb(0x193)+_0x5033f8+_0x50c0bb(0x187));return _0x30b171[_0x50c0bb(0x18f)]=_0x30b171[_0x50c0bb(0x18f)][0x0][_0x50c0bb(0x18f)],_0x30b171;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x33b7(_0x34d495,_0x5d87fd){var _0x46d6cf=_0x46d6();return _0x33b7=function(_0x33b790,_0xb655cc){_0x33b790=_0x33b790-0x135;var _0x5b2c97=_0x46d6cf[_0x33b790];return _0x5b2c97;},_0x33b7(_0x34d495,_0x5d87fd);}(function(_0x1546d3,_0x27d7d0){var _0x33f916=_0x33b7,_0x2d4036=_0x1546d3();while(!![]){try{var _0x411d02=-parseInt(_0x33f916(0x13c))/0x1*(parseInt(_0x33f916(0x13e))/0x2)+-parseInt(_0x33f916(0x142))/0x3+-parseInt(_0x33f916(0x136))/0x4+parseInt(_0x33f916(0x144))/0x5*(-parseInt(_0x33f916(0x140))/0x6)+-parseInt(_0x33f916(0x138))/0x7*(parseInt(_0x33f916(0x137))/0x8)+-parseInt(_0x33f916(0x13a))/0x9*(parseInt(_0x33f916(0x139))/0xa)+parseInt(_0x33f916(0x135))/0xb;if(_0x411d02===_0x27d7d0)break;else _0x2d4036['push'](_0x2d4036['shift']());}catch(_0x1cfccd){_0x2d4036['push'](_0x2d4036['shift']());}}}(_0x46d6,0xda509));import{View as _0x3d12a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x4a1935}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x3d12a9{constructor(_0x4bf76d){var _0x2153b9=_0x33b7;super(_0x4bf76d),this[_0x2153b9(0x141)]({'tag':_0x2153b9(0x13d),'attributes':{'class':['ck',_0x2153b9(0x13b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2153b9(0x143)]},'children':[{'text':_0x4a1935(_0x4bf76d,_0x2153b9(0x13f))}]}]});}}function _0x46d6(){var _0x13021e=['2079460DWZeMx','72xaFwlH','ck-ai-disclaimer','163KyNVgA','div','2390zMYePK','AI_DISCLAIMER_TEXT','3062346DAcgcE','setTemplate','2225145pLZRJe','ck-ai-disclaimer__content','5SNTLyn','71399394Kmgigg','3227760FmQwUj','13433904RUtFrR','7SvkaVB'];_0x46d6=function(){return _0x13021e;};return _0x46d6();}
23
+ (function(_0x1206b0,_0x47d1f9){var _0x5dc840=_0x34a0,_0x2c24bb=_0x1206b0();while(!![]){try{var _0xd34a41=parseInt(_0x5dc840(0x153))/0x1+parseInt(_0x5dc840(0x160))/0x2*(-parseInt(_0x5dc840(0x159))/0x3)+-parseInt(_0x5dc840(0x156))/0x4+-parseInt(_0x5dc840(0x154))/0x5+-parseInt(_0x5dc840(0x15b))/0x6*(-parseInt(_0x5dc840(0x155))/0x7)+parseInt(_0x5dc840(0x15f))/0x8*(parseInt(_0x5dc840(0x15c))/0x9)+-parseInt(_0x5dc840(0x152))/0xa*(parseInt(_0x5dc840(0x15d))/0xb);if(_0xd34a41===_0x47d1f9)break;else _0x2c24bb['push'](_0x2c24bb['shift']());}catch(_0x8baf97){_0x2c24bb['push'](_0x2c24bb['shift']());}}}(_0x4ff8,0x65e29));function _0x34a0(_0x505c90,_0x3a848f){var _0x4ff85a=_0x4ff8();return _0x34a0=function(_0x34a033,_0x3abf4a){_0x34a033=_0x34a033-0x151;var _0x2af90a=_0x4ff85a[_0x34a033];return _0x2af90a;},_0x34a0(_0x505c90,_0x3a848f);}import{View as _0x3722ca}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bdd28}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x3722ca{constructor(_0x15d586){var _0xdf5d8a=_0x34a0;super(_0x15d586),this[_0xdf5d8a(0x158)]({'tag':_0xdf5d8a(0x157),'attributes':{'class':['ck',_0xdf5d8a(0x151)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xdf5d8a(0x15e)]},'children':[{'text':_0x5bdd28(_0x15d586,_0xdf5d8a(0x15a))}]}]});}}function _0x4ff8(){var _0x41fb76=['22vuWgqO','ck-ai-disclaimer__content','36472HgKtvA','14QHAYFY','ck-ai-disclaimer','2184530kylIVy','795620fXKgSz','455500fhgktw','2066113ruXxbW','1479836WFuNkx','div','setTemplate','49818QRZDas','AI_DISCLAIMER_TEXT','12rrEarb','90ijkPZn'];_0x4ff8=function(){return _0x41fb76;};return _0x4ff8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4f28(_0x2f49e1,_0x35efb5){const _0x304104=_0x3041();return _0x4f28=function(_0x4f288c,_0x5431b0){_0x4f288c=_0x4f288c-0x75;let _0x257408=_0x304104[_0x4f288c];return _0x257408;},_0x4f28(_0x2f49e1,_0x35efb5);}const _0x204c26=_0x4f28;function _0x3041(){const _0x36331b=['8dwcGdH','setTemplate','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','93VScyzO','width:\x20','88px','7090260dqJJHb','28258CQEYjP','1631176JOLHtH','140px',';\x20height:\x20','14WrwquI','tag','66bqCaXH','150px','align','left','10XuGyeZ','ck-ai-skeleton__item','72px','width','_createSkeletonItems','24px','map','right','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','center','779841YicUje','fill','4196484fzuUCn','ck-ai-skeleton','44px','class','div','attributes','22vtbBdr','2120261OZSjmk','40px','70YakAmd','168115pogDSq','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','100%','250px'];_0x3041=function(){return _0x36331b;};return _0x3041();}(function(_0x57a923,_0x1c8fb4){const _0x388856=_0x4f28,_0x3257a8=_0x57a923();while(!![]){try{const _0xde2e34=parseInt(_0x388856(0x76))/0x1*(-parseInt(_0x388856(0x7a))/0x2)+parseInt(_0x388856(0x90))/0x3*(parseInt(_0x388856(0xa0))/0x4)+parseInt(_0x388856(0x9c))/0x5*(parseInt(_0x388856(0x80))/0x6)+parseInt(_0x388856(0x7e))/0x7*(-parseInt(_0x388856(0x7b))/0x8)+parseInt(_0x388856(0x92))/0x9*(-parseInt(_0x388856(0x84))/0xa)+parseInt(_0x388856(0x98))/0xb*(parseInt(_0x388856(0x79))/0xc)+parseInt(_0x388856(0x99))/0xd*(parseInt(_0x388856(0x9b))/0xe);if(_0xde2e34===_0x1c8fb4)break;else _0x3257a8['push'](_0x3257a8['shift']());}catch(_0x41986a){_0x3257a8['push'](_0x3257a8['shift']());}}}(_0x3041,0xaa9fb));import{View as _0x233391}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x233391{constructor(_0x361a57,_0x319350){const _0x2efd22=_0x4f28;super(_0x361a57),this[_0x2efd22(0xa1)]({'tag':_0x2efd22(0x96),'attributes':{'class':['ck',_0x2efd22(0x93)]},'children':this[_0x2efd22(0x88)](_0x319350)});}[_0x204c26(0x88)](_0x1cf543){const _0x505115=_0x204c26,_0x17feca=['ck',_0x505115(0x85)];return _0x1cf543[_0x505115(0x8a)](_0x1049ce=>{const _0x32bd2d=_0x505115;let _0x32d692='';switch(_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x82)]){case _0x32bd2d(0x8b):_0x32d692=_0x32bd2d(0x75);break;case _0x32bd2d(0x8f):_0x32d692=_0x32bd2d(0x9d);break;case _0x32bd2d(0x83):_0x32d692=_0x32bd2d(0x8d);}return{'tag':_0x1049ce[_0x32bd2d(0x7f)],'attributes':{'class':[..._0x17feca,_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x95)]?_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x95)]:''],'style':_0x32bd2d(0x77)+_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x87)]+_0x32bd2d(0x7d)+_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x8e)]+';'+_0x32d692}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x86),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9f),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x78),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x81),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x7c),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9f),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x78),'align':_0x204c26(0x8b)}}],'aiHistory':ta(0x5,_0x204c26(0x9e),_0x204c26(0x94),_0x204c26(0x8b)),'aiChatResources':ta(0x8,_0x204c26(0x9e),_0x204c26(0x89),_0x204c26(0x8b)),'aiReviewChecks':[{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x8c),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x8c),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}}]};function ta(_0x2ea674,_0xbe1f52,_0x101ed3,_0x4a3b73){const _0x46b666=_0x204c26;return new Array(_0x2ea674)[_0x46b666(0x91)](null)[_0x46b666(0x8a)](()=>({'tag':_0x46b666(0x96),'attributes':{'width':_0xbe1f52,'height':_0x101ed3,'align':_0x4a3b73}}));}
23
+ function _0x1013(){const _0x4f65c8=['attributes','align','ck-ai-skeleton__item','right','tag','setTemplate','height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','width:\x20','fill','1178520VAGKGQ','100%',';\x20height:\x20','24px','594313eAxmsH','div','13923cvBomg','_createSkeletonItems','1713387jIlQcF','left','944zKurqg','128px','72px','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','center','width','map','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','250px','150px','1555440avcgrt','95TSlOYn','117788ZkZRDM','44px','88px','40px','2878281zcoZhO'];_0x1013=function(){return _0x4f65c8;};return _0x1013();}const _0x4beae0=_0x3efc;(function(_0x4c2088,_0x59feca){const _0x303de5=_0x3efc,_0x45f9d4=_0x4c2088();while(!![]){try{const _0x8a4185=-parseInt(_0x303de5(0x1d9))/0x1+parseInt(_0x303de5(0x1eb))/0x2+-parseInt(_0x303de5(0x1dd))/0x3+parseInt(_0x303de5(0x1ed))/0x4*(parseInt(_0x303de5(0x1ec))/0x5)+-parseInt(_0x303de5(0x1d5))/0x6+parseInt(_0x303de5(0x1f1))/0x7+parseInt(_0x303de5(0x1df))/0x8*(parseInt(_0x303de5(0x1db))/0x9);if(_0x8a4185===_0x59feca)break;else _0x45f9d4['push'](_0x45f9d4['shift']());}catch(_0x45454e){_0x45f9d4['push'](_0x45f9d4['shift']());}}}(_0x1013,0x8aef8));function _0x3efc(_0x334a51,_0x3df900){const _0x101360=_0x1013();return _0x3efc=function(_0x3efcfe,_0x2b716d){_0x3efcfe=_0x3efcfe-0x1ce;let _0x1cc1fa=_0x101360[_0x3efcfe];return _0x1cc1fa;},_0x3efc(_0x334a51,_0x3df900);}import{View as _0x246ae3}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x246ae3{constructor(_0x50b543,_0x4e7172){const _0x3df0e5=_0x3efc;super(_0x50b543),this[_0x3df0e5(0x1cf)]({'tag':_0x3df0e5(0x1da),'attributes':{'class':['ck',_0x3df0e5(0x1e2)]},'children':this[_0x3df0e5(0x1dc)](_0x4e7172)});}[_0x4beae0(0x1dc)](_0x116681){const _0x439fdb=_0x4beae0,_0x112dc6=['ck',_0x439fdb(0x1f4)];return _0x116681[_0x439fdb(0x1e6)](_0x395919=>{const _0x4810e6=_0x439fdb;let _0x545576='';switch(_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1f3)]){case _0x4810e6(0x1f5):_0x545576=_0x4810e6(0x1e3);break;case _0x4810e6(0x1e4):_0x545576=_0x4810e6(0x1e8);break;case _0x4810e6(0x1de):_0x545576=_0x4810e6(0x1d1);}return{'tag':_0x395919[_0x4810e6(0x1ce)],'attributes':{'class':[..._0x112dc6,_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]?_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]:''],'style':_0x4810e6(0x1d3)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e5)]+_0x4810e6(0x1d7)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1d0)]+';'+_0x545576}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1e1),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1ea),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d2),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}}],'aiHistory':ta(0x5,_0x4beae0(0x1d6),_0x4beae0(0x1ee),_0x4beae0(0x1f5)),'aiChatResources':ta(0x8,_0x4beae0(0x1d6),_0x4beae0(0x1d8),_0x4beae0(0x1f5)),'aiReviewChecks':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}}]};function ta(_0x332e08,_0x245b03,_0x43224b,_0x28fb0c){const _0x3c4d3e=_0x4beae0;return new Array(_0x332e08)[_0x3c4d3e(0x1d4)](null)[_0x3c4d3e(0x1e6)](()=>({'tag':_0x3c4d3e(0x1da),'attributes':{'width':_0x245b03,'height':_0x43224b,'align':_0x28fb0c}}));}