@ckeditor/ckeditor5-ai 47.6.0-alpha.8 → 47.6.0

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 _0x1a3333=_0x108b;(function(_0x4bb827,_0x5c7154){const _0x253968=_0x108b,_0x341938=_0x4bb827();while(!![]){try{const _0x2a97d1=-parseInt(_0x253968(0x1dd))/0x1*(parseInt(_0x253968(0x1a6))/0x2)+-parseInt(_0x253968(0x1e7))/0x3*(parseInt(_0x253968(0x1bf))/0x4)+parseInt(_0x253968(0x1d6))/0x5+-parseInt(_0x253968(0x1b0))/0x6*(parseInt(_0x253968(0x18e))/0x7)+parseInt(_0x253968(0x16e))/0x8*(-parseInt(_0x253968(0x1ea))/0x9)+parseInt(_0x253968(0x1d0))/0xa+parseInt(_0x253968(0x181))/0xb;if(_0x2a97d1===_0x5c7154)break;else _0x341938['push'](_0x341938['shift']());}catch(_0x96199){_0x341938['push'](_0x341938['shift']());}}}(_0x17df,0xb5f99));import{createParser as _0x2d11db}from'eventsource-parser';import{ContextPlugin as _0x12e43b}from'ckeditor5/src/core.js';function _0x108b(_0x32bb90,_0x2983b9){const _0x17dfad=_0x17df();return _0x108b=function(_0x108bc4,_0x3e3298){_0x108bc4=_0x108bc4-0x163;let _0x3c3c17=_0x17dfad[_0x108bc4];return _0x3c3c17;},_0x108b(_0x32bb90,_0x2983b9);}function _0x17df(){const _0x456a86=['desc','group','getModels','updateConversation','100','2104563BZjacQ','/conversations?','upsertAIReviewRating','20214ppVNJw','_apiUrl','/actions/custom/calls/','statusText','_decoder','PATCH','/actions/system/','make-shorter','AIConnector','false','totalCount','GET','translate','value','sortBy','toString','name','_handleError','status','uploadUrl','CONTINUE','/calls','push','positiveCount','uploadDocument','IMPROVE_WRITING','1672YYUCvn','signal','/documents/','TRANSLATE','message','ai-request-failed','config','get','isOfficialPlugin','https://ai.cke-cs.com/v1','fetchConversation','ai-missing-token','requires','getReader','upsertCustomAIReviewRating','token','pluginName','/conversations/','Bearer\x20','3731442wYfSDF','excludeEmpty','items','MAKE_TONE_CASUAL','/messages/','upsertCustomAIActionRating','AbortError','body','POST','upsertAIChatRating','Content-Type','reset','order','536221aroxVH','text','json','define','continue','make-longer','request','executeCustomAction','queryAssistant','/documents','true','upsertAIActionRating','plugins','make-tone-formal','callSystemReview','improve-writing','/messages','feed','catch','fetchConversationMessages','language','/reviews/custom/calls/','application/json','_sendApiRequest','410OZOMAk','executeAction','/ratings','fetchDocument','fix-grammar','createdAt','isPremiumPlugin','ai-request-aborted','/models/1?','modificationId','66USUASF','deleteFile','traceId','read','init','FIX_GRAMMAR','uploadFile','deleteConversation','code','limit','MAKE_TONE_FORMAL','data','CloudServices','_getStreamReader','/web-resources','4Fflfva','/calls/','make-tone-casual','/actions/custom/calls','fetchConversations','callCustomReview','/web-resources/','MAKE_SHORTER','append','startConversation','file','decode','stringify','ai.serviceUrl','/reviews/system/','length','DELETE','14310090YOhWaX','/files','parse','releaseLock','context','/files/','5168005IkMzDQ','PUT','deleteWebResource','attributes','abortController','/conversations','deleteDocument','219JENurf','then','MAKE_LONGER','_token','/reviews/custom/calls'];_0x17df=function(){return _0x456a86;};return _0x17df();}import{CKEditorError as _0xc292ef}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xcb04a4){const _0x4061f7=_0x108b;_0xcb04a4[_0x4061f7(0x168)]=_0x4061f7(0x192),_0xcb04a4[_0x4061f7(0x1b5)]=_0x4061f7(0x1aa),_0xcb04a4[_0x4061f7(0x16d)]=_0x4061f7(0x19d),_0xcb04a4[_0x4061f7(0x1df)]=_0x4061f7(0x193),_0xcb04a4[_0x4061f7(0x1c6)]=_0x4061f7(0x1f1),_0xcb04a4[_0x4061f7(0x184)]=_0x4061f7(0x1c1),_0xcb04a4[_0x4061f7(0x1ba)]=_0x4061f7(0x19b),_0xcb04a4[_0x4061f7(0x171)]=_0x4061f7(0x1f6);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x12e43b{[_0x1a3333(0x1eb)];[_0x1a3333(0x1e0)];[_0x1a3333(0x1ee)];static get[_0x1a3333(0x17a)](){const _0x492486=_0x1a3333;return[_0x492486(0x1bc)];}static get[_0x1a3333(0x17e)](){const _0x246a9d=_0x1a3333;return _0x246a9d(0x1f2);}static get[_0x1a3333(0x176)](){return!0x0;}static get[_0x1a3333(0x1ac)](){return!0x0;}constructor(_0x3629db){const _0x333eab=_0x1a3333;super(_0x3629db),this[_0x333eab(0x1d4)][_0x333eab(0x174)][_0x333eab(0x191)](_0x333eab(0x1cc),_0x333eab(0x177)),this[_0x333eab(0x1eb)]=this[_0x333eab(0x1d4)][_0x333eab(0x174)][_0x333eab(0x175)](_0x333eab(0x1cc)),this[_0x333eab(0x1e0)]=null,this[_0x333eab(0x1ee)]=new TextDecoder();}[_0x1a3333(0x1b4)](){const _0x2e1c3f=_0x1a3333,_0x4f3bb6=this[_0x2e1c3f(0x1d4)][_0x2e1c3f(0x19a)][_0x2e1c3f(0x175)](_0x2e1c3f(0x1bc));if(!_0x4f3bb6[_0x2e1c3f(0x17d)])throw new _0xc292ef(_0x2e1c3f(0x179),this);this[_0x2e1c3f(0x1e0)]=_0x4f3bb6[_0x2e1c3f(0x17d)];}[_0x1a3333(0x1c8)](_0x147d5e,_0x35ed54){const _0xf9868f=_0x1a3333,_0x3aa45a=this[_0xf9868f(0x1a5)](_0xf9868f(0x1db),_0xf9868f(0x189),{'id':_0x147d5e,'group':_0x35ed54});return{'getConversation':async()=>(await _0x3aa45a[_0xf9868f(0x194)])[_0xf9868f(0x190)](),'abortController':_0x3aa45a[_0xf9868f(0x1da)]};}[_0x1a3333(0x196)]({message:_0x34158e,conversationId:_0x269e04,parts:_0x292bcc,capabilities:_0x1e099e,model:_0x3c48c4,attributes:_0x15ce11}){const _0x1cc69d=_0x1a3333,_0x4cc8e5={'prompt':_0x34158e,'content':_0x292bcc,'model':_0x3c48c4,..._0x1e099e&&{'capabilities':_0x1e099e},..._0x15ce11&&{'attributes':_0x15ce11}},_0x13fd9c=this[_0x1cc69d(0x1a5)](_0x1cc69d(0x17f)+_0x269e04+_0x1cc69d(0x19e),_0x1cc69d(0x189),_0x4cc8e5);return{'getStream':async()=>{const _0x312eef=_0x1cc69d,_0x17ea5b=(await _0x13fd9c[_0x312eef(0x194)])[_0x312eef(0x188)];return this[_0x312eef(0x1bd)](_0x17ea5b);},'abortController':_0x13fd9c[_0x1cc69d(0x1da)]};}[_0x1a3333(0x195)]({content:_0x48bff5,message:_0x422b2b,model:_0x1d35b8,outputFormat:_0x3ffb46}){const _0x29f617=_0x1a3333,_0x320aae={'content':[{'type':_0x29f617(0x18f),'content':_0x48bff5}],'prompt':_0x422b2b,'model':_0x1d35b8,'outputFormat':_0x3ffb46},_0x14dd7c=this[_0x29f617(0x1a5)](_0x29f617(0x1c2),_0x29f617(0x189),_0x320aae);return{'getStream':async()=>{const _0x517106=_0x29f617,_0x1e1a8e=(await _0x14dd7c[_0x517106(0x194)])[_0x517106(0x188)];return this[_0x517106(0x1bd)](_0x1e1a8e);},'abortController':_0x14dd7c[_0x29f617(0x1da)]};}[_0x1a3333(0x1a7)]({actionName:_0x554d4e,content:_0x375872,args:_0x3de342}){const _0x360734=_0x1a3333,_0x211cd9={'content':[{'type':_0x360734(0x18f),'content':_0x375872}],'args':_0x3de342},_0x19cdda=this[_0x360734(0x1a5)](_0x360734(0x1f0)+_0x554d4e+_0x360734(0x169),_0x360734(0x189),_0x211cd9);return{'getStream':async()=>{const _0x652cf7=_0x360734,_0x3f08b9=(await _0x19cdda[_0x652cf7(0x194)])[_0x652cf7(0x188)];return this[_0x652cf7(0x1bd)](_0x3f08b9);},'abortController':_0x19cdda[_0x360734(0x1da)]};}[_0x1a3333(0x1b6)](_0x296826,_0x78ba4a,_0x1c0706){const _0x242ff3=_0x1a3333,_0x4bcdc0=new FormData();_0x4bcdc0[_0x242ff3(0x1c7)](_0x242ff3(0x1c9),_0x78ba4a,_0x78ba4a[_0x242ff3(0x164)]),_0x1c0706&&_0x4bcdc0[_0x242ff3(0x1c7)](_0x242ff3(0x1d9),JSON[_0x242ff3(0x1cb)](_0x1c0706));const _0x56ef36=this[_0x242ff3(0x1a5)](_0x242ff3(0x17f)+_0x296826+_0x242ff3(0x1d1),_0x242ff3(0x189),_0x4bcdc0);return{'getId':async()=>(await _0x56ef36[_0x242ff3(0x194)])[_0x242ff3(0x190)](),'abortController':_0x56ef36[_0x242ff3(0x1da)]};}[_0x1a3333(0x1a9)](_0x499b71,_0x46eb81){const _0x1e2e5e=_0x1a3333,_0x24bf1d=this[_0x1e2e5e(0x1a5)](_0x1e2e5e(0x17f)+_0x499b71+_0x1e2e5e(0x170)+_0x46eb81,_0x1e2e5e(0x1f5));return{'getDocument':async()=>(await _0x24bf1d[_0x1e2e5e(0x194)])[_0x1e2e5e(0x190)](),'abortController':_0x24bf1d[_0x1e2e5e(0x1da)]};}[_0x1a3333(0x16c)](_0x13f1ab,_0x4c20dc,_0x379dfe){const _0x168297=_0x1a3333,_0x52bfa9={'content':_0x4c20dc};_0x379dfe&&(_0x52bfa9[_0x168297(0x1d9)]=_0x379dfe);const _0x3b6f28=this[_0x168297(0x1a5)](_0x168297(0x17f)+_0x13f1ab+_0x168297(0x197),_0x168297(0x189),_0x52bfa9);return{'getId':async()=>(await _0x3b6f28[_0x168297(0x194)])[_0x168297(0x190)](),'abortController':_0x3b6f28[_0x168297(0x1da)]};}[_0x1a3333(0x1c3)](_0x15f9bf,_0x460614={}){const _0x213000=_0x1a3333,_0x3edfa8=new URLSearchParams();_0x3edfa8[_0x213000(0x1c7)](_0x213000(0x1e3),_0x15f9bf),_0x3edfa8[_0x213000(0x1c7)](_0x213000(0x182),!0x1!==_0x460614[_0x213000(0x182)]?_0x213000(0x198):_0x213000(0x1f3)),_0x3edfa8[_0x213000(0x1c7)](_0x213000(0x1b9),_0x460614[_0x213000(0x1b9)]?_0x460614[_0x213000(0x1b9)][_0x213000(0x163)]():_0x213000(0x1e6)),_0x3edfa8[_0x213000(0x1c7)](_0x213000(0x1f8),_0x460614[_0x213000(0x1f8)]?_0x460614[_0x213000(0x1f8)]:_0x213000(0x1ab)),_0x3edfa8[_0x213000(0x1c7)](_0x213000(0x18d),_0x460614[_0x213000(0x18d)]?_0x460614[_0x213000(0x18d)]:_0x213000(0x1e2));const _0x461f05=this[_0x213000(0x1a5)](_0x213000(0x1e8)+_0x3edfa8[_0x213000(0x163)](),_0x213000(0x1f5));return{'getConversations':async()=>{const _0x36d970=_0x213000,_0x29b8cc=await _0x461f05[_0x36d970(0x194)];return(await _0x29b8cc[_0x36d970(0x190)]())[_0x36d970(0x183)];},'abortController':_0x461f05[_0x213000(0x1da)]};}[_0x1a3333(0x1b7)](_0x40d240){const _0x108efd=_0x1a3333,_0x5805fe=this[_0x108efd(0x1a5)](_0x108efd(0x17f)+_0x40d240,_0x108efd(0x1cf));return{'execute':async()=>{const _0x703364=_0x108efd;await _0x5805fe[_0x703364(0x194)];},'abortController':_0x5805fe[_0x108efd(0x1da)]};}[_0x1a3333(0x1e5)](_0x43a553,_0x381e68){const _0x4b85c8=_0x1a3333,_0x12ac36=this[_0x4b85c8(0x1a5)](_0x4b85c8(0x17f)+_0x43a553,_0x4b85c8(0x1ef),_0x381e68);return{'getResult':async()=>(await _0x12ac36[_0x4b85c8(0x194)],_0x381e68),'abortController':_0x12ac36[_0x4b85c8(0x1da)]};}[_0x1a3333(0x178)](_0x39a262){const _0xf75c3e=_0x1a3333,_0x5043a3=this[_0xf75c3e(0x1a5)](_0xf75c3e(0x17f)+_0x39a262,_0xf75c3e(0x1f5));return{'getConversation':async()=>(await _0x5043a3[_0xf75c3e(0x194)])[_0xf75c3e(0x190)](),'abortController':_0x5043a3[_0xf75c3e(0x1da)]};}[_0x1a3333(0x1a1)](_0x43720b){const _0x9c9e2=_0x1a3333,_0x331b70=this[_0x9c9e2(0x1a5)](_0x9c9e2(0x17f)+_0x43720b+_0x9c9e2(0x19e),_0x9c9e2(0x1f5));return{'getMessages':async()=>{const _0x39c2ca=_0x9c9e2,_0x42a3fb=await _0x331b70[_0x39c2ca(0x194)];return(await _0x42a3fb[_0x39c2ca(0x190)]())[_0x39c2ca(0x183)];},'abortController':_0x331b70[_0x9c9e2(0x1da)]};}[_0x1a3333(0x167)](_0x24aff4,_0x1299aa,_0x5e5d42){const _0x2ee224=_0x1a3333,_0x4590ed=this[_0x2ee224(0x1a5)](_0x2ee224(0x17f)+_0x24aff4+_0x2ee224(0x1be),_0x2ee224(0x189),{'url':_0x1299aa,'attributes':_0x5e5d42});return{'getId':async()=>(await _0x4590ed[_0x2ee224(0x194)])[_0x2ee224(0x190)](),'abortController':_0x4590ed[_0x2ee224(0x1da)]};}[_0x1a3333(0x1e4)](_0x2a08d8='en'){const _0x5db051=_0x1a3333,_0x1a47e7=new URLSearchParams();_0x1a47e7[_0x5db051(0x1c7)](_0x5db051(0x1a2),_0x2a08d8);const _0x5acb13=_0x5db051(0x1ae)+_0x1a47e7[_0x5db051(0x163)](),_0x3ab461=this[_0x5db051(0x1a5)](_0x5acb13,_0x5db051(0x1f5));return{'list':async()=>await(await _0x3ab461[_0x5db051(0x194)])[_0x5db051(0x190)](),'abortController':_0x3ab461[_0x5db051(0x1da)]};}[_0x1a3333(0x1b1)](_0x6a84e3,_0x466fcb){const _0x2737ab=_0x1a3333,_0x2e16aa=this[_0x2737ab(0x1a5)](_0x2737ab(0x17f)+_0x6a84e3+_0x2737ab(0x1d5)+_0x466fcb,_0x2737ab(0x1cf));return{'execute':async()=>{const _0x333e80=_0x2737ab;await _0x2e16aa[_0x333e80(0x194)];},'abortController':_0x2e16aa[_0x2737ab(0x1da)]};}[_0x1a3333(0x1dc)](_0x51885f,_0x370657){const _0x5e0b10=_0x1a3333,_0x4a0b4f=this[_0x5e0b10(0x1a5)](_0x5e0b10(0x17f)+_0x51885f+_0x5e0b10(0x170)+_0x370657,_0x5e0b10(0x1cf));return{'execute':async()=>{const _0x12062d=_0x5e0b10;await _0x4a0b4f[_0x12062d(0x194)];},'abortController':_0x4a0b4f[_0x5e0b10(0x1da)]};}[_0x1a3333(0x1d8)](_0x54d8e2,_0x58e97d){const _0xfc67ea=_0x1a3333,_0xfa0a0c=this[_0xfc67ea(0x1a5)](_0xfc67ea(0x17f)+_0x54d8e2+_0xfc67ea(0x1c5)+_0x58e97d,_0xfc67ea(0x1cf));return{'execute':async()=>{const _0x21e5de=_0xfc67ea;await _0xfa0a0c[_0x21e5de(0x194)];},'abortController':_0xfa0a0c[_0xfc67ea(0x1da)]};}[_0x1a3333(0x19c)]({reviewName:_0x5c8a87,content:_0x668c4f,args:_0x27a182}){const _0x3119e5=_0x1a3333,_0x3f2d42=this[_0x3119e5(0x1a5)](_0x3119e5(0x1cd)+_0x5c8a87+_0x3119e5(0x169),_0x3119e5(0x189),{'content':[{'type':_0x3119e5(0x18f),'content':_0x668c4f}],'args':_0x27a182});return{'getStream':async()=>{const _0x45c9b1=_0x3119e5,_0x39cb0d=(await _0x3f2d42[_0x45c9b1(0x194)])[_0x45c9b1(0x188)];return this[_0x45c9b1(0x1bd)](_0x39cb0d);},'abortController':_0x3f2d42[_0x3119e5(0x1da)]};}[_0x1a3333(0x1c4)]({content:_0xa78eef,prompt:_0x37f0f0,model:_0x455f06}){const _0x5d774c=_0x1a3333,_0x56e39c=this[_0x5d774c(0x1a5)](_0x5d774c(0x1e1),_0x5d774c(0x189),{'content':[{'type':_0x5d774c(0x18f),'content':_0xa78eef}],'prompt':_0x37f0f0,'model':_0x455f06});return{'getStream':async()=>{const _0x350e75=_0x5d774c,_0x103185=(await _0x56e39c[_0x350e75(0x194)])[_0x350e75(0x188)];return this[_0x350e75(0x1bd)](_0x103185);},'abortController':_0x56e39c[_0x5d774c(0x1da)]};}[_0x1a3333(0x18a)](_0x18da8b,_0xb71cf4,_0x2d4779){const _0x3fd7a6=_0x1a3333,_0x13f5c0=this[_0x3fd7a6(0x1a5)](_0x3fd7a6(0x17f)+_0x18da8b+_0x3fd7a6(0x185)+_0xb71cf4+_0x3fd7a6(0x1a8),_0x3fd7a6(0x1d7),{'positiveCount':_0x2d4779[_0x3fd7a6(0x16b)],'totalCount':_0x2d4779[_0x3fd7a6(0x1f4)],'modificationId':_0x2d4779[_0x3fd7a6(0x1af)]});return{'execute':async()=>{const _0x10aa64=_0x3fd7a6;await _0x13f5c0[_0x10aa64(0x194)];},'abortController':_0x13f5c0[_0x3fd7a6(0x1da)]};}[_0x1a3333(0x199)](_0x282c2d,_0x5296f5,_0x17d28e){const _0x1507a6=_0x1a3333,_0x2f7c0c=this[_0x1507a6(0x1a5)](_0x1507a6(0x1f0)+_0x282c2d+_0x1507a6(0x1c0)+_0x5296f5+_0x1507a6(0x1a8),_0x1507a6(0x1d7),{'positiveCount':_0x17d28e[_0x1507a6(0x16b)],'totalCount':_0x17d28e[_0x1507a6(0x1f4)]});return{'execute':async()=>{const _0x2ef516=_0x1507a6;await _0x2f7c0c[_0x2ef516(0x194)];},'abortController':_0x2f7c0c[_0x1507a6(0x1da)]};}[_0x1a3333(0x186)](_0x3307da,_0x14dd41){const _0x4b9a33=_0x1a3333,_0x4f4208=this[_0x4b9a33(0x1a5)](_0x4b9a33(0x1ec)+_0x3307da+_0x4b9a33(0x1a8),_0x4b9a33(0x1d7),{'positiveCount':_0x14dd41[_0x4b9a33(0x16b)],'totalCount':_0x14dd41[_0x4b9a33(0x1f4)]});return{'execute':async()=>{const _0x343380=_0x4b9a33;await _0x4f4208[_0x343380(0x194)];},'abortController':_0x4f4208[_0x4b9a33(0x1da)]};}[_0x1a3333(0x1e9)](_0x144721,_0x3f14b0,_0x58f0f7,_0x2a5fbc){const _0x49d2cb=_0x1a3333,_0x452040=this[_0x49d2cb(0x1a5)](_0x49d2cb(0x1cd)+_0x144721+_0x49d2cb(0x1c0)+_0x3f14b0+_0x49d2cb(0x1a8),_0x49d2cb(0x1d7),{'positiveCount':_0x58f0f7[_0x49d2cb(0x16b)],'totalCount':_0x58f0f7[_0x49d2cb(0x1f4)],'dataId':_0x2a5fbc});return{'execute':async()=>{const _0x1222b0=_0x49d2cb;await _0x452040[_0x1222b0(0x194)];},'abortController':_0x452040[_0x49d2cb(0x1da)]};}[_0x1a3333(0x17c)](_0x31cf17,_0xbf5f0,_0x19f3bc){const _0x28b1e1=_0x1a3333,_0x4c3ea9=this[_0x28b1e1(0x1a5)](_0x28b1e1(0x1a3)+_0x31cf17+_0x28b1e1(0x1a8),_0x28b1e1(0x1d7),{'positiveCount':_0xbf5f0[_0x28b1e1(0x16b)],'totalCount':_0xbf5f0[_0x28b1e1(0x1f4)],'dataId':_0x19f3bc});return{'execute':async()=>{const _0x1cf1d8=_0x28b1e1;await _0x4c3ea9[_0x1cf1d8(0x194)];},'abortController':_0x4c3ea9[_0x28b1e1(0x1da)]};}[_0x1a3333(0x1a5)](_0x1c8cea,_0x2b1e1c,_0x1bdbf6){const _0x4c8343=_0x1a3333,_0x552ee4=new AbortController(),_0x275f50=_0x1bdbf6 instanceof FormData,_0xa43a53={'Authorization':_0x4c8343(0x180)+this[_0x4c8343(0x1e0)]?.[_0x4c8343(0x1f7)]};_0x1bdbf6&&!_0x275f50&&(_0xa43a53[_0x4c8343(0x18b)]=_0x4c8343(0x1a4));const _0x3569a0={'method':_0x2b1e1c,'headers':_0xa43a53,'signal':_0x552ee4[_0x4c8343(0x16f)]};return _0x1bdbf6&&(_0x3569a0[_0x4c8343(0x188)]=_0x275f50?_0x1bdbf6:JSON[_0x4c8343(0x1cb)](_0x1bdbf6)),{'request':fetch(''+this[_0x4c8343(0x1eb)]+_0x1c8cea,_0x3569a0)[_0x4c8343(0x1a0)](_0x1ed5f3=>{const _0x3e6e76=_0x4c8343;this[_0x3e6e76(0x165)](_0x1ed5f3);})[_0x4c8343(0x1de)](_0x1efe1f=>_0x1efe1f['ok']?_0x1efe1f:_0x1efe1f[_0x4c8343(0x190)]()[_0x4c8343(0x1de)](_0x4e4cc8=>{const _0x11233e=_0x4c8343;throw{'url':this[_0x11233e(0x1eb)],'path':_0x1c8cea,'method':_0x2b1e1c,'body':_0x1bdbf6,'status':(_0x1efe1f||{})[_0x11233e(0x166)],'statusText':(_0x1efe1f||{})[_0x11233e(0x1ed)],'code':_0x4e4cc8[_0x11233e(0x1b8)],'message':_0x4e4cc8[_0x11233e(0x172)],'traceId':_0x4e4cc8[_0x11233e(0x1b2)]};})),'abortController':_0x552ee4};}async*[_0x1a3333(0x1bd)](_0x43f15d){const _0x10a240=_0x1a3333,_0x1aaa1d=[],_0x4485b6=_0x43f15d[_0x10a240(0x17b)](),_0x1e1c3f=_0x2d11db({'onError':_0x474480=>{const _0x4144c1=_0x10a240;this[_0x4144c1(0x165)](_0x474480);},'onEvent':_0x5df189=>{const _0x30f928=_0x10a240;_0x5df189[_0x30f928(0x1bb)]=JSON[_0x30f928(0x1d2)](_0x5df189[_0x30f928(0x1bb)]),_0x1aaa1d[_0x30f928(0x16a)](_0x5df189);}});try{let _0x3edbb1=!0x1;for(;!_0x3edbb1;){const {done:_0xa66b96,value:_0x10d3ae}=await _0x4485b6[_0x10a240(0x1b3)]();_0xa66b96&&(_0x3edbb1=!0x0),_0x1e1c3f[_0x10a240(0x19f)](this[_0x10a240(0x1ee)][_0x10a240(0x1ca)](_0x10d3ae,{'stream':!0x0})),yield*_0x1aaa1d,_0x1aaa1d[_0x10a240(0x1ce)]=0x0;}}catch(_0x133245){this[_0x10a240(0x165)](_0x133245);}finally{_0x4485b6[_0x10a240(0x1d3)](),_0x1e1c3f[_0x10a240(0x18c)]();}}[_0x1a3333(0x165)](_0x3c2d20){const _0x21ed70=_0x1a3333;if(_0x3c2d20 instanceof _0xc292ef)throw _0x3c2d20;if(_0x3c2d20 instanceof Error&&_0x21ed70(0x187)===_0x3c2d20[_0x21ed70(0x164)])throw new _0xc292ef(_0x21ed70(0x1ad),this,{'originalError':_0x3c2d20});throw new _0xc292ef(_0x21ed70(0x173),this,{'originalError':_0x3c2d20});}}
23
+ const _0x7d1d3e=_0xd212;(function(_0xbc3521,_0x434261){const _0x45dba3=_0xd212,_0x422262=_0xbc3521();while(!![]){try{const _0x3bc0d5=-parseInt(_0x45dba3(0x223))/0x1*(parseInt(_0x45dba3(0x1f7))/0x2)+parseInt(_0x45dba3(0x20b))/0x3*(parseInt(_0x45dba3(0x218))/0x4)+-parseInt(_0x45dba3(0x1e6))/0x5*(-parseInt(_0x45dba3(0x1b1))/0x6)+parseInt(_0x45dba3(0x1cc))/0x7*(parseInt(_0x45dba3(0x217))/0x8)+parseInt(_0x45dba3(0x1f6))/0x9*(parseInt(_0x45dba3(0x229))/0xa)+parseInt(_0x45dba3(0x19d))/0xb+-parseInt(_0x45dba3(0x226))/0xc;if(_0x3bc0d5===_0x434261)break;else _0x422262['push'](_0x422262['shift']());}catch(_0x2f5357){_0x422262['push'](_0x422262['shift']());}}}(_0x56e0,0x55c6c));function _0xd212(_0x218451,_0x39df49){const _0x56e0aa=_0x56e0();return _0xd212=function(_0xd21203,_0x1f5cd3){_0xd21203=_0xd21203-0x195;let _0x4a37b9=_0x56e0aa[_0xd21203];return _0x4a37b9;},_0xd212(_0x218451,_0x39df49);}function _0x56e0(){const _0x268157=['config','CONTINUE','_sendApiRequest','_getStreamReader','deleteWebResource','excludeEmpty','10onFOBo','/actions/custom/calls/','getModels','AbortError','/messages/','make-tone-formal','PATCH','text','upsertCustomAIActionRating','TRANSLATE','/calls','MAKE_SHORTER','fix-grammar','items','deleteFile','init','4530627rpdBmc','558BfDKsI','/web-resources/','queryAssistant','/web-resources','IMPROVE_WRITING','/actions/system/','POST','/conversations/','order','application/json','createdAt','Bearer\x20','ai.serviceUrl','requires','make-longer','positiveCount','/reviews/system/','/calls/','name','Content-Type','1759782sAvstK','context','uploadDocument','decode','message','DELETE','ai-request-failed','GET','/models/1?','group','continue','uploadFile','35848ydsMOp','4rIQxDw','/ratings','MAKE_LONGER','_apiUrl','length','callSystemReview','releaseLock','attributes','translate','callCustomReview','totalCount','721VGpRla','append','upsertAIChatRating','18666852uDRTBv','executeCustomAction','toString','10bgZPMm','traceId','value','then','MAKE_TONE_FORMAL','deleteDocument','plugins','reset','false','/files/','abortController','1828442xQbTit','data','isOfficialPlugin','limit','/actions/custom/calls','upsertCustomAIReviewRating','desc','fetchConversation','ai-missing-token','fetchConversations','_decoder','improve-writing','/conversations','upsertAIActionRating','make-shorter','request','PUT','catch','/documents','_handleError','552546XsUDgy','MAKE_TONE_CASUAL','statusText','AIConnector','/messages','status','define','parse','push','get','make-tone-casual','_token','sortBy','getReader','CloudServices','https://ai.cke-cs.com/v1','uploadUrl','executeAction','true','body','/reviews/custom/calls/','json','updateConversation','fetchDocument','file','upsertAIReviewRating','modificationId','1043szemUz','FIX_GRAMMAR','stringify','signal','/conversations?','ai-request-aborted','startConversation','token','read','/files','language','pluginName','isPremiumPlugin','/reviews/custom/calls','/documents/','100','fetchConversationMessages','code','feed','deleteConversation'];_0x56e0=function(){return _0x268157;};return _0x56e0();}import{createParser as _0x398c5a}from'eventsource-parser';import{ContextPlugin as _0x38bf00}from'ckeditor5/src/core.js';import{CKEditorError as _0x375d84}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2fce6b){const _0x2a1502=_0xd212;_0x2fce6b[_0x2a1502(0x1e1)]=_0x2a1502(0x215),_0x2fce6b[_0x2a1502(0x1cd)]=_0x2a1502(0x1f2),_0x2fce6b[_0x2a1502(0x1fb)]=_0x2a1502(0x1a8),_0x2fce6b[_0x2a1502(0x21a)]=_0x2a1502(0x205),_0x2fce6b[_0x2a1502(0x1f1)]=_0x2a1502(0x1ab),_0x2fce6b[_0x2a1502(0x1b2)]=_0x2a1502(0x1bb),_0x2fce6b[_0x2a1502(0x196)]=_0x2a1502(0x1eb),_0x2fce6b[_0x2a1502(0x1ef)]=_0x2a1502(0x220);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38bf00{[_0x7d1d3e(0x21b)];[_0x7d1d3e(0x1bc)];[_0x7d1d3e(0x1a7)];static get[_0x7d1d3e(0x204)](){const _0x3dcad3=_0x7d1d3e;return[_0x3dcad3(0x1bf)];}static get[_0x7d1d3e(0x1d7)](){const _0x4f7d02=_0x7d1d3e;return _0x4f7d02(0x1b4);}static get[_0x7d1d3e(0x19f)](){return!0x0;}static get[_0x7d1d3e(0x1d8)](){return!0x0;}constructor(_0x3054d9){const _0x376db6=_0x7d1d3e;super(_0x3054d9),this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1b7)](_0x376db6(0x203),_0x376db6(0x1c0)),this[_0x376db6(0x21b)]=this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1ba)](_0x376db6(0x203)),this[_0x376db6(0x1bc)]=null,this[_0x376db6(0x1a7)]=new TextDecoder();}[_0x7d1d3e(0x1f5)](){const _0x1eb800=_0x7d1d3e,_0x19588d=this[_0x1eb800(0x20c)][_0x1eb800(0x198)][_0x1eb800(0x1ba)](_0x1eb800(0x1bf));if(!_0x19588d[_0x1eb800(0x1d3)])throw new _0x375d84(_0x1eb800(0x1a5),this);this[_0x1eb800(0x1bc)]=_0x19588d[_0x1eb800(0x1d3)];}[_0x7d1d3e(0x1d2)](_0x44a855,_0x2f5cc7){const _0x55aa3a=_0x7d1d3e,_0x4db08e=this[_0x55aa3a(0x1e2)](_0x55aa3a(0x1a9),_0x55aa3a(0x1fd),{'id':_0x44a855,'group':_0x2f5cc7});return{'getConversation':async()=>(await _0x4db08e[_0x55aa3a(0x1ac)])[_0x55aa3a(0x1c6)](),'abortController':_0x4db08e[_0x55aa3a(0x19c)]};}[_0x7d1d3e(0x1f9)]({message:_0x42a8c9,conversationId:_0x515a9f,parts:_0x1279ce,capabilities:_0x131248,model:_0x29c2e0,attributes:_0xcc9f8b}){const _0x200149=_0x7d1d3e,_0x3000e1={'prompt':_0x42a8c9,'content':_0x1279ce,'model':_0x29c2e0,..._0x131248&&{'capabilities':_0x131248},..._0xcc9f8b&&{'attributes':_0xcc9f8b}},_0x4703ad=this[_0x200149(0x1e2)](_0x200149(0x1fe)+_0x515a9f+_0x200149(0x1b5),_0x200149(0x1fd),_0x3000e1);return{'getStream':async()=>{const _0x15c4a7=_0x200149,_0x2ae2c9=(await _0x4703ad[_0x15c4a7(0x1ac)])[_0x15c4a7(0x1c4)];return this[_0x15c4a7(0x1e3)](_0x2ae2c9);},'abortController':_0x4703ad[_0x200149(0x19c)]};}[_0x7d1d3e(0x227)]({content:_0x4943a7,message:_0x5d60f4,model:_0x12190b,outputFormat:_0x236435}){const _0x1b5d75=_0x7d1d3e,_0x416a24={'content':[{'type':_0x1b5d75(0x1ed),'content':_0x4943a7}],'prompt':_0x5d60f4,'model':_0x12190b,'outputFormat':_0x236435},_0x590d48=this[_0x1b5d75(0x1e2)](_0x1b5d75(0x1a1),_0x1b5d75(0x1fd),_0x416a24);return{'getStream':async()=>{const _0x2add87=_0x1b5d75,_0x51976b=(await _0x590d48[_0x2add87(0x1ac)])[_0x2add87(0x1c4)];return this[_0x2add87(0x1e3)](_0x51976b);},'abortController':_0x590d48[_0x1b5d75(0x19c)]};}[_0x7d1d3e(0x1c2)]({actionName:_0x2b0e8a,content:_0x4161ca,args:_0x34b106}){const _0x528a42=_0x7d1d3e,_0x43f611={'content':[{'type':_0x528a42(0x1ed),'content':_0x4161ca}],'args':_0x34b106},_0x4ac6ad=this[_0x528a42(0x1e2)](_0x528a42(0x1fc)+_0x2b0e8a+_0x528a42(0x1f0),_0x528a42(0x1fd),_0x43f611);return{'getStream':async()=>{const _0xb53de9=_0x528a42,_0x3e9400=(await _0x4ac6ad[_0xb53de9(0x1ac)])[_0xb53de9(0x1c4)];return this[_0xb53de9(0x1e3)](_0x3e9400);},'abortController':_0x4ac6ad[_0x528a42(0x19c)]};}[_0x7d1d3e(0x216)](_0x816618,_0x32e7de,_0x1e6d86){const _0x2bc8c9=_0x7d1d3e,_0x33b073=new FormData();_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x1c9),_0x32e7de,_0x32e7de[_0x2bc8c9(0x209)]),_0x1e6d86&&_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x21f),JSON[_0x2bc8c9(0x1ce)](_0x1e6d86));const _0x4e057b=this[_0x2bc8c9(0x1e2)](_0x2bc8c9(0x1fe)+_0x816618+_0x2bc8c9(0x1d5),_0x2bc8c9(0x1fd),_0x33b073);return{'getId':async()=>(await _0x4e057b[_0x2bc8c9(0x1ac)])[_0x2bc8c9(0x1c6)](),'abortController':_0x4e057b[_0x2bc8c9(0x19c)]};}[_0x7d1d3e(0x1c8)](_0x4081fc,_0x34d5fd){const _0xb544ad=_0x7d1d3e,_0x393ada=this[_0xb544ad(0x1e2)](_0xb544ad(0x1fe)+_0x4081fc+_0xb544ad(0x1da)+_0x34d5fd,_0xb544ad(0x212));return{'getDocument':async()=>(await _0x393ada[_0xb544ad(0x1ac)])[_0xb544ad(0x1c6)](),'abortController':_0x393ada[_0xb544ad(0x19c)]};}[_0x7d1d3e(0x20d)](_0x643740,_0x2ae27f,_0x53afb8){const _0x542723=_0x7d1d3e,_0x2cbea6={'content':_0x2ae27f};_0x53afb8&&(_0x2cbea6[_0x542723(0x21f)]=_0x53afb8);const _0x2659ac=this[_0x542723(0x1e2)](_0x542723(0x1fe)+_0x643740+_0x542723(0x1af),_0x542723(0x1fd),_0x2cbea6);return{'getId':async()=>(await _0x2659ac[_0x542723(0x1ac)])[_0x542723(0x1c6)](),'abortController':_0x2659ac[_0x542723(0x19c)]};}[_0x7d1d3e(0x1a6)](_0x5efaea,_0x74138a={}){const _0x3dc1b9=_0x7d1d3e,_0x5bcd83=new URLSearchParams();_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x214),_0x5efaea),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1e5),!0x1!==_0x74138a[_0x3dc1b9(0x1e5)]?_0x3dc1b9(0x1c3):_0x3dc1b9(0x19a)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1a0),_0x74138a[_0x3dc1b9(0x1a0)]?_0x74138a[_0x3dc1b9(0x1a0)][_0x3dc1b9(0x228)]():_0x3dc1b9(0x1db)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1bd),_0x74138a[_0x3dc1b9(0x1bd)]?_0x74138a[_0x3dc1b9(0x1bd)]:_0x3dc1b9(0x201)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1ff),_0x74138a[_0x3dc1b9(0x1ff)]?_0x74138a[_0x3dc1b9(0x1ff)]:_0x3dc1b9(0x1a3));const _0x2ba5a3=this[_0x3dc1b9(0x1e2)](_0x3dc1b9(0x1d0)+_0x5bcd83[_0x3dc1b9(0x228)](),_0x3dc1b9(0x212));return{'getConversations':async()=>{const _0xcebb31=_0x3dc1b9,_0x5d1031=await _0x2ba5a3[_0xcebb31(0x1ac)];return(await _0x5d1031[_0xcebb31(0x1c6)]())[_0xcebb31(0x1f3)];},'abortController':_0x2ba5a3[_0x3dc1b9(0x19c)]};}[_0x7d1d3e(0x1df)](_0x117a1f){const _0x54d054=_0x7d1d3e,_0x4713c2=this[_0x54d054(0x1e2)](_0x54d054(0x1fe)+_0x117a1f,_0x54d054(0x210));return{'execute':async()=>{const _0x54c62f=_0x54d054;await _0x4713c2[_0x54c62f(0x1ac)];},'abortController':_0x4713c2[_0x54d054(0x19c)]};}[_0x7d1d3e(0x1c7)](_0x1fd2ad,_0x3644b4){const _0x46d9e7=_0x7d1d3e,_0x5099b3=this[_0x46d9e7(0x1e2)](_0x46d9e7(0x1fe)+_0x1fd2ad,_0x46d9e7(0x1ec),_0x3644b4);return{'getResult':async()=>(await _0x5099b3[_0x46d9e7(0x1ac)],_0x3644b4),'abortController':_0x5099b3[_0x46d9e7(0x19c)]};}[_0x7d1d3e(0x1a4)](_0x2ca03a){const _0x3d8c99=_0x7d1d3e,_0x57d97d=this[_0x3d8c99(0x1e2)](_0x3d8c99(0x1fe)+_0x2ca03a,_0x3d8c99(0x212));return{'getConversation':async()=>(await _0x57d97d[_0x3d8c99(0x1ac)])[_0x3d8c99(0x1c6)](),'abortController':_0x57d97d[_0x3d8c99(0x19c)]};}[_0x7d1d3e(0x1dc)](_0x45f4b1){const _0xa7d2b5=_0x7d1d3e,_0x21ed13=this[_0xa7d2b5(0x1e2)](_0xa7d2b5(0x1fe)+_0x45f4b1+_0xa7d2b5(0x1b5),_0xa7d2b5(0x212));return{'getMessages':async()=>{const _0x10e561=_0xa7d2b5,_0x28cfae=await _0x21ed13[_0x10e561(0x1ac)];return(await _0x28cfae[_0x10e561(0x1c6)]())[_0x10e561(0x1f3)];},'abortController':_0x21ed13[_0xa7d2b5(0x19c)]};}[_0x7d1d3e(0x1c1)](_0x19e799,_0x5a9e74,_0x2898fb){const _0x32471a=_0x7d1d3e,_0x45c96f=this[_0x32471a(0x1e2)](_0x32471a(0x1fe)+_0x19e799+_0x32471a(0x1fa),_0x32471a(0x1fd),{'url':_0x5a9e74,'attributes':_0x2898fb});return{'getId':async()=>(await _0x45c96f[_0x32471a(0x1ac)])[_0x32471a(0x1c6)](),'abortController':_0x45c96f[_0x32471a(0x19c)]};}[_0x7d1d3e(0x1e8)](_0x14655d='en'){const _0x320bb9=_0x7d1d3e,_0x4d43fa=new URLSearchParams();_0x4d43fa[_0x320bb9(0x224)](_0x320bb9(0x1d6),_0x14655d);const _0x4ae57e=_0x320bb9(0x213)+_0x4d43fa[_0x320bb9(0x228)](),_0x25af41=this[_0x320bb9(0x1e2)](_0x4ae57e,_0x320bb9(0x212));return{'list':async()=>await(await _0x25af41[_0x320bb9(0x1ac)])[_0x320bb9(0x1c6)](),'abortController':_0x25af41[_0x320bb9(0x19c)]};}[_0x7d1d3e(0x1f4)](_0x12ed7a,_0x1cef13){const _0xe8566d=_0x7d1d3e,_0x2e1635=this[_0xe8566d(0x1e2)](_0xe8566d(0x1fe)+_0x12ed7a+_0xe8566d(0x19b)+_0x1cef13,_0xe8566d(0x210));return{'execute':async()=>{const _0x5cece0=_0xe8566d;await _0x2e1635[_0x5cece0(0x1ac)];},'abortController':_0x2e1635[_0xe8566d(0x19c)]};}[_0x7d1d3e(0x197)](_0x397f04,_0x7fb464){const _0x4bad78=_0x7d1d3e,_0xdd07d5=this[_0x4bad78(0x1e2)](_0x4bad78(0x1fe)+_0x397f04+_0x4bad78(0x1da)+_0x7fb464,_0x4bad78(0x210));return{'execute':async()=>{const _0x2bec86=_0x4bad78;await _0xdd07d5[_0x2bec86(0x1ac)];},'abortController':_0xdd07d5[_0x4bad78(0x19c)]};}[_0x7d1d3e(0x1e4)](_0x3add54,_0x2377f0){const _0x364706=_0x7d1d3e,_0x49b59a=this[_0x364706(0x1e2)](_0x364706(0x1fe)+_0x3add54+_0x364706(0x1f8)+_0x2377f0,_0x364706(0x210));return{'execute':async()=>{const _0x1dc730=_0x364706;await _0x49b59a[_0x1dc730(0x1ac)];},'abortController':_0x49b59a[_0x364706(0x19c)]};}[_0x7d1d3e(0x21d)]({reviewName:_0x39ab7d,content:_0x2a50fc,args:_0x40558a}){const _0x49159a=_0x7d1d3e,_0x18954e=this[_0x49159a(0x1e2)](_0x49159a(0x207)+_0x39ab7d+_0x49159a(0x1f0),_0x49159a(0x1fd),{'content':[{'type':_0x49159a(0x1ed),'content':_0x2a50fc}],'args':_0x40558a});return{'getStream':async()=>{const _0x3ad69c=_0x49159a,_0x4e2654=(await _0x18954e[_0x3ad69c(0x1ac)])[_0x3ad69c(0x1c4)];return this[_0x3ad69c(0x1e3)](_0x4e2654);},'abortController':_0x18954e[_0x49159a(0x19c)]};}[_0x7d1d3e(0x221)]({content:_0x54ecda,prompt:_0x50624c,model:_0x564bca}){const _0x25c2be=_0x7d1d3e,_0x3b3286=this[_0x25c2be(0x1e2)](_0x25c2be(0x1d9),_0x25c2be(0x1fd),{'content':[{'type':_0x25c2be(0x1ed),'content':_0x54ecda}],'prompt':_0x50624c,'model':_0x564bca});return{'getStream':async()=>{const _0x33a75d=_0x25c2be,_0x1da2ea=(await _0x3b3286[_0x33a75d(0x1ac)])[_0x33a75d(0x1c4)];return this[_0x33a75d(0x1e3)](_0x1da2ea);},'abortController':_0x3b3286[_0x25c2be(0x19c)]};}[_0x7d1d3e(0x225)](_0x43efd4,_0x50be49,_0x4183c0){const _0x29c820=_0x7d1d3e,_0x484724=this[_0x29c820(0x1e2)](_0x29c820(0x1fe)+_0x43efd4+_0x29c820(0x1ea)+_0x50be49+_0x29c820(0x219),_0x29c820(0x1ad),{'positiveCount':_0x4183c0[_0x29c820(0x206)],'totalCount':_0x4183c0[_0x29c820(0x222)],'modificationId':_0x4183c0[_0x29c820(0x1cb)]});return{'execute':async()=>{const _0xcc4b5e=_0x29c820;await _0x484724[_0xcc4b5e(0x1ac)];},'abortController':_0x484724[_0x29c820(0x19c)]};}[_0x7d1d3e(0x1aa)](_0x4243e0,_0x3aff7d,_0xeef2de){const _0x3f3c81=_0x7d1d3e,_0x54d059=this[_0x3f3c81(0x1e2)](_0x3f3c81(0x1fc)+_0x4243e0+_0x3f3c81(0x208)+_0x3aff7d+_0x3f3c81(0x219),_0x3f3c81(0x1ad),{'positiveCount':_0xeef2de[_0x3f3c81(0x206)],'totalCount':_0xeef2de[_0x3f3c81(0x222)]});return{'execute':async()=>{const _0x41b894=_0x3f3c81;await _0x54d059[_0x41b894(0x1ac)];},'abortController':_0x54d059[_0x3f3c81(0x19c)]};}[_0x7d1d3e(0x1ee)](_0xa7b13e,_0x1a072d){const _0x25a91e=_0x7d1d3e,_0x4d407e=this[_0x25a91e(0x1e2)](_0x25a91e(0x1e7)+_0xa7b13e+_0x25a91e(0x219),_0x25a91e(0x1ad),{'positiveCount':_0x1a072d[_0x25a91e(0x206)],'totalCount':_0x1a072d[_0x25a91e(0x222)]});return{'execute':async()=>{const _0x101dc4=_0x25a91e;await _0x4d407e[_0x101dc4(0x1ac)];},'abortController':_0x4d407e[_0x25a91e(0x19c)]};}[_0x7d1d3e(0x1ca)](_0x1fecdb,_0x235320,_0x509886,_0x643195){const _0x213f22=_0x7d1d3e,_0x28e54f=this[_0x213f22(0x1e2)](_0x213f22(0x207)+_0x1fecdb+_0x213f22(0x208)+_0x235320+_0x213f22(0x219),_0x213f22(0x1ad),{'positiveCount':_0x509886[_0x213f22(0x206)],'totalCount':_0x509886[_0x213f22(0x222)],'dataId':_0x643195});return{'execute':async()=>{const _0x53b149=_0x213f22;await _0x28e54f[_0x53b149(0x1ac)];},'abortController':_0x28e54f[_0x213f22(0x19c)]};}[_0x7d1d3e(0x1a2)](_0x1113e5,_0x3a5cfd,_0x32e6c2){const _0x359ac0=_0x7d1d3e,_0x45c822=this[_0x359ac0(0x1e2)](_0x359ac0(0x1c5)+_0x1113e5+_0x359ac0(0x219),_0x359ac0(0x1ad),{'positiveCount':_0x3a5cfd[_0x359ac0(0x206)],'totalCount':_0x3a5cfd[_0x359ac0(0x222)],'dataId':_0x32e6c2});return{'execute':async()=>{const _0x495a32=_0x359ac0;await _0x45c822[_0x495a32(0x1ac)];},'abortController':_0x45c822[_0x359ac0(0x19c)]};}[_0x7d1d3e(0x1e2)](_0x2c06f9,_0x51f7a6,_0x2869bb){const _0x1bd383=_0x7d1d3e,_0x39ccbb=new AbortController(),_0x1c948a=_0x2869bb instanceof FormData,_0x5b948d={'Authorization':_0x1bd383(0x202)+this[_0x1bd383(0x1bc)]?.[_0x1bd383(0x22b)]};_0x2869bb&&!_0x1c948a&&(_0x5b948d[_0x1bd383(0x20a)]=_0x1bd383(0x200));const _0x266904={'method':_0x51f7a6,'headers':_0x5b948d,'signal':_0x39ccbb[_0x1bd383(0x1cf)]};return _0x2869bb&&(_0x266904[_0x1bd383(0x1c4)]=_0x1c948a?_0x2869bb:JSON[_0x1bd383(0x1ce)](_0x2869bb)),{'request':fetch(''+this[_0x1bd383(0x21b)]+_0x2c06f9,_0x266904)[_0x1bd383(0x1ae)](_0x10b3ce=>{const _0x5107fc=_0x1bd383;this[_0x5107fc(0x1b0)](_0x10b3ce);})[_0x1bd383(0x195)](_0x292b7e=>_0x292b7e['ok']?_0x292b7e:_0x292b7e[_0x1bd383(0x1c6)]()[_0x1bd383(0x195)](_0x556bba=>{const _0x203f5e=_0x1bd383;throw{'url':this[_0x203f5e(0x21b)],'path':_0x2c06f9,'method':_0x51f7a6,'body':_0x2869bb,'status':(_0x292b7e||{})[_0x203f5e(0x1b6)],'statusText':(_0x292b7e||{})[_0x203f5e(0x1b3)],'code':_0x556bba[_0x203f5e(0x1dd)],'message':_0x556bba[_0x203f5e(0x20f)],'traceId':_0x556bba[_0x203f5e(0x22a)]};})),'abortController':_0x39ccbb};}async*[_0x7d1d3e(0x1e3)](_0x4fd533){const _0x1e8ad6=_0x7d1d3e,_0xd76461=[],_0x3fe273=_0x4fd533[_0x1e8ad6(0x1be)](),_0x3d2f3c=_0x398c5a({'onError':_0x21aa05=>{const _0x3b1d3e=_0x1e8ad6;this[_0x3b1d3e(0x1b0)](_0x21aa05);},'onEvent':_0x18c620=>{const _0x4b7a6e=_0x1e8ad6;_0x18c620[_0x4b7a6e(0x19e)]=JSON[_0x4b7a6e(0x1b8)](_0x18c620[_0x4b7a6e(0x19e)]),_0xd76461[_0x4b7a6e(0x1b9)](_0x18c620);}});try{let _0x2d21b7=!0x1;for(;!_0x2d21b7;){const {done:_0x33e4f7,value:_0xd82b2}=await _0x3fe273[_0x1e8ad6(0x1d4)]();_0x33e4f7&&(_0x2d21b7=!0x0),_0x3d2f3c[_0x1e8ad6(0x1de)](this[_0x1e8ad6(0x1a7)][_0x1e8ad6(0x20e)](_0xd82b2,{'stream':!0x0})),yield*_0xd76461,_0xd76461[_0x1e8ad6(0x21c)]=0x0;}}catch(_0x3b0330){this[_0x1e8ad6(0x1b0)](_0x3b0330);}finally{_0x3fe273[_0x1e8ad6(0x21e)](),_0x3d2f3c[_0x1e8ad6(0x199)]();}}[_0x7d1d3e(0x1b0)](_0x37bb76){const _0x4ab3ea=_0x7d1d3e;if(_0x37bb76 instanceof _0x375d84)throw _0x37bb76;if(_0x37bb76 instanceof Error&&_0x4ab3ea(0x1e9)===_0x37bb76[_0x4ab3ea(0x209)])throw new _0x375d84(_0x4ab3ea(0x1d1),this,{'originalError':_0x37bb76});throw new _0x375d84(_0x4ab3ea(0x211),this,{'originalError':_0x37bb76});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19d490=_0x4572;(function(_0x31183e,_0xca6689){const _0x1258a4=_0x4572,_0x5a6027=_0x31183e();while(!![]){try{const _0x386c38=-parseInt(_0x1258a4(0xd7))/0x1+-parseInt(_0x1258a4(0xb7))/0x2*(parseInt(_0x1258a4(0xf1))/0x3)+-parseInt(_0x1258a4(0xf4))/0x4*(-parseInt(_0x1258a4(0x102))/0x5)+parseInt(_0x1258a4(0xb4))/0x6+parseInt(_0x1258a4(0xda))/0x7+-parseInt(_0x1258a4(0xe2))/0x8+parseInt(_0x1258a4(0xc1))/0x9;if(_0x386c38===_0xca6689)break;else _0x5a6027['push'](_0x5a6027['shift']());}catch(_0x2a5224){_0x5a6027['push'](_0x5a6027['shift']());}}}(_0x3620,0x3f0bd));import{ViewDowncastWriter as _0x43dc16}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ae505,Editor as _0x465cc1}from'ckeditor5/src/core.js';import{uid as _0x13295b}from'ckeditor5/src/utils.js';function _0x4572(_0x2bec8e,_0x1ee392){const _0x362015=_0x3620();return _0x4572=function(_0x457261,_0x2a656){_0x457261=_0x457261-0xa4;let _0x51d269=_0x362015[_0x457261];return _0x51d269;},_0x4572(_0x2bec8e,_0x1ee392);}import{getTranslation as _0x284fdc}from'./utils/common-translations.js';import{getEditorFromContext as _0x808334}from'./utils/geteditorfromcontext.js';function _0x3620(){const _0x43473f=['197722VcQZHT','conversion','editing','floor','dataDowncast','model','push','isContent','141664TukPCy','config','_outputDataProcessor','processor','get','emptyElement','ready','for','convertAiChatSelectionMarker','sort','isAfter','removeMarker','ck-fake-ai-selection','define','getItems','3ThwNrU','createUIElement','from','256qNQZHY','_nextDataId','getLastMatchingPosition','substring','markerName','editingDowncast','sessionId','isOpening','isPremiumPlugin','selection','indexOf','data-id','view','getRanges','35660meSksV','change','containerElement','toView','removeAllRanges','fromCharCode','toData',':start></','getSelectionText','afterInit','markers','locale','isBefore','getHtml','random','createRange','plugins','getChildren','version','document','data','element','markerToHighlight','start','add','ai.models.showModelSelector','trim','$textProxy',':start>','getMarkersGroup','ck-ai-assistant-ui_theme','modelToDataWithIds','isOfficialPlugin','htmlWriter','getRoot','ai-selection','_setDataIdsOnChildren','2368836jQjpnP','length','_getMarkersInDocumentOrder','437698TkDXQz','markerToElement','getSelection','_setOutputDataProcessor','getDocumentData','_sessionId','listenTo','addMarker','showFakeVisualSelection','viewToDom','640269uZhuGd','RealTimeCollaborationClient','name','pluginName','end','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','schema','isAtEnd','ai-selection:',':end></','_displayedFakeSelectionLocked','setAttribute','hideFakeVisualSelection','getStart','has','_integrateEditor',':end>','join','context','_getDocumentDataStringFromView','_displayedFakeSelectionId','AIEditing','455847rWAWKs','editors','domConverter'];_0x3620=function(){return _0x43473f;};return _0x3620();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x19d490(0xb2);export class AIEditing extends _0x1ae505{constructor(_0x8e69f5){const _0x5488d5=_0x19d490;super(_0x8e69f5),this[_0x5488d5(0xd3)][_0x5488d5(0xe3)][_0x5488d5(0xef)](_0x5488d5(0xa8),!0x0);}[_0x19d490(0xe4)];[_0x19d490(0xd5)]=null;[_0x19d490(0xcb)]=!0x1;[_0x19d490(0xbc)];static get[_0x19d490(0xc4)](){const _0x25d0b=_0x19d490;return _0x25d0b(0xd6);}static get[_0x19d490(0xaf)](){return!0x0;}static get[_0x19d490(0xfc)](){return!0x0;}get[_0x19d490(0xfa)](){const _0x4bcc79=_0x19d490;if(!this[_0x4bcc79(0xbc)]){const _0x25a20c=_0x808334(this[_0x4bcc79(0xd3)]),_0x92a16a=_0x25a20c[_0x4bcc79(0x112)][_0x4bcc79(0xcf)](_0x4bcc79(0xc2))&&_0x25a20c[_0x4bcc79(0x112)][_0x4bcc79(0xe6)](_0x4bcc79(0xc2))[_0x4bcc79(0xfa)];this[_0x4bcc79(0xbc)]=_0x92a16a||_0x13295b();}return this[_0x4bcc79(0xbc)];}async[_0x19d490(0xbb)](){const _0x2e4789=_0x19d490,_0x38151d=_0x808334(this[_0x2e4789(0xd3)]),_0xd93f0d=_0x38151d[_0x2e4789(0xdf)],_0x31971a=_0x38151d[_0x2e4789(0x116)][_0x2e4789(0x105)](_0xd93f0d[_0x2e4789(0x115)][_0x2e4789(0xb1)](),{'convertAiChatSelectionMarker':!0x0}),_0x2d0f13=new _0x43dc16(_0x38151d[_0x2e4789(0xdc)][_0x2e4789(0x100)][_0x2e4789(0x115)]);this[_0x2e4789(0xb3)](_0x31971a,_0x2d0f13);let _0x5e52df=await this[_0x2e4789(0xd4)](_0x31971a);const _0x1552ba=this[_0x2e4789(0xb6)](),_0x12abd1=[];for(const _0x1392a3 of _0x1552ba){const _0x4e92ea='<'+_0x1392a3[_0x2e4789(0xc3)]+_0x2e4789(0x109)+_0x1392a3[_0x2e4789(0xc3)]+_0x2e4789(0xab),_0xb2f641=_0x5e52df[_0x2e4789(0xfe)](_0x4e92ea);_0x5e52df=_0x5e52df[_0x2e4789(0xf7)](0x0,_0xb2f641)+_0x5e52df[_0x2e4789(0xf7)](_0xb2f641+_0x4e92ea[_0x2e4789(0xb5)]);const _0x1a2d0d='<'+_0x1392a3[_0x2e4789(0xc3)]+_0x2e4789(0xca)+_0x1392a3[_0x2e4789(0xc3)]+_0x2e4789(0xd1),_0x302dc4=_0x5e52df[_0x2e4789(0xfe)](_0x1a2d0d);_0x5e52df=_0x5e52df[_0x2e4789(0xf7)](0x0,_0x302dc4)+_0x5e52df[_0x2e4789(0xf7)](_0x302dc4+_0x1a2d0d[_0x2e4789(0xb5)]),_0x12abd1[_0x2e4789(0xe0)]({'markerName':_0x1392a3[_0x2e4789(0xc3)],'start':_0xb2f641,'end':_0x302dc4,'htmlFragment':_0x5e52df[_0x2e4789(0xf7)](_0xb2f641,_0x302dc4)});}return{'content':_0x5e52df,'version':_0x38151d[_0x2e4789(0xdf)][_0x2e4789(0x115)][_0x2e4789(0x114)],'sessionId':this[_0x2e4789(0xfa)],'selections':_0x12abd1};}async[_0x19d490(0x10b)](){const _0x1ee169=_0x19d490;this[_0x1ee169(0xd3)]instanceof _0x465cc1?this[_0x1ee169(0xd0)](this[_0x1ee169(0xd3)]):this[_0x1ee169(0xbd)](this[_0x1ee169(0xd3)][_0x1ee169(0xd8)],_0x1ee169(0xa7),(_0x4dc804,_0x280674)=>{const _0x7bf6f7=_0x1ee169;_0x280674['on'](_0x7bf6f7(0xe8),()=>{const _0x34cd4e=_0x7bf6f7;this[_0x34cd4e(0xd0)](_0x280674);});});}[_0x19d490(0xba)](_0x29f3e0){const _0x4d3715=_0x19d490;this[_0x4d3715(0xe4)]=_0x29f3e0;}async[_0x19d490(0xd4)](_0x51bcc9){const _0x1257f7=_0x19d490;let _0x9962d1;const _0x1aa82c=_0x808334(this[_0x1257f7(0xd3)]);if(this[_0x1257f7(0xe4)]){const _0x9093c2=_0x1aa82c[_0x1257f7(0x116)][_0x1257f7(0xe5)][_0x1257f7(0xd9)][_0x1257f7(0xc0)](_0x51bcc9),_0x259f04=await this[_0x1257f7(0xe4)](_0x9093c2);_0x9962d1=_0x1aa82c[_0x1257f7(0x116)][_0x1257f7(0xe5)][_0x1257f7(0xb0)][_0x1257f7(0x10f)](_0x259f04);}else _0x9962d1=_0x1aa82c[_0x1257f7(0x116)][_0x1257f7(0xe5)][_0x1257f7(0x108)](_0x51bcc9);return _0x9962d1;}[_0x19d490(0xd0)](_0x385660){const _0x90b8f4=_0x19d490;_0x385660[_0x90b8f4(0xdb)][_0x90b8f4(0xe9)](_0x90b8f4(0xf9))[_0x90b8f4(0xa5)]({'model':_0x90b8f4(0xb2),'view':{'classes':[_0x90b8f4(0xee),_0x90b8f4(0xad)],'priority':0xc}}),_0x385660[_0x90b8f4(0xdb)][_0x90b8f4(0xe9)](_0x90b8f4(0xde))[_0x90b8f4(0xb8)]({'model':_0x90b8f4(0xb2),'view':(_0x2f9498,{writer:_0x192d0e,options:_0x43953e})=>_0x43953e[_0x90b8f4(0xea)]?_0x192d0e[_0x90b8f4(0xf2)](_0x2f9498[_0x90b8f4(0xf8)]+':'+(_0x2f9498[_0x90b8f4(0xfb)]?_0x90b8f4(0xa6):_0x90b8f4(0xc5))):null});}[_0x19d490(0xbf)](_0x4056de,_0x40b6d5,_0x5cd77b=!0x1,_0x593152=!0x1){const _0x1a6b25=_0x19d490;if(this[_0x1a6b25(0xcb)]&&!_0x593152)return!0x1;const _0x5841c8=_0x808334(this[_0x1a6b25(0xd3)])[_0x1a6b25(0xdf)];return _0x5841c8[_0x1a6b25(0x103)](_0x52bf19=>{const _0x434865=_0x1a6b25;this[_0x434865(0xd5)]&&this[_0x434865(0xcd)](this[_0x434865(0xd5)]),this[_0x434865(0xd5)]=_0x40b6d5,this[_0x434865(0xcb)]=_0x5cd77b;let _0x142df1=0x0;for(let _0x26a874 of _0x4056de){const _0x515511=_0x434865(0xc9)+_0x142df1;if(_0x26a874[_0x434865(0xa6)][_0x434865(0xc8)]){const _0x5708b3=_0x26a874[_0x434865(0xa6)][_0x434865(0xf6)](({item:_0x102d00})=>!_0x5841c8[_0x434865(0xc7)][_0x434865(0xe1)](_0x102d00),{'boundaries':_0x26a874});_0x26a874=_0x52bf19[_0x434865(0x111)](_0x5708b3,_0x26a874[_0x434865(0xc5)]);}_0x52bf19[_0x434865(0xbe)](_0x515511,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x26a874}),_0x142df1++;}}),window[_0x1a6b25(0xb9)]()?.[_0x1a6b25(0x106)](),!0x0;}[_0x19d490(0xcd)](_0x4cf2cb){const _0x223d02=_0x19d490;if(this[_0x223d02(0xd5)]!=_0x4cf2cb)return!0x1;this[_0x223d02(0xd5)]=null,this[_0x223d02(0xcb)]=!0x1;const _0x2e6f80=_0x808334(this[_0x223d02(0xd3)]),_0x272537=_0x2e6f80[_0x223d02(0xdf)][_0x223d02(0x10c)][_0x223d02(0xac)](_0x223d02(0xb2));return _0x2e6f80[_0x223d02(0xdf)][_0x223d02(0x103)](_0x1490cc=>{const _0x301c47=_0x223d02;for(const _0x21e45b of _0x272537)_0x1490cc[_0x301c47(0xed)](_0x21e45b);}),!0x0;}async[_0x19d490(0xae)](_0x38f988){const _0x264014=_0x19d490,_0x5a7b3f=_0x808334(this[_0x264014(0xd3)]),_0x3b3dba=_0x5a7b3f[_0x264014(0x116)][_0x264014(0x105)](_0x38f988),_0x35dd3d=new _0x43dc16(_0x5a7b3f[_0x264014(0xdc)][_0x264014(0x100)][_0x264014(0x115)]);return this[_0x264014(0xb3)](_0x3b3dba,_0x35dd3d),this[_0x264014(0xd4)](_0x3b3dba);}[_0x19d490(0xb3)](_0x23db9a,_0x952068){const _0x5a9f79=_0x19d490;let _0x5009ee=!0x1;const _0x34f1e7=new Set();for(const _0x55079b of _0x23db9a[_0x5a9f79(0x113)]()){const _0x428b99=_0x55079b['is'](_0x5a9f79(0xe7))||_0x55079b['is'](_0x5a9f79(0x104));if(!_0x55079b['is'](_0x5a9f79(0xa4)))continue;(this[_0x5a9f79(0xb3)](_0x55079b,_0x952068)||_0x428b99)&&(_0x952068[_0x5a9f79(0xcc)](_0x5a9f79(0xff),this[_0x5a9f79(0xf5)](_0x34f1e7),_0x55079b),_0x5009ee=!0x0);}return _0x5009ee;}[_0x19d490(0xf5)](_0x59de1a){const _0x6dd5fb=_0x19d490;let _0x429daf;do{_0x429daf='';for(let _0x1e6e63=0x0;_0x1e6e63<0x4;_0x1e6e63++)_0x429daf+=String[_0x6dd5fb(0x107)](0x61+Math[_0x6dd5fb(0xdd)](0x1a*Math[_0x6dd5fb(0x110)]()));}while(_0x59de1a[_0x6dd5fb(0xcf)](_0x429daf));return _0x59de1a[_0x6dd5fb(0xa7)](_0x429daf),_0x429daf;}[_0x19d490(0x10a)](){const _0x58ce91=_0x19d490,{model:_0x145d9a}=_0x808334(this[_0x58ce91(0xd3)]),_0x4942c3=_0x145d9a[_0x58ce91(0x115)][_0x58ce91(0xfd)],_0x4fee38=[];for(const _0x35172d of _0x4942c3[_0x58ce91(0x101)]())for(const _0x75b0c of _0x35172d[_0x58ce91(0xf0)]())_0x75b0c['is'](_0x58ce91(0xaa))?_0x4fee38[_0x58ce91(0xe0)](_0x75b0c[_0x58ce91(0x116)]):_0x75b0c['is'](_0x58ce91(0xa4))&&_0x4fee38[_0x58ce91(0xb5)]>0x0&&'\x20'!==_0x4fee38[_0x4fee38[_0x58ce91(0xb5)]-0x1]&&_0x4fee38[_0x58ce91(0xe0)]('\x20');return _0x4fee38[_0x58ce91(0xb5)]?'\x22'+_0x4fee38[_0x58ce91(0xd2)]('')[_0x58ce91(0xa9)]()+'\x22':_0x284fdc(this[_0x58ce91(0xd3)][_0x58ce91(0x10d)],_0x58ce91(0xc6));}[_0x19d490(0xb6)](){const _0x4a1b51=_0x19d490,_0x291bb2=_0x808334(this[_0x4a1b51(0xd3)])[_0x4a1b51(0xdf)];return Array[_0x4a1b51(0xf3)](_0x291bb2[_0x4a1b51(0x10c)][_0x4a1b51(0xac)](_0x4a1b51(0xb2)))[_0x4a1b51(0xeb)]((_0x891690,_0x2dc1b0)=>_0x891690[_0x4a1b51(0xce)]()[_0x4a1b51(0x10e)](_0x2dc1b0[_0x4a1b51(0xce)]())?-0x1:_0x891690[_0x4a1b51(0xce)]()[_0x4a1b51(0xec)](_0x2dc1b0[_0x4a1b51(0xce)]())?0x1:0x0);}}
23
+ const _0x2fb984=_0x3fc8;(function(_0x3823aa,_0x4e22f5){const _0x15adc0=_0x3fc8,_0x37b412=_0x3823aa();while(!![]){try{const _0x388e31=parseInt(_0x15adc0(0x1ad))/0x1*(-parseInt(_0x15adc0(0x13c))/0x2)+-parseInt(_0x15adc0(0x195))/0x3+-parseInt(_0x15adc0(0x191))/0x4*(parseInt(_0x15adc0(0x198))/0x5)+parseInt(_0x15adc0(0x199))/0x6*(-parseInt(_0x15adc0(0x152))/0x7)+-parseInt(_0x15adc0(0x151))/0x8*(-parseInt(_0x15adc0(0x169))/0x9)+parseInt(_0x15adc0(0x186))/0xa*(parseInt(_0x15adc0(0x17e))/0xb)+parseInt(_0x15adc0(0x19d))/0xc;if(_0x388e31===_0x4e22f5)break;else _0x37b412['push'](_0x37b412['shift']());}catch(_0x18ed7f){_0x37b412['push'](_0x37b412['shift']());}}}(_0x24eb,0xa5a6a));import{ViewDowncastWriter as _0x101b34}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x244736,Editor as _0x547ac8}from'ckeditor5/src/core.js';function _0x24eb(){const _0x6564=['markerToElement','listenTo','ck-fake-ai-selection','ai-selection:','_outputDataProcessor','view','98296xYhfPT','259HZEHwo','viewToDom','define','editors','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','has','isAtEnd','end','add','random','context','_displayedFakeSelectionLocked','document','from',':start>','AIEditing','join','isAfter','getSelection','length','_integrateEditor','selection','pluginName','333CcsxhA','ck-ai-assistant-ui_theme','addMarker','getStart','hideFakeVisualSelection','change',':end></','containerElement','ready','indexOf','schema','isPremiumPlugin','getItems','model','convertAiChatSelectionMarker','getHtml','markerToHighlight','_setOutputDataProcessor','htmlWriter','_getMarkersInDocumentOrder','getRanges','99bfSOqe','for','config','createUIElement','version','data-id','dataDowncast','_displayedFakeSelectionId','577890tqKExa','markers','ai-selection','markerName','isOpening',':end>','editingDowncast','sessionId','editing','emptyElement','getRoot','176GZswLZ','ai.models.showModelSelector','data','getLastMatchingPosition','3931710cCTPxX','_sessionId','getSelectionText','46245CVazHB','167592nATecH','showFakeVisualSelection','_nextDataId','getMarkersGroup','37302348PiLxps','trim','substring','element','isBefore','$textProxy','_getDocumentDataStringFromView','getChildren','domConverter','conversion','isContent','toData','createRange','locale','sort',':start></','11469qKteCX','removeMarker','start','floor','get','114SWrufb','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','push','isOfficialPlugin','fromCharCode','plugins','toView','_setDataIdsOnChildren','getDocumentData','setAttribute','name','modelToDataWithIds'];_0x24eb=function(){return _0x6564;};return _0x24eb();}import{uid as _0x5213cd}from'ckeditor5/src/utils.js';function _0x3fc8(_0x50197b,_0x12ea02){const _0x24eb5e=_0x24eb();return _0x3fc8=function(_0x3fc87a,_0x569e79){_0x3fc87a=_0x3fc87a-0x139;let _0x55a56a=_0x24eb5e[_0x3fc87a];return _0x55a56a;},_0x3fc8(_0x50197b,_0x12ea02);}import{getTranslation as _0x2308f3}from'./utils/common-translations.js';import{getEditorFromContext as _0x15dd3a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2fb984(0x188);export class AIEditing extends _0x244736{constructor(_0x4a2532){const _0x2afc38=_0x2fb984;super(_0x4a2532),this[_0x2afc38(0x15c)][_0x2afc38(0x180)][_0x2afc38(0x154)](_0x2afc38(0x192),!0x0);}[_0x2fb984(0x14f)];[_0x2fb984(0x185)]=null;[_0x2fb984(0x15d)]=!0x1;[_0x2fb984(0x196)];static get[_0x2fb984(0x168)](){const _0x3bbd4d=_0x2fb984;return _0x3bbd4d(0x161);}static get[_0x2fb984(0x142)](){return!0x0;}static get[_0x2fb984(0x174)](){return!0x0;}get[_0x2fb984(0x18d)](){const _0x54de22=_0x2fb984;if(!this[_0x54de22(0x196)]){const _0x36a087=_0x15dd3a(this[_0x54de22(0x15c)]),_0x384bba=_0x36a087[_0x54de22(0x144)][_0x54de22(0x157)](_0x54de22(0x13f))&&_0x36a087[_0x54de22(0x144)][_0x54de22(0x13b)](_0x54de22(0x13f))[_0x54de22(0x18d)];this[_0x54de22(0x196)]=_0x384bba||_0x5213cd();}return this[_0x54de22(0x196)];}async[_0x2fb984(0x147)](){const _0x5c2c12=_0x2fb984,_0xbf65ad=_0x15dd3a(this[_0x5c2c12(0x15c)]),_0x4bd40a=_0xbf65ad[_0x5c2c12(0x176)],_0x3d6959=_0xbf65ad[_0x5c2c12(0x193)][_0x5c2c12(0x145)](_0x4bd40a[_0x5c2c12(0x15e)][_0x5c2c12(0x190)](),{'convertAiChatSelectionMarker':!0x0}),_0x5e3a0c=new _0x101b34(_0xbf65ad[_0x5c2c12(0x18e)][_0x5c2c12(0x150)][_0x5c2c12(0x15e)]);this[_0x5c2c12(0x146)](_0x3d6959,_0x5e3a0c);let _0x3a15fa=await this[_0x5c2c12(0x1a3)](_0x3d6959);const _0x16499a=this[_0x5c2c12(0x17c)](),_0x3d9ca2=[];for(const _0x3e0324 of _0x16499a){const _0x57e7ac='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x1ac)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x160),_0x57d239=_0x3a15fa[_0x5c2c12(0x172)](_0x57e7ac);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0x57d239)+_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239+_0x57e7ac[_0x5c2c12(0x165)]);const _0x48e0cd='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x16f)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x18b),_0xc33083=_0x3a15fa[_0x5c2c12(0x172)](_0x48e0cd);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0xc33083)+_0x3a15fa[_0x5c2c12(0x19f)](_0xc33083+_0x48e0cd[_0x5c2c12(0x165)]),_0x3d9ca2[_0x5c2c12(0x141)]({'markerName':_0x3e0324[_0x5c2c12(0x149)],'start':_0x57d239,'end':_0xc33083,'htmlFragment':_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239,_0xc33083)});}return{'content':_0x3a15fa,'version':_0xbf65ad[_0x5c2c12(0x176)][_0x5c2c12(0x15e)][_0x5c2c12(0x182)],'sessionId':this[_0x5c2c12(0x18d)],'selections':_0x3d9ca2};}async[_0x2fb984(0x13d)](){const _0x30da80=_0x2fb984;this[_0x30da80(0x15c)]instanceof _0x547ac8?this[_0x30da80(0x166)](this[_0x30da80(0x15c)]):this[_0x30da80(0x14c)](this[_0x30da80(0x15c)][_0x30da80(0x155)],_0x30da80(0x15a),(_0x39ad89,_0x34d820)=>{const _0x3ac0ac=_0x30da80;_0x34d820['on'](_0x3ac0ac(0x171),()=>{const _0xd08f6d=_0x3ac0ac;this[_0xd08f6d(0x166)](_0x34d820);});});}[_0x2fb984(0x17a)](_0x1b2337){const _0x2dd3ba=_0x2fb984;this[_0x2dd3ba(0x14f)]=_0x1b2337;}async[_0x2fb984(0x1a3)](_0x5b4154){const _0x4f3d81=_0x2fb984;let _0x3b6c83;const _0x2a49b8=_0x15dd3a(this[_0x4f3d81(0x15c)]);if(this[_0x4f3d81(0x14f)]){const _0x5f2749=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a5)][_0x4f3d81(0x153)](_0x5b4154),_0x4d67cf=await this[_0x4f3d81(0x14f)](_0x5f2749);_0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x17b)][_0x4f3d81(0x178)](_0x4d67cf);}else _0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a8)](_0x5b4154);return _0x3b6c83;}[_0x2fb984(0x166)](_0x23d6f9){const _0x3c8381=_0x2fb984;_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x18c))[_0x3c8381(0x179)]({'model':_0x3c8381(0x188),'view':{'classes':[_0x3c8381(0x14d),_0x3c8381(0x16a)],'priority':0xc}}),_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x184))[_0x3c8381(0x14b)]({'model':_0x3c8381(0x188),'view':(_0x1706d6,{writer:_0x50136f,options:_0x2376b7})=>_0x2376b7[_0x3c8381(0x177)]?_0x50136f[_0x3c8381(0x181)](_0x1706d6[_0x3c8381(0x189)]+':'+(_0x1706d6[_0x3c8381(0x18a)]?_0x3c8381(0x139):_0x3c8381(0x159))):null});}[_0x2fb984(0x19a)](_0x2270ec,_0x38253a,_0x273af2=!0x1,_0x27dbe8=!0x1){const _0x3efb43=_0x2fb984;if(this[_0x3efb43(0x15d)]&&!_0x27dbe8)return!0x1;const _0x2644ed=_0x15dd3a(this[_0x3efb43(0x15c)])[_0x3efb43(0x176)];return _0x2644ed[_0x3efb43(0x16e)](_0x228618=>{const _0x32555e=_0x3efb43;this[_0x32555e(0x185)]&&this[_0x32555e(0x16d)](this[_0x32555e(0x185)]),this[_0x32555e(0x185)]=_0x38253a,this[_0x32555e(0x15d)]=_0x273af2;let _0x13ebd4=0x0;for(let _0xee4e4a of _0x2270ec){const _0x1dfe19=_0x32555e(0x14e)+_0x13ebd4;if(_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x158)]){const _0x5855cb=_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x194)](({item:_0x14a65a})=>!_0x2644ed[_0x32555e(0x173)][_0x32555e(0x1a7)](_0x14a65a),{'boundaries':_0xee4e4a});_0xee4e4a=_0x228618[_0x32555e(0x1a9)](_0x5855cb,_0xee4e4a[_0x32555e(0x159)]);}_0x228618[_0x32555e(0x16b)](_0x1dfe19,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee4e4a}),_0x13ebd4++;}}),window[_0x3efb43(0x164)]()?.[_0x3efb43(0x140)](),!0x0;}[_0x2fb984(0x16d)](_0x305806){const _0x38eca1=_0x2fb984;if(this[_0x38eca1(0x185)]!=_0x305806)return!0x1;this[_0x38eca1(0x185)]=null,this[_0x38eca1(0x15d)]=!0x1;const _0x4a9bf2=_0x15dd3a(this[_0x38eca1(0x15c)]),_0x27aadf=_0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x187)][_0x38eca1(0x19c)](_0x38eca1(0x188));return _0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x16e)](_0xee9c98=>{const _0x2998a4=_0x38eca1;for(const _0x262919 of _0x27aadf)_0xee9c98[_0x2998a4(0x1ae)](_0x262919);}),!0x0;}async[_0x2fb984(0x14a)](_0x3e8dc7){const _0xb04cbe=_0x2fb984,_0x422c8e=_0x15dd3a(this[_0xb04cbe(0x15c)]),_0x664a14=_0x422c8e[_0xb04cbe(0x193)][_0xb04cbe(0x145)](_0x3e8dc7),_0x4cdde6=new _0x101b34(_0x422c8e[_0xb04cbe(0x18e)][_0xb04cbe(0x150)][_0xb04cbe(0x15e)]);return this[_0xb04cbe(0x146)](_0x664a14,_0x4cdde6),this[_0xb04cbe(0x1a3)](_0x664a14);}[_0x2fb984(0x146)](_0x3fe8d4,_0x271e4c){const _0x56f857=_0x2fb984;let _0x5152de=!0x1;const _0x2ccde9=new Set();for(const _0x3bdbd4 of _0x3fe8d4[_0x56f857(0x1a4)]()){const _0x6b1274=_0x3bdbd4['is'](_0x56f857(0x18f))||_0x3bdbd4['is'](_0x56f857(0x170));if(!_0x3bdbd4['is'](_0x56f857(0x1a0)))continue;(this[_0x56f857(0x146)](_0x3bdbd4,_0x271e4c)||_0x6b1274)&&(_0x271e4c[_0x56f857(0x148)](_0x56f857(0x183),this[_0x56f857(0x19b)](_0x2ccde9),_0x3bdbd4),_0x5152de=!0x0);}return _0x5152de;}[_0x2fb984(0x19b)](_0x55e597){const _0x3e1e1b=_0x2fb984;let _0x20e333;do{_0x20e333='';for(let _0x3ae4e6=0x0;_0x3ae4e6<0x4;_0x3ae4e6++)_0x20e333+=String[_0x3e1e1b(0x143)](0x61+Math[_0x3e1e1b(0x13a)](0x1a*Math[_0x3e1e1b(0x15b)]()));}while(_0x55e597[_0x3e1e1b(0x157)](_0x20e333));return _0x55e597[_0x3e1e1b(0x15a)](_0x20e333),_0x20e333;}[_0x2fb984(0x197)](){const _0x20821d=_0x2fb984,{model:_0x317dd4}=_0x15dd3a(this[_0x20821d(0x15c)]),_0x18e8a4=_0x317dd4[_0x20821d(0x15e)][_0x20821d(0x167)],_0x22fdbb=[];for(const _0x187ac2 of _0x18e8a4[_0x20821d(0x17d)]())for(const _0x28ad8d of _0x187ac2[_0x20821d(0x175)]())_0x28ad8d['is'](_0x20821d(0x1a2))?_0x22fdbb[_0x20821d(0x141)](_0x28ad8d[_0x20821d(0x193)]):_0x28ad8d['is'](_0x20821d(0x1a0))&&_0x22fdbb[_0x20821d(0x165)]>0x0&&'\x20'!==_0x22fdbb[_0x22fdbb[_0x20821d(0x165)]-0x1]&&_0x22fdbb[_0x20821d(0x141)]('\x20');return _0x22fdbb[_0x20821d(0x165)]?'\x22'+_0x22fdbb[_0x20821d(0x162)]('')[_0x20821d(0x19e)]()+'\x22':_0x2308f3(this[_0x20821d(0x15c)][_0x20821d(0x1aa)],_0x20821d(0x156));}[_0x2fb984(0x17c)](){const _0x7f5fe7=_0x2fb984,_0x7ef9cb=_0x15dd3a(this[_0x7f5fe7(0x15c)])[_0x7f5fe7(0x176)];return Array[_0x7f5fe7(0x15f)](_0x7ef9cb[_0x7f5fe7(0x187)][_0x7f5fe7(0x19c)](_0x7f5fe7(0x188)))[_0x7f5fe7(0x1ab)]((_0x253ecb,_0x3be55b)=>_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x1a1)](_0x3be55b[_0x7f5fe7(0x16c)]())?-0x1:_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x163)](_0x3be55b[_0x7f5fe7(0x16c)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x432a5a=_0x2e4d;function _0x2e4d(_0x20fc53,_0x3e56af){const _0x2067d2=_0x2067();return _0x2e4d=function(_0x2e4da2,_0x4680ef){_0x2e4da2=_0x2e4da2-0xca;let _0x4b3e8d=_0x2067d2[_0x2e4da2];return _0x4b3e8d;},_0x2e4d(_0x20fc53,_0x3e56af);}(function(_0x1d85b3,_0x5312fe){const _0x402af2=_0x2e4d,_0x10098a=_0x1d85b3();while(!![]){try{const _0x20a7ba=-parseInt(_0x402af2(0xe0))/0x1+parseInt(_0x402af2(0xd0))/0x2*(-parseInt(_0x402af2(0xd7))/0x3)+-parseInt(_0x402af2(0xe1))/0x4+-parseInt(_0x402af2(0xd5))/0x5+parseInt(_0x402af2(0xd9))/0x6+parseInt(_0x402af2(0xce))/0x7*(-parseInt(_0x402af2(0xd6))/0x8)+-parseInt(_0x402af2(0xd4))/0x9*(-parseInt(_0x402af2(0xd1))/0xa);if(_0x20a7ba===_0x5312fe)break;else _0x10098a['push'](_0x10098a['shift']());}catch(_0x4d2cbd){_0x10098a['push'](_0x10098a['shift']());}}}(_0x2067,0xbd59a));import{EmitterMixin as _0x1ecc55}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x432a5a(0xd3)];function _0x2067(){const _0x4cbf68=['8ClXoDD','239991HidKyn','getCapabilitiesConfig','3701772KtJxtd','reasoning','toggleWebSearch','getCapabilitiesRequestData','_isWebSearchEnabled','reset','isReasoningEnabled','340428qYfjDA','1375100xpaclJ','_isReasoningEnabled','toggleReasoning','init','setReasoning','isWebSearchEnabled','setWebSearch','719488lsKHiB','webSearch','28xGmGns','29555590FCySdK','fire','capabilitiesUpdated','9PiEhuo','4449990OsVGYL'];_0x2067=function(){return _0x4cbf68;};return _0x2067();}export class AICapabilities extends _0x1ecc55(){[_0x432a5a(0xdd)];[_0x432a5a(0xe2)];constructor(){const _0x351ee1=_0x432a5a;super(),this[_0x351ee1(0xdd)]=!0x1,this[_0x351ee1(0xe2)]=!0x1;}[_0x432a5a(0xca)](){const _0x6c6882=_0x432a5a;this[_0x6c6882(0xde)]();}[_0x432a5a(0xde)](){const _0x38eed6=_0x432a5a;this[_0x38eed6(0xcd)](!0x1),this[_0x38eed6(0xcb)](!0x1);}[_0x432a5a(0xd8)](){const _0x435528=_0x432a5a;return{'isWebSearchEnabled':this[_0x435528(0xdd)],'isReasoningEnabled':this[_0x435528(0xe2)]};}static[_0x432a5a(0xdc)](_0x26b620){const _0x34b539=_0x432a5a,_0x121dcb={};return _0x26b620&&_0x26b620[_0x34b539(0xcc)]&&(_0x121dcb[_0x34b539(0xcf)]={}),_0x26b620&&_0x26b620[_0x34b539(0xdf)]&&(_0x121dcb[_0x34b539(0xda)]={}),_0x121dcb;}[_0x432a5a(0xdb)](){const _0x1c6a14=_0x432a5a;this[_0x1c6a14(0xcd)](!this[_0x1c6a14(0xdd)]);}[_0x432a5a(0xe3)](){const _0x214b7d=_0x432a5a;this[_0x214b7d(0xcb)](!this[_0x214b7d(0xe2)]);}[_0x432a5a(0xcd)](_0x182961){const _0x17b36b=_0x432a5a;_0x182961!==this[_0x17b36b(0xdd)]&&(this[_0x17b36b(0xdd)]=_0x182961,this[_0x17b36b(0xd2)](_0x17b36b(0xd3),this[_0x17b36b(0xd8)]()));}[_0x432a5a(0xcb)](_0x3744fb){const _0x186048=_0x432a5a;_0x3744fb!==this[_0x186048(0xe2)]&&(this[_0x186048(0xe2)]=_0x3744fb,this[_0x186048(0xd2)](_0x186048(0xd3),this[_0x186048(0xd8)]()));}}
23
+ const _0x4d5bc8=_0x1203;function _0x426d(){const _0x3b3651=['isReasoningEnabled','isWebSearchEnabled','fire','init','toggleWebSearch','reasoning','16kMHOAi','reset','getCapabilitiesConfig','2528624MnZTqv','18468ltLRHE','598vTtuTj','_isWebSearchEnabled','toggleReasoning','getCapabilitiesRequestData','3356BajEiS','setReasoning','6605126GAAcxm','2490xLxcWL','_isReasoningEnabled','capabilitiesUpdated','1919728tdXtFa','117uDRIxe','webSearch','setWebSearch','980841hOwlUL','160260CNXWja'];_0x426d=function(){return _0x3b3651;};return _0x426d();}(function(_0x3446ce,_0x493d89){const _0x45af3c=_0x1203,_0x501762=_0x3446ce();while(!![]){try{const _0x100c5f=parseInt(_0x45af3c(0x16a))/0x1*(-parseInt(_0x45af3c(0x16e))/0x2)+parseInt(_0x45af3c(0x178))/0x3*(parseInt(_0x45af3c(0x165))/0x4)+parseInt(_0x45af3c(0x171))/0x5*(parseInt(_0x45af3c(0x169))/0x6)+-parseInt(_0x45af3c(0x168))/0x7+parseInt(_0x45af3c(0x174))/0x8+parseInt(_0x45af3c(0x175))/0x9*(-parseInt(_0x45af3c(0x15e))/0xa)+-parseInt(_0x45af3c(0x170))/0xb;if(_0x100c5f===_0x493d89)break;else _0x501762['push'](_0x501762['shift']());}catch(_0x1af647){_0x501762['push'](_0x501762['shift']());}}}(_0x426d,0xdd76e));import{EmitterMixin as _0x3df5b1}from'ckeditor5/src/utils.js';function _0x1203(_0x58fab2,_0x54ab18){const _0x426de1=_0x426d();return _0x1203=function(_0x1203a7,_0x475bb7){_0x1203a7=_0x1203a7-0x15e;let _0x26ae8d=_0x426de1[_0x1203a7];return _0x26ae8d;},_0x1203(_0x58fab2,_0x54ab18);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4d5bc8(0x173)];export class AICapabilities extends _0x3df5b1(){[_0x4d5bc8(0x16b)];[_0x4d5bc8(0x172)];constructor(){const _0x40b306=_0x4d5bc8;super(),this[_0x40b306(0x16b)]=!0x1,this[_0x40b306(0x172)]=!0x1;}[_0x4d5bc8(0x162)](){const _0x2c7bea=_0x4d5bc8;this[_0x2c7bea(0x166)]();}[_0x4d5bc8(0x166)](){const _0x2f0c8b=_0x4d5bc8;this[_0x2f0c8b(0x177)](!0x1),this[_0x2f0c8b(0x16f)](!0x1);}[_0x4d5bc8(0x167)](){const _0x2ca375=_0x4d5bc8;return{'isWebSearchEnabled':this[_0x2ca375(0x16b)],'isReasoningEnabled':this[_0x2ca375(0x172)]};}static[_0x4d5bc8(0x16d)](_0x57598c){const _0x497fca=_0x4d5bc8,_0x202aeb={};return _0x57598c&&_0x57598c[_0x497fca(0x160)]&&(_0x202aeb[_0x497fca(0x176)]={}),_0x57598c&&_0x57598c[_0x497fca(0x15f)]&&(_0x202aeb[_0x497fca(0x164)]={}),_0x202aeb;}[_0x4d5bc8(0x163)](){const _0x48e94a=_0x4d5bc8;this[_0x48e94a(0x177)](!this[_0x48e94a(0x16b)]);}[_0x4d5bc8(0x16c)](){const _0x53831c=_0x4d5bc8;this[_0x53831c(0x16f)](!this[_0x53831c(0x172)]);}[_0x4d5bc8(0x177)](_0x3d36f9){const _0x33ea1a=_0x4d5bc8;_0x3d36f9!==this[_0x33ea1a(0x16b)]&&(this[_0x33ea1a(0x16b)]=_0x3d36f9,this[_0x33ea1a(0x161)](_0x33ea1a(0x173),this[_0x33ea1a(0x167)]()));}[_0x4d5bc8(0x16f)](_0x52669a){const _0x5adf27=_0x4d5bc8;_0x52669a!==this[_0x5adf27(0x172)]&&(this[_0x5adf27(0x172)]=_0x52669a,this[_0x5adf27(0x161)](_0x5adf27(0x173),this[_0x5adf27(0x167)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3726(){var _0x4c625b=['376006RRTbRr','1495071QyVQUh','document','72tPceFQ','FILE','3jsGKqF','315581ztdgpy','MARKDOWN','text','2732955VaxBQJ','html','file','HTML','TEXT','selection','DOCUMENT','URL','markdown','SELECTION','2183496qMIzuV','mcp-tool-context','2270508oUyUfH','web-resource','TOOL','152373nPtHTw'];_0x3726=function(){return _0x4c625b;};return _0x3726();}function _0x576d(_0x2ba927,_0x3461d5){var _0x3726d7=_0x3726();return _0x576d=function(_0x576dcc,_0x3ed65e){_0x576dcc=_0x576dcc-0xe8;var _0x3d889f=_0x3726d7[_0x576dcc];return _0x3d889f;},_0x576d(_0x2ba927,_0x3461d5);}(function(_0xe0f37,_0x50b9f7){var _0x17c3c7=_0x576d,_0x3eced4=_0xe0f37();while(!![]){try{var _0x4cdfa5=parseInt(_0x17c3c7(0xef))/0x1*(-parseInt(_0x17c3c7(0xea))/0x2)+-parseInt(_0x17c3c7(0xe9))/0x3+-parseInt(_0x17c3c7(0xff))/0x4+parseInt(_0x17c3c7(0xf3))/0x5+-parseInt(_0x17c3c7(0xed))/0x6*(-parseInt(_0x17c3c7(0xf0))/0x7)+parseInt(_0x17c3c7(0xfd))/0x8+parseInt(_0x17c3c7(0xeb))/0x9;if(_0x4cdfa5===_0x50b9f7)break;else _0x3eced4['push'](_0x3eced4['shift']());}catch(_0xed073b){_0x3eced4['push'](_0x3eced4['shift']());}}}(_0x3726,0x54098));export var AIContextItemType;!function(_0x2e5078){var _0xae4dd3=_0x576d;_0x2e5078[_0xae4dd3(0xe8)]=_0xae4dd3(0xfe),_0x2e5078[_0xae4dd3(0xee)]=_0xae4dd3(0xf5),_0x2e5078[_0xae4dd3(0xf9)]=_0xae4dd3(0xec),_0x2e5078[_0xae4dd3(0xfa)]=_0xae4dd3(0x100),_0x2e5078[_0xae4dd3(0xf7)]=_0xae4dd3(0xf2),_0x2e5078[_0xae4dd3(0xfc)]=_0xae4dd3(0xf8);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x4cc165){var _0x1d1ac8=_0x576d;_0x4cc165[_0x1d1ac8(0xf7)]=_0x1d1ac8(0xf2),_0x4cc165[_0x1d1ac8(0xf1)]=_0x1d1ac8(0xfb),_0x4cc165[_0x1d1ac8(0xf6)]=_0x1d1ac8(0xf4);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ function _0x697a(){var _0x3dc59a=['text','341340adTnnp','5232073iqAsAT','TOOL','1555767xveDLt','DOCUMENT','FILE','1554726tWrQKR','TEXT','mcp-tool-context','4749590hwffkj','document','MARKDOWN','html','22GLpJol','URL','18549oBItEX','4fKyeif','2454258CQhebm','HTML','web-resource','SELECTION','1440DyoMtK','file','markdown','55tUjyIg','selection'];_0x697a=function(){return _0x3dc59a;};return _0x697a();}function _0x197f(_0x22c11a,_0x21f5dd){var _0x697a94=_0x697a();return _0x197f=function(_0x197f64,_0x5b042e){_0x197f64=_0x197f64-0x184;var _0x163fb9=_0x697a94[_0x197f64];return _0x163fb9;},_0x197f(_0x22c11a,_0x21f5dd);}(function(_0x4013a6,_0x42865a){var _0x42bd4c=_0x197f,_0x5cd3f8=_0x4013a6();while(!![]){try{var _0x38a3c5=-parseInt(_0x42bd4c(0x18a))/0x1+-parseInt(_0x42bd4c(0x197))/0x2*(-parseInt(_0x42bd4c(0x18d))/0x3)+parseInt(_0x42bd4c(0x187))/0x4*(parseInt(_0x42bd4c(0x184))/0x5)+parseInt(_0x42bd4c(0x198))/0x6+parseInt(_0x42bd4c(0x188))/0x7+parseInt(_0x42bd4c(0x19c))/0x8*(parseInt(_0x42bd4c(0x196))/0x9)+parseInt(_0x42bd4c(0x190))/0xa*(-parseInt(_0x42bd4c(0x194))/0xb);if(_0x38a3c5===_0x42865a)break;else _0x5cd3f8['push'](_0x5cd3f8['shift']());}catch(_0x2761c2){_0x5cd3f8['push'](_0x5cd3f8['shift']());}}}(_0x697a,0xf3652));export var AIContextItemType;!function(_0x18a3b0){var _0x5cf2ea=_0x197f;_0x18a3b0[_0x5cf2ea(0x189)]=_0x5cf2ea(0x18f),_0x18a3b0[_0x5cf2ea(0x18c)]=_0x5cf2ea(0x19d),_0x18a3b0[_0x5cf2ea(0x18b)]=_0x5cf2ea(0x191),_0x18a3b0[_0x5cf2ea(0x195)]=_0x5cf2ea(0x19a),_0x18a3b0[_0x5cf2ea(0x18e)]=_0x5cf2ea(0x186),_0x18a3b0[_0x5cf2ea(0x19b)]=_0x5cf2ea(0x185);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x542312){var _0x474eec=_0x197f;_0x542312[_0x474eec(0x18e)]=_0x474eec(0x186),_0x542312[_0x474eec(0x192)]=_0x474eec(0x19e),_0x542312[_0x474eec(0x199)]=_0x474eec(0x193);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2889(){const _0x7e2bfc=['conversationTitle','conversation-title','getDocumentContext','toolName','createReply','stopListening','currentRequest','find','type','mcp-tool-result','delegate','currentReply','editor','notification','source','done','1182789vqHZmH','getReply','_handleToolResultData','mcp-tool-notification','isStopped','forEach','sendRequest','91049FIDFmO','reasoningStarted','action-metadata','replyChangeGroupStateUpdated','interactionCreated','553580GxgLOu','webSearchStarted','abort','resetWebSearchState','interactionDestroyed','start','334ycvNap','stop','sources','interactionStarted','text','attributes','getStream','modification-delta','parse','splice','event','abortController','110wMBnTr','message-metadata','78UqoFLa','webSearchFinished','callId','reasoning','destroy','error','7404gMMFhh','toolDataReceived','actionCallId','fire','replies','modification','reasoningFinished','interactionFinished','2859008qwOmDZ','_handleToolNotificationData','_finalizeInteraction','appendContent','messageId','isDestroyed','push','replyCreated','1236910fXUiKU','web-search','ai-chat-interaction-error','connector','replyContentUpdated','data','392396EgNQmo','resetReasoningState','setConversationTitle','content','interactionStopped','result','textDelta','length','text-delta','_isReasoning','_isWebSearching'];_0x2889=function(){return _0x7e2bfc;};return _0x2889();}function _0x5a63(_0x48615b,_0x41b83e){const _0x28897c=_0x2889();return _0x5a63=function(_0x5a63f3,_0x39f137){_0x5a63f3=_0x5a63f3-0x190;let _0x18f840=_0x28897c[_0x5a63f3];return _0x18f840;},_0x5a63(_0x48615b,_0x41b83e);}const _0x1632e7=_0x5a63;(function(_0x502dcb,_0x739904){const _0x115c13=_0x5a63,_0x5bf0d3=_0x502dcb();while(!![]){try{const _0x4ab0fe=-parseInt(_0x115c13(0x19e))/0x1+-parseInt(_0x115c13(0x1cb))/0x2*(parseInt(_0x115c13(0x1df))/0x3)+-parseInt(_0x115c13(0x1c5))/0x4+parseInt(_0x115c13(0x198))/0x5+parseInt(_0x115c13(0x1d9))/0x6*(-parseInt(_0x115c13(0x1c0))/0x7)+-parseInt(_0x115c13(0x190))/0x8+parseInt(_0x115c13(0x1b9))/0x9*(parseInt(_0x115c13(0x1d7))/0xa);if(_0x4ab0fe===_0x739904)break;else _0x5bf0d3['push'](_0x5bf0d3['shift']());}catch(_0x44d8a4){_0x5bf0d3['push'](_0x5bf0d3['shift']());}}}(_0x2889,0x3696f));import{CKEditorError as _0x2bade3,EmitterMixin as _0x4fb09a,uid as _0x4b19cf}from'ckeditor5/src/utils.js';import{AIReply as _0x5c245b}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x1632e7(0x1c4),_0x1632e7(0x1ce),_0x1632e7(0x1a2),_0x1632e7(0x1e6),_0x1632e7(0x1c9),_0x1632e7(0x197),_0x1632e7(0x19c),_0x1632e7(0x1c3),_0x1632e7(0x1a0),_0x1632e7(0x1c6),_0x1632e7(0x1da),_0x1632e7(0x1c1),_0x1632e7(0x1e5),_0x1632e7(0x1e0),_0x1632e7(0x1de)];export class AIInteraction extends _0x4fb09a(){['id'];[_0x1632e7(0x1e3)]=[];[_0x1632e7(0x1b4)];[_0x1632e7(0x194)];[_0x1632e7(0x1e1)];[_0x1632e7(0x1af)];[_0x1632e7(0x19b)];[_0x1632e7(0x1bd)]=!0x1;[_0x1632e7(0x195)]=!0x1;[_0x1632e7(0x1b5)];[_0x1632e7(0x1a7)]=!0x1;[_0x1632e7(0x1a8)]=!0x1;constructor({connector:_0x105ec9,editor:_0x1ef76f}){const _0x37ad73=_0x1632e7;super(),this['id']=_0x4b19cf(),this[_0x37ad73(0x19b)]=_0x105ec9,this[_0x37ad73(0x1bd)]=!0x0,this[_0x37ad73(0x1b5)]=_0x1ef76f;}async[_0x1632e7(0x1ca)](){const _0x4c8631=_0x1632e7,_0x2a427a=[];let _0x4e7307,_0x50eac4,_0x3270be;this[_0x4c8631(0x1bd)]=!0x1;try{this[_0x4c8631(0x1af)]=await this[_0x4c8631(0x1bf)](),this[_0x4c8631(0x1e2)](_0x4c8631(0x1ce),this);const _0x29deab=await this[_0x4c8631(0x1af)][_0x4c8631(0x1d1)]();for await(const _0x39f2ac of _0x29deab){if(this[_0x4c8631(0x1bd)])return;if(_0x4c8631(0x1de)==_0x39f2ac[_0x4c8631(0x1d5)])return void this[_0x4c8631(0x1e2)](_0x4c8631(0x1de),{'error':new _0x2bade3(_0x4c8631(0x19a),this)});switch(_0x39f2ac[_0x4c8631(0x1d5)]){case _0x4c8631(0x1d8):this[_0x4c8631(0x194)]=_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x194)];break;case _0x4c8631(0x1c2):this[_0x4c8631(0x1e1)]=_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1db)];break;case _0x4c8631(0x1aa):this[_0x4c8631(0x1a0)](_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1a9)],!0x0);break;case _0x4c8631(0x1b7):_0x2a427a[_0x4c8631(0x196)](_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1b7)]);break;case _0x4c8631(0x199):this[_0x4c8631(0x1a8)]||(this[_0x4c8631(0x1a8)]=!0x0,this[_0x4c8631(0x1e2)](_0x4c8631(0x1c6),this));break;case _0x4c8631(0x1dc):this[_0x4c8631(0x1a7)]||(this[_0x4c8631(0x1a7)]=!0x0,this[_0x4c8631(0x1e2)](_0x4c8631(0x1c1),this));break;case _0x4c8631(0x1d2):case _0x4c8631(0x1a6):this[_0x4c8631(0x19f)](),this[_0x4c8631(0x1c8)](),_0x4e7307=_0x4c8631(0x1d2)==_0x39f2ac[_0x4c8631(0x1d5)]?_0x4c8631(0x1e4):_0x4c8631(0x1cf),_0x50eac4=_0x4c8631(0x1d2)==_0x39f2ac[_0x4c8631(0x1d5)]?_0x39f2ac[_0x4c8631(0x19d)]['id']:void 0x0,this[_0x4c8631(0x1b4)]&&this[_0x4c8631(0x1b4)][_0x4c8631(0x1b1)]!=_0x4e7307&&(this[_0x4c8631(0x1b4)][_0x4c8631(0x1b8)](),this[_0x4c8631(0x1b4)]=void 0x0),this[_0x4c8631(0x1b4)]||(this[_0x4c8631(0x1b4)]=this[_0x4c8631(0x1ad)]({'type':_0x4e7307,'interactionId':this['id'],'id':_0x50eac4}),_0x4c8631(0x1e4)==_0x4e7307&&(this[_0x4c8631(0x1b4)][_0x4c8631(0x1cd)]=_0x2a427a[_0x4c8631(0x1d4)](0x0))),this[_0x4c8631(0x1b4)][_0x4c8631(0x193)](_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1a4)]);break;case _0x4c8631(0x1b2):_0x3270be=JSON[_0x4c8631(0x1d3)](_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1a3)]),this[_0x4c8631(0x1bb)]({'toolName':_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1ac)],'data':_0x3270be[_0x4c8631(0x19d)],'attributes':_0x3270be[_0x4c8631(0x1d0)]});break;case _0x4c8631(0x1bc):this[_0x4c8631(0x191)]({'toolName':_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x1ac)],'data':_0x39f2ac[_0x4c8631(0x19d)][_0x4c8631(0x19d)]});}}}finally{this[_0x4c8631(0x1bd)]||(this[_0x4c8631(0x1b4)]&&_0x2a427a[_0x4c8631(0x1a5)]>0x0&&(this[_0x4c8631(0x1b4)][_0x4c8631(0x1cd)]=_0x2a427a[_0x4c8631(0x1d4)](0x0)),this[_0x4c8631(0x192)](),this[_0x4c8631(0x1e2)](_0x4c8631(0x1e6),this));}}[_0x1632e7(0x1cc)](){const _0x3fe3d0=_0x1632e7;this[_0x3fe3d0(0x1bd)]||(this[_0x3fe3d0(0x192)](),this[_0x3fe3d0(0x1e2)](_0x3fe3d0(0x1a2),this));}[_0x1632e7(0x1ba)](_0x3df319){const _0xa28599=_0x1632e7;return this[_0xa28599(0x1e3)][_0xa28599(0x1b0)](_0x55a91e=>_0x55a91e['id']===_0x3df319);}[_0x1632e7(0x1dd)](){const _0x100ee1=_0x1632e7;this[_0x100ee1(0x195)]||(this[_0x100ee1(0x1cc)](),this[_0x100ee1(0x1e3)][_0x100ee1(0x1be)](_0x3e7851=>_0x3e7851[_0x100ee1(0x1dd)]()),this[_0x100ee1(0x1e3)]=[],this[_0x100ee1(0x195)]=!0x0,this[_0x100ee1(0x1e2)](_0x100ee1(0x1c9),this),this[_0x100ee1(0x1ae)]());}[_0x1632e7(0x1ad)](_0x460b8c){const _0xbf18b0=_0x1632e7,_0x5f584d=new _0x5c245b({'editor':this[_0xbf18b0(0x1b5)],'documentContextContent':this[_0xbf18b0(0x1ab)]()?.[_0xbf18b0(0x1a1)],..._0x460b8c});return this[_0xbf18b0(0x1e3)][_0xbf18b0(0x196)](_0x5f584d),_0x5f584d[_0xbf18b0(0x1b3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xbf18b0(0x1e2)](_0xbf18b0(0x197),_0x5f584d),_0x5f584d;}[_0x1632e7(0x1a0)](_0x3a4646,_0x4f8813=!0x1){const _0x5fcf68=_0x1632e7;this[_0x5fcf68(0x1e2)](_0x5fcf68(0x1a0),_0x3a4646,_0x4f8813);}[_0x1632e7(0x1c8)](){const _0xf57083=_0x1632e7;this[_0xf57083(0x1a8)]&&(this[_0xf57083(0x1a8)]=!0x1,this[_0xf57083(0x1e2)](_0xf57083(0x1da),this));}[_0x1632e7(0x19f)](){const _0x45ec9c=_0x1632e7;this[_0x45ec9c(0x1a7)]&&(this[_0x45ec9c(0x1a7)]=!0x1,this[_0x45ec9c(0x1e2)](_0x45ec9c(0x1e5),this));}[_0x1632e7(0x1bb)](_0x5b34a7){const _0xf52d49=_0x1632e7;this[_0xf52d49(0x1e2)](_0xf52d49(0x1e0),{'type':_0xf52d49(0x1a3),'toolName':_0x5b34a7[_0xf52d49(0x1ac)],'data':structuredClone(_0x5b34a7[_0xf52d49(0x19d)]||{}),'attributes':structuredClone(_0x5b34a7[_0xf52d49(0x1d0)]||{})},this);}[_0x1632e7(0x191)](_0x5dc6d1){const _0x21591c=_0x1632e7;this[_0x21591c(0x1e2)](_0x21591c(0x1e0),{'type':_0x21591c(0x1b6),'toolName':_0x5dc6d1[_0x21591c(0x1ac)],'data':structuredClone(_0x5dc6d1[_0x21591c(0x19d)])},this);}[_0x1632e7(0x192)](){const _0x270a51=_0x1632e7;this[_0x270a51(0x1bd)]=!0x0,this[_0x270a51(0x1af)]&&this[_0x270a51(0x1af)][_0x270a51(0x1d6)][_0x270a51(0x1c7)](),this[_0x270a51(0x1b4)]&&this[_0x270a51(0x1b4)][_0x270a51(0x1b8)](),this[_0x270a51(0x1af)]=this[_0x270a51(0x1b4)]=void 0x0;}}
23
+ const _0x3b72c7=_0x2e91;(function(_0x31c433,_0x2456b5){const _0x3fa0ec=_0x2e91,_0x123dd2=_0x31c433();while(!![]){try{const _0x12157a=-parseInt(_0x3fa0ec(0x15a))/0x1*(-parseInt(_0x3fa0ec(0x18e))/0x2)+parseInt(_0x3fa0ec(0x154))/0x3+parseInt(_0x3fa0ec(0x155))/0x4*(parseInt(_0x3fa0ec(0x157))/0x5)+-parseInt(_0x3fa0ec(0x1a0))/0x6*(parseInt(_0x3fa0ec(0x162))/0x7)+parseInt(_0x3fa0ec(0x159))/0x8*(parseInt(_0x3fa0ec(0x198))/0x9)+parseInt(_0x3fa0ec(0x15b))/0xa+-parseInt(_0x3fa0ec(0x156))/0xb*(parseInt(_0x3fa0ec(0x199))/0xc);if(_0x12157a===_0x2456b5)break;else _0x123dd2['push'](_0x123dd2['shift']());}catch(_0x26ea13){_0x123dd2['push'](_0x123dd2['shift']());}}}(_0x16ae,0x2914b));function _0x2e91(_0x43bc02,_0x5674b3){const _0x16ae11=_0x16ae();return _0x2e91=function(_0x2e918e,_0x19fce2){_0x2e918e=_0x2e918e-0x149;let _0x307d25=_0x16ae11[_0x2e918e];return _0x307d25;},_0x2e91(_0x43bc02,_0x5674b3);}function _0x16ae(){const _0x211879=['textDelta','interactionDestroyed','reasoningStarted','sources','modification-delta','setConversationTitle','stopListening','messageId','callId','text-delta','find','currentReply','appendContent','mcp-tool-notification','replyChangeGroupStateUpdated','interactionCreated','resetReasoningState','toolDataReceived','getDocumentContext','mcp-tool-result','message-metadata','interactionStarted','fire','forEach','destroy','reasoningFinished','_handleToolNotificationData','abortController','sendRequest','reasoning','_finalizeInteraction','push','editor','ai-chat-interaction-error','_handleToolResultData','_isWebSearching','634QTROCd','attributes','replyCreated','isStopped','delegate','web-search','currentRequest','text','type','webSearchFinished','633618QIPFFh','2868HWjJUP','conversationTitle','getReply','event','webSearchStarted','stop','length','713028lNqtYk','abort','parse','replyContentUpdated','conversation-title','connector','interactionFinished','splice','interactionStopped','data','resetWebSearchState','isDestroyed','createReply','542136CEmucl','219988tVQJvH','6193ULJWDg','5RKTPtK','toolName','8MpbHxc','651ywSmGZ','280220bUlaAw','done','notification','replies','_isReasoning','content','getStream','14lfTPBS','action-metadata','result','modification','source','start','error','actionCallId'];_0x16ae=function(){return _0x211879;};return _0x16ae();}import{CKEditorError as _0xaa3b6c,EmitterMixin as _0x5d3842,uid as _0x2583b5}from'ckeditor5/src/utils.js';import{AIReply as _0xaeefaa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3b72c7(0x179),_0x3b72c7(0x17f),_0x3b72c7(0x14f),_0x3b72c7(0x14d),_0x3b72c7(0x16b),_0x3b72c7(0x190),_0x3b72c7(0x14a),_0x3b72c7(0x178),_0x3b72c7(0x16f),_0x3b72c7(0x19d),_0x3b72c7(0x197),_0x3b72c7(0x16c),_0x3b72c7(0x183),_0x3b72c7(0x17b),_0x3b72c7(0x168)];export class AIInteraction extends _0x5d3842(){['id'];[_0x3b72c7(0x15e)]=[];[_0x3b72c7(0x175)];[_0x3b72c7(0x171)];[_0x3b72c7(0x169)];[_0x3b72c7(0x194)];[_0x3b72c7(0x14c)];[_0x3b72c7(0x191)]=!0x1;[_0x3b72c7(0x152)]=!0x1;[_0x3b72c7(0x18a)];[_0x3b72c7(0x15f)]=!0x1;[_0x3b72c7(0x18d)]=!0x1;constructor({connector:_0x2c0338,editor:_0x1f103d}){const _0x4b414f=_0x3b72c7;super(),this['id']=_0x2583b5(),this[_0x4b414f(0x14c)]=_0x2c0338,this[_0x4b414f(0x191)]=!0x0,this[_0x4b414f(0x18a)]=_0x1f103d;}async[_0x3b72c7(0x167)](){const _0x233039=_0x3b72c7,_0x2e78a8=[];let _0x2e859c,_0x1c76a7,_0x14062b;this[_0x233039(0x191)]=!0x1;try{this[_0x233039(0x194)]=await this[_0x233039(0x186)](),this[_0x233039(0x180)](_0x233039(0x17f),this);const _0x3f6677=await this[_0x233039(0x194)][_0x233039(0x161)]();for await(const _0x13e479 of _0x3f6677){if(this[_0x233039(0x191)])return;if(_0x233039(0x168)==_0x13e479[_0x233039(0x19c)])return void this[_0x233039(0x180)](_0x233039(0x168),{'error':new _0xaa3b6c(_0x233039(0x18b),this)});switch(_0x13e479[_0x233039(0x19c)]){case _0x233039(0x17e):this[_0x233039(0x171)]=_0x13e479[_0x233039(0x150)][_0x233039(0x171)];break;case _0x233039(0x163):this[_0x233039(0x169)]=_0x13e479[_0x233039(0x150)][_0x233039(0x172)];break;case _0x233039(0x14b):this[_0x233039(0x16f)](_0x13e479[_0x233039(0x150)][_0x233039(0x19a)],!0x0);break;case _0x233039(0x166):_0x2e78a8[_0x233039(0x189)](_0x13e479[_0x233039(0x150)][_0x233039(0x166)]);break;case _0x233039(0x193):this[_0x233039(0x18d)]||(this[_0x233039(0x18d)]=!0x0,this[_0x233039(0x180)](_0x233039(0x19d),this));break;case _0x233039(0x187):this[_0x233039(0x15f)]||(this[_0x233039(0x15f)]=!0x0,this[_0x233039(0x180)](_0x233039(0x16c),this));break;case _0x233039(0x16e):case _0x233039(0x173):this[_0x233039(0x17a)](),this[_0x233039(0x151)](),_0x2e859c=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x233039(0x165):_0x233039(0x195),_0x1c76a7=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x13e479[_0x233039(0x150)]['id']:void 0x0,this[_0x233039(0x175)]&&this[_0x233039(0x175)][_0x233039(0x196)]!=_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x15c)](),this[_0x233039(0x175)]=void 0x0),this[_0x233039(0x175)]||(this[_0x233039(0x175)]=this[_0x233039(0x153)]({'type':_0x2e859c,'interactionId':this['id'],'id':_0x1c76a7}),_0x233039(0x165)==_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0))),this[_0x233039(0x175)][_0x233039(0x176)](_0x13e479[_0x233039(0x150)][_0x233039(0x16a)]);break;case _0x233039(0x17d):_0x14062b=JSON[_0x233039(0x149)](_0x13e479[_0x233039(0x150)][_0x233039(0x164)]),this[_0x233039(0x18c)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x14062b[_0x233039(0x150)],'attributes':_0x14062b[_0x233039(0x18f)]});break;case _0x233039(0x177):this[_0x233039(0x184)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x13e479[_0x233039(0x150)][_0x233039(0x150)]});}}}finally{this[_0x233039(0x191)]||(this[_0x233039(0x175)]&&_0x2e78a8[_0x233039(0x19f)]>0x0&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0)),this[_0x233039(0x188)](),this[_0x233039(0x180)](_0x233039(0x14d),this));}}[_0x3b72c7(0x19e)](){const _0x505771=_0x3b72c7;this[_0x505771(0x191)]||(this[_0x505771(0x188)](),this[_0x505771(0x180)](_0x505771(0x14f),this));}[_0x3b72c7(0x19b)](_0x181060){const _0x38a434=_0x3b72c7;return this[_0x38a434(0x15e)][_0x38a434(0x174)](_0x2e6cfe=>_0x2e6cfe['id']===_0x181060);}[_0x3b72c7(0x182)](){const _0x101aae=_0x3b72c7;this[_0x101aae(0x152)]||(this[_0x101aae(0x19e)](),this[_0x101aae(0x15e)][_0x101aae(0x181)](_0x53abc5=>_0x53abc5[_0x101aae(0x182)]()),this[_0x101aae(0x15e)]=[],this[_0x101aae(0x152)]=!0x0,this[_0x101aae(0x180)](_0x101aae(0x16b),this),this[_0x101aae(0x170)]());}[_0x3b72c7(0x153)](_0x428367){const _0x149eb6=_0x3b72c7,_0x1178c6=new _0xaeefaa({'editor':this[_0x149eb6(0x18a)],'documentContextContent':this[_0x149eb6(0x17c)]()?.[_0x149eb6(0x160)],..._0x428367});return this[_0x149eb6(0x15e)][_0x149eb6(0x189)](_0x1178c6),_0x1178c6[_0x149eb6(0x192)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x149eb6(0x180)](_0x149eb6(0x190),_0x1178c6),_0x1178c6;}[_0x3b72c7(0x16f)](_0x13ac0f,_0xeca9d1=!0x1){const _0x1b273d=_0x3b72c7;this[_0x1b273d(0x180)](_0x1b273d(0x16f),_0x13ac0f,_0xeca9d1);}[_0x3b72c7(0x151)](){const _0x4aa3f2=_0x3b72c7;this[_0x4aa3f2(0x18d)]&&(this[_0x4aa3f2(0x18d)]=!0x1,this[_0x4aa3f2(0x180)](_0x4aa3f2(0x197),this));}[_0x3b72c7(0x17a)](){const _0x5bc232=_0x3b72c7;this[_0x5bc232(0x15f)]&&(this[_0x5bc232(0x15f)]=!0x1,this[_0x5bc232(0x180)](_0x5bc232(0x183),this));}[_0x3b72c7(0x18c)](_0x2ba494){const _0x215ff4=_0x3b72c7;this[_0x215ff4(0x180)](_0x215ff4(0x17b),{'type':_0x215ff4(0x164),'toolName':_0x2ba494[_0x215ff4(0x158)],'data':structuredClone(_0x2ba494[_0x215ff4(0x150)]||{}),'attributes':structuredClone(_0x2ba494[_0x215ff4(0x18f)]||{})},this);}[_0x3b72c7(0x184)](_0x518320){const _0x280315=_0x3b72c7;this[_0x280315(0x180)](_0x280315(0x17b),{'type':_0x280315(0x15d),'toolName':_0x518320[_0x280315(0x158)],'data':structuredClone(_0x518320[_0x280315(0x150)])},this);}[_0x3b72c7(0x188)](){const _0x5b85ca=_0x3b72c7;this[_0x5b85ca(0x191)]=!0x0,this[_0x5b85ca(0x194)]&&this[_0x5b85ca(0x194)][_0x5b85ca(0x185)][_0x5b85ca(0x1a1)](),this[_0x5b85ca(0x175)]&&this[_0x5b85ca(0x175)][_0x5b85ca(0x15c)](),this[_0x5b85ca(0x194)]=this[_0x5b85ca(0x175)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x532b3d=_0xa875;function _0xa875(_0x1b1cea,_0x39515a){const _0x547ca1=_0x547c();return _0xa875=function(_0xa87548,_0x14c9b6){_0xa87548=_0xa87548-0x110;let _0x135719=_0x547ca1[_0xa87548];return _0x135719;},_0xa875(_0x1b1cea,_0x39515a);}(function(_0x1f6e12,_0x61ff1a){const _0x1108e5=_0xa875,_0x86e595=_0x1f6e12();while(!![]){try{const _0x20bbfd=parseInt(_0x1108e5(0x129))/0x1*(parseInt(_0x1108e5(0x120))/0x2)+parseInt(_0x1108e5(0x113))/0x3*(parseInt(_0x1108e5(0x11d))/0x4)+parseInt(_0x1108e5(0x137))/0x5*(parseInt(_0x1108e5(0x121))/0x6)+-parseInt(_0x1108e5(0x117))/0x7+-parseInt(_0x1108e5(0x118))/0x8+parseInt(_0x1108e5(0x135))/0x9+parseInt(_0x1108e5(0x11c))/0xa*(-parseInt(_0x1108e5(0x119))/0xb);if(_0x20bbfd===_0x61ff1a)break;else _0x86e595['push'](_0x86e595['shift']());}catch(_0x4307d3){_0x86e595['push'](_0x86e595['shift']());}}}(_0x547c,0xd1b30));import{EmitterMixin as _0x3ecfe4,logWarning as _0x1f278f,logError as _0x796d7}from'ckeditor5/src/utils.js';import{getTranslation as _0x4066de}from'../utils/common-translations.js';function _0x547c(){const _0x2a05c9=['911214ytcIYm','length','7699260uWasgM','items','getAll','_isMatchingFilter','push','uiLanguage','_defaultModelId','map','_locale','add','startsWith','find','ai-chat-default-model-id-unrecognized','toLocaleLowerCase','ai-models-unable-to-retrieve','displayedModels','provider','9708prsGYI','auto','defaultModelId','recommended','5746083fqdQBS','2001896JNnvHu','12884971kCdrbN','getModels','AI_MODEL_NAME_AUTO','10qRehXB','344FdYPBN','getModel','_getModelById','2cvquFh','6ZzlXNw','some','_modelList','_config','has','getAvailableModels','_filterModels','_retrieveModels','1182001uXwnaL','string','list','_connector','ai-chat-model-id-unrecognized','agent','isAvailable','_availableModels','filter','name','_modelsRequest','getDefault'];_0x547c=function(){return _0x2a05c9;};return _0x547c();}export class AIModels extends _0x3ecfe4(){[_0x532b3d(0x12c)];[_0x532b3d(0x124)];[_0x532b3d(0x13f)];[_0x532b3d(0x123)]=[];[_0x532b3d(0x133)]=null;constructor({connector:_0x24fc49,config:_0xdb7e8d,locale:_0x2b0d0f}){const _0x1316f8=_0x532b3d;super(),this[_0x1316f8(0x12c)]=_0x24fc49,this[_0x1316f8(0x124)]=_0xdb7e8d,this[_0x1316f8(0x13f)]=_0x2b0d0f;}get[_0x532b3d(0x130)](){const _0x5b5ab0=_0x532b3d;return this[_0x5b5ab0(0x124)]?.[_0x5b5ab0(0x111)];}get[_0x532b3d(0x13d)](){const _0x207831=_0x532b3d;return this[_0x207831(0x124)]?.[_0x207831(0x115)];}async[_0x532b3d(0x139)](){const _0x432946=_0x532b3d;return this[_0x432946(0x133)]||(this[_0x432946(0x133)]=this[_0x432946(0x128)]()),this[_0x432946(0x133)];}async[_0x532b3d(0x126)](){const _0x8ff58=_0x532b3d,_0x3b7fd5=await this[_0x8ff58(0x139)]();let _0x35d3ef;return _0x35d3ef=this[_0x8ff58(0x130)]?this[_0x8ff58(0x127)](_0x3b7fd5,this[_0x8ff58(0x130)]):_0x3b7fd5[_0x8ff58(0x131)](_0x3ae48f=>_0x3ae48f[_0x8ff58(0x116)]),_0x35d3ef;}async[_0x532b3d(0x11e)](_0x25dbc0){const _0x54848b=_0x532b3d,_0x2bbdf8=await this[_0x54848b(0x139)]();if(!_0x2bbdf8[_0x54848b(0x136)])return null;if(_0x25dbc0){const _0x30893a=this[_0x54848b(0x11f)](_0x2bbdf8,_0x25dbc0);if(_0x30893a)return _0x30893a;_0x1f278f(_0x54848b(0x12d),{'modelId':_0x25dbc0,'fallBackModelId':this[_0x54848b(0x13d)]});}return this[_0x54848b(0x134)]();}async[_0x532b3d(0x134)](){const _0x24aff8=_0x532b3d,_0x256451=await this[_0x24aff8(0x126)]();if(!_0x256451[_0x24aff8(0x136)])return null;if(this[_0x24aff8(0x13d)]){const _0x215841=this[_0x24aff8(0x11f)](_0x256451,this[_0x24aff8(0x13d)]);if(_0x215841)return _0x215841;_0x1f278f(_0x24aff8(0x143),{'defaultModelId':this[_0x24aff8(0x13d)],'fallBackModelId':_0x256451[0x0]['id']});}return _0x256451[0x0];}async[_0x532b3d(0x12f)](_0x56c85a){const _0x3b73ed=_0x532b3d;return(await this[_0x3b73ed(0x126)]())[_0x3b73ed(0x122)](_0x4f635e=>_0x4f635e[_0x3b73ed(0x132)]===_0x56c85a[_0x3b73ed(0x132)]&&_0x4f635e[_0x3b73ed(0x112)]===_0x56c85a[_0x3b73ed(0x112)]);}async[_0x532b3d(0x128)](){const _0x5a2138=_0x532b3d;if(!this[_0x5a2138(0x123)][_0x5a2138(0x136)])try{const _0x3b2a6e=this[_0x5a2138(0x13f)][_0x5a2138(0x13c)]||'en',_0x5b32e1=this[_0x5a2138(0x12c)][_0x5a2138(0x11a)](_0x3b2a6e),_0x59c6d6=await _0x5b32e1[_0x5a2138(0x12b)]();this[_0x5a2138(0x123)]=_0x59c6d6[_0x5a2138(0x138)][_0x5a2138(0x13e)](_0x1ef8a0=>Bi(_0x1ef8a0)?{..._0x1ef8a0,'name':_0x4066de(this[_0x5a2138(0x13f)],_0x5a2138(0x11b))}:_0x1ef8a0);}catch(_0x36f3d1){throw _0x796d7(_0x5a2138(0x110),{'error':_0x36f3d1}),_0x36f3d1;}return[...this[_0x5a2138(0x123)]];}[_0x532b3d(0x127)](_0x59ab69,_0x464118){const _0x46a7fb=_0x532b3d;let _0x467a98;if(_0x464118){_0x467a98=[];const _0x34a9e0=new Set(),_0x420e7a=_0x46a7fb(0x12a)==typeof _0x464118?[_0x464118[_0x46a7fb(0x144)]()]:_0x464118[_0x46a7fb(0x13e)](_0x2ff0a6=>_0x2ff0a6[_0x46a7fb(0x144)]());for(const _0x3fdbb0 of _0x420e7a)for(const _0x7f6f11 of _0x59ab69)!_0x34a9e0[_0x46a7fb(0x125)](_0x7f6f11['id'])&&this[_0x46a7fb(0x13a)](_0x7f6f11,_0x3fdbb0)&&(_0x467a98[_0x46a7fb(0x13b)](_0x7f6f11),_0x34a9e0[_0x46a7fb(0x140)](_0x7f6f11['id']));}else _0x467a98=_0x59ab69;return _0x467a98;}[_0x532b3d(0x13a)](_0x801fcb,_0x50f2f9){const _0x147218=_0x532b3d,_0x1378ef=_0x801fcb['id'][_0x147218(0x144)](),_0x385e8b=_0x801fcb[_0x147218(0x132)][_0x147218(0x144)](),_0x16d7d2=_0x801fcb[_0x147218(0x112)][_0x147218(0x144)]();return _0x1378ef===_0x50f2f9||_0x385e8b===_0x50f2f9||Bi(_0x801fcb)&&_0x147218(0x114)===_0x50f2f9||_0x16d7d2===_0x50f2f9||_0x1378ef[_0x147218(0x141)](_0x50f2f9);}[_0x532b3d(0x11f)](_0x4ace3a,_0x13c55b){const _0x34e1c7=_0x532b3d;return _0x4ace3a[_0x34e1c7(0x142)](_0x3b62bd=>Bi(_0x3b62bd)&&_0x34e1c7(0x114)===_0x13c55b?_0x3b62bd:_0x3b62bd['id']===_0x13c55b)||null;}}function Bi(_0x3d50d6){const _0x10d9fe=_0x532b3d;return _0x3d50d6['id'][_0x10d9fe(0x141)](_0x10d9fe(0x12e));}
23
+ const _0xf4b449=_0x37f6;function _0x2d35(){const _0x3c0836=['add','getModel','list','ai-chat-model-id-unrecognized','_locale','5288cawQbj','startsWith','map','ai-models-unable-to-retrieve','recommended','_modelsRequest','ai-chat-default-model-id-unrecognized','_config','name','2412DTAKKX','_isMatchingFilter','2175090wtaJGd','string','4447566bkPjeT','agent','getAvailableModels','_modelList','toLocaleLowerCase','uiLanguage','isAvailable','_getModelById','9071392MagSKG','provider','153FzRnjY','find','getDefault','_retrieveModels','some','_defaultModelId','items','1cDjBdC','displayedModels','getAll','length','_filterModels','has','auto','1052055tbekBT','filter','6817692VhzDTP','515462QrOBXH','push','defaultModelId','AI_MODEL_NAME_AUTO','getModels','_connector','_availableModels'];_0x2d35=function(){return _0x3c0836;};return _0x2d35();}function _0x37f6(_0xcbbb39,_0x3ecb39){const _0x2d3542=_0x2d35();return _0x37f6=function(_0x37f6f4,_0x39b62e){_0x37f6f4=_0x37f6f4-0x1ad;let _0xb48a97=_0x2d3542[_0x37f6f4];return _0xb48a97;},_0x37f6(_0xcbbb39,_0x3ecb39);}(function(_0x4ef285,_0x1c485d){const _0x13108d=_0x37f6,_0x3cb14f=_0x4ef285();while(!![]){try{const _0x734fb4=-parseInt(_0x13108d(0x1b5))/0x1*(-parseInt(_0x13108d(0x1bf))/0x2)+-parseInt(_0x13108d(0x1d4))/0x3*(-parseInt(_0x13108d(0x1cb))/0x4)+parseInt(_0x13108d(0x1bc))/0x5+parseInt(_0x13108d(0x1d8))/0x6+parseInt(_0x13108d(0x1be))/0x7+parseInt(_0x13108d(0x1e0))/0x8+-parseInt(_0x13108d(0x1ae))/0x9*(parseInt(_0x13108d(0x1d6))/0xa);if(_0x734fb4===_0x1c485d)break;else _0x3cb14f['push'](_0x3cb14f['shift']());}catch(_0x39896d){_0x3cb14f['push'](_0x3cb14f['shift']());}}}(_0x2d35,0xa6a16));import{EmitterMixin as _0x6a200c,logWarning as _0x1398ed,logError as _0x166e65}from'ckeditor5/src/utils.js';import{getTranslation as _0x4c3fa0}from'../utils/common-translations.js';export class AIModels extends _0x6a200c(){[_0xf4b449(0x1c4)];[_0xf4b449(0x1d2)];[_0xf4b449(0x1ca)];[_0xf4b449(0x1db)]=[];[_0xf4b449(0x1d0)]=null;constructor({connector:_0x319bfb,config:_0x3edbd1,locale:_0x5d7431}){const _0x5d676e=_0xf4b449;super(),this[_0x5d676e(0x1c4)]=_0x319bfb,this[_0x5d676e(0x1d2)]=_0x3edbd1,this[_0x5d676e(0x1ca)]=_0x5d7431;}get[_0xf4b449(0x1c5)](){const _0x4fb683=_0xf4b449;return this[_0x4fb683(0x1d2)]?.[_0x4fb683(0x1b6)];}get[_0xf4b449(0x1b3)](){const _0x3f0044=_0xf4b449;return this[_0x3f0044(0x1d2)]?.[_0x3f0044(0x1c1)];}async[_0xf4b449(0x1b7)](){const _0x3cf7c0=_0xf4b449;return this[_0x3cf7c0(0x1d0)]||(this[_0x3cf7c0(0x1d0)]=this[_0x3cf7c0(0x1b1)]()),this[_0x3cf7c0(0x1d0)];}async[_0xf4b449(0x1da)](){const _0x45a2d4=_0xf4b449,_0x1bf06b=await this[_0x45a2d4(0x1b7)]();let _0x10c478;return _0x10c478=this[_0x45a2d4(0x1c5)]?this[_0x45a2d4(0x1b9)](_0x1bf06b,this[_0x45a2d4(0x1c5)]):_0x1bf06b[_0x45a2d4(0x1bd)](_0x446cce=>_0x446cce[_0x45a2d4(0x1cf)]),_0x10c478;}async[_0xf4b449(0x1c7)](_0x192766){const _0xe3423=_0xf4b449,_0x591f0f=await this[_0xe3423(0x1b7)]();if(!_0x591f0f[_0xe3423(0x1b8)])return null;if(_0x192766){const _0x4b7049=this[_0xe3423(0x1df)](_0x591f0f,_0x192766);if(_0x4b7049)return _0x4b7049;_0x1398ed(_0xe3423(0x1c9),{'modelId':_0x192766,'fallBackModelId':this[_0xe3423(0x1b3)]});}return this[_0xe3423(0x1b0)]();}async[_0xf4b449(0x1b0)](){const _0x402904=_0xf4b449,_0x4b7e9a=await this[_0x402904(0x1da)]();if(!_0x4b7e9a[_0x402904(0x1b8)])return null;if(this[_0x402904(0x1b3)]){const _0x7e37b3=this[_0x402904(0x1df)](_0x4b7e9a,this[_0x402904(0x1b3)]);if(_0x7e37b3)return _0x7e37b3;_0x1398ed(_0x402904(0x1d1),{'defaultModelId':this[_0x402904(0x1b3)],'fallBackModelId':_0x4b7e9a[0x0]['id']});}return _0x4b7e9a[0x0];}async[_0xf4b449(0x1de)](_0x335c75){const _0x44d841=_0xf4b449;return(await this[_0x44d841(0x1da)]())[_0x44d841(0x1b2)](_0x22d418=>_0x22d418[_0x44d841(0x1d3)]===_0x335c75[_0x44d841(0x1d3)]&&_0x22d418[_0x44d841(0x1ad)]===_0x335c75[_0x44d841(0x1ad)]);}async[_0xf4b449(0x1b1)](){const _0x3c0542=_0xf4b449;if(!this[_0x3c0542(0x1db)][_0x3c0542(0x1b8)])try{const _0x4b5ea=this[_0x3c0542(0x1ca)][_0x3c0542(0x1dd)]||'en',_0x16ec47=this[_0x3c0542(0x1c4)][_0x3c0542(0x1c3)](_0x4b5ea),_0x3cd750=await _0x16ec47[_0x3c0542(0x1c8)]();this[_0x3c0542(0x1db)]=_0x3cd750[_0x3c0542(0x1b4)][_0x3c0542(0x1cd)](_0x3d61f1=>Bi(_0x3d61f1)?{..._0x3d61f1,'name':_0x4c3fa0(this[_0x3c0542(0x1ca)],_0x3c0542(0x1c2))}:_0x3d61f1);}catch(_0x50d519){throw _0x166e65(_0x3c0542(0x1ce),{'error':_0x50d519}),_0x50d519;}return[...this[_0x3c0542(0x1db)]];}[_0xf4b449(0x1b9)](_0x3e9c5e,_0x15da68){const _0x19ed09=_0xf4b449;let _0x4b8751;if(_0x15da68){_0x4b8751=[];const _0x11b5c8=new Set(),_0x11236a=_0x19ed09(0x1d7)==typeof _0x15da68?[_0x15da68[_0x19ed09(0x1dc)]()]:_0x15da68[_0x19ed09(0x1cd)](_0x1e6e2d=>_0x1e6e2d[_0x19ed09(0x1dc)]());for(const _0xb049a1 of _0x11236a)for(const _0xffa618 of _0x3e9c5e)!_0x11b5c8[_0x19ed09(0x1ba)](_0xffa618['id'])&&this[_0x19ed09(0x1d5)](_0xffa618,_0xb049a1)&&(_0x4b8751[_0x19ed09(0x1c0)](_0xffa618),_0x11b5c8[_0x19ed09(0x1c6)](_0xffa618['id']));}else _0x4b8751=_0x3e9c5e;return _0x4b8751;}[_0xf4b449(0x1d5)](_0x5a3c7f,_0x1d0de7){const _0x20c2e0=_0xf4b449,_0x184b6d=_0x5a3c7f['id'][_0x20c2e0(0x1dc)](),_0x12c9ad=_0x5a3c7f[_0x20c2e0(0x1d3)][_0x20c2e0(0x1dc)](),_0x38ac5=_0x5a3c7f[_0x20c2e0(0x1ad)][_0x20c2e0(0x1dc)]();return _0x184b6d===_0x1d0de7||_0x12c9ad===_0x1d0de7||Bi(_0x5a3c7f)&&_0x20c2e0(0x1bb)===_0x1d0de7||_0x38ac5===_0x1d0de7||_0x184b6d[_0x20c2e0(0x1cc)](_0x1d0de7);}[_0xf4b449(0x1df)](_0x42986d,_0x2b9e4c){const _0x43bf3c=_0xf4b449;return _0x42986d[_0x43bf3c(0x1af)](_0x26f73a=>Bi(_0x26f73a)&&_0x43bf3c(0x1bb)===_0x2b9e4c?_0x26f73a:_0x26f73a['id']===_0x2b9e4c)||null;}}function Bi(_0x27f840){const _0x78ca53=_0xf4b449;return _0x27f840['id'][_0x78ca53(0x1cc)](_0x78ca53(0x1d9));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x338a15=_0x3f84;(function(_0x273c31,_0x1e1501){const _0x44210d=_0x3f84,_0x4a613f=_0x273c31();while(!![]){try{const _0x19dfe9=-parseInt(_0x44210d(0x1c6))/0x1+parseInt(_0x44210d(0x1ec))/0x2*(parseInt(_0x44210d(0x1ee))/0x3)+-parseInt(_0x44210d(0x204))/0x4*(-parseInt(_0x44210d(0x1ff))/0x5)+-parseInt(_0x44210d(0x1db))/0x6*(-parseInt(_0x44210d(0x1fe))/0x7)+parseInt(_0x44210d(0x1dd))/0x8+-parseInt(_0x44210d(0x1c2))/0x9+parseInt(_0x44210d(0x1cc))/0xa*(-parseInt(_0x44210d(0x1d0))/0xb);if(_0x19dfe9===_0x1e1501)break;else _0x4a613f['push'](_0x4a613f['shift']());}catch(_0xd68bae){_0x4a613f['push'](_0x4a613f['shift']());}}}(_0x1846,0x95eac));import{CKEditorError as _0x4901d9,ObservableMixin as _0x5b7c41,uid as _0x3ca63e}from'ckeditor5/src/utils.js';import{Element as _0x10f421,findAll as _0x27a057,getAttribute as _0x5b8717,getParents as _0x1de616,Document as _0x15a78b,parse as _0x47ab9c,Text as _0x324835}from'../utils/htmlparser.js';import{AIResponseParser as _0x52997e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x35e259}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2cedc5}from'../utils/getsuggestionpartsfromreply.js';function _0x3f84(_0x3e3055,_0x5704a9){const _0x1846b3=_0x1846();return _0x3f84=function(_0x3f8481,_0x5e4ea1){_0x3f8481=_0x3f8481-0x1bb;let _0x3a4936=_0x1846b3[_0x3f8481];return _0x3a4936;},_0x3f84(_0x3e3055,_0x5704a9);}function _0x1846(){const _0x371259=['filter','span','data-id','fire','isDone','stopListening','_getDifferentChangeGroups','type','9052830IiCwqD','includes','editor','cachedSuggestionContentParts','62668EHLfRf','node','change:content','content','aiResponseParser','removedNodeIds','13898630CHbeTf','parsedContent','data-unstable','unshift','11yOzbon','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','areActionsDisabled','_setCachedContentParts','previousSibling','removed','merge','state','parseAndNormalizeHTML','setChangeGroupState','5094SuPhUR','set','8176752gLfRLF','modified','new','interactionId','every','changes','map','onContentChange','documentContextContent','withoutDiff','_getCachedContentParts','updateChangeGroups','modification','color:\x20#808080;\x20font-style:\x20italic','destroy','18bMsWer','find','266958jdeHky','cloneNode','modifiedNodeIds','withDiff','forEach','appendContent','splice','length','parsedMergedContent','index','newNodeIds','aiResponseApplier','push','context','replyChangeGroupStateUpdated','replyContentUpdated','182jPkJFJ','95CPrLuX','ai-reply-get-content-parts-group-not-found','indexOf','locale','getContentParts','258404iiVSBR','convertMarkdownToHTML','changeGroups','sources','done','ai-get-editor-from-context-no-editor','nextSibling'];_0x1846=function(){return _0x371259;};return _0x1846();}import{getTranslation as _0x9af889}from'../utils/common-translations.js';import{cloneDeep as _0x49b4c0}from'es-toolkit';export class AIReply extends _0x5b7c41(){['id'];[_0x338a15(0x1e0)];[_0x338a15(0x1c1)];[_0x338a15(0x207)]=[];[_0x338a15(0x1cd)]=new _0x15a78b([]);[_0x338a15(0x1f6)]=new _0x15a78b([]);[_0x338a15(0x206)]=[];[_0x338a15(0x1d3)]=!0x1;[_0x338a15(0x1e5)];[_0x338a15(0x1ca)];[_0x338a15(0x1f9)];[_0x338a15(0x1c4)];[_0x338a15(0x1c5)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x12907e,content:_0x9d3c7c='',isDone:_0x26fdd9=!0x1,interactionId:_0x4b8a35,areActionsDisabled:_0x1d695b,documentContextContent:_0x3289c6,editor:_0x3017cc,id:_0x4e1bf5}){const _0x33d049=_0x338a15;super(),this['id']=_0x4e1bf5||_0x3ca63e(),this[_0x33d049(0x1e0)]=_0x4b8a35,this[_0x33d049(0x1c1)]=_0x12907e,this[_0x33d049(0x1d3)]=!!_0x1d695b,this[_0x33d049(0x1c4)]=_0x3017cc,this[_0x33d049(0x1ca)]=new _0x52997e(),this[_0x33d049(0x1f9)]=new _0x35e259(),this[_0x33d049(0x1e5)]=_0x47ab9c(_0x3289c6||''),this[_0x33d049(0x1dc)](_0x33d049(0x1be),_0x26fdd9),this['on'](_0x33d049(0x1c8),()=>{const _0x5df030=_0x33d049;this[_0x5df030(0x1e4)]();}),this[_0x33d049(0x1dc)](_0x33d049(0x1c9),_0x9d3c7c);}[_0x338a15(0x1f3)](_0x9aeb14){const _0x57dec4=_0x338a15;this[_0x57dec4(0x1dc)](_0x57dec4(0x1c9),this[_0x57dec4(0x1c9)]+_0x9aeb14);}[_0x338a15(0x208)](){const _0x2c6bf5=_0x338a15;this[_0x2c6bf5(0x1be)]||(this[_0x2c6bf5(0x1dc)](_0x2c6bf5(0x1be),!0x0),this[_0x2c6bf5(0x1e4)]());}[_0x338a15(0x1eb)](){const _0x5a9645=_0x338a15;this[_0x5a9645(0x1bf)]();}[_0x338a15(0x1da)](_0x26d60b,_0x1e5e67){const _0x3af877=_0x338a15;this[_0x3af877(0x206)][_0x26d60b][_0x3af877(0x1d8)]=_0x1e5e67,this[_0x3af877(0x1bd)](_0x3af877(0x1fc),{'reply':this,'index':_0x26d60b,'state':_0x1e5e67});}[_0x338a15(0x203)]({showDiff:_0xe65afe,groupIndex:_0x195a74}){const _0x3776ae=_0x338a15;if(!this[_0x3776ae(0x1c4)])throw new _0x4901d9(_0x3776ae(0x209),null,{'aiReply':this});const _0x44009b=this[_0x3776ae(0x1e7)](_0xe65afe,_0x195a74);if(_0x44009b)return _0x44009b;let _0x26c586=[];if(void 0x0===_0x195a74)_0x26c586=this[_0x3776ae(0x206)];else{const _0x19e89f=this[_0x3776ae(0x206)][_0x3776ae(0x1ed)](({index:_0x18b461})=>_0x18b461===_0x195a74);if(!_0x19e89f)throw new _0x4901d9(_0x3776ae(0x200),null,{'aiReply':this,'groupIndex':_0x195a74});_0x26c586=[_0x19e89f];}const _0x4edce0=_0x2cedc5({'editor':this[_0x3776ae(0x1c4)],'showDiff':_0xe65afe,'changeGroups':_0x26c586,'documentContextContent':this[_0x3776ae(0x1e5)]});return this[_0x3776ae(0x1d4)](_0xe65afe,_0x4edce0),_0x4edce0;}[_0x338a15(0x1e7)](_0x242410,_0x264a39){const _0x4567b6=_0x338a15,_0x5b9d17=_0x242410?_0x4567b6(0x1f1):_0x4567b6(0x1e6);if(!this[_0x4567b6(0x1c5)][_0x5b9d17][_0x4567b6(0x1f5)])return null;const _0x240bcb=this[_0x4567b6(0x1c5)][_0x5b9d17];if(void 0x0===_0x264a39)return _0x240bcb[_0x4567b6(0x1f5)]>0x0&&_0x240bcb[_0x4567b6(0x1f5)]!==this[_0x4567b6(0x206)][_0x4567b6(0x1f5)]?(this[_0x4567b6(0x1d4)](_0x242410,null),null):_0x49b4c0(_0x240bcb);{const _0xe09585=_0x240bcb[_0x4567b6(0x1ed)](({index:_0x17b265})=>_0x17b265===_0x264a39);if(_0xe09585)return[_0x49b4c0(_0xe09585)];}return null;}[_0x338a15(0x1d4)](_0x3078f1,_0x187619){const _0x2fae24=_0x338a15,_0x130ca6=_0x3078f1?_0x2fae24(0x1f1):_0x2fae24(0x1e6);_0x187619?_0x187619[_0x2fae24(0x1f2)](_0x387020=>{const _0x50ae87=_0x2fae24,_0x28e067=this[_0x50ae87(0x1c5)][_0x130ca6],_0x1c826c=_0x28e067[_0x50ae87(0x1ed)](({index:_0x386ba9})=>_0x386ba9===_0x387020[_0x50ae87(0x1f7)]);if(_0x1c826c){const _0x2972ad=_0x28e067[_0x50ae87(0x201)](_0x1c826c);_0x28e067[_0x50ae87(0x1f4)](_0x2972ad,0x1,_0x387020);}else _0x28e067[_0x50ae87(0x1fa)](_0x387020);}):this[_0x2fae24(0x1c5)][_0x130ca6][_0x2fae24(0x1f5)]=0x0;}[_0x338a15(0x1e4)](){const _0x5281e3=_0x338a15;if(_0x5281e3(0x1e9)===this[_0x5281e3(0x1c1)]){this[_0x5281e3(0x1cd)]=this[_0x5281e3(0x1ca)][_0x5281e3(0x1d9)](this[_0x5281e3(0x1c9)]);const _0x4294ae=this[_0x5281e3(0x206)];this[_0x5281e3(0x1e8)]();const _0x5326de=this[_0x5281e3(0x1c0)](_0x4294ae,this[_0x5281e3(0x206)]);(_0x5326de[_0x5281e3(0x1f5)]||this[_0x5281e3(0x1be)])&&(this[_0x5281e3(0x1bd)](_0x5281e3(0x1fd),this,_0x5326de),this[_0x5281e3(0x1c5)][_0x5281e3(0x1f1)][_0x5281e3(0x1f5)]=this[_0x5281e3(0x1c5)][_0x5281e3(0x1e6)][_0x5281e3(0x1f5)]=0x0);}else this[_0x5281e3(0x1cd)]=this[_0x5281e3(0x1ca)][_0x5281e3(0x205)](this[_0x5281e3(0x1c9)]),this[_0x5281e3(0x1bd)](_0x5281e3(0x1fd),this);}[_0x338a15(0x1c0)](_0x3be708,_0x1eb900){const _0x2efe0e=_0x338a15,_0xb399b1=[];for(const _0x3e3191 of _0x1eb900){const _0x4c22f0=_0x3be708[_0x3e3191[_0x2efe0e(0x1f7)]];_0x4c22f0?_0x4c22f0[_0x2efe0e(0x1e2)][_0x2efe0e(0x1f5)]!==_0x3e3191[_0x2efe0e(0x1e2)][_0x2efe0e(0x1f5)]?_0xb399b1[_0x2efe0e(0x1fa)](_0x3e3191):_0x4c22f0[_0x2efe0e(0x1e2)][_0x2efe0e(0x1f2)]((_0x230cba,_0x68c695)=>{const _0x36c9d2=_0x2efe0e,_0x3820a6=_0x3e3191[_0x36c9d2(0x1e2)][_0x68c695];_0x230cba['id']!==_0x3820a6['id']&&_0xb399b1[_0x36c9d2(0x1fa)](_0x3e3191);}):_0xb399b1[_0x2efe0e(0x1fa)](_0x3e3191);}return _0xb399b1;}[_0x338a15(0x1e8)](){const _0x2ea2a8=_0x338a15,_0x432272=new _0x10f421('p',{},[new _0x10f421(_0x2ea2a8(0x1bb),{'style':_0x2ea2a8(0x1ea)},[new _0x324835(_0x9af889(this[_0x2ea2a8(0x1c4)][_0x2ea2a8(0x202)],_0x2ea2a8(0x1d2)))])]),_0x28719d=this[_0x2ea2a8(0x1f9)][_0x2ea2a8(0x1d7)](this[_0x2ea2a8(0x1cd)],this[_0x2ea2a8(0x1e5)][_0x2ea2a8(0x1ef)](!0x0),{'markUnstableElements':!this[_0x2ea2a8(0x1be)],'replaceRemovedWith':_0x432272,'cutAfterLastChange':!this[_0x2ea2a8(0x1be)]});if(!_0x28719d[_0x2ea2a8(0x1f0)][_0x2ea2a8(0x1f5)]&&!this[_0x2ea2a8(0x1be)])return;this[_0x2ea2a8(0x1f6)]=_0x28719d[_0x2ea2a8(0x1cd)];let _0x4699ac=[];if(_0x27a057(_0x5cda42=>{const _0x4d6325=_0x2ea2a8,_0x2d1eb9=_0x5b8717(_0x5cda42,_0x4d6325(0x1bc));if(!_0x2d1eb9||!_0x31115d(_0x2d1eb9))return!0x1;const _0x2317b9=[_0x5cda42,..._0x1de616(_0x5cda42)]['at'](-0x2);if(_0x5cda42!=_0x2317b9){const _0x219684=_0x5b8717(_0x2317b9,_0x4d6325(0x1bc));_0x31115d(_0x219684)||(_0x4699ac[_0x4d6325(0x1fa)]({'node':_0x2317b9,'id':_0x219684,'type':_0x4d6325(0x1de)}),_0x28719d[_0x4d6325(0x1f0)][_0x4d6325(0x1fa)](_0x219684));}else _0x28719d[_0x4d6325(0x1f0)][_0x4d6325(0x1c3)](_0x2d1eb9)?_0x4699ac[_0x4d6325(0x1fa)]({'node':_0x5cda42,'type':_0x4d6325(0x1de),'id':_0x2d1eb9}):_0x28719d[_0x4d6325(0x1f8)][_0x4d6325(0x1c3)](_0x2d1eb9)?_0x4699ac[_0x4d6325(0x1fa)]({'node':_0x5cda42,'type':_0x4d6325(0x1df),'id':_0x2d1eb9,'anchorId':_0x5b8717(_0x5cda42[_0x4d6325(0x1d5)],_0x4d6325(0x1bc))}):_0x4699ac[_0x4d6325(0x1fa)]({'node':_0x5cda42,'type':_0x4d6325(0x1d6),'id':_0x2d1eb9});return!0x0;},this[_0x2ea2a8(0x1f6)]),_0x4699ac=_0x4699ac[_0x2ea2a8(0x20b)](({node:_0x3185f2})=>[..._0x1de616(_0x3185f2),_0x3185f2][_0x2ea2a8(0x1e1)](_0x1630ee=>!_0x5b8717(_0x1630ee,_0x2ea2a8(0x1ce)))),0x0==_0x4699ac[_0x2ea2a8(0x1f5)])return;const _0x483b5c=[[_0x4699ac[0x0]]];for(let _0x2e2401=0x1;_0x2e2401<_0x4699ac[_0x2ea2a8(0x1f5)];_0x2e2401++){const _0x2aa0fe=_0x483b5c[_0x483b5c[_0x2ea2a8(0x1f5)]-0x1],_0xba95b=_0x2aa0fe[_0x2aa0fe[_0x2ea2a8(0x1f5)]-0x1];_0x4699ac[_0x2e2401][_0x2ea2a8(0x1c7)][_0x2ea2a8(0x1d5)]==_0xba95b[_0x2ea2a8(0x1c7)]&&_0x2ea2a8(0x1de)!=_0x4699ac[_0x2e2401][_0x2ea2a8(0x1c1)]&&_0x2ea2a8(0x1de)!=_0xba95b[_0x2ea2a8(0x1c1)]?_0x2aa0fe[_0x2ea2a8(0x1fa)](_0x4699ac[_0x2e2401]):_0x483b5c[_0x2ea2a8(0x1fa)]([_0x4699ac[_0x2e2401]]);}for(const _0x26e8cb of _0x483b5c){const _0x2c5b50=_0x26e8cb[0x0],_0x19eb83=_0x26e8cb[_0x26e8cb[_0x2ea2a8(0x1f5)]-0x1],_0x4f54e0=_0x4b4c26(_0x2c5b50[_0x2ea2a8(0x1c7)][_0x2ea2a8(0x1d5)]);_0x4f54e0&&_0x26e8cb[_0x2ea2a8(0x1cf)](_0x4f54e0);const _0x5db80a=_0x4b4c26(_0x19eb83[_0x2ea2a8(0x1c7)][_0x2ea2a8(0x20a)]);_0x5db80a&&_0x26e8cb[_0x2ea2a8(0x1fa)](_0x5db80a);}function _0x31115d(_0x6fdba1){const _0x1caf87=_0x2ea2a8;return _0x28719d[_0x1caf87(0x1f0)][_0x1caf87(0x1c3)](_0x6fdba1)||_0x28719d[_0x1caf87(0x1f8)][_0x1caf87(0x1c3)](_0x6fdba1)||_0x28719d[_0x1caf87(0x1cb)][_0x1caf87(0x1c3)](_0x6fdba1);}function _0x4b4c26(_0x11dc42){const _0x3af71d=_0x2ea2a8;if(_0x11dc42&&_0x5b8717(_0x11dc42,_0x3af71d(0x1bc))&&!_0x5b8717(_0x11dc42,_0x3af71d(0x1ce))){const _0x1bf0f4=_0x5b8717(_0x11dc42,_0x3af71d(0x1bc));if(!_0x31115d(_0x1bf0f4))return{'node':_0x11dc42,'type':_0x3af71d(0x1fb),'id':_0x1bf0f4};}return null;}this[_0x2ea2a8(0x206)]=_0x483b5c[_0x2ea2a8(0x1e3)]((_0x3ec119,_0x11c2d6)=>({'changes':_0x3ec119,'state':_0x2ea2a8(0x1d1),'index':_0x11c2d6}));}}
23
+ const _0x15de43=_0x4f16;(function(_0x35ec66,_0x26edc0){const _0x4ddadb=_0x4f16,_0x8c06c2=_0x35ec66();while(!![]){try{const _0x49ef6=parseInt(_0x4ddadb(0x1ec))/0x1+parseInt(_0x4ddadb(0x1d5))/0x2+parseInt(_0x4ddadb(0x1c8))/0x3*(parseInt(_0x4ddadb(0x210))/0x4)+-parseInt(_0x4ddadb(0x209))/0x5*(parseInt(_0x4ddadb(0x1cb))/0x6)+parseInt(_0x4ddadb(0x1e1))/0x7*(-parseInt(_0x4ddadb(0x206))/0x8)+-parseInt(_0x4ddadb(0x1fd))/0x9*(parseInt(_0x4ddadb(0x1d8))/0xa)+parseInt(_0x4ddadb(0x211))/0xb;if(_0x49ef6===_0x26edc0)break;else _0x8c06c2['push'](_0x8c06c2['shift']());}catch(_0x4cf62c){_0x8c06c2['push'](_0x8c06c2['shift']());}}}(_0x2e35,0xd364e));import{CKEditorError as _0x43efa2,ObservableMixin as _0x10a928,uid as _0x326ffb}from'ckeditor5/src/utils.js';import{Element as _0x511730,findAll as _0x3a1342,getAttribute as _0x5901b9,getParents as _0x4670c0,Document as _0x14ab84,parse as _0x21a7f6,Text as _0x117376}from'../utils/htmlparser.js';function _0x4f16(_0x47a720,_0x4119c3){const _0x2e353e=_0x2e35();return _0x4f16=function(_0x4f164d,_0x3d9d83){_0x4f164d=_0x4f164d-0x1c6;let _0x2580d3=_0x2e353e[_0x4f164d];return _0x2580d3;},_0x4f16(_0x47a720,_0x4119c3);}import{AIResponseParser as _0x12f101}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1a9a07}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5c0aec}from'../utils/getsuggestionpartsfromreply.js';function _0x2e35(){const _0x13d2a2=['fire','documentContextContent','merge','AI_SUGGESTION_CONTENT_PART_REMOVED','updateChangeGroups','new','isDone','locale','every','623126TvxMTw','splice','span','1433960KzPXHo','appendContent','nextSibling','previousSibling','interactionId','_getDifferentChangeGroups','removedNodeIds','areActionsDisabled','aiResponseApplier','551082jbhLEG','_getCachedContentParts','node','cloneNode','push','index','aiResponseParser','modification','length','editor','ai-get-editor-from-context-no-editor','238184kBsdPr','stopListening','indexOf','replyContentUpdated','cachedSuggestionContentParts','done','map','content','color:\x20#808080;\x20font-style:\x20italic','removed','data-id','changeGroups','find','withoutDiff','setChangeGroupState','parsedContent','withDiff','18LXzdTq','unshift','set','replyChangeGroupStateUpdated','modified','destroy','change:content','ai-reply-get-content-parts-group-not-found','includes','80PSDvsD','convertMarkdownToHTML','sources','4010lpAIEC','getContentParts','type','forEach','data-unstable','onContentChange','parsedMergedContent','3186084TPMNFI','22947936EyhCHN','context','changes','state','pending','_setCachedContentParts','modifiedNodeIds','filter','3dXNMPj','parseAndNormalizeHTML','newNodeIds','11166mOXQMK'];_0x2e35=function(){return _0x13d2a2;};return _0x2e35();}import{getTranslation as _0x341846}from'../utils/common-translations.js';import{cloneDeep as _0x1861d2}from'es-toolkit';export class AIReply extends _0x10a928(){['id'];[_0x15de43(0x1dc)];[_0x15de43(0x20b)];[_0x15de43(0x208)]=[];[_0x15de43(0x1fb)]=new _0x14ab84([]);[_0x15de43(0x20f)]=new _0x14ab84([]);[_0x15de43(0x1f7)]=[];[_0x15de43(0x1df)]=!0x1;[_0x15de43(0x1cd)];[_0x15de43(0x1e7)];[_0x15de43(0x1e0)];[_0x15de43(0x1ea)];[_0x15de43(0x1f0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x300683,content:_0xc7959='',isDone:_0x8b7a4c=!0x1,interactionId:_0x5b654e,areActionsDisabled:_0x1fe329,documentContextContent:_0x33508f,editor:_0x4bd240,id:_0x3247a1}){const _0x59d8a5=_0x15de43;super(),this['id']=_0x3247a1||_0x326ffb(),this[_0x59d8a5(0x1dc)]=_0x5b654e,this[_0x59d8a5(0x20b)]=_0x300683,this[_0x59d8a5(0x1df)]=!!_0x1fe329,this[_0x59d8a5(0x1ea)]=_0x4bd240,this[_0x59d8a5(0x1e7)]=new _0x12f101(),this[_0x59d8a5(0x1e0)]=new _0x1a9a07(),this[_0x59d8a5(0x1cd)]=_0x21a7f6(_0x33508f||''),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1d2),_0x8b7a4c),this['on'](_0x59d8a5(0x203),()=>{const _0x31aeb6=_0x59d8a5;this[_0x31aeb6(0x20e)]();}),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1f3),_0xc7959);}[_0x15de43(0x1d9)](_0x430e8f){const _0x5d9f71=_0x15de43;this[_0x5d9f71(0x1ff)](_0x5d9f71(0x1f3),this[_0x5d9f71(0x1f3)]+_0x430e8f);}[_0x15de43(0x1f1)](){const _0x4d136a=_0x15de43;this[_0x4d136a(0x1d2)]||(this[_0x4d136a(0x1ff)](_0x4d136a(0x1d2),!0x0),this[_0x4d136a(0x20e)]());}[_0x15de43(0x202)](){const _0x52e967=_0x15de43;this[_0x52e967(0x1ed)]();}[_0x15de43(0x1fa)](_0x13e807,_0x25d1b2){const _0xe9ee18=_0x15de43;this[_0xe9ee18(0x1f7)][_0x13e807][_0xe9ee18(0x214)]=_0x25d1b2,this[_0xe9ee18(0x1cc)](_0xe9ee18(0x200),{'reply':this,'index':_0x13e807,'state':_0x25d1b2});}[_0x15de43(0x20a)]({showDiff:_0x59edca,groupIndex:_0x139dc7}){const _0x5ebb00=_0x15de43;if(!this[_0x5ebb00(0x1ea)])throw new _0x43efa2(_0x5ebb00(0x1eb),null,{'aiReply':this});const _0x5cfea4=this[_0x5ebb00(0x1e2)](_0x59edca,_0x139dc7);if(_0x5cfea4)return _0x5cfea4;let _0x38f45c=[];if(void 0x0===_0x139dc7)_0x38f45c=this[_0x5ebb00(0x1f7)];else{const _0x3e7dd6=this[_0x5ebb00(0x1f7)][_0x5ebb00(0x1f8)](({index:_0x31c7c9})=>_0x31c7c9===_0x139dc7);if(!_0x3e7dd6)throw new _0x43efa2(_0x5ebb00(0x204),null,{'aiReply':this,'groupIndex':_0x139dc7});_0x38f45c=[_0x3e7dd6];}const _0x2bfeb4=_0x5c0aec({'editor':this[_0x5ebb00(0x1ea)],'showDiff':_0x59edca,'changeGroups':_0x38f45c,'documentContextContent':this[_0x5ebb00(0x1cd)]});return this[_0x5ebb00(0x216)](_0x59edca,_0x2bfeb4),_0x2bfeb4;}[_0x15de43(0x1e2)](_0x1b403c,_0x6f2db7){const _0x575dbe=_0x15de43,_0x152834=_0x1b403c?_0x575dbe(0x1fc):_0x575dbe(0x1f9);if(!this[_0x575dbe(0x1f0)][_0x152834][_0x575dbe(0x1e9)])return null;const _0x536aa1=this[_0x575dbe(0x1f0)][_0x152834];if(void 0x0===_0x6f2db7)return _0x536aa1[_0x575dbe(0x1e9)]>0x0&&_0x536aa1[_0x575dbe(0x1e9)]!==this[_0x575dbe(0x1f7)][_0x575dbe(0x1e9)]?(this[_0x575dbe(0x216)](_0x1b403c,null),null):_0x1861d2(_0x536aa1);{const _0x1863d6=_0x536aa1[_0x575dbe(0x1f8)](({index:_0x27a10c})=>_0x27a10c===_0x6f2db7);if(_0x1863d6)return[_0x1861d2(_0x1863d6)];}return null;}[_0x15de43(0x216)](_0x2625bb,_0x200d17){const _0x1d4024=_0x15de43,_0x2cacfd=_0x2625bb?_0x1d4024(0x1fc):_0x1d4024(0x1f9);_0x200d17?_0x200d17[_0x1d4024(0x20c)](_0x56af8f=>{const _0x587c95=_0x1d4024,_0x92c447=this[_0x587c95(0x1f0)][_0x2cacfd],_0x18d52f=_0x92c447[_0x587c95(0x1f8)](({index:_0x45ad33})=>_0x45ad33===_0x56af8f[_0x587c95(0x1e6)]);if(_0x18d52f){const _0x45ed70=_0x92c447[_0x587c95(0x1ee)](_0x18d52f);_0x92c447[_0x587c95(0x1d6)](_0x45ed70,0x1,_0x56af8f);}else _0x92c447[_0x587c95(0x1e5)](_0x56af8f);}):this[_0x1d4024(0x1f0)][_0x2cacfd][_0x1d4024(0x1e9)]=0x0;}[_0x15de43(0x20e)](){const _0x112ffb=_0x15de43;if(_0x112ffb(0x1e8)===this[_0x112ffb(0x20b)]){this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x1c9)](this[_0x112ffb(0x1f3)]);const _0x2f85db=this[_0x112ffb(0x1f7)];this[_0x112ffb(0x1d0)]();const _0x1dc8f6=this[_0x112ffb(0x1dd)](_0x2f85db,this[_0x112ffb(0x1f7)]);(_0x1dc8f6[_0x112ffb(0x1e9)]||this[_0x112ffb(0x1d2)])&&(this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this,_0x1dc8f6),this[_0x112ffb(0x1f0)][_0x112ffb(0x1fc)][_0x112ffb(0x1e9)]=this[_0x112ffb(0x1f0)][_0x112ffb(0x1f9)][_0x112ffb(0x1e9)]=0x0);}else this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x207)](this[_0x112ffb(0x1f3)]),this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this);}[_0x15de43(0x1dd)](_0x1d4797,_0x40a69e){const _0xefa48e=_0x15de43,_0x121cdf=[];for(const _0x19d4c1 of _0x40a69e){const _0x25c77d=_0x1d4797[_0x19d4c1[_0xefa48e(0x1e6)]];_0x25c77d?_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x1e9)]!==_0x19d4c1[_0xefa48e(0x213)][_0xefa48e(0x1e9)]?_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1):_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x20c)]((_0x4527cd,_0x47c730)=>{const _0x1db793=_0xefa48e,_0x3ed570=_0x19d4c1[_0x1db793(0x213)][_0x47c730];_0x4527cd['id']!==_0x3ed570['id']&&_0x121cdf[_0x1db793(0x1e5)](_0x19d4c1);}):_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1);}return _0x121cdf;}[_0x15de43(0x1d0)](){const _0x315631=_0x15de43,_0xe34ea6=new _0x511730('p',{},[new _0x511730(_0x315631(0x1d7),{'style':_0x315631(0x1f4)},[new _0x117376(_0x341846(this[_0x315631(0x1ea)][_0x315631(0x1d3)],_0x315631(0x1cf)))])]),_0x5fa843=this[_0x315631(0x1e0)][_0x315631(0x1ce)](this[_0x315631(0x1fb)],this[_0x315631(0x1cd)][_0x315631(0x1e4)](!0x0),{'markUnstableElements':!this[_0x315631(0x1d2)],'replaceRemovedWith':_0xe34ea6,'cutAfterLastChange':!this[_0x315631(0x1d2)]});if(!_0x5fa843[_0x315631(0x1c6)][_0x315631(0x1e9)]&&!this[_0x315631(0x1d2)])return;this[_0x315631(0x20f)]=_0x5fa843[_0x315631(0x1fb)];let _0x43c62a=[];if(_0x3a1342(_0x37f252=>{const _0x5d85c1=_0x315631,_0x1717ae=_0x5901b9(_0x37f252,_0x5d85c1(0x1f6));if(!_0x1717ae||!_0x53230c(_0x1717ae))return!0x1;const _0x5beb9a=[_0x37f252,..._0x4670c0(_0x37f252)]['at'](-0x2);if(_0x37f252!=_0x5beb9a){const _0xdc4f92=_0x5901b9(_0x5beb9a,_0x5d85c1(0x1f6));_0x53230c(_0xdc4f92)||(_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x5beb9a,'id':_0xdc4f92,'type':_0x5d85c1(0x201)}),_0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x1e5)](_0xdc4f92));}else _0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x201),'id':_0x1717ae}):_0x5fa843[_0x5d85c1(0x1ca)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1d1),'id':_0x1717ae,'anchorId':_0x5901b9(_0x37f252[_0x5d85c1(0x1db)],_0x5d85c1(0x1f6))}):_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1f5),'id':_0x1717ae});return!0x0;},this[_0x315631(0x20f)]),_0x43c62a=_0x43c62a[_0x315631(0x1c7)](({node:_0x504bc9})=>[..._0x4670c0(_0x504bc9),_0x504bc9][_0x315631(0x1d4)](_0x249219=>!_0x5901b9(_0x249219,_0x315631(0x20d)))),0x0==_0x43c62a[_0x315631(0x1e9)])return;const _0x296401=[[_0x43c62a[0x0]]];for(let _0x32f786=0x1;_0x32f786<_0x43c62a[_0x315631(0x1e9)];_0x32f786++){const _0x380668=_0x296401[_0x296401[_0x315631(0x1e9)]-0x1],_0x341f08=_0x380668[_0x380668[_0x315631(0x1e9)]-0x1];_0x43c62a[_0x32f786][_0x315631(0x1e3)][_0x315631(0x1db)]==_0x341f08[_0x315631(0x1e3)]&&_0x315631(0x201)!=_0x43c62a[_0x32f786][_0x315631(0x20b)]&&_0x315631(0x201)!=_0x341f08[_0x315631(0x20b)]?_0x380668[_0x315631(0x1e5)](_0x43c62a[_0x32f786]):_0x296401[_0x315631(0x1e5)]([_0x43c62a[_0x32f786]]);}for(const _0x53eca5 of _0x296401){const _0x3b4d1a=_0x53eca5[0x0],_0xa1e02f=_0x53eca5[_0x53eca5[_0x315631(0x1e9)]-0x1],_0x4ecb72=_0x216406(_0x3b4d1a[_0x315631(0x1e3)][_0x315631(0x1db)]);_0x4ecb72&&_0x53eca5[_0x315631(0x1fe)](_0x4ecb72);const _0x218d2=_0x216406(_0xa1e02f[_0x315631(0x1e3)][_0x315631(0x1da)]);_0x218d2&&_0x53eca5[_0x315631(0x1e5)](_0x218d2);}function _0x53230c(_0x21f93a){const _0x5db247=_0x315631;return _0x5fa843[_0x5db247(0x1c6)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1ca)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1de)][_0x5db247(0x205)](_0x21f93a);}function _0x216406(_0x50ec0e){const _0x33f6ad=_0x315631;if(_0x50ec0e&&_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6))&&!_0x5901b9(_0x50ec0e,_0x33f6ad(0x20d))){const _0x182385=_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6));if(!_0x53230c(_0x182385))return{'node':_0x50ec0e,'type':_0x33f6ad(0x212),'id':_0x182385};}return null;}this[_0x315631(0x1f7)]=_0x296401[_0x315631(0x1f2)]((_0x20a0e9,_0x8689a8)=>({'changes':_0x20a0e9,'state':_0x315631(0x215),'index':_0x8689a8}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x101446=_0x493d;(function(_0x8a9699,_0x12bb44){const _0x2723a8=_0x493d,_0x32cbaa=_0x8a9699();while(!![]){try{const _0x298144=-parseInt(_0x2723a8(0x1b9))/0x1*(parseInt(_0x2723a8(0x1a9))/0x2)+-parseInt(_0x2723a8(0x18f))/0x3*(parseInt(_0x2723a8(0x1b4))/0x4)+parseInt(_0x2723a8(0x189))/0x5+-parseInt(_0x2723a8(0x196))/0x6+-parseInt(_0x2723a8(0x1ae))/0x7*(parseInt(_0x2723a8(0x1a1))/0x8)+-parseInt(_0x2723a8(0x1b0))/0x9+parseInt(_0x2723a8(0x199))/0xa;if(_0x298144===_0x12bb44)break;else _0x32cbaa['push'](_0x32cbaa['shift']());}catch(_0x2631ba){_0x32cbaa['push'](_0x32cbaa['shift']());}}}(_0x4af4,0x6813b));function _0x4af4(){const _0x46ab3c=['_generateUid','16263540YOjqmm','has','match','data-wrapped-id','newIds','includes','_isExistingNode','push','32JLmwan','true','removedIds','cloneNode','_removeSpecialComments','_findNextElementWithDataId','_getNodeDataId','slice','155060cmPTOy','forEach','_isDelNode','childNodes','_touchedNodesState','1270878MSaqOU','markUnstableElementsDepth','2226645dFgqXV','modifiedIds','_replaceNode','parentNode','20cWVOmt','map','data-id','_markLastTagElementUnstable','trim','1fqHMGm','afterend','lastChild','beforebegin','reverse','splice','data-removed','_existingDataIds','_markWrappedElements','_isExistingContentComment','replaceRemovedWith','_getUid','_isNewNode','nextSibling','afterbegin','lastTouchedId','_findReferenceNode','length','_hasWrappedParent','indexOf','cutAfterLastChange','_markUnstableElements','filter','121960dkbWNf','_findFallbackReferenceNode','_findPrevElementWithDataId','data-unstable','previousSibling','new-element','17655APRhdz','nodeType','markUnstableElements','merge','invalidIds','_storeDeletedElementIds','from','863226FsHbfr','_insertNodes'];_0x4af4=function(){return _0x46ab3c;};return _0x4af4();}import{ObservableMixin as _0x459090,uid as _0x2ef321}from'ckeditor5/src/utils.js';function _0x493d(_0x5cb5ea,_0x5d6053){const _0x4af462=_0x4af4();return _0x493d=function(_0x493d96,_0x2712b5){_0x493d96=_0x493d96-0x175;let _0x42ef23=_0x4af462[_0x493d96];return _0x42ef23;},_0x493d(_0x5cb5ea,_0x5d6053);}import{findAllByAttribute as _0x3d047d,findByAttribute as _0x4dda93,getAttribute as _0x12d43d,isComment as _0x1496c5,isTag as _0x5e1a31,insertElement as _0xcf41af,moveElement as _0x4cefeb,removeElement as _0x2e6ed4,replaceElement as _0x8ffe,serialize as _0x207571,setAttribute as _0x1b0ca2,clone as _0x3da74e,findAllComments as _0x1993aa,getParents as _0x490f28,getNodeNestingLevel as _0x3ecadd,areNodesSame as _0x15c834,removeElementsAfter as _0x4b1a08}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x459090(){[_0x101446(0x198)];[_0x101446(0x1ad)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x101446(0x179)]=new Set();constructor(_0x3b1526){const _0x5f42cf=_0x101446;super(),this[_0x5f42cf(0x198)]=_0x3b1526||_0x2ef321;}[_0x101446(0x192)](_0x28235a,_0x51580b,_0xd99156){const _0xe2f025=_0x101446,_0x526339=_0x3da74e(_0x28235a);if(0x0===_0x51580b[_0xe2f025(0x1ac)][_0xe2f025(0x183)]){const _0x5256be=[];return _0x3d047d(_0xe2f025(0x1b6),_0xe2f025(0x18e),_0x526339)[_0xe2f025(0x1aa)](_0xda6321=>{const _0x5d77fb=_0xe2f025,_0x1120bc=this[_0x5d77fb(0x198)]();_0x1b0ca2(_0xda6321,_0x5d77fb(0x1b6),_0x1120bc),_0x5256be[_0x5d77fb(0x1a0)](_0x1120bc);}),this[_0xe2f025(0x1a5)](_0x526339),{'parsedContent':_0x526339,'newNodeIds':_0x5256be,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xd99156&&_0xd99156[_0xe2f025(0x191)]&&this[_0xe2f025(0x1b7)](_0x526339),this[_0xe2f025(0x1ad)][_0xe2f025(0x19d)]=[],this[_0xe2f025(0x1ad)][_0xe2f025(0x1b1)]=[],this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)]=[],this[_0xe2f025(0x1ad)][_0xe2f025(0x193)]=[],this[_0xe2f025(0x1ad)][_0xe2f025(0x181)]=null,this[_0xe2f025(0x179)]=new Set(_0x3d047d(_0xe2f025(0x1b6),null,_0x51580b)[_0xe2f025(0x1b5)](_0x416c2f=>_0x12d43d(_0x416c2f,_0xe2f025(0x1b6)))[_0xe2f025(0x188)](_0x9f089f=>!!_0x9f089f));let _0x17cb7d=-0x1,_0x368efe=!0x1;const _0x5bc2b0=_0x526339[_0xe2f025(0x1ac)],_0x5badbd=Array[_0xe2f025(0x195)](_0x5bc2b0)[_0xe2f025(0x188)](_0xbc2db8=>!(0x3===_0xbc2db8[_0xe2f025(0x190)]&&''===_0x207571(_0xbc2db8)[_0xe2f025(0x1b8)]())),_0x11095e=_0x5badbd[_0xe2f025(0x183)];for(let _0x51d266=0x0;_0x51d266<_0x11095e;_0x51d266++){const _0x112daa=_0x5badbd[_0x51d266],_0xb9f0a1=_0x5badbd[_0x51d266+0x1];if(this[_0xe2f025(0x17e)](_0x112daa)){if(-0x1===_0x17cb7d&&(_0x17cb7d=_0x51d266),this[_0xe2f025(0x17a)](_0x112daa),!this[_0xe2f025(0x17e)](_0xb9f0a1)){const [_0x4a8832,_0x2f1268]=this[_0xe2f025(0x182)](_0x112daa,_0x368efe,_0x51580b);if(_0x4a8832){const _0x13741e=Array[_0xe2f025(0x195)](_0x5badbd)[_0xe2f025(0x1a8)](_0x17cb7d,_0x51d266+0x1);this[_0xe2f025(0x197)](_0x4a8832,_0x13741e,_0x2f1268),_0x17cb7d=-0x1;}}}else{if(this[_0xe2f025(0x17b)](_0x112daa))_0x368efe=!0x0;else{if(this[_0xe2f025(0x19f)](_0x112daa)){const _0x588a1b=_0x12d43d(_0x112daa,_0xe2f025(0x1b6));if(_0x588a1b&&this[_0xe2f025(0x179)][_0xe2f025(0x19a)](_0x588a1b)){const _0x30adf7=_0x4dda93(_0xe2f025(0x1b6),_0x588a1b,_0x51580b);this[_0xe2f025(0x1b2)](_0x30adf7,_0x112daa);}if(this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)][_0xe2f025(0x19e)](_0x588a1b)){const _0x2a745b=this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)][_0xe2f025(0x185)](_0x588a1b);this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)][_0xe2f025(0x177)](_0x2a745b,0x1);}}else{if(this[_0xe2f025(0x1ab)](_0x112daa)){const _0x47cde8=_0x12d43d(_0x112daa,_0xe2f025(0x1b6));this[_0xe2f025(0x1ad)][_0xe2f025(0x1b1)][_0xe2f025(0x19e)](_0x47cde8)||this[_0xe2f025(0x194)](_0x112daa);}}}}}for(const _0xf8351 of this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)]){const _0x285570=_0x4dda93(_0xe2f025(0x1b6),_0xf8351,_0x51580b);if(_0x285570){if(_0xd99156&&_0xd99156[_0xe2f025(0x17c)]){this[_0xe2f025(0x1ad)][_0xe2f025(0x181)]=_0xf8351;const _0x2160fe=_0xd99156[_0xe2f025(0x17c)][_0xe2f025(0x1a4)](!0x0);_0x1b0ca2(_0x2160fe,_0xe2f025(0x1b6),_0xf8351),_0x1b0ca2(_0x2160fe,_0xe2f025(0x178),_0xe2f025(0x1a2)),_0x8ffe(_0x285570,_0x2160fe);}else _0x2e6ed4(_0x285570);}}if(_0x3d047d(_0xe2f025(0x19c),null,_0x51580b)[_0xe2f025(0x1aa)](_0x162dee=>{const _0xbbc52b=_0xe2f025,_0x308bd2=_0x12d43d(_0x162dee,_0xbbc52b(0x19c)),_0x5161fa=_0x4dda93(_0xbbc52b(0x1b6),_0x308bd2,_0x51580b);_0x5161fa&&_0x4cefeb(_0x5161fa,_0x162dee);}),_0x3d047d(_0xe2f025(0x1b6),_0xe2f025(0x18e),_0x51580b)[_0xe2f025(0x1aa)](_0x4d7238=>{const _0x5b8484=_0xe2f025,_0x6082fa=this[_0x5b8484(0x17d)](_0x4d7238);_0x1b0ca2(_0x4d7238,_0x5b8484(0x1b6),_0x6082fa),this[_0x5b8484(0x1ad)][_0x5b8484(0x19d)][_0x5b8484(0x1a0)](_0x6082fa);}),this[_0xe2f025(0x1a5)](_0x51580b),_0xd99156&&_0xd99156[_0xe2f025(0x191)]&&this[_0xe2f025(0x187)](_0x51580b,_0xd99156[_0xe2f025(0x1af)]||0x0),_0xd99156&&_0xd99156[_0xe2f025(0x186)]&&this[_0xe2f025(0x1ad)][_0xe2f025(0x181)]){let _0x380b87=_0x4dda93(_0xe2f025(0x1b6),this[_0xe2f025(0x1ad)][_0xe2f025(0x181)],_0x51580b);for(;_0x380b87;)_0x4b1a08(_0x380b87),_0x380b87=_0x380b87[_0xe2f025(0x1b3)];}return{'parsedContent':_0x51580b,'newNodeIds':this[_0xe2f025(0x1ad)][_0xe2f025(0x19d)],'modifiedNodeIds':this[_0xe2f025(0x1ad)][_0xe2f025(0x1b1)],'removedNodeIds':this[_0xe2f025(0x1ad)][_0xe2f025(0x1a3)]};}[_0x101446(0x197)](_0x4f39fb,_0x17e962,_0x1d5543){const _0x11f9fd=_0x101446;for(const _0x328c80 of _0x17e962){const _0xd6a5f2=this[_0x11f9fd(0x17d)](_0x328c80);_0x1b0ca2(_0x328c80,_0x11f9fd(0x1b6),_0xd6a5f2),this[_0x11f9fd(0x1ad)][_0x11f9fd(0x19d)][_0x11f9fd(0x1a0)](_0xd6a5f2),this[_0x11f9fd(0x1ad)][_0x11f9fd(0x181)]=_0xd6a5f2;}const _0x389c85=_0x11f9fd(0x180)===_0x1d5543||_0x11f9fd(0x1ba)===_0x1d5543?_0x17e962[_0x11f9fd(0x176)]():_0x17e962;for(const _0x6d00fb of _0x389c85)_0xcf41af(_0x4f39fb,_0x6d00fb,_0x1d5543);}[_0x101446(0x1b2)](_0x3cb6a1,_0x52c2ca){const _0x2c4b51=_0x101446;if(!_0x3cb6a1)return;if(_0x15c834(_0x3cb6a1,_0x52c2ca))return;const _0x363bab=this[_0x2c4b51(0x17d)](_0x3cb6a1);_0x1b0ca2(_0x52c2ca,_0x2c4b51(0x1b6),_0x363bab),this[_0x2c4b51(0x1ad)][_0x2c4b51(0x1b1)][_0x2c4b51(0x1a0)](_0x363bab),this[_0x2c4b51(0x1ad)][_0x2c4b51(0x181)]=_0x363bab,_0x8ffe(_0x3cb6a1,_0x52c2ca[_0x2c4b51(0x1a4)](!0x0));}[_0x101446(0x182)](_0x27d6fd,_0x350145,_0x12b945){const _0x3569bb=_0x101446,_0x103f92=this[_0x3569bb(0x18b)](_0x27d6fd,!0x1);if(_0x103f92){const _0x5b5e6b=this[_0x3569bb(0x1a7)](_0x103f92),_0x2597d8=_0x4dda93(_0x3569bb(0x1b6),_0x5b5e6b,_0x12b945);if(_0x2597d8)return[_0x2597d8,_0x3569bb(0x1ba)];this[_0x3569bb(0x1ad)][_0x3569bb(0x193)][_0x3569bb(0x1a0)](_0x5b5e6b);}const _0x54eebc=this[_0x3569bb(0x1a6)](_0x27d6fd,!0x1);if(_0x54eebc){const _0x2fdbd6=this[_0x3569bb(0x1a7)](_0x54eebc),_0x4bace7=_0x4dda93(_0x3569bb(0x1b6),_0x2fdbd6,_0x12b945);if(_0x4bace7)return[_0x4bace7,_0x3569bb(0x175)];this[_0x3569bb(0x1ad)][_0x3569bb(0x193)][_0x3569bb(0x1a0)](_0x2fdbd6);}return _0x350145?_0x27d6fd[_0x3569bb(0x17f)]?this[_0x3569bb(0x18a)](_0x27d6fd,_0x12b945):[_0x12b945[_0x3569bb(0x1ac)][_0x12b945[_0x3569bb(0x1ac)][_0x3569bb(0x183)]-0x1],_0x3569bb(0x1ba)]:[_0x12b945[_0x3569bb(0x1ac)][0x0],_0x3569bb(0x175)];}[_0x101446(0x18a)](_0x4ec67b,_0x3037f8){const _0x46a1bd=_0x101446,_0x8dffd1=[],_0x118ad3=this[_0x46a1bd(0x18b)](_0x4ec67b,!0x0);if(_0x118ad3){const _0x39e29c=this[_0x46a1bd(0x1a7)](_0x118ad3),_0x1373b9=_0x4dda93(_0x46a1bd(0x1b6),_0x39e29c,_0x3037f8);_0x1373b9&&_0x8dffd1[_0x46a1bd(0x1a0)]([_0x1373b9,_0x46a1bd(0x1ba)]);}const _0x3d6e0f=this[_0x46a1bd(0x1a6)](_0x4ec67b,!0x0);if(_0x3d6e0f){const _0x26f305=this[_0x46a1bd(0x1a7)](_0x3d6e0f),_0x48889e=_0x4dda93(_0x46a1bd(0x1b6),_0x26f305,_0x3037f8);_0x48889e&&_0x8dffd1[_0x46a1bd(0x1a0)]([_0x48889e,_0x46a1bd(0x175)]);}if(_0x8dffd1[_0x46a1bd(0x183)]>0x1)return _0x3ecadd(_0x8dffd1[0x0][0x0])<=_0x3ecadd(_0x8dffd1[0x1][0x0])?_0x8dffd1[0x0]:_0x8dffd1[0x1];return 0x1===_0x8dffd1[_0x46a1bd(0x183)]?_0x8dffd1[0x0]:[_0x3037f8[_0x46a1bd(0x1bb)],_0x46a1bd(0x1ba)];}[_0x101446(0x1a6)](_0x4b5fea,_0x3dcd3c){const _0x48f73b=_0x101446;let _0x706cfd=_0x4b5fea[_0x48f73b(0x17f)],_0x5e8cfa=null,_0x31948a=!0x1;for(;_0x706cfd;){if(_0x1496c5(_0x706cfd)){if(this[_0x48f73b(0x1ab)](_0x706cfd)&&(_0x5e8cfa=_0x706cfd),this[_0x48f73b(0x17b)](_0x706cfd)&&_0x3dcd3c&&!_0x31948a){_0x31948a=!0x0,_0x706cfd=_0x706cfd[_0x48f73b(0x17f)];continue;}break;}const _0x2c2149=_0x12d43d(_0x706cfd,_0x48f73b(0x1b6));if(_0x2c2149&&_0x48f73b(0x18e)!==_0x2c2149&&this[_0x48f73b(0x179)][_0x48f73b(0x19a)](_0x2c2149)){_0x5e8cfa=_0x706cfd;break;}_0x706cfd=_0x706cfd[_0x48f73b(0x17f)];}return _0x5e8cfa;}[_0x101446(0x18b)](_0x3ba90b,_0x4a3fb9){const _0x871dcd=_0x101446;let _0x289a8b=_0x3ba90b[_0x871dcd(0x18d)],_0x44c9b6=null,_0x1a33ef=!0x1;for(;_0x289a8b;){if(_0x1496c5(_0x289a8b)){if(this[_0x871dcd(0x1ab)](_0x289a8b)&&(_0x44c9b6=_0x289a8b),this[_0x871dcd(0x17b)](_0x289a8b)&&_0x4a3fb9&&!_0x1a33ef){_0x1a33ef=!0x0,_0x289a8b=_0x289a8b[_0x871dcd(0x18d)];continue;}break;}const _0x4fd85a=_0x12d43d(_0x289a8b,_0x871dcd(0x1b6));if(_0x4fd85a&&_0x871dcd(0x18e)!==_0x4fd85a&&this[_0x871dcd(0x179)][_0x871dcd(0x19a)](_0x4fd85a)){_0x44c9b6=_0x289a8b;break;}_0x289a8b=_0x289a8b[_0x871dcd(0x18d)];}return _0x44c9b6;}[_0x101446(0x17a)](_0x3cfff4){const _0x2fd1e9=_0x101446;_0x5e1a31(_0x3cfff4)&&_0x3d047d(_0x2fd1e9(0x1b6),null,_0x3cfff4)[_0x2fd1e9(0x1aa)](_0x580f65=>{const _0x50f330=_0x2fd1e9;if(this[_0x50f330(0x19f)](_0x580f65)&&!this[_0x50f330(0x184)](_0x580f65)){const _0x58ec81=_0x12d43d(_0x580f65,_0x50f330(0x1b6));_0x1b0ca2(_0x580f65,_0x50f330(0x19c),_0x58ec81),_0x1b0ca2(_0x580f65,_0x50f330(0x1b6),null);}});}[_0x101446(0x1a7)](_0x2982b2){const _0xc129b9=_0x101446;if(!_0x2982b2)return null;if(_0x5e1a31(_0x2982b2))return _0x12d43d(_0x2982b2,_0xc129b9(0x1b6));if(_0x1496c5(_0x2982b2)){const _0x324373=_0x207571(_0x2982b2)[_0xc129b9(0x19b)](/removed[\s*-]data-id="([^"]+)"/);if(_0x324373&&_0x324373[0x1])return _0x324373[0x1];}return null;}[_0x101446(0x194)](_0x3ec974){const _0x39f114=_0x101446;if(_0x1496c5(_0x3ec974)){const _0x27a7a6=_0x207571(_0x3ec974)[_0x39f114(0x19b)](/removed[\s*-]data-id="([^"]+)"/);_0x27a7a6&&_0x27a7a6[0x1]&&this[_0x39f114(0x1ad)][_0x39f114(0x1a3)][_0x39f114(0x1a0)](_0x27a7a6[0x1]);}}[_0x101446(0x17d)](_0x4964c6){const _0xa24c4e=_0x101446;return this[_0xa24c4e(0x19f)](_0x4964c6)?_0x12d43d(_0x4964c6,_0xa24c4e(0x1b6)):this[_0xa24c4e(0x198)]();}[_0x101446(0x1a5)](_0x3a938d){const _0x424d94=_0x101446;_0x1993aa(_0x3a938d)[_0x424d94(0x188)](_0x3fcdd7=>this[_0x424d94(0x1ab)](_0x3fcdd7)||this[_0x424d94(0x17b)](_0x3fcdd7))[_0x424d94(0x1aa)](_0x5617a0=>{_0x2e6ed4(_0x5617a0);});}[_0x101446(0x1b7)](_0x57c2c7){const _0x2edbe5=_0x101446,_0x1add3f=_0x57c2c7[_0x2edbe5(0x1ac)],_0x38760e=_0x1add3f[_0x1add3f[_0x2edbe5(0x183)]-0x1];_0x38760e&&_0x5e1a31(_0x38760e)&&_0x1b0ca2(_0x38760e,_0x2edbe5(0x18c),_0x2edbe5(0x1a2));}[_0x101446(0x187)](_0x4a1e3a,_0x8d9d0d){const _0x2ee2de=_0x101446,_0x538f44=_0x4dda93(_0x2ee2de(0x18c),_0x2ee2de(0x1a2),_0x4a1e3a);if(!_0x538f44)return;const _0x52c421=_0x490f28(_0x538f44)[_0x2ee2de(0x1a8)](0x0,-0x1),_0x25dc68=_0x52c421[_0x2ee2de(0x183)];let _0x25ca4d=_0x538f44;if(_0x25dc68>_0x8d9d0d){let _0x2d94f0=_0x25dc68,_0x4d6e94=null;for(;_0x2d94f0>_0x8d9d0d&&_0x2d94f0>=0x0;)_0x2d94f0--,_0x4d6e94=_0x52c421[_0x2d94f0];_0x4d6e94&&(_0x25ca4d=_0x4d6e94,_0x1b0ca2(_0x538f44,_0x2ee2de(0x18c),null),_0x1b0ca2(_0x4d6e94,_0x2ee2de(0x18c),_0x2ee2de(0x1a2)));}else{if(_0x25dc68<_0x8d9d0d){let _0x4a2fab=_0x25dc68,_0x44d885=_0x538f44;for(;_0x4a2fab<_0x8d9d0d;){const _0x23a42b=_0x44d885[_0x2ee2de(0x1ac)][_0x2ee2de(0x188)](_0xd57210=>_0x5e1a31(_0xd57210));if(0x0===_0x23a42b[_0x2ee2de(0x183)])break;_0x4a2fab++,_0x44d885=_0x23a42b[_0x23a42b[_0x2ee2de(0x183)]-0x1];}_0x44d885&&(_0x25ca4d=_0x44d885,_0x1b0ca2(_0x538f44,_0x2ee2de(0x18c),null),_0x1b0ca2(_0x44d885,_0x2ee2de(0x18c),_0x2ee2de(0x1a2)));}}let _0xebbdb6=_0x25ca4d;for(;_0xebbdb6;){for(;_0xebbdb6[_0x2ee2de(0x17f)];)_0xebbdb6=_0xebbdb6[_0x2ee2de(0x17f)],_0x5e1a31(_0xebbdb6)&&_0x1b0ca2(_0xebbdb6,_0x2ee2de(0x18c),_0x2ee2de(0x1a2));_0xebbdb6=_0xebbdb6[_0x2ee2de(0x1b3)];}}[_0x101446(0x17e)](_0x7ddfe2){const _0x31a2c5=_0x101446;return Boolean(_0x31a2c5(0x18e)===_0x12d43d(_0x7ddfe2,_0x31a2c5(0x1b6)));}[_0x101446(0x19f)](_0x280d10){const _0x34c4b9=_0x101446;return Boolean((_0x12d43d(_0x280d10,_0x34c4b9(0x1b6))||'')[_0x34c4b9(0x183)]>0x0&&_0x34c4b9(0x18e)!==_0x12d43d(_0x280d10,_0x34c4b9(0x1b6)));}[_0x101446(0x1ab)](_0x51bc5d){const _0x4039e4=_0x101446;return!!_0x51bc5d&&Boolean(_0x1496c5(_0x51bc5d)&&_0x207571(_0x51bc5d)[_0x4039e4(0x19b)](/removed[\s*-]data-id="[^"]+"/));}[_0x101446(0x184)](_0x25ada3){const _0x30d39b=_0x101446;let _0x2b1a7=_0x25ada3[_0x30d39b(0x1b3)];for(;_0x2b1a7;){if(_0x12d43d(_0x2b1a7,_0x30d39b(0x19c)))return!0x0;_0x2b1a7=_0x2b1a7[_0x30d39b(0x1b3)];}return!0x1;}[_0x101446(0x17b)](_0x3eb276){const _0x4c7f4c=_0x101446;return Boolean(_0x1496c5(_0x3eb276)&&_0x207571(_0x3eb276)[_0x4c7f4c(0x19b)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x459b34=_0x1765;(function(_0x1b799b,_0x44032e){const _0x2b5261=_0x1765,_0x1d7c51=_0x1b799b();while(!![]){try{const _0x28f332=parseInt(_0x2b5261(0x211))/0x1*(-parseInt(_0x2b5261(0x22a))/0x2)+parseInt(_0x2b5261(0x202))/0x3*(parseInt(_0x2b5261(0x217))/0x4)+parseInt(_0x2b5261(0x1fa))/0x5*(parseInt(_0x2b5261(0x216))/0x6)+parseInt(_0x2b5261(0x22c))/0x7+-parseInt(_0x2b5261(0x232))/0x8+parseInt(_0x2b5261(0x20c))/0x9*(parseInt(_0x2b5261(0x1f0))/0xa)+parseInt(_0x2b5261(0x1f4))/0xb;if(_0x28f332===_0x44032e)break;else _0x1d7c51['push'](_0x1d7c51['shift']());}catch(_0x27265c){_0x1d7c51['push'](_0x1d7c51['shift']());}}}(_0x465f,0x2a378));function _0x465f(){const _0x21ad3a=['trim','has','_touchedNodesState','_findPrevElementWithDataId','lastTouchedId','600434MzRRYj','_replaceNode','261779DOfLSX','_storeDeletedElementIds','cloneNode','parentNode','_isExistingContentComment','_removeSpecialComments','2373512AnXCzo','childNodes','data-removed','markUnstableElements','modifiedIds','_findNextElementWithDataId','748190JJwZIQ','splice','newIds','length','4210525kByiJq','indexOf','merge','_isExistingNode','afterbegin','reverse','798355EoLEmC','forEach','map','_getUid','cutAfterLastChange','_isDelNode','push','filter','63VsekOt','markUnstableElementsDepth','_hasWrappedParent','removedIds','true','afterend','slice','data-id','_existingDataIds','_markUnstableElements','9PdJlEl','data-wrapped-id','nodeType','includes','new-element','1MOHKBy','_findFallbackReferenceNode','_isNewNode','_insertNodes','match','6qxMAVH','21936DcRsZN','_markLastTagElementUnstable','lastChild','_markWrappedElements','nextSibling','_generateUid','replaceRemovedWith','beforebegin','previousSibling','_getNodeDataId','invalidIds','from','_findReferenceNode','data-unstable'];_0x465f=function(){return _0x21ad3a;};return _0x465f();}function _0x1765(_0x522dc7,_0x45d007){const _0x465f92=_0x465f();return _0x1765=function(_0x17654e,_0x2d7d80){_0x17654e=_0x17654e-0x1eb;let _0x54b19a=_0x465f92[_0x17654e];return _0x54b19a;},_0x1765(_0x522dc7,_0x45d007);}import{ObservableMixin as _0x5e3215,uid as _0x13bbab}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xd1ffa5,findByAttribute as _0x2982a8,getAttribute as _0x2842f8,isComment as _0x5b6b06,isTag as _0x4b38ed,insertElement as _0x58e231,moveElement as _0x4a9924,removeElement as _0xce1575,replaceElement as _0x40d39d,serialize as _0x3865c0,setAttribute as _0x478682,clone as _0x42ab44,findAllComments as _0x54795b,getParents as _0x4fcc3b,getNodeNestingLevel as _0x49384e,areNodesSame as _0x18b4d9,removeElementsAfter as _0x8b970a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5e3215(){[_0x459b34(0x21c)];[_0x459b34(0x227)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x459b34(0x20a)]=new Set();constructor(_0x565f74){const _0x4e0c25=_0x459b34;super(),this[_0x4e0c25(0x21c)]=_0x565f74||_0x13bbab;}[_0x459b34(0x1f6)](_0x322810,_0x1d0a61,_0x4a023b){const _0x5bd519=_0x459b34,_0x4323f5=_0x42ab44(_0x322810);if(0x0===_0x1d0a61[_0x5bd519(0x1eb)][_0x5bd519(0x1f3)]){const _0x9f5bfc=[];return _0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x4323f5)[_0x5bd519(0x1fb)](_0x2cbafe=>{const _0x5281d5=_0x5bd519,_0x180909=this[_0x5281d5(0x21c)]();_0x478682(_0x2cbafe,_0x5281d5(0x209),_0x180909),_0x9f5bfc[_0x5281d5(0x200)](_0x180909);}),this[_0x5bd519(0x231)](_0x4323f5),{'parsedContent':_0x4323f5,'newNodeIds':_0x9f5bfc,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x218)](_0x4323f5),this[_0x5bd519(0x227)][_0x5bd519(0x1f2)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x1ee)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x205)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x221)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x229)]=null,this[_0x5bd519(0x20a)]=new Set(_0xd1ffa5(_0x5bd519(0x209),null,_0x1d0a61)[_0x5bd519(0x1fc)](_0x5cf38b=>_0x2842f8(_0x5cf38b,_0x5bd519(0x209)))[_0x5bd519(0x201)](_0x441575=>!!_0x441575));let _0x230f06=-0x1,_0x50aa31=!0x1;const _0x30785c=_0x4323f5[_0x5bd519(0x1eb)],_0x52b4ce=Array[_0x5bd519(0x222)](_0x30785c)[_0x5bd519(0x201)](_0x575225=>!(0x3===_0x575225[_0x5bd519(0x20e)]&&''===_0x3865c0(_0x575225)[_0x5bd519(0x225)]())),_0xed79a3=_0x52b4ce[_0x5bd519(0x1f3)];for(let _0x11fe1d=0x0;_0x11fe1d<_0xed79a3;_0x11fe1d++){const _0x4c6a48=_0x52b4ce[_0x11fe1d],_0x40bb09=_0x52b4ce[_0x11fe1d+0x1];if(this[_0x5bd519(0x213)](_0x4c6a48)){if(-0x1===_0x230f06&&(_0x230f06=_0x11fe1d),this[_0x5bd519(0x21a)](_0x4c6a48),!this[_0x5bd519(0x213)](_0x40bb09)){const [_0x3b8f3f,_0x2a1942]=this[_0x5bd519(0x223)](_0x4c6a48,_0x50aa31,_0x1d0a61);if(_0x3b8f3f){const _0x3969da=Array[_0x5bd519(0x222)](_0x52b4ce)[_0x5bd519(0x208)](_0x230f06,_0x11fe1d+0x1);this[_0x5bd519(0x214)](_0x3b8f3f,_0x3969da,_0x2a1942),_0x230f06=-0x1;}}}else{if(this[_0x5bd519(0x230)](_0x4c6a48))_0x50aa31=!0x0;else{if(this[_0x5bd519(0x1f7)](_0x4c6a48)){const _0x1ab468=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));if(_0x1ab468&&this[_0x5bd519(0x20a)][_0x5bd519(0x226)](_0x1ab468)){const _0x45861f=_0x2982a8(_0x5bd519(0x209),_0x1ab468,_0x1d0a61);this[_0x5bd519(0x22b)](_0x45861f,_0x4c6a48);}if(this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x20f)](_0x1ab468)){const _0x3123e1=this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f5)](_0x1ab468);this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f1)](_0x3123e1,0x1);}}else{if(this[_0x5bd519(0x1ff)](_0x4c6a48)){const _0x3a438a=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));this[_0x5bd519(0x227)][_0x5bd519(0x1ee)][_0x5bd519(0x20f)](_0x3a438a)||this[_0x5bd519(0x22d)](_0x4c6a48);}}}}}for(const _0x3a44bd of this[_0x5bd519(0x227)][_0x5bd519(0x205)]){const _0x250188=_0x2982a8(_0x5bd519(0x209),_0x3a44bd,_0x1d0a61);if(_0x250188){if(_0x4a023b&&_0x4a023b[_0x5bd519(0x21d)]){this[_0x5bd519(0x227)][_0x5bd519(0x229)]=_0x3a44bd;const _0xe54429=_0x4a023b[_0x5bd519(0x21d)][_0x5bd519(0x22e)](!0x0);_0x478682(_0xe54429,_0x5bd519(0x209),_0x3a44bd),_0x478682(_0xe54429,_0x5bd519(0x1ec),_0x5bd519(0x206)),_0x40d39d(_0x250188,_0xe54429);}else _0xce1575(_0x250188);}}if(_0xd1ffa5(_0x5bd519(0x20d),null,_0x1d0a61)[_0x5bd519(0x1fb)](_0x4cff95=>{const _0x5855de=_0x5bd519,_0x1d2e35=_0x2842f8(_0x4cff95,_0x5855de(0x20d)),_0xa5470e=_0x2982a8(_0x5855de(0x209),_0x1d2e35,_0x1d0a61);_0xa5470e&&_0x4a9924(_0xa5470e,_0x4cff95);}),_0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x1d0a61)[_0x5bd519(0x1fb)](_0xc0aa5f=>{const _0x10fb69=_0x5bd519,_0x41c72e=this[_0x10fb69(0x1fd)](_0xc0aa5f);_0x478682(_0xc0aa5f,_0x10fb69(0x209),_0x41c72e),this[_0x10fb69(0x227)][_0x10fb69(0x1f2)][_0x10fb69(0x200)](_0x41c72e);}),this[_0x5bd519(0x231)](_0x1d0a61),_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x20b)](_0x1d0a61,_0x4a023b[_0x5bd519(0x203)]||0x0),_0x4a023b&&_0x4a023b[_0x5bd519(0x1fe)]&&this[_0x5bd519(0x227)][_0x5bd519(0x229)]){let _0x11e90f=_0x2982a8(_0x5bd519(0x209),this[_0x5bd519(0x227)][_0x5bd519(0x229)],_0x1d0a61);for(;_0x11e90f;)_0x8b970a(_0x11e90f),_0x11e90f=_0x11e90f[_0x5bd519(0x22f)];}return{'parsedContent':_0x1d0a61,'newNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1f2)],'modifiedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1ee)],'removedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x205)]};}[_0x459b34(0x214)](_0x3c85c4,_0x50812d,_0x25e82a){const _0x4742c6=_0x459b34;for(const _0x43493b of _0x50812d){const _0x4aae2d=this[_0x4742c6(0x1fd)](_0x43493b);_0x478682(_0x43493b,_0x4742c6(0x209),_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x1f2)][_0x4742c6(0x200)](_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x229)]=_0x4aae2d;}const _0x2e2370=_0x4742c6(0x1f8)===_0x25e82a||_0x4742c6(0x207)===_0x25e82a?_0x50812d[_0x4742c6(0x1f9)]():_0x50812d;for(const _0x3bcde6 of _0x2e2370)_0x58e231(_0x3c85c4,_0x3bcde6,_0x25e82a);}[_0x459b34(0x22b)](_0xd15c5c,_0x50fc86){const _0x393369=_0x459b34;if(!_0xd15c5c)return;if(_0x18b4d9(_0xd15c5c,_0x50fc86))return;const _0x42eb0c=this[_0x393369(0x1fd)](_0xd15c5c);_0x478682(_0x50fc86,_0x393369(0x209),_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x1ee)][_0x393369(0x200)](_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x229)]=_0x42eb0c,_0x40d39d(_0xd15c5c,_0x50fc86[_0x393369(0x22e)](!0x0));}[_0x459b34(0x223)](_0x43c090,_0x3396f2,_0x53d286){const _0x5b2653=_0x459b34,_0x5caaf9=this[_0x5b2653(0x228)](_0x43c090,!0x1);if(_0x5caaf9){const _0x3276a5=this[_0x5b2653(0x220)](_0x5caaf9),_0x3c4044=_0x2982a8(_0x5b2653(0x209),_0x3276a5,_0x53d286);if(_0x3c4044)return[_0x3c4044,_0x5b2653(0x207)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x3276a5);}const _0x23c310=this[_0x5b2653(0x1ef)](_0x43c090,!0x1);if(_0x23c310){const _0x24447e=this[_0x5b2653(0x220)](_0x23c310),_0x4ee8d4=_0x2982a8(_0x5b2653(0x209),_0x24447e,_0x53d286);if(_0x4ee8d4)return[_0x4ee8d4,_0x5b2653(0x21e)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x24447e);}return _0x3396f2?_0x43c090[_0x5b2653(0x21b)]?this[_0x5b2653(0x212)](_0x43c090,_0x53d286):[_0x53d286[_0x5b2653(0x1eb)][_0x53d286[_0x5b2653(0x1eb)][_0x5b2653(0x1f3)]-0x1],_0x5b2653(0x207)]:[_0x53d286[_0x5b2653(0x1eb)][0x0],_0x5b2653(0x21e)];}[_0x459b34(0x212)](_0x3a6641,_0x4b07b7){const _0x3421b5=_0x459b34,_0x3e858c=[],_0x8aa60e=this[_0x3421b5(0x228)](_0x3a6641,!0x0);if(_0x8aa60e){const _0x806a15=this[_0x3421b5(0x220)](_0x8aa60e),_0x228513=_0x2982a8(_0x3421b5(0x209),_0x806a15,_0x4b07b7);_0x228513&&_0x3e858c[_0x3421b5(0x200)]([_0x228513,_0x3421b5(0x207)]);}const _0x28349f=this[_0x3421b5(0x1ef)](_0x3a6641,!0x0);if(_0x28349f){const _0x19bbaf=this[_0x3421b5(0x220)](_0x28349f),_0x115428=_0x2982a8(_0x3421b5(0x209),_0x19bbaf,_0x4b07b7);_0x115428&&_0x3e858c[_0x3421b5(0x200)]([_0x115428,_0x3421b5(0x21e)]);}if(_0x3e858c[_0x3421b5(0x1f3)]>0x1)return _0x49384e(_0x3e858c[0x0][0x0])<=_0x49384e(_0x3e858c[0x1][0x0])?_0x3e858c[0x0]:_0x3e858c[0x1];return 0x1===_0x3e858c[_0x3421b5(0x1f3)]?_0x3e858c[0x0]:[_0x4b07b7[_0x3421b5(0x219)],_0x3421b5(0x207)];}[_0x459b34(0x1ef)](_0x2e20a4,_0xb47357){const _0xa323e4=_0x459b34;let _0x3e318a=_0x2e20a4[_0xa323e4(0x21b)],_0x894b47=null,_0x445eac=!0x1;for(;_0x3e318a;){if(_0x5b6b06(_0x3e318a)){if(this[_0xa323e4(0x1ff)](_0x3e318a)&&(_0x894b47=_0x3e318a),this[_0xa323e4(0x230)](_0x3e318a)&&_0xb47357&&!_0x445eac){_0x445eac=!0x0,_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];continue;}break;}const _0x2068da=_0x2842f8(_0x3e318a,_0xa323e4(0x209));if(_0x2068da&&_0xa323e4(0x210)!==_0x2068da&&this[_0xa323e4(0x20a)][_0xa323e4(0x226)](_0x2068da)){_0x894b47=_0x3e318a;break;}_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];}return _0x894b47;}[_0x459b34(0x228)](_0x179aab,_0x2aff62){const _0x4decbd=_0x459b34;let _0x4e6b6a=_0x179aab[_0x4decbd(0x21f)],_0x5c3e1c=null,_0xb90ef4=!0x1;for(;_0x4e6b6a;){if(_0x5b6b06(_0x4e6b6a)){if(this[_0x4decbd(0x1ff)](_0x4e6b6a)&&(_0x5c3e1c=_0x4e6b6a),this[_0x4decbd(0x230)](_0x4e6b6a)&&_0x2aff62&&!_0xb90ef4){_0xb90ef4=!0x0,_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];continue;}break;}const _0x1cb4d8=_0x2842f8(_0x4e6b6a,_0x4decbd(0x209));if(_0x1cb4d8&&_0x4decbd(0x210)!==_0x1cb4d8&&this[_0x4decbd(0x20a)][_0x4decbd(0x226)](_0x1cb4d8)){_0x5c3e1c=_0x4e6b6a;break;}_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];}return _0x5c3e1c;}[_0x459b34(0x21a)](_0xba8f08){const _0x1ef0df=_0x459b34;_0x4b38ed(_0xba8f08)&&_0xd1ffa5(_0x1ef0df(0x209),null,_0xba8f08)[_0x1ef0df(0x1fb)](_0x52ab4b=>{const _0x411e5f=_0x1ef0df;if(this[_0x411e5f(0x1f7)](_0x52ab4b)&&!this[_0x411e5f(0x204)](_0x52ab4b)){const _0x4de87c=_0x2842f8(_0x52ab4b,_0x411e5f(0x209));_0x478682(_0x52ab4b,_0x411e5f(0x20d),_0x4de87c),_0x478682(_0x52ab4b,_0x411e5f(0x209),null);}});}[_0x459b34(0x220)](_0xe45341){const _0x2af184=_0x459b34;if(!_0xe45341)return null;if(_0x4b38ed(_0xe45341))return _0x2842f8(_0xe45341,_0x2af184(0x209));if(_0x5b6b06(_0xe45341)){const _0x51bc53=_0x3865c0(_0xe45341)[_0x2af184(0x215)](/removed[\s*-]data-id="([^"]+)"/);if(_0x51bc53&&_0x51bc53[0x1])return _0x51bc53[0x1];}return null;}[_0x459b34(0x22d)](_0x4a1c04){const _0x2a9637=_0x459b34;if(_0x5b6b06(_0x4a1c04)){const _0x3c6ae8=_0x3865c0(_0x4a1c04)[_0x2a9637(0x215)](/removed[\s*-]data-id="([^"]+)"/);_0x3c6ae8&&_0x3c6ae8[0x1]&&this[_0x2a9637(0x227)][_0x2a9637(0x205)][_0x2a9637(0x200)](_0x3c6ae8[0x1]);}}[_0x459b34(0x1fd)](_0x2d5b0e){const _0x309f85=_0x459b34;return this[_0x309f85(0x1f7)](_0x2d5b0e)?_0x2842f8(_0x2d5b0e,_0x309f85(0x209)):this[_0x309f85(0x21c)]();}[_0x459b34(0x231)](_0x1ed617){const _0x52e4bf=_0x459b34;_0x54795b(_0x1ed617)[_0x52e4bf(0x201)](_0x65a356=>this[_0x52e4bf(0x1ff)](_0x65a356)||this[_0x52e4bf(0x230)](_0x65a356))[_0x52e4bf(0x1fb)](_0x20afa3=>{_0xce1575(_0x20afa3);});}[_0x459b34(0x218)](_0x44465d){const _0x392fb0=_0x459b34,_0x2f9804=_0x44465d[_0x392fb0(0x1eb)],_0xcefc99=_0x2f9804[_0x2f9804[_0x392fb0(0x1f3)]-0x1];_0xcefc99&&_0x4b38ed(_0xcefc99)&&_0x478682(_0xcefc99,_0x392fb0(0x224),_0x392fb0(0x206));}[_0x459b34(0x20b)](_0x594caf,_0x2b117a){const _0x41595b=_0x459b34,_0x3fc83c=_0x2982a8(_0x41595b(0x224),_0x41595b(0x206),_0x594caf);if(!_0x3fc83c)return;const _0x451a5d=_0x4fcc3b(_0x3fc83c)[_0x41595b(0x208)](0x0,-0x1),_0x55f72b=_0x451a5d[_0x41595b(0x1f3)];let _0x137d8b=_0x3fc83c;if(_0x55f72b>_0x2b117a){let _0x36bf41=_0x55f72b,_0x5e2c61=null;for(;_0x36bf41>_0x2b117a&&_0x36bf41>=0x0;)_0x36bf41--,_0x5e2c61=_0x451a5d[_0x36bf41];_0x5e2c61&&(_0x137d8b=_0x5e2c61,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x5e2c61,_0x41595b(0x224),_0x41595b(0x206)));}else{if(_0x55f72b<_0x2b117a){let _0x3a8172=_0x55f72b,_0x128b64=_0x3fc83c;for(;_0x3a8172<_0x2b117a;){const _0x2e0957=_0x128b64[_0x41595b(0x1eb)][_0x41595b(0x201)](_0x3bc915=>_0x4b38ed(_0x3bc915));if(0x0===_0x2e0957[_0x41595b(0x1f3)])break;_0x3a8172++,_0x128b64=_0x2e0957[_0x2e0957[_0x41595b(0x1f3)]-0x1];}_0x128b64&&(_0x137d8b=_0x128b64,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x128b64,_0x41595b(0x224),_0x41595b(0x206)));}}let _0x46737a=_0x137d8b;for(;_0x46737a;){for(;_0x46737a[_0x41595b(0x21b)];)_0x46737a=_0x46737a[_0x41595b(0x21b)],_0x4b38ed(_0x46737a)&&_0x478682(_0x46737a,_0x41595b(0x224),_0x41595b(0x206));_0x46737a=_0x46737a[_0x41595b(0x22f)];}}[_0x459b34(0x213)](_0x23ed36){const _0x43954f=_0x459b34;return Boolean(_0x43954f(0x210)===_0x2842f8(_0x23ed36,_0x43954f(0x209)));}[_0x459b34(0x1f7)](_0x29015a){const _0x49dc73=_0x459b34;return Boolean((_0x2842f8(_0x29015a,_0x49dc73(0x209))||'')[_0x49dc73(0x1f3)]>0x0&&_0x49dc73(0x210)!==_0x2842f8(_0x29015a,_0x49dc73(0x209)));}[_0x459b34(0x1ff)](_0x5a47b7){const _0xc173c8=_0x459b34;return!!_0x5a47b7&&Boolean(_0x5b6b06(_0x5a47b7)&&_0x3865c0(_0x5a47b7)[_0xc173c8(0x215)](/removed[\s*-]data-id="[^"]+"/));}[_0x459b34(0x204)](_0x138d94){const _0x5ca146=_0x459b34;let _0x1ab101=_0x138d94[_0x5ca146(0x22f)];for(;_0x1ab101;){if(_0x2842f8(_0x1ab101,_0x5ca146(0x20d)))return!0x0;_0x1ab101=_0x1ab101[_0x5ca146(0x22f)];}return!0x1;}[_0x459b34(0x230)](_0x5adf50){const _0x4a7f12=_0x459b34;return Boolean(_0x5b6b06(_0x5adf50)&&_0x3865c0(_0x5adf50)[_0x4a7f12(0x215)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bc570=_0x4f17;(function(_0x1716ce,_0x22c865){const _0x5265b1=_0x4f17,_0x28edfd=_0x1716ce();while(!![]){try{const _0x47d2e5=-parseInt(_0x5265b1(0x14e))/0x1*(parseInt(_0x5265b1(0x146))/0x2)+parseInt(_0x5265b1(0x14f))/0x3*(-parseInt(_0x5265b1(0x14d))/0x4)+parseInt(_0x5265b1(0x142))/0x5+-parseInt(_0x5265b1(0x150))/0x6*(parseInt(_0x5265b1(0x154))/0x7)+-parseInt(_0x5265b1(0x149))/0x8+parseInt(_0x5265b1(0x143))/0x9*(-parseInt(_0x5265b1(0x148))/0xa)+parseInt(_0x5265b1(0x147))/0xb*(parseInt(_0x5265b1(0x14b))/0xc);if(_0x47d2e5===_0x22c865)break;else _0x28edfd['push'](_0x28edfd['shift']());}catch(_0x5c3d9f){_0x28edfd['push'](_0x28edfd['shift']());}}}(_0x5d5e,0xbab52));function _0x4f17(_0x5c9bd7,_0x2d9164){const _0x5d5ea1=_0x5d5e();return _0x4f17=function(_0x4f17b1,_0x49dd3a){_0x4f17b1=_0x4f17b1-0x142;let _0x520c72=_0x5d5ea1[_0x4f17b1];return _0x520c72;},_0x4f17(_0x5c9bd7,_0x2d9164);}import{ObservableMixin as _0x88e8de}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2ab5cb}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5d5e(){const _0x556b75=['children','24cyKqry','_parseHTML','88LwCSuy','2HKTHJi','76731uxwdtZ','30EYYkJO','convertMarkdownToHTML','replace','_m2html','1899275qGwvvB','<dummy>','parse','5863035NZUJpI','108xrzuIR','</dummy>','parseAndNormalizeHTML','1348692sjOXFI','26486097GdLwDZ','610450xuRiJi','9783648rGLcJv'];_0x5d5e=function(){return _0x556b75;};return _0x5d5e();}import{parse as _0x2f002a}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x88e8de(){[_0x4bc570(0x153)];constructor(){const _0x25d420=_0x4bc570;super(),this[_0x25d420(0x153)]=new _0x2ab5cb();}[_0x4bc570(0x151)](_0x5e30b5){const _0x34c12e=_0x4bc570,_0x175b88=this[_0x34c12e(0x153)][_0x34c12e(0x156)](_0x5e30b5);return this[_0x34c12e(0x145)](_0x175b88);}[_0x4bc570(0x145)](_0x1b76cc){const _0x3d679d=_0x4bc570;return this[_0x3d679d(0x14c)](_0x1b76cc);}[_0x4bc570(0x14c)](_0x307fe4){const _0x3f5fb4=_0x4bc570,_0x28d4dd=_0x307fe4[_0x3f5fb4(0x152)](/^\t+/gm,'\x20')[_0x3f5fb4(0x152)](/\n*/g,'')[_0x3f5fb4(0x152)](/\s+/g,'\x20')[_0x3f5fb4(0x152)](/<[^>]*?$/g,''),_0x212a2b=_0x2f002a(_0x3f5fb4(0x155)+_0x28d4dd+_0x3f5fb4(0x144));return _0x212a2b[_0x3f5fb4(0x14a)]=_0x212a2b[_0x3f5fb4(0x14a)][0x0][_0x3f5fb4(0x14a)],_0x212a2b;}}
23
+ const _0x1f9451=_0x5eb5;function _0x5eb5(_0x4beb70,_0x599c11){const _0x314beb=_0x314b();return _0x5eb5=function(_0x5eb5b9,_0x2eac23){_0x5eb5b9=_0x5eb5b9-0x1d5;let _0xb058e1=_0x314beb[_0x5eb5b9];return _0xb058e1;},_0x5eb5(_0x4beb70,_0x599c11);}function _0x314b(){const _0x115411=['266483EohLSf','1084105dYYBXs','_parseHTML','parse','60KWAZmy','16fjvwPA','<dummy>','convertMarkdownToHTML','replace','317817YpPIyi','</dummy>','704014ZSkCMT','204167rIGoNt','parseAndNormalizeHTML','1690792yAJRnX','children','_m2html','532390WOXUeF','135CVHsyA'];_0x314b=function(){return _0x115411;};return _0x314b();}(function(_0x48796f,_0x413a60){const _0x28f4b8=_0x5eb5,_0x3de190=_0x48796f();while(!![]){try{const _0x5390a9=-parseInt(_0x28f4b8(0x1d8))/0x1+-parseInt(_0x28f4b8(0x1d7))/0x2+parseInt(_0x28f4b8(0x1d5))/0x3*(parseInt(_0x28f4b8(0x1e4))/0x4)+parseInt(_0x28f4b8(0x1e0))/0x5+-parseInt(_0x28f4b8(0x1e3))/0x6*(parseInt(_0x28f4b8(0x1df))/0x7)+-parseInt(_0x28f4b8(0x1da))/0x8+parseInt(_0x28f4b8(0x1de))/0x9*(parseInt(_0x28f4b8(0x1dd))/0xa);if(_0x5390a9===_0x413a60)break;else _0x3de190['push'](_0x3de190['shift']());}catch(_0x3c74d9){_0x3de190['push'](_0x3de190['shift']());}}}(_0x314b,0x47085));import{ObservableMixin as _0x4a1b4a}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x39a012}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x2b773d}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x4a1b4a(){[_0x1f9451(0x1dc)];constructor(){const _0x3daa77=_0x1f9451;super(),this[_0x3daa77(0x1dc)]=new _0x39a012();}[_0x1f9451(0x1e6)](_0x45c961){const _0x508bdb=_0x1f9451,_0x43f797=this[_0x508bdb(0x1dc)][_0x508bdb(0x1e2)](_0x45c961);return this[_0x508bdb(0x1d9)](_0x43f797);}[_0x1f9451(0x1d9)](_0x24a60e){const _0x11b5e8=_0x1f9451;return this[_0x11b5e8(0x1e1)](_0x24a60e);}[_0x1f9451(0x1e1)](_0x556375){const _0xaa0a6d=_0x1f9451,_0x1ae5c0=_0x556375[_0xaa0a6d(0x1e7)](/^\t+/gm,'\x20')[_0xaa0a6d(0x1e7)](/\n*/g,'')[_0xaa0a6d(0x1e7)](/\s+/g,'\x20')[_0xaa0a6d(0x1e7)](/<[^>]*?$/g,''),_0x12c4ab=_0x2b773d(_0xaa0a6d(0x1e5)+_0x1ae5c0+_0xaa0a6d(0x1d6));return _0x12c4ab[_0xaa0a6d(0x1db)]=_0x12c4ab[_0xaa0a6d(0x1db)][0x0][_0xaa0a6d(0x1db)],_0x12c4ab;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xa08336,_0x51c0ba){var _0x3bc849=_0x4101,_0xdc543=_0xa08336();while(!![]){try{var _0x4c7690=parseInt(_0x3bc849(0x14c))/0x1*(parseInt(_0x3bc849(0x152))/0x2)+-parseInt(_0x3bc849(0x151))/0x3+parseInt(_0x3bc849(0x14e))/0x4*(-parseInt(_0x3bc849(0x14f))/0x5)+-parseInt(_0x3bc849(0x154))/0x6+parseInt(_0x3bc849(0x159))/0x7+parseInt(_0x3bc849(0x150))/0x8+parseInt(_0x3bc849(0x155))/0x9;if(_0x4c7690===_0x51c0ba)break;else _0xdc543['push'](_0xdc543['shift']());}catch(_0x171fae){_0xdc543['push'](_0xdc543['shift']());}}}(_0x534d,0xf09b3));import{View as _0x54c23b}from'ckeditor5/src/ui.js';function _0x534d(){var _0x1fe09d=['7699643fJSRsf','451DazLAg','ck-ai-disclaimer__content','202344EpmCSY','95jOpHlZ','12686456MgrlUw','1831620smMczr','2474bUyOMz','setTemplate','10853616hPzYmB','10102410kgWRxX','ck-ai-disclaimer','AI_DISCLAIMER_TEXT','div'];_0x534d=function(){return _0x1fe09d;};return _0x534d();}import{getTranslation as _0x1aa86a}from'../../aicore/utils/common-translations.js';function _0x4101(_0x4bb7b4,_0x22002b){var _0x534dde=_0x534d();return _0x4101=function(_0x4101c9,_0x38696e){_0x4101c9=_0x4101c9-0x14c;var _0x4a1df4=_0x534dde[_0x4101c9];return _0x4a1df4;},_0x4101(_0x4bb7b4,_0x22002b);}import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x54c23b{constructor(_0x31a24e){var _0x37a34a=_0x4101;super(_0x31a24e),this[_0x37a34a(0x153)]({'tag':_0x37a34a(0x158),'attributes':{'class':['ck',_0x37a34a(0x156)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x37a34a(0x14d)]},'children':[{'text':_0x1aa86a(_0x31a24e,_0x37a34a(0x157))}]}]});}}
23
+ function _0x2106(){var _0x1b88a8=['ck-ai-disclaimer__content','4259596XBCdTF','AI_DISCLAIMER_TEXT','2962500fZFaed','99160XfmAqF','div','setTemplate','333770Qzkewb','553EbcLbH','ck-ai-disclaimer','20tZnUpz','617868oDybMl','100JvHhgo','24483TFQnKz','6662rNAmRv','261fSpdze'];_0x2106=function(){return _0x1b88a8;};return _0x2106();}function _0x47e2(_0x397d47,_0x28ddcf){var _0x210658=_0x2106();return _0x47e2=function(_0x47e2d4,_0x48c45d){_0x47e2d4=_0x47e2d4-0x1a6;var _0x3309b5=_0x210658[_0x47e2d4];return _0x3309b5;},_0x47e2(_0x397d47,_0x28ddcf);}(function(_0x5c4c02,_0x2bde5e){var _0x4f8f2b=_0x47e2,_0x21edaa=_0x5c4c02();while(!![]){try{var _0x3669b1=-parseInt(_0x4f8f2b(0x1b1))/0x1*(-parseInt(_0x4f8f2b(0x1af))/0x2)+parseInt(_0x4f8f2b(0x1b0))/0x3*(-parseInt(_0x4f8f2b(0x1ad))/0x4)+parseInt(_0x4f8f2b(0x1a6))/0x5+parseInt(_0x4f8f2b(0x1ae))/0x6+parseInt(_0x4f8f2b(0x1ab))/0x7*(parseInt(_0x4f8f2b(0x1a7))/0x8)+-parseInt(_0x4f8f2b(0x1b2))/0x9*(parseInt(_0x4f8f2b(0x1aa))/0xa)+-parseInt(_0x4f8f2b(0x1b4))/0xb;if(_0x3669b1===_0x2bde5e)break;else _0x21edaa['push'](_0x21edaa['shift']());}catch(_0x37848a){_0x21edaa['push'](_0x21edaa['shift']());}}}(_0x2106,0x955e1));import{View as _0x23dbdd}from'ckeditor5/src/ui.js';import{getTranslation as _0x49fa6a}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x23dbdd{constructor(_0x2f4e32){var _0x37b58e=_0x47e2;super(_0x2f4e32),this[_0x37b58e(0x1a9)]({'tag':_0x37b58e(0x1a8),'attributes':{'class':['ck',_0x37b58e(0x1ac)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x37b58e(0x1b3)]},'children':[{'text':_0x49fa6a(_0x2f4e32,_0x37b58e(0x1b5))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3731aa=_0x1a44;(function(_0x40baa7,_0x452e0f){const _0x284e51=_0x1a44,_0x5afa95=_0x40baa7();while(!![]){try{const _0x510811=-parseInt(_0x284e51(0xee))/0x1*(-parseInt(_0x284e51(0xd6))/0x2)+-parseInt(_0x284e51(0xd3))/0x3*(parseInt(_0x284e51(0xf8))/0x4)+-parseInt(_0x284e51(0xe7))/0x5+-parseInt(_0x284e51(0xe8))/0x6+-parseInt(_0x284e51(0xed))/0x7*(parseInt(_0x284e51(0xe4))/0x8)+parseInt(_0x284e51(0xef))/0x9+-parseInt(_0x284e51(0xdb))/0xa*(-parseInt(_0x284e51(0xf4))/0xb);if(_0x510811===_0x452e0f)break;else _0x5afa95['push'](_0x5afa95['shift']());}catch(_0x144d30){_0x5afa95['push'](_0x5afa95['shift']());}}}(_0x3eaf,0xa9a2e));function _0x3eaf(){const _0x268e88=['fill','center','ck-ai-skeleton__item','5684ZjkmHi','72px','40px',';\x20height:\x20','class','1356cmcpUf','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','ck-ai-skeleton','59374ZysfEr','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','100%','height','44px','350DHpnPu','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','left','setTemplate','_createSkeletonItems','attributes','align','150px','242728ikEDeW','140px','250px','1963160Onisag','2440698Ysvdhu','map','tag','right','width','203ZcIIZP','46DSKbhY','10923381xyTWoG','div','24px','width:\x20','88px','137379ienOJE'];_0x3eaf=function(){return _0x268e88;};return _0x3eaf();}import{View as _0x46dd9b}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x46dd9b{constructor(_0x1732d8,_0x141920){const _0x45d3fb=_0x1a44;super(_0x1732d8),this[_0x45d3fb(0xdf)]({'tag':_0x45d3fb(0xf0),'attributes':{'class':['ck',_0x45d3fb(0xd5)]},'children':this[_0x45d3fb(0xe0)](_0x141920)});}[_0x3731aa(0xe0)](_0x3c31c0){const _0x2d5d28=_0x3731aa,_0x2b11cd=['ck',_0x2d5d28(0xf7)];return _0x3c31c0[_0x2d5d28(0xe9)](_0x33653b=>{const _0xa7b7e3=_0x2d5d28;let _0x6daf58='';switch(_0x33653b[_0xa7b7e3(0xe1)][_0xa7b7e3(0xe2)]){case _0xa7b7e3(0xeb):_0x6daf58=_0xa7b7e3(0xd7);break;case _0xa7b7e3(0xf6):_0x6daf58=_0xa7b7e3(0xd4);break;case _0xa7b7e3(0xde):_0x6daf58=_0xa7b7e3(0xdd);}return{'tag':_0x33653b[_0xa7b7e3(0xea)],'attributes':{'class':[..._0x2b11cd,_0x33653b[_0xa7b7e3(0xe1)][_0xa7b7e3(0xd2)]?_0x33653b[_0xa7b7e3(0xe1)][_0xa7b7e3(0xd2)]:''],'style':_0xa7b7e3(0xf2)+_0x33653b[_0xa7b7e3(0xe1)][_0xa7b7e3(0xec)]+_0xa7b7e3(0xd1)+_0x33653b[_0xa7b7e3(0xe1)][_0xa7b7e3(0xd9)]+';'+_0x6daf58}};});}}function _0x1a44(_0x5d0e09,_0x437204){const _0x3eaf61=_0x3eaf();return _0x1a44=function(_0x1a441b,_0xc80664){_0x1a441b=_0x1a441b-0xd1;let _0x5a3d44=_0x3eaf61[_0x1a441b];return _0x5a3d44;},_0x1a44(_0x5d0e09,_0x437204);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xd8),'height':_0x3731aa(0xf9),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xe6),'height':_0x3731aa(0xfa),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xd8),'height':_0x3731aa(0xf3),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xe3),'height':_0x3731aa(0xfa),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xd8),'height':_0x3731aa(0xe5),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xe6),'height':_0x3731aa(0xfa),'align':_0x3731aa(0xeb)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xd8),'height':_0x3731aa(0xf3),'align':_0x3731aa(0xeb)}}],'aiHistory':ta(0x5,_0x3731aa(0xd8),_0x3731aa(0xda),_0x3731aa(0xeb)),'aiChatResources':ta(0x8,_0x3731aa(0xd8),_0x3731aa(0xf1),_0x3731aa(0xeb)),'aiReviewChecks':[{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xdc),'height':_0x3731aa(0xf1),'align':_0x3731aa(0xde)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xd8),'height':_0x3731aa(0xf1),'align':_0x3731aa(0xde)}},{'tag':_0x3731aa(0xf0),'attributes':{'width':_0x3731aa(0xdc),'height':_0x3731aa(0xf1),'align':_0x3731aa(0xde)}}]};function ta(_0x13d668,_0x1961a0,_0x3a5eeb,_0x39d8d8){const _0x49be99=_0x3731aa;return new Array(_0x13d668)[_0x49be99(0xf5)](null)[_0x49be99(0xe9)](()=>({'tag':_0x49be99(0xf0),'attributes':{'width':_0x1961a0,'height':_0x3a5eeb,'align':_0x39d8d8}}));}
23
+ const _0x3f9b13=_0x58e1;function _0x58e1(_0x3ea848,_0x4e4a8f){const _0x3959a0=_0x3959();return _0x58e1=function(_0x58e139,_0x28eed5){_0x58e139=_0x58e139-0x8a;let _0x9b6254=_0x3959a0[_0x58e139];return _0x9b6254;},_0x58e1(_0x3ea848,_0x4e4a8f);}(function(_0x5b0e1c,_0x4d1633){const _0x47a126=_0x58e1,_0x46460d=_0x5b0e1c();while(!![]){try{const _0x13a0df=-parseInt(_0x47a126(0xa4))/0x1*(-parseInt(_0x47a126(0xb1))/0x2)+-parseInt(_0x47a126(0xb2))/0x3+parseInt(_0x47a126(0xa1))/0x4*(-parseInt(_0x47a126(0xad))/0x5)+-parseInt(_0x47a126(0x92))/0x6*(parseInt(_0x47a126(0x9b))/0x7)+parseInt(_0x47a126(0xb3))/0x8*(parseInt(_0x47a126(0xab))/0x9)+parseInt(_0x47a126(0xb0))/0xa+-parseInt(_0x47a126(0xa9))/0xb*(-parseInt(_0x47a126(0x95))/0xc);if(_0x13a0df===_0x4d1633)break;else _0x46460d['push'](_0x46460d['shift']());}catch(_0x5029c9){_0x46460d['push'](_0x46460d['shift']());}}}(_0x3959,0x92c1d));import{View as _0x312700}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x312700{constructor(_0x3c65be,_0x10c198){const _0x1de728=_0x58e1;super(_0x3c65be),this[_0x1de728(0x9e)]({'tag':_0x1de728(0xa2),'attributes':{'class':['ck',_0x1de728(0xa8)]},'children':this[_0x1de728(0x99)](_0x10c198)});}[_0x3f9b13(0x99)](_0x14479c){const _0x3a75bb=_0x3f9b13,_0x2760d9=['ck',_0x3a75bb(0x8e)];return _0x14479c[_0x3a75bb(0xa3)](_0x5640e1=>{const _0x5e47c=_0x3a75bb;let _0x545170='';switch(_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x90)]){case _0x5e47c(0xaa):_0x545170=_0x5e47c(0x9d);break;case _0x5e47c(0xa6):_0x545170=_0x5e47c(0x8a);break;case _0x5e47c(0x8d):_0x545170=_0x5e47c(0x9a);}return{'tag':_0x5640e1[_0x5e47c(0xaf)],'attributes':{'class':[..._0x2760d9,_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x97)]?_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x97)]:''],'style':_0x5e47c(0xac)+_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x8f)]+_0x5e47c(0xae)+_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x93)]+';'+_0x545170}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x8c),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9f),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x91),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0xa7),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x94),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9f),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x91),'align':_0x3f9b13(0xaa)}}],'aiHistory':ta(0x5,_0x3f9b13(0x9c),_0x3f9b13(0xb4),_0x3f9b13(0xaa)),'aiChatResources':ta(0x8,_0x3f9b13(0x9c),_0x3f9b13(0x8b),_0x3f9b13(0xaa)),'aiReviewChecks':[{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x96),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x96),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}}]};function _0x3959(){const _0x47486c=['144728gsXodK','44px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','24px','72px','left','ck-ai-skeleton__item','width','align','88px','14352YDjcak','height','140px','12KtixqB','128px','class','40px','_createSkeletonItems','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','2709xGQsdm','100%','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','250px','attributes','255388rcYGZC','div','map','106cZnNwx','fill','center','150px','ck-ai-skeleton','11460889ObHodv','right','189XnJogV','width:\x20','15mqYXZi',';\x20height:\x20','tag','3162400HQHRvg','15014vTnbsk','2446290TChFCe'];_0x3959=function(){return _0x47486c;};return _0x3959();}function ta(_0x1907dc,_0x27b1c6,_0x3a0d84,_0x57156c){const _0x58445f=_0x3f9b13;return new Array(_0x1907dc)[_0x58445f(0xa5)](null)[_0x58445f(0xa3)](()=>({'tag':_0x58445f(0xa2),'attributes':{'width':_0x27b1c6,'height':_0x3a0d84,'align':_0x57156c}}));}