@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) 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.d.ts +8 -4
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3a94(_0x2014dc,_0x8a3394){const _0x468ae5=_0x468a();return _0x3a94=function(_0x3a94d8,_0x476c86){_0x3a94d8=_0x3a94d8-0x1e8;let _0x3f6072=_0x468ae5[_0x3a94d8];return _0x3f6072;},_0x3a94(_0x2014dc,_0x8a3394);}const _0x406bd1=_0x3a94;(function(_0x4d3934,_0x3519e4){const _0x75abe0=_0x3a94,_0x32ab5b=_0x4d3934();while(!![]){try{const _0x5e0157=parseInt(_0x75abe0(0x1ee))/0x1*(-parseInt(_0x75abe0(0x24c))/0x2)+parseInt(_0x75abe0(0x24f))/0x3*(parseInt(_0x75abe0(0x22b))/0x4)+parseInt(_0x75abe0(0x1f0))/0x5+-parseInt(_0x75abe0(0x1e9))/0x6+-parseInt(_0x75abe0(0x22f))/0x7+-parseInt(_0x75abe0(0x261))/0x8*(-parseInt(_0x75abe0(0x25a))/0x9)+parseInt(_0x75abe0(0x26c))/0xa*(-parseInt(_0x75abe0(0x20f))/0xb);if(_0x5e0157===_0x3519e4)break;else _0x32ab5b['push'](_0x32ab5b['shift']());}catch(_0x31b762){_0x32ab5b['push'](_0x32ab5b['shift']());}}}(_0x468a,0x76c4c));import{CKEditorError as _0x43748d,ObservableMixin as _0x56448f,uid as _0x164d2e}from'ckeditor5/src/utils.js';function _0x468a(){const _0xd49337=['ai-request-aborted','start','contextSent','code','forEach','_findSourceIdsByResourceId','_addToConversationContextItem','set','isCurrentDocumentInContext','HTML','url','attributes','resourceId','72868iOzZUE','map','_finishUploadOperation','addFilesToContext','3388651vOiYXw','all','ai-chat-context-invalid-data','TEXT','data','addUrlToContext','text/html','contextItemLoadingEnded','find','substring','File','isHidden','ai-chat-source-resources-load-failed','mapContextItemsToRequestData','_startUploadOperation','resourceStateChanged','string','addResourceToContext','push','label','_conversationContextItems','_convertTextResourceToFile','fetchDocument','enabled','toolName','uploadUrl','current-document','from','removeFromContext','44142xIdZSZ','ai-chat-file-upload-failed','length','111zSRgRV','_connector','addCurrentDocumentToContext','_updateResourceInContextState','_ongoingUploads','init','addContextOptionsChanged','contextItemAdded','MARKDOWN','stack','ai-chat-url-upload-failed','4812237EUYIkQ','file-','text/markdown','message','contextItemRemoved','_createContextItemFromContent','get','8xzxDdX','_removeContextItem','_setAddContextOptionsDefaultState','addSelectionToContext','sourceResourcesLoaded','abort','_ownerId','_finishContextItemLoading','getDocument','ai-chat-context-unsupported-type','SELECTION','10JGUDVc','selection','getPendingContextItems','URL','_toggleAddCurrentDocumentOptionVisibility','isCurrentDocumentInConversation','_isResourceInContext','uploadProgressChanged','clearPendingContextItems','getData','ai-chat-resource-no-data','customItems','sessionId','populateFromMessage','getResources','urls','end','_mapContextItemToRequestData','name','996210MEVtAX','isReadOnly','ai-chat-document-upload-failed','uiId','addToolItemToContext','9QTemOb','url-','3918560fqEEci','updateCurrentDocument','mcpServerName','object','document','files','removeSelectionFromContext','text/plain','startsWith','ai-chat-source-not-found','isSelectionInContext','values','type','ai-chat-resource-load-failed','resources','content','fire','_addContextOptionsState','_getCustomSourcesInitialState','_addContextItem','_config','abortController','filter','getSentContextItems','uploadFile','object\x20with\x20content\x20and\x20type\x20properties','DOCUMENT','error','getId','addToConversationContext','size','7229101zRnvib','_pendingContextItems','TOOL','isInContext','hidden','has','_ongoingUploadOperations','Current\x20document','loadSourceResources','files-','version','FILE','sources','delete','uploadDocument'];_0x468a=function(){return _0xd49337;};return _0x468a();}import{AIContextItemType as _0x4acc34,AIContextTextResourceType as _0x1e38bf}from'../../aicore/model/aicontext.js';import{escape as _0xffaafc}from'es-toolkit/compat';import{errorsMap as _0x188f20}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x406bd1(0x256),_0x406bd1(0x25e),_0x406bd1(0x236),_0x406bd1(0x220),_0x406bd1(0x20b),_0x406bd1(0x255),_0x406bd1(0x265),_0x406bd1(0x23e),_0x406bd1(0x273)];export class AIChatContext extends _0x56448f(){[_0x406bd1(0x250)];[_0x406bd1(0x204)];[_0x406bd1(0x267)];constructor({connector:_0x5085cb,config:_0x2ac98e,ownerId:_0x18afc1}){const _0x2ed40=_0x406bd1;super(),this[_0x2ed40(0x250)]=_0x5085cb,this[_0x2ed40(0x204)]=_0x2ac98e,this[_0x2ed40(0x267)]=_0x18afc1;}[_0x406bd1(0x254)](){const _0x1bbe4a=_0x406bd1;this[_0x1bbe4a(0x210)]=new Map(),this[_0x1bbe4a(0x243)]=new Map(),this[_0x1bbe4a(0x253)]=new Map(),this[_0x1bbe4a(0x215)]=new Map(),this[_0x1bbe4a(0x263)]();}[_0x406bd1(0x26e)](){const _0x16d96e=_0x406bd1;return this[_0x16d96e(0x210)];}async[_0x406bd1(0x279)](_0x567d66){const _0x41d1d1=_0x406bd1,_0x1fc3f8=await this[_0x41d1d1(0x25f)](_0x567d66);return this[_0x41d1d1(0x224)](_0x1fc3f8),_0x41d1d1(0x249)===_0x1fc3f8[_0x41d1d1(0x1ec)]&&this[_0x41d1d1(0x270)](),_0x1fc3f8;}async[_0x406bd1(0x25f)](_0x355907){const _0x587881=_0x406bd1;if(_0x355907[_0x587881(0x1fc)]===_0x4acc34[_0x587881(0x20a)]){const _0x49b019=await this[_0x587881(0x250)][_0x587881(0x245)](this[_0x587881(0x267)],_0x355907['id'])[_0x587881(0x269)]();return{'id':_0x587881(0x249),'uiId':_0x587881(0x249),'label':_0x587881(0x216),'type':_0x355907[_0x587881(0x1fc)],'content':_0x49b019[_0x587881(0x1ff)],'hidden':this[_0x587881(0x243)][_0x587881(0x214)](_0x587881(0x249)),'version':_0x49b019[_0x587881(0x229)]?.[_0x587881(0x219)],'sessionId':_0x49b019[_0x587881(0x229)]?.[_0x587881(0x278)]};}if(_0x355907[_0x587881(0x1fc)]===_0x4acc34[_0x587881(0x211)])return{'id':_0x355907['id'],'uiId':_0x355907['id'],'label':_0x355907[_0x587881(0x233)]?.[_0x587881(0x242)]||_0x355907['id'],'type':_0x4acc34[_0x587881(0x211)],'mcpServerName':_0x355907[_0x587881(0x1f2)],'toolName':_0x355907[_0x587881(0x247)],'data':_0x355907[_0x587881(0x233)]||{}};return{'id':_0x355907['id'],'uiId':_0x355907['id'],'label':_0x355907[_0x587881(0x229)]?.[_0x587881(0x242)]||_0x355907[_0x587881(0x1e8)]||_0x355907[_0x587881(0x228)]||_0x355907['id'],'type':_0x355907[_0x587881(0x1fc)],..._0x355907?.[_0x587881(0x229)]?.[_0x587881(0x22a)]?{'resourceId':_0x355907[_0x587881(0x229)]?.[_0x587881(0x22a)]}:{}};}[_0x406bd1(0x207)](){const _0x4e7907=_0x406bd1;return new Map(this[_0x4e7907(0x243)]);}[_0x406bd1(0x24b)](_0x1fb02e){const _0xcfb797=_0x406bd1,_0x2c7df6=this[_0xcfb797(0x210)][_0xcfb797(0x260)](_0x1fb02e);_0x2c7df6?.[_0xcfb797(0x1ea)]||this[_0xcfb797(0x262)](_0x1fb02e);}[_0x406bd1(0x274)](){const _0x329a17=_0x406bd1;if(0x0===this[_0x329a17(0x210)][_0x329a17(0x20e)])return;for(const _0x15b6f7 of this[_0x329a17(0x210)][_0x329a17(0x1fb)]())this[_0x329a17(0x262)](_0x15b6f7[_0x329a17(0x1ec)]);const _0x3e64a4=this[_0x329a17(0x243)][_0x329a17(0x260)](_0x329a17(0x249))||this[_0x329a17(0x210)][_0x329a17(0x260)](_0x329a17(0x249));_0x3e64a4&&this[_0x329a17(0x203)]({..._0x3e64a4,'isReadOnly':!0x0,'hidden':!0x0});}[_0x406bd1(0x20d)](_0x3b89ab){const _0x41824d=_0x406bd1;for(const _0x9e3d4b of _0x3b89ab[_0x41824d(0x1fb)]())this[_0x41824d(0x224)](_0x9e3d4b);this[_0x41824d(0x274)](),this[_0x41824d(0x200)](_0x41824d(0x220),{'contextItems':Array[_0x41824d(0x24a)](this[_0x41824d(0x207)]()[_0x41824d(0x1fb)]())});}[_0x406bd1(0x226)](){const _0x4ce98c=_0x406bd1;return this[_0x4ce98c(0x210)][_0x4ce98c(0x214)](_0x4ce98c(0x249));}[_0x406bd1(0x1fa)](){const _0x2abf9a=_0x406bd1;return this[_0x2abf9a(0x210)][_0x2abf9a(0x214)](_0x2abf9a(0x26d));}[_0x406bd1(0x271)](){const _0x2c2353=_0x406bd1;return this[_0x2c2353(0x243)][_0x2c2353(0x214)](_0x2c2353(0x249));}static[_0x406bd1(0x23c)](_0x39d1a6){const _0x47b6a8=_0x406bd1;return Array[_0x47b6a8(0x24a)](_0x39d1a6[_0x47b6a8(0x1fb)]())[_0x47b6a8(0x22c)](_0x96572b=>this[_0x47b6a8(0x27d)](_0x96572b))[_0x47b6a8(0x206)](_0x523a3c=>null!==_0x523a3c);}async[_0x406bd1(0x22e)](_0xb5be00,_0x4e6555,_0x2ecf0b=_0x4acc34[_0x406bd1(0x21a)]){const _0x4c490b=_0x406bd1,_0x3412c8=_0x4c490b(0x218)+_0x164d2e();this[_0x4c490b(0x23d)](_0x3412c8);try{await Promise[_0x4c490b(0x230)](_0xb5be00[_0x4c490b(0x22c)](async _0x319dbd=>{const _0x1271e8=_0x4c490b,_0xbe9998=_0x1271e8(0x25b)+_0x164d2e(),_0x5562a7=_0xffaafc(_0x319dbd[_0x1271e8(0x1e8)]);try{this[_0x1271e8(0x203)]({'type':_0x2ecf0b,'label':_0x4e6555?.[_0x1271e8(0x242)]||_0x5562a7,'uiId':_0xbe9998,'resourceId':_0x4e6555?.[_0x1271e8(0x22a)]},!0x0);const _0x47372b=this[_0x1271e8(0x250)][_0x1271e8(0x208)](this[_0x1271e8(0x267)],_0x319dbd,_0x4e6555);this[_0x1271e8(0x253)][_0x1271e8(0x225)](_0xbe9998,_0x47372b[_0x1271e8(0x205)]);const {id:_0x796a60}=await _0x47372b[_0x1271e8(0x20c)]();this[_0x1271e8(0x253)][_0x1271e8(0x21c)](_0xbe9998),this[_0x1271e8(0x268)]({'type':_0x2ecf0b,'id':_0x796a60,'label':_0x4e6555?.[_0x1271e8(0x242)]||_0x5562a7,'uiId':_0xbe9998,'resourceId':_0x4e6555?.[_0x1271e8(0x22a)]},!0x1);}catch(_0x48618b){this[_0x1271e8(0x253)][_0x1271e8(0x21c)](_0xbe9998);if(!(_0x48618b instanceof _0x43748d&&_0x48618b[_0x1271e8(0x25d)][_0x1271e8(0x1f8)](_0x1271e8(0x21e)))){const _0x3d6dda=_0x188f20[_0x1271e8(0x260)](_0x48618b[_0x1271e8(0x221)])||_0x1271e8(0x24d),_0x3a025d=new _0x43748d(_0x3d6dda,null,{'fileName':_0x5562a7,..._0x48618b});_0x3a025d[_0x1271e8(0x258)]=_0x48618b[_0x1271e8(0x258)],this[_0x1271e8(0x200)](_0x1271e8(0x20b),{'error':_0x3a025d});}this[_0x1271e8(0x262)](_0xbe9998);}}));}finally{this[_0x4c490b(0x22d)](_0x3412c8);}}[_0x406bd1(0x251)](_0x46d69f){const _0x21570c=_0x406bd1;if(this[_0x21570c(0x226)]()||!this[_0x21570c(0x201)][_0x21570c(0x1f4)][_0x21570c(0x246)])return;const _0x48720c={'type':_0x4acc34[_0x21570c(0x20a)],'uiId':_0x21570c(0x249),'label':_0x46d69f,'isReadOnly':this[_0x21570c(0x243)][_0x21570c(0x214)](_0x21570c(0x249)),'hidden':this[_0x21570c(0x243)][_0x21570c(0x214)](_0x21570c(0x249))};this[_0x21570c(0x203)](_0x48720c);}async[_0x406bd1(0x1f1)](_0x4f1db6,_0x31f6f4,_0x219317,_0x64698c){const _0x3ebd59=_0x406bd1,_0x14d76e=this[_0x3ebd59(0x210)][_0x3ebd59(0x260)](_0x3ebd59(0x249));if(_0x14d76e&&_0x4f1db6){_0x14d76e[_0x3ebd59(0x26d)]=_0x64698c?_0x64698c[_0x3ebd59(0x22c)](_0x11e6d2=>({'start':_0x11e6d2[_0x3ebd59(0x21f)],'end':_0x11e6d2[_0x3ebd59(0x27c)]})):[];try{if(_0x14d76e[_0x3ebd59(0x219)]===_0x31f6f4)return;const {id:_0x517a6f}=await this[_0x3ebd59(0x250)][_0x3ebd59(0x21d)](this[_0x3ebd59(0x267)],_0x4f1db6,{'version':_0x31f6f4,'sessionId':_0x219317})[_0x3ebd59(0x20c)]();_0x14d76e['id']=_0x517a6f,_0x14d76e[_0x3ebd59(0x1ff)]=_0x4f1db6,_0x14d76e[_0x3ebd59(0x219)]=_0x31f6f4,_0x14d76e[_0x3ebd59(0x278)]=_0x219317;}catch(_0x2cd512){const _0x33c92d=new _0x43748d(_0x3ebd59(0x1eb),null);_0x33c92d[_0x3ebd59(0x258)]=_0x2cd512[_0x3ebd59(0x258)],this[_0x3ebd59(0x200)](_0x3ebd59(0x20b),{'error':_0x33c92d});}}}[_0x406bd1(0x264)](_0x256e28){const _0x5b52b3=_0x406bd1;this[_0x5b52b3(0x203)]({'type':_0x4acc34[_0x5b52b3(0x26b)],'label':_0x256e28,'uiId':_0x5b52b3(0x26d),'content':_0x256e28});}[_0x406bd1(0x1f6)](){const _0x12c901=_0x406bd1;this[_0x12c901(0x262)](_0x12c901(0x26d));}async[_0x406bd1(0x234)](_0x132480,_0x11406f){const _0x4e8163=_0x406bd1,_0x1dfb6f=_0x4e8163(0x1ef)+_0x164d2e();this[_0x4e8163(0x23d)](_0x1dfb6f);const _0x307018=_0x4e8163(0x1ef)+_0x164d2e();try{this[_0x4e8163(0x203)]({'type':_0x4acc34[_0x4e8163(0x26f)],'label':_0x11406f?.[_0x4e8163(0x242)]||_0x132480,'uiId':_0x307018,'resourceId':_0x11406f?.[_0x4e8163(0x22a)]},!0x0);const _0x35d7c1=this[_0x4e8163(0x250)][_0x4e8163(0x248)](this[_0x4e8163(0x267)],_0x132480,_0x11406f);this[_0x4e8163(0x253)][_0x4e8163(0x225)](_0x307018,_0x35d7c1[_0x4e8163(0x205)]);const {id:_0x159728}=await _0x35d7c1[_0x4e8163(0x20c)]();this[_0x4e8163(0x253)][_0x4e8163(0x21c)](_0x307018),this[_0x4e8163(0x268)]({'type':_0x4acc34[_0x4e8163(0x26f)],'id':_0x159728,'label':_0x11406f?.[_0x4e8163(0x242)]||_0x132480,'uiId':_0x307018,'resourceId':_0x11406f?.[_0x4e8163(0x22a)]},!0x1);}catch(_0x45132e){this[_0x4e8163(0x253)][_0x4e8163(0x21c)](_0x307018),(_0x45132e[_0x4e8163(0x25d)][_0x4e8163(0x1f8)](_0x4e8163(0x21e))||this[_0x4e8163(0x200)](_0x4e8163(0x20b),{'error':new _0x43748d(_0x4e8163(0x259),this,{'url':_0x132480,'originalError':_0x45132e}),'url':_0x132480}),this[_0x4e8163(0x262)](_0x307018));}finally{this[_0x4e8163(0x22d)](_0x1dfb6f);}}[_0x406bd1(0x1ed)](_0x19a75a){const _0x5e419d=_0x406bd1;_0x19a75a['id']=_0x19a75a['id']??_0x164d2e()[_0x5e419d(0x238)](0x0,0x15),this[_0x5e419d(0x210)][_0x5e419d(0x225)](_0x19a75a[_0x5e419d(0x1ec)],_0x19a75a),this[_0x5e419d(0x200)](_0x5e419d(0x256),{'contextItem':_0x19a75a,'isLoading':!0x1});}async[_0x406bd1(0x217)](_0x257602,_0x385b2b,_0x6fc564){const _0xdb7a89=_0x406bd1,_0xed85ef=this[_0xdb7a89(0x201)][_0xdb7a89(0x21b)][_0xdb7a89(0x237)](_0x491455=>_0x491455['id']===_0x257602);if(!_0xed85ef)return this[_0xdb7a89(0x200)](_0xdb7a89(0x20b),{'error':new _0x43748d(_0xdb7a89(0x1f9),this,{'sourceId':_0x257602}),'sourceId':_0x257602}),[];try{const _0x31b369=(await _0xed85ef[_0xdb7a89(0x27a)](_0x385b2b))[_0xdb7a89(0x22c)](_0x52204d=>{const _0x5de45d=_0xdb7a89,_0x5e0779=this[_0x5de45d(0x272)](_0x52204d['id']);return{..._0x52204d,'isInContext':_0x5e0779};});return _0xed85ef[_0xdb7a89(0x1fe)]=_0x31b369,this[_0xdb7a89(0x200)](_0xdb7a89(0x265),{'sourceId':_0x257602,'source':_0xed85ef,'resources':_0x31b369,'uid':_0x6fc564}),_0x31b369;}catch(_0x467bac){return this[_0xdb7a89(0x200)](_0xdb7a89(0x20b),{'error':new _0x43748d(_0xdb7a89(0x23b),this,{'sourceId':_0x257602,'originalError':_0x467bac}),'sourceId':_0x257602,'sourceLabel':_0xed85ef[_0xdb7a89(0x242)]}),[];}}async[_0x406bd1(0x240)](_0x446da1,_0x72c69a){const _0x2c3312=_0x406bd1;if(this[_0x2c3312(0x272)](_0x72c69a['id']))return;let _0x5e4f45=_0x72c69a[_0x2c3312(0x233)];if(!_0x5e4f45&&_0x446da1[_0x2c3312(0x275)])try{_0x5e4f45=await _0x446da1[_0x2c3312(0x275)](_0x72c69a['id']);}catch(_0xd4fde5){return void this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x1fd),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id'],'originalError':_0xd4fde5}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});}if(_0x5e4f45)switch(_0x72c69a[_0x2c3312(0x1fc)]){case _0x4acc34[_0x2c3312(0x26f)]:if(_0x2c3312(0x23f)!=typeof _0x5e4f45)return void this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x231),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id'],'expectedType':_0x2c3312(0x23f),'actualType':typeof _0x5e4f45}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});await this[_0x2c3312(0x234)](_0x5e4f45,{'label':_0x72c69a[_0x2c3312(0x242)],'resourceId':_0x72c69a['id']});break;case _0x4acc34[_0x2c3312(0x21a)]:if(!(_0x5e4f45 instanceof File))return void this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x231),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id'],'expectedType':_0x2c3312(0x239),'actualType':typeof _0x5e4f45}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});await this[_0x2c3312(0x22e)]([_0x5e4f45],{'label':_0x72c69a[_0x2c3312(0x242)],'resourceId':_0x72c69a['id']});break;case _0x4acc34[_0x2c3312(0x232)]:if(_0x2c3312(0x1f3)!=typeof _0x5e4f45||!(_0x2c3312(0x1ff)in _0x5e4f45)||!(_0x2c3312(0x1fc)in _0x5e4f45))return void this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x231),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id'],'expectedType':_0x2c3312(0x209),'actualType':typeof _0x5e4f45}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});_0x5e4f45=AIChatContext[_0x2c3312(0x244)](_0x5e4f45,_0x72c69a[_0x2c3312(0x242)]),await this[_0x2c3312(0x22e)]([_0x5e4f45],{'label':_0x72c69a[_0x2c3312(0x242)],'resourceId':_0x72c69a['id']},_0x4acc34[_0x2c3312(0x232)]);break;case _0x4acc34[_0x2c3312(0x211)]:break;default:this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x26a),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id'],'resourceType':_0x72c69a[_0x2c3312(0x1fc)]}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});}else this[_0x2c3312(0x200)](_0x2c3312(0x20b),{'error':new _0x43748d(_0x2c3312(0x276),this,{'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']}),'resourceId':_0x72c69a['id'],'sourceId':_0x446da1['id']});}static[_0x406bd1(0x244)](_0x2dc490,_0x52f2aa){const _0xc6a970=_0x406bd1;switch(_0x2dc490[_0xc6a970(0x1fc)]){case _0x1e38bf[_0xc6a970(0x257)]:return new File([_0x2dc490[_0xc6a970(0x1ff)]],_0x52f2aa,{'type':_0xc6a970(0x25c)});case _0x1e38bf[_0xc6a970(0x227)]:return new File([_0x2dc490[_0xc6a970(0x1ff)]],_0x52f2aa,{'type':_0xc6a970(0x235)});default:return new File([_0x2dc490[_0xc6a970(0x1ff)]],_0x52f2aa,{'type':_0xc6a970(0x1f7)});}}static[_0x406bd1(0x27d)](_0x26c822){const _0x2331b8=_0x406bd1;switch(_0x26c822[_0x2331b8(0x1fc)]){case _0x4acc34[_0x2331b8(0x21a)]:return{'type':_0x4acc34[_0x2331b8(0x21a)],'id':_0x26c822['id']};case _0x4acc34[_0x2331b8(0x26f)]:return{'type':_0x4acc34[_0x2331b8(0x26f)],'id':_0x26c822['id']};case _0x4acc34[_0x2331b8(0x20a)]:return{'type':_0x4acc34[_0x2331b8(0x20a)],'id':_0x26c822['id'],..._0x26c822[_0x2331b8(0x26d)]?.[_0x2331b8(0x24e)]&&{'selection':_0x26c822[_0x2331b8(0x26d)]}};case _0x4acc34[_0x2331b8(0x232)]:return{'type':_0x4acc34[_0x2331b8(0x21a)],'id':_0x26c822['id']};case _0x4acc34[_0x2331b8(0x211)]:{const _0x207843=_0x26c822;return{'type':_0x4acc34[_0x2331b8(0x211)],'mcpServerName':_0x207843[_0x2331b8(0x1f2)],'toolName':_0x207843[_0x2331b8(0x247)],'data':_0x207843[_0x2331b8(0x233)],'id':_0x207843['id']};}default:return null;}}[_0x406bd1(0x203)](_0x3ee53c,_0x381550=!0x1){const _0x5cfaaa=_0x406bd1;if(this[_0x5cfaaa(0x210)][_0x5cfaaa(0x225)](_0x3ee53c[_0x5cfaaa(0x1ec)],_0x3ee53c),_0x3ee53c[_0x5cfaaa(0x213)]||this[_0x5cfaaa(0x200)](_0x5cfaaa(0x256),{'contextItem':_0x3ee53c,'isLoading':_0x381550}),_0x5cfaaa(0x249)===_0x3ee53c[_0x5cfaaa(0x1ec)]&&this[_0x5cfaaa(0x270)](),_0x3ee53c[_0x5cfaaa(0x22a)]){const _0x454280=this[_0x5cfaaa(0x223)](_0x3ee53c[_0x5cfaaa(0x22a)]);_0x454280&&_0x454280[_0x5cfaaa(0x222)](_0x2c28f8=>{const _0x168de4=_0x5cfaaa;this[_0x168de4(0x252)](_0x2c28f8,_0x3ee53c[_0x168de4(0x22a)],!0x0);});}}[_0x406bd1(0x262)](_0x1d4690){const _0x1e4bc5=_0x406bd1,_0x2400e4=this[_0x1e4bc5(0x210)][_0x1e4bc5(0x260)](_0x1d4690),_0x55c258=this[_0x1e4bc5(0x253)][_0x1e4bc5(0x260)](_0x1d4690);if(_0x55c258&&(_0x55c258[_0x1e4bc5(0x266)](),this[_0x1e4bc5(0x253)][_0x1e4bc5(0x21c)](_0x1d4690)),_0x2400e4?.[_0x1e4bc5(0x22a)]){const _0x515090=this[_0x1e4bc5(0x223)](_0x2400e4[_0x1e4bc5(0x22a)]);_0x515090&&_0x515090[_0x1e4bc5(0x222)](_0x48500c=>{const _0x2c0ee3=_0x1e4bc5;this[_0x2c0ee3(0x252)](_0x48500c,_0x2400e4[_0x2c0ee3(0x22a)],!0x1);});}this[_0x1e4bc5(0x210)][_0x1e4bc5(0x21c)](_0x1d4690),this[_0x1e4bc5(0x200)](_0x1e4bc5(0x25e),{'uiId':_0x1d4690,'type':_0x2400e4?.[_0x1e4bc5(0x1fc)]}),_0x1e4bc5(0x249)===_0x1d4690&&this[_0x1e4bc5(0x270)]();}[_0x406bd1(0x268)](_0x4acc8c,_0x40329a){const _0x38f761=_0x406bd1;if(this[_0x38f761(0x210)][_0x38f761(0x214)](_0x4acc8c[_0x38f761(0x1ec)])&&(this[_0x38f761(0x210)][_0x38f761(0x225)](_0x4acc8c[_0x38f761(0x1ec)],_0x4acc8c),this[_0x38f761(0x200)](_0x38f761(0x236),{'contextItem':_0x4acc8c,'isLoading':_0x40329a}),_0x4acc8c[_0x38f761(0x22a)])){const _0x466e65=this[_0x38f761(0x223)](_0x4acc8c[_0x38f761(0x22a)]);_0x466e65&&_0x466e65[_0x38f761(0x222)](_0x202c43=>{const _0x3a6f63=_0x38f761;this[_0x3a6f63(0x252)](_0x202c43,_0x4acc8c[_0x3a6f63(0x22a)],!0x0);});}}[_0x406bd1(0x224)](_0x3f0598){const _0x57fcec=_0x406bd1;this[_0x57fcec(0x243)][_0x57fcec(0x225)](_0x3f0598[_0x57fcec(0x1ec)],_0x3f0598);}[_0x406bd1(0x263)](){const _0x4999ec=_0x406bd1;this[_0x4999ec(0x201)]={'document':{'enabled':!0x1!==this[_0x4999ec(0x204)]?.[_0x4999ec(0x1f4)]?.[_0x4999ec(0x246)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4999ec(0x204)]?.[_0x4999ec(0x27b)]?.[_0x4999ec(0x246)]},'files':{'enabled':!0x1!==this[_0x4999ec(0x204)]?.[_0x4999ec(0x1f5)]?.[_0x4999ec(0x246)]},'sources':this[_0x4999ec(0x202)](),'customItems':this[_0x4999ec(0x204)]?.[_0x4999ec(0x277)]?.[_0x4999ec(0x22c)](_0x15d92e=>({..._0x15d92e,'enabled':!0x0}))??[]},this[_0x4999ec(0x200)](_0x4999ec(0x255),{'options':this[_0x4999ec(0x201)]});}[_0x406bd1(0x202)](){const _0x4512a3=_0x406bd1;return this[_0x4512a3(0x204)]?.[_0x4512a3(0x21b)]?.[_0x4512a3(0x22c)](_0xba864a=>({..._0xba864a,'resources':[]}))??[];}[_0x406bd1(0x270)](){const _0x2fc7fb=_0x406bd1,_0x447db8=this[_0x2fc7fb(0x226)]()||this[_0x2fc7fb(0x271)]();this[_0x2fc7fb(0x201)][_0x2fc7fb(0x1f4)][_0x2fc7fb(0x23a)]=_0x447db8,this[_0x2fc7fb(0x200)](_0x2fc7fb(0x255),{'options':this[_0x2fc7fb(0x201)]});}[_0x406bd1(0x272)](_0x5dfdf8){const _0x2754ec=_0x406bd1;for(const _0xb510da of this[_0x2754ec(0x210)][_0x2754ec(0x1fb)]())if(_0xb510da[_0x2754ec(0x22a)]===_0x5dfdf8)return!0x0;for(const _0x690753 of this[_0x2754ec(0x243)][_0x2754ec(0x1fb)]())if(_0x690753[_0x2754ec(0x22a)]===_0x5dfdf8)return!0x0;return!0x1;}[_0x406bd1(0x223)](_0x326377){const _0x37439c=_0x406bd1,_0x277d6e=[];for(const _0x39b3b0 of this[_0x37439c(0x201)][_0x37439c(0x21b)]){_0x39b3b0[_0x37439c(0x1fe)][_0x37439c(0x237)](_0x56b1f4=>_0x56b1f4['id']===_0x326377)&&_0x277d6e[_0x37439c(0x241)](_0x39b3b0['id']);}return 0x0===_0x277d6e[_0x37439c(0x24e)]?null:_0x277d6e;}[_0x406bd1(0x252)](_0x3e7bdf,_0x55fb6e,_0x50a097){const _0x43e065=_0x406bd1,_0x406405=this[_0x43e065(0x201)][_0x43e065(0x21b)][_0x43e065(0x237)](_0x51d069=>_0x51d069['id']===_0x3e7bdf);if(!_0x406405)return;const _0x41b01b=_0x406405[_0x43e065(0x1fe)][_0x43e065(0x237)](_0x5e223f=>_0x5e223f['id']===_0x55fb6e);_0x41b01b&&(_0x41b01b[_0x43e065(0x212)]=_0x50a097,this[_0x43e065(0x200)](_0x43e065(0x23e),{'sourceId':_0x3e7bdf,'resourceId':_0x55fb6e,'isInContext':_0x50a097}));}[_0x406bd1(0x23d)](_0x12226c){const _0x574887=_0x406bd1;this[_0x574887(0x215)][_0x574887(0x225)](_0x12226c,!0x0),this[_0x574887(0x215)][_0x574887(0x20e)]&&this[_0x574887(0x200)](_0x574887(0x273),{'isUploadInProgress':!0x0});}[_0x406bd1(0x22d)](_0x54bc78){const _0x30a0e1=_0x406bd1;this[_0x30a0e1(0x215)][_0x30a0e1(0x21c)](_0x54bc78),0x0===this[_0x30a0e1(0x215)][_0x30a0e1(0x20e)]&&this[_0x30a0e1(0x200)](_0x30a0e1(0x273),{'isUploadInProgress':!0x1});}}
23
+ const _0x53ea00=_0x573e;function _0x28b5(){const _0x98dafa=['end','getDocument','loadSourceResources','_isResourceInContext','sourceResourcesLoaded','_startUploadOperation','forEach','_removeContextItem','addCurrentDocumentToContext','filter','document','set','size','fire','files-','contextItemAdded','uploadProgressChanged','addResourceToContext','mcpServerName','data','_toggleAddCurrentDocumentOptionVisibility','TEXT','6684ZLFZPe','addToolItemToContext','137972GBxgEu','customItems','code','_addToConversationContextItem','_createContextItemFromContent','uploadUrl','DOCUMENT','_addContextItem','isInContext','_config','_findSourceIdsByResourceId','length','ai-chat-source-resources-load-failed','url-','resourceStateChanged','startsWith','Current\x20document','resources','text/markdown','_getCustomSourcesInitialState','_conversationContextItems','name','map','mapContextItemsToRequestData','text/plain','get','_mapContextItemToRequestData','1575382mUThBH','has','ai-chat-document-upload-failed','urls','ai-chat-file-upload-failed','_addContextOptionsState','ai-chat-context-unsupported-type','all','abort','isSelectionInContext','isHidden','150600qnOVWi','file-','stack','getId','abortController','contextItemLoadingEnded','_ongoingUploadOperations','hidden','label','_setAddContextOptionsDefaultState','clearPendingContextItems','3958792qxaiTv','values','substring','string','getResources','error','FILE','_connector','selection','files','isCurrentDocumentInConversation','sessionId','message','addFilesToContext','type','isReadOnly','addContextOptionsChanged','_ongoingUploads','find','uploadFile','from','toolName','removeSelectionFromContext','_updateResourceInContextState','9zkPWOp','delete','contextSent','object','sources','getPendingContextItems','_convertTextResourceToFile','_finishContextItemLoading','ai-chat-resource-load-failed','updateCurrentDocument','File','version','start','SELECTION','126LeWqWG','_pendingContextItems','getSentContextItems','current-document','content','TOOL','ai-chat-resource-no-data','getData','object\x20with\x20content\x20and\x20type\x20properties','_ownerId','contextItemRemoved','uploadDocument','enabled','283553AgAECb','addToConversationContext','ai-chat-url-upload-failed','ai-chat-source-not-found','_finishUploadOperation','addUrlToContext','resourceId','4501pzggYv','attributes','init','addSelectionToContext','removeFromContext','MARKDOWN','1008035qlYLVc','uiId','isCurrentDocumentInContext','text/html','push','url','URL','HTML','ai-request-aborted','ai-chat-context-invalid-data','populateFromMessage','fetchDocument'];_0x28b5=function(){return _0x98dafa;};return _0x28b5();}(function(_0xbe377d,_0x411d39){const _0x5356a4=_0x573e,_0x154daf=_0xbe377d();while(!![]){try{const _0x3f6d7d=parseInt(_0x5356a4(0x248))/0x1+-parseInt(_0x5356a4(0x1ff))/0x2+parseInt(_0x5356a4(0x22d))/0x3*(parseInt(_0x5356a4(0x1e4))/0x4)+-parseInt(_0x5356a4(0x1c0))/0x5+parseInt(_0x5356a4(0x1e2))/0x6*(parseInt(_0x5356a4(0x24f))/0x7)+parseInt(_0x5356a4(0x215))/0x8+-parseInt(_0x5356a4(0x23b))/0x9*(parseInt(_0x5356a4(0x20a))/0xa);if(_0x3f6d7d===_0x411d39)break;else _0x154daf['push'](_0x154daf['shift']());}catch(_0x128119){_0x154daf['push'](_0x154daf['shift']());}}}(_0x28b5,0x612dd));import{CKEditorError as _0x3f68b0,ObservableMixin as _0xd5e16a,uid as _0x157d65}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5809c0,AIContextTextResourceType as _0x4725a1}from'../../aicore/model/aicontext.js';function _0x573e(_0x358de1,_0x13d3d6){const _0x28b53d=_0x28b5();return _0x573e=function(_0x573ed7,_0x3463e4){_0x573ed7=_0x573ed7-0x1c0;let _0x5772d9=_0x28b53d[_0x573ed7];return _0x5772d9;},_0x573e(_0x358de1,_0x13d3d6);}import{escape as _0xd77dc4}from'es-toolkit/compat';import{errorsMap as _0x244271}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x53ea00(0x1db),_0x53ea00(0x245),_0x53ea00(0x20f),_0x53ea00(0x22f),_0x53ea00(0x21a),_0x53ea00(0x225),_0x53ea00(0x1d0),_0x53ea00(0x1f2),_0x53ea00(0x1dc)];export class AIChatContext extends _0xd5e16a(){[_0x53ea00(0x21c)];[_0x53ea00(0x1ed)];[_0x53ea00(0x244)];constructor({connector:_0x132c4f,config:_0x2352ed,ownerId:_0x14fe5}){const _0x206ca3=_0x53ea00;super(),this[_0x206ca3(0x21c)]=_0x132c4f,this[_0x206ca3(0x1ed)]=_0x2352ed,this[_0x206ca3(0x244)]=_0x14fe5;}[_0x53ea00(0x251)](){const _0x433b7c=_0x53ea00;this[_0x433b7c(0x23c)]=new Map(),this[_0x433b7c(0x1f8)]=new Map(),this[_0x433b7c(0x226)]=new Map(),this[_0x433b7c(0x210)]=new Map(),this[_0x433b7c(0x213)]();}[_0x53ea00(0x232)](){const _0x199d8c=_0x53ea00;return this[_0x199d8c(0x23c)];}async[_0x53ea00(0x1ca)](_0x38c796){const _0xa68cb2=_0x53ea00,_0x314791=await this[_0xa68cb2(0x1e8)](_0x38c796);return this[_0xa68cb2(0x1e7)](_0x314791),_0xa68cb2(0x23e)===_0x314791[_0xa68cb2(0x1c1)]&&this[_0xa68cb2(0x1e0)](),_0x314791;}async[_0x53ea00(0x1e8)](_0x4bdc79){const _0x5286ae=_0x53ea00;if(_0x4bdc79[_0x5286ae(0x223)]===_0x5809c0[_0x5286ae(0x1ea)]){const _0x279c01=await this[_0x5286ae(0x21c)][_0x5286ae(0x1cb)](this[_0x5286ae(0x244)],_0x4bdc79['id'])[_0x5286ae(0x1cd)]();return{'id':_0x5286ae(0x23e),'uiId':_0x5286ae(0x23e),'label':_0x5286ae(0x1f4),'type':_0x4bdc79[_0x5286ae(0x223)],'content':_0x279c01[_0x5286ae(0x23f)],'hidden':this[_0x5286ae(0x1f8)][_0x5286ae(0x200)](_0x5286ae(0x23e)),'version':_0x279c01[_0x5286ae(0x250)]?.[_0x5286ae(0x238)],'sessionId':_0x279c01[_0x5286ae(0x250)]?.[_0x5286ae(0x220)]};}if(_0x4bdc79[_0x5286ae(0x223)]===_0x5809c0[_0x5286ae(0x240)])return{'id':_0x4bdc79['id'],'uiId':_0x4bdc79['id'],'label':_0x4bdc79[_0x5286ae(0x1df)]?.[_0x5286ae(0x212)]||_0x4bdc79['id'],'type':_0x5809c0[_0x5286ae(0x240)],'mcpServerName':_0x4bdc79[_0x5286ae(0x1de)],'toolName':_0x4bdc79[_0x5286ae(0x22a)],'data':_0x4bdc79[_0x5286ae(0x1df)]||{}};return{'id':_0x4bdc79['id'],'uiId':_0x4bdc79['id'],'label':_0x4bdc79[_0x5286ae(0x250)]?.[_0x5286ae(0x212)]||_0x4bdc79[_0x5286ae(0x1f9)]||_0x4bdc79[_0x5286ae(0x1c5)]||_0x4bdc79['id'],'type':_0x4bdc79[_0x5286ae(0x223)],..._0x4bdc79?.[_0x5286ae(0x250)]?.[_0x5286ae(0x24e)]?{'resourceId':_0x4bdc79[_0x5286ae(0x250)]?.[_0x5286ae(0x24e)]}:{}};}[_0x53ea00(0x23d)](){const _0x133049=_0x53ea00;return new Map(this[_0x133049(0x1f8)]);}[_0x53ea00(0x253)](_0x3c1393){const _0x4afafd=_0x53ea00,_0x3793c4=this[_0x4afafd(0x23c)][_0x4afafd(0x1fd)](_0x3c1393);_0x3793c4?.[_0x4afafd(0x224)]||this[_0x4afafd(0x1d3)](_0x3c1393);}[_0x53ea00(0x214)](){const _0x2c51da=_0x53ea00;if(0x0===this[_0x2c51da(0x23c)][_0x2c51da(0x1d8)])return;for(const _0xc9c1c1 of this[_0x2c51da(0x23c)][_0x2c51da(0x216)]())this[_0x2c51da(0x1d3)](_0xc9c1c1[_0x2c51da(0x1c1)]);const _0x416e75=this[_0x2c51da(0x1f8)][_0x2c51da(0x1fd)](_0x2c51da(0x23e))||this[_0x2c51da(0x23c)][_0x2c51da(0x1fd)](_0x2c51da(0x23e));_0x416e75&&this[_0x2c51da(0x1eb)]({..._0x416e75,'isReadOnly':!0x0,'hidden':!0x0});}[_0x53ea00(0x249)](_0x2f7ca2){const _0x35eb5f=_0x53ea00;for(const _0x39c111 of _0x2f7ca2[_0x35eb5f(0x216)]())this[_0x35eb5f(0x1e7)](_0x39c111);this[_0x35eb5f(0x214)](),this[_0x35eb5f(0x1d9)](_0x35eb5f(0x22f),{'contextItems':Array[_0x35eb5f(0x229)](this[_0x35eb5f(0x23d)]()[_0x35eb5f(0x216)]())});}[_0x53ea00(0x1c2)](){const _0x56ffe9=_0x53ea00;return this[_0x56ffe9(0x23c)][_0x56ffe9(0x200)](_0x56ffe9(0x23e));}[_0x53ea00(0x208)](){const _0x598334=_0x53ea00;return this[_0x598334(0x23c)][_0x598334(0x200)](_0x598334(0x21d));}[_0x53ea00(0x21f)](){const _0x24f103=_0x53ea00;return this[_0x24f103(0x1f8)][_0x24f103(0x200)](_0x24f103(0x23e));}static[_0x53ea00(0x1fb)](_0x164671){const _0x185660=_0x53ea00;return Array[_0x185660(0x229)](_0x164671[_0x185660(0x216)]())[_0x185660(0x1fa)](_0x3c9a88=>this[_0x185660(0x1fe)](_0x3c9a88))[_0x185660(0x1d5)](_0x1a6592=>null!==_0x1a6592);}async[_0x53ea00(0x222)](_0x27ca8a,_0x3a2753,_0x2f0645=_0x5809c0[_0x53ea00(0x21b)]){const _0x2fd366=_0x53ea00,_0x42efa2=_0x2fd366(0x1da)+_0x157d65();this[_0x2fd366(0x1d1)](_0x42efa2);try{await Promise[_0x2fd366(0x206)](_0x27ca8a[_0x2fd366(0x1fa)](async _0x46ed01=>{const _0x2c41dd=_0x2fd366,_0x4a585f=_0x2c41dd(0x20b)+_0x157d65(),_0x2f8e0d=_0xd77dc4(_0x46ed01[_0x2c41dd(0x1f9)]);try{this[_0x2c41dd(0x1eb)]({'type':_0x2f0645,'label':_0x3a2753?.[_0x2c41dd(0x212)]||_0x2f8e0d,'uiId':_0x4a585f,'resourceId':_0x3a2753?.[_0x2c41dd(0x24e)]},!0x0);const _0x549168=this[_0x2c41dd(0x21c)][_0x2c41dd(0x228)](this[_0x2c41dd(0x244)],_0x46ed01,_0x3a2753);this[_0x2c41dd(0x226)][_0x2c41dd(0x1d7)](_0x4a585f,_0x549168[_0x2c41dd(0x20e)]);const {id:_0x2bd761}=await _0x549168[_0x2c41dd(0x20d)]();this[_0x2c41dd(0x226)][_0x2c41dd(0x22e)](_0x4a585f),this[_0x2c41dd(0x234)]({'type':_0x2f0645,'id':_0x2bd761,'label':_0x3a2753?.[_0x2c41dd(0x212)]||_0x2f8e0d,'uiId':_0x4a585f,'resourceId':_0x3a2753?.[_0x2c41dd(0x24e)]},!0x1);}catch(_0x2af30f){this[_0x2c41dd(0x226)][_0x2c41dd(0x22e)](_0x4a585f);if(!(_0x2af30f instanceof _0x3f68b0&&_0x2af30f[_0x2c41dd(0x221)][_0x2c41dd(0x1f3)](_0x2c41dd(0x1c8)))){const _0x5e1abd=_0x244271[_0x2c41dd(0x1fd)](_0x2af30f[_0x2c41dd(0x1e6)])||_0x2c41dd(0x203),_0xcec4d4=new _0x3f68b0(_0x5e1abd,null,{'fileName':_0x2f8e0d,..._0x2af30f});_0xcec4d4[_0x2c41dd(0x20c)]=_0x2af30f[_0x2c41dd(0x20c)],this[_0x2c41dd(0x1d9)](_0x2c41dd(0x21a),{'error':_0xcec4d4});}this[_0x2c41dd(0x1d3)](_0x4a585f);}}));}finally{this[_0x2fd366(0x24c)](_0x42efa2);}}[_0x53ea00(0x1d4)](_0x1004c6){const _0x3f07c4=_0x53ea00;if(this[_0x3f07c4(0x1c2)]()||!this[_0x3f07c4(0x204)][_0x3f07c4(0x1d6)][_0x3f07c4(0x247)])return;const _0x210e89={'type':_0x5809c0[_0x3f07c4(0x1ea)],'uiId':_0x3f07c4(0x23e),'label':_0x1004c6,'isReadOnly':this[_0x3f07c4(0x1f8)][_0x3f07c4(0x200)](_0x3f07c4(0x23e)),'hidden':this[_0x3f07c4(0x1f8)][_0x3f07c4(0x200)](_0x3f07c4(0x23e))};this[_0x3f07c4(0x1eb)](_0x210e89);}async[_0x53ea00(0x236)](_0x16492b,_0x5568ee,_0x1864a8,_0x5785dd){const _0x32a54a=_0x53ea00,_0x215655=this[_0x32a54a(0x23c)][_0x32a54a(0x1fd)](_0x32a54a(0x23e));if(_0x215655&&_0x16492b){_0x215655[_0x32a54a(0x21d)]=_0x5785dd?_0x5785dd[_0x32a54a(0x1fa)](_0x253feb=>({'start':_0x253feb[_0x32a54a(0x239)],'end':_0x253feb[_0x32a54a(0x1cc)]})):[];try{if(_0x215655[_0x32a54a(0x238)]===_0x5568ee)return;const {id:_0x29ce29}=await this[_0x32a54a(0x21c)][_0x32a54a(0x246)](this[_0x32a54a(0x244)],_0x16492b,{'version':_0x5568ee,'sessionId':_0x1864a8})[_0x32a54a(0x20d)]();_0x215655['id']=_0x29ce29,_0x215655[_0x32a54a(0x23f)]=_0x16492b,_0x215655[_0x32a54a(0x238)]=_0x5568ee,_0x215655[_0x32a54a(0x220)]=_0x1864a8;}catch(_0x2a5fec){const _0x168d70=new _0x3f68b0(_0x32a54a(0x201),null);_0x168d70[_0x32a54a(0x20c)]=_0x2a5fec[_0x32a54a(0x20c)],this[_0x32a54a(0x1d9)](_0x32a54a(0x21a),{'error':_0x168d70});}}}[_0x53ea00(0x252)](_0x106715){const _0x539c9e=_0x53ea00;this[_0x539c9e(0x1eb)]({'type':_0x5809c0[_0x539c9e(0x23a)],'label':_0x106715,'uiId':_0x539c9e(0x21d),'content':_0x106715});}[_0x53ea00(0x22b)](){const _0xf6585c=_0x53ea00;this[_0xf6585c(0x1d3)](_0xf6585c(0x21d));}async[_0x53ea00(0x24d)](_0x545b64,_0x215ca4){const _0x9a4cbe=_0x53ea00,_0x5ba19e=_0x9a4cbe(0x1f1)+_0x157d65();this[_0x9a4cbe(0x1d1)](_0x5ba19e);const _0x46f020=_0x9a4cbe(0x1f1)+_0x157d65();try{this[_0x9a4cbe(0x1eb)]({'type':_0x5809c0[_0x9a4cbe(0x1c6)],'label':_0x215ca4?.[_0x9a4cbe(0x212)]||_0x545b64,'uiId':_0x46f020,'resourceId':_0x215ca4?.[_0x9a4cbe(0x24e)]},!0x0);const _0x32fa56=this[_0x9a4cbe(0x21c)][_0x9a4cbe(0x1e9)](this[_0x9a4cbe(0x244)],_0x545b64,_0x215ca4);this[_0x9a4cbe(0x226)][_0x9a4cbe(0x1d7)](_0x46f020,_0x32fa56[_0x9a4cbe(0x20e)]);const {id:_0x56893e}=await _0x32fa56[_0x9a4cbe(0x20d)]();this[_0x9a4cbe(0x226)][_0x9a4cbe(0x22e)](_0x46f020),this[_0x9a4cbe(0x234)]({'type':_0x5809c0[_0x9a4cbe(0x1c6)],'id':_0x56893e,'label':_0x215ca4?.[_0x9a4cbe(0x212)]||_0x545b64,'uiId':_0x46f020,'resourceId':_0x215ca4?.[_0x9a4cbe(0x24e)]},!0x1);}catch(_0x17f8d1){this[_0x9a4cbe(0x226)][_0x9a4cbe(0x22e)](_0x46f020),(_0x17f8d1[_0x9a4cbe(0x221)][_0x9a4cbe(0x1f3)](_0x9a4cbe(0x1c8))||this[_0x9a4cbe(0x1d9)](_0x9a4cbe(0x21a),{'error':new _0x3f68b0(_0x9a4cbe(0x24a),this,{'url':_0x545b64,'originalError':_0x17f8d1}),'url':_0x545b64}),this[_0x9a4cbe(0x1d3)](_0x46f020));}finally{this[_0x9a4cbe(0x24c)](_0x5ba19e);}}[_0x53ea00(0x1e3)](_0x4a8973){const _0x3badd6=_0x53ea00;_0x4a8973['id']=_0x4a8973['id']??_0x157d65()[_0x3badd6(0x217)](0x0,0x15),this[_0x3badd6(0x23c)][_0x3badd6(0x1d7)](_0x4a8973[_0x3badd6(0x1c1)],_0x4a8973),this[_0x3badd6(0x1d9)](_0x3badd6(0x1db),{'contextItem':_0x4a8973,'isLoading':!0x1});}async[_0x53ea00(0x1ce)](_0x4fae14,_0x2cb09b,_0x41a2de){const _0x3b481c=_0x53ea00,_0x816b5d=this[_0x3b481c(0x204)][_0x3b481c(0x231)][_0x3b481c(0x227)](_0x5c07ca=>_0x5c07ca['id']===_0x4fae14);if(!_0x816b5d)return this[_0x3b481c(0x1d9)](_0x3b481c(0x21a),{'error':new _0x3f68b0(_0x3b481c(0x24b),this,{'sourceId':_0x4fae14}),'sourceId':_0x4fae14}),[];try{const _0x4e7d2b=(await _0x816b5d[_0x3b481c(0x219)](_0x2cb09b))[_0x3b481c(0x1fa)](_0x23e9bb=>{const _0x545b88=_0x3b481c,_0x47545b=this[_0x545b88(0x1cf)](_0x23e9bb['id']);return{..._0x23e9bb,'isInContext':_0x47545b};});return _0x816b5d[_0x3b481c(0x1f5)]=_0x4e7d2b,this[_0x3b481c(0x1d9)](_0x3b481c(0x1d0),{'sourceId':_0x4fae14,'source':_0x816b5d,'resources':_0x4e7d2b,'uid':_0x41a2de}),_0x4e7d2b;}catch(_0x626141){return this[_0x3b481c(0x1d9)](_0x3b481c(0x21a),{'error':new _0x3f68b0(_0x3b481c(0x1f0),this,{'sourceId':_0x4fae14,'originalError':_0x626141}),'sourceId':_0x4fae14,'sourceLabel':_0x816b5d[_0x3b481c(0x212)]}),[];}}async[_0x53ea00(0x1dd)](_0x4b3a95,_0x256d2b){const _0x1bbcd1=_0x53ea00;if(this[_0x1bbcd1(0x1cf)](_0x256d2b['id']))return;let _0x16ebaf=_0x256d2b[_0x1bbcd1(0x1df)];if(!_0x16ebaf&&_0x4b3a95[_0x1bbcd1(0x242)])try{_0x16ebaf=await _0x4b3a95[_0x1bbcd1(0x242)](_0x256d2b['id']);}catch(_0x9a9c42){return void this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x235),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id'],'originalError':_0x9a9c42}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});}if(_0x16ebaf)switch(_0x256d2b[_0x1bbcd1(0x223)]){case _0x5809c0[_0x1bbcd1(0x1c6)]:if(_0x1bbcd1(0x218)!=typeof _0x16ebaf)return void this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x1c9),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id'],'expectedType':_0x1bbcd1(0x218),'actualType':typeof _0x16ebaf}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});await this[_0x1bbcd1(0x24d)](_0x16ebaf,{'label':_0x256d2b[_0x1bbcd1(0x212)],'resourceId':_0x256d2b['id']});break;case _0x5809c0[_0x1bbcd1(0x21b)]:if(!(_0x16ebaf instanceof File))return void this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x1c9),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id'],'expectedType':_0x1bbcd1(0x237),'actualType':typeof _0x16ebaf}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});await this[_0x1bbcd1(0x222)]([_0x16ebaf],{'label':_0x256d2b[_0x1bbcd1(0x212)],'resourceId':_0x256d2b['id']});break;case _0x5809c0[_0x1bbcd1(0x1e1)]:if(_0x1bbcd1(0x230)!=typeof _0x16ebaf||!(_0x1bbcd1(0x23f)in _0x16ebaf)||!(_0x1bbcd1(0x223)in _0x16ebaf))return void this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x1c9),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id'],'expectedType':_0x1bbcd1(0x243),'actualType':typeof _0x16ebaf}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});_0x16ebaf=AIChatContext[_0x1bbcd1(0x233)](_0x16ebaf,_0x256d2b[_0x1bbcd1(0x212)]),await this[_0x1bbcd1(0x222)]([_0x16ebaf],{'label':_0x256d2b[_0x1bbcd1(0x212)],'resourceId':_0x256d2b['id']},_0x5809c0[_0x1bbcd1(0x1e1)]);break;case _0x5809c0[_0x1bbcd1(0x240)]:break;default:this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x205),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id'],'resourceType':_0x256d2b[_0x1bbcd1(0x223)]}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});}else this[_0x1bbcd1(0x1d9)](_0x1bbcd1(0x21a),{'error':new _0x3f68b0(_0x1bbcd1(0x241),this,{'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']}),'resourceId':_0x256d2b['id'],'sourceId':_0x4b3a95['id']});}static[_0x53ea00(0x233)](_0x588f1c,_0x4f207d){const _0x50827a=_0x53ea00;switch(_0x588f1c[_0x50827a(0x223)]){case _0x4725a1[_0x50827a(0x254)]:return new File([_0x588f1c[_0x50827a(0x23f)]],_0x4f207d,{'type':_0x50827a(0x1f6)});case _0x4725a1[_0x50827a(0x1c7)]:return new File([_0x588f1c[_0x50827a(0x23f)]],_0x4f207d,{'type':_0x50827a(0x1c3)});default:return new File([_0x588f1c[_0x50827a(0x23f)]],_0x4f207d,{'type':_0x50827a(0x1fc)});}}static[_0x53ea00(0x1fe)](_0x3ad6b7){const _0x2e86bd=_0x53ea00;switch(_0x3ad6b7[_0x2e86bd(0x223)]){case _0x5809c0[_0x2e86bd(0x21b)]:return{'type':_0x5809c0[_0x2e86bd(0x21b)],'id':_0x3ad6b7['id']};case _0x5809c0[_0x2e86bd(0x1c6)]:return{'type':_0x5809c0[_0x2e86bd(0x1c6)],'id':_0x3ad6b7['id']};case _0x5809c0[_0x2e86bd(0x1ea)]:return{'type':_0x5809c0[_0x2e86bd(0x1ea)],'id':_0x3ad6b7['id'],..._0x3ad6b7[_0x2e86bd(0x21d)]?.[_0x2e86bd(0x1ef)]&&{'selection':_0x3ad6b7[_0x2e86bd(0x21d)]}};case _0x5809c0[_0x2e86bd(0x1e1)]:return{'type':_0x5809c0[_0x2e86bd(0x21b)],'id':_0x3ad6b7['id']};case _0x5809c0[_0x2e86bd(0x240)]:{const _0x41978d=_0x3ad6b7;return{'type':_0x5809c0[_0x2e86bd(0x240)],'mcpServerName':_0x41978d[_0x2e86bd(0x1de)],'toolName':_0x41978d[_0x2e86bd(0x22a)],'data':_0x41978d[_0x2e86bd(0x1df)],'id':_0x41978d['id']};}default:return null;}}[_0x53ea00(0x1eb)](_0x2f3301,_0x3d0123=!0x1){const _0x3f7cd4=_0x53ea00;if(this[_0x3f7cd4(0x23c)][_0x3f7cd4(0x1d7)](_0x2f3301[_0x3f7cd4(0x1c1)],_0x2f3301),_0x2f3301[_0x3f7cd4(0x211)]||this[_0x3f7cd4(0x1d9)](_0x3f7cd4(0x1db),{'contextItem':_0x2f3301,'isLoading':_0x3d0123}),_0x3f7cd4(0x23e)===_0x2f3301[_0x3f7cd4(0x1c1)]&&this[_0x3f7cd4(0x1e0)](),_0x2f3301[_0x3f7cd4(0x24e)]){const _0x3a8fd6=this[_0x3f7cd4(0x1ee)](_0x2f3301[_0x3f7cd4(0x24e)]);_0x3a8fd6&&_0x3a8fd6[_0x3f7cd4(0x1d2)](_0xe46cb4=>{const _0x2f9a5a=_0x3f7cd4;this[_0x2f9a5a(0x22c)](_0xe46cb4,_0x2f3301[_0x2f9a5a(0x24e)],!0x0);});}}[_0x53ea00(0x1d3)](_0x54eaf5){const _0x3b17da=_0x53ea00,_0x121ce2=this[_0x3b17da(0x23c)][_0x3b17da(0x1fd)](_0x54eaf5),_0x5c267f=this[_0x3b17da(0x226)][_0x3b17da(0x1fd)](_0x54eaf5);if(_0x5c267f&&(_0x5c267f[_0x3b17da(0x207)](),this[_0x3b17da(0x226)][_0x3b17da(0x22e)](_0x54eaf5)),_0x121ce2?.[_0x3b17da(0x24e)]){const _0x47f616=this[_0x3b17da(0x1ee)](_0x121ce2[_0x3b17da(0x24e)]);_0x47f616&&_0x47f616[_0x3b17da(0x1d2)](_0x158cf4=>{const _0xd64d91=_0x3b17da;this[_0xd64d91(0x22c)](_0x158cf4,_0x121ce2[_0xd64d91(0x24e)],!0x1);});}this[_0x3b17da(0x23c)][_0x3b17da(0x22e)](_0x54eaf5),this[_0x3b17da(0x1d9)](_0x3b17da(0x245),{'uiId':_0x54eaf5,'type':_0x121ce2?.[_0x3b17da(0x223)]}),_0x3b17da(0x23e)===_0x54eaf5&&this[_0x3b17da(0x1e0)]();}[_0x53ea00(0x234)](_0x16ea3a,_0x566493){const _0x1db73c=_0x53ea00;if(this[_0x1db73c(0x23c)][_0x1db73c(0x200)](_0x16ea3a[_0x1db73c(0x1c1)])&&(this[_0x1db73c(0x23c)][_0x1db73c(0x1d7)](_0x16ea3a[_0x1db73c(0x1c1)],_0x16ea3a),this[_0x1db73c(0x1d9)](_0x1db73c(0x20f),{'contextItem':_0x16ea3a,'isLoading':_0x566493}),_0x16ea3a[_0x1db73c(0x24e)])){const _0x442469=this[_0x1db73c(0x1ee)](_0x16ea3a[_0x1db73c(0x24e)]);_0x442469&&_0x442469[_0x1db73c(0x1d2)](_0x18291e=>{const _0x4e0592=_0x1db73c;this[_0x4e0592(0x22c)](_0x18291e,_0x16ea3a[_0x4e0592(0x24e)],!0x0);});}}[_0x53ea00(0x1e7)](_0xd0aadc){const _0x1996a4=_0x53ea00;this[_0x1996a4(0x1f8)][_0x1996a4(0x1d7)](_0xd0aadc[_0x1996a4(0x1c1)],_0xd0aadc);}[_0x53ea00(0x213)](){const _0x33befe=_0x53ea00;this[_0x33befe(0x204)]={'document':{'enabled':!0x1!==this[_0x33befe(0x1ed)]?.[_0x33befe(0x1d6)]?.[_0x33befe(0x247)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x33befe(0x1ed)]?.[_0x33befe(0x202)]?.[_0x33befe(0x247)]},'files':{'enabled':!0x1!==this[_0x33befe(0x1ed)]?.[_0x33befe(0x21e)]?.[_0x33befe(0x247)]},'sources':this[_0x33befe(0x1f7)](),'customItems':this[_0x33befe(0x1ed)]?.[_0x33befe(0x1e5)]?.[_0x33befe(0x1fa)](_0xe05e16=>({..._0xe05e16,'enabled':!0x0}))??[]},this[_0x33befe(0x1d9)](_0x33befe(0x225),{'options':this[_0x33befe(0x204)]});}[_0x53ea00(0x1f7)](){const _0x4c5b12=_0x53ea00;return this[_0x4c5b12(0x1ed)]?.[_0x4c5b12(0x231)]?.[_0x4c5b12(0x1fa)](_0x5132f0=>({..._0x5132f0,'resources':[]}))??[];}[_0x53ea00(0x1e0)](){const _0x5597b9=_0x53ea00,_0x4999fc=this[_0x5597b9(0x1c2)]()||this[_0x5597b9(0x21f)]();this[_0x5597b9(0x204)][_0x5597b9(0x1d6)][_0x5597b9(0x209)]=_0x4999fc,this[_0x5597b9(0x1d9)](_0x5597b9(0x225),{'options':this[_0x5597b9(0x204)]});}[_0x53ea00(0x1cf)](_0x23fa74){const _0x263797=_0x53ea00;for(const _0x100c02 of this[_0x263797(0x23c)][_0x263797(0x216)]())if(_0x100c02[_0x263797(0x24e)]===_0x23fa74)return!0x0;for(const _0x101ee6 of this[_0x263797(0x1f8)][_0x263797(0x216)]())if(_0x101ee6[_0x263797(0x24e)]===_0x23fa74)return!0x0;return!0x1;}[_0x53ea00(0x1ee)](_0x472355){const _0x26bfbd=_0x53ea00,_0x45de2f=[];for(const _0x254226 of this[_0x26bfbd(0x204)][_0x26bfbd(0x231)]){_0x254226[_0x26bfbd(0x1f5)][_0x26bfbd(0x227)](_0x5a0cca=>_0x5a0cca['id']===_0x472355)&&_0x45de2f[_0x26bfbd(0x1c4)](_0x254226['id']);}return 0x0===_0x45de2f[_0x26bfbd(0x1ef)]?null:_0x45de2f;}[_0x53ea00(0x22c)](_0x52cae7,_0x5eb77b,_0x5463fa){const _0x39b762=_0x53ea00,_0x519f79=this[_0x39b762(0x204)][_0x39b762(0x231)][_0x39b762(0x227)](_0x3a5048=>_0x3a5048['id']===_0x52cae7);if(!_0x519f79)return;const _0x462e18=_0x519f79[_0x39b762(0x1f5)][_0x39b762(0x227)](_0x5130b2=>_0x5130b2['id']===_0x5eb77b);_0x462e18&&(_0x462e18[_0x39b762(0x1ec)]=_0x5463fa,this[_0x39b762(0x1d9)](_0x39b762(0x1f2),{'sourceId':_0x52cae7,'resourceId':_0x5eb77b,'isInContext':_0x5463fa}));}[_0x53ea00(0x1d1)](_0x3ec394){const _0x8245f0=_0x53ea00;this[_0x8245f0(0x210)][_0x8245f0(0x1d7)](_0x3ec394,!0x0),this[_0x8245f0(0x210)][_0x8245f0(0x1d8)]&&this[_0x8245f0(0x1d9)](_0x8245f0(0x1dc),{'isUploadInProgress':!0x0});}[_0x53ea00(0x24c)](_0xaa3d2e){const _0x5200c9=_0x53ea00;this[_0x5200c9(0x210)][_0x5200c9(0x22e)](_0xaa3d2e),0x0===this[_0x5200c9(0x210)][_0x5200c9(0x1d8)]&&this[_0x5200c9(0x1d9)](_0x5200c9(0x1dc),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xca5afd=_0x3966;(function(_0x217ab4,_0x4da0d6){const _0x357981=_0x3966,_0x243dcf=_0x217ab4();while(!![]){try{const _0x1bd01d=-parseInt(_0x357981(0xdf))/0x1*(-parseInt(_0x357981(0xf9))/0x2)+parseInt(_0x357981(0xb9))/0x3+-parseInt(_0x357981(0xb4))/0x4*(-parseInt(_0x357981(0x10a))/0x5)+-parseInt(_0x357981(0xc3))/0x6*(-parseInt(_0x357981(0xfc))/0x7)+parseInt(_0x357981(0xea))/0x8*(-parseInt(_0x357981(0xc0))/0x9)+parseInt(_0x357981(0xef))/0xa+parseInt(_0x357981(0xc4))/0xb*(-parseInt(_0x357981(0xeb))/0xc);if(_0x1bd01d===_0x4da0d6)break;else _0x243dcf['push'](_0x243dcf['shift']());}catch(_0x10329c){_0x243dcf['push'](_0x243dcf['shift']());}}}(_0x17a8,0x1f978));import{CKEditorError as _0x5b19c0,EmitterMixin as _0x576280,logWarning as _0x4297cb}from'ckeditor5/src/utils.js';function _0x3966(_0x3e88d6,_0x78ef42){const _0x17a8c1=_0x17a8();return _0x3966=function(_0x3966a2,_0xeba3cc){_0x3966a2=_0x3966a2-0xa1;let _0x3b2691=_0x17a8c1[_0x3966a2];return _0x3b2691;},_0x3966(_0x3e88d6,_0x78ef42);}import{AI_MODEL_EVENT_NAMES as _0x5acf10}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x381d2a,AI_CONTEXT_MODEL_EVENT_NAMES as _0x514502}from'./aichatcontext.js';import{AICapabilities as _0x25053c,CAPABILITIES_MODEL_EVENT_NAMES as _0x3a6b85}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1aacc4}from'./aichatinteraction.js';import{errorsMap as _0x4a83fc}from'../../errorsmap.js';export class AIChatConversation extends _0x576280(){['id'];[_0xca5afd(0xd1)]=!0x1;[_0xca5afd(0xbb)];[_0xca5afd(0x111)]=[];[_0xca5afd(0xfb)];[_0xca5afd(0xf7)];[_0xca5afd(0xe0)];[_0xca5afd(0xc6)];constructor(_0x5e17a){const _0x17781c=_0xca5afd;super(),this[_0x17781c(0xc6)]=_0x5e17a,this[_0x17781c(0xe0)]=_0x5e17a[_0x17781c(0xe0)],this[_0x17781c(0xa7)]=_0x5e17a[_0x17781c(0xa7)],this['id']=_0x5e17a[_0x17781c(0xd2)],this[_0x17781c(0xbb)]=_0x5e17a[_0x17781c(0xbb)];}async[_0xca5afd(0xe2)](_0x5a5666){const _0x45eec8=_0xca5afd;try{this[_0x45eec8(0x101)]=new _0x381d2a({'connector':this[_0x45eec8(0xe0)],'config':_0x5a5666,'ownerId':this['id']}),this[_0x45eec8(0x101)][_0x45eec8(0xb0)](..._0x514502)['to'](this),this[_0x45eec8(0x101)][_0x45eec8(0xe2)](),this[_0x45eec8(0xa4)]=new _0x25053c(),this[_0x45eec8(0xa4)][_0x45eec8(0xb0)](..._0x3a6b85)['to'](this),this[_0x45eec8(0xa4)][_0x45eec8(0xe2)]();const _0x3da8ed=await this[_0x45eec8(0xa7)][_0x45eec8(0xf3)]();this[_0x45eec8(0xca)](_0x45eec8(0x10d),{'availableModels':_0x3da8ed});const _0x25cf1c=await this[_0x45eec8(0xa7)][_0x45eec8(0x117)](this[_0x45eec8(0xc6)][_0x45eec8(0x11b)]);_0x25cf1c&&await this[_0x45eec8(0x100)](_0x25cf1c);}catch(_0x30e0f5){const _0x32d340=new _0x5b19c0(_0x45eec8(0x11f),null,{'message':_0x30e0f5[_0x45eec8(0x103)]||_0x30e0f5});_0x32d340[_0x45eec8(0x104)]=_0x30e0f5[_0x45eec8(0x104)],this[_0x45eec8(0xca)](_0x45eec8(0xe9),{'error':_0x32d340});}}async[_0xca5afd(0xd4)](){const _0x4d83e5=_0xca5afd;if(this[_0x4d83e5(0xd1)])throw new _0x5b19c0(_0x4d83e5(0x11e),null,{'conversation':this});if(!this[_0x4d83e5(0xf7)])throw new _0x5b19c0(_0x4d83e5(0xf4),null,{'conversation':this});try{const {id:_0x5566ed}=await this[_0x4d83e5(0xe0)][_0x4d83e5(0xe5)](this['id'],this[_0x4d83e5(0xc6)][_0x4d83e5(0x118)])[_0x4d83e5(0xfe)]();this['id']=_0x5566ed,this[_0x4d83e5(0xd1)]=!0x0,this[_0x4d83e5(0xca)](_0x4d83e5(0xae),{'conversationId':this['id'],'selectedModel':this[_0x4d83e5(0xf7)]});}catch(_0x572b48){const _0x3085e0=new _0x5b19c0(_0x4d83e5(0xbe),null,{'message':_0x572b48[_0x4d83e5(0x103)],'conversationId':this['id']});throw _0x3085e0[_0x4d83e5(0x104)]=_0x572b48[_0x4d83e5(0x104)],this[_0x4d83e5(0xca)](_0x4d83e5(0xe9),{'error':_0x3085e0}),_0x3085e0;}}async[_0xca5afd(0xa3)](_0x2b57de,_0x53e800){const _0x13369d=_0xca5afd;try{const _0x34d091=await this[_0x13369d(0xe0)][_0x13369d(0xf6)](_0x2b57de)[_0x13369d(0xfe)](),_0x2577b4=await this[_0x13369d(0xe0)][_0x13369d(0xf2)](_0x2b57de)[_0x13369d(0xde)](),_0x550be3=_0x2577b4[0x0][_0x13369d(0xcf)];this[_0x13369d(0xd1)]=!0x0,this['id']=_0x34d091['id'],_0x13369d(0xe8)in _0x34d091?this[_0x13369d(0xca)](_0x13369d(0x10f),_0x34d091[_0x13369d(0xe8)],!0x0):this[_0x13369d(0xca)](_0x13369d(0x10f),'',!0x0);const _0x58c23e=(await this[_0x13369d(0xa7)][_0x13369d(0xc1)]())[_0x13369d(0xf0)](_0x4864ca=>_0x4864ca['id'][_0x13369d(0xcc)]()===_0x550be3[_0x13369d(0xcc)]());return this[_0x13369d(0xf7)]=_0x58c23e,this[_0x13369d(0xca)](_0x13369d(0xcd),{'selectedModel':_0x58c23e,'isDisabled':!0x0}),await this[_0x13369d(0x10e)](_0x2577b4,_0x53e800,_0x550be3),this[_0x13369d(0xfb)]=void 0x0,this;}catch(_0x559dac){const _0x1c8d67=new _0x5b19c0(_0x13369d(0x11a),null,{'message':_0x559dac[_0x13369d(0x103)],'conversationId':_0x2b57de});throw _0x1c8d67[_0x13369d(0x104)]=_0x559dac[_0x13369d(0x104)],this[_0x13369d(0xca)](_0x13369d(0xe9),{'error':_0x1c8d67}),_0x1c8d67;}}async[_0xca5afd(0x10e)](_0xb6625,_0x3f87a7,_0x122932){const _0x280121=_0xca5afd;let _0x2bb719;for(const _0x59f1ea of _0xb6625)if(_0x280121(0xa1)===_0x59f1ea[_0x280121(0x10c)]){const _0x23704f=await this[_0x280121(0x107)](_0x59f1ea),_0x30b1f6={'isReasoningEnabled':Object[_0x280121(0xd5)](_0x59f1ea[_0x280121(0xce)],_0x280121(0xb1)),'isWebSearchEnabled':Object[_0x280121(0xd5)](_0x59f1ea[_0x280121(0xce)],_0x280121(0xd3))};_0x2bb719=this[_0x280121(0x114)]({'userMessage':_0x59f1ea[_0x280121(0xaf)],'contextItems':_0x23704f,'capabilities':_0x30b1f6,'modelId':_0x122932,'attributes':_0x59f1ea[_0x280121(0xa5)]}),this[_0x280121(0xfb)]=_0x2bb719,this[_0x280121(0x101)][_0x280121(0xb8)](this[_0x280121(0xfb)][_0x280121(0xbd)]);}else{if(_0x280121(0x11c)===_0x59f1ea[_0x280121(0x10c)]&&_0x2bb719){const _0x282076=[];for(const _0x486a2c of _0x59f1ea[_0x280121(0xee)])switch(_0x486a2c[_0x280121(0x108)]){case _0x280121(0xa9):case _0x280121(0xdb):{const _0x42fdfb=_0x2bb719[_0x280121(0x110)]()?.[_0x280121(0x115)]!==_0x3f87a7;_0x2bb719[_0x280121(0xb3)]=_0x2bb719[_0x280121(0xbf)]({'type':_0x486a2c[_0x280121(0x108)],'isDone':!0x0,'interactionId':_0x2bb719['id'],'areActionsDisabled':_0x42fdfb}),_0x2bb719[_0x280121(0xb3)][_0x280121(0xda)](_0x486a2c[_0x280121(0xee)]),_0x282076[_0x280121(0xc7)]>0x0&&(_0x2bb719[_0x280121(0xb3)][_0x280121(0xed)]=_0x282076[_0x280121(0xd0)](0x0));break;}case _0x280121(0xff):_0x282076[_0x280121(0xc2)](_0x486a2c);break;case _0x280121(0x109):{const {data:_0x100589,attributes:_0x381cc2}=JSON[_0x280121(0x10b)](_0x486a2c[_0x280121(0xee)]);_0x2bb719[_0x280121(0xd8)]({'toolName':_0x486a2c[_0x280121(0x113)],'data':_0x100589,'attributes':_0x381cc2});break;}}}}}async[_0xca5afd(0x107)](_0x393c5c){const _0x5d0d5c=_0xca5afd,_0x15abb9=new Map();if(!_0x393c5c[_0x5d0d5c(0xee)])return _0x15abb9;for(const _0x97d3e2 of _0x393c5c[_0x5d0d5c(0xee)]){const _0x618d6a=await this[_0x5d0d5c(0x101)][_0x5d0d5c(0x119)](_0x97d3e2);_0x618d6a&&_0x15abb9[_0x5d0d5c(0xb5)](_0x618d6a['id'],_0x618d6a);}return _0x15abb9;}async[_0xca5afd(0xfa)]({userMessage:_0x3b7150,attributes:_0x5a7775}){const _0x3e81dd=_0xca5afd;if(!this[_0x3e81dd(0xd1)])throw new _0x5b19c0(_0x3e81dd(0xa6),null,{'conversation':this});if(this[_0x3e81dd(0xfb)])throw new _0x5b19c0(_0x3e81dd(0xc9),null,{'conversation':this});try{const _0x4586cb=this[_0x3e81dd(0x101)][_0x3e81dd(0xd7)](),_0x34353b=this[_0x3e81dd(0xa4)][_0x3e81dd(0xa8)](),_0x459efc=this[_0x3e81dd(0xf7)]['id'];this[_0x3e81dd(0xfb)]=this[_0x3e81dd(0x114)]({'userMessage':_0x3b7150,'contextItems':_0x4586cb,'capabilities':_0x34353b,'modelId':_0x459efc,'attributes':_0x5a7775}),await this[_0x3e81dd(0xfb)][_0x3e81dd(0xd4)](),this[_0x3e81dd(0x101)][_0x3e81dd(0xb8)](this[_0x3e81dd(0xfb)][_0x3e81dd(0xbd)]);}catch(_0x27f936){if(_0x27f936 instanceof _0x5b19c0)this[_0x3e81dd(0xca)](_0x3e81dd(0xe9),{'interactionId':this[_0x3e81dd(0xfb)]?this[_0x3e81dd(0xfb)]['id']:void 0x0,'error':_0x27f936});else{const _0x4d55d2=_0x4a83fc[_0x3e81dd(0xd6)](_0x27f936[_0x3e81dd(0xfd)])||_0x3e81dd(0x106);this[_0x3e81dd(0xca)](_0x3e81dd(0xe9),{'interactionId':this[_0x3e81dd(0xfb)]?this[_0x3e81dd(0xfb)]['id']:void 0x0,'error':new _0x5b19c0(_0x4d55d2,null,{'error':_0x27f936})});}}finally{this[_0x3e81dd(0xfb)]?.[_0x3e81dd(0xdc)](),this[_0x3e81dd(0xfb)]=void 0x0;}}[_0xca5afd(0x114)]({userMessage:_0x26f51e,contextItems:_0x331ffd,capabilities:_0x5132ea,modelId:_0x1994d6,attributes:_0x28478d}){const _0x4af256=_0xca5afd,_0x5793ec=new _0x1aacc4({'userMessage':_0x26f51e,'contextItems':_0x331ffd,'capabilities':_0x5132ea,'conversationId':this['id'],'connector':this[_0x4af256(0xe0)],'editor':this[_0x4af256(0xc6)][_0x4af256(0xad)]&&this[_0x4af256(0xc6)][_0x4af256(0xad)](),'model':_0x1994d6,'attributes':_0x28478d});return _0x5793ec[_0x4af256(0xb0)](..._0x5acf10)['to'](this),this[_0x4af256(0x111)][_0x4af256(0xc2)](_0x5793ec),this[_0x4af256(0xca)](_0x4af256(0xbc),_0x5793ec),_0x5793ec;}[_0xca5afd(0x112)](_0x3fec30){const _0x422ee4=_0xca5afd;return this[_0x422ee4(0x111)][_0x422ee4(0xf0)](_0x3d0a9f=>_0x3d0a9f['id']===_0x3fec30);}[_0xca5afd(0xab)](_0x5638ab){const _0x227294=_0xca5afd,_0x3b46d1=this[_0x227294(0x112)](_0x5638ab);_0x3b46d1&&(_0x3b46d1[_0x227294(0x120)](),this[_0x227294(0x111)][_0x227294(0xd0)](this[_0x227294(0x111)][_0x227294(0xb7)](_0x3b46d1),0x1));}get[_0xca5afd(0xec)](){const _0x2b5d58=_0xca5afd;return this[_0x2b5d58(0x111)][this[_0x2b5d58(0x111)][_0x2b5d58(0xc7)]-0x1];}[_0xca5afd(0xf1)](_0x5fa92b){const _0x551aae=_0xca5afd;this[_0x551aae(0x101)][_0x551aae(0xf1)](_0x5fa92b);}async[_0xca5afd(0xf8)]({content:_0x5ebf9d,version:_0x409eca,sessionId:_0x1f2620,selections:_0x3e8cbd}){const _0x5dbc13=_0xca5afd;await this[_0x5dbc13(0x101)][_0x5dbc13(0x11d)](_0x5ebf9d,_0x409eca,_0x1f2620,_0x3e8cbd);}[_0xca5afd(0xe4)](){const _0x34f752=_0xca5afd;return this[_0x34f752(0xfb)]?.[_0x34f752(0x110)]()?.[_0x34f752(0xee)]||'';}[_0xca5afd(0xb2)](_0x1a293f){const _0x569e27=_0xca5afd;this[_0x569e27(0x101)][_0x569e27(0xb2)](_0x1a293f);}[_0xca5afd(0xaa)](){const _0x271b0b=_0xca5afd;this[_0x271b0b(0x101)][_0x271b0b(0xaa)]();}[_0xca5afd(0x105)](_0x682be){const _0x33000f=_0xca5afd;this[_0x33000f(0x101)][_0x33000f(0x105)](_0x682be);}[_0xca5afd(0xa2)](_0x4fa999){const _0x5bc25e=_0xca5afd;this[_0x5bc25e(0x101)][_0x5bc25e(0xa2)](_0x4fa999);}[_0xca5afd(0xdd)](_0x5f1630){const _0x3bff19=_0xca5afd;this[_0x3bff19(0x101)][_0x3bff19(0xdd)](_0x5f1630);}[_0xca5afd(0xf5)](_0x36e414,_0x27a169){const _0x1a9791=_0xca5afd;this[_0x1a9791(0x101)][_0x1a9791(0xf5)](_0x36e414,_0x27a169);}[_0xca5afd(0xe6)](_0x4da5c0,_0x7139fb,_0x2249eb){const _0x2377e6=_0xca5afd;return this[_0x2377e6(0x101)][_0x2377e6(0xe6)](_0x4da5c0,_0x7139fb,_0x2249eb);}[_0xca5afd(0xe7)](_0x5c814f){const _0x3cfdb4=_0xca5afd;this[_0x3cfdb4(0x101)][_0x3cfdb4(0xe7)](_0x5c814f);}[_0xca5afd(0xe3)](_0x10ee32){const _0x1c2458=_0xca5afd;this[_0x1c2458(0xa4)][_0x1c2458(0xe3)](_0x10ee32);}[_0xca5afd(0xb6)](){const _0x879aa0=_0xca5afd;this[_0x879aa0(0xa4)][_0x879aa0(0xb6)]();}[_0xca5afd(0xcb)](_0x3a4985){const _0x49431a=_0xca5afd;this[_0x49431a(0xa4)][_0x49431a(0xcb)](_0x3a4985);}[_0xca5afd(0xc5)](){const _0x1b0a1c=_0xca5afd;this[_0x1b0a1c(0xa4)][_0x1b0a1c(0xc5)]();}[_0xca5afd(0xba)](){const _0x39d169=_0xca5afd;return this[_0x39d169(0x101)][_0x39d169(0xba)]();}[_0xca5afd(0xac)](){const _0x4dc806=_0xca5afd;return this[_0x4dc806(0x101)][_0x4dc806(0xac)]();}[_0xca5afd(0xe1)](){const _0x1dcc86=_0xca5afd;return this[_0x1dcc86(0x101)][_0x1dcc86(0xe1)]();}async[_0xca5afd(0x100)](_0x1f2045){const _0x25ee7d=_0xca5afd;_0x1f2045?!0x1===await this[_0x25ee7d(0xa7)][_0x25ee7d(0x102)](_0x1f2045)&&(_0x4297cb(_0x25ee7d(0x116),{'conversation':this,'model':_0x1f2045}),_0x1f2045=(await this[_0x25ee7d(0xa7)][_0x25ee7d(0xf3)]())[0x0]):(_0x4297cb(_0x25ee7d(0xd9),{'conversation':this}),_0x1f2045=(await this[_0x25ee7d(0xa7)][_0x25ee7d(0xf3)]())[0x0]),_0x1f2045['id']!==this[_0x25ee7d(0xf7)]?.['id']&&(this[_0x25ee7d(0xf7)]=_0x1f2045,this[_0x25ee7d(0xa4)][_0x25ee7d(0xc8)](),this[_0x25ee7d(0xca)](_0x25ee7d(0xcd),{'selectedModel':_0x1f2045}));}}function _0x17a8(){const _0x15a3b0=['content','2559340dKpcQJ','find','addCurrentDocumentToContext','fetchConversationMessages','getAvailableModels','ai-chat-conversation-start-no-model-selected','addResourceToContext','fetchConversation','selectedModel','updateCurrentDocumentInContext','692lKJEuh','handleUserInteraction','currentInteraction','86079FyEyZm','code','getConversation','url','setModel','chatContext','isAvailable','message','stack','addFilesToContext','ai-chat-handle-user-interaction-start-failed','_extractContextItems','type','mcp-tool-result','685nzLYBG','parse','role','conversationInitialized','_processMessagesToInteractions','setConversationTitle','getDocumentContext','interactions','getInteraction','toolName','createInteraction','sessionId','ai-chat-conversation-set-model-not-available','getModel','group','populateFromMessage','ai-chat-conversation-init-from-id-failed','selectedModelId','assistant','updateCurrentDocument','ai-chat-conversation-already-started','ai-chat-conversation-init-failed','destroy','user','addUrlToContext','load','chatCapabilities','attributes','ai-chat-handle-user-conversation-not-initialized','chatModels','getCapabilitiesConfig','text','removeSelectionFromContext','removeInteraction','isCurrentDocumentInConversation','getEditor','conversationStarted','prompt','delegate','reasoning','addSelectionToContext','currentReply','4804aXgdDJ','set','toggleWebSearch','indexOf','addToConversationContext','150516NXIQJt','isCurrentDocumentInContext','isFromHistory','interactionCreated','contextItems','ai-chat-conversation-start-failed','createReply','36EGijrF','getAll','push','6jtxFCT','44BObfwE','toggleReasoning','options','length','reset','ai-chat-handle-user-interaction-already-in-progress','fire','setReasoning','toLowerCase','modelSelected','capabilities','model','splice','isStarted','conversationId','webSearch','start','hasOwn','get','getPendingContextItems','_handleToolResultData','ai-chat-conversation-set-model-null','appendContent','modification','stop','addToolItemToContext','getMessages','146AWxbzJ','connector','isSelectionInContext','init','setWebSearch','getCurrentDocumentContext','startConversation','loadSourceResources','removeFromContext','title','error','448008OvDMVv','540156TKAhBz','lastInteraction','sources'];_0x17a8=function(){return _0x15a3b0;};return _0x17a8();}
23
+ const _0x23042f=_0x1d65;(function(_0x4ea5da,_0x16ae2a){const _0x128700=_0x1d65,_0x1e700a=_0x4ea5da();while(!![]){try{const _0x59076b=parseInt(_0x128700(0x1e0))/0x1*(-parseInt(_0x128700(0x198))/0x2)+-parseInt(_0x128700(0x197))/0x3+parseInt(_0x128700(0x196))/0x4+parseInt(_0x128700(0x18d))/0x5+parseInt(_0x128700(0x1d4))/0x6*(-parseInt(_0x128700(0x1e3))/0x7)+parseInt(_0x128700(0x1c5))/0x8+-parseInt(_0x128700(0x1a5))/0x9*(-parseInt(_0x128700(0x1bc))/0xa);if(_0x59076b===_0x16ae2a)break;else _0x1e700a['push'](_0x1e700a['shift']());}catch(_0x41981){_0x1e700a['push'](_0x1e700a['shift']());}}}(_0x1c50,0x4a6d1));import{CKEditorError as _0xe02ce4,EmitterMixin as _0x1bff8b,logWarning as _0x20ac9f}from'ckeditor5/src/utils.js';function _0x1d65(_0x1cae5e,_0x375865){const _0x1c509a=_0x1c50();return _0x1d65=function(_0x1d650b,_0x26174b){_0x1d650b=_0x1d650b-0x16c;let _0x3f4f84=_0x1c509a[_0x1d650b];return _0x3f4f84;},_0x1d65(_0x1cae5e,_0x375865);}import{AI_MODEL_EVENT_NAMES as _0x3417be}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3177b6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4e4b6c}from'./aichatcontext.js';import{AICapabilities as _0x32eaae,CAPABILITIES_MODEL_EVENT_NAMES as _0x56a178}from'../../aicore/model/aicapabilities.js';function _0x1c50(){const _0x353d10=['ai-chat-conversation-init-failed','479aZyiaV','reasoning','currentInteraction','463967LTYnct','type','destroy','connector','getInteraction','chatContext','splice','setReasoning','find','appendContent','toggleWebSearch','push','_handleToolResultData','isCurrentDocumentInContext','text','sources','toggleReasoning','ai-chat-conversation-set-model-not-available','selectedModelId','lastInteraction','length','modelSelected','setWebSearch','start','isStarted','user','ai-chat-conversation-set-model-null','chatModels','hasOwn','content','model','options','getModel','updateCurrentDocument','error','selectedModel','load','modification','group','setConversationTitle','2590695cwBuWh','prompt','indexOf','addResourceToContext','toolName','addToolItemToContext','code','set','mcp-tool-result','848912ZhYTUT','393168ciQQFR','256yjGQqq','addCurrentDocumentToContext','message','delegate','isSelectionInContext','contextItems','getConversation','assistant','url','addFilesToContext','ai-chat-conversation-start-no-model-selected','getCurrentDocumentContext','reset','9ornAGO','getMessages','loadSourceResources','parse','removeSelectionFromContext','createReply','webSearch','getDocumentContext','fetchConversationMessages','ai-chat-conversation-already-started','get','role','conversationInitialized','toLowerCase','addSelectionToContext','isCurrentDocumentInConversation','capabilities','fetchConversation','createInteraction','getEditor','sessionId','startConversation','ai-chat-conversation-start-failed','1180770CYRfoz','interactionCreated','title','setModel','stack','removeInteraction','ai-chat-handle-user-conversation-not-initialized','conversationStarted','interactions','1962416XiReEW','_processMessagesToInteractions','addToConversationContext','init','fire','conversationId','removeFromContext','populateFromMessage','ai-chat-conversation-init-from-id-failed','getPendingContextItems','handleUserInteraction','currentReply','_extractContextItems','getAll','ai-chat-handle-user-interaction-start-failed','54NVxBat','isFromHistory','getCapabilitiesConfig','chatCapabilities','addUrlToContext','isAvailable','stop','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','attributes','getAvailableModels'];_0x1c50=function(){return _0x353d10;};return _0x1c50();}import{AIChatInteraction as _0x563ef4}from'./aichatinteraction.js';import{errorsMap as _0x17f0f2}from'../../errorsmap.js';export class AIChatConversation extends _0x1bff8b(){['id'];[_0x23042f(0x17d)]=!0x1;[_0x23042f(0x1d5)];[_0x23042f(0x1c4)]=[];[_0x23042f(0x1e2)];[_0x23042f(0x188)];[_0x23042f(0x1e6)];[_0x23042f(0x184)];constructor(_0x20096d){const _0x5a30a7=_0x23042f;super(),this[_0x5a30a7(0x184)]=_0x20096d,this[_0x5a30a7(0x1e6)]=_0x20096d[_0x5a30a7(0x1e6)],this[_0x5a30a7(0x180)]=_0x20096d[_0x5a30a7(0x180)],this['id']=_0x20096d[_0x5a30a7(0x1ca)],this[_0x5a30a7(0x1d5)]=_0x20096d[_0x5a30a7(0x1d5)];}async[_0x23042f(0x1c8)](_0x376c6f){const _0xd6cb94=_0x23042f;try{this[_0xd6cb94(0x1e8)]=new _0x3177b6({'connector':this[_0xd6cb94(0x1e6)],'config':_0x376c6f,'ownerId':this['id']}),this[_0xd6cb94(0x1e8)][_0xd6cb94(0x19b)](..._0x4e4b6c)['to'](this),this[_0xd6cb94(0x1e8)][_0xd6cb94(0x1c8)](),this[_0xd6cb94(0x1d7)]=new _0x32eaae(),this[_0xd6cb94(0x1d7)][_0xd6cb94(0x19b)](..._0x56a178)['to'](this),this[_0xd6cb94(0x1d7)][_0xd6cb94(0x1c8)]();const _0x5c80e5=await this[_0xd6cb94(0x180)][_0xd6cb94(0x1de)]();this[_0xd6cb94(0x1c9)](_0xd6cb94(0x1b1),{'availableModels':_0x5c80e5});const _0x3014a5=await this[_0xd6cb94(0x180)][_0xd6cb94(0x185)](this[_0xd6cb94(0x184)][_0xd6cb94(0x177)]);_0x3014a5&&await this[_0xd6cb94(0x1bf)](_0x3014a5);}catch(_0x4e09b0){const _0x51ad7b=new _0xe02ce4(_0xd6cb94(0x1df),null,{'message':_0x4e09b0[_0xd6cb94(0x19a)]||_0x4e09b0});_0x51ad7b[_0xd6cb94(0x1c0)]=_0x4e09b0[_0xd6cb94(0x1c0)],this[_0xd6cb94(0x1c9)](_0xd6cb94(0x187),{'error':_0x51ad7b});}}async[_0x23042f(0x17c)](){const _0x51e0d6=_0x23042f;if(this[_0x51e0d6(0x17d)])throw new _0xe02ce4(_0x51e0d6(0x1ae),null,{'conversation':this});if(!this[_0x51e0d6(0x188)])throw new _0xe02ce4(_0x51e0d6(0x1a2),null,{'conversation':this});try{const {id:_0x45aba7}=await this[_0x51e0d6(0x1e6)][_0x51e0d6(0x1ba)](this['id'],this[_0x51e0d6(0x184)][_0x51e0d6(0x18b)])[_0x51e0d6(0x19e)]();this['id']=_0x45aba7,this[_0x51e0d6(0x17d)]=!0x0,this[_0x51e0d6(0x1c9)](_0x51e0d6(0x1c3),{'conversationId':this['id'],'selectedModel':this[_0x51e0d6(0x188)]});}catch(_0x536f9b){const _0x5d0537=new _0xe02ce4(_0x51e0d6(0x1bb),null,{'message':_0x536f9b[_0x51e0d6(0x19a)],'conversationId':this['id']});throw _0x5d0537[_0x51e0d6(0x1c0)]=_0x536f9b[_0x51e0d6(0x1c0)],this[_0x51e0d6(0x1c9)](_0x51e0d6(0x187),{'error':_0x5d0537}),_0x5d0537;}}async[_0x23042f(0x189)](_0x570c19,_0xc5e468){const _0x4553fe=_0x23042f;try{const _0x550375=await this[_0x4553fe(0x1e6)][_0x4553fe(0x1b6)](_0x570c19)[_0x4553fe(0x19e)](),_0xb45dd7=await this[_0x4553fe(0x1e6)][_0x4553fe(0x1ad)](_0x570c19)[_0x4553fe(0x1a6)](),_0x259cce=_0xb45dd7[0x0][_0x4553fe(0x183)];this[_0x4553fe(0x17d)]=!0x0,this['id']=_0x550375['id'],_0x4553fe(0x1be)in _0x550375?this[_0x4553fe(0x1c9)](_0x4553fe(0x18c),_0x550375[_0x4553fe(0x1be)],!0x0):this[_0x4553fe(0x1c9)](_0x4553fe(0x18c),'',!0x0);const _0x15d9bd=(await this[_0x4553fe(0x180)][_0x4553fe(0x1d2)]())[_0x4553fe(0x16d)](_0x3e348b=>_0x3e348b['id'][_0x4553fe(0x1b2)]()===_0x259cce[_0x4553fe(0x1b2)]());return this[_0x4553fe(0x188)]=_0x15d9bd,this[_0x4553fe(0x1c9)](_0x4553fe(0x17a),{'selectedModel':_0x15d9bd,'isDisabled':!0x0}),await this[_0x4553fe(0x1c6)](_0xb45dd7,_0xc5e468,_0x259cce),this[_0x4553fe(0x1e2)]=void 0x0,this;}catch(_0x11f5f3){const _0x17c159=new _0xe02ce4(_0x4553fe(0x1cd),null,{'message':_0x11f5f3[_0x4553fe(0x19a)],'conversationId':_0x570c19});throw _0x17c159[_0x4553fe(0x1c0)]=_0x11f5f3[_0x4553fe(0x1c0)],this[_0x4553fe(0x1c9)](_0x4553fe(0x187),{'error':_0x17c159}),_0x17c159;}}async[_0x23042f(0x1c6)](_0x437d6a,_0x41f35d,_0x506206){const _0x3c502a=_0x23042f;let _0x16081d;for(const _0x4b1f1d of _0x437d6a)if(_0x3c502a(0x17e)===_0x4b1f1d[_0x3c502a(0x1b0)]){const _0x32e849=await this[_0x3c502a(0x1d1)](_0x4b1f1d),_0x47dc85={'isReasoningEnabled':Object[_0x3c502a(0x181)](_0x4b1f1d[_0x3c502a(0x1b5)],_0x3c502a(0x1e1)),'isWebSearchEnabled':Object[_0x3c502a(0x181)](_0x4b1f1d[_0x3c502a(0x1b5)],_0x3c502a(0x1ab))};_0x16081d=this[_0x3c502a(0x1b7)]({'userMessage':_0x4b1f1d[_0x3c502a(0x18e)],'contextItems':_0x32e849,'capabilities':_0x47dc85,'modelId':_0x506206,'attributes':_0x4b1f1d[_0x3c502a(0x1dd)]}),this[_0x3c502a(0x1e2)]=_0x16081d,this[_0x3c502a(0x1e8)][_0x3c502a(0x1c7)](this[_0x3c502a(0x1e2)][_0x3c502a(0x19d)]);}else{if(_0x3c502a(0x19f)===_0x4b1f1d[_0x3c502a(0x1b0)]&&_0x16081d){const _0x342be2=[];for(const _0xdc7db7 of _0x4b1f1d[_0x3c502a(0x182)])switch(_0xdc7db7[_0x3c502a(0x1e4)]){case _0x3c502a(0x173):case _0x3c502a(0x18a):{const _0x5e0fb9=_0x16081d[_0x3c502a(0x1ac)]()?.[_0x3c502a(0x1b9)]!==_0x41f35d;_0x16081d[_0x3c502a(0x1d0)]=_0x16081d[_0x3c502a(0x1aa)]({'type':_0xdc7db7[_0x3c502a(0x1e4)],'isDone':!0x0,'interactionId':_0x16081d['id'],'areActionsDisabled':_0x5e0fb9}),_0x16081d[_0x3c502a(0x1d0)][_0x3c502a(0x16e)](_0xdc7db7[_0x3c502a(0x182)]),_0x342be2[_0x3c502a(0x179)]>0x0&&(_0x16081d[_0x3c502a(0x1d0)][_0x3c502a(0x174)]=_0x342be2[_0x3c502a(0x1e9)](0x0));break;}case _0x3c502a(0x1a0):_0x342be2[_0x3c502a(0x170)](_0xdc7db7);break;case _0x3c502a(0x195):{const {data:_0x10dcb8,attributes:_0x4f8c27}=JSON[_0x3c502a(0x1a8)](_0xdc7db7[_0x3c502a(0x182)]);_0x16081d[_0x3c502a(0x171)]({'toolName':_0xdc7db7[_0x3c502a(0x191)],'data':_0x10dcb8,'attributes':_0x4f8c27});break;}}}}}async[_0x23042f(0x1d1)](_0x179c50){const _0xd64ea4=_0x23042f,_0x41b1e5=new Map();if(!_0x179c50[_0xd64ea4(0x182)])return _0x41b1e5;for(const _0x3c6108 of _0x179c50[_0xd64ea4(0x182)]){const _0x598640=await this[_0xd64ea4(0x1e8)][_0xd64ea4(0x1cc)](_0x3c6108);_0x598640&&_0x41b1e5[_0xd64ea4(0x194)](_0x598640['id'],_0x598640);}return _0x41b1e5;}async[_0x23042f(0x1cf)]({userMessage:_0x568247,attributes:_0x1d6d2d}){const _0xb10ee1=_0x23042f;if(!this[_0xb10ee1(0x17d)])throw new _0xe02ce4(_0xb10ee1(0x1c2),null,{'conversation':this});if(this[_0xb10ee1(0x1e2)])throw new _0xe02ce4(_0xb10ee1(0x1db),null,{'conversation':this});try{const _0x11bee5=this[_0xb10ee1(0x1e8)][_0xb10ee1(0x1ce)](),_0x3ddc0d=this[_0xb10ee1(0x1d7)][_0xb10ee1(0x1d6)](),_0x31ee14=this[_0xb10ee1(0x188)]['id'];this[_0xb10ee1(0x1e2)]=this[_0xb10ee1(0x1b7)]({'userMessage':_0x568247,'contextItems':_0x11bee5,'capabilities':_0x3ddc0d,'modelId':_0x31ee14,'attributes':_0x1d6d2d}),await this[_0xb10ee1(0x1e2)][_0xb10ee1(0x17c)](),this[_0xb10ee1(0x1e8)][_0xb10ee1(0x1c7)](this[_0xb10ee1(0x1e2)][_0xb10ee1(0x19d)]);}catch(_0x181695){if(_0x181695 instanceof _0xe02ce4)this[_0xb10ee1(0x1c9)](_0xb10ee1(0x187),{'interactionId':this[_0xb10ee1(0x1e2)]?this[_0xb10ee1(0x1e2)]['id']:void 0x0,'error':_0x181695});else{const _0xd064ec=_0x17f0f2[_0xb10ee1(0x1af)](_0x181695[_0xb10ee1(0x193)])||_0xb10ee1(0x1d3);this[_0xb10ee1(0x1c9)](_0xb10ee1(0x187),{'interactionId':this[_0xb10ee1(0x1e2)]?this[_0xb10ee1(0x1e2)]['id']:void 0x0,'error':new _0xe02ce4(_0xd064ec,null,{'error':_0x181695})});}}finally{this[_0xb10ee1(0x1e2)]?.[_0xb10ee1(0x1da)](),this[_0xb10ee1(0x1e2)]=void 0x0;}}[_0x23042f(0x1b7)]({userMessage:_0x37d495,contextItems:_0x214202,capabilities:_0x36f807,modelId:_0x3a490f,attributes:_0x562807}){const _0x50bd0c=_0x23042f,_0x351f16=new _0x563ef4({'userMessage':_0x37d495,'contextItems':_0x214202,'capabilities':_0x36f807,'conversationId':this['id'],'connector':this[_0x50bd0c(0x1e6)],'editor':this[_0x50bd0c(0x184)][_0x50bd0c(0x1b8)]&&this[_0x50bd0c(0x184)][_0x50bd0c(0x1b8)](),'model':_0x3a490f,'attributes':_0x562807});return _0x351f16[_0x50bd0c(0x19b)](..._0x3417be)['to'](this),this[_0x50bd0c(0x1c4)][_0x50bd0c(0x170)](_0x351f16),this[_0x50bd0c(0x1c9)](_0x50bd0c(0x1bd),_0x351f16),_0x351f16;}[_0x23042f(0x1e7)](_0x5889a2){const _0x40c901=_0x23042f;return this[_0x40c901(0x1c4)][_0x40c901(0x16d)](_0x3c299c=>_0x3c299c['id']===_0x5889a2);}[_0x23042f(0x1c1)](_0x246afa){const _0x55c9af=_0x23042f,_0x6cf671=this[_0x55c9af(0x1e7)](_0x246afa);_0x6cf671&&(_0x6cf671[_0x55c9af(0x1e5)](),this[_0x55c9af(0x1c4)][_0x55c9af(0x1e9)](this[_0x55c9af(0x1c4)][_0x55c9af(0x18f)](_0x6cf671),0x1));}get[_0x23042f(0x178)](){const _0x3d316d=_0x23042f;return this[_0x3d316d(0x1c4)][this[_0x3d316d(0x1c4)][_0x3d316d(0x179)]-0x1];}[_0x23042f(0x199)](_0x509c9e){const _0x223f42=_0x23042f;this[_0x223f42(0x1e8)][_0x223f42(0x199)](_0x509c9e);}async[_0x23042f(0x1dc)]({content:_0x4ee840,version:_0x2951ba,sessionId:_0x40080c,selections:_0x3bc2dd}){const _0x49e7a6=_0x23042f;await this[_0x49e7a6(0x1e8)][_0x49e7a6(0x186)](_0x4ee840,_0x2951ba,_0x40080c,_0x3bc2dd);}[_0x23042f(0x1a3)](){const _0x44233e=_0x23042f;return this[_0x44233e(0x1e2)]?.[_0x44233e(0x1ac)]()?.[_0x44233e(0x182)]||'';}[_0x23042f(0x1b3)](_0x2e8fcb){const _0x4aece7=_0x23042f;this[_0x4aece7(0x1e8)][_0x4aece7(0x1b3)](_0x2e8fcb);}[_0x23042f(0x1a9)](){const _0x59ee81=_0x23042f;this[_0x59ee81(0x1e8)][_0x59ee81(0x1a9)]();}[_0x23042f(0x1a1)](_0x4205ba){const _0x1add22=_0x23042f;this[_0x1add22(0x1e8)][_0x1add22(0x1a1)](_0x4205ba);}[_0x23042f(0x1d8)](_0x2d3437){const _0x95eb4=_0x23042f;this[_0x95eb4(0x1e8)][_0x95eb4(0x1d8)](_0x2d3437);}[_0x23042f(0x192)](_0x5f46c5){const _0x4fe721=_0x23042f;this[_0x4fe721(0x1e8)][_0x4fe721(0x192)](_0x5f46c5);}[_0x23042f(0x190)](_0x5e17af,_0x44d837){const _0x3d455b=_0x23042f;this[_0x3d455b(0x1e8)][_0x3d455b(0x190)](_0x5e17af,_0x44d837);}[_0x23042f(0x1a7)](_0x4c9ccb,_0x1248fa,_0x39d4fc){const _0x2fcede=_0x23042f;return this[_0x2fcede(0x1e8)][_0x2fcede(0x1a7)](_0x4c9ccb,_0x1248fa,_0x39d4fc);}[_0x23042f(0x1cb)](_0x2ae306){const _0x56be7a=_0x23042f;this[_0x56be7a(0x1e8)][_0x56be7a(0x1cb)](_0x2ae306);}[_0x23042f(0x17b)](_0x950b9d){const _0x53ff1f=_0x23042f;this[_0x53ff1f(0x1d7)][_0x53ff1f(0x17b)](_0x950b9d);}[_0x23042f(0x16f)](){const _0x16974c=_0x23042f;this[_0x16974c(0x1d7)][_0x16974c(0x16f)]();}[_0x23042f(0x16c)](_0x50f8c1){const _0x2b142b=_0x23042f;this[_0x2b142b(0x1d7)][_0x2b142b(0x16c)](_0x50f8c1);}[_0x23042f(0x175)](){const _0x49889c=_0x23042f;this[_0x49889c(0x1d7)][_0x49889c(0x175)]();}[_0x23042f(0x172)](){const _0x12298d=_0x23042f;return this[_0x12298d(0x1e8)][_0x12298d(0x172)]();}[_0x23042f(0x1b4)](){const _0x363ede=_0x23042f;return this[_0x363ede(0x1e8)][_0x363ede(0x1b4)]();}[_0x23042f(0x19c)](){const _0x51ff54=_0x23042f;return this[_0x51ff54(0x1e8)][_0x51ff54(0x19c)]();}async[_0x23042f(0x1bf)](_0x2d5c85){const _0xc8ab27=_0x23042f;_0x2d5c85?!0x1===await this[_0xc8ab27(0x180)][_0xc8ab27(0x1d9)](_0x2d5c85)&&(_0x20ac9f(_0xc8ab27(0x176),{'conversation':this,'model':_0x2d5c85}),_0x2d5c85=(await this[_0xc8ab27(0x180)][_0xc8ab27(0x1de)]())[0x0]):(_0x20ac9f(_0xc8ab27(0x17f),{'conversation':this}),_0x2d5c85=(await this[_0xc8ab27(0x180)][_0xc8ab27(0x1de)]())[0x0]),_0x2d5c85['id']!==this[_0xc8ab27(0x188)]?.['id']&&(this[_0xc8ab27(0x188)]=_0x2d5c85,this[_0xc8ab27(0x1d7)][_0xc8ab27(0x1a4)](),this[_0xc8ab27(0x1c9)](_0xc8ab27(0x17a),{'selectedModel':_0x2d5c85}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4159d4=_0x41d6;function _0x525c(){var _0x8534f1=['contextItems','mapContextItemsToRequestData','3066395PXSDNx','current-document','getDocumentContext','5900700OFTyzr','attributes','connector','376685AOALiu','24848197rKhoCz','getCapabilitiesRequestData','userMessage','capabilities','queryAssistant','sendRequest','10iMoCpp','6520017zlBWpE','8abKzHk','conversationId','36nsJntv','4RjPWLz','get','1687544TwgBjh','model','140421soceiY'];_0x525c=function(){return _0x8534f1;};return _0x525c();}(function(_0x3a8646,_0x2a7b3b){var _0x19c047=_0x41d6,_0xd3738a=_0x3a8646();while(!![]){try{var _0x6f030b=-parseInt(_0x19c047(0x167))/0x1*(-parseInt(_0x19c047(0x15a))/0x2)+parseInt(_0x19c047(0x15e))/0x3*(-parseInt(_0x19c047(0x157))/0x4)+-parseInt(_0x19c047(0x161))/0x5+parseInt(_0x19c047(0x164))/0x6+parseInt(_0x19c047(0x156))/0x7+parseInt(_0x19c047(0x15c))/0x8*(parseInt(_0x19c047(0x159))/0x9)+-parseInt(_0x19c047(0x155))/0xa*(parseInt(_0x19c047(0x168))/0xb);if(_0x6f030b===_0x2a7b3b)break;else _0xd3738a['push'](_0xd3738a['shift']());}catch(_0x4d526e){_0xd3738a['push'](_0xd3738a['shift']());}}}(_0x525c,0x8559b));function _0x41d6(_0x505fd9,_0x3ef200){var _0x525c50=_0x525c();return _0x41d6=function(_0x41d617,_0x2abd59){_0x41d617=_0x41d617-0x154;var _0x1f55e3=_0x525c50[_0x41d617];return _0x1f55e3;},_0x41d6(_0x505fd9,_0x3ef200);}import{AICapabilities as _0x469dbe}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x13843e}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x11e6e2}from'./aichatcontext.js';export class AIChatInteraction extends _0x13843e{[_0x4159d4(0x16a)];[_0x4159d4(0x158)];[_0x4159d4(0x15f)]=new Map();[_0x4159d4(0x15d)];[_0x4159d4(0x165)];constructor(_0x401a4f){var _0x5b5cf3=_0x4159d4;super(_0x401a4f),this[_0x5b5cf3(0x158)]=_0x401a4f[_0x5b5cf3(0x158)],this[_0x5b5cf3(0x15f)]=_0x401a4f[_0x5b5cf3(0x15f)],this[_0x5b5cf3(0x16b)]=_0x401a4f[_0x5b5cf3(0x16b)],this[_0x5b5cf3(0x16a)]=_0x401a4f[_0x5b5cf3(0x16a)],this[_0x5b5cf3(0x15d)]=_0x401a4f[_0x5b5cf3(0x15d)],this[_0x5b5cf3(0x165)]=_0x401a4f[_0x5b5cf3(0x165)];}async[_0x4159d4(0x154)](){var _0x2e5e65=_0x4159d4;return this[_0x2e5e65(0x166)][_0x2e5e65(0x16c)]({'message':this[_0x2e5e65(0x16a)],'conversationId':this[_0x2e5e65(0x158)],'parts':_0x11e6e2[_0x2e5e65(0x160)](this[_0x2e5e65(0x15f)]),'capabilities':_0x469dbe[_0x2e5e65(0x169)](this[_0x2e5e65(0x16b)]),'model':this[_0x2e5e65(0x15d)],'attributes':this[_0x2e5e65(0x165)]});}[_0x4159d4(0x163)](){var _0x5b6266=_0x4159d4;return this[_0x5b6266(0x15f)][_0x5b6266(0x15b)](_0x5b6266(0x162));}}
23
+ function _0x5ec0(){var _0x4f995d=['5025360gosNIC','queryAssistant','attributes','contextItems','179103OASvVV','23555jwIhXG','2128tWIRcC','current-document','conversationId','userMessage','getDocumentContext','get','12ihVvca','model','10AsLCvx','sendRequest','capabilities','5035599iotxJT','4726044CSGaXX','5GUzAPo','mapContextItemsToRequestData','connector','getCapabilitiesRequestData','3119550kVHMqi','622186vkjSiS','33pKyeay'];_0x5ec0=function(){return _0x4f995d;};return _0x5ec0();}function _0x2e34(_0x4836a3,_0x48dc84){var _0x5ec0dc=_0x5ec0();return _0x2e34=function(_0x2e34f3,_0x3f69b2){_0x2e34f3=_0x2e34f3-0x154;var _0xd39462=_0x5ec0dc[_0x2e34f3];return _0xd39462;},_0x2e34(_0x4836a3,_0x48dc84);}var _0x2a8af3=_0x2e34;(function(_0x202622,_0x3afcb3){var _0x521606=_0x2e34,_0x37aee8=_0x202622();while(!![]){try{var _0x3e9c3a=-parseInt(_0x521606(0x16d))/0x1+parseInt(_0x521606(0x161))/0x2*(-parseInt(_0x521606(0x159))/0x3)+parseInt(_0x521606(0x167))/0x4+-parseInt(_0x521606(0x168))/0x5*(parseInt(_0x521606(0x16c))/0x6)+parseInt(_0x521606(0x15a))/0x7*(-parseInt(_0x521606(0x15b))/0x8)+parseInt(_0x521606(0x166))/0x9*(parseInt(_0x521606(0x163))/0xa)+parseInt(_0x521606(0x154))/0xb*(parseInt(_0x521606(0x155))/0xc);if(_0x3e9c3a===_0x3afcb3)break;else _0x37aee8['push'](_0x37aee8['shift']());}catch(_0x3d5578){_0x37aee8['push'](_0x37aee8['shift']());}}}(_0x5ec0,0x92f63));import{AICapabilities as _0x1c9038}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x41b4dc}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x69ac80}from'./aichatcontext.js';export class AIChatInteraction extends _0x41b4dc{[_0x2a8af3(0x15e)];[_0x2a8af3(0x15d)];[_0x2a8af3(0x158)]=new Map();[_0x2a8af3(0x162)];[_0x2a8af3(0x157)];constructor(_0xa8e3a3){var _0x1ccf47=_0x2a8af3;super(_0xa8e3a3),this[_0x1ccf47(0x15d)]=_0xa8e3a3[_0x1ccf47(0x15d)],this[_0x1ccf47(0x158)]=_0xa8e3a3[_0x1ccf47(0x158)],this[_0x1ccf47(0x165)]=_0xa8e3a3[_0x1ccf47(0x165)],this[_0x1ccf47(0x15e)]=_0xa8e3a3[_0x1ccf47(0x15e)],this[_0x1ccf47(0x162)]=_0xa8e3a3[_0x1ccf47(0x162)],this[_0x1ccf47(0x157)]=_0xa8e3a3[_0x1ccf47(0x157)];}async[_0x2a8af3(0x164)](){var _0x2a8b8a=_0x2a8af3;return this[_0x2a8b8a(0x16a)][_0x2a8b8a(0x156)]({'message':this[_0x2a8b8a(0x15e)],'conversationId':this[_0x2a8b8a(0x15d)],'parts':_0x69ac80[_0x2a8b8a(0x169)](this[_0x2a8b8a(0x158)]),'capabilities':_0x1c9038[_0x2a8b8a(0x16b)](this[_0x2a8b8a(0x165)]),'model':this[_0x2a8b8a(0x162)],'attributes':this[_0x2a8b8a(0x157)]});}[_0x2a8af3(0x15f)](){var _0x26e3b6=_0x2a8af3;return this[_0x26e3b6(0x158)][_0x26e3b6(0x160)](_0x26e3b6(0x15c));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x225345=_0xac95;(function(_0x325a75,_0x9c4e49){const _0xd309d4=_0xac95,_0x4eea7f=_0x325a75();while(!![]){try{const _0x4bde10=parseInt(_0xd309d4(0x1ca))/0x1+-parseInt(_0xd309d4(0x1ab))/0x2*(parseInt(_0xd309d4(0x1e6))/0x3)+-parseInt(_0xd309d4(0x1ae))/0x4*(-parseInt(_0xd309d4(0x1f4))/0x5)+-parseInt(_0xd309d4(0x1f7))/0x6*(parseInt(_0xd309d4(0x1f2))/0x7)+-parseInt(_0xd309d4(0x1b7))/0x8+-parseInt(_0xd309d4(0x1a8))/0x9*(-parseInt(_0xd309d4(0x1fa))/0xa)+parseInt(_0xd309d4(0x1c6))/0xb;if(_0x4bde10===_0x9c4e49)break;else _0x4eea7f['push'](_0x4eea7f['shift']());}catch(_0x1dd34e){_0x4eea7f['push'](_0x4eea7f['shift']());}}}(_0x1c8f,0x282a4));import{FocusTracker as _0x421fc4,KeystrokeHandler as _0x294114}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x562b49}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0xac95(_0x3a5c1b,_0x4e6873){const _0x1c8f05=_0x1c8f();return _0xac95=function(_0xac9594,_0x17a2ee){_0xac9594=_0xac9594-0x1a6;let _0x1d4f07=_0x1c8f05[_0xac9594];return _0x1d4f07;},_0xac95(_0x3a5c1b,_0x4e6873);}function _0x1c8f(){const _0x26e9d3=['div','nextButtonView','_stateView','focusLast','set','applySuggestion','listenTo','change:isTrackChangesOn','_streamableContentView','7SXlcXd','change:_state','5xMlHLw','toggleShowChanges','keepErrors','376692fheGkW','isEnabled','_toolbarContainerView','80cgzzmG','delegate','_miniToolbarView','12996fTbfXJ','setTemplate','focusCycler','22taVinP','pending','ck-ai-chat-balloon-main_state_','436316uBhjAJ','rejectSuggestion','_togglePartToolbarButtonsVisibility','showNext','shift\x20+\x20tab','ck-ai-chat-balloon__toolbar-container','showDiff','togglePartToolbarEnabled','addMany','2548704JrzxhM','updateContent','showBlockingError','tab','setButtonsVisibility','previousButtonView','_createNextButtonView','showError','_createPreviousButtonView','showPrevious','_state','element','locale','full','ck-ai-chat-balloon-main','3932522SFNWdv','setState','bindTemplate','toggleSuggestionDisplayMode','262002QmZXLR','_keystrokes','_partToolbarView','add','hideError','insertSuggestion','isVisible','toggleRotatorButtonsVisibility','includes','bind','isTrackChangesOn','availableActions','isShowChangesOn','update','render','_errorView','_focusables','fire','children','focusFirst','has','execute','AI_BALLOON_NEXT_LABEL','_isErrorVisible','createCollection','_focusTracker','AI_BALLOON_PREVIOUS_LABEL','destroy','52977MCTfTl','_config','focus'];_0x1c8f=function(){return _0x26e9d3;};return _0x1c8f();}import{AISuggestionContentPartToolbarView as _0x2a1ab5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1fd013}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x490e44}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x2b2d8a,FocusCycler as _0x3b49b0,View as _0x3aa276}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x4a7369}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x19df17,IconChevronUp as _0x591837}from'ckeditor5/src/icons.js';import{getTranslation as _0x44fc55}from'../../aicore/utils/common-translations.js';export class AIChatBalloonView extends _0x490e44{[_0x225345(0x1dc)];[_0x225345(0x1ea)];[_0x225345(0x1bc)];[_0x225345(0x1aa)];[_0x225345(0x1da)];[_0x225345(0x1e3)];[_0x225345(0x1cb)];[_0x225345(0x1e7)];[_0x225345(0x1f1)];[_0x225345(0x1f9)];[_0x225345(0x1cc)];[_0x225345(0x1eb)];[_0x225345(0x1a7)];constructor(_0x47adb0,_0x7b3a74){const _0x3301c8=_0x225345;super(_0x47adb0);const _0x2b1da4=this[_0x3301c8(0x1c8)];this[_0x3301c8(0x1ed)](_0x3301c8(0x1b4),!0x1),this[_0x3301c8(0x1ed)](_0x3301c8(0x1c1),_0x3301c8(0x1ac)),this[_0x3301c8(0x1e3)]=new _0x421fc4(),this[_0x3301c8(0x1cb)]=new _0x294114(),this[_0x3301c8(0x1da)]=this[_0x3301c8(0x1e2)](),this[_0x3301c8(0x1aa)]=new _0x3b49b0({'focusables':this[_0x3301c8(0x1da)],'focusTracker':this[_0x3301c8(0x1e3)],'keystrokeHandler':this[_0x3301c8(0x1cb)],'actions':{'focusPrevious':_0x3301c8(0x1b2),'focusNext':_0x3301c8(0x1ba)}}),this[_0x3301c8(0x1e7)]=_0x7b3a74,this[_0x3301c8(0x1ea)]=this[_0x3301c8(0x1bd)](),this[_0x3301c8(0x1bc)]=this[_0x3301c8(0x1bf)](),this[_0x3301c8(0x1f1)]=new _0x562b49(_0x47adb0),this[_0x3301c8(0x1cc)]=new _0x2a1ab5(_0x47adb0,_0x7b3a74[_0x3301c8(0x1d5)]),this[_0x3301c8(0x1cc)][_0x3301c8(0x1a6)](_0x3301c8(0x1ee),_0x3301c8(0x1cf),_0x3301c8(0x1af))['to'](this),this[_0x3301c8(0x1b0)](_0x7b3a74),this[_0x3301c8(0x1eb)]=new _0x4a7369(_0x47adb0),this[_0x3301c8(0x1eb)][_0x3301c8(0x1d0)]=!0x1,this[_0x3301c8(0x1a7)]=new _0x1fd013(_0x47adb0,{'showChanges':_0x3301c8(0x1c4)}),this[_0x3301c8(0x1a7)][_0x3301c8(0x1d3)](_0x3301c8(0x1d6))['to'](this,_0x3301c8(0x1b4)),this[_0x3301c8(0x1a7)]['on'](_0x3301c8(0x1f5),()=>{const _0x47c133=_0x3301c8;this[_0x47c133(0x1db)](_0x47c133(0x1c9));}),this[_0x3301c8(0x1f9)]=new ms(_0x47adb0,[this[_0x3301c8(0x1cc)],this[_0x3301c8(0x1eb)],this[_0x3301c8(0x1a7)]]),this[_0x3301c8(0x1dc)]=this[_0x3301c8(0x1e2)]([this[_0x3301c8(0x1f1)],this[_0x3301c8(0x1f9)]]),this['on'](_0x3301c8(0x1f3),(_0x6dd8db,_0x55ee9c,_0x5e1f7d,_0x17c231)=>{const _0x387412=_0x3301c8;let _0x26ddc7,_0xa98d04;_0x387412(0x1ac)===_0x17c231?(_0x26ddc7=this[_0x387412(0x1cc)],_0xa98d04=this[_0x387412(0x1eb)]):(_0x26ddc7=this[_0x387412(0x1eb)],_0xa98d04=this[_0x387412(0x1cc)]),this[_0x387412(0x1eb)][_0x387412(0x1c7)](_0x5e1f7d),_0x26ddc7[_0x387412(0x1d0)]=!0x1,_0xa98d04[_0x387412(0x1d0)]=!0x0;}),this[_0x3301c8(0x1a9)]({'tag':_0x3301c8(0x1e9),'attributes':{'class':['ck',_0x3301c8(0x1c5),_0x2b1da4['to'](_0x3301c8(0x1c1),_0x8d1208=>_0x3301c8(0x1ad)+_0x8d1208)]},'children':this[_0x3301c8(0x1dc)]}),this['on'](_0x3301c8(0x1f0),()=>{const _0x120abe=_0x3301c8;this[_0x120abe(0x1b0)](_0x7b3a74);});}[_0x225345(0x1d8)](){const _0x25c0b4=_0x225345;super[_0x25c0b4(0x1d8)](),this[_0x25c0b4(0x1ea)][_0x25c0b4(0x1d8)](),this[_0x25c0b4(0x1bc)][_0x25c0b4(0x1d8)](),this[_0x25c0b4(0x1e3)][_0x25c0b4(0x1cd)](this[_0x25c0b4(0x1c2)]),this[_0x25c0b4(0x1e3)][_0x25c0b4(0x1cd)](this[_0x25c0b4(0x1ea)]),this[_0x25c0b4(0x1e3)][_0x25c0b4(0x1cd)](this[_0x25c0b4(0x1bc)]),this[_0x25c0b4(0x1e3)][_0x25c0b4(0x1cd)](this[_0x25c0b4(0x1a7)]),this[_0x25c0b4(0x1e3)][_0x25c0b4(0x1cd)](this[_0x25c0b4(0x1cc)]),this[_0x25c0b4(0x1cb)][_0x25c0b4(0x1ef)](this[_0x25c0b4(0x1c2)]),this[_0x25c0b4(0x1cb)][_0x25c0b4(0x1ef)](this[_0x25c0b4(0x1ea)][_0x25c0b4(0x1c2)]),this[_0x25c0b4(0x1cb)][_0x25c0b4(0x1ef)](this[_0x25c0b4(0x1bc)][_0x25c0b4(0x1c2)]),this[_0x25c0b4(0x1da)][_0x25c0b4(0x1b6)]([this[_0x25c0b4(0x1ea)],this[_0x25c0b4(0x1bc)],this[_0x25c0b4(0x1cc)],this[_0x25c0b4(0x1a7)]]);}[_0x225345(0x1e5)](){const _0x77edad=_0x225345;super[_0x77edad(0x1e5)](),this[_0x77edad(0x1bc)][_0x77edad(0x1e5)](),this[_0x77edad(0x1ea)][_0x77edad(0x1e5)]();}[_0x225345(0x1e8)](){const _0x27661e=_0x225345;this[_0x27661e(0x1aa)][_0x27661e(0x1dd)]();}[_0x225345(0x1ec)](){const _0x936aef=_0x225345;this[_0x936aef(0x1aa)][_0x936aef(0x1ec)]();}async[_0x225345(0x1b8)](_0x50efcc){const _0x39a44f=_0x225345;_0x50efcc?.[_0x39a44f(0x1f6)]||this[_0x39a44f(0x1ce)](),await this[_0x39a44f(0x1f1)][_0x39a44f(0x1d7)](_0x50efcc);}[_0x225345(0x1c7)](_0x2d53fc){const _0x36d568=_0x225345;this[_0x36d568(0x1c1)]=_0x2d53fc;}[_0x225345(0x1be)](_0x25c33f){const _0x25571b=_0x225345;super[_0x25571b(0x1be)](_0x25c33f),this[_0x25571b(0x1dc)][_0x25571b(0x1de)](this[_0x25571b(0x1d9)])||this[_0x25571b(0x1dc)][_0x25571b(0x1cd)](this[_0x25571b(0x1d9)],0x0);}[_0x225345(0x1ce)](){const _0x4040e3=_0x225345;this[_0x4040e3(0x1e1)]&&(super[_0x4040e3(0x1ce)](),this[_0x4040e3(0x1b5)](!0x0));}[_0x225345(0x1b9)](_0x328874){const _0x2edc1e=_0x225345;super[_0x2edc1e(0x1b9)](_0x328874),this[_0x2edc1e(0x1b5)](!0x1);}[_0x225345(0x1d1)](_0x7e2224){const _0x1e6a0d=_0x225345;this[_0x1e6a0d(0x1ea)][_0x1e6a0d(0x1d0)]=this[_0x1e6a0d(0x1bc)][_0x1e6a0d(0x1d0)]=_0x7e2224;}[_0x225345(0x1b5)](_0x1f9cb4){const _0x515be6=_0x225345;this[_0x515be6(0x1cc)][_0x515be6(0x1f8)]=_0x1f9cb4;}[_0x225345(0x1b0)]({showApplyButton:_0x5cdf32,showSuggestButton:_0x435eae}){const _0x5ac8d8=_0x225345;_0x5cdf32=_0x5cdf32&&!this[_0x5ac8d8(0x1d4)]&&this[_0x5ac8d8(0x1e7)][_0x5ac8d8(0x1d5)][_0x5ac8d8(0x1d2)](_0x5ac8d8(0x1ee)),_0x435eae=_0x435eae&&this[_0x5ac8d8(0x1e7)][_0x5ac8d8(0x1d5)][_0x5ac8d8(0x1d2)](_0x5ac8d8(0x1cf)),this[_0x5ac8d8(0x1cc)][_0x5ac8d8(0x1bb)]({'showApplyButton':_0x5cdf32,'showSuggestButton':_0x435eae});}[_0x225345(0x1bd)](){const _0x1b04ca=_0x225345,_0x20deb2=new _0x2b2d8a(this[_0x1b04ca(0x1c3)]);return _0x20deb2[_0x1b04ca(0x1ed)]({'icon':_0x19df17,'label':_0x44fc55(this[_0x1b04ca(0x1c3)],_0x1b04ca(0x1e0)),'isVisible':!0x0}),_0x20deb2['on'](_0x1b04ca(0x1df),()=>{const _0x3b8a65=_0x1b04ca;this[_0x3b8a65(0x1db)](_0x3b8a65(0x1b1));}),_0x20deb2;}[_0x225345(0x1bf)](){const _0x4db254=_0x225345,_0x51152e=new _0x2b2d8a(this[_0x4db254(0x1c3)]);return _0x51152e[_0x4db254(0x1ed)]({'icon':_0x591837,'label':_0x44fc55(this[_0x4db254(0x1c3)],_0x4db254(0x1e4)),'isVisible':!0x0}),_0x51152e['on'](_0x4db254(0x1df),()=>{const _0x56a8ec=_0x4db254;this[_0x56a8ec(0x1db)](_0x56a8ec(0x1c0));}),_0x51152e;}}class ms extends _0x3aa276{constructor(_0x36d207,_0x50ded2){const _0x5049dc=_0x225345;super(_0x36d207),this[_0x5049dc(0x1a9)]({'tag':_0x5049dc(0x1e9),'attributes':{'class':[_0x5049dc(0x1b3)]},'children':_0x50ded2});}}
23
+ const _0x3b614a=_0x63e9;(function(_0x4e7694,_0x362ba9){const _0x379956=_0x63e9,_0x58102a=_0x4e7694();while(!![]){try{const _0x4fdd6a=-parseInt(_0x379956(0x1d7))/0x1*(-parseInt(_0x379956(0x1bd))/0x2)+parseInt(_0x379956(0x1c3))/0x3*(parseInt(_0x379956(0x1b0))/0x4)+parseInt(_0x379956(0x1be))/0x5*(-parseInt(_0x379956(0x1b7))/0x6)+-parseInt(_0x379956(0x1e8))/0x7+-parseInt(_0x379956(0x1c6))/0x8*(parseInt(_0x379956(0x1a1))/0x9)+parseInt(_0x379956(0x1c9))/0xa*(-parseInt(_0x379956(0x1d8))/0xb)+parseInt(_0x379956(0x1b9))/0xc;if(_0x4fdd6a===_0x362ba9)break;else _0x58102a['push'](_0x58102a['shift']());}catch(_0x5dde1c){_0x58102a['push'](_0x58102a['shift']());}}}(_0x58f8,0xa920e));function _0x58f8(){const _0x53be02=['_isErrorVisible','toggleRotatorButtonsVisibility','ck-ai-chat-balloon__toolbar-container','availableActions','rejectSuggestion','update','delegate','showBlockingError','_miniToolbarView','isTrackChangesOn','AI_BALLOON_NEXT_LABEL','toggleShowChanges','_keystrokes','11azTTnA','4705426BZCEhu','togglePartToolbarEnabled','_stateView','showError','applySuggestion','isEnabled','_config','element','addMany','focus','setButtonsVisibility','ck-ai-chat-balloon-main_state_','keepErrors','children','focusCycler','showPrevious','4213916LabxYi','set','_partToolbarView','_createPreviousButtonView','setTemplate','_toolbarContainerView','includes','focusFirst','bind','isShowChangesOn','_createNextButtonView','toggleSuggestionDisplayMode','showNext','execute','listenTo','9611469IoMpvg','nextButtonView','_togglePartToolbarButtonsVisibility','render','add','hideError','insertSuggestion','pending','tab','change:_state','destroy','updateContent','focusLast','_streamableContentView','has','772GHnYsN','isVisible','_focusTracker','_focusables','bindTemplate','full','change:isTrackChangesOn','6MBoWdZ','_errorView','32267088TmYjZF','locale','previousButtonView','_state','192802fylGxF','3266465AtRgBZ','div','setState','showDiff','AI_BALLOON_PREVIOUS_LABEL','1899uMnXlH','createCollection','fire','8vcYkQY','ck-ai-chat-balloon-main','shift\x20+\x20tab','20JrwMHY'];_0x58f8=function(){return _0x53be02;};return _0x58f8();}import{FocusTracker as _0x39ae7f,KeystrokeHandler as _0x51a9b9}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1c5774}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x57ddf4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';function _0x63e9(_0x5a7048,_0x3a52f7){const _0x58f8e9=_0x58f8();return _0x63e9=function(_0x63e90b,_0x2b5082){_0x63e90b=_0x63e90b-0x19d;let _0x291e06=_0x58f8e9[_0x63e90b];return _0x291e06;},_0x63e9(_0x5a7048,_0x3a52f7);}import{AIMiniToolbarView as _0x2b68b9}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x580bfc}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3ad311,FocusCycler as _0x139405,View as _0x447603}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0xb860d3}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x3db842,IconChevronUp as _0x13b208}from'ckeditor5/src/icons.js';import{getTranslation as _0x1d39eb}from'../../aicore/utils/common-translations.js';export class AIChatBalloonView extends _0x580bfc{[_0x3b614a(0x1e5)];[_0x3b614a(0x1a2)];[_0x3b614a(0x1bb)];[_0x3b614a(0x1e6)];[_0x3b614a(0x1b3)];[_0x3b614a(0x1b2)];[_0x3b614a(0x1d6)];[_0x3b614a(0x1de)];[_0x3b614a(0x1ae)];[_0x3b614a(0x1ed)];[_0x3b614a(0x1ea)];[_0x3b614a(0x1da)];[_0x3b614a(0x1d2)];constructor(_0x502fc9,_0x7b12d1){const _0x1c4065=_0x3b614a;super(_0x502fc9);const _0x2b3f95=this[_0x1c4065(0x1b4)];this[_0x1c4065(0x1e9)](_0x1c4065(0x1c1),!0x1),this[_0x1c4065(0x1e9)](_0x1c4065(0x1bc),_0x1c4065(0x1a8)),this[_0x1c4065(0x1b2)]=new _0x39ae7f(),this[_0x1c4065(0x1d6)]=new _0x51a9b9(),this[_0x1c4065(0x1b3)]=this[_0x1c4065(0x1c4)](),this[_0x1c4065(0x1e6)]=new _0x139405({'focusables':this[_0x1c4065(0x1b3)],'focusTracker':this[_0x1c4065(0x1b2)],'keystrokeHandler':this[_0x1c4065(0x1d6)],'actions':{'focusPrevious':_0x1c4065(0x1c8),'focusNext':_0x1c4065(0x1a9)}}),this[_0x1c4065(0x1de)]=_0x7b12d1,this[_0x1c4065(0x1a2)]=this[_0x1c4065(0x1f2)](),this[_0x1c4065(0x1bb)]=this[_0x1c4065(0x1eb)](),this[_0x1c4065(0x1ae)]=new _0x1c5774(_0x502fc9),this[_0x1c4065(0x1ea)]=new _0x57ddf4(_0x502fc9,_0x7b12d1[_0x1c4065(0x1cd)]),this[_0x1c4065(0x1ea)][_0x1c4065(0x1d0)](_0x1c4065(0x1dc),_0x1c4065(0x1a7),_0x1c4065(0x1ce))['to'](this),this[_0x1c4065(0x1a3)](_0x7b12d1),this[_0x1c4065(0x1da)]=new _0xb860d3(_0x502fc9),this[_0x1c4065(0x1da)][_0x1c4065(0x1b1)]=!0x1,this[_0x1c4065(0x1d2)]=new _0x2b68b9(_0x502fc9,{'showChanges':_0x1c4065(0x1b5)}),this[_0x1c4065(0x1d2)][_0x1c4065(0x1f0)](_0x1c4065(0x1f1))['to'](this,_0x1c4065(0x1c1)),this[_0x1c4065(0x1d2)]['on'](_0x1c4065(0x1d5),()=>{const _0x406942=_0x1c4065;this[_0x406942(0x1c5)](_0x406942(0x19d));}),this[_0x1c4065(0x1ed)]=new fs(_0x502fc9,[this[_0x1c4065(0x1ea)],this[_0x1c4065(0x1da)],this[_0x1c4065(0x1d2)]]),this[_0x1c4065(0x1e5)]=this[_0x1c4065(0x1c4)]([this[_0x1c4065(0x1ae)],this[_0x1c4065(0x1ed)]]),this['on'](_0x1c4065(0x1aa),(_0x35e220,_0x4ceedc,_0x1577f5,_0x40f50d)=>{const _0x3fc7a7=_0x1c4065;let _0x526324,_0x29a6b6;_0x3fc7a7(0x1a8)===_0x40f50d?(_0x526324=this[_0x3fc7a7(0x1ea)],_0x29a6b6=this[_0x3fc7a7(0x1da)]):(_0x526324=this[_0x3fc7a7(0x1da)],_0x29a6b6=this[_0x3fc7a7(0x1ea)]),this[_0x3fc7a7(0x1da)][_0x3fc7a7(0x1c0)](_0x1577f5),_0x526324[_0x3fc7a7(0x1b1)]=!0x1,_0x29a6b6[_0x3fc7a7(0x1b1)]=!0x0;}),this[_0x1c4065(0x1ec)]({'tag':_0x1c4065(0x1bf),'attributes':{'class':['ck',_0x1c4065(0x1c7),_0x2b3f95['to'](_0x1c4065(0x1bc),_0x94e4ec=>_0x1c4065(0x1e3)+_0x94e4ec)]},'children':this[_0x1c4065(0x1e5)]}),this['on'](_0x1c4065(0x1b6),()=>{const _0x218b66=_0x1c4065;this[_0x218b66(0x1a3)](_0x7b12d1);});}[_0x3b614a(0x1a4)](){const _0x1c4fb7=_0x3b614a;super[_0x1c4fb7(0x1a4)](),this[_0x1c4fb7(0x1a2)][_0x1c4fb7(0x1a4)](),this[_0x1c4fb7(0x1bb)][_0x1c4fb7(0x1a4)](),this[_0x1c4fb7(0x1b2)][_0x1c4fb7(0x1a5)](this[_0x1c4fb7(0x1df)]),this[_0x1c4fb7(0x1b2)][_0x1c4fb7(0x1a5)](this[_0x1c4fb7(0x1a2)]),this[_0x1c4fb7(0x1b2)][_0x1c4fb7(0x1a5)](this[_0x1c4fb7(0x1bb)]),this[_0x1c4fb7(0x1b2)][_0x1c4fb7(0x1a5)](this[_0x1c4fb7(0x1d2)]),this[_0x1c4fb7(0x1b2)][_0x1c4fb7(0x1a5)](this[_0x1c4fb7(0x1ea)]),this[_0x1c4fb7(0x1d6)][_0x1c4fb7(0x1a0)](this[_0x1c4fb7(0x1df)]),this[_0x1c4fb7(0x1d6)][_0x1c4fb7(0x1a0)](this[_0x1c4fb7(0x1a2)][_0x1c4fb7(0x1df)]),this[_0x1c4fb7(0x1d6)][_0x1c4fb7(0x1a0)](this[_0x1c4fb7(0x1bb)][_0x1c4fb7(0x1df)]),this[_0x1c4fb7(0x1b3)][_0x1c4fb7(0x1e0)]([this[_0x1c4fb7(0x1a2)],this[_0x1c4fb7(0x1bb)],this[_0x1c4fb7(0x1ea)],this[_0x1c4fb7(0x1d2)]]);}[_0x3b614a(0x1ab)](){const _0x5d4ba5=_0x3b614a;super[_0x5d4ba5(0x1ab)](),this[_0x5d4ba5(0x1bb)][_0x5d4ba5(0x1ab)](),this[_0x5d4ba5(0x1a2)][_0x5d4ba5(0x1ab)]();}[_0x3b614a(0x1e1)](){const _0x4c3547=_0x3b614a;this[_0x4c3547(0x1e6)][_0x4c3547(0x1ef)]();}[_0x3b614a(0x1ad)](){const _0x4caa53=_0x3b614a;this[_0x4caa53(0x1e6)][_0x4caa53(0x1ad)]();}async[_0x3b614a(0x1ac)](_0x2d2e7d){const _0x24d3ab=_0x3b614a;_0x2d2e7d?.[_0x24d3ab(0x1e4)]||this[_0x24d3ab(0x1a6)](),await this[_0x24d3ab(0x1ae)][_0x24d3ab(0x1cf)](_0x2d2e7d);}[_0x3b614a(0x1c0)](_0xcdd774){const _0x83132d=_0x3b614a;this[_0x83132d(0x1bc)]=_0xcdd774;}[_0x3b614a(0x1db)](_0x2e47dd){const _0x277822=_0x3b614a;super[_0x277822(0x1db)](_0x2e47dd),this[_0x277822(0x1e5)][_0x277822(0x1af)](this[_0x277822(0x1b8)])||this[_0x277822(0x1e5)][_0x277822(0x1a5)](this[_0x277822(0x1b8)],0x0);}[_0x3b614a(0x1a6)](){const _0x43d749=_0x3b614a;this[_0x43d749(0x1ca)]&&(super[_0x43d749(0x1a6)](),this[_0x43d749(0x1d9)](!0x0));}[_0x3b614a(0x1d1)](_0x598577){const _0x31016c=_0x3b614a;super[_0x31016c(0x1d1)](_0x598577),this[_0x31016c(0x1d9)](!0x1);}[_0x3b614a(0x1cb)](_0x127087){const _0x449ed6=_0x3b614a;this[_0x449ed6(0x1a2)][_0x449ed6(0x1b1)]=this[_0x449ed6(0x1bb)][_0x449ed6(0x1b1)]=_0x127087;}[_0x3b614a(0x1d9)](_0x16ca8e){const _0x479d87=_0x3b614a;this[_0x479d87(0x1ea)][_0x479d87(0x1dd)]=_0x16ca8e;}[_0x3b614a(0x1a3)]({showApplyButton:_0x351014,showSuggestButton:_0x4d3ed7}){const _0x57a392=_0x3b614a;_0x351014=_0x351014&&!this[_0x57a392(0x1d3)]&&this[_0x57a392(0x1de)][_0x57a392(0x1cd)][_0x57a392(0x1ee)](_0x57a392(0x1dc)),_0x4d3ed7=_0x4d3ed7&&this[_0x57a392(0x1de)][_0x57a392(0x1cd)][_0x57a392(0x1ee)](_0x57a392(0x1a7)),this[_0x57a392(0x1ea)][_0x57a392(0x1e2)]({'showApplyButton':_0x351014,'showSuggestButton':_0x4d3ed7});}[_0x3b614a(0x1f2)](){const _0x28d11e=_0x3b614a,_0x2a7b7d=new _0x3ad311(this[_0x28d11e(0x1ba)]);return _0x2a7b7d[_0x28d11e(0x1e9)]({'icon':_0x3db842,'label':_0x1d39eb(this[_0x28d11e(0x1ba)],_0x28d11e(0x1d4)),'isVisible':!0x0}),_0x2a7b7d['on'](_0x28d11e(0x19f),()=>{const _0x4e8d73=_0x28d11e;this[_0x4e8d73(0x1c5)](_0x4e8d73(0x19e));}),_0x2a7b7d;}[_0x3b614a(0x1eb)](){const _0x299c6a=_0x3b614a,_0x326f5e=new _0x3ad311(this[_0x299c6a(0x1ba)]);return _0x326f5e[_0x299c6a(0x1e9)]({'icon':_0x13b208,'label':_0x1d39eb(this[_0x299c6a(0x1ba)],_0x299c6a(0x1c2)),'isVisible':!0x0}),_0x326f5e['on'](_0x299c6a(0x19f),()=>{const _0x175bd5=_0x299c6a;this[_0x175bd5(0x1c5)](_0x175bd5(0x1e7));}),_0x326f5e;}}class fs extends _0x447603{constructor(_0x592dd9,_0x2ae3e9){const _0x2dc2aa=_0x3b614a;super(_0x592dd9),this[_0x2dc2aa(0x1ec)]({'tag':_0x2dc2aa(0x1bf),'attributes':{'class':[_0x2dc2aa(0x1cc)]},'children':_0x2ae3e9});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2602ce=_0x2fef;(function(_0x3d57ce,_0x1777b2){const _0x334a76=_0x2fef,_0x1c5502=_0x3d57ce();while(!![]){try{const _0x40d0d2=parseInt(_0x334a76(0xa7))/0x1*(parseInt(_0x334a76(0xb3))/0x2)+parseInt(_0x334a76(0xee))/0x3*(parseInt(_0x334a76(0xe3))/0x4)+-parseInt(_0x334a76(0xa2))/0x5*(parseInt(_0x334a76(0xa5))/0x6)+-parseInt(_0x334a76(0xcd))/0x7+parseInt(_0x334a76(0xcf))/0x8*(parseInt(_0x334a76(0xdb))/0x9)+parseInt(_0x334a76(0xf0))/0xa*(parseInt(_0x334a76(0xd0))/0xb)+parseInt(_0x334a76(0xd3))/0xc*(-parseInt(_0x334a76(0xc9))/0xd);if(_0x40d0d2===_0x1777b2)break;else _0x1c5502['push'](_0x1c5502['shift']());}catch(_0x380458){_0x1c5502['push'](_0x1c5502['shift']());}}}(_0x23d0,0x2b089));import{ButtonView as _0x17f21f,clickOutsideHandler as _0x57bde5,View as _0x354600}from'ckeditor5/src/ui.js';function _0x2fef(_0x581870,_0xa7d9d0){const _0x23d0d1=_0x23d0();return _0x2fef=function(_0x2fef23,_0x153d08){_0x2fef23=_0x2fef23-0xa0;let _0x16d9d6=_0x23d0d1[_0x2fef23];return _0x16d9d6;},_0x2fef(_0x581870,_0xa7d9d0);}import{AIChatPromptInputView as _0x5cf48e}from'./controls/aichatpromptinputview.js';function _0x23d0(){const _0x2e2787=['setPlaceholderText','4UKikYd','clearCurrentContextItems','ck-ai-chat-controls','setAddContextOptions','queryView','reset','_contextPanelView','setTemplate','_shouldRestorePromptInputFocus','bodyCollection','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','1000539sknUks','setModelList','7690LCLsjK','startConversation','clearPendingContextUI','ck-ai-chat-controls-disabled','value','execute','635NNYvZB','setConversationContext','div','2346YKhUSk','resetMessageInput','1879QJyfhc','ck-hidden','populateSourceResourceBalloon','setReasoning','_createPromptInputView','isLoading','updateResourceState','ck-ai-chat-controls__start-new-chat-button','setModel','setPromptInputValue','focusPromptInput','_createModelUnavailableMessageView','54BCbrbf','_promptInputView','toggleReasoning','bindTemplate','setContextItemLoading','_createLoaderView','form','contextResourcesSearchInputVisibleFrom','isDisabled','_handlePromptInputFocus','_createPromptCapabilitiesView','focus','disableModelSelector','isModelAvailable','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createContextPanelView','low','change:isLoading','clearConversationContextItems','element','_promptCapabilitiesView','removeContextItem','13lyUMOE','fieldView','abortPromptStream','ck-ai-chat-controls-model-unavailable-message','1340269BUkTiN','setWebSearch','8pWtvFl','3982NuCwPF','closeSourceResourceBalloon','selectModel','6897984grBkYV','enableModelSelector','_modelUnavailableMessageView','toggleWebSearch','delegate','setInputPlaceholder','addContextButtonView','setIsUploadInProgress','2966373nAkjaq','locale','set','addContextItem','clearConversationContextUI','_loaderView','sendUserMessage'];_0x23d0=function(){return _0x2e2787;};return _0x23d0();}import{AIChatPromptCapabilitiesView as _0x4311c7}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x6529c0,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4b6759}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x40d0e5}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1f14c7}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x354600{[_0x2602ce(0xe9)];[_0x2602ce(0xb4)];[_0x2602ce(0xc7)];[_0x2602ce(0xe0)];[_0x2602ce(0xd5)];[_0x2602ce(0xeb)];constructor(_0x571bbb,_0x3cda2f){const _0x9d91c5=_0x2602ce;super(_0x571bbb),this[_0x9d91c5(0xe9)]=this[_0x9d91c5(0xc2)](_0x571bbb,{'bodyCollection':_0x3cda2f[_0x9d91c5(0xec)],'searchInputVisibleFrom':_0x3cda2f[_0x9d91c5(0xba)]}),this[_0x9d91c5(0xb4)]=this[_0x9d91c5(0xab)](_0x571bbb),this[_0x9d91c5(0xc7)]=this[_0x9d91c5(0xbd)](_0x571bbb),this[_0x9d91c5(0xe0)]=this[_0x9d91c5(0xb8)](_0x571bbb),this[_0x9d91c5(0xd5)]=this[_0x9d91c5(0xb2)](_0x571bbb),this[_0x9d91c5(0xeb)]=!0x1,this[_0x9d91c5(0xb4)][_0x9d91c5(0xd7)](_0x9d91c5(0xe1))['to'](this),this[_0x9d91c5(0xe0)][_0x9d91c5(0xd7)](_0x9d91c5(0xcb))['to'](this),this[_0x9d91c5(0xc7)][_0x9d91c5(0xd7)](_0x9d91c5(0xd6))['to'](this),this[_0x9d91c5(0xc7)][_0x9d91c5(0xd7)](_0x9d91c5(0xb5))['to'](this),this[_0x9d91c5(0xc7)][_0x9d91c5(0xd7)](_0x9d91c5(0xd2))['to'](this),this[_0x9d91c5(0xe9)][_0x9d91c5(0xd7)](..._0x4b6759)['to'](this),this[_0x9d91c5(0xdd)](_0x9d91c5(0xc0),!0x0),this[_0x9d91c5(0xdd)](_0x9d91c5(0xbb),!0x1);const _0x3b92a7=this[_0x9d91c5(0xb6)];this[_0x9d91c5(0xea)]({'tag':_0x9d91c5(0xb9),'attributes':{'class':['ck',_0x9d91c5(0xe5),_0x3b92a7['if'](_0x9d91c5(0xbb),_0x9d91c5(0xf3))]},'children':[{'tag':_0x9d91c5(0xa4),'attributes':{'class':[_0x3b92a7['if'](_0x9d91c5(0xac),_0x9d91c5(0xa8),_0x390104=>_0x390104||!this[_0x9d91c5(0xc0)]),_0x3b92a7['if'](_0x9d91c5(0xc0),_0x9d91c5(0xa8),_0xb41e11=>!_0xb41e11||this[_0x9d91c5(0xac)])]},'children':[this[_0x9d91c5(0xe9)],this[_0x9d91c5(0xb4)],this[_0x9d91c5(0xc7)]]},{'tag':_0x9d91c5(0xa4),'attributes':{'class':[_0x3b92a7['if'](_0x9d91c5(0xac),_0x9d91c5(0xa8),_0x242d9d=>!_0x242d9d)]},'children':[this[_0x9d91c5(0xe0)]]},{'tag':_0x9d91c5(0xa4),'attributes':{'class':[_0x3b92a7['if'](_0x9d91c5(0xc0),_0x9d91c5(0xa8),_0x518c8a=>_0x518c8a)]},'children':[this[_0x9d91c5(0xd5)]]}]}),_0x57bde5({'emitter':this[_0x9d91c5(0xb4)],'activator':()=>this[_0x9d91c5(0xac)],'contextElements':()=>[this[_0x9d91c5(0xc6)]],'callback':()=>{const _0x15b4ed=_0x9d91c5;this[_0x15b4ed(0xeb)]=!0x1;}}),this['on'](_0x9d91c5(0xc4),this[_0x9d91c5(0xbc)],{'priority':_0x9d91c5(0xc3)});}[_0x2602ce(0xc2)](_0x16a608,_0x1cff54){return new _0x6529c0(_0x16a608,_0x1cff54);}[_0x2602ce(0xab)](_0x501e53){const _0x49f908=_0x2602ce;return new _0x5cf48e(_0x501e53,this[_0x49f908(0xe9)][_0x49f908(0xd9)]);}[_0x2602ce(0xbd)](_0x3c9ebd){return new _0x4311c7(_0x3c9ebd);}[_0x2602ce(0xb8)](_0x5e0259){return new _0x40d0e5(_0x5e0259);}[_0x2602ce(0xb2)](_0x24578c){const _0x120c94=_0x2602ce,_0x29c9ec=new As(_0x24578c);return _0x29c9ec[_0x120c94(0xd7)](_0x120c94(0xf1))['to'](this),_0x29c9ec;}[_0x2602ce(0xbc)](_0x1893b7,_0x5ac39a,_0x140d25){const _0xf2cd55=_0x2602ce;_0x140d25?this[_0xf2cd55(0xeb)]=!0x0:this[_0xf2cd55(0xeb)]&&this[_0xf2cd55(0xb4)][_0xf2cd55(0xbe)]();}[_0x2602ce(0xde)](_0x37b751,_0x568d6d){const _0x43b04f=_0x2602ce;this[_0x43b04f(0xe9)][_0x43b04f(0xde)](_0x37b751,_0x568d6d);}[_0x2602ce(0xc8)](_0x2886b0){const _0x9c5e37=_0x2602ce;this[_0x9c5e37(0xe9)][_0x9c5e37(0xc8)](_0x2886b0);}[_0x2602ce(0xb7)](_0x42de3d,_0x59748f){const _0x1d5e55=_0x2602ce;this[_0x1d5e55(0xe9)][_0x1d5e55(0xb7)](_0x42de3d,_0x59748f);}[_0x2602ce(0xda)](_0x246dc0){const _0x1cce87=_0x2602ce;this[_0x1cce87(0xb4)][_0x1cce87(0xda)](_0x246dc0);}[_0x2602ce(0xa3)](_0x73ad26){const _0x16f81e=_0x2602ce;this[_0x16f81e(0xe9)][_0x16f81e(0xa3)](_0x73ad26);}[_0x2602ce(0xf2)](){const _0x4e2fc4=_0x2602ce;this[_0x4e2fc4(0xe9)][_0x4e2fc4(0xe4)]();}[_0x2602ce(0xdf)](){const _0x4fb710=_0x2602ce;this[_0x4fb710(0xe9)][_0x4fb710(0xc5)]();}[_0x2602ce(0xad)](_0x369d2d,_0x555b4c,_0x2d0e79){const _0x5d259b=_0x2602ce;this[_0x5d259b(0xe9)][_0x5d259b(0xad)](_0x369d2d,_0x555b4c,_0x2d0e79);}[_0x2602ce(0xce)](_0x2bd88a){const _0x2453e1=_0x2602ce;this[_0x2453e1(0xc7)][_0x2453e1(0xce)](_0x2bd88a);}[_0x2602ce(0xaa)](_0x4c8a2f){const _0x404ee0=_0x2602ce;this[_0x404ee0(0xc7)][_0x404ee0(0xaa)](_0x4c8a2f);}[_0x2602ce(0xa6)](){const _0xf84b33=_0x2602ce;this[_0xf84b33(0xb4)][_0xf84b33(0xe8)]();}[_0x2602ce(0xe6)](_0x1d656b){const _0x52864d=_0x2602ce;this[_0x52864d(0xe9)][_0x52864d(0xe6)](_0x1d656b);}[_0x2602ce(0xd8)](_0x35faa3){const _0x4f375d=_0x2602ce;this[_0x4f375d(0xb4)][_0x4f375d(0xe2)](_0x35faa3);}[_0x2602ce(0xef)](_0x4b0929,_0x3b890e){const _0x3c8626=_0x2602ce;this[_0x3c8626(0xc7)][_0x3c8626(0xef)](_0x4b0929,_0x3b890e);}[_0x2602ce(0xaf)](_0x74eba3){const _0x1572af=_0x2602ce;_0x74eba3?(this[_0x1572af(0xc0)]=!0x0,this[_0x1572af(0xc7)][_0x1572af(0xaf)](_0x74eba3)):this[_0x1572af(0xc0)]=!0x1;}[_0x2602ce(0xd4)](){const _0x12fb27=_0x2602ce;this[_0x12fb27(0xc7)][_0x12fb27(0xd4)]();}[_0x2602ce(0xbf)](_0x352c6a){const _0x2d888e=_0x2602ce;this[_0x2d888e(0xc7)][_0x2d888e(0xbf)](_0x352c6a);}[_0x2602ce(0xa9)](_0x1ae729,_0x1619e0,_0x54ef38,_0x59f7d2){const _0x45872d=_0x2602ce;this[_0x45872d(0xe9)][_0x45872d(0xa9)](_0x1ae729,_0x1619e0,_0x54ef38,_0x59f7d2);}[_0x2602ce(0xd1)](_0x2934a7){const _0x1c051f=_0x2602ce;this[_0x1c051f(0xe9)][_0x1c051f(0xd1)](_0x2934a7);}[_0x2602ce(0xb1)](_0x4336be=!0x1){const _0x202294=_0x2602ce;this[_0x202294(0xb4)][_0x202294(0xbe)](_0x4336be);}[_0x2602ce(0xb0)](_0x10ca81){const _0x5582ee=_0x2602ce;this[_0x5582ee(0xb4)][_0x5582ee(0xe7)][_0x5582ee(0xca)][_0x5582ee(0xe8)](),this[_0x5582ee(0xb4)][_0x5582ee(0xe7)][_0x5582ee(0xca)][_0x5582ee(0xa0)]=_0x10ca81;}}class As extends _0x354600{constructor(_0x5e874a){const _0x183820=_0x2602ce;super(_0x5e874a);const _0x443dc1=new _0x17f21f(_0x5e874a);_0x443dc1[_0x183820(0xdd)]({'label':_0x1f14c7(this[_0x183820(0xdc)],_0x183820(0xc1)),'withText':!0x0,'class':[_0x183820(0xae)],'tooltip':''}),_0x443dc1[_0x183820(0xd7)](_0x183820(0xa1))['to'](this,_0x183820(0xf1)),this[_0x183820(0xea)]({'tag':_0x183820(0xa4),'attributes':{'class':['ck',_0x183820(0xcc)]},'children':[{'tag':'p','children':[{'text':_0x1f14c7(this[_0x183820(0xdc)],_0x183820(0xed))+'\x20'},_0x443dc1]}]});}}
23
+ const _0x608dd3=_0x2704;function _0x2704(_0x3d19c3,_0x98bc07){const _0x315d2f=_0x315d();return _0x2704=function(_0x270447,_0x4945e5){_0x270447=_0x270447-0x124;let _0x1a16cf=_0x315d2f[_0x270447];return _0x1a16cf;},_0x2704(_0x3d19c3,_0x98bc07);}(function(_0x403688,_0x338e26){const _0x3fa75a=_0x2704,_0x24dfa2=_0x403688();while(!![]){try{const _0x42987c=-parseInt(_0x3fa75a(0x158))/0x1+-parseInt(_0x3fa75a(0x159))/0x2+-parseInt(_0x3fa75a(0x13f))/0x3*(parseInt(_0x3fa75a(0x172))/0x4)+-parseInt(_0x3fa75a(0x12f))/0x5*(-parseInt(_0x3fa75a(0x134))/0x6)+-parseInt(_0x3fa75a(0x138))/0x7*(parseInt(_0x3fa75a(0x16f))/0x8)+-parseInt(_0x3fa75a(0x131))/0x9*(parseInt(_0x3fa75a(0x139))/0xa)+parseInt(_0x3fa75a(0x16e))/0xb*(parseInt(_0x3fa75a(0x163))/0xc);if(_0x42987c===_0x338e26)break;else _0x24dfa2['push'](_0x24dfa2['shift']());}catch(_0x16e312){_0x24dfa2['push'](_0x24dfa2['shift']());}}}(_0x315d,0xd8222));import{ButtonView as _0x5dc691,clickOutsideHandler as _0x1dbaad,View as _0x516f49}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x455b36}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x32a15e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x622fb5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x35a764}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x22b06d}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4c9e3e}from'../../aicore/utils/common-translations.js';function _0x315d(){const _0x2f7d30=['1170472tWkwMk','setReasoning','selectModel','setIsUploadInProgress','_createPromptCapabilitiesView','ck-ai-chat-controls-model-unavailable-message','closeSourceResourceBalloon','clearConversationContextItems','addContextItem','setTemplate','12kqDTvH','isModelAvailable','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_contextPanelView','ck-ai-chat-controls-disabled','locale','execute','setPlaceholderText','startConversation','_modelUnavailableMessageView','removeContextItem','46568489HgtGpi','1588568abnaWI','resetMessageInput','setConversationContext','4ArraAL','value','_promptInputView','setModelList','bindTemplate','sendUserMessage','setAddContextOptions','setPromptInputValue','_shouldRestorePromptInputFocus','set','addContextButtonView','ck-ai-chat-controls','setModel','delegate','isLoading','contextResourcesSearchInputVisibleFrom','53815PtvZzY','focusPromptInput','144IZzmZG','div','clearConversationContextUI','402BJrjcK','queryView','setInputPlaceholder','_loaderView','35aOecFt','608240fSNTBp','updateResourceState','focus','reset','bodyCollection','_promptCapabilitiesView','929886UiotvA','isDisabled','_createLoaderView','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','ck-ai-chat-controls__start-new-chat-button','abortPromptStream','_createContextPanelView','_createModelUnavailableMessageView','form','_createPromptInputView','populateSourceResourceBalloon','ck-hidden','toggleWebSearch','low','clearCurrentContextItems','setContextItemLoading','setWebSearch','clearPendingContextUI','toggleReasoning','fieldView','change:isLoading','element','disableModelSelector','_handlePromptInputFocus','1208101ZiejqV'];_0x315d=function(){return _0x2f7d30;};return _0x315d();}export class AIChatControlsView extends _0x516f49{[_0x608dd3(0x166)];[_0x608dd3(0x174)];[_0x608dd3(0x13e)];[_0x608dd3(0x137)];[_0x608dd3(0x16c)];[_0x608dd3(0x127)];constructor(_0xfb6f37,_0x5def11){const _0x46fe79=_0x608dd3;super(_0xfb6f37),this[_0x46fe79(0x166)]=this[_0x46fe79(0x146)](_0xfb6f37,{'bodyCollection':_0x5def11[_0x46fe79(0x13d)],'searchInputVisibleFrom':_0x5def11[_0x46fe79(0x12e)]}),this[_0x46fe79(0x174)]=this[_0x46fe79(0x149)](_0xfb6f37),this[_0x46fe79(0x13e)]=this[_0x46fe79(0x15d)](_0xfb6f37),this[_0x46fe79(0x137)]=this[_0x46fe79(0x141)](_0xfb6f37),this[_0x46fe79(0x16c)]=this[_0x46fe79(0x147)](_0xfb6f37),this[_0x46fe79(0x127)]=!0x1,this[_0x46fe79(0x174)][_0x46fe79(0x12c)](_0x46fe79(0x124))['to'](this),this[_0x46fe79(0x137)][_0x46fe79(0x12c)](_0x46fe79(0x145))['to'](this),this[_0x46fe79(0x13e)][_0x46fe79(0x12c)](_0x46fe79(0x14c))['to'](this),this[_0x46fe79(0x13e)][_0x46fe79(0x12c)](_0x46fe79(0x152))['to'](this),this[_0x46fe79(0x13e)][_0x46fe79(0x12c)](_0x46fe79(0x15b))['to'](this),this[_0x46fe79(0x166)][_0x46fe79(0x12c)](..._0x35a764)['to'](this),this[_0x46fe79(0x128)](_0x46fe79(0x164),!0x0),this[_0x46fe79(0x128)](_0x46fe79(0x140),!0x1);const _0xb13240=this[_0x46fe79(0x176)];this[_0x46fe79(0x162)]({'tag':_0x46fe79(0x148),'attributes':{'class':['ck',_0x46fe79(0x12a),_0xb13240['if'](_0x46fe79(0x140),_0x46fe79(0x167))]},'children':[{'tag':_0x46fe79(0x132),'attributes':{'class':[_0xb13240['if'](_0x46fe79(0x12d),_0x46fe79(0x14b),_0x37d3ef=>_0x37d3ef||!this[_0x46fe79(0x164)]),_0xb13240['if'](_0x46fe79(0x164),_0x46fe79(0x14b),_0x5f4052=>!_0x5f4052||this[_0x46fe79(0x12d)])]},'children':[this[_0x46fe79(0x166)],this[_0x46fe79(0x174)],this[_0x46fe79(0x13e)]]},{'tag':_0x46fe79(0x132),'attributes':{'class':[_0xb13240['if'](_0x46fe79(0x12d),_0x46fe79(0x14b),_0x204782=>!_0x204782)]},'children':[this[_0x46fe79(0x137)]]},{'tag':_0x46fe79(0x132),'attributes':{'class':[_0xb13240['if'](_0x46fe79(0x164),_0x46fe79(0x14b),_0x42a4e4=>_0x42a4e4)]},'children':[this[_0x46fe79(0x16c)]]}]}),_0x1dbaad({'emitter':this[_0x46fe79(0x174)],'activator':()=>this[_0x46fe79(0x12d)],'contextElements':()=>[this[_0x46fe79(0x155)]],'callback':()=>{const _0x4260a0=_0x46fe79;this[_0x4260a0(0x127)]=!0x1;}}),this['on'](_0x46fe79(0x154),this[_0x46fe79(0x157)],{'priority':_0x46fe79(0x14d)});}[_0x608dd3(0x146)](_0x16f02e,_0x1c8505){return new _0x622fb5(_0x16f02e,_0x1c8505);}[_0x608dd3(0x149)](_0x53103c){const _0x1b9b11=_0x608dd3;return new _0x455b36(_0x53103c,this[_0x1b9b11(0x166)][_0x1b9b11(0x129)]);}[_0x608dd3(0x15d)](_0x3d195d){return new _0x32a15e(_0x3d195d);}[_0x608dd3(0x141)](_0x3319a9){return new _0x22b06d(_0x3319a9);}[_0x608dd3(0x147)](_0x5a544d){const _0xa924aa=_0x608dd3,_0xf7acc9=new Is(_0x5a544d);return _0xf7acc9[_0xa924aa(0x12c)](_0xa924aa(0x16b))['to'](this),_0xf7acc9;}[_0x608dd3(0x157)](_0x5d4d3b,_0x6f7a43,_0x4d4eb9){const _0x471c18=_0x608dd3;_0x4d4eb9?this[_0x471c18(0x127)]=!0x0:this[_0x471c18(0x127)]&&this[_0x471c18(0x174)][_0x471c18(0x13b)]();}[_0x608dd3(0x161)](_0x20a4ff,_0x4da0bf){const _0x375867=_0x608dd3;this[_0x375867(0x166)][_0x375867(0x161)](_0x20a4ff,_0x4da0bf);}[_0x608dd3(0x16d)](_0x2597ba){const _0x10a268=_0x608dd3;this[_0x10a268(0x166)][_0x10a268(0x16d)](_0x2597ba);}[_0x608dd3(0x14f)](_0x2f35c4,_0x44ad6a){const _0xdf0d67=_0x608dd3;this[_0xdf0d67(0x166)][_0xdf0d67(0x14f)](_0x2f35c4,_0x44ad6a);}[_0x608dd3(0x15c)](_0x207b75){const _0x228ae7=_0x608dd3;this[_0x228ae7(0x174)][_0x228ae7(0x15c)](_0x207b75);}[_0x608dd3(0x171)](_0x512db7){const _0x121a4d=_0x608dd3;this[_0x121a4d(0x166)][_0x121a4d(0x171)](_0x512db7);}[_0x608dd3(0x151)](){const _0x2be4a4=_0x608dd3;this[_0x2be4a4(0x166)][_0x2be4a4(0x14e)]();}[_0x608dd3(0x133)](){const _0x343750=_0x608dd3;this[_0x343750(0x166)][_0x343750(0x160)]();}[_0x608dd3(0x13a)](_0x176ecf,_0x13479b,_0x4153ea){const _0xaa692=_0x608dd3;this[_0xaa692(0x166)][_0xaa692(0x13a)](_0x176ecf,_0x13479b,_0x4153ea);}[_0x608dd3(0x150)](_0x5c44b6){const _0x4381aa=_0x608dd3;this[_0x4381aa(0x13e)][_0x4381aa(0x150)](_0x5c44b6);}[_0x608dd3(0x15a)](_0x3f1d96){const _0x35975f=_0x608dd3;this[_0x35975f(0x13e)][_0x35975f(0x15a)](_0x3f1d96);}[_0x608dd3(0x170)](){const _0x190d86=_0x608dd3;this[_0x190d86(0x174)][_0x190d86(0x13c)]();}[_0x608dd3(0x125)](_0x3db03f){const _0x3e3372=_0x608dd3;this[_0x3e3372(0x166)][_0x3e3372(0x125)](_0x3db03f);}[_0x608dd3(0x136)](_0x4e6fd1){const _0x3a9d2c=_0x608dd3;this[_0x3a9d2c(0x174)][_0x3a9d2c(0x16a)](_0x4e6fd1);}[_0x608dd3(0x175)](_0x146791,_0x5445ff){const _0x1cc8ba=_0x608dd3;this[_0x1cc8ba(0x13e)][_0x1cc8ba(0x175)](_0x146791,_0x5445ff);}[_0x608dd3(0x12b)](_0x5b4512){const _0x55325b=_0x608dd3;_0x5b4512?(this[_0x55325b(0x164)]=!0x0,this[_0x55325b(0x13e)][_0x55325b(0x12b)](_0x5b4512)):this[_0x55325b(0x164)]=!0x1;}[_0x608dd3(0x142)](){const _0x4314ed=_0x608dd3;this[_0x4314ed(0x13e)][_0x4314ed(0x142)]();}[_0x608dd3(0x156)](_0x4c3e35){const _0x6a0051=_0x608dd3;this[_0x6a0051(0x13e)][_0x6a0051(0x156)](_0x4c3e35);}[_0x608dd3(0x14a)](_0x534b30,_0x34d0de,_0x142e56,_0x50b734){const _0x3b9efc=_0x608dd3;this[_0x3b9efc(0x166)][_0x3b9efc(0x14a)](_0x534b30,_0x34d0de,_0x142e56,_0x50b734);}[_0x608dd3(0x15f)](_0x5eabfb){const _0x1a62d5=_0x608dd3;this[_0x1a62d5(0x166)][_0x1a62d5(0x15f)](_0x5eabfb);}[_0x608dd3(0x130)](_0x49d99a=!0x1){const _0x188e60=_0x608dd3;this[_0x188e60(0x174)][_0x188e60(0x13b)](_0x49d99a);}[_0x608dd3(0x126)](_0x122771){const _0x1743ae=_0x608dd3;this[_0x1743ae(0x174)][_0x1743ae(0x135)][_0x1743ae(0x153)][_0x1743ae(0x13c)](),this[_0x1743ae(0x174)][_0x1743ae(0x135)][_0x1743ae(0x153)][_0x1743ae(0x173)]=_0x122771;}}class Is extends _0x516f49{constructor(_0x10ce0b){const _0x25a943=_0x608dd3;super(_0x10ce0b);const _0x14637b=new _0x5dc691(_0x10ce0b);_0x14637b[_0x25a943(0x128)]({'label':_0x4c9e3e(this[_0x25a943(0x168)],_0x25a943(0x143)),'withText':!0x0,'class':[_0x25a943(0x144)],'tooltip':''}),_0x14637b[_0x25a943(0x12c)](_0x25a943(0x169))['to'](this,_0x25a943(0x16b)),this[_0x25a943(0x162)]({'tag':_0x25a943(0x132),'attributes':{'class':['ck',_0x25a943(0x15e)]},'children':[{'tag':'p','children':[{'text':_0x4c9e3e(this[_0x25a943(0x168)],_0x25a943(0x165))+'\x20'},_0x14637b]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d0378=_0x4823;(function(_0x4da964,_0x3de3c2){const _0x175a51=_0x4823,_0x1d1e7e=_0x4da964();while(!![]){try{const _0x30b058=-parseInt(_0x175a51(0x1d2))/0x1*(parseInt(_0x175a51(0x1df))/0x2)+-parseInt(_0x175a51(0x1c9))/0x3+-parseInt(_0x175a51(0x204))/0x4+-parseInt(_0x175a51(0x1d5))/0x5*(-parseInt(_0x175a51(0x1c5))/0x6)+-parseInt(_0x175a51(0x1fc))/0x7*(parseInt(_0x175a51(0x1e2))/0x8)+parseInt(_0x175a51(0x214))/0x9*(parseInt(_0x175a51(0x20c))/0xa)+parseInt(_0x175a51(0x1e7))/0xb;if(_0x30b058===_0x3de3c2)break;else _0x1d1e7e['push'](_0x1d1e7e['shift']());}catch(_0x853891){_0x1d1e7e['push'](_0x1d1e7e['shift']());}}}(_0x26a0,0x20dea));import{CKEditorError as _0x22c5dc,logWarning as _0x36ec0b,scrollAncestorsToShowTarget as _0x1672a1}from'ckeditor5/src/utils.js';import{View as _0xdf1b83}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xd601e8}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x39208b}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x587263}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2be195}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x512a05}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x13eb0a}from'./feed/aichatfeedinteractionheaderview.js';function _0x26a0(){const _0x4c2e90=['set','setTemplate','includes','isPending','49066sAdCas','setLoadingMessage','interaction-header','1531048plKCqQ','ai-suggestion-reply','map','setSuggestionPartActive','getPartView','4096873VDNUQF','getItemById','updateSources','stop','updatePartState','ck-ai-chat__feed__items','updateSuggestionPartState','locale','div','span','ck-hidden','forEach','ai-chat-feed-view-item-not-a-reply-item','getItemIds','_createSkeletonLoader','updateWebSources','extendTemplate','delegate','markItemAsDone','user-message','add','7KPsrmC','custom-element','ck-ai-chat__feed','updateContent','updateReplyItem','isLoadingSkeletonVisible','_bodyCollection','scrollManager','8992NpyKsL','ck-ai-chat__loader-text','hasItem','filter','scrollToSuggestion','updateSuggestionItem','ai-chat-feed-view-item-not-found','render','10CfQMdr','clear','bindTemplate','ai-chat-feed-view-item-not-a-suggestion-item','_setupTemplate','element','_createFeedLoader','options','323541CBHqSe','createCollection','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','toggleLoadingSkeleton','bind','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','removeItem','addItem','ai-reply','parentElement','2178MtcQLE','remove','markAsDone','_createLoaderChildren','53349IvRIhC','start','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','children','isVisible','startAutoScroll','isTrackChangesOn','aiFeed','3jNDFli','find','stopAutoScroll','155zGlDzN','ck-ai-chat__loader','destroy','setPartActive','_createTemplateChildren','loadingMessage'];_0x26a0=function(){return _0x4c2e90;};return _0x26a0();}function _0x4823(_0x417b6f,_0x31e3f9){const _0x26a00b=_0x26a0();return _0x4823=function(_0x48237c,_0x3ea7d1){_0x48237c=_0x48237c-0x1be;let _0x10050d=_0x26a00b[_0x48237c];return _0x10050d;},_0x4823(_0x417b6f,_0x31e3f9);}import{ScrollManager as _0x1dd765}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x40a082,SKELETON_DEFINITIONS as _0x27a84f}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2ff4bb}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x4bc6ec}from'./feed/aichatfeedcustomelementview.js';export class AIChatFeedView extends _0xdf1b83{[_0x4d0378(0x1cd)];[_0x4d0378(0x203)];[_0x4d0378(0x202)];constructor(_0x1ea82f,_0x576ee2){const _0x5ade20=_0x4d0378;super(_0x1ea82f),this[_0x5ade20(0x202)]=_0x576ee2,this[_0x5ade20(0x1db)](_0x5ade20(0x1de),!0x1),this[_0x5ade20(0x1db)](_0x5ade20(0x1da),''),this[_0x5ade20(0x1db)](_0x5ade20(0x201),!0x1),this[_0x5ade20(0x1db)](_0x5ade20(0x1d0),!0x1),this[_0x5ade20(0x1cd)]=this[_0x5ade20(0x215)](),this[_0x5ade20(0x1cd)][_0x5ade20(0x1f8)](..._0xd601e8)['to'](this),this[_0x5ade20(0x210)]();}[_0x4d0378(0x20b)](){const _0x571a07=_0x4d0378;super[_0x571a07(0x20b)](),this[_0x571a07(0x203)]=new _0x1dd765(this[_0x571a07(0x211)]);}[_0x4d0378(0x1d7)](){const _0x4dc8ab=_0x4d0378;super[_0x4dc8ab(0x1d7)](),this[_0x4dc8ab(0x203)][_0x4dc8ab(0x1d7)]();}[_0x4d0378(0x20d)](){const _0x2ce834=_0x4d0378;this[_0x2ce834(0x1cd)][_0x2ce834(0x20d)]();}[_0x4d0378(0x1c2)](_0xa86ce6,_0x10e81c){const _0x4f175d=_0x4d0378;let _0xa16648;return _0x4f175d(0x1c3)===_0xa86ce6?_0xa16648=new _0x587263(this[_0x4f175d(0x1ee)],_0x10e81c,this[_0x4f175d(0x202)]):_0x4f175d(0x1e3)===_0xa86ce6?(_0xa16648=new _0x39208b(this[_0x4f175d(0x1ee)],_0x10e81c,this[_0x4f175d(0x202)]),_0xa16648[_0x4f175d(0x1bf)](_0x4f175d(0x1d0))['to'](this)):_0xa16648=_0x4f175d(0x1fa)===_0xa86ce6?new _0x2be195(this[_0x4f175d(0x1ee)],_0x10e81c,this[_0x4f175d(0x202)]):_0x4f175d(0x1e1)===_0xa86ce6?new _0x13eb0a(this[_0x4f175d(0x1ee)],_0x10e81c):_0x4f175d(0x1fd)===_0xa86ce6?new _0x4bc6ec(_0x10e81c):new _0x512a05(_0x10e81c),this[_0x4f175d(0x1cd)][_0x4f175d(0x1fb)](_0xa16648),_0xa16648;}async[_0x4d0378(0x200)]({id:_0x5084b0,parsedContent:_0x3c3a37,renderingStrategy:_0x6a43d2,abortSignal:_0x1de598}){const _0x397b23=_0x4d0378,_0x13e5c7=this[_0x397b23(0x1e8)](_0x5084b0);if(!(_0x13e5c7 instanceof _0x587263))throw new _0x22c5dc(_0x397b23(0x1f3),null,{'itemView':_0x13e5c7,'id':_0x5084b0,'parsedContent':_0x3c3a37});await _0x13e5c7[_0x397b23(0x1ff)]({'parsedContent':_0x3c3a37,'renderingStrategy':_0x6a43d2,'abortSignal':_0x1de598});}async[_0x4d0378(0x1f6)](_0x149a81,_0x5a2f42){const _0x316f0e=_0x4d0378,_0x4402a3=this[_0x316f0e(0x1e8)](_0x149a81);if(_0x4402a3 instanceof _0x39208b)_0x4402a3[_0x316f0e(0x1e9)](_0x5a2f42);else{if(!(_0x4402a3 instanceof _0x587263))throw new _0x22c5dc(_0x316f0e(0x1c0),null,{'itemView':_0x4402a3,'id':_0x149a81,'sources':_0x5a2f42});_0x4402a3[_0x316f0e(0x1e9)](_0x5a2f42);}}async[_0x4d0378(0x209)]({id:_0x64705,parts:_0x55c5c3,renderingStrategy:_0x2893bd,abortSignal:_0x489c33}){const _0x61b0f2=_0x4d0378,_0x404a85=this[_0x61b0f2(0x1e8)](_0x64705);if(!(_0x404a85 instanceof _0x39208b))throw new _0x22c5dc(_0x61b0f2(0x20f),null,{'itemView':_0x404a85,'id':_0x64705,'parts':_0x55c5c3});await _0x404a85[_0x61b0f2(0x1ff)]({'parts':_0x55c5c3,'renderingStrategy':_0x2893bd,'abortSignal':_0x489c33});}[_0x4d0378(0x1ed)]({id:_0x4726d2,index:_0x558d28,state:_0x1898de}){const _0x182d0c=_0x4d0378,_0x2fe151=this[_0x182d0c(0x1e8)](_0x4726d2);if(!(_0x2fe151 instanceof _0x39208b))throw new _0x22c5dc(_0x182d0c(0x20f),this,{'id':_0x4726d2});_0x2fe151[_0x182d0c(0x1eb)](_0x558d28,_0x1898de);}[_0x4d0378(0x1e5)]({id:_0xbdeef6,index:_0x5cd471,isActive:_0x3c2e6a}){const _0x5efaa9=_0x4d0378,_0x200e66=this[_0x5efaa9(0x1e8)](_0xbdeef6);if(!(_0x200e66 instanceof _0x39208b))throw new _0x22c5dc(_0x5efaa9(0x20f),this,{'id':_0xbdeef6});this[_0x5efaa9(0x1cd)][_0x5efaa9(0x207)](_0x48624b=>_0x48624b instanceof _0x39208b)[_0x5efaa9(0x1f2)](_0x5dea4b=>{const _0x37f38c=_0x5efaa9;_0x5dea4b[_0x37f38c(0x1d8)](!0x1);}),_0x200e66[_0x5efaa9(0x1d8)](_0x5cd471,_0x3c2e6a);}[_0x4d0378(0x1f9)](_0x16d8ae){const _0x4bf3d3=_0x4d0378;this[_0x4bf3d3(0x1e8)](_0x16d8ae)[_0x4bf3d3(0x1c7)]();}[_0x4d0378(0x1f4)](){const _0x50e953=_0x4d0378;return this[_0x50e953(0x1cd)][_0x50e953(0x1e4)](_0x8b8b72=>_0x8b8b72[_0x50e953(0x213)]['id']);}[_0x4d0378(0x1c1)](_0x4241ac){const _0xe34475=_0x4d0378;this[_0xe34475(0x1cd)][_0xe34475(0x1c6)](this[_0xe34475(0x1e8)](_0x4241ac));}[_0x4d0378(0x206)](_0x4fc076){const _0x41095a=_0x4d0378;return!!this[_0x41095a(0x1cd)][_0x41095a(0x1d3)](_0x1b4f45=>_0x1b4f45[_0x41095a(0x213)]['id'][_0x41095a(0x1dd)](_0x4fc076));}[_0x4d0378(0x208)](_0x28a85a,_0xb36fb7){const _0x401947=_0x4d0378,_0x248007=this[_0x401947(0x1e8)](_0x28a85a);if(!(_0x248007 instanceof _0x39208b))return void _0x36ec0b(_0x401947(0x216),{'replyId':_0x28a85a,'partIndex':_0xb36fb7});const _0xc42849=_0x248007[_0x401947(0x1e6)](_0xb36fb7);_0xc42849?_0x1672a1(_0xc42849[_0x401947(0x211)],0x14,this[_0x401947(0x211)][_0x401947(0x1c4)],!0x0,!0x0):_0x36ec0b(_0x401947(0x1cc),{'replyId':_0x28a85a,'partIndex':_0xb36fb7});}[_0x4d0378(0x210)](){const _0x123f46=_0x4d0378;this[_0x123f46(0x1dc)]({'tag':_0x123f46(0x1ef),'attributes':{'class':['ck',_0x123f46(0x1fe)]},'children':this[_0x123f46(0x1d9)]()});}[_0x4d0378(0x1d9)](){const _0x104f54=_0x4d0378,_0x1fd85a=this[_0x104f54(0x1f5)]();return[this[_0x104f54(0x1cb)](),_0x1fd85a,this[_0x104f54(0x212)]()];}[_0x4d0378(0x1f5)](){const _0xcccffa=_0x4d0378,_0x4548b6=new _0x40a082(this[_0xcccffa(0x1ee)],_0x27a84f[_0xcccffa(0x1d1)]);return _0x4548b6[_0xcccffa(0x1f7)]({'attributes':{'class':[this[_0xcccffa(0x20e)]['if'](_0xcccffa(0x201),_0xcccffa(0x1f1),_0x596721=>!_0x596721)]}}),_0x4548b6;}[_0x4d0378(0x1cb)](){const _0x4353e5=_0x4d0378,_0x435255=new _0xdf1b83(this[_0x4353e5(0x1ee)]);return _0x435255[_0x4353e5(0x1dc)]({'tag':_0x4353e5(0x1ef),'attributes':{'class':['ck',_0x4353e5(0x1ec),this[_0x4353e5(0x20e)]['if'](_0x4353e5(0x201),_0x4353e5(0x1f1))]},'children':this[_0x4353e5(0x1cd)]}),_0x435255;}[_0x4d0378(0x212)](){const _0x388633=_0x4d0378,_0x3084e2=new _0xdf1b83(this[_0x388633(0x1ee)]);return _0x3084e2[_0x388633(0x1dc)]({'tag':_0x388633(0x1ef),'attributes':{'class':['ck',_0x388633(0x1d6),this[_0x388633(0x20e)]['if'](_0x388633(0x1de),_0x388633(0x1f1),_0x49bfa7=>!_0x49bfa7)]},'children':this[_0x388633(0x1c8)]()}),_0x3084e2;}[_0x4d0378(0x1c8)](){const _0x264983=_0x4d0378,_0x238a98=new _0x2ff4bb();return _0x238a98[_0x264983(0x1ce)]=!0x0,[_0x238a98,{'tag':_0x264983(0x1f0),'attributes':{'class':['ck',_0x264983(0x205)]},'children':[{'text':this[_0x264983(0x20e)]['to'](_0x264983(0x1da))}]}];}[_0x4d0378(0x1e8)](_0x4bca2e){const _0xcbc48e=_0x4d0378,_0x48d265=this[_0xcbc48e(0x1cd)][_0xcbc48e(0x1d3)](_0x47d1ee=>_0x47d1ee[_0xcbc48e(0x213)]['id'][_0xcbc48e(0x1dd)](_0x4bca2e));if(!_0x48d265)throw new _0x22c5dc(_0xcbc48e(0x20a),this,{'id':_0x4bca2e});return _0x48d265;}[_0x4d0378(0x1e0)](_0x39f4a1){const _0x365040=_0x4d0378;this[_0x365040(0x1db)](_0x365040(0x1da),_0x39f4a1);}[_0x4d0378(0x1be)](_0x23a8f1){const _0x4e7c5d=_0x4d0378;this[_0x4e7c5d(0x1db)](_0x4e7c5d(0x201),_0x23a8f1);}[_0x4d0378(0x1cf)](){const _0x4000dd=_0x4d0378;this[_0x4000dd(0x203)][_0x4000dd(0x1ca)]();}[_0x4d0378(0x1d4)](){const _0x4519f1=_0x4d0378;this[_0x4519f1(0x203)][_0x4519f1(0x1ea)]();}}
23
+ const _0x35fe78=_0x348f;(function(_0x51dae8,_0x29dd07){const _0x21fb46=_0x348f,_0x5d8e9a=_0x51dae8();while(!![]){try{const _0x4f16b3=parseInt(_0x21fb46(0x1b1))/0x1*(-parseInt(_0x21fb46(0x16d))/0x2)+-parseInt(_0x21fb46(0x173))/0x3*(parseInt(_0x21fb46(0x1c3))/0x4)+parseInt(_0x21fb46(0x18e))/0x5*(parseInt(_0x21fb46(0x1a0))/0x6)+parseInt(_0x21fb46(0x19d))/0x7+-parseInt(_0x21fb46(0x1c4))/0x8+-parseInt(_0x21fb46(0x18d))/0x9*(-parseInt(_0x21fb46(0x186))/0xa)+parseInt(_0x21fb46(0x1b7))/0xb;if(_0x4f16b3===_0x29dd07)break;else _0x5d8e9a['push'](_0x5d8e9a['shift']());}catch(_0x43d579){_0x5d8e9a['push'](_0x5d8e9a['shift']());}}}(_0x1519,0x47f26));import{CKEditorError as _0x1cf6d3,logWarning as _0x341297,scrollAncestorsToShowTarget as _0x225c37}from'ckeditor5/src/utils.js';import{View as _0x50e511}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x48229b}from'../utils/eventnames.js';function _0x348f(_0x4bff42,_0x5ee5cb){const _0x151998=_0x1519();return _0x348f=function(_0x348f44,_0x5f0f24){_0x348f44=_0x348f44-0x16d;let _0xe52071=_0x151998[_0x348f44];return _0xe52071;},_0x348f(_0x4bff42,_0x5ee5cb);}import{AIChatFeedSuggestionItemView as _0x87a07f}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x5cdeb0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x190369}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x142ca6}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1e80fd}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4ed69f}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x3f0da8,SKELETON_DEFINITIONS as _0x43ccde}from'../../aicore/ui/aiskeleton.js';function _0x1519(){const _0x474a0a=['ai-chat-feed-view-item-not-a-suggestion-or-reply-item','scrollToSuggestion','setPartActive','set','ai-reply','element','scrollManager','updatePartState','ck-hidden','filter','extendTemplate','ai-chat-feed-view-item-not-found','130739kQoINz','updateWebSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','355710zDZsxK','updateReplyItem','parentElement','updateSuggestionPartState','div','destroy','isVisible','map','_createFeedItems','hasItem','custom-element','find','markAsDone','getItemById','_setupTemplate','children','user-message','593xKLuUs','_createLoaderChildren','includes','getItemIds','updateContent','clear','6854936SvUZcP','stop','_createTemplateChildren','addItem','stopAutoScroll','isPending','start','forEach','_createSkeletonLoader','setSuggestionPartActive','loadingMessage','delegate','147400WqDlkr','2808360projRo','toggleLoadingSkeleton','1098tGPVKW','setTemplate','add','startAutoScroll','removeItem','updateSources','36anPAov','options','_createFeedLoader','bindTemplate','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','isLoadingSkeletonVisible','ck-ai-chat__loader-text','_bodyCollection','bind','interaction-header','ck-ai-chat__loader','isTrackChangesOn','remove','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-reply-item','span','setLoadingMessage','ck-ai-chat__feed__items','19870GmhpGf','ck-ai-chat__feed','ai-suggestion-reply','markItemAsDone','updateSuggestionItem','render','aiFeed','2421LpddWq','20nFeUkG','locale','createCollection'];_0x1519=function(){return _0x474a0a;};return _0x1519();}import{AISpinnerView as _0x556e7a}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x2a03c2}from'./feed/aichatfeedcustomelementview.js';export class AIChatFeedView extends _0x50e511{[_0x35fe78(0x1af)];[_0x35fe78(0x197)];[_0x35fe78(0x17b)];constructor(_0x351a8b,_0x5d6b09){const _0x240f51=_0x35fe78;super(_0x351a8b),this[_0x240f51(0x17b)]=_0x5d6b09,this[_0x240f51(0x194)](_0x240f51(0x1bc),!0x1),this[_0x240f51(0x194)](_0x240f51(0x1c1),''),this[_0x240f51(0x194)](_0x240f51(0x179),!0x1),this[_0x240f51(0x194)](_0x240f51(0x17f),!0x1),this[_0x240f51(0x1af)]=this[_0x240f51(0x190)](),this[_0x240f51(0x1af)][_0x240f51(0x1c2)](..._0x48229b)['to'](this),this[_0x240f51(0x1ae)]();}[_0x35fe78(0x18b)](){const _0x9a0b8=_0x35fe78;super[_0x9a0b8(0x18b)](),this[_0x9a0b8(0x197)]=new _0x4ed69f(this[_0x9a0b8(0x196)]);}[_0x35fe78(0x1a5)](){const _0x56fec0=_0x35fe78;super[_0x56fec0(0x1a5)](),this[_0x56fec0(0x197)][_0x56fec0(0x1a5)]();}[_0x35fe78(0x1b6)](){const _0x440709=_0x35fe78;this[_0x440709(0x1af)][_0x440709(0x1b6)]();}[_0x35fe78(0x1ba)](_0x594a72,_0x29d4df){const _0x589e82=_0x35fe78;let _0x1a995d;return _0x589e82(0x195)===_0x594a72?_0x1a995d=new _0x5cdeb0(this[_0x589e82(0x18f)],_0x29d4df,this[_0x589e82(0x17b)]):_0x589e82(0x188)===_0x594a72?(_0x1a995d=new _0x87a07f(this[_0x589e82(0x18f)],_0x29d4df,this[_0x589e82(0x17b)]),_0x1a995d[_0x589e82(0x17c)](_0x589e82(0x17f))['to'](this)):_0x1a995d=_0x589e82(0x1b0)===_0x594a72?new _0x190369(this[_0x589e82(0x18f)],_0x29d4df,this[_0x589e82(0x17b)]):_0x589e82(0x17d)===_0x594a72?new _0x1e80fd(this[_0x589e82(0x18f)],_0x29d4df):_0x589e82(0x1aa)===_0x594a72?new _0x2a03c2(_0x29d4df):new _0x142ca6(_0x29d4df),this[_0x589e82(0x1af)][_0x589e82(0x16f)](_0x1a995d),_0x1a995d;}async[_0x35fe78(0x1a1)]({id:_0x10cf3b,parsedContent:_0x1e566e,renderingStrategy:_0x5ce4ee,abortSignal:_0x278448}){const _0x5847dc=_0x35fe78,_0x15597a=this[_0x5847dc(0x1ad)](_0x10cf3b);if(!(_0x15597a instanceof _0x5cdeb0))throw new _0x1cf6d3(_0x5847dc(0x182),null,{'itemView':_0x15597a,'id':_0x10cf3b,'parsedContent':_0x1e566e});await _0x15597a[_0x5847dc(0x1b5)]({'parsedContent':_0x1e566e,'renderingStrategy':_0x5ce4ee,'abortSignal':_0x278448});}async[_0x35fe78(0x19e)](_0xf857ae,_0x4d7e22){const _0x3fc6b3=_0x35fe78,_0x4eb5ad=this[_0x3fc6b3(0x1ad)](_0xf857ae);if(_0x4eb5ad instanceof _0x87a07f)_0x4eb5ad[_0x3fc6b3(0x172)](_0x4d7e22);else{if(!(_0x4eb5ad instanceof _0x5cdeb0))throw new _0x1cf6d3(_0x3fc6b3(0x191),null,{'itemView':_0x4eb5ad,'id':_0xf857ae,'sources':_0x4d7e22});_0x4eb5ad[_0x3fc6b3(0x172)](_0x4d7e22);}}async[_0x35fe78(0x18a)]({id:_0x205d3b,parts:_0x42e0d3,renderingStrategy:_0xe1af4c,abortSignal:_0x213963}){const _0x1806ff=_0x35fe78,_0x47d1b7=this[_0x1806ff(0x1ad)](_0x205d3b);if(!(_0x47d1b7 instanceof _0x87a07f))throw new _0x1cf6d3(_0x1806ff(0x178),null,{'itemView':_0x47d1b7,'id':_0x205d3b,'parts':_0x42e0d3});await _0x47d1b7[_0x1806ff(0x1b5)]({'parts':_0x42e0d3,'renderingStrategy':_0xe1af4c,'abortSignal':_0x213963});}[_0x35fe78(0x1a3)]({id:_0x3b7731,index:_0x278b3b,state:_0x3a9e53}){const _0x3f9113=_0x35fe78,_0x143ed2=this[_0x3f9113(0x1ad)](_0x3b7731);if(!(_0x143ed2 instanceof _0x87a07f))throw new _0x1cf6d3(_0x3f9113(0x178),this,{'id':_0x3b7731});_0x143ed2[_0x3f9113(0x198)](_0x278b3b,_0x3a9e53);}[_0x35fe78(0x1c0)]({id:_0x54db57,index:_0x4dd3c8,isActive:_0xf32862}){const _0x4d6378=_0x35fe78,_0x28eecc=this[_0x4d6378(0x1ad)](_0x54db57);if(!(_0x28eecc instanceof _0x87a07f))throw new _0x1cf6d3(_0x4d6378(0x178),this,{'id':_0x54db57});this[_0x4d6378(0x1af)][_0x4d6378(0x19a)](_0x803606=>_0x803606 instanceof _0x87a07f)[_0x4d6378(0x1be)](_0x38ed6f=>{const _0x1b5551=_0x4d6378;_0x38ed6f[_0x1b5551(0x193)](!0x1);}),_0x28eecc[_0x4d6378(0x193)](_0x4dd3c8,_0xf32862);}[_0x35fe78(0x189)](_0x1d1337){const _0x1b1552=_0x35fe78;this[_0x1b1552(0x1ad)](_0x1d1337)[_0x1b1552(0x1ac)]();}[_0x35fe78(0x1b4)](){const _0x51b63d=_0x35fe78;return this[_0x51b63d(0x1af)][_0x51b63d(0x1a7)](_0x121ff1=>_0x121ff1[_0x51b63d(0x174)]['id']);}[_0x35fe78(0x171)](_0x278c0f){const _0x11be98=_0x35fe78;this[_0x11be98(0x1af)][_0x11be98(0x180)](this[_0x11be98(0x1ad)](_0x278c0f));}[_0x35fe78(0x1a9)](_0x2084ea){const _0x335816=_0x35fe78;return!!this[_0x335816(0x1af)][_0x335816(0x1ab)](_0x26ea38=>_0x26ea38[_0x335816(0x174)]['id'][_0x335816(0x1b3)](_0x2084ea));}[_0x35fe78(0x192)](_0xfcce9a,_0x189941){const _0x511367=_0x35fe78,_0xc09861=this[_0x511367(0x1ad)](_0xfcce9a);if(!(_0xc09861 instanceof _0x87a07f))return void _0x341297(_0x511367(0x181),{'replyId':_0xfcce9a,'partIndex':_0x189941});const _0x34134e=_0xc09861[_0x511367(0x177)](_0x189941);_0x34134e?_0x225c37(_0x34134e[_0x511367(0x196)],0x14,this[_0x511367(0x196)][_0x511367(0x1a2)],!0x0,!0x0):_0x341297(_0x511367(0x19f),{'replyId':_0xfcce9a,'partIndex':_0x189941});}[_0x35fe78(0x1ae)](){const _0x5a7196=_0x35fe78;this[_0x5a7196(0x16e)]({'tag':_0x5a7196(0x1a4),'attributes':{'class':['ck',_0x5a7196(0x187)]},'children':this[_0x5a7196(0x1b9)]()});}[_0x35fe78(0x1b9)](){const _0x3861cb=_0x35fe78,_0x396705=this[_0x3861cb(0x1bf)]();return[this[_0x3861cb(0x1a8)](),_0x396705,this[_0x3861cb(0x175)]()];}[_0x35fe78(0x1bf)](){const _0x52ec69=_0x35fe78,_0x110ce4=new _0x3f0da8(this[_0x52ec69(0x18f)],_0x43ccde[_0x52ec69(0x18c)]);return _0x110ce4[_0x52ec69(0x19b)]({'attributes':{'class':[this[_0x52ec69(0x176)]['if'](_0x52ec69(0x179),_0x52ec69(0x199),_0x260409=>!_0x260409)]}}),_0x110ce4;}[_0x35fe78(0x1a8)](){const _0x1220f9=_0x35fe78,_0x308f65=new _0x50e511(this[_0x1220f9(0x18f)]);return _0x308f65[_0x1220f9(0x16e)]({'tag':_0x1220f9(0x1a4),'attributes':{'class':['ck',_0x1220f9(0x185),this[_0x1220f9(0x176)]['if'](_0x1220f9(0x179),_0x1220f9(0x199))]},'children':this[_0x1220f9(0x1af)]}),_0x308f65;}[_0x35fe78(0x175)](){const _0x2df84a=_0x35fe78,_0x2fdb52=new _0x50e511(this[_0x2df84a(0x18f)]);return _0x2fdb52[_0x2df84a(0x16e)]({'tag':_0x2df84a(0x1a4),'attributes':{'class':['ck',_0x2df84a(0x17e),this[_0x2df84a(0x176)]['if'](_0x2df84a(0x1bc),_0x2df84a(0x199),_0x44cd48=>!_0x44cd48)]},'children':this[_0x2df84a(0x1b2)]()}),_0x2fdb52;}[_0x35fe78(0x1b2)](){const _0x884008=_0x35fe78,_0x5bb4e9=new _0x556e7a();return _0x5bb4e9[_0x884008(0x1a6)]=!0x0,[_0x5bb4e9,{'tag':_0x884008(0x183),'attributes':{'class':['ck',_0x884008(0x17a)]},'children':[{'text':this[_0x884008(0x176)]['to'](_0x884008(0x1c1))}]}];}[_0x35fe78(0x1ad)](_0x3417a8){const _0x45dc0a=_0x35fe78,_0x524bbb=this[_0x45dc0a(0x1af)][_0x45dc0a(0x1ab)](_0x4d2575=>_0x4d2575[_0x45dc0a(0x174)]['id'][_0x45dc0a(0x1b3)](_0x3417a8));if(!_0x524bbb)throw new _0x1cf6d3(_0x45dc0a(0x19c),this,{'id':_0x3417a8});return _0x524bbb;}[_0x35fe78(0x184)](_0x28f1dc){const _0xe0cb60=_0x35fe78;this[_0xe0cb60(0x194)](_0xe0cb60(0x1c1),_0x28f1dc);}[_0x35fe78(0x1c5)](_0x49eec7){const _0x386df6=_0x35fe78;this[_0x386df6(0x194)](_0x386df6(0x179),_0x49eec7);}[_0x35fe78(0x170)](){const _0x18e225=_0x35fe78;this[_0x18e225(0x197)][_0x18e225(0x1bd)]();}[_0x35fe78(0x1bb)](){const _0x154571=_0x35fe78;this[_0x154571(0x197)][_0x154571(0x1b8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdfb73b=_0x2363;function _0x2363(_0x43b202,_0x4108f1){const _0x599a28=_0x599a();return _0x2363=function(_0x236331,_0x10feca){_0x236331=_0x236331-0xc9;let _0xdf1677=_0x599a28[_0x236331];return _0xdf1677;},_0x2363(_0x43b202,_0x4108f1);}function _0x599a(){const _0x2a0d63=['startConversation','_createStartConversationButton','9770gLOwHX','26999ZPEuZY','27vMuMGf','children','5304876xyHlNb','AI_CHAT_HEADING','set','1252216CofmDC','ck-ai-chat__start-conversation','4avLGtL','723480rNNyup','ck-ai-header\x20ck-ai-header_chat','1224dQdIqa','locale','33cPrDZa','execute','add','48SnMGRj','isMaximized','fire','conversationStartButton','resizeButton','1098465tabkCz','AI_CHAT_LABEL_NEW_CHAT'];_0x599a=function(){return _0x2a0d63;};return _0x599a();}(function(_0x53a93d,_0xd9ba77){const _0x476b7b=_0x2363,_0xb6a5e9=_0x53a93d();while(!![]){try{const _0x1f8ad1=parseInt(_0x476b7b(0xd3))/0x1+parseInt(_0x476b7b(0xd5))/0x2*(-parseInt(_0x476b7b(0xe2))/0x3)+parseInt(_0x476b7b(0xd0))/0x4+-parseInt(_0x476b7b(0xd6))/0x5*(parseInt(_0x476b7b(0xdd))/0x6)+-parseInt(_0x476b7b(0xcd))/0x7+parseInt(_0x476b7b(0xd8))/0x8*(-parseInt(_0x476b7b(0xce))/0x9)+parseInt(_0x476b7b(0xcc))/0xa*(-parseInt(_0x476b7b(0xda))/0xb);if(_0x1f8ad1===_0xd9ba77)break;else _0xb6a5e9['push'](_0xb6a5e9['shift']());}catch(_0x4eb80f){_0xb6a5e9['push'](_0xb6a5e9['shift']());}}}(_0x599a,0xa655e));import{ButtonView as _0x389bbb,FormHeaderView as _0x4c2b34}from'ckeditor5/src/ui.js';import{IconPlus as _0x19dd1c,IconAIChat as _0x42bcf0}from'ckeditor5/src/icons.js';import{getTranslation as _0x20762c}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4ad3d8}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4c2b34{[_0xdfb73b(0xe0)];[_0xdfb73b(0xe1)];constructor(_0x4551cc,_0x308b30){const _0x9f1c88=_0xdfb73b;super(_0x4551cc,{'label':_0x20762c(_0x4551cc,_0x9f1c88(0xd1)),'class':_0x9f1c88(0xd7),'icon':_0x42bcf0}),this[_0x9f1c88(0xd2)](_0x9f1c88(0xde),!0x1),this[_0x9f1c88(0xe0)]=this[_0x9f1c88(0xcb)](_0x4551cc),this[_0x9f1c88(0xcf)][_0x9f1c88(0xdc)](this[_0x9f1c88(0xe0)]),_0x308b30&&(this[_0x9f1c88(0xe1)]=_0x4ad3d8(_0x4551cc,this),this[_0x9f1c88(0xcf)][_0x9f1c88(0xdc)](this[_0x9f1c88(0xe1)]));}[_0xdfb73b(0xcb)](_0x1b2ec3){const _0x5c3a8e=_0xdfb73b,_0x1ca8bb=new _0x389bbb(_0x1b2ec3);return _0x1ca8bb[_0x5c3a8e(0xd2)]({'label':_0x20762c(this[_0x5c3a8e(0xd9)],_0x5c3a8e(0xc9)),'withText':!0x0,'icon':_0x19dd1c,'class':_0x5c3a8e(0xd4)}),_0x1ca8bb['on'](_0x5c3a8e(0xdb),()=>{const _0x36e84f=_0x5c3a8e;this[_0x36e84f(0xdf)](_0x36e84f(0xca));}),_0x1ca8bb;}}
23
+ function _0x3376(_0x309849,_0x3ef863){const _0x555878=_0x5558();return _0x3376=function(_0x3376f9,_0x5d219e){_0x3376f9=_0x3376f9-0x64;let _0x78988b=_0x555878[_0x3376f9];return _0x78988b;},_0x3376(_0x309849,_0x3ef863);}const _0x31ec46=_0x3376;function _0x5558(){const _0x12af39=['resizeButton','locale','AI_CHAT_HEADING','12NixKcH','isMaximized','execute','180078hCWBhH','add','ck-ai-header\x20ck-ai-header_chat','children','7099932cwueeC','fire','137684iRWDed','AI_CHAT_LABEL_NEW_CHAT','startConversation','7349258DsjpAQ','210CYLjgc','8958035NAPILS','ck-ai-chat__start-conversation','conversationStartButton','9rTuNzj','set','775401VJLLTx','93iDLMOd','_createStartConversationButton','5526968njxRoY'];_0x5558=function(){return _0x12af39;};return _0x5558();}(function(_0x591e75,_0x22a347){const _0x3df050=_0x3376,_0x29fc40=_0x591e75();while(!![]){try{const _0x56c7d9=-parseInt(_0x3df050(0x78))/0x1*(-parseInt(_0x3df050(0x75))/0x2)+-parseInt(_0x3df050(0x6f))/0x3*(-parseInt(_0x3df050(0x64))/0x4)+parseInt(_0x3df050(0x69))/0x5+-parseInt(_0x3df050(0x7c))/0x6+-parseInt(_0x3df050(0x67))/0x7+-parseInt(_0x3df050(0x71))/0x8*(-parseInt(_0x3df050(0x6c))/0x9)+parseInt(_0x3df050(0x68))/0xa*(-parseInt(_0x3df050(0x6e))/0xb);if(_0x56c7d9===_0x22a347)break;else _0x29fc40['push'](_0x29fc40['shift']());}catch(_0x365c9a){_0x29fc40['push'](_0x29fc40['shift']());}}}(_0x5558,0xdfbf6));import{ButtonView as _0x58ae48,FormHeaderView as _0x37e34b}from'ckeditor5/src/ui.js';import{IconPlus as _0x56a06f,IconAIChat as _0x1e4c19}from'ckeditor5/src/icons.js';import{getTranslation as _0x29e6b6}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x259bb1}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x37e34b{[_0x31ec46(0x6b)];[_0x31ec46(0x72)];constructor(_0x2ce2db,_0x18777b){const _0x327f67=_0x31ec46;super(_0x2ce2db,{'label':_0x29e6b6(_0x2ce2db,_0x327f67(0x74)),'class':_0x327f67(0x7a),'icon':_0x1e4c19}),this[_0x327f67(0x6d)](_0x327f67(0x76),!0x1),this[_0x327f67(0x6b)]=this[_0x327f67(0x70)](_0x2ce2db),this[_0x327f67(0x7b)][_0x327f67(0x79)](this[_0x327f67(0x6b)]),_0x18777b&&(this[_0x327f67(0x72)]=_0x259bb1(_0x2ce2db,this),this[_0x327f67(0x7b)][_0x327f67(0x79)](this[_0x327f67(0x72)]));}[_0x31ec46(0x70)](_0x18316d){const _0x1410cd=_0x31ec46,_0x24a85f=new _0x58ae48(_0x18316d);return _0x24a85f[_0x1410cd(0x6d)]({'label':_0x29e6b6(this[_0x1410cd(0x73)],_0x1410cd(0x65)),'withText':!0x0,'icon':_0x56a06f,'class':_0x1410cd(0x6a)}),_0x24a85f['on'](_0x1410cd(0x77),()=>{const _0x522b4e=_0x1410cd;this[_0x522b4e(0x7d)](_0x522b4e(0x66));}),_0x24a85f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31eeda=_0x11f3;(function(_0x20e008,_0x4589cb){var _0x19a8a8=_0x11f3,_0x4c5515=_0x20e008();while(!![]){try{var _0x4389fc=parseInt(_0x19a8a8(0x1ee))/0x1*(parseInt(_0x19a8a8(0x1f4))/0x2)+parseInt(_0x19a8a8(0x1ed))/0x3+-parseInt(_0x19a8a8(0x1de))/0x4*(parseInt(_0x19a8a8(0x1ec))/0x5)+parseInt(_0x19a8a8(0x1e8))/0x6+parseInt(_0x19a8a8(0x1e5))/0x7+-parseInt(_0x19a8a8(0x1e0))/0x8+parseInt(_0x19a8a8(0x1dc))/0x9;if(_0x4389fc===_0x4589cb)break;else _0x4c5515['push'](_0x4c5515['shift']());}catch(_0x1cfce2){_0x4c5515['push'](_0x4c5515['shift']());}}}(_0x40f7,0xa78fb));import{View as _0x25ace7,BodyCollection as _0xdc0360}from'ckeditor5/src/ui.js';function _0x40f7(){var _0x530359=['chatControls','1224630NWDLNA','3012570RaucwQ','88477NqmEjp','chatFeed','attachToDom','chatDisclaimer','chatHeader','div','6uDefJh','uiLanguageDirection','showResizeButton','closeSourceResourceBalloon','2904210MIbIRC','detachFromDom','12XWAKyR','contextResourcesSearchInputVisibleFrom','10716936KvYaff','populateSourceResourceBalloon','destroy','ck-rounded-corners','delegate','7029442YVaeqW','ck-reset_all','_bodyCollection','985254PbqwsK','setTemplate','ck-ai-chat'];_0x40f7=function(){return _0x530359;};return _0x40f7();}import{AI_CHAT_UI_EVENT_NAMES as _0x111067}from'../utils/eventnames.js';import{AIChatFeedView as _0x973682}from'./aichatfeedview.js';function _0x11f3(_0x147eed,_0x1240f5){var _0x40f732=_0x40f7();return _0x11f3=function(_0x11f393,_0x25e29e){_0x11f393=_0x11f393-0x1da;var _0x5b17fd=_0x40f732[_0x11f393];return _0x5b17fd;},_0x11f3(_0x147eed,_0x1240f5);}import{AIChatControlsView as _0x3e84b8}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x45f1dd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x53a9cb}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x25ace7{[_0x31eeda(0x1f2)];[_0x31eeda(0x1ef)];[_0x31eeda(0x1eb)];[_0x31eeda(0x1f1)];[_0x31eeda(0x1e7)];constructor(_0x2f4870,_0x15bc7e){var _0x3d4193=_0x31eeda;super(_0x2f4870),this[_0x3d4193(0x1e7)]=new _0xdc0360(_0x2f4870),this[_0x3d4193(0x1e7)][_0x3d4193(0x1f0)](),this[_0x3d4193(0x1f2)]=new _0x45f1dd(_0x2f4870,_0x15bc7e[_0x3d4193(0x1da)]),this[_0x3d4193(0x1f2)][_0x3d4193(0x1e4)](..._0x111067)['to'](this),this[_0x3d4193(0x1ef)]=new _0x973682(_0x2f4870,this[_0x3d4193(0x1e7)]),this[_0x3d4193(0x1ef)][_0x3d4193(0x1e4)](..._0x111067)['to'](this),this[_0x3d4193(0x1eb)]=new _0x3e84b8(_0x2f4870,{'bodyCollection':this[_0x3d4193(0x1e7)],'contextResourcesSearchInputVisibleFrom':_0x15bc7e[_0x3d4193(0x1df)]}),this[_0x3d4193(0x1eb)][_0x3d4193(0x1e4)](..._0x111067)['to'](this),this[_0x3d4193(0x1f1)]=new _0x53a9cb(_0x2f4870),this[_0x3d4193(0x1e9)]({'tag':_0x3d4193(0x1f3),'attributes':{'class':['ck',_0x3d4193(0x1e6),_0x3d4193(0x1ea),_0x3d4193(0x1e3)],'dir':_0x2f4870[_0x3d4193(0x1f5)]},'children':[this[_0x3d4193(0x1f2)],this[_0x3d4193(0x1ef)],this[_0x3d4193(0x1eb)],this[_0x3d4193(0x1f1)]]});}[_0x31eeda(0x1e1)](_0x40ab15,_0x21cfc8,_0x299a0d,_0x4e863e){var _0x560a20=_0x31eeda;this[_0x560a20(0x1eb)][_0x560a20(0x1e1)](_0x40ab15,_0x21cfc8,_0x299a0d,_0x4e863e);}[_0x31eeda(0x1db)](_0x57b8f7){var _0x2471a1=_0x31eeda;this[_0x2471a1(0x1eb)][_0x2471a1(0x1db)](_0x57b8f7);}[_0x31eeda(0x1e2)](){var _0x2474c6=_0x31eeda;this[_0x2474c6(0x1e7)][_0x2474c6(0x1dd)](),super[_0x2474c6(0x1e2)]();}}
23
+ var _0x191849=_0x262f;(function(_0x6aac90,_0x2e99b1){var _0x324c7e=_0x262f,_0x4af6e4=_0x6aac90();while(!![]){try{var _0x407e69=-parseInt(_0x324c7e(0x182))/0x1*(-parseInt(_0x324c7e(0x180))/0x2)+parseInt(_0x324c7e(0x170))/0x3+-parseInt(_0x324c7e(0x16e))/0x4+-parseInt(_0x324c7e(0x16d))/0x5*(-parseInt(_0x324c7e(0x175))/0x6)+-parseInt(_0x324c7e(0x171))/0x7+parseInt(_0x324c7e(0x16a))/0x8+parseInt(_0x324c7e(0x168))/0x9*(-parseInt(_0x324c7e(0x17e))/0xa);if(_0x407e69===_0x2e99b1)break;else _0x4af6e4['push'](_0x4af6e4['shift']());}catch(_0x4c7cf3){_0x4af6e4['push'](_0x4af6e4['shift']());}}}(_0x1746,0x8d6c5));import{View as _0x4bfa84,BodyCollection as _0x44de46}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e83a2}from'../utils/eventnames.js';import{AIChatFeedView as _0x15418f}from'./aichatfeedview.js';import{AIChatControlsView as _0x44e6d1}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x39018d}from'./aichatheaderview.js';function _0x262f(_0x277376,_0x422823){var _0x174668=_0x1746();return _0x262f=function(_0x262f7d,_0x526dc4){_0x262f7d=_0x262f7d-0x166;var _0x37673c=_0x174668[_0x262f7d];return _0x37673c;},_0x262f(_0x277376,_0x422823);}function _0x1746(){var _0x3117a6=['chatHeader','1153419SnPGlH','attachToDom','populateSourceResourceBalloon','171GnKCpO','div','576496PhPAiI','setTemplate','contextResourcesSearchInputVisibleFrom','4912865nSueDe','3126272seIuFX','showResizeButton','820332eTBVba','4492495crrCZF','chatDisclaimer','chatControls','ck-reset_all','6HbEfAd','destroy','_bodyCollection','ck-rounded-corners','chatFeed','detachFromDom','delegate','closeSourceResourceBalloon','ck-ai-chat','252040ChNndy','uiLanguageDirection','2aFsztV'];_0x1746=function(){return _0x3117a6;};return _0x1746();}import{AIDisclaimerView as _0x440d64}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x4bfa84{[_0x191849(0x181)];[_0x191849(0x179)];[_0x191849(0x173)];[_0x191849(0x172)];[_0x191849(0x177)];constructor(_0x4a1554,_0x5281fc){var _0x50fa68=_0x191849;super(_0x4a1554),this[_0x50fa68(0x177)]=new _0x44de46(_0x4a1554),this[_0x50fa68(0x177)][_0x50fa68(0x166)](),this[_0x50fa68(0x181)]=new _0x39018d(_0x4a1554,_0x5281fc[_0x50fa68(0x16f)]),this[_0x50fa68(0x181)][_0x50fa68(0x17b)](..._0x5e83a2)['to'](this),this[_0x50fa68(0x179)]=new _0x15418f(_0x4a1554,this[_0x50fa68(0x177)]),this[_0x50fa68(0x179)][_0x50fa68(0x17b)](..._0x5e83a2)['to'](this),this[_0x50fa68(0x173)]=new _0x44e6d1(_0x4a1554,{'bodyCollection':this[_0x50fa68(0x177)],'contextResourcesSearchInputVisibleFrom':_0x5281fc[_0x50fa68(0x16c)]}),this[_0x50fa68(0x173)][_0x50fa68(0x17b)](..._0x5e83a2)['to'](this),this[_0x50fa68(0x172)]=new _0x440d64(_0x4a1554),this[_0x50fa68(0x16b)]({'tag':_0x50fa68(0x169),'attributes':{'class':['ck',_0x50fa68(0x174),_0x50fa68(0x17d),_0x50fa68(0x178)],'dir':_0x4a1554[_0x50fa68(0x17f)]},'children':[this[_0x50fa68(0x181)],this[_0x50fa68(0x179)],this[_0x50fa68(0x173)],this[_0x50fa68(0x172)]]});}[_0x191849(0x167)](_0x57c817,_0x5e3201,_0x261bdc,_0x2145d5){var _0x53aa34=_0x191849;this[_0x53aa34(0x173)][_0x53aa34(0x167)](_0x57c817,_0x5e3201,_0x261bdc,_0x2145d5);}[_0x191849(0x17c)](_0xb85e68){var _0x2cd5ac=_0x191849;this[_0x2cd5ac(0x173)][_0x2cd5ac(0x17c)](_0xb85e68);}[_0x191849(0x176)](){var _0x2739a4=_0x191849;this[_0x2739a4(0x177)][_0x2739a4(0x17a)](),super[_0x2739a4(0x176)]();}}