@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.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.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f553e=_0x25e6;(function(_0x124070,_0x1c866b){const _0x277b1d=_0x25e6,_0x460264=_0x124070();while(!![]){try{const _0x3c48c5=parseInt(_0x277b1d(0xd6))/0x1*(parseInt(_0x277b1d(0x99))/0x2)+-parseInt(_0x277b1d(0x139))/0x3+parseInt(_0x277b1d(0x196))/0x4*(parseInt(_0x277b1d(0xe1))/0x5)+parseInt(_0x277b1d(0x1c0))/0x6*(-parseInt(_0x277b1d(0x162))/0x7)+parseInt(_0x277b1d(0x1b9))/0x8*(parseInt(_0x277b1d(0x93))/0x9)+parseInt(_0x277b1d(0x16c))/0xa*(-parseInt(_0x277b1d(0xa9))/0xb)+parseInt(_0x277b1d(0x1aa))/0xc;if(_0x3c48c5===_0x1c866b)break;else _0x460264['push'](_0x460264['shift']());}catch(_0x4efcd4){_0x460264['push'](_0x460264['shift']());}}}(_0x4333,0x8a24a));import{ContextPlugin as _0x3418f4,Editor as _0x277810}from'ckeditor5/src/core.js';import{CKEditorError as _0x26389e,logError as _0x24ffd0,scrollViewportToShowTarget as _0xa319c1,uid as _0x2cbd4a}from'ckeditor5/src/utils.js';function _0x4333(){const _0x2662fc=['setSelectedModel','messageId','ai.chat.models.displayedModels','51205UmQRRE','getRoot','addResourceToContext','static','ai-chat-url-upload-failed','remove','_applySuggestion','sendMessage','_handleStartConversation','_openBalloonFor','afterInit','removeMarker','getInteractionAndReplyById','updateCapabilities','chat','_scrollToSuggestionRange','AI_CHAT_UNABLE_TO_START_CONVERSATION','split','ai-chat-controller-mouse-over','addFeedItemStaticMessage','Liked\x20response','from','updateResourceState','addContextOptionsChanged','applyOperation','replies','webSearchStarted','init','documentContextContent','toggleWebSearch','indexes','applySuggestion','ai-chat-controller-no-active-conversation','contextItemLoadingEnded','listenTo','AITabs','uiId','clearPendingContextUI','reasoningFinished','ai-chat-conversation-start-failed','addSelectionToContext','accepted','toViewRange','focusPromptInput','selectedModel','37491pCTDyo','setContextItemLoading','_batchToChanges','setAddContextOptions','map','replyChangeGroupStateUpdated','modelSelected','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','toggleSuggestionDisplayMode','change','availableModels','422500fGAimN','data','resize','updateCurrentDocumentInContext','interactionDestroyed','activateTab','toString','_removeAISelectionMarkers','baseVersion','contextItems','alignToTop','_logError','createRange','resources','AI_CHAT_ABORTED_MESSAGE','like','getMarkersGroup','revert','current-document','resizeTabs','addSelectionToChatContext','getChild','Disliked\x20response','sourceId','handleUserInteraction','isUploadInProgress','addContextItem','anchorId','find','model','getFirstRange','showChangeInText','addFeedItemAISuggestion','enableControls','isOpen','has','ai-chat-context-unsupported-type','_startConversationSafely','upsertAIChatRating','_handleUIUserMessage','_aiChatModels','setFeedItemRenderingStrategy','partIndex','contextItemAdded','AI_CHAT_RESOURCE_LOAD_FAILED','createPositionAt','_updateRatings','activeConversation','parse','slice','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','uploadProgressChanged','viewRangeToDom','isOfficialPlugin','setIsUploadInProgress','rejectSuggestion','finishInteraction','Undo','stopInteraction','lastInteraction','interactionId','stop','AI_BALLOON_HEADER_TITLE','resetMessageInput','howMany','removed','delete','updateFeedItemAIReplySources','updateContent','mapper','rootName','createPositionFromPath','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','maxOffset','isInContext','scrollFeedToSuggestion','provider','getDocumentData','removeSelectionFromChatContext','toggleReasoning','sourcePosition','_aiChatUi','_showConversationHistory','log','_insertSuggestion','2213364dxhDmd','_toggleWebSearch','isStarted','Showing\x20conversation\x20history...','updateFeedItemAIReplySuggestionContent','ai-chat-context-invalid-data','mouseOverSuggestion','length','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-chat-missing-channel-id','toggleLoadingSkeleton','showPrevious','AIChatController','dislike','replyContentUpdated','addFileToContext','resizedTabs','main','getAttribute','getReply','filter','resourceId','addFilesToContext','TrackChangesEditing','get','reasoningStarted','forEach','AI_CHAT_UNTITLED_CONVERSATION','contextSent','children','changeGroups','start','conversationInitialized','undo','text-delta','resource','nextSibling','query','selectModel','DocumentCompare','showDiff','7aPwzpD','_getDocumentRangeForReplyChanges','insertSuggestion','disableControls','sourceResourcesLoaded','ai.chat.context','_updateReplyContent','plugins','_aiEditing','abortPromptStream','1990uJHfbS','ai.chat.models.defaultModelId','loadConversation','message','addFeedInteractionHeader','push','getInteraction','AIChatUI','_integrateEditor','name','removeContextItem','ai-chat-file-upload-failed','handleRemovedConversation','version','$graveyard','domConverter','getDocumentContext','_applyOperationsAsSuggestions','requires','closeSourceResourceBalloon','add','uid','path','updateConversationTitle','addUrlToContext','Failed\x20to\x20load\x20conversation','interactionFinished','set','range','populateSourceResourceBalloon','type','getRanges','_filterModels','getOperations','startConversation','_balloonShowDiff','setConversationTitle','setIsMaximized','context','addFeedItemUserMessage','addFeedItemError','sendUserMessage','20BwwCMm','getGroupId','modification-delta','isPremiumPlugin','isCurrentDocumentInContext','addDocumentToContext','getChildren','pluginName','view','AI_CHAT_CONTEXT_INVALID_DATA','interactionCreated','editing','resetConversationTitle','options','root','_previewedChangeGroup','_flushLastInteractionUI','marker','new','cloneNode','27385476rykvKY','indexOf','removeSelectionFromContext','toLocaleLowerCase','loadSourceResources','capabilitiesUpdated','setLoadingMessage','AIConnector','error','_createFromRanges','createConversation','_toggleReasoning','locale','ai-conversation-','isCurrentDocumentInConversation','2504ppxiaY','showFakeVisualSelection','getChildAtOffset','_removeFromContext','unshift','interactionStarted','resourceStateChanged','5608818SyUUQs','load','AI_CHAT_GENERIC_ERROR','setModel','getTransformedByOperation','end','state','pending','setConversationContext','contextItem','isLoading','webSearchFinished','config','addFeedItemAIReply','node','getDiff','data-id','updateFeedItemAIReplySuggestionPartState','addOperation','AIEditing','redo','isDisabled','document','sources','source','rejected','getPath','collaboration.channelId','addCurrentDocumentToContext','dialogClosed','full','markers','startsWith','_stopLastInteraction','showNext','setChangeGroupState','selection','stopListening','streaming','updateFeedItemAIReplyContent','getSelectionText','batch','hideFakeVisualSelection','mouseLeaveSuggestion','_setIsMaximized','content','startInteraction','ai-chat-resource-load-failed','8919AqlPCN','history','ai-request-aborted','close','ready','commands','8UBHhUv','ai-chat-conversation-init-failed','removeFeedInteraction','removeFromContext','ai-chat-source-resources-load-failed','replyId','_aiConnector','changes','clearConversationContextUI','replyCreated','open','isDocumentOperation','string'];_0x4333=function(){return _0x2662fc;};return _0x4333();}import{AIConnector as _0x47b9e8}from'../aicore/aiconnector.js';import{AITabs as _0x74747e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1ed617}from'./model/aichatconversation.js';import{getTranslation as _0x5269c3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x58a634}from'../aicore/aiediting.js';import{AIChatModels as _0x56d036}from'./model/aichatmodels.js';import{getEditorFromContext as _0x10405a}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x5d9df3,DATA_ID_MODEL_ATTRIBUTE as _0x53944a}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1ad353}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x5248cd,getMinimalSelection as _0x2fe0c8,getSuggestionPartsFromReply as _0x3580fd}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x584fd6,_DetachOperation as _0x321ea8}from'ckeditor5/src/engine.js';import{findOne as _0x1956c3,getAttribute as _0x1f6704,serialize as _0x1996f6,Document as _0x5b6d5a,findByAttribute as _0x219e9c}from'../aicore/utils/htmlparser.js';function _0x25e6(_0x2ae543,_0x3eb6cb){const _0x43335f=_0x4333();return _0x25e6=function(_0x25e6df,_0x15afed){_0x25e6df=_0x25e6df-0x88;let _0x477b58=_0x43335f[_0x25e6df];return _0x477b58;},_0x25e6(_0x2ae543,_0x3eb6cb);}import{IconAI as _0x3ad88e}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3e84cd}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x16a9ea}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3418f4{[_0x4f553e(0x16a)];[_0x4f553e(0x9f)];[_0x4f553e(0x135)];[_0x4f553e(0x109)];[_0x4f553e(0xd8)]=new Map();[_0x4f553e(0x1a5)]=null;[_0x4f553e(0x18f)]=!0x1;static get[_0x4f553e(0x17e)](){return[_0x47b9e8,_0x16a9ea,_0x5d9df3];}static get[_0x4f553e(0x19d)](){const _0xeaa5bf=_0x4f553e;return _0xeaa5bf(0x145);}static get[_0x4f553e(0x119)](){return!0x0;}static get[_0x4f553e(0x199)](){return!0x0;}[_0x4f553e(0xc4)](){const _0x2ca398=_0x4f553e;this[_0x2ca398(0x9f)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1b1)),this[_0x2ca398(0x135)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x173)),this[_0x2ca398(0x16a)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1d3)),this[_0x2ca398(0x109)]=new _0x56d036({'connector':this[_0x2ca398(0x9f)]});const _0x120948=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0xcc));this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x18e),()=>{const _0x369ba1=_0x2ca398;this[_0x369ba1(0x106)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x195),(_0x533c8c,_0x31dfad)=>{const _0x180ae9=_0x2ca398;this[_0x180ae9(0x108)]({'userMessage':_0x31dfad});}),this[_0x2ca398(0xcb)](_0x120948,_0x2ca398(0x149),(_0x56b057,_0x140940)=>{const _0x245a26=_0x2ca398;this[_0x245a26(0x8f)](_0x140940);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf4),()=>{const _0x3889dc=_0x2ca398;_0x120948[_0x3889dc(0xe3)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x16b),async()=>{const _0x37aab0=_0x2ca398;await this[_0x37aab0(0x1e1)](),await this[_0x37aab0(0x1a6)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x19b),()=>{const _0x65e268=_0x2ca398;this[_0x65e268(0x110)]?.[_0x65e268(0x1dc)](_0x5269c3(this[_0x65e268(0x192)][_0x65e268(0x1b6)],_0x65e268(0x113)));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x148),(_0x1d14b5,_0x10ac3c)=>{const _0x5563f5=_0x2ca398;this[_0x5563f5(0x110)]?.[_0x5563f5(0x14f)](Array[_0x5563f5(0xbe)](_0x10ac3c));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x184),(_0x413fd6,_0x3caf88)=>{const _0x2a4acb=_0x2ca398;this[_0x2a4acb(0x110)]?.[_0x2a4acb(0x184)](_0x3caf88);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xab),(_0xb53588,_0x1bf97d)=>{const _0x521e23=_0x2ca398;this[_0x521e23(0x110)]?.[_0x521e23(0xab)](_0x1bf97d[_0x521e23(0x1d8)],_0x1bf97d[_0x521e23(0x15c)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x176),(_0x589f31,_0x521b90)=>{const _0x18ee29=_0x2ca398;this[_0x18ee29(0x1bc)](_0x521b90);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x1ae),(_0x1d0e9f,_0x14e0ed)=>{const _0x3b6ff2=_0x2ca398;this[_0x3b6ff2(0x110)]?.[_0x3b6ff2(0x1ae)](_0x14e0ed[_0x3b6ff2(0xf8)],_0x14e0ed[_0x3b6ff2(0x15e)],_0x14e0ed[_0x3b6ff2(0x181)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc6),()=>{const _0xdc7e12=_0x2ca398;this[_0xdc7e12(0x13a)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x133),()=>{const _0x451dd6=_0x2ca398;this[_0x451dd6(0x1b5)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x15f),(_0x4b3a4d,_0x28db44)=>{const _0x1c9139=_0x2ca398;this[_0x1c9139(0x110)]?.[_0x1c9139(0x1c3)](_0x28db44);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf0),(_0x3f7395,{replyId:_0x392b3b})=>{const _0x99a17e=_0x2ca398;console[_0x99a17e(0x137)](_0x99a17e(0xbd),_0x392b3b);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x146),(_0x29d9db,{replyId:_0x17776c})=>{const _0x215e04=_0x2ca398;console[_0x215e04(0x137)](_0x215e04(0xf7),_0x17776c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x164),(_0x274205,_0x428b05)=>{const _0x322858=_0x2ca398;this[_0x322858(0x192)][_0x322858(0x169)][_0x322858(0x151)](_0x16a9ea)[_0x322858(0x96)](),this[_0x322858(0x138)](_0x428b05);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x100),(_0x2607df,{replyId:_0x3ea529,partIndex:_0x2d90a4})=>{const _0x41b9da=_0x2ca398;this[_0x41b9da(0x18f)]=this[_0x41b9da(0x135)][_0x41b9da(0x161)],this[_0x41b9da(0xb2)](_0x3ea529,_0x2d90a4);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x13f),(_0x1650da,{replyId:_0x20e702,partIndex:_0x4b873e})=>{const _0x3589a1=_0x2ca398,_0x503135=this[_0x3589a1(0x163)](_0x20e702,_0x4b873e);_0x503135&&_0x3589a1(0x17a)!=_0x503135[_0x3589a1(0x188)][_0x3589a1(0x1a4)][_0x3589a1(0x12a)]&&this[_0x3589a1(0x16a)][_0x3589a1(0x1ba)]([_0x503135[_0x3589a1(0x188)]],_0x3589a1(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x8e),()=>{const _0x4a76ee=_0x2ca398;this[_0x4a76ee(0x16a)][_0x4a76ee(0x8d)](_0x4a76ee(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc8),(_0x2d004f,_0x68a48c)=>{const _0x4cc344=_0x2ca398;this[_0x4cc344(0x192)][_0x4cc344(0x169)][_0x4cc344(0x151)](_0x16a9ea)[_0x4cc344(0x96)](),this[_0x4cc344(0xaf)](_0x68a48c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xde),async(_0x1f5b85,_0x2a9f39)=>{const _0x22be74=_0x2ca398,{reply:_0x17a61f}=this[_0x22be74(0xb5)](_0x2a9f39[_0x22be74(0x9e)]),_0x1c624e=_0x10405a(this[_0x22be74(0x192)]),_0x29a132=_0x3580fd({'editor':_0x1c624e,'changeGroups':_0x17a61f[_0x22be74(0x157)],'documentContextContent':_0x17a61f[_0x22be74(0xc5)],'showDiff':_0x2a9f39[_0x22be74(0x161)]});await this[_0x22be74(0x135)][_0x22be74(0x13d)]({'id':_0x17a61f['id'],'parts':_0x29a132,'renderingStrategy':_0x22be74(0xac)});}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x11b),(_0x8646f2,{replyId:_0x503c98,partIndex:_0x907407})=>{const _0x19b6e8=_0x2ca398;this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x9e)]==_0x503c98&&this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x10b)]==_0x907407&&this[_0x19b6e8(0x192)][_0x19b6e8(0x169)][_0x19b6e8(0x151)](_0x16a9ea)[_0x19b6e8(0x96)]();const {reply:_0x8ded17}=this[_0x19b6e8(0xb5)](_0x503c98);_0x8ded17[_0x19b6e8(0x1e3)](_0x907407,_0x19b6e8(0x1d9)),this[_0x19b6e8(0x16a)][_0x19b6e8(0x8d)](_0x19b6e8(0xbb));});}async[_0x4f553e(0xb3)](){const _0x1d3d01=_0x4f553e;this[_0x1d3d01(0x192)]instanceof _0x277810?this[_0x1d3d01(0x174)](this[_0x1d3d01(0x192)]):this[_0x1d3d01(0xcb)](this[_0x1d3d01(0x192)][_0x1d3d01(0x115)],_0x1d3d01(0x180),(_0x27d9d0,_0x4b8854)=>{const _0x2a224f=_0x1d3d01;_0x4b8854['on'](_0x2a224f(0x97),()=>{const _0x39b196=_0x2a224f;this[_0x39b196(0x174)](_0x4b8854);});}),await this[_0x1d3d01(0x106)]();}[_0x4f553e(0x138)](_0x1c5ac2){const _0x593662=_0x4f553e,_0x1943a6=_0x10405a(this[_0x593662(0x192)]);if(!_0x1943a6[_0x593662(0x169)][_0x593662(0x104)](_0x593662(0x150)))return;const _0x207c00=this[_0x593662(0x192)][_0x593662(0x169)][_0x593662(0x151)](_0x593662(0x160)),{reply:_0x534f35,interaction:_0x539ff0}=this[_0x593662(0xb5)](_0x1c5ac2[_0x593662(0x9e)]),_0x2a30aa=this[_0x593662(0x163)](_0x1c5ac2[_0x593662(0x9e)],_0x1c5ac2[_0x593662(0x10b)]),_0x574e6a=void 0x0!==_0x1c5ac2[_0x593662(0x10b)]?[_0x534f35[_0x593662(0x157)][_0x1c5ac2[_0x593662(0x10b)]]]:_0x534f35[_0x593662(0x157)][_0x593662(0x14d)](_0x1851f8=>_0x593662(0x1c7)==_0x1851f8[_0x593662(0x1c6)]),_0x5944d4=_0x574e6a[_0x593662(0xda)](_0x2cd8a7=>_0x534f35[_0x593662(0x157)][_0x593662(0x1ab)](_0x2cd8a7));_0x5944d4[_0x593662(0x153)](_0xf85b33=>_0x534f35[_0x593662(0x1e3)](_0xf85b33,_0x593662(0xd2)));const _0x16193c=_0x1ad353({'editor':_0x1943a6,'reply':_0x534f35,'interaction':_0x539ff0,'groups':_0x574e6a,'transform':!0x0,'documentCompare':_0x207c00,'documentCompareOptions':{'anchor':_0x593662(0x14a),'markDeletions':!0x0}});let _0x5f53b8;_0x2a30aa&&this[_0x593662(0xb8)](_0x2a30aa[_0x593662(0x188)]),_0x1943a6[_0x593662(0xfe)][_0x593662(0xdf)](_0x5dee0e=>{const _0x207a99=_0x593662;_0x5f53b8=_0x5dee0e[_0x207a99(0x8c)],_0x1943a6[_0x207a99(0x169)][_0x207a99(0x151)](_0x207a99(0x150))[_0x207a99(0x17d)](_0x16193c),this[_0x207a99(0x16a)][_0x207a99(0x8d)](_0x207a99(0xbb));}),this[_0x593662(0xd8)][_0x593662(0x187)](_0x5f53b8,{'interactionId':_0x539ff0['id'],'replyId':_0x534f35['id'],'indexes':_0x5944d4[_0x593662(0x112)]()}),this[_0x593662(0x10f)](_0x534f35);}[_0x4f553e(0xaf)](_0x5457cc){const _0x11784d=_0x4f553e,_0x3b626f=_0x10405a(this[_0x11784d(0x192)]),_0x45c5d2=this[_0x11784d(0x192)][_0x11784d(0x169)][_0x11784d(0x151)](_0x5d9df3),{reply:_0x5d9701,interaction:_0x597515}=this[_0x11784d(0xb5)](_0x5457cc[_0x11784d(0x9e)]),_0x1c2cd2=this[_0x11784d(0x163)](_0x5457cc[_0x11784d(0x9e)],_0x5457cc[_0x11784d(0x10b)]),_0x3c613c=void 0x0!==_0x5457cc[_0x11784d(0x10b)]?[_0x5d9701[_0x11784d(0x157)][_0x5457cc[_0x11784d(0x10b)]]]:_0x5d9701[_0x11784d(0x157)][_0x11784d(0x14d)](_0x20c99a=>_0x11784d(0x1c7)==_0x20c99a[_0x11784d(0x1c6)]),_0x56135e=_0x3c613c[_0x11784d(0xda)](_0x512bc0=>_0x5d9701[_0x11784d(0x157)][_0x11784d(0x1ab)](_0x512bc0));_0x56135e[_0x11784d(0x153)](_0x35f6c8=>_0x5d9701[_0x11784d(0x1e3)](_0x35f6c8,_0x11784d(0xd2)));const _0x58fcda=_0x1ad353({'editor':_0x3b626f,'reply':_0x5d9701,'interaction':_0x597515,'groups':_0x3c613c,'transform':!0x0,'documentCompare':_0x45c5d2,'documentCompareOptions':{'anchor':_0x11784d(0x14a),'markDeletions':!0x1}});let _0x8a9897;_0x1c2cd2&&this[_0x11784d(0xb8)](_0x1c2cd2[_0x11784d(0x188)]),_0x3b626f[_0x11784d(0xfe)][_0x11784d(0xdf)](_0x3d5bcc=>{const _0x8483e1=_0x11784d;_0x8a9897=_0x3d5bcc[_0x8483e1(0x8c)];for(const _0x3e089f of _0x58fcda)_0x3e089f[_0x8483e1(0xe9)]=_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0x1d6)][_0x8483e1(0x179)],_0x3d5bcc[_0x8483e1(0x8c)][_0x8483e1(0x1d2)](_0x3e089f),_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0xc1)](_0x3e089f);}),this[_0x11784d(0xd8)][_0x11784d(0x187)](_0x8a9897,{'interactionId':_0x597515['id'],'replyId':_0x5d9701['id'],'indexes':_0x56135e[_0x11784d(0x112)]()}),this[_0x11784d(0x10f)](_0x5d9701);}[_0x4f553e(0xb2)](_0x6ef504,_0x3e5ff8){const _0x4a9773=_0x4f553e,_0x29e8a9=_0x10405a(this[_0x4a9773(0x192)]),_0x28d6a5=this[_0x4a9773(0x163)](_0x6ef504,_0x3e5ff8),_0x1fe9b5=this[_0x4a9773(0x192)][_0x4a9773(0x169)][_0x4a9773(0x151)](_0x16a9ea);if(!_0x28d6a5)return void _0x1fe9b5[_0x4a9773(0x96)]();const {range:_0x3611e3,currentIndex:_0x1609fc,previousIndex:_0x1d5959,nextIndex:_0x34d193}=_0x28d6a5;if(this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x9e)]==_0x6ef504&&this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x10b)]==_0x1609fc)return;this[_0x4a9773(0x1a5)]={'replyId':_0x6ef504,'partIndex':_0x1609fc};const _0x412b12=new _0x3e84cd(_0x29e8a9[_0x4a9773(0x1b6)],{'showDiff':this[_0x4a9773(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a9773(0x1de)},'hideHeader':!0x0}),{reply:_0x198ee0}=this[_0x4a9773(0xb5)](_0x6ef504),_0x1f5c70=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x198ee0[_0x4a9773(0x157)][_0x1609fc]],'documentContextContent':_0x198ee0[_0x4a9773(0xc5)],'showDiff':this[_0x4a9773(0x18f)]});_0x412b12[_0x4a9773(0x128)]({'parts':_0x1f5c70,'renderingStrategy':_0x4a9773(0xac)});const _0x7b31fb=_0x1609fc!==_0x1d5959;this[_0x4a9773(0xb8)](_0x3611e3,!0x0),_0x1fe9b5[_0x4a9773(0xa3)]({'index':_0x1609fc,'title':_0x5269c3(this[_0x4a9773(0x192)][_0x4a9773(0x1b6)],_0x4a9773(0x122),(_0x1609fc+0x1)[_0x4a9773(0xe7)]()),'icon':_0x3ad88e,'mainView':_0x412b12,'showRotator':_0x7b31fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3611e3]}),this[_0x4a9773(0x135)][_0x4a9773(0x12f)](_0x6ef504,_0x1609fc),this[_0x4a9773(0xcb)](_0x412b12,_0x4a9773(0xde),(_0x57e2bb,{showDiff:_0x3c3367})=>{const _0x418936=_0x4a9773;this[_0x418936(0x18f)]=_0x3c3367;const {reply:_0x317b66}=this[_0x418936(0xb5)](_0x6ef504),_0x5aab50=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x317b66[_0x418936(0x157)][_0x1609fc]],'documentContextContent':_0x317b66[_0x418936(0xc5)],'showDiff':_0x3c3367});_0x412b12[_0x418936(0x128)]({'parts':_0x5aab50,'renderingStrategy':_0x418936(0xac)});}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0xc8),()=>{const _0x342fcb=_0x4a9773;this[_0x342fcb(0xaf)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x342fcb(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x342fcb(0x96)]();}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x164),()=>{const _0x54c8d3=_0x4a9773;this[_0x54c8d3(0x138)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x54c8d3(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x54c8d3(0x96)]();}),_0x7b31fb&&(this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1e2),()=>{const _0x253caa=_0x4a9773;this[_0x253caa(0xb2)](_0x6ef504,_0x34d193);}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x144),()=>{const _0xe87984=_0x4a9773;this[_0xe87984(0xb2)](_0x6ef504,_0x1d5959);})),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1dd),()=>{const _0x490ae0=_0x4a9773;this[_0x490ae0(0x88)](_0x1fe9b5),this[_0x490ae0(0x88)](_0x412b12),this[_0x490ae0(0x1a5)]=null;});}[_0x4f553e(0x163)](_0x41ce24,_0x1af229){const _0x1ac652=_0x4f553e,_0x51dba1=_0x10405a(this[_0x1ac652(0x192)]),{reply:_0x21f6aa,interaction:_0x559c5e}=this[_0x1ac652(0xb5)](_0x41ce24),_0x54c711=_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x14d)](_0x319a08=>_0x1ac652(0x1c7)==_0x319a08[_0x1ac652(0x1c6)]),_0x4775e8=_0x54c711[_0x1ac652(0xda)](_0xcfcbc5=>_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x1ab)](_0xcfcbc5));void 0x0===_0x1af229&&(_0x1af229=_0x4775e8[0x0]);const _0x5b2624=_0x4775e8[_0x1ac652(0x1ab)](_0x1af229);if(-0x1==_0x5b2624)return null;const _0x190727=0x0==_0x5b2624?_0x4775e8[_0x4775e8[_0x1ac652(0x140)]-0x1]:_0x4775e8[_0x5b2624-0x1],_0x581c07=_0x5b2624==_0x4775e8[_0x1ac652(0x140)]-0x1?_0x4775e8[0x0]:_0x4775e8[_0x5b2624+0x1],_0x1b2ed0=_0x54c711[_0x5b2624],_0x347f45=new _0x5b6d5a([]),_0x12ec76=new _0x5b6d5a([]);for(const _0x29c6ab of _0x1b2ed0[_0x1ac652(0xa0)])if(_0x1ac652(0x125)!=_0x29c6ab[_0x1ac652(0x18a)]&&_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x29c6ab[_0x1ac652(0x1ce)][_0x1ac652(0x1a9)](!0x0)),_0x1ac652(0x1a8)!=_0x29c6ab[_0x1ac652(0x18a)]){const _0x36022a=_0x1956c3(_0x158588=>_0x1f6704(_0x158588,_0x1ac652(0x1d0))==_0x29c6ab['id'],_0x21f6aa[_0x1ac652(0xc5)],!0x0);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x36022a[_0x1ac652(0x1a9)](!0x0));}if(0x0==_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x140)]){if(_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)]){const _0x5dd79e=_0x219e9c(_0x1ac652(0x1d0),_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)],_0x21f6aa[_0x1ac652(0xc5)]);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x5dd79e[_0x1ac652(0x15d)]&&(_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)));}else{const _0x14c0ff=_0x21f6aa[_0x1ac652(0xc5)][_0x1ac652(0x156)][0x0];if(!_0x14c0ff)return null;_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0));}}const _0x2abcc8=_0x559c5e[_0x1ac652(0x17c)](),_0x59341a=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x2abcc8[_0x1ac652(0x90)]),_0x44ad82=_0x1996f6(_0x347f45),_0x467894=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x2a3f38=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x584daa=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x10e)](_0x467894,0x0),_0x1b4f6a=_0x1996f6(_0x12ec76),_0x2a79df={'anchor':_0x584daa,'markDeletions':!0x1},_0x2f27bb=_0x51dba1[_0x1ac652(0x169)][_0x1ac652(0x151)](_0x5d9df3)[_0x1ac652(0x1cf)](_0x44ad82,_0x1b4f6a,_0x2a79df)[_0x1ac652(0x18d)]();if(!_0x2f27bb[_0x1ac652(0x140)])return null;_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xdf)](_0xa45762=>{const _0x280b47=_0x1ac652;for(const _0xadb425 of _0x2f27bb)if(_0x280b47(0xae)==_0xadb425[_0x280b47(0x18a)]){const _0x1e4422=_0xadb425[_0x280b47(0x134)],_0x3f496d=_0xadb425[_0x280b47(0x124)],_0x1a87ce=new _0x321ea8(_0x1e4422,_0x3f496d);_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0x1a87ce),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0x1a87ce);}else _0x280b47(0x1a7)!==_0xadb425[_0x280b47(0x18a)]&&(_0xadb425[_0x280b47(0xe9)]=null,_0xadb425[_0x280b47(0xa4)]=!0x1,_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0xadb425),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0xadb425));});const _0x2aceee=_0x2fe0c8(_0x51dba1,_0x2f27bb,_0x467894);_0x5248cd(_0x51dba1[_0x1ac652(0xfe)],_0x2aceee);const _0x37744f=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x43a5d4=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x101fb1=[];let _0x19b512=_0x467894,_0x52556b=_0x2a3f38;for(let _0x2afc11=0x0;_0x2afc11<_0x43a5d4[_0x1ac652(0x140)];_0x2afc11++){const _0x463fb4=_0x19b512[_0x1ac652(0x12d)]-_0x43a5d4[_0x2afc11];_0x101fb1[_0x2afc11]=_0x52556b[_0x1ac652(0x12d)]-_0x463fb4,_0x19b512=_0x19b512[_0x1ac652(0x1bb)](_0x43a5d4[_0x2afc11]),_0x52556b=_0x52556b[_0x1ac652(0x1bb)](_0x101fb1[_0x2afc11]);}const _0x3d8e67=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x37744f),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x101fb1)),_0x2c8cca=_0x2a3f38[_0x1ac652(0xf6)](0x0)[_0x1ac652(0x14b)](_0x53944a),_0x239e73=Array[_0x1ac652(0xbe)](_0x59341a[_0x1ac652(0x19c)]())[_0x1ac652(0xfd)](_0x25d524=>_0x25d524[_0x1ac652(0x14b)](_0x53944a)==_0x2c8cca)[_0x1ac652(0x1da)](),_0x43b6cc=_0x3d8e67[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x47e122=_0x3d8e67[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)]();_0x43b6cc[0x0]=_0x239e73[0x0]+_0x43b6cc[0x0],_0x47e122[0x0]=_0x239e73[0x0]+_0x47e122[0x0];let _0x48da7d=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x43b6cc),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x47e122));const _0x5dddb9=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0x94)][_0x1ac652(0x18d)](_0x2abcc8[_0x1ac652(0x179)]);for(const _0x286404 of _0x5dddb9)_0x48da7d=_0x584fd6[_0x1ac652(0x1b3)](_0x48da7d[_0x1ac652(0x1c4)](_0x286404));return{'range':_0x48da7d,'previousIndex':_0x190727,'nextIndex':_0x581c07,'currentIndex':_0x1af229};}[_0x4f553e(0x174)](_0x540066){const _0xf1ca70=_0x4f553e;if(!_0x540066[_0xf1ca70(0x169)][_0xf1ca70(0x104)](_0xf1ca70(0x11d)))return;const _0x43cf8a=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x15a)),_0x527d46=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x1d4));this[_0xf1ca70(0xcb)](_0x43cf8a,_0xf1ca70(0xf2),(_0x2907fd,_0x260892,_0x1045a6)=>{const _0x18904d=_0xf1ca70,_0xf4f676=this[_0x18904d(0xd8)][_0x18904d(0x151)](_0x260892);if(!_0xf4f676)return;const _0xcc68c4=this[_0x18904d(0x110)][_0x18904d(0x172)](_0xf4f676[_0x18904d(0x120)])[_0x18904d(0x14c)](_0xf4f676[_0x18904d(0x9e)]);_0xf4f676[_0x18904d(0xc7)][_0x18904d(0x153)](_0x3ecbf4=>_0xcc68c4[_0x18904d(0x1e3)](_0x3ecbf4,_0x18904d(0x1c7))),this[_0x18904d(0xd8)][_0x18904d(0x126)](_0x260892),this[_0x18904d(0xd8)][_0x18904d(0x187)](_0x1045a6,_0xf4f676);}),this[_0xf1ca70(0xcb)](_0x527d46,_0xf1ca70(0xf2),(_0x5700fb,_0x4ce3ca,_0x20aa08)=>{const _0x1dc504=_0xf1ca70,_0x186515=this[_0x1dc504(0xd8)][_0x1dc504(0x151)](_0x4ce3ca);if(!_0x186515)return;const _0xa3c636=this[_0x1dc504(0x110)][_0x1dc504(0x172)](_0x186515[_0x1dc504(0x120)])[_0x1dc504(0x14c)](_0x186515[_0x1dc504(0x9e)]);_0x186515[_0x1dc504(0xc7)][_0x1dc504(0x153)](_0x122f53=>_0xa3c636[_0x1dc504(0x1e3)](_0x122f53,_0x1dc504(0xd2))),this[_0x1dc504(0xd8)][_0x1dc504(0x126)](_0x4ce3ca),this[_0x1dc504(0xd8)][_0x1dc504(0x187)](_0x20aa08,_0x186515);});}async[_0x4f553e(0x16e)](_0x4ebb45){const _0x3b89cf=_0x4f553e;this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x16a9ea)[_0x3b89cf(0x96)](),this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0xac)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x0),await this[_0x3b89cf(0x1e1)]();try{const _0x4618cb=this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x74747e);this[_0x3b89cf(0x183)]('\x20'),_0x4618cb[_0x3b89cf(0x19e)][_0x3b89cf(0xe6)](_0x3b89cf(0xb7)),await this[_0x3b89cf(0x106)](_0x4ebb45);const {sessionId:_0x5c3a39}=this[_0x3b89cf(0x16a)][_0x3b89cf(0x131)]();await this[_0x3b89cf(0x110)][_0x3b89cf(0x1c1)](_0x4ebb45,_0x5c3a39),this[_0x3b89cf(0x110)][_0x3b89cf(0x1b8)]()&&this[_0x3b89cf(0x110)][_0x3b89cf(0x1dc)](_0x5269c3(this[_0x3b89cf(0x192)][_0x3b89cf(0x1b6)],_0x3b89cf(0x113)));}catch(_0x4b5c28){console[_0x3b89cf(0x1b2)](_0x3b89cf(0x185),_0x4b5c28);}finally{this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0x89)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x1);}}[_0x4f553e(0x178)](_0x9c19b3){const _0x1b2b7d=_0x4f553e;this[_0x1b2b7d(0x110)]['id']===_0x9c19b3&&this[_0x1b2b7d(0x106)]();}async[_0x4f553e(0xf5)](){const _0x418b25=_0x4f553e,_0xe28f88=this[_0x418b25(0x16a)][_0x418b25(0x8b)]();this[_0x418b25(0x110)]?.[_0x418b25(0xd1)](_0xe28f88),this[_0x418b25(0x110)]?.[_0x418b25(0x1dc)](_0x5269c3(this[_0x418b25(0x192)][_0x418b25(0x1b6)],_0x418b25(0x113)));}[_0x4f553e(0x132)](){const _0x51520b=_0x4f553e;this[_0x51520b(0x110)]?.[_0x51520b(0x1ac)]();}[_0x4f553e(0xd4)](){const _0x1029b0=_0x4f553e;this[_0x1029b0(0x135)][_0x1029b0(0xd4)]();}async[_0x4f553e(0x18e)](){const _0x16df22=_0x4f553e;await this[_0x16df22(0x106)]();}async[_0x4f553e(0xb0)]({message:_0x566059,quickActionData:_0xafa489}){const _0x7f2215=_0x4f553e;await this[_0x7f2215(0x108)]({'userMessage':_0x566059,'quickActionData':_0xafa489});}[_0x4f553e(0x197)](){const _0x12befc=_0x4f553e,_0x225f5e=this[_0x12befc(0x192)][_0x12befc(0x1cc)][_0x12befc(0x151)](_0x12befc(0x1db));if(!_0x225f5e)throw new _0x26389e(_0x12befc(0x142),this);return _0x225f5e;}async[_0x4f553e(0x106)](_0x359fa2){const _0x3dd563=_0x4f553e;try{this[_0x3dd563(0x135)][_0x3dd563(0x102)](),await this[_0x3dd563(0xb1)](_0x359fa2);}catch(_0x37a29a){_0x24ffd0(_0x3dd563(0xd0),_0x37a29a),this[_0x3dd563(0x110)]=void 0x0,this[_0x3dd563(0x135)][_0x3dd563(0x165)]();}}async[_0x4f553e(0xb1)](_0x3a2a71){const _0x44eebd=_0x4f553e,_0x27e636=this[_0x44eebd(0x192)][_0x44eebd(0x169)][_0x44eebd(0x151)](_0x16a9ea);let _0xefb62b;_0x27e636[_0x44eebd(0x103)]&&_0x27e636[_0x44eebd(0x96)](),_0xefb62b=_0x3a2a71||!this[_0x44eebd(0x110)]?this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x16d)):this[_0x44eebd(0x110)][_0x44eebd(0xd5)]['id'],await this[_0x44eebd(0x1e1)]();const _0x692d1b=this[_0x44eebd(0x197)](),_0x4a2b3b=_0x3a2a71||_0x2cbd4a();this[_0x44eebd(0x110)]=new _0x1ed617({'connector':this[_0x44eebd(0x9f)],'chatModels':this[_0x44eebd(0x109)],'defaultModelId':_0xefb62b,'conversationId':_0x4a2b3b,'group':_0x692d1b,'getEditor':()=>_0x10405a(this[_0x44eebd(0x192)])}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x159),(_0x57d5cf,_0x30ed54)=>{const _0x53513d=_0x44eebd;_0x30ed54[_0x53513d(0xe0)]=this[_0x53513d(0x18c)](_0x30ed54[_0x53513d(0xe0)],this[_0x53513d(0x192)][_0x53513d(0x1cc)][_0x53513d(0x151)](_0x53513d(0xa8))),this[_0x53513d(0x135)][_0x53513d(0x1b4)](_0x30ed54),this[_0x53513d(0x135)][_0x53513d(0x123)](),this[_0x53513d(0x135)][_0x53513d(0xce)](),this[_0x53513d(0x135)][_0x53513d(0xa1)](),_0x3a2a71||(this[_0x53513d(0x135)][_0x53513d(0x1a2)](),this[_0x53513d(0x110)]?.[_0x53513d(0x1dc)](_0x5269c3(this[_0x53513d(0x192)][_0x53513d(0x1b6)],_0x53513d(0x113))));}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x117),(_0x121ab0,_0xac1d25)=>{const _0x22b62d=_0x44eebd;this[_0x22b62d(0x135)][_0x22b62d(0x11a)](_0xac1d25[_0x22b62d(0xfa)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1a0),(_0x2c18e5,_0x1ab8c2)=>{const _0x26f9d4=_0x44eebd;this[_0x26f9d4(0x135)][_0x26f9d4(0x193)](_0x1ab8c2);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc3),()=>{const _0x3a2307=_0x44eebd;this[_0x3a2307(0x135)][_0x3a2307(0x1b0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x152),()=>{const _0x521a3c=_0x44eebd;this[_0x521a3c(0x135)][_0x521a3c(0x1b0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1cb),(_0x1734d5,_0x4c1f85)=>{const _0x46887a=_0x44eebd;this[_0x46887a(0x135)][_0x46887a(0x170)](_0x4c1f85,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xcf),(_0x2e8a05,_0x3e47e8)=>{const _0x4c22ea=_0x44eebd;this[_0x4c22ea(0x135)][_0x4c22ea(0x170)](_0x3e47e8,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1be),()=>{const _0x40740d=_0x44eebd;this[_0x40740d(0x135)][_0x40740d(0x91)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x186),async()=>{const _0x420082=_0x44eebd;await this[_0x420082(0x135)][_0x420082(0x11c)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xe5),(_0x3ad70e,_0x1c53f5)=>{const _0x1d3e62=_0x44eebd;this[_0x1d3e62(0x135)][_0x1d3e62(0x9b)](_0x1c53f5['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x190),(_0x4ed543,_0x3d4b51,_0x4e27e0)=>{const _0x56c0b4=_0x44eebd;this[_0x56c0b4(0x183)](_0x3d4b51,_0x4e27e0);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xa2),(_0x738782,_0x28c64b)=>{const _0x3c93a6=_0x44eebd;_0x3c93a6(0x15b)===_0x28c64b[_0x3c93a6(0x18a)]?this[_0x3c93a6(0x135)][_0x3c93a6(0x1cd)](_0x28c64b):this[_0x3c93a6(0x135)][_0x3c93a6(0x101)](_0x28c64b);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x147),async(_0x430394,_0x5b52af,_0x287394)=>{const _0x2615e0=_0x44eebd;await this[_0x2615e0(0x168)]({'reply':_0x5b52af,'changeGroups':_0x287394});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdb),(_0x314aa9,{reply:_0x19919a,index:_0x317f22,state:_0x483236})=>{const _0x5ae96c=_0x44eebd;this[_0x5ae96c(0x135)][_0x5ae96c(0x1d1)]({'id':_0x19919a['id'],'index':_0x317f22,'state':_0x483236});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x10c),(_0x222be,_0x1eeea0)=>{const _0x4aec95=_0x44eebd;if(this[_0x4aec95(0x135)][_0x4aec95(0xfb)](_0x1eeea0[_0x4aec95(0x1c9)],_0x1eeea0[_0x4aec95(0x1ca)]),_0x4aec95(0x1e4)===_0x1eeea0[_0x4aec95(0x1c9)][_0x4aec95(0x18a)]){const _0x281a5f=[..._0x10405a(this[_0x4aec95(0x192)])[_0x4aec95(0xfe)][_0x4aec95(0x1d6)][_0x4aec95(0x1e4)][_0x4aec95(0x18b)]()];this[_0x4aec95(0x16a)][_0x4aec95(0x1ba)](_0x281a5f,_0x4aec95(0x1b7)+this[_0x4aec95(0x110)]?.['id']);}}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x114),(_0x5345c6,_0x4d8bde)=>{const _0x26fc6d=_0x44eebd;this[_0x26fc6d(0x135)][_0x26fc6d(0x176)](_0x4d8bde[_0x26fc6d(0xcd)]),_0x26fc6d(0xf3)==_0x4d8bde[_0x26fc6d(0xcd)]&&this[_0x26fc6d(0x132)](),_0x26fc6d(0x1e4)===_0x4d8bde[_0x26fc6d(0x18a)]&&this[_0x26fc6d(0x16a)][_0x26fc6d(0x8d)](_0x26fc6d(0x1b7)+this[_0x26fc6d(0x110)]?.['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xca),(_0x46ee93,_0x238097)=>{const _0x506664=_0x44eebd;this[_0x506664(0x135)][_0x506664(0xd7)](_0x238097[_0x506664(0x1c9)][_0x506664(0xcd)],_0x238097[_0x506664(0x1ca)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x155),(_0x767c64,_0x2fb937)=>{const _0x15e486=_0x44eebd;this[_0x15e486(0x135)][_0x15e486(0x1c8)](_0x2fb937[_0x15e486(0xea)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc0),(_0x7c1a9d,_0x56f302)=>{const _0x38da7d=_0x44eebd;this[_0x38da7d(0x135)][_0x38da7d(0xd9)](_0x56f302[_0x38da7d(0x1a3)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x166),(_0x498028,_0x323e16)=>{const _0x52783c=_0x44eebd;this[_0x52783c(0x135)][_0x52783c(0x189)](_0x323e16[_0x52783c(0xf8)],_0x323e16[_0x52783c(0x1d8)],_0x323e16[_0x52783c(0xee)],_0x323e16[_0x52783c(0x181)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1bf),(_0x19815d,_0x1a5899)=>{const _0x45a33d=_0x44eebd;this[_0x45a33d(0x135)][_0x45a33d(0xbf)](_0x1a5899[_0x45a33d(0xf8)],_0x1a5899[_0x45a33d(0x14e)],_0x1a5899[_0x45a33d(0x12e)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1af),(_0x5cf358,_0x82857a)=>{const _0x20b11d=_0x44eebd;this[_0x20b11d(0x135)][_0x20b11d(0xb6)](_0x82857a);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdc),(_0x3c235b,_0x5f117e)=>{const _0x56131d=_0x44eebd;this[_0x56131d(0x135)][_0x56131d(0xa6)](_0x5f117e[_0x56131d(0xd5)],_0x5f117e[_0x56131d(0x1d5)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1b2),(_0x159ec2,{error:_0x3f1e61,interactionId:_0x4a29b1,fileName:_0x345d3e,url:_0x27ace4,sourceId:_0x23c928,sourceLabel:_0x12c164})=>{const _0x3f5dfd=_0x44eebd,_0xc95019=_0x4a29b1?_0x4a29b1+':'+_0x2cbd4a():_0x2cbd4a();_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x95))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0xbc)]({'staticMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xef)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9a))||_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xd0))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xb9)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x177))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x12c),_0x345d3e),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xad))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xdd),_0x27ace4),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x13e))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x19f)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x105))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x141)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9d))?(_0x23c928&&this[_0x3f5dfd(0x135)][_0x3f5dfd(0x17f)](_0x23c928),this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x116),_0x12c164||_0x3f5dfd(0x1d8)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x92))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x10d)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x1c2)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61));}),await this[_0x44eebd(0x110)][_0x44eebd(0xc4)](this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x167))),_0x3a2a71||await this[_0x44eebd(0x110)][_0x44eebd(0x158)]();}async[_0x4f553e(0x108)]({userMessage:_0x25f0c8,quickActionData:_0x2c615f}){const _0x1f7baa=_0x4f553e;if(!this[_0x1f7baa(0x110)])throw new _0x26389e(_0x1f7baa(0xc9));this[_0x1f7baa(0x110)][_0x1f7baa(0x19a)]()&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xe4)](this[_0x1f7baa(0x16a)][_0x1f7baa(0x131)]()),this[_0x1f7baa(0x110)]['id']&&this[_0x1f7baa(0x110)][_0x1f7baa(0x13b)]&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xf9)]({'userMessage':_0x25f0c8,'quickActionData':_0x2c615f}),this[_0x1f7baa(0xe8)]();}[_0x4f553e(0xe8)](){const _0x2cdf7f=_0x4f553e,_0x1b0037=_0x10405a(this[_0x2cdf7f(0x192)])[_0x2cdf7f(0xfe)],_0x306cf6=Array[_0x2cdf7f(0xbe)](_0x1b0037[_0x2cdf7f(0x1df)][_0x2cdf7f(0xf1)](_0x58a634));_0x1b0037[_0x2cdf7f(0xdf)](_0xf61587=>{const _0x36594a=_0x2cdf7f;_0x306cf6[_0x36594a(0x153)](_0x3c94b9=>_0xf61587[_0x36594a(0xb4)](_0x3c94b9));});}[_0x4f553e(0x136)](){const _0x3a338e=_0x4f553e;console[_0x3a338e(0x137)](_0x3a338e(0x13c));}[_0x4f553e(0x8f)](_0x4b7668){const _0x4275a5=_0x4f553e;this[_0x4275a5(0x135)][_0x4275a5(0x191)](_0x4b7668);}[_0x4f553e(0xec)](_0xed2dd8){const _0x5c560e=_0x4f553e;_0x24ffd0(_0xed2dd8[_0x5c560e(0x16f)]);}[_0x4f553e(0x1bc)](_0x4b4af1){const _0x462388=_0x4f553e;this[_0x462388(0x110)]?.[_0x462388(0x9c)](_0x4b4af1);}[_0x4f553e(0x13a)](){const _0x1c6995=_0x4f553e;this[_0x1c6995(0x110)]?.[_0x1c6995(0xc6)]();}[_0x4f553e(0x1b5)](){const _0x321cfb=_0x4f553e;this[_0x321cfb(0x110)]?.[_0x321cfb(0x133)]();}[_0x4f553e(0xb5)](_0x536bf0){const _0x512348=_0x4f553e,[_0x7bcf5d,_0xcb595d]=_0x536bf0[_0x512348(0xba)](':'),_0x4c61f1=this[_0x512348(0x110)][_0x512348(0x172)](_0x7bcf5d),_0x3e8e5d=_0x4c61f1[_0x512348(0x14c)](_0xcb595d);return{'interaction':_0x4c61f1,'reply':_0x3e8e5d};}[_0x4f553e(0xb8)](_0x4c14bf,_0x65ef0b=!0x1){const _0x2b6868=_0x4f553e,_0xb8e583=_0x10405a(this[_0x2b6868(0x192)]),_0x22055b={'target':_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x19e)][_0x2b6868(0x17b)][_0x2b6868(0x118)](_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x129)][_0x2b6868(0xd3)](_0x4c14bf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x65ef0b};_0x65ef0b&&(_0x22055b[_0x2b6868(0xeb)]=!0x0),_0xa319c1(_0x22055b);}[_0x4f553e(0x183)](_0x515041,_0x5fbf12=!0x1){const _0x27eeba=_0x4f553e;this[_0x27eeba(0x135)][_0x27eeba(0x190)](_0x515041||_0x5269c3(this[_0x27eeba(0x192)][_0x27eeba(0x1b6)],_0x27eeba(0x154)),_0x5fbf12);}[_0x4f553e(0x18c)](_0x113154,_0x1f8642){const _0x49d68b=_0x4f553e;let _0x4b3e5d;if(_0x1f8642){_0x4b3e5d=[];const _0x23043e=_0x49d68b(0xa5)==typeof _0x1f8642?[_0x1f8642[_0x49d68b(0x1ad)]()]:_0x1f8642[_0x49d68b(0xda)](_0x5269ee=>_0x5269ee[_0x49d68b(0x1ad)]());for(const _0x21da10 of _0x23043e)for(const _0x1daa88 of _0x113154)(_0x1daa88['id'][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x175)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x130)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88['id'][_0x49d68b(0x1ad)]()[_0x49d68b(0x1e0)](_0x21da10))&&_0x4b3e5d[_0x49d68b(0x171)](_0x1daa88);}else _0x4b3e5d=_0x113154;return _0x4b3e5d;}async[_0x4f553e(0x168)]({reply:_0xfa7caa,changeGroups:_0x4ee84f,renderingStrategy:_0x5b0c4e}){const _0x567291=_0x4f553e,{id:_0xe0f876,isDone:_0x1688d6,type:_0x55ca8f,parsedContent:_0x48fc1b}=_0xfa7caa;if(_0x567291(0x198)===_0x55ca8f){const _0x15f3b4=_0x10405a(this[_0x567291(0x192)]),_0x7db71b=_0x3580fd({'editor':_0x15f3b4,'showDiff':this[_0x567291(0x135)][_0x567291(0x161)],'changeGroups':_0x4ee84f,'documentContextContent':_0xfa7caa[_0x567291(0xc5)]});await this[_0x567291(0x135)][_0x567291(0x13d)]({'id':_0xe0f876,'parts':_0x7db71b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});}else _0x567291(0x15b)===_0x55ca8f&&await this[_0x567291(0x135)][_0x567291(0x8a)]({'id':_0xe0f876,'parsedContent':_0x48fc1b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});_0x1688d6&&_0xfa7caa[_0x567291(0x1d7)][_0x567291(0x140)]>0x0&&this[_0x567291(0x135)][_0x567291(0x127)](_0xe0f876,_0xfa7caa[_0x567291(0x1d7)]);}async[_0x4f553e(0x1e1)](){const _0xe8a9a7=_0x4f553e,_0x77a6e5=this[_0xe8a9a7(0x110)]?.[_0xe8a9a7(0x11f)];_0x77a6e5&&(_0x77a6e5[_0xe8a9a7(0x121)](),this[_0xe8a9a7(0x135)][_0xe8a9a7(0x11e)](_0x77a6e5));}async[_0x4f553e(0x1a6)](){const _0x3563d8=_0x4f553e,_0x432aba=this[_0x3563d8(0x110)]?.[_0x3563d8(0x11f)];if(_0x432aba){for await(const _0x7e1900 of _0x432aba[_0x3563d8(0xc2)])await this[_0x3563d8(0x168)]({'reply':_0x7e1900,'changeGroups':_0x7e1900[_0x3563d8(0x157)],'renderingStrategy':_0x3563d8(0xac)});}}[_0x4f553e(0x10f)](_0x4b816e){const _0xad828a=_0x4f553e,_0x4f30b0={'positiveCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x14d)](_0x21d484=>_0xad828a(0xd2)===_0x21d484[_0xad828a(0x1c6)])[_0xad828a(0x140)],'totalCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x140)]},_0x543e69=this[_0xad828a(0x110)][_0xad828a(0x172)](_0x4b816e[_0xad828a(0x120)])[_0xad828a(0xa7)];this[_0xad828a(0x9f)][_0xad828a(0x107)](this[_0xad828a(0x110)]['id'],_0x543e69,_0x4f30b0);}}
23
+ const _0x555e54=_0x1725;(function(_0x273f78,_0x120c5d){const _0x19a427=_0x1725,_0x470d9d=_0x273f78();while(!![]){try{const _0x4b285a=parseInt(_0x19a427(0x6e))/0x1+parseInt(_0x19a427(0xbd))/0x2+parseInt(_0x19a427(0xbf))/0x3*(parseInt(_0x19a427(0x181))/0x4)+-parseInt(_0x19a427(0x18b))/0x5*(-parseInt(_0x19a427(0x1a7))/0x6)+-parseInt(_0x19a427(0x169))/0x7*(parseInt(_0x19a427(0x120))/0x8)+parseInt(_0x19a427(0x91))/0x9+-parseInt(_0x19a427(0x80))/0xa;if(_0x4b285a===_0x120c5d)break;else _0x470d9d['push'](_0x470d9d['shift']());}catch(_0x2512e5){_0x470d9d['push'](_0x470d9d['shift']());}}}(_0x1a9f,0xf2f1c));import{ContextPlugin as _0x11e54c,Editor as _0xf79b2d}from'ckeditor5/src/core.js';function _0x1725(_0x5502f9,_0x68972f){const _0x1a9f2a=_0x1a9f();return _0x1725=function(_0x17254b,_0x3c43f8){_0x17254b=_0x17254b-0x6b;let _0x1992d0=_0x1a9f2a[_0x17254b];return _0x1992d0;},_0x1725(_0x5502f9,_0x68972f);}import{CKEditorError as _0x2db741,logError as _0x224fdf,scrollViewportToShowTarget as _0x3a00cc,uid as _0x1748d5}from'ckeditor5/src/utils.js';import{AIConnector as _0x23a5c2}from'../aicore/aiconnector.js';import{AITabs as _0x2efbc4}from'../aitabs/aitabs.js';import{AIChatConversation as _0x12da7f}from'./model/aichatconversation.js';import{getTranslation as _0xe1cad0}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x51d958}from'../aicore/aiediting.js';import{AIChatModels as _0x241b19}from'./model/aichatmodels.js';import{getEditorFromContext as _0x41f855}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x21cae1,DATA_ID_MODEL_ATTRIBUTE as _0x1d2c17}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x14293f}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x18ef92,getMinimalSelection as _0xa78144,getSuggestionPartsFromReply as _0x31c5f2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2f7680,_DetachOperation as _0x3d2d1f}from'ckeditor5/src/engine.js';function _0x1a9f(){const _0x596232=['20656180kGusyd','push','updateFeedItemAIReplySources','view','change','commands','startInteraction','clearConversationContextUI','AI_CHAT_GENERIC_ERROR','Undo','isDocumentOperation','_previewedChangeGroup','getChildren','changes','isCurrentDocumentInContext','text-delta','indexes','6549921nQkqvD','ai-chat-file-upload-failed','dialogClosed','sendUserMessage','isUploadInProgress','resource','stop','updateFeedItemAIReplySuggestionPartState','contextItem','focusPromptInput','setSelectedModel','isDisabled','baseVersion','sourceResourcesLoaded','root','contextSent','webSearchFinished','_createFromRanges','insertSuggestion','_applyOperationsAsSuggestions','getRanges','replies','remove','ai-chat-controller-no-active-conversation','isInContext','ai.chat.context','getAttribute','setAddContextOptions','addDocumentToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','model','maxOffset','removeMarker','config','removed','addFeedItemAIReply','sendMessage','resizedTabs','resize','removeFeedInteraction','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','replyId','reasoningStarted','upsertAIChatRating','1472620lLAcnc','contextItemAdded','36483dFphxP','replyContentUpdated','_batchToChanges','selection','documentContextContent','_openBalloonFor','enableControls','changeGroups','rejectSuggestion','ai-chat-context-invalid-data','type','updateContent','contextItems','editing','ai-chat-source-resources-load-failed','activateTab','addSelectionToChatContext','sourcePosition','$graveyard','_aiEditing','interactionStarted','AI_CHAT_ABORTED_MESSAGE','cloneNode','new','isOfficialPlugin','updateFeedItemAIReplyContent','find','replyChangeGroupStateUpdated','Showing\x20conversation\x20history...','_aiChatUi','AI_CHAT_UNTITLED_CONVERSATION','_flushLastInteractionUI','partIndex','_aiConnector','ai.chat.models.displayedModels','getGroupId','addFilesToContext','content','marker','addOperation','batch','context','mapper','disableControls','add','resourceStateChanged','ai-chat-controller-mouse-over','addFeedItemStaticMessage','handleUserInteraction','toggleSuggestionDisplayMode','indexOf','AI_BALLOON_HEADER_TITLE','AIConnector','loadConversation','load','toViewRange','history','viewRangeToDom','_updateRatings','showNext','_handleUIUserMessage','getMarkersGroup','createRange','error','getChildAtOffset','getRoot','clearPendingContextUI','unshift','path','toString','version','updateCapabilities','createPositionFromPath','isPremiumPlugin','locale','contextItemRemoved','get','interactionDestroyed','resetConversationTitle','setConversationContext','delete','rootName','addContextItem','revert','log','split','toggleReasoning','howMany','_integrateEditor','node','getTransformedByOperation','ready','dislike','capabilitiesUpdated','setChangeGroupState','data','ai-chat-resource-load-failed','573080oNmJiS','DocumentCompare','conversationInitialized','parse','addSelectionToContext','removeFromContext','resources','message','addFeedItemAISuggestion','rejected','_setIsMaximized','AIChatController','startConversation','streaming','getInteractionAndReplyById','static','closeSourceResourceBalloon','removeSelectionFromChatContext','selectModel','_toggleReasoning','ai-chat-url-upload-failed','main','removeContextItem','setContextItemLoading','showChangeInText','anchorId','getChild','setFeedItemRenderingStrategy','showPrevious','data-id','addUrlToContext','handleRemovedConversation','setModel','resizeTabs','isLoading','lastInteraction','modelSelected','scrollFeedToSuggestion','markers','addCurrentDocumentToContext','ai-request-aborted','pluginName','slice','toggleLoadingSkeleton','getDocumentContext','undo','AITabs','alignToTop','requires','afterInit','collaboration.channelId','setConversationTitle','activeConversation','accepted','_getDocumentRangeForReplyChanges','mouseLeaveSuggestion','updateFeedItemAIReplySuggestionContent','AIChatUI','toggleWebSearch','close','from','getDiff','source','ai-conversation-','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current-document','init','_showConversationHistory','showDiff','selectedModel','getOperations','TrackChangesEditing','query','91PvTCLv','pending','loadSourceResources','_handleStartConversation','_startConversationSafely','AIEditing','startsWith','state','Failed\x20to\x20load\x20conversation','interactionCreated','domConverter','createConversation','ai-chat-missing-channel-id','setLoadingMessage','replyCreated','getPath','finishInteraction','removeSelectionFromContext','getFirstRange','contextItemLoadingEnded','_updateReplyContent','full','applySuggestion','_stopLastInteraction','580EXuEGA','set','hideFakeVisualSelection','_insertSuggestion','uid','isOpen','_balloonShowDiff','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','abortPromptStream','showFakeVisualSelection','87590kaMFYi','_scrollToSuggestionRange','children','length','resetMessageInput','reasoningFinished','open','editors','applyOperation','addContextOptionsChanged','_removeFromContext','stopListening','map','options','uiId','nextSibling','start','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','filter','document','ai-chat-conversation-start-failed','stopInteraction','_aiChatModels','Liked\x20response','updateResourceState','AI_CHAT_RESOURCE_LOAD_FAILED','plugins','chat','252IEkVzf','getReply','webSearchStarted','redo','AI_CHAT_CONTEXT_INVALID_DATA','mouseOverSuggestion','Disliked\x20response','addResourceToContext','listenTo','messageId','setIsUploadInProgress','addFileToContext','ai-chat-context-unsupported-type','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateCurrentDocumentInContext','sources','outdated','isCurrentDocumentInConversation','interactionId','_toggleWebSearch','sourceId','setIsMaximized','range','getSelectionText','interactionFinished','resourceId','createPositionAt','addFeedInteractionHeader','populateSourceResourceBalloon','isStarted','28793IFFbsP','_removeAISelectionMarkers','end','modification-delta','isModelAvailable','ai-chat-conversation-init-failed','_applySuggestion','updateConversationTitle','forEach','_logError','addFeedItemUserMessage','uploadProgressChanged','getInteraction','has','ai.chat.models.defaultModelId','getDocumentData','like','addFeedItemError'];_0x1a9f=function(){return _0x596232;};return _0x1a9f();}import{findOne as _0x34ca8c,getAttribute as _0x2600da,serialize as _0x11046c,Document as _0x376fef,findByAttribute as _0x39a0ed}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2cf943}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49ed11}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x335532}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x11e54c{[_0x555e54(0xd2)];[_0x555e54(0xe0)];[_0x555e54(0xdc)];[_0x555e54(0x1a1)];[_0x555e54(0xc1)]=new Map();[_0x555e54(0x8b)]=null;[_0x555e54(0x187)]=!0x1;static get[_0x555e54(0x150)](){return[_0x23a5c2,_0x335532,_0x21cae1];}static get[_0x555e54(0x149)](){const _0x1dcf17=_0x555e54;return _0x1dcf17(0x12b);}static get[_0x555e54(0xd7)](){return!0x0;}static get[_0x555e54(0x108)](){return!0x0;}[_0x555e54(0x162)](){const _0x4c87a2=_0x555e54;this[_0x4c87a2(0xe0)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0xf3)),this[_0x4c87a2(0xdc)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x159)),this[_0x4c87a2(0xd2)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x16e)),this[_0x4c87a2(0x1a1)]=new _0x241b19({'connector':this[_0x4c87a2(0xe0)],'displayedModels':this[_0x4c87a2(0xe8)][_0x4c87a2(0xb2)][_0x4c87a2(0x10b)](_0x4c87a2(0xe1)),'defaultModelId':this[_0x4c87a2(0xe8)][_0x4c87a2(0xb2)][_0x4c87a2(0x10b)](_0x4c87a2(0x7c))});const _0x18b13d=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x14e));this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x12c),()=>{const _0x363ccb=_0x4c87a2;this[_0x363ccb(0x16d)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x94),(_0x51a352,_0xbef083)=>{const _0x442ea8=_0x4c87a2;this[_0x442ea8(0xfb)]({'userMessage':_0xbef083});}),this[_0x4c87a2(0x1af)](_0x18b13d,_0x4c87a2(0xb6),(_0x4f1e51,_0x13d170)=>{const _0x2e9369=_0x4c87a2;this[_0x2e9369(0x12a)](_0x13d170);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x141),()=>{const _0x26da27=_0x4c87a2;_0x18b13d[_0x26da27(0xb7)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x189),async()=>{const _0x315327=_0x4c87a2;await this[_0x315327(0x180)](),await this[_0x315327(0xde)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xad),()=>{const _0x1b7319=_0x4c87a2;this[_0x1b7319(0x154)]?.[_0x1b7319(0x147)](_0xe1cad0(this[_0x1b7319(0xe8)][_0x1b7319(0x109)],_0x1b7319(0x160)));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1b2),(_0x2a84c1,_0x43d03a)=>{const _0x358049=_0x4c87a2;this[_0x358049(0x154)]?.[_0x358049(0xe3)](Array[_0x358049(0x15c)](_0x43d03a));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x13e),(_0x27c969,_0x584c17)=>{const _0x322120=_0x4c87a2;this[_0x322120(0x154)]?.[_0x322120(0x13e)](_0x584c17);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1ae),(_0x5f090c,_0xd607)=>{const _0x4eecbf=_0x4c87a2;this[_0x4eecbf(0x154)]?.[_0x4eecbf(0x1ae)](_0xd607[_0x4eecbf(0x15e)],_0xd607[_0x4eecbf(0x96)]);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x136),(_0xbae6d3,_0x24a58b)=>{const _0x459040=_0x4c87a2;this[_0x459040(0x195)](_0x24a58b);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x16b),(_0x2b2f33,_0x16bb13)=>{const _0x2608b3=_0x4c87a2;this[_0x2608b3(0x154)]?.[_0x2608b3(0x16b)](_0x16bb13[_0x2608b3(0x1bb)],_0x16bb13[_0x2608b3(0x168)],_0x16bb13[_0x2608b3(0x185)]);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x15a),()=>{const _0x10570c=_0x4c87a2;this[_0x10570c(0x1ba)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x115),()=>{const _0x53b8bb=_0x4c87a2;this[_0x53b8bb(0x133)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x132),(_0x137f61,_0x4d9c7e)=>{const _0x3ff4f2=_0x4c87a2;this[_0x3ff4f2(0x154)]?.[_0x3ff4f2(0x140)](_0x4d9c7e);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x7e),(_0x66d5db,{replyId:_0x471cfe})=>{const _0x307b6d=_0x4c87a2;console[_0x307b6d(0x113)](_0x307b6d(0x1a2),_0x471cfe);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x11b),(_0x10d306,{replyId:_0x2e30e2})=>{const _0x5444b8=_0x4c87a2;console[_0x5444b8(0x113)](_0x5444b8(0x1ad),_0x2e30e2);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xa3),(_0x225deb,_0x3691fd)=>{const _0x2f3a8d=_0x4c87a2;this[_0x2f3a8d(0xe8)][_0x2f3a8d(0x1a5)][_0x2f3a8d(0x10b)](_0x335532)[_0x2f3a8d(0x15b)](),this[_0x2f3a8d(0x184)](_0x3691fd);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x138),(_0x14e648,{replyId:_0x660acd,partIndex:_0x3b818d})=>{const _0x12f846=_0x4c87a2;this[_0x12f846(0x187)]=this[_0x12f846(0xdc)][_0x12f846(0x164)],this[_0x12f846(0xc4)](_0x660acd,_0x3b818d);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1ac),(_0x4fe084,{replyId:_0x1220ce,partIndex:_0x236fdb})=>{const _0x1e25ae=_0x4c87a2,_0x2910f9=this[_0x1e25ae(0x156)](_0x1220ce,_0x236fdb);_0x2910f9&&_0x1e25ae(0xd1)!=_0x2910f9[_0x1e25ae(0x1bd)][_0x1e25ae(0x9f)][_0x1e25ae(0x110)]&&this[_0x1e25ae(0xd2)][_0x1e25ae(0x18a)]([_0x2910f9[_0x1e25ae(0x1bd)]],_0x1e25ae(0xed));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x157),()=>{const _0x19d017=_0x4c87a2;this[_0x19d017(0xd2)][_0x19d017(0x183)](_0x19d017(0xed));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x17f),(_0x30ff11,_0x41d499)=>{const _0x14fe3b=_0x4c87a2;this[_0x14fe3b(0xe8)][_0x14fe3b(0x1a5)][_0x14fe3b(0x10b)](_0x335532)[_0x14fe3b(0x15b)](),this[_0x14fe3b(0x74)](_0x41d499);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xf0),async(_0x47cfb5,_0x160c88)=>{const _0x56bc50=_0x4c87a2,{reply:_0x3ce8dd}=this[_0x56bc50(0x12e)](_0x160c88[_0x56bc50(0xba)]),_0x359aa0=_0x41f855(this[_0x56bc50(0xe8)]),_0x534512=_0x31c5f2({'editor':_0x359aa0,'changeGroups':_0x3ce8dd[_0x56bc50(0xc6)],'documentContextContent':_0x3ce8dd[_0x56bc50(0xc3)],'showDiff':_0x160c88[_0x56bc50(0x164)]});await this[_0x56bc50(0xdc)][_0x56bc50(0x158)]({'id':_0x3ce8dd['id'],'parts':_0x534512,'renderingStrategy':_0x56bc50(0x12f)});}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xc7),(_0x370c8e,{replyId:_0x18751e,partIndex:_0x284d12})=>{const _0xe4b96f=_0x4c87a2;this[_0xe4b96f(0x8b)]?.[_0xe4b96f(0xba)]==_0x18751e&&this[_0xe4b96f(0x8b)]?.[_0xe4b96f(0xdf)]==_0x284d12&&this[_0xe4b96f(0xe8)][_0xe4b96f(0x1a5)][_0xe4b96f(0x10b)](_0x335532)[_0xe4b96f(0x15b)]();const {reply:_0x171b34}=this[_0xe4b96f(0x12e)](_0x18751e);_0x171b34[_0xe4b96f(0x11d)](_0x284d12,_0xe4b96f(0x129)),this[_0xe4b96f(0xd2)][_0xe4b96f(0x183)](_0xe4b96f(0xed));});}async[_0x555e54(0x151)](){const _0x567f85=_0x555e54;this[_0x567f85(0xe8)]instanceof _0xf79b2d?this[_0x567f85(0x117)](this[_0x567f85(0xe8)]):this[_0x567f85(0x1af)](this[_0x567f85(0xe8)][_0x567f85(0x192)],_0x567f85(0xeb),(_0x3ca147,_0x471423)=>{const _0x14bba6=_0x567f85;_0x471423['on'](_0x14bba6(0x11a),()=>{const _0x4d8f11=_0x14bba6;this[_0x4d8f11(0x117)](_0x471423);});}),await this[_0x567f85(0x16d)]();}[_0x555e54(0x184)](_0x407fd2){const _0x504e14=_0x555e54,_0x5c236f=_0x41f855(this[_0x504e14(0xe8)]);if(!_0x5c236f[_0x504e14(0x1a5)][_0x504e14(0x7b)](_0x504e14(0x167)))return;const _0x4feea1=this[_0x504e14(0xe8)][_0x504e14(0x1a5)][_0x504e14(0x10b)](_0x504e14(0x121)),{reply:_0x53ec1b,interaction:_0x33b0c0}=this[_0x504e14(0x12e)](_0x407fd2[_0x504e14(0xba)]),_0x39c6e1=this[_0x504e14(0x156)](_0x407fd2[_0x504e14(0xba)],_0x407fd2[_0x504e14(0xdf)]),_0xd604e2=void 0x0!==_0x407fd2[_0x504e14(0xdf)]?[_0x53ec1b[_0x504e14(0xc6)][_0x407fd2[_0x504e14(0xdf)]]]:_0x53ec1b[_0x504e14(0xc6)][_0x504e14(0x19d)](_0x3be1ac=>_0x504e14(0x16a)==_0x3be1ac[_0x504e14(0x170)]),_0x3c23fa=_0xd604e2[_0x504e14(0x197)](_0x1ea450=>_0x53ec1b[_0x504e14(0xc6)][_0x504e14(0xf1)](_0x1ea450));if(!_0x39c6e1||_0x504e14(0xd1)==_0x39c6e1[_0x504e14(0x1bd)][_0x504e14(0x9f)][_0x504e14(0x110)])return void _0x3c23fa[_0x504e14(0x76)](_0x1c24f5=>_0x53ec1b[_0x504e14(0x11d)](_0x1c24f5,_0x504e14(0x1b7)));_0x3c23fa[_0x504e14(0x76)](_0x386083=>_0x53ec1b[_0x504e14(0x11d)](_0x386083,_0x504e14(0x155)));const _0x3ae98a=_0x14293f({'editor':_0x5c236f,'reply':_0x53ec1b,'interaction':_0x33b0c0,'groups':_0xd604e2,'transform':!0x0,'documentCompare':_0x4feea1,'documentCompareOptions':{'anchor':_0x504e14(0x135),'markDeletions':!0x0}});let _0x6fabc8;_0x39c6e1&&this[_0x504e14(0x18c)](_0x39c6e1[_0x504e14(0x1bd)]),_0x5c236f[_0x504e14(0xaf)][_0x504e14(0x84)](_0x46cbdf=>{const _0x278419=_0x504e14;_0x6fabc8=_0x46cbdf[_0x278419(0xe7)],_0x5c236f[_0x278419(0x1a5)][_0x278419(0x10b)](_0x278419(0x167))[_0x278419(0xa4)](_0x3ae98a),this[_0x278419(0xd2)][_0x278419(0x183)](_0x278419(0xed));}),this[_0x504e14(0xc1)][_0x504e14(0x182)](_0x6fabc8,{'interactionId':_0x33b0c0['id'],'replyId':_0x53ec1b['id'],'indexes':_0x3c23fa[_0x504e14(0x14a)]()}),this[_0x504e14(0xf9)](_0x53ec1b);}[_0x555e54(0x74)](_0x38eddb){const _0x336338=_0x555e54,_0x27e85f=_0x41f855(this[_0x336338(0xe8)]),_0x2ebde0=this[_0x336338(0xe8)][_0x336338(0x1a5)][_0x336338(0x10b)](_0x21cae1),{reply:_0xa3c543,interaction:_0xb04b65}=this[_0x336338(0x12e)](_0x38eddb[_0x336338(0xba)]),_0x3fe7df=this[_0x336338(0x156)](_0x38eddb[_0x336338(0xba)],_0x38eddb[_0x336338(0xdf)]),_0x3da6da=void 0x0!==_0x38eddb[_0x336338(0xdf)]?[_0xa3c543[_0x336338(0xc6)][_0x38eddb[_0x336338(0xdf)]]]:_0xa3c543[_0x336338(0xc6)][_0x336338(0x19d)](_0xac883=>_0x336338(0x16a)==_0xac883[_0x336338(0x170)]),_0x521f17=_0x3da6da[_0x336338(0x197)](_0x11e575=>_0xa3c543[_0x336338(0xc6)][_0x336338(0xf1)](_0x11e575));if(!_0x3fe7df||_0x336338(0xd1)==_0x3fe7df[_0x336338(0x1bd)][_0x336338(0x9f)][_0x336338(0x110)])return void _0x521f17[_0x336338(0x76)](_0x249ba4=>_0xa3c543[_0x336338(0x11d)](_0x249ba4,_0x336338(0x1b7)));_0x521f17[_0x336338(0x76)](_0x3dff7a=>_0xa3c543[_0x336338(0x11d)](_0x3dff7a,_0x336338(0x155)));const _0x351e7c=_0x14293f({'editor':_0x27e85f,'reply':_0xa3c543,'interaction':_0xb04b65,'groups':_0x3da6da,'transform':!0x0,'documentCompare':_0x2ebde0,'documentCompareOptions':{'anchor':_0x336338(0x135),'markDeletions':!0x1}});let _0x58be3e;_0x3fe7df&&this[_0x336338(0x18c)](_0x3fe7df[_0x336338(0x1bd)]),_0x27e85f[_0x336338(0xaf)][_0x336338(0x84)](_0xe27e27=>{const _0x3553c2=_0x336338;_0x58be3e=_0xe27e27[_0x3553c2(0xe7)];for(const _0xc7e438 of _0x351e7c)_0xc7e438[_0x3553c2(0x9d)]=_0x27e85f[_0x3553c2(0xaf)][_0x3553c2(0x19e)][_0x3553c2(0x105)],_0xe27e27[_0x3553c2(0xe7)][_0x3553c2(0xe6)](_0xc7e438),_0x27e85f[_0x3553c2(0xaf)][_0x3553c2(0x193)](_0xc7e438);}),this[_0x336338(0xc1)][_0x336338(0x182)](_0x58be3e,{'interactionId':_0xb04b65['id'],'replyId':_0xa3c543['id'],'indexes':_0x521f17[_0x336338(0x14a)]()}),this[_0x336338(0xf9)](_0xa3c543);}[_0x555e54(0xc4)](_0x30d0d5,_0x17dba2){const _0x44cc6c=_0x555e54,_0x38e6a8=_0x41f855(this[_0x44cc6c(0xe8)]),_0x4ae22e=this[_0x44cc6c(0x156)](_0x30d0d5,_0x17dba2),_0x4cf465=this[_0x44cc6c(0xe8)][_0x44cc6c(0x1a5)][_0x44cc6c(0x10b)](_0x335532);if(!_0x4ae22e)return void _0x4cf465[_0x44cc6c(0x15b)]();const {range:_0x4ac626,currentIndex:_0x6e1f09,previousIndex:_0x315a89,nextIndex:_0x3b44ec}=_0x4ae22e;if(_0x44cc6c(0xd1)==_0x4ac626[_0x44cc6c(0x9f)][_0x44cc6c(0x110)]){const {reply:_0x329d27}=this[_0x44cc6c(0x12e)](_0x30d0d5);return _0x329d27[_0x44cc6c(0x11d)](_0x6e1f09,_0x44cc6c(0x1b7)),void _0x4cf465[_0x44cc6c(0x15b)]();}if(this[_0x44cc6c(0x8b)]?.[_0x44cc6c(0xba)]==_0x30d0d5&&this[_0x44cc6c(0x8b)]?.[_0x44cc6c(0xdf)]==_0x6e1f09)return;this[_0x44cc6c(0x8b)]={'replyId':_0x30d0d5,'partIndex':_0x6e1f09};const _0x2bf75f=new _0x49ed11(_0x38e6a8[_0x44cc6c(0x109)],{'showDiff':this[_0x44cc6c(0x187)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x44cc6c(0x17e)},'hideHeader':!0x0}),{reply:_0x548ebf}=this[_0x44cc6c(0x12e)](_0x30d0d5),_0x288b1a=_0x31c5f2({'editor':_0x38e6a8,'changeGroups':[_0x548ebf[_0x44cc6c(0xc6)][_0x6e1f09]],'documentContextContent':_0x548ebf[_0x44cc6c(0xc3)],'showDiff':this[_0x44cc6c(0x187)]});_0x2bf75f[_0x44cc6c(0xca)]({'parts':_0x288b1a,'renderingStrategy':_0x44cc6c(0x12f)});const _0x1c6e4d=_0x6e1f09!==_0x315a89;this[_0x44cc6c(0x18c)](_0x4ac626,!0x0),_0x4cf465[_0x44cc6c(0x191)]({'index':_0x6e1f09,'title':_0xe1cad0(this[_0x44cc6c(0xe8)][_0x44cc6c(0x109)],_0x44cc6c(0xf2),(_0x6e1f09+0x1)[_0x44cc6c(0x104)]()),'icon':_0x2cf943,'mainView':_0x2bf75f,'showRotator':_0x1c6e4d,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4ac626]}),this[_0x44cc6c(0xdc)][_0x44cc6c(0x145)](_0x30d0d5,_0x6e1f09),this[_0x44cc6c(0x1af)](_0x2bf75f,_0x44cc6c(0xf0),(_0x254f13,{showDiff:_0x3ec8a6})=>{const _0x1d1670=_0x44cc6c;this[_0x1d1670(0x187)]=_0x3ec8a6;const {reply:_0x15d41e}=this[_0x1d1670(0x12e)](_0x30d0d5),_0x3ab0d4=_0x31c5f2({'editor':_0x38e6a8,'changeGroups':[_0x15d41e[_0x1d1670(0xc6)][_0x6e1f09]],'documentContextContent':_0x15d41e[_0x1d1670(0xc3)],'showDiff':_0x3ec8a6});_0x2bf75f[_0x1d1670(0xca)]({'parts':_0x3ab0d4,'renderingStrategy':_0x1d1670(0x12f)});}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x17f),()=>{const _0x4b5bd2=_0x44cc6c;this[_0x4b5bd2(0x74)]({'replyId':_0x30d0d5,'partIndex':_0x6e1f09}),_0x1c6e4d?this[_0x4b5bd2(0xc4)](_0x30d0d5,_0x3b44ec):_0x4cf465[_0x4b5bd2(0x15b)]();}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0xa3),()=>{const _0x134dd4=_0x44cc6c;this[_0x134dd4(0x184)]({'replyId':_0x30d0d5,'partIndex':_0x6e1f09}),_0x1c6e4d?this[_0x134dd4(0xc4)](_0x30d0d5,_0x3b44ec):_0x4cf465[_0x134dd4(0x15b)]();}),_0x1c6e4d&&(this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0xfa),()=>{const _0x183c13=_0x44cc6c;this[_0x183c13(0xc4)](_0x30d0d5,_0x3b44ec);}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x13c),()=>{const _0x205ef8=_0x44cc6c;this[_0x205ef8(0xc4)](_0x30d0d5,_0x315a89);})),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x93),()=>{const _0x34f077=_0x44cc6c;this[_0x34f077(0x196)](_0x4cf465),this[_0x34f077(0x196)](_0x2bf75f),this[_0x34f077(0x8b)]=null;});}[_0x555e54(0x156)](_0x360233,_0x521450){const _0x47167b=_0x555e54,_0xc0d718=_0x41f855(this[_0x47167b(0xe8)]),{reply:_0x4b16e5,interaction:_0x1a9c94}=this[_0x47167b(0x12e)](_0x360233),_0x44e26c=_0x4b16e5[_0x47167b(0xc6)][_0x47167b(0x19d)](_0x588163=>_0x47167b(0x16a)==_0x588163[_0x47167b(0x170)]),_0x3c299a=_0x44e26c[_0x47167b(0x197)](_0x34b3b1=>_0x4b16e5[_0x47167b(0xc6)][_0x47167b(0xf1)](_0x34b3b1));void 0x0===_0x521450&&(_0x521450=_0x3c299a[0x0]);const _0x37d0fa=_0x3c299a[_0x47167b(0xf1)](_0x521450);if(-0x1==_0x37d0fa)return null;const _0x13b681=0x0==_0x37d0fa?_0x3c299a[_0x3c299a[_0x47167b(0x18e)]-0x1]:_0x3c299a[_0x37d0fa-0x1],_0xfda8de=_0x37d0fa==_0x3c299a[_0x47167b(0x18e)]-0x1?_0x3c299a[0x0]:_0x3c299a[_0x37d0fa+0x1],_0x2a1fe4=_0x44e26c[_0x37d0fa],_0x132e62=new _0x376fef([]),_0x7268af=new _0x376fef([]);for(const _0x18495c of _0x2a1fe4[_0x47167b(0x8d)])if(_0x47167b(0xb3)!=_0x18495c[_0x47167b(0xc9)]&&_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0x18495c[_0x47167b(0x118)][_0x47167b(0xd5)](!0x0)),_0x47167b(0xd6)!=_0x18495c[_0x47167b(0xc9)]){const _0x35b5c8=_0x34ca8c(_0x10890f=>_0x2600da(_0x10890f,_0x47167b(0x13d))==_0x18495c['id'],_0x4b16e5[_0x47167b(0xc3)],!0x0);_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0x35b5c8[_0x47167b(0xd5)](!0x0));}if(0x0==_0x132e62[_0x47167b(0x18d)][_0x47167b(0x18e)]){if(_0x2a1fe4[_0x47167b(0x8d)][0x0][_0x47167b(0x139)]){const _0xe6f353=_0x39a0ed(_0x47167b(0x13d),_0x2a1fe4[_0x47167b(0x8d)][0x0][_0x47167b(0x139)],_0x4b16e5[_0x47167b(0xc3)]);_0x132e62[_0x47167b(0x18d)][_0x47167b(0x102)](_0xe6f353[_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x102)](_0xe6f353[_0x47167b(0xd5)](!0x0)),_0xe6f353[_0x47167b(0x19a)]&&(_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0xe6f353[_0x47167b(0x19a)][_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0xe6f353[_0x47167b(0x19a)][_0x47167b(0xd5)](!0x0)));}else{const _0x1ca595=_0x4b16e5[_0x47167b(0xc3)][_0x47167b(0x18d)][0x0];if(!_0x1ca595)return null;_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0x1ca595[_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0x1ca595[_0x47167b(0xd5)](!0x0));}}const _0x371793=_0x1a9c94[_0x47167b(0x14c)](),_0x23420c=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x371793[_0x47167b(0xe4)]),_0x14d80c=_0x11046c(_0x132e62),_0x37dd85=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x14d80c),_0x5f39ba=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x14d80c),_0x58a8e6=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x1c1)](_0x37dd85,0x0),_0x4e75da=_0x11046c(_0x7268af),_0x3cf8d7={'anchor':_0x58a8e6,'markDeletions':!0x1},_0x241887=_0xc0d718[_0x47167b(0x1a5)][_0x47167b(0x10b)](_0x21cae1)[_0x47167b(0x15d)](_0x14d80c,_0x4e75da,_0x3cf8d7)[_0x47167b(0x166)]();if(!_0x241887[_0x47167b(0x18e)])return null;_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x84)](_0x2cfe2f=>{const _0x30622b=_0x47167b;for(const _0x3415b1 of _0x241887)if(_0x30622b(0xa7)==_0x3415b1[_0x30622b(0xc9)]){const _0x563b4d=_0x3415b1[_0x30622b(0xd0)],_0x1ceac5=_0x3415b1[_0x30622b(0x116)],_0x253088=new _0x3d2d1f(_0x563b4d,_0x1ceac5);_0x2cfe2f[_0x30622b(0xe7)][_0x30622b(0xe6)](_0x253088),_0xc0d718[_0x30622b(0xaf)][_0x30622b(0x193)](_0x253088);}else _0x30622b(0xe5)!==_0x3415b1[_0x30622b(0xc9)]&&(_0x3415b1[_0x30622b(0x9d)]=null,_0x3415b1[_0x30622b(0x8a)]=!0x1,_0x2cfe2f[_0x30622b(0xe7)][_0x30622b(0xe6)](_0x3415b1),_0xc0d718[_0x30622b(0xaf)][_0x30622b(0x193)](_0x3415b1));});const _0x2c90c1=_0xa78144(_0xc0d718,_0x241887,_0x37dd85);_0x18ef92(_0xc0d718[_0x47167b(0xaf)],_0x2c90c1);const _0x178b9a=_0x2c90c1[_0x47167b(0x17b)]()[_0x47167b(0x19b)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x1e3d63=_0x2c90c1[_0x47167b(0x17b)]()[_0x47167b(0x70)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x657ab=[];let _0x39e170=_0x37dd85,_0x3d0860=_0x5f39ba;for(let _0x463f6f=0x0;_0x463f6f<_0x1e3d63[_0x47167b(0x18e)];_0x463f6f++){const _0x567a89=_0x39e170[_0x47167b(0xb0)]-_0x1e3d63[_0x463f6f];_0x657ab[_0x463f6f]=_0x3d0860[_0x47167b(0xb0)]-_0x567a89,_0x39e170=_0x39e170[_0x47167b(0xff)](_0x1e3d63[_0x463f6f]),_0x3d0860=_0x3d0860[_0x47167b(0xff)](_0x657ab[_0x463f6f]);}const _0x14fad2=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0xfd)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0x5f39ba,_0x178b9a),_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0x5f39ba,_0x657ab)),_0x400e91=_0x5f39ba[_0x47167b(0x13a)](0x0)[_0x47167b(0xab)](_0x1d2c17),_0x164fd2=Array[_0x47167b(0x15c)](_0x23420c[_0x47167b(0x8c)]())[_0x47167b(0xd9)](_0x1229e2=>_0x1229e2[_0x47167b(0xab)](_0x1d2c17)==_0x400e91)[_0x47167b(0x178)](),_0x11a347=_0x14fad2[_0x47167b(0x19b)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x25a0a0=_0x14fad2[_0x47167b(0x70)][_0x47167b(0x103)][_0x47167b(0x14a)]();_0x11a347[0x0]=_0x164fd2[0x0]+_0x11a347[0x0],_0x25a0a0[0x0]=_0x164fd2[0x0]+_0x25a0a0[0x0];let _0x3dcec4=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0xfd)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0x100)](),_0x11a347),_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0x100)](),_0x25a0a0));const _0x40a886=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0xf7)][_0x47167b(0x166)](_0x371793[_0x47167b(0x105)]);for(const _0x590eb0 of _0x40a886)_0x3dcec4=_0x2f7680[_0x47167b(0xa2)](_0x3dcec4[_0x47167b(0x119)](_0x590eb0));return{'range':_0x3dcec4,'previousIndex':_0x13b681,'nextIndex':_0xfda8de,'currentIndex':_0x521450};}[_0x555e54(0x117)](_0x65095e){const _0x4af8a5=_0x555e54;if(!_0x65095e[_0x4af8a5(0x1a5)][_0x4af8a5(0x7b)](_0x4af8a5(0x89)))return;const _0x1bd1d4=_0x65095e[_0x4af8a5(0x85)][_0x4af8a5(0x10b)](_0x4af8a5(0x14d)),_0x48eb3c=_0x65095e[_0x4af8a5(0x85)][_0x4af8a5(0x10b)](_0x4af8a5(0x1aa));this[_0x4af8a5(0x1af)](_0x1bd1d4,_0x4af8a5(0x112),(_0x3e6c10,_0x5051e6,_0x367f8a)=>{const _0x5b0f67=_0x4af8a5,_0x3b73e8=this[_0x5b0f67(0xc1)][_0x5b0f67(0x10b)](_0x5051e6);if(!_0x3b73e8)return;const _0x3b1080=this[_0x5b0f67(0x154)][_0x5b0f67(0x7a)](_0x3b73e8[_0x5b0f67(0x1b9)])[_0x5b0f67(0x1a8)](_0x3b73e8[_0x5b0f67(0xba)]);_0x3b73e8[_0x5b0f67(0x90)][_0x5b0f67(0x76)](_0x452ed8=>_0x3b1080[_0x5b0f67(0x11d)](_0x452ed8,_0x5b0f67(0x16a))),this[_0x5b0f67(0xc1)][_0x5b0f67(0x10f)](_0x5051e6),this[_0x5b0f67(0xc1)][_0x5b0f67(0x182)](_0x367f8a,_0x3b73e8);}),this[_0x4af8a5(0x1af)](_0x48eb3c,_0x4af8a5(0x112),(_0x297a1a,_0x32b8db,_0x507075)=>{const _0x176112=_0x4af8a5,_0x651103=this[_0x176112(0xc1)][_0x176112(0x10b)](_0x32b8db);if(!_0x651103)return;const _0x396d65=this[_0x176112(0x154)][_0x176112(0x7a)](_0x651103[_0x176112(0x1b9)])[_0x176112(0x1a8)](_0x651103[_0x176112(0xba)]);_0x651103[_0x176112(0x90)][_0x176112(0x76)](_0x1c1c68=>_0x396d65[_0x176112(0x11d)](_0x1c1c68,_0x176112(0x155))),this[_0x176112(0xc1)][_0x176112(0x10f)](_0x32b8db),this[_0x176112(0xc1)][_0x176112(0x182)](_0x507075,_0x651103);});}async[_0x555e54(0xf4)](_0x2bde88){const _0x5d0854=_0x555e54;this[_0x5d0854(0xe8)][_0x5d0854(0x1a5)][_0x5d0854(0x10b)](_0x335532)[_0x5d0854(0x15b)](),this[_0x5d0854(0xdc)][_0x5d0854(0x13b)](_0x5d0854(0x12f)),this[_0x5d0854(0xdc)][_0x5d0854(0x14b)](!0x0),await this[_0x5d0854(0x180)]();try{const _0x5d7834=this[_0x5d0854(0xe8)][_0x5d0854(0x1a5)][_0x5d0854(0x10b)](_0x2efbc4);this[_0x5d0854(0x75)]('\x20'),_0x5d7834[_0x5d0854(0x83)][_0x5d0854(0xce)](_0x5d0854(0x1a6)),await this[_0x5d0854(0x16d)](_0x2bde88);const {sessionId:_0x3ef430}=this[_0x5d0854(0xd2)][_0x5d0854(0x7d)]();await this[_0x5d0854(0x154)][_0x5d0854(0xf5)](_0x2bde88,_0x3ef430),this[_0x5d0854(0x154)][_0x5d0854(0x1b8)]()&&this[_0x5d0854(0x154)][_0x5d0854(0x147)](_0xe1cad0(this[_0x5d0854(0xe8)][_0x5d0854(0x109)],_0x5d0854(0x160)));}catch(_0x307a3f){console[_0x5d0854(0xfe)](_0x5d0854(0x171),_0x307a3f);}finally{this[_0x5d0854(0xdc)][_0x5d0854(0x13b)](_0x5d0854(0x12d)),this[_0x5d0854(0xdc)][_0x5d0854(0x14b)](!0x1);}}[_0x555e54(0x13f)](_0x781f00){const _0x301f01=_0x555e54;this[_0x301f01(0x154)]['id']===_0x781f00&&this[_0x301f01(0x16d)]();}async[_0x555e54(0xcf)](){const _0x3d0f39=_0x555e54,_0x4af594=this[_0x3d0f39(0xd2)][_0x3d0f39(0x1be)]();this[_0x3d0f39(0x154)]?.[_0x3d0f39(0x124)](_0x4af594),this[_0x3d0f39(0x154)]?.[_0x3d0f39(0x147)](_0xe1cad0(this[_0x3d0f39(0xe8)][_0x3d0f39(0x109)],_0x3d0f39(0x160)));}[_0x555e54(0x131)](){const _0x5cc8b3=_0x555e54;this[_0x5cc8b3(0x154)]?.[_0x5cc8b3(0x17a)]();}[_0x555e54(0x9a)](){const _0x391fb0=_0x555e54;this[_0x391fb0(0xdc)][_0x391fb0(0x9a)]();}async[_0x555e54(0x12c)](){const _0xa4cb18=_0x555e54;await this[_0xa4cb18(0x16d)]();}async[_0x555e54(0xb5)]({message:_0xf294bf,quickActionData:_0x15bfcf}){const _0x271b77=_0x555e54;await this[_0x271b77(0xfb)]({'userMessage':_0xf294bf,'quickActionData':_0x15bfcf});}[_0x555e54(0xe2)](){const _0x1b21c0=_0x555e54,_0x5d9ae4=this[_0x1b21c0(0xe8)][_0x1b21c0(0xb2)][_0x1b21c0(0x10b)](_0x1b21c0(0x152));if(!_0x5d9ae4)throw new _0x2db741(_0x1b21c0(0x175),this);return _0x5d9ae4;}async[_0x555e54(0x16d)](_0x31ee4b){const _0x37bd99=_0x555e54;try{this[_0x37bd99(0xdc)][_0x37bd99(0xc5)](),await this[_0x37bd99(0x16c)](_0x31ee4b);}catch(_0x3a24ce){_0x224fdf(_0x37bd99(0x19f),_0x3a24ce),this[_0x37bd99(0x154)]=void 0x0,this[_0x37bd99(0xdc)][_0x37bd99(0xea)]();}}async[_0x555e54(0x16c)](_0x5b66c0){const _0xf943f0=_0x555e54,_0x2870d6=this[_0xf943f0(0xe8)][_0xf943f0(0x1a5)][_0xf943f0(0x10b)](_0x335532);let _0x1ceb20;_0x2870d6[_0xf943f0(0x186)]&&_0x2870d6[_0xf943f0(0x15b)](),_0x5b66c0||!this[_0xf943f0(0x154)]?_0x1ceb20=this[_0xf943f0(0xe8)][_0xf943f0(0xb2)][_0xf943f0(0x10b)](_0xf943f0(0x7c)):this[_0xf943f0(0xdc)][_0xf943f0(0x72)]&&(_0x1ceb20=this[_0xf943f0(0x154)][_0xf943f0(0x165)]['id']),await this[_0xf943f0(0x180)]();const _0xa2a4a7=this[_0xf943f0(0xe2)](),_0x3b06c5=_0x5b66c0||_0x1748d5();this[_0xf943f0(0x154)]=new _0x12da7f({'connector':this[_0xf943f0(0xe0)],'chatModels':this[_0xf943f0(0x1a1)],'selectedModelId':_0x1ceb20,'conversationId':_0x3b06c5,'group':_0xa2a4a7,'getEditor':()=>_0x41f855(this[_0xf943f0(0xe8)])}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x122),(_0xe2df5,_0x346998)=>{const _0x13476e=_0xf943f0;this[_0x13476e(0xdc)][_0x13476e(0x174)](_0x346998),this[_0x13476e(0xdc)][_0x13476e(0x18f)](),this[_0x13476e(0xdc)][_0x13476e(0x101)](),this[_0x13476e(0xdc)][_0x13476e(0x87)](),_0x5b66c0||(this[_0x13476e(0xdc)][_0x13476e(0x10d)](),this[_0x13476e(0x154)]?.[_0x13476e(0x147)](_0xe1cad0(this[_0x13476e(0xe8)][_0x13476e(0x109)],_0x13476e(0x160))));}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x79),(_0x6cf3a9,_0x262288)=>{const _0x19e75d=_0xf943f0;this[_0x19e75d(0xdc)][_0x19e75d(0x1b1)](_0x262288[_0x19e75d(0x95)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x172),(_0x52c7cf,_0xc9b98f)=>{const _0x538ee8=_0xf943f0;this[_0x538ee8(0xdc)][_0x538ee8(0x78)](_0xc9b98f);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x1a9),()=>{const _0x35f617=_0xf943f0;this[_0x35f617(0xdc)][_0x35f617(0x176)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xbb),()=>{const _0xce0d13=_0xf943f0;this[_0xce0d13(0xdc)][_0xce0d13(0x176)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xa1),(_0x31b18a,_0x18fb05)=>{const _0x32c4e4=_0xf943f0;this[_0x32c4e4(0xdc)][_0x32c4e4(0x6b)](_0x18fb05,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x190),(_0x1722d7,_0x290643)=>{const _0x40f6d4=_0xf943f0;this[_0x40f6d4(0xdc)][_0x40f6d4(0x6b)](_0x290643,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xd3),()=>{const _0x1285af=_0xf943f0;this[_0x1285af(0xdc)][_0x1285af(0x86)]();}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x1bf),async()=>{const _0x203c08=_0xf943f0;await this[_0x203c08(0xdc)][_0x203c08(0x179)]();}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x10c),(_0x2b8d1c,_0x4289cb)=>{const _0xca573f=_0xf943f0;this[_0xca573f(0xdc)][_0xca573f(0xb8)](_0x4289cb['id']);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x153),(_0xccccac,_0x310d64,_0x9d72e6)=>{const _0xfc4526=_0xf943f0;this[_0xfc4526(0x75)](_0x310d64,_0x9d72e6);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x177),(_0x32d5a9,_0x2ddd94)=>{const _0x4f70b6=_0xf943f0;_0x4f70b6(0x8f)===_0x2ddd94[_0x4f70b6(0xc9)]?this[_0x4f70b6(0xdc)][_0x4f70b6(0xb4)](_0x2ddd94):this[_0x4f70b6(0xdc)][_0x4f70b6(0x128)](_0x2ddd94);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xc0),async(_0x57da63,_0x29bdc0,_0x338832)=>{const _0x56aa1e=_0xf943f0;await this[_0x56aa1e(0x17d)]({'reply':_0x29bdc0,'changeGroups':_0x338832});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xda),(_0x429299,{reply:_0x56cc6e,index:_0x49613e,state:_0x178036})=>{const _0x4291f5=_0xf943f0;this[_0x4291f5(0xdc)][_0x4291f5(0x98)]({'id':_0x56cc6e['id'],'index':_0x49613e,'state':_0x178036});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xbe),(_0x43608b,_0x5eecba)=>{const _0x3c85f1=_0xf943f0;if(this[_0x3c85f1(0xdc)][_0x3c85f1(0x111)](_0x5eecba[_0x3c85f1(0x99)],_0x5eecba[_0x3c85f1(0x142)]),_0x3c85f1(0xc2)===_0x5eecba[_0x3c85f1(0x99)][_0x3c85f1(0xc9)]){const _0x242193=[..._0x41f855(this[_0x3c85f1(0xe8)])[_0x3c85f1(0xaf)][_0x3c85f1(0x19e)][_0x3c85f1(0xc2)][_0x3c85f1(0xa5)]()];this[_0x3c85f1(0xd2)][_0x3c85f1(0x18a)](_0x242193,_0x3c85f1(0x15f)+this[_0x3c85f1(0x154)]?.['id']);}}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x10a),(_0x3653f0,_0x2b2351)=>{const _0x27c4c4=_0xf943f0;this[_0x27c4c4(0xdc)][_0x27c4c4(0x136)](_0x2b2351[_0x27c4c4(0x199)]),_0x27c4c4(0x161)==_0x2b2351[_0x27c4c4(0x199)]&&this[_0x27c4c4(0x131)](),_0x27c4c4(0xc2)===_0x2b2351[_0x27c4c4(0xc9)]&&this[_0x27c4c4(0xd2)][_0x27c4c4(0x183)](_0x27c4c4(0x15f)+this[_0x27c4c4(0x154)]?.['id']);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x17c),(_0x5453cd,_0x513e47)=>{const _0x46fc38=_0xf943f0;this[_0x46fc38(0xdc)][_0x46fc38(0x137)](_0x513e47[_0x46fc38(0x99)][_0x46fc38(0x199)],_0x513e47[_0x46fc38(0x142)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xa0),(_0xe72735,_0x2a0b82)=>{const _0x27d813=_0xf943f0;this[_0x27d813(0xdc)][_0x27d813(0x10e)](_0x2a0b82[_0x27d813(0xcb)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x194),(_0x1ec048,_0x1b3663)=>{const _0x5900f1=_0xf943f0;this[_0x5900f1(0xdc)][_0x5900f1(0xac)](_0x1b3663[_0x5900f1(0x198)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x9e),(_0x589c77,_0x19062a)=>{const _0x5c6460=_0xf943f0;this[_0x5c6460(0xdc)][_0x5c6460(0x6c)](_0x19062a[_0x5c6460(0x1bb)],_0x19062a[_0x5c6460(0x15e)],_0x19062a[_0x5c6460(0x126)],_0x19062a[_0x5c6460(0x185)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xec),(_0x39baee,_0x16e89a)=>{const _0x543a3e=_0xf943f0;this[_0x543a3e(0xdc)][_0x543a3e(0x1a3)](_0x16e89a[_0x543a3e(0x1bb)],_0x16e89a[_0x543a3e(0x1c0)],_0x16e89a[_0x543a3e(0xa9)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x11c),(_0x1b1854,_0x2f257c)=>{const _0x3a85a6=_0xf943f0;this[_0x3a85a6(0xdc)][_0x3a85a6(0x106)](_0x2f257c);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x144),(_0x88695,_0x46be5f)=>{const _0x3929c4=_0xf943f0;this[_0x3929c4(0xdc)][_0x3929c4(0x9b)](_0x46be5f[_0x3929c4(0x165)],_0x46be5f[_0x3929c4(0x9c)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xfe),(_0x107ac5,{error:_0x247fbd,interactionId:_0x6ab05d,fileName:_0x45dd9b,url:_0x1b94e8,sourceId:_0x8382c0,sourceLabel:_0x456ca6})=>{const _0x37224b=_0xf943f0,_0x37dc42=_0x6ab05d?_0x6ab05d+':'+_0x1748d5():_0x1748d5();_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x148))?this[_0x37224b(0xdc)][_0x37224b(0xee)]({'staticMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xd4)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x73))||_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x19f))?(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1b4)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x92))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xae),_0x45dd9b),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x134))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x188),_0x1b94e8),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0xc8))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1ab)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x1b3))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xb9)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0xcd))?(_0x8382c0&&this[_0x37224b(0xdc)][_0x37224b(0x130)](_0x8382c0),this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x19c),_0x456ca6||_0x37224b(0x15e)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x11f))?(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1a4)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x88)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd));}),await this[_0xf943f0(0x154)][_0xf943f0(0x162)](this[_0xf943f0(0xe8)][_0xf943f0(0xb2)][_0xf943f0(0x10b)](_0xf943f0(0xaa))),_0x5b66c0||await this[_0xf943f0(0x154)][_0xf943f0(0x19b)]();}async[_0x555e54(0xfb)]({userMessage:_0x70f32a,quickActionData:_0x291490}){const _0x3cc05f=_0x555e54;if(!this[_0x3cc05f(0x154)])throw new _0x2db741(_0x3cc05f(0xa8));this[_0x3cc05f(0x154)][_0x3cc05f(0x8e)]()&&await this[_0x3cc05f(0x154)][_0x3cc05f(0x1b5)](this[_0x3cc05f(0xd2)][_0x3cc05f(0x7d)]()),this[_0x3cc05f(0x154)]['id']&&this[_0x3cc05f(0x154)][_0x3cc05f(0x6d)]&&await this[_0x3cc05f(0x154)][_0x3cc05f(0xef)]({'userMessage':_0x70f32a,'quickActionData':_0x291490}),this[_0x3cc05f(0x6f)]();}[_0x555e54(0x6f)](){const _0x290f10=_0x555e54,_0x29ad22=_0x41f855(this[_0x290f10(0xe8)])[_0x290f10(0xaf)],_0x5e842b=Array[_0x290f10(0x15c)](_0x29ad22[_0x290f10(0x146)][_0x290f10(0xfc)](_0x51d958));_0x29ad22[_0x290f10(0x84)](_0x40477b=>{const _0x360302=_0x290f10;_0x5e842b[_0x360302(0x76)](_0x958db0=>_0x40477b[_0x360302(0xb1)](_0x958db0));});}[_0x555e54(0x163)](){const _0x5867bc=_0x555e54;console[_0x5867bc(0x113)](_0x5867bc(0xdb));}[_0x555e54(0x12a)](_0x16c793){const _0x11bcc8=_0x555e54;this[_0x11bcc8(0xdc)][_0x11bcc8(0x1bc)](_0x16c793);}[_0x555e54(0x77)](_0x27a74c){const _0x1e33c0=_0x555e54;_0x224fdf(_0x27a74c[_0x1e33c0(0x127)]);}[_0x555e54(0x195)](_0x3eefd4){const _0x58bd32=_0x555e54;this[_0x58bd32(0x154)]?.[_0x58bd32(0x125)](_0x3eefd4);}[_0x555e54(0x1ba)](){const _0x37ed34=_0x555e54;this[_0x37ed34(0x154)]?.[_0x37ed34(0x15a)]();}[_0x555e54(0x133)](){const _0xb93cfa=_0x555e54;this[_0xb93cfa(0x154)]?.[_0xb93cfa(0x115)]();}[_0x555e54(0x12e)](_0x5128a2){const _0x5e1870=_0x555e54,[_0x57eddd,_0x5a8805]=_0x5128a2[_0x5e1870(0x114)](':'),_0x45af1b=this[_0x5e1870(0x154)][_0x5e1870(0x7a)](_0x57eddd),_0x215f4c=_0x45af1b[_0x5e1870(0x1a8)](_0x5a8805);return{'interaction':_0x45af1b,'reply':_0x215f4c};}[_0x555e54(0x18c)](_0x2a0c1c,_0x1f0b15=!0x1){const _0x13d5bd=_0x555e54,_0x2402bb=_0x41f855(this[_0x13d5bd(0xe8)]),_0x1a0564={'target':_0x2402bb[_0x13d5bd(0xcc)][_0x13d5bd(0x83)][_0x13d5bd(0x173)][_0x13d5bd(0xf8)](_0x2402bb[_0x13d5bd(0xcc)][_0x13d5bd(0xe9)][_0x13d5bd(0xf6)](_0x2a0c1c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1f0b15};_0x1f0b15&&(_0x1a0564[_0x13d5bd(0x14f)]=!0x0),_0x3a00cc(_0x1a0564);}[_0x555e54(0x75)](_0x226ee4,_0x152824=!0x1){const _0x165573=_0x555e54;this[_0x165573(0xdc)][_0x165573(0x153)](_0x226ee4||_0xe1cad0(this[_0x165573(0xe8)][_0x165573(0x109)],_0x165573(0xdd)),_0x152824);}async[_0x555e54(0x17d)]({reply:_0x455c62,changeGroups:_0x41d9e9,renderingStrategy:_0x19960e}){const _0x3f32db=_0x555e54,{id:_0x18d4b5,isDone:_0x504ca2,type:_0x24816b,parsedContent:_0x2d089b}=_0x455c62;if(_0x3f32db(0x71)===_0x24816b){const _0x57351f=_0x41f855(this[_0x3f32db(0xe8)]),_0x56a1e6=_0x31c5f2({'editor':_0x57351f,'showDiff':this[_0x3f32db(0xdc)][_0x3f32db(0x164)],'changeGroups':_0x41d9e9,'documentContextContent':_0x455c62[_0x3f32db(0xc3)]});await this[_0x3f32db(0xdc)][_0x3f32db(0x158)]({'id':_0x18d4b5,'parts':_0x56a1e6,'renderingStrategy':_0x19960e,'isDone':_0x504ca2});}else _0x3f32db(0x8f)===_0x24816b&&await this[_0x3f32db(0xdc)][_0x3f32db(0xd8)]({'id':_0x18d4b5,'parsedContent':_0x2d089b,'renderingStrategy':_0x19960e,'isDone':_0x504ca2});_0x504ca2&&_0x455c62[_0x3f32db(0x1b6)][_0x3f32db(0x18e)]>0x0&&this[_0x3f32db(0xdc)][_0x3f32db(0x82)](_0x18d4b5,_0x455c62[_0x3f32db(0x1b6)]);}async[_0x555e54(0x180)](){const _0x11c2f5=_0x555e54,_0x4705c7=this[_0x11c2f5(0x154)]?.[_0x11c2f5(0x143)];_0x4705c7&&(_0x4705c7[_0x11c2f5(0x97)](),this[_0x11c2f5(0xdc)][_0x11c2f5(0x1a0)](_0x4705c7));}async[_0x555e54(0xde)](){const _0x1ceb60=_0x555e54,_0x3dc915=this[_0x1ceb60(0x154)]?.[_0x1ceb60(0x143)];if(_0x3dc915){for await(const _0x180fcb of _0x3dc915[_0x1ceb60(0xa6)])await this[_0x1ceb60(0x17d)]({'reply':_0x180fcb,'changeGroups':_0x180fcb[_0x1ceb60(0xc6)],'renderingStrategy':_0x1ceb60(0x12f)});}}[_0x555e54(0xf9)](_0x5ec0e9){const _0x54ad0a=_0x555e54,_0xcfb8b8={'positiveCount':_0x5ec0e9[_0x54ad0a(0xc6)][_0x54ad0a(0x19d)](_0x24e0f1=>_0x54ad0a(0x155)===_0x24e0f1[_0x54ad0a(0x170)])[_0x54ad0a(0x18e)],'totalCount':_0x5ec0e9[_0x54ad0a(0xc6)][_0x54ad0a(0x18e)]},_0xe4e43f=this[_0x54ad0a(0x154)][_0x54ad0a(0x7a)](_0x5ec0e9[_0x54ad0a(0x1b9)])[_0x54ad0a(0x1b0)];this[_0x54ad0a(0xe0)][_0x54ad0a(0xbc)](this[_0x54ad0a(0x154)]['id'],_0xe4e43f,_0xcfb8b8);}}
@@ -43,6 +43,12 @@ export declare class AIChatUI extends ContextPlugin {
43
43
  * @observable
44
44
  */
45
45
  isBusy: boolean;
46
+ /**
47
+ * Indicates if the active model is available.
48
+ *
49
+ * @observable
50
+ */
51
+ isModelAvailable: boolean;
46
52
  /**
47
53
  * @inheritDoc
48
54
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43518f=_0x3f9a;(function(_0x414a5e,_0x5c7628){const _0x3c5dfc=_0x3f9a,_0xc0543f=_0x414a5e();while(!![]){try{const _0x4c69fe=parseInt(_0x3c5dfc(0x109))/0x1+-parseInt(_0x3c5dfc(0x15f))/0x2+parseInt(_0x3c5dfc(0x10b))/0x3*(parseInt(_0x3c5dfc(0x11d))/0x4)+-parseInt(_0x3c5dfc(0xe9))/0x5+parseInt(_0x3c5dfc(0xc2))/0x6*(parseInt(_0x3c5dfc(0x125))/0x7)+-parseInt(_0x3c5dfc(0x12c))/0x8+parseInt(_0x3c5dfc(0x134))/0x9;if(_0x4c69fe===_0x5c7628)break;else _0xc0543f['push'](_0xc0543f['shift']());}catch(_0x4ec699){_0xc0543f['push'](_0xc0543f['shift']());}}}(_0x58f9,0xceb08));import{ContextPlugin as _0x20c261}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4eee28}from'ckeditor5/src/utils.js';import{AIChatView as _0x458fb9}from'./ui/aichatview.js';function _0x58f9(){const _0xb8fdd1=['chat','_view','interactionId','clear','resetMessageInput','quickActionData','addFeedItemError','isVisible','addTab','startInteraction','_isTrackChangesCommandValueBound','isReasoningEnabled','updateFeedItemAIReplyContent','remove','ai-reply','scrollFeedToSuggestion','updateResourceState','4550290LdmXfo','capabilities','clearPendingContextUI','showResizeButton','updateFeedItemAIReplySources','setLoadingMessage','addFeedItemAIReply','updateFeedInteractionHeader','find','_interactionPromiseResolver','_animateConversationTitle','ai.availableReplyActions','markFeedItemAsDone','delegate','chatFeed','isDone','isTrackChangesOn','addFeedItemUserMessage','markItemAsDone','interaction-header','createConversation','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateCapabilities','AI_CHAT_WELCOME_MESSAGE','_getLoadingMessage','userMessage','addFeedItemAISuggestion','abort','stopAutoScroll','finishInteraction','902296fuMqCb','availableModels','3bhtrla','contextItems','queueEmptyPromise','context','setSelectedModel','forEach','value','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','filter','destroy','view','setIsUploadInProgress','addFeedInteractionHeader','AIChatUI','removeItem','closeSourceResourceBalloon','isLoading','3795692dSwhMS','setFeedItemRenderingStrategy','setInputPlaceholder','populateSourceResourceBalloon','isBusy','locale','commands','children','4741891UruzLC','updateWebSources','chatControls','</p>','removeContextItem','focusPromptInput','set','2776480eSEMWu','setModelList','addItem','options','user-message','setContextItemLoading','setConversationTitle','disableControls','2130012pSpIxV','get','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','enableControls','bind','updateFeedItemAIReplySuggestionContent','addFeedItemStaticMessage','trackChanges','last','feedItemRenderingStrategy','ai-suggestion-reply','label','stopInteraction','length','enqueue','resetConversationTitle','toggleLoadingSkeleton','then','areActionsDisabled','clearConversationContextUI','setConversationContext','error-message','AITabs','streaming','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isPending','setIsMaximized','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enableModelSelector','addContextItem','getItemIds','scrollToSuggestion','setAddContextOptions','chatHeader','plugins','pluginName','_titleAnimationInterval','setWebSearch','removeFeedInteraction','isDisabled','startsWith','2677990iziOSM','updateSuggestionItem','_promiseQueue','AI_CHAT_HEADING','12WSRenM','showDiff','renderingStrategy','isPremiumPlugin','disableModelSelector','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','isMaximized','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','requires','displayedPrompt','conversation-start','isOfficialPlugin','_getInputPlaceholder','values','setReasoning','toggleSuggestionDisplayMode','updateSuggestionPartState','startAutoScroll','isWebSearchEnabled'];_0x58f9=function(){return _0xb8fdd1;};return _0x58f9();}function _0x3f9a(_0x32ec66,_0x4204b7){const _0x58f974=_0x58f9();return _0x3f9a=function(_0x3f9a1e,_0x3eae83){_0x3f9a1e=_0x3f9a1e-0xbf;let _0x1e766c=_0x58f974[_0x3f9a1e];return _0x1e766c;},_0x3f9a(_0x32ec66,_0x4204b7);}import{AITabs as _0x256107}from'../aitabs/aitabs.js';import{getTranslation as _0x1fde07}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1279db}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x778ee3}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2e7ab1}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x47ab33}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x234fc3}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x20c261{static get[_0x43518f(0xcd)](){return[_0x256107];}[_0x43518f(0xd9)];static get[_0x43518f(0x159)](){const _0x4f434f=_0x43518f;return _0x4f434f(0x119);}static get[_0x43518f(0xd0)](){return!0x0;}static get[_0x43518f(0xc5)](){return!0x0;}[_0x43518f(0x13e)]=_0x43518f(0x14c);[_0x43518f(0xc3)]=!0x0;[_0x43518f(0xc0)];[_0x43518f(0xf2)];[_0x43518f(0x15a)]=void 0x0;[_0x43518f(0xe2)]=!0x1;constructor(_0x4fb1e8){const _0x33ef31=_0x43518f;super(_0x4fb1e8);const _0x217514=this[_0x33ef31(0x10e)][_0x33ef31(0x158)][_0x33ef31(0x135)](_0x33ef31(0x14b));this[_0x33ef31(0x12b)](_0x33ef31(0x121),!0x1),this[_0x33ef31(0xc0)]=new _0x2e7ab1(),this[_0x33ef31(0xd9)]=new _0x458fb9(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x217514[_0x33ef31(0xec)]),this[_0x33ef31(0xd9)][_0x33ef31(0xf6)](..._0x47ab33)['to'](this),this[_0x33ef31(0xd9)]['on'](_0x33ef31(0xd4),(_0x477e80,{showDiff:_0x5cd8ce})=>{const _0x2a9ee0=_0x33ef31;this[_0x2a9ee0(0xc3)]=_0x5cd8ce;}),_0x217514[_0x33ef31(0x116)][_0x33ef31(0xe0)]({'id':_0x33ef31(0xd8),'buttonLabel':_0x1fde07(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x33ef31(0xc1)),'buttonIcon':_0x1279db,'order':0x0,'content':this[_0x33ef31(0xd9)]}),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x139)](_0x33ef31(0x11c))['to'](this,_0x33ef31(0x121),_0x4078e6=>_0x4078e6),this[_0x33ef31(0xd9)][_0x33ef31(0xf7)][_0x33ef31(0x139)](_0x33ef31(0x14e))['to'](this,_0x33ef31(0x121),_0x4f0e99=>_0x4f0e99),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x11f)](this[_0x33ef31(0xd1)]());}[_0x43518f(0x115)](){const _0x20f9d8=_0x43518f;super[_0x20f9d8(0x115)](),this[_0x20f9d8(0x15a)]&&clearInterval(this[_0x20f9d8(0x15a)]);}[_0x43518f(0xfd)](_0x23d5a0){const _0x5d8e10=_0x43518f;this[_0x5d8e10(0xd9)][_0x5d8e10(0xf7)][_0x5d8e10(0xdb)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x152)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x12d)](_0x23d5a0[_0x5d8e10(0x10a)],!this[_0x5d8e10(0x10e)][_0x5d8e10(0xc9)][_0x5d8e10(0x135)](_0x5d8e10(0xfe))),this[_0x5d8e10(0x13b)]({'id':_0x5d8e10(0xcf),'staticMessage':_0x1fde07(this[_0x5d8e10(0x10e)][_0x5d8e10(0x122)],_0x5d8e10(0x102))});}[_0x43518f(0x13b)]({id:_0x217ad8,staticMessage:_0x429c52}){const _0x3d8182=_0x43518f;this[_0x3d8182(0xd9)][_0x3d8182(0xf7)][_0x3d8182(0x12e)](_0x3d8182(0xe6),{'id':_0x217ad8,'initialContent':_0x3d8182(0x150)+_0x429c52+_0x3d8182(0x128)});}[_0x43518f(0xfa)](_0x181bcc){const _0x29c7de=_0x43518f,_0x13dc9b=_0x181bcc[_0x29c7de(0xdd)]?.[_0x29c7de(0xce)]||_0x181bcc[_0x29c7de(0x104)];this[_0x29c7de(0xd9)][_0x29c7de(0xf7)][_0x29c7de(0x12e)](_0x29c7de(0x130),{'contextItems':Array[_0x29c7de(0x112)](_0x181bcc[_0x29c7de(0x10c)][_0x29c7de(0xd2)]()),'initialContent':_0x29c7de(0x150)+_0x13dc9b+_0x29c7de(0x128),'id':_0x181bcc['id']});}[_0x43518f(0xde)]({errorMessage:_0xb3943c,id:_0xa0040}){const _0x2ef125=_0x43518f;this[_0x2ef125(0xd9)][_0x2ef125(0xf7)][_0x2ef125(0x12e)](_0x2ef125(0x14a),{'initialContent':_0x2ef125(0x150)+_0xb3943c+_0x2ef125(0x128),'id':_0xa0040});}[_0x43518f(0xef)](_0x307021){const _0x4c3466=_0x43518f;return this[_0x4c3466(0xc0)][_0x4c3466(0x143)](async()=>{const _0x557ec3=_0x4c3466;this[_0x557ec3(0xd9)][_0x557ec3(0xf7)][_0x557ec3(0x12e)](_0x557ec3(0xe6),{'id':_0x307021[_0x557ec3(0xda)]+':'+_0x307021['id']}),this[_0x557ec3(0xee)](null);});}async[_0x43518f(0x105)](_0x24e886){const _0x37030f=_0x43518f,_0xbf82c7=_0x234fc3(this[_0x37030f(0x10e)]);if(_0xbf82c7){const _0x2b71fc=_0xbf82c7[_0x37030f(0x123)][_0x37030f(0x135)](_0x37030f(0x13c));_0x2b71fc&&!this[_0x37030f(0xe2)]&&(this[_0x37030f(0xe2)]=!0x0,this[_0x37030f(0xd9)][_0x37030f(0xf7)][_0x37030f(0x139)](_0x37030f(0xf9))['to'](_0x2b71fc,_0x37030f(0x111)));}return this[_0x37030f(0xc0)][_0x37030f(0x143)](async()=>{const _0xb43651=_0x37030f;this[_0xb43651(0xd9)][_0xb43651(0xf7)][_0xb43651(0x12e)](_0xb43651(0x13f),{'id':_0x24e886[_0xb43651(0xda)]+':'+_0x24e886['id'],'areActionsDisabled':_0x24e886[_0xb43651(0x147)],'showDiff':this[_0xb43651(0xc3)],'dropdownConfig':this[_0xb43651(0x10e)][_0xb43651(0xc9)][_0xb43651(0x135)](_0xb43651(0xf4))}),this[_0xb43651(0xee)](null);});}[_0x43518f(0x118)](_0x1df034,_0x57df93){const _0x189a0c=_0x43518f,_0x3c8609=this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0x13d)];if(_0x3c8609 instanceof _0x778ee3)return this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0xe5)](_0x3c8609),void this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':{'isWebSearchEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xd7)]||_0x57df93[_0x189a0c(0xd7)],'isReasoningEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xe3)]||_0x57df93[_0x189a0c(0xe3)]}});this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':_0x57df93});}[_0x43518f(0xf0)](_0x141498){const _0x5b584a=_0x43518f,_0x21e778=this[_0x5b584a(0xd9)][_0x5b584a(0xf7)][_0x5b584a(0x124)][_0x5b584a(0xf1)](_0x25b197=>_0x25b197[_0x5b584a(0x12f)]['id']==_0x141498['id']&&_0x25b197 instanceof _0x778ee3);_0x21e778&&_0x21e778[_0x5b584a(0x12b)](_0x5b584a(0xdf),_0x141498[_0x5b584a(0xdf)]);}async[_0x43518f(0xe4)](_0x5c66c9){const _0x1ce865=_0x43518f,_0x2537e6=_0x5c66c9[_0x1ce865(0xc4)]||this[_0x1ce865(0x13e)];return this[_0x1ce865(0xc0)][_0x1ce865(0x143)](async _0x578c79=>{const _0x435dbf=_0x1ce865;await this[_0x435dbf(0xd9)][_0x435dbf(0xf7)][_0x435dbf(0xc7)]({..._0x5c66c9,'abortSignal':_0x578c79,'renderingStrategy':_0x2537e6}),_0x5c66c9[_0x435dbf(0xf8)]&&this[_0x435dbf(0xf5)](_0x5c66c9['id']);});}[_0x43518f(0xed)](_0x594292,_0x1c0b0c){const _0x5bbc4e=_0x43518f;this[_0x5bbc4e(0xd9)][_0x5bbc4e(0xf7)][_0x5bbc4e(0x126)](_0x594292,_0x1c0b0c);}async[_0x43518f(0x13a)](_0x58d02d){const _0x51ed0f=_0x43518f,_0x725b98=_0x58d02d[_0x51ed0f(0xc4)]||this[_0x51ed0f(0x13e)];return this[_0x51ed0f(0xc0)][_0x51ed0f(0x143)](async _0x4fbb69=>{const _0x8312ab=_0x51ed0f;await this[_0x8312ab(0xd9)][_0x8312ab(0xf7)][_0x8312ab(0xbf)]({..._0x58d02d,'abortSignal':_0x4fbb69,'renderingStrategy':_0x725b98}),_0x58d02d[_0x8312ab(0xf8)]&&this[_0x8312ab(0xf5)](_0x58d02d['id']);});}[_0x43518f(0x136)](_0x378a74){const _0x24627c=_0x43518f;this[_0x24627c(0xd9)][_0x24627c(0xf7)][_0x24627c(0xd5)](_0x378a74);}[_0x43518f(0xf5)](_0x26ac30){const _0x4a8240=_0x43518f;this[_0x4a8240(0xd9)][_0x4a8240(0xf7)][_0x4a8240(0xfb)](_0x26ac30);}[_0x43518f(0x15c)](_0x586703){const _0x15a5c3=_0x43518f;this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x154)]()[_0x15a5c3(0x114)](_0x29c991=>_0x29c991[_0x15a5c3(0x15e)](_0x586703))[_0x15a5c3(0x110)](_0x2c645c=>this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x11a)](_0x2c645c));}[_0x43518f(0xe1)](){const _0x1186dd=_0x43518f;this[_0x1186dd(0xee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1186dd(0xd9)][_0x1186dd(0x127)][_0x1186dd(0xc6)](!this[_0x1186dd(0x10e)][_0x1186dd(0xc9)][_0x1186dd(0x135)](_0x1186dd(0xfe))),this[_0x1186dd(0x121)]=!0x0,this[_0x1186dd(0xd9)][_0x1186dd(0xf7)][_0x1186dd(0xd6)]();}[_0x43518f(0x141)](_0x41f63c){const _0x53e2be=_0x43518f;this[_0x53e2be(0xc0)][_0x53e2be(0x106)](),this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x154)]()[_0x53e2be(0x114)](_0x1b098c=>_0x1b098c[_0x53e2be(0x15e)](_0x41f63c['id']))[_0x53e2be(0x110)](_0x59280e=>this[_0x53e2be(0xf5)](_0x59280e)),this[_0x53e2be(0x121)]=!0x1,this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x107)]();}async[_0x43518f(0x108)](){const _0x416c0e=_0x43518f;return this[_0x416c0e(0xc0)][_0x416c0e(0x10d)][_0x416c0e(0x146)](()=>{const _0x26e0ff=_0x416c0e;this[_0x26e0ff(0x121)]=!0x1,this[_0x26e0ff(0xd9)][_0x26e0ff(0xf7)][_0x26e0ff(0x107)]();});}[_0x43518f(0x153)](_0xe9f34b,_0x5e4ff8){const _0x3bc350=_0x43518f;this[_0x3bc350(0xd9)][_0x3bc350(0x127)][_0x3bc350(0x153)](_0xe9f34b,_0x5e4ff8);}[_0x43518f(0x129)](_0x2c4fa3){const _0x30c662=_0x43518f;this[_0x30c662(0xd9)][_0x30c662(0x127)][_0x30c662(0x129)](_0x2c4fa3);}[_0x43518f(0x131)](_0x124f60,_0x1f9798){const _0x30e63d=_0x43518f;this[_0x30e63d(0xd9)][_0x30e63d(0x127)][_0x30e63d(0x131)](_0x124f60,_0x1f9798);}[_0x43518f(0x117)](_0x24886d){const _0x5a1389=_0x43518f;this[_0x5a1389(0xd9)][_0x5a1389(0x127)][_0x5a1389(0x117)](_0x24886d);}[_0x43518f(0x149)](_0x1e6533){const _0x42473e=_0x43518f;this[_0x42473e(0xd9)][_0x42473e(0x127)][_0x42473e(0x149)](_0x1e6533);}[_0x43518f(0xeb)](){const _0x1143ed=_0x43518f;this[_0x1143ed(0xd9)][_0x1143ed(0x127)][_0x1143ed(0xeb)]();}[_0x43518f(0x148)](){const _0x2a30ee=_0x43518f;this[_0x2a30ee(0xd9)][_0x2a30ee(0x127)][_0x2a30ee(0x148)]();}[_0x43518f(0xe8)](_0x373e49,_0x289e26,_0x4876d0){const _0x1ae03c=_0x43518f;this[_0x1ae03c(0xd9)][_0x1ae03c(0x127)][_0x1ae03c(0xe8)](_0x373e49,_0x289e26,_0x4876d0);}[_0x43518f(0xdc)](){const _0x47e65e=_0x43518f;this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0xdc)](),this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0x11f)](this[_0x47e65e(0xd1)]());}[_0x43518f(0x156)](_0x1819ed){const _0xe66236=_0x43518f;this[_0xe66236(0xd9)][_0xe66236(0x127)][_0xe66236(0x156)](_0x1819ed);}[_0x43518f(0x101)](_0xc22a36){const _0x236b61=_0x43518f;this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x15b)](_0xc22a36[_0x236b61(0xd7)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0xd3)](_0xc22a36[_0x236b61(0xe3)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x11f)](this[_0x236b61(0xd1)](_0xc22a36));}[_0x43518f(0x10f)](_0x292d74,_0x40fa11){const _0x540caf=_0x43518f;this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xcb)](_0x292d74),_0x40fa11&&this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xc6)](!0x1);}[_0x43518f(0x11e)](_0x1672e3){const _0x237da6=_0x43518f;this[_0x237da6(0x13e)]=_0x1672e3;}[_0x43518f(0x145)](_0x5c6a65){const _0x1ae629=_0x43518f;this[_0x1ae629(0xd9)][_0x1ae629(0xf7)][_0x1ae629(0x145)](_0x5c6a65);}[_0x43518f(0x144)](){const _0xb19a81=_0x43518f;this[_0xb19a81(0x132)](_0x1fde07(this[_0xb19a81(0x10e)][_0xb19a81(0x122)],_0xb19a81(0xc1)));}[_0x43518f(0x132)](_0x300014,_0x33915d=!0x1){const _0x19d7bc=_0x43518f;if(_0x33915d&&!_0x4eee28()&&_0x300014[_0x19d7bc(0x142)])return this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]='',void this[_0x19d7bc(0xf3)](_0x300014);this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]=_0x300014;}[_0x43518f(0xee)](_0x5993fe){const _0xe9bf55=_0x43518f,_0x4d7b9d=this[_0xe9bf55(0x103)](_0x5993fe);this[_0xe9bf55(0xd9)][_0xe9bf55(0xf7)][_0xe9bf55(0xee)](_0x4d7b9d);}[_0x43518f(0xf3)](_0x2c15c9){const _0x524ac5=_0x43518f;let _0x4ed6dd=0x0;clearInterval(this[_0x524ac5(0x15a)]),this[_0x524ac5(0x15a)]=setInterval(()=>{const _0x312c6d=_0x524ac5;this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]=this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]+_0x2c15c9[_0x4ed6dd],_0x4ed6dd++,_0x4ed6dd===_0x2c15c9[_0x312c6d(0x142)]&&clearInterval(this[_0x312c6d(0x15a)]);},0x1e);}[_0x43518f(0x14f)](_0x831354){const _0x4bde34=_0x43518f;this[_0x4bde34(0xd9)][_0x4bde34(0x157)][_0x4bde34(0xca)]=_0x831354;}[_0x43518f(0x103)](_0x4f6f26){const _0x39f9f1=_0x43518f;return _0x4f6f26?_0x4f6f26[_0x39f9f1(0xd7)]&&_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x137)):_0x4f6f26[_0x39f9f1(0xd7)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0xff)):_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x14d)):_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x100)):'';}[_0x43518f(0xd1)](_0x5bab33){const _0x4ce5c2=_0x43518f;return _0x5bab33?_0x5bab33[_0x4ce5c2(0xd7)]&&_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x151)):_0x5bab33[_0x4ce5c2(0xd7)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xcc)):_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x113)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8));}[_0x43518f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8){const _0x56d03f=_0x43518f;this[_0x56d03f(0xd9)][_0x56d03f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8);}[_0x43518f(0x11b)](_0x11c636){const _0x481265=_0x43518f;this[_0x481265(0xd9)][_0x481265(0x11b)](_0x11c636);}[_0x43518f(0x12a)](){const _0x5e0217=_0x43518f;this[_0x5e0217(0xd9)][_0x5e0217(0x127)][_0x5e0217(0x12a)]();}[_0x43518f(0xe7)](_0xcf3514,_0x539a93){const _0x1fcb0b=_0x43518f;this[_0x1fcb0b(0xd9)][_0x1fcb0b(0xf7)][_0x1fcb0b(0x155)](_0xcf3514,_0x539a93);}[_0x43518f(0x133)](){const _0x5996f1=_0x43518f;this[_0x5996f1(0xd9)][_0x5996f1(0x127)][_0x5996f1(0x15d)]=!0x0;}[_0x43518f(0x138)](){const _0x3febf9=_0x43518f;this[_0x3febf9(0xd9)][_0x3febf9(0x127)][_0x3febf9(0x15d)]=!0x1;}}
23
+ const _0x96ee03=_0x5da8;(function(_0x55c0e0,_0x4ee2da){const _0x5153af=_0x5da8,_0x28ffb7=_0x55c0e0();while(!![]){try{const _0x3e6c81=-parseInt(_0x5153af(0x230))/0x1+-parseInt(_0x5153af(0x249))/0x2*(-parseInt(_0x5153af(0x20d))/0x3)+parseInt(_0x5153af(0x1b6))/0x4*(-parseInt(_0x5153af(0x1c3))/0x5)+-parseInt(_0x5153af(0x1e3))/0x6*(-parseInt(_0x5153af(0x234))/0x7)+-parseInt(_0x5153af(0x1c8))/0x8+-parseInt(_0x5153af(0x1e6))/0x9*(-parseInt(_0x5153af(0x1ab))/0xa)+parseInt(_0x5153af(0x1c0))/0xb;if(_0x3e6c81===_0x4ee2da)break;else _0x28ffb7['push'](_0x28ffb7['shift']());}catch(_0x16e4d5){_0x28ffb7['push'](_0x28ffb7['shift']());}}}(_0x3b66,0x77137));function _0x5da8(_0x1bf337,_0x2436a4){const _0x3b66fe=_0x3b66();return _0x5da8=function(_0x5da85a,_0x2a9386){_0x5da85a=_0x5da85a-0x1a8;let _0x4440c5=_0x3b66fe[_0x5da85a];return _0x4440c5;},_0x5da8(_0x1bf337,_0x2436a4);}import{ContextPlugin as _0x2db6d2}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5ae8f3}from'ckeditor5/src/utils.js';import{AIChatView as _0xfd39a8}from'./ui/aichatview.js';import{AITabs as _0x1ee438}from'../aitabs/aitabs.js';import{getTranslation as _0x583fee}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x547b2f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1bd4c9}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2f323a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f74b4}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x3b66(){const _0x30058e=['disableModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','bind','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AI_CHAT_WELCOME_MESSAGE','capabilities','isDisabled','isReasoningEnabled','last','toggleLoadingSkeleton','setLoadingMessage','_interactionPromiseResolver','chatFeed','isVisible','setIsUploadInProgress','isDone','_view','markItemAsDone','setWebSearch','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','length','213dJLOjx','streaming','_titleAnimationInterval','focusPromptInput','areActionsDisabled','_isTrackChangesCommandValueBound','user-message','setContextItemLoading','_animateConversationTitle','error-message','setSelectedModel','pluginName','isTrackChangesOn','setConversationTitle','updateResourceState','abort','options','showDiff','stopInteraction','chatControls','removeItem','resetConversationTitle','find','removeFeedInteraction','<p>','setAddContextOptions','ai.availableReplyActions','updateFeedItemAIReplySuggestionPartState','showResizeButton','isOfficialPlugin','startsWith','addItem','updateWebSources','setReasoning','get','832552mEhlbu','quickActionData','isBusy','locale','1057mNnvEW','delegate','scrollToSuggestion','addFeedItemAISuggestion','conversation-start','addFeedItemAIReply','requires','startInteraction','clear','setConversationContext','scrollFeedToSuggestion','updateCapabilities','label','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_promiseQueue','queueEmptyPromise','isWebSearchEnabled','trackChanges','isModelAvailable','isMaximized','10078lzjDnL','resetMessageInput','updateSuggestionItem','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','updateFeedItemAIReplySuggestionContent','160TyFKul','clearPendingContextUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','then','AIChatUI','createConversation','forEach','startAutoScroll','updateSuggestionPartState','ai-reply','closeSourceResourceBalloon','12mXPiOv','filter','setIsMaximized','value','availableModels','ai.chat.models.modelSelectorAlwaysVisible','interactionId','AI_CHAT_HEADING','addContextItem','populateSourceResourceBalloon','7858345DGpHZv','enqueue','addFeedInteractionHeader','1320055oMeQoL','renderingStrategy','setModel','from','updateFeedItemAIReplySources','20976DWRYbP','_getLoadingMessage','enableControls','addFeedItemStaticMessage','isPending','set','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateFeedItemAIReplyContent','destroy','addFeedItemError','setFeedItemRenderingStrategy','markFeedItemAsDone','setModelList','updateFeedInteractionHeader','plugins','ai-suggestion-reply','chatHeader','displayedPrompt','context','addTab','getItemIds','view','</p>','removeContextItem','setInputPlaceholder','stopAutoScroll','14244kdnDcE','toggleSuggestionDisplayMode','isLoading','384921lAwwNk','remove','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','children','chat','addFeedItemUserMessage','interaction-header','clearConversationContextUI','AITabs','feedItemRenderingStrategy','contextItems','values','isPremiumPlugin','disableControls','_getInputPlaceholder','config'];_0x3b66=function(){return _0x30058e;};return _0x3b66();}import{getEditorFromContext as _0x5c9005}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x2db6d2{static get[_0x96ee03(0x23a)](){return[_0x1ee438];}[_0x96ee03(0x206)];static get[_0x96ee03(0x218)](){const _0x11d963=_0x96ee03;return _0x11d963(0x1af);}static get[_0x96ee03(0x22a)](){return!0x0;}static get[_0x96ee03(0x1f2)](){return!0x0;}[_0x96ee03(0x1ef)]=_0x96ee03(0x20e);[_0x96ee03(0x21e)]=!0x0;[_0x96ee03(0x243)];[_0x96ee03(0x201)];[_0x96ee03(0x20f)]=void 0x0;[_0x96ee03(0x212)]=!0x1;constructor(_0xf7cbf3){const _0x50b0a7=_0x96ee03;super(_0xf7cbf3);const _0x5cbe22=this[_0x50b0a7(0x1db)][_0x50b0a7(0x1d7)][_0x50b0a7(0x22f)](_0x50b0a7(0x1ee));this[_0x50b0a7(0x1cd)](_0x50b0a7(0x232),!0x1),this[_0x50b0a7(0x243)]=new _0x2f323a(),this[_0x50b0a7(0x206)]=new _0xfd39a8(this[_0x50b0a7(0x1db)][_0x50b0a7(0x233)],_0x5cbe22[_0x50b0a7(0x229)]),this[_0x50b0a7(0x206)][_0x50b0a7(0x235)](..._0x3f74b4)['to'](this),this[_0x50b0a7(0x206)]['on'](_0x50b0a7(0x1e4),(_0x3ba778,{showDiff:_0x2a07ff})=>{const _0x577df4=_0x50b0a7;this[_0x577df4(0x21e)]=_0x2a07ff;}),_0x5cbe22[_0x50b0a7(0x1de)][_0x50b0a7(0x1dc)]({'id':_0x50b0a7(0x1ea),'buttonLabel':_0x583fee(this[_0x50b0a7(0x1db)][_0x50b0a7(0x233)],_0x50b0a7(0x1bd)),'buttonIcon':_0x547b2f,'order':0x0,'content':this[_0x50b0a7(0x206)]}),this[_0x50b0a7(0x206)][_0x50b0a7(0x220)][_0x50b0a7(0x1f8)](_0x50b0a7(0x1e5))['to'](this,_0x50b0a7(0x232),_0x18a8b7=>_0x18a8b7),this[_0x50b0a7(0x206)][_0x50b0a7(0x202)][_0x50b0a7(0x1f8)](_0x50b0a7(0x1cc))['to'](this,_0x50b0a7(0x232),_0x563d2a=>_0x563d2a),this[_0x50b0a7(0x206)][_0x50b0a7(0x220)][_0x50b0a7(0x1e1)](this[_0x50b0a7(0x1f4)]()),this[_0x50b0a7(0x1f8)](_0x50b0a7(0x247))['to'](this[_0x50b0a7(0x206)][_0x50b0a7(0x220)],_0x50b0a7(0x247));}[_0x96ee03(0x1d1)](){const _0xe0d1fd=_0x96ee03;super[_0xe0d1fd(0x1d1)](),this[_0xe0d1fd(0x20f)]&&clearInterval(this[_0xe0d1fd(0x20f)]);}[_0x96ee03(0x1b0)](_0xb35c6c){const _0x36c4fa=_0x96ee03;this[_0x36c4fa(0x206)][_0x36c4fa(0x202)][_0x36c4fa(0x23c)](),this[_0x36c4fa(0x206)][_0x36c4fa(0x220)][_0x36c4fa(0x209)](),this[_0x36c4fa(0x206)][_0x36c4fa(0x220)][_0x36c4fa(0x1d5)](_0xb35c6c[_0x36c4fa(0x1ba)],!this[_0x36c4fa(0x1db)][_0x36c4fa(0x1f5)][_0x36c4fa(0x22f)](_0x36c4fa(0x1bb))),this[_0x36c4fa(0x1cb)]({'id':_0x36c4fa(0x238),'staticMessage':_0x583fee(this[_0x36c4fa(0x1db)][_0x36c4fa(0x233)],_0x36c4fa(0x1fa))});}[_0x96ee03(0x1cb)]({id:_0x47ebdb,staticMessage:_0x1ebf44}){const _0x269063=_0x96ee03;this[_0x269063(0x206)][_0x269063(0x202)][_0x269063(0x22c)](_0x269063(0x1b4),{'id':_0x47ebdb,'initialContent':_0x269063(0x225)+_0x1ebf44+_0x269063(0x1df)});}[_0x96ee03(0x1eb)](_0x29cec3){const _0xf6324f=_0x96ee03,_0x4ea37a=_0x29cec3[_0xf6324f(0x231)]?.[_0xf6324f(0x1da)]||_0x29cec3[_0xf6324f(0x1a8)];this[_0xf6324f(0x206)][_0xf6324f(0x202)][_0xf6324f(0x22c)](_0xf6324f(0x213),{'contextItems':Array[_0xf6324f(0x1c6)](_0x29cec3[_0xf6324f(0x1f0)][_0xf6324f(0x1f1)]()),'initialContent':_0xf6324f(0x225)+_0x4ea37a+_0xf6324f(0x1df),'id':_0x29cec3['id']});}[_0x96ee03(0x1d2)]({errorMessage:_0x27b757,id:_0x5e1018}){const _0x3e4fb9=_0x96ee03;this[_0x3e4fb9(0x206)][_0x3e4fb9(0x202)][_0x3e4fb9(0x22c)](_0x3e4fb9(0x216),{'initialContent':_0x3e4fb9(0x225)+_0x27b757+_0x3e4fb9(0x1df),'id':_0x5e1018});}[_0x96ee03(0x239)](_0x1850a1){const _0x4bdd02=_0x96ee03;return this[_0x4bdd02(0x243)][_0x4bdd02(0x1c1)](async()=>{const _0x1e5eec=_0x4bdd02;this[_0x1e5eec(0x206)][_0x1e5eec(0x202)][_0x1e5eec(0x22c)](_0x1e5eec(0x1b4),{'id':_0x1850a1[_0x1e5eec(0x1bc)]+':'+_0x1850a1['id']}),this[_0x1e5eec(0x200)](null);});}async[_0x96ee03(0x237)](_0x40b253){const _0x4a53e5=_0x96ee03,_0x3e5e8f=_0x5c9005(this[_0x4a53e5(0x1db)]);if(_0x3e5e8f){const _0xbb842f=_0x3e5e8f[_0x4a53e5(0x20b)][_0x4a53e5(0x22f)](_0x4a53e5(0x246));_0xbb842f&&!this[_0x4a53e5(0x212)]&&(this[_0x4a53e5(0x212)]=!0x0,this[_0x4a53e5(0x206)][_0x4a53e5(0x202)][_0x4a53e5(0x1f8)](_0x4a53e5(0x219))['to'](_0xbb842f,_0x4a53e5(0x1b9)));}return this[_0x4a53e5(0x243)][_0x4a53e5(0x1c1)](async()=>{const _0x2f3fa0=_0x4a53e5;this[_0x2f3fa0(0x206)][_0x2f3fa0(0x202)][_0x2f3fa0(0x22c)](_0x2f3fa0(0x1d8),{'id':_0x40b253[_0x2f3fa0(0x1bc)]+':'+_0x40b253['id'],'areActionsDisabled':_0x40b253[_0x2f3fa0(0x211)],'showDiff':this[_0x2f3fa0(0x21e)],'dropdownConfig':this[_0x2f3fa0(0x1db)][_0x2f3fa0(0x1f5)][_0x2f3fa0(0x22f)](_0x2f3fa0(0x227))}),this[_0x2f3fa0(0x200)](null);});}[_0x96ee03(0x1c2)](_0x2a8385,_0x2aabfe){const _0x4778d6=_0x96ee03,_0x5b5984=this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x1e9)][_0x4778d6(0x1fe)];if(_0x5b5984 instanceof _0x1bd4c9)return this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x1e9)][_0x4778d6(0x1e7)](_0x5b5984),void this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x22c)](_0x4778d6(0x1ec),{'id':_0x2a8385['id'],'capabilities':{'isWebSearchEnabled':_0x5b5984[_0x4778d6(0x1fb)][_0x4778d6(0x245)]||_0x2aabfe[_0x4778d6(0x245)],'isReasoningEnabled':_0x5b5984[_0x4778d6(0x1fb)][_0x4778d6(0x1fd)]||_0x2aabfe[_0x4778d6(0x1fd)]}});this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x22c)](_0x4778d6(0x1ec),{'id':_0x2a8385['id'],'capabilities':_0x2aabfe});}[_0x96ee03(0x1d6)](_0x3fc664){const _0x21bd3f=_0x96ee03,_0xddfe37=this[_0x21bd3f(0x206)][_0x21bd3f(0x202)][_0x21bd3f(0x1e9)][_0x21bd3f(0x223)](_0x2c1138=>_0x2c1138[_0x21bd3f(0x21d)]['id']==_0x3fc664['id']&&_0x2c1138 instanceof _0x1bd4c9);_0xddfe37&&_0xddfe37[_0x21bd3f(0x1cd)](_0x21bd3f(0x203),_0x3fc664[_0x21bd3f(0x203)]);}async[_0x96ee03(0x1d0)](_0x6ec4fb){const _0x18450c=_0x96ee03,_0x20f52b=_0x6ec4fb[_0x18450c(0x1c4)]||this[_0x18450c(0x1ef)];return this[_0x18450c(0x243)][_0x18450c(0x1c1)](async _0x402c4a=>{const _0x526f0d=_0x18450c;await this[_0x526f0d(0x206)][_0x526f0d(0x202)][_0x526f0d(0x241)]({..._0x6ec4fb,'abortSignal':_0x402c4a,'renderingStrategy':_0x20f52b}),_0x6ec4fb[_0x526f0d(0x205)]&&this[_0x526f0d(0x1d4)](_0x6ec4fb['id']);});}[_0x96ee03(0x1c7)](_0x50fad2,_0x10fb99){const _0x5a807a=_0x96ee03;this[_0x5a807a(0x206)][_0x5a807a(0x202)][_0x5a807a(0x22d)](_0x50fad2,_0x10fb99);}async[_0x96ee03(0x1aa)](_0x5cb161){const _0x310b4a=_0x96ee03,_0x24ee11=_0x5cb161[_0x310b4a(0x1c4)]||this[_0x310b4a(0x1ef)];return this[_0x310b4a(0x243)][_0x310b4a(0x1c1)](async _0x9bc1f4=>{const _0x287d3c=_0x310b4a;await this[_0x287d3c(0x206)][_0x287d3c(0x202)][_0x287d3c(0x24b)]({..._0x5cb161,'abortSignal':_0x9bc1f4,'renderingStrategy':_0x24ee11}),_0x5cb161[_0x287d3c(0x205)]&&this[_0x287d3c(0x1d4)](_0x5cb161['id']);});}[_0x96ee03(0x228)](_0x4f4a64){const _0x5c0fae=_0x96ee03;this[_0x5c0fae(0x206)][_0x5c0fae(0x202)][_0x5c0fae(0x1b3)](_0x4f4a64);}[_0x96ee03(0x1d4)](_0x1dafa6){const _0x42f1dc=_0x96ee03;this[_0x42f1dc(0x206)][_0x42f1dc(0x202)][_0x42f1dc(0x207)](_0x1dafa6);}[_0x96ee03(0x224)](_0xbd6ff1){const _0x474b28=_0x96ee03;this[_0x474b28(0x206)][_0x474b28(0x202)][_0x474b28(0x1dd)]()[_0x474b28(0x1b7)](_0x2da1ab=>_0x2da1ab[_0x474b28(0x22b)](_0xbd6ff1))[_0x474b28(0x1b1)](_0x364346=>this[_0x474b28(0x206)][_0x474b28(0x202)][_0x474b28(0x221)](_0x364346));}[_0x96ee03(0x23b)](){const _0x304d7c=_0x96ee03;this[_0x304d7c(0x200)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x304d7c(0x206)][_0x304d7c(0x220)][_0x304d7c(0x1f6)](!this[_0x304d7c(0x1db)][_0x304d7c(0x1f5)][_0x304d7c(0x22f)](_0x304d7c(0x1bb))),this[_0x304d7c(0x232)]=!0x0,this[_0x304d7c(0x206)][_0x304d7c(0x202)][_0x304d7c(0x1b2)]();}[_0x96ee03(0x21f)](_0x5498e7){const _0x3bcf76=_0x96ee03;this[_0x3bcf76(0x243)][_0x3bcf76(0x21c)](),this[_0x3bcf76(0x206)][_0x3bcf76(0x202)][_0x3bcf76(0x1dd)]()[_0x3bcf76(0x1b7)](_0x1cba3e=>_0x1cba3e[_0x3bcf76(0x22b)](_0x5498e7['id']))[_0x3bcf76(0x1b1)](_0x4a0a0e=>this[_0x3bcf76(0x1d4)](_0x4a0a0e)),this[_0x3bcf76(0x232)]=!0x1,this[_0x3bcf76(0x206)][_0x3bcf76(0x202)][_0x3bcf76(0x1e2)]();}async[_0x96ee03(0x1ce)](){const _0x4adccc=_0x96ee03;return this[_0x4adccc(0x243)][_0x4adccc(0x244)][_0x4adccc(0x1ae)](()=>{const _0x5253e2=_0x4adccc;this[_0x5253e2(0x232)]=!0x1,this[_0x5253e2(0x206)][_0x5253e2(0x202)][_0x5253e2(0x1e2)]();});}[_0x96ee03(0x1be)](_0x1c2c94,_0x50f2d5){const _0x16036b=_0x96ee03;this[_0x16036b(0x206)][_0x16036b(0x220)][_0x16036b(0x1be)](_0x1c2c94,_0x50f2d5);}[_0x96ee03(0x1e0)](_0xf9f492){const _0x1c881d=_0x96ee03;this[_0x1c881d(0x206)][_0x1c881d(0x220)][_0x1c881d(0x1e0)](_0xf9f492);}[_0x96ee03(0x214)](_0x250c4a,_0x23af1f){const _0x47b0c0=_0x96ee03;this[_0x47b0c0(0x206)][_0x47b0c0(0x220)][_0x47b0c0(0x214)](_0x250c4a,_0x23af1f);}[_0x96ee03(0x204)](_0x53a774){const _0x5a420b=_0x96ee03;this[_0x5a420b(0x206)][_0x5a420b(0x220)][_0x5a420b(0x204)](_0x53a774);}[_0x96ee03(0x23d)](_0x2641b0){const _0xd6dffa=_0x96ee03;this[_0xd6dffa(0x206)][_0xd6dffa(0x220)][_0xd6dffa(0x23d)](_0x2641b0);}[_0x96ee03(0x1ac)](){const _0x9abed9=_0x96ee03;this[_0x9abed9(0x206)][_0x9abed9(0x220)][_0x9abed9(0x1ac)]();}[_0x96ee03(0x1ed)](){const _0x4bc075=_0x96ee03;this[_0x4bc075(0x206)][_0x4bc075(0x220)][_0x4bc075(0x1ed)]();}[_0x96ee03(0x21b)](_0x587c58,_0x549956,_0x25c3e8){const _0xc4438e=_0x96ee03;this[_0xc4438e(0x206)][_0xc4438e(0x220)][_0xc4438e(0x21b)](_0x587c58,_0x549956,_0x25c3e8);}[_0x96ee03(0x24a)](){const _0x390f2a=_0x96ee03;this[_0x390f2a(0x206)][_0x390f2a(0x220)][_0x390f2a(0x24a)](),this[_0x390f2a(0x206)][_0x390f2a(0x220)][_0x390f2a(0x1e1)](this[_0x390f2a(0x1f4)]());}[_0x96ee03(0x226)](_0x1c65ab){const _0x2110e1=_0x96ee03;this[_0x2110e1(0x206)][_0x2110e1(0x220)][_0x2110e1(0x226)](_0x1c65ab);}[_0x96ee03(0x23f)](_0x27b050){const _0x554cd9=_0x96ee03;this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x208)](_0x27b050[_0x554cd9(0x245)]),this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x22e)](_0x27b050[_0x554cd9(0x1fd)]),this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x1e1)](this[_0x554cd9(0x1f4)](_0x27b050));}[_0x96ee03(0x217)](_0x1ebd15,_0x367b94){const _0x7224e=_0x96ee03;this[_0x7224e(0x206)][_0x7224e(0x220)][_0x7224e(0x1c5)](_0x1ebd15),_0x367b94&&this[_0x7224e(0x206)][_0x7224e(0x220)][_0x7224e(0x1f6)](!0x1);}[_0x96ee03(0x1d3)](_0x1a1155){const _0x45696b=_0x96ee03;this[_0x45696b(0x1ef)]=_0x1a1155;}[_0x96ee03(0x1ff)](_0x66bc02){const _0x15b963=_0x96ee03;this[_0x15b963(0x206)][_0x15b963(0x202)][_0x15b963(0x1ff)](_0x66bc02);}[_0x96ee03(0x222)](){const _0x39496a=_0x96ee03;this[_0x39496a(0x21a)](_0x583fee(this[_0x39496a(0x1db)][_0x39496a(0x233)],_0x39496a(0x1bd)));}[_0x96ee03(0x21a)](_0x264681,_0x175bde=!0x1){const _0x52c8eb=_0x96ee03;if(_0x175bde&&!_0x5ae8f3()&&_0x264681[_0x52c8eb(0x20c)])return this[_0x52c8eb(0x206)][_0x52c8eb(0x1d9)][_0x52c8eb(0x240)]='',void this[_0x52c8eb(0x215)](_0x264681);this[_0x52c8eb(0x206)][_0x52c8eb(0x1d9)][_0x52c8eb(0x240)]=_0x264681;}[_0x96ee03(0x200)](_0x9ce72b){const _0x320f09=_0x96ee03,_0x1b2d5d=this[_0x320f09(0x1c9)](_0x9ce72b);this[_0x320f09(0x206)][_0x320f09(0x202)][_0x320f09(0x200)](_0x1b2d5d);}[_0x96ee03(0x215)](_0x56781e){const _0xfdc72d=_0x96ee03;let _0xb6c1d6=0x0;clearInterval(this[_0xfdc72d(0x20f)]),this[_0xfdc72d(0x20f)]=setInterval(()=>{const _0xce2df8=_0xfdc72d;this[_0xce2df8(0x206)][_0xce2df8(0x1d9)][_0xce2df8(0x240)]=this[_0xce2df8(0x206)][_0xce2df8(0x1d9)][_0xce2df8(0x240)]+_0x56781e[_0xb6c1d6],_0xb6c1d6++,_0xb6c1d6===_0x56781e[_0xce2df8(0x20c)]&&clearInterval(this[_0xce2df8(0x20f)]);},0x1e);}[_0x96ee03(0x1b8)](_0x18551a){const _0x9d2b5=_0x96ee03;this[_0x9d2b5(0x206)][_0x9d2b5(0x1d9)][_0x9d2b5(0x248)]=_0x18551a;}[_0x96ee03(0x1c9)](_0x357eb7){const _0x16a2cd=_0x96ee03;return _0x357eb7?_0x357eb7[_0x16a2cd(0x245)]&&_0x357eb7[_0x16a2cd(0x1fd)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1f7)):_0x357eb7[_0x16a2cd(0x245)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1a9)):_0x357eb7[_0x16a2cd(0x1fd)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x242)):_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1cf)):'';}[_0x96ee03(0x1f4)](_0x11dc40){const _0x2db913=_0x96ee03;return _0x11dc40?_0x11dc40[_0x2db913(0x245)]&&_0x11dc40[_0x2db913(0x1fd)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1f9)):_0x11dc40[_0x2db913(0x245)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1ad)):_0x11dc40[_0x2db913(0x1fd)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x20a)):_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1e8)):_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1e8));}[_0x96ee03(0x1bf)](_0x4f31b4,_0x13516b,_0x5bba3e,_0xb03ca1){const _0x3cbcce=_0x96ee03;this[_0x3cbcce(0x206)][_0x3cbcce(0x1bf)](_0x4f31b4,_0x13516b,_0x5bba3e,_0xb03ca1);}[_0x96ee03(0x1b5)](_0x13fd53){const _0x18867f=_0x96ee03;this[_0x18867f(0x206)][_0x18867f(0x1b5)](_0x13fd53);}[_0x96ee03(0x210)](){const _0x3d38ae=_0x96ee03;this[_0x3d38ae(0x206)][_0x3d38ae(0x220)][_0x3d38ae(0x210)]();}[_0x96ee03(0x23e)](_0x291038,_0x51c05a){const _0x5c6a4e=_0x96ee03;this[_0x5c6a4e(0x206)][_0x5c6a4e(0x202)][_0x5c6a4e(0x236)](_0x291038,_0x51c05a);}[_0x96ee03(0x1f3)](){const _0x52cb5b=_0x96ee03;this[_0x52cb5b(0x206)][_0x52cb5b(0x220)][_0x52cb5b(0x1fc)]=!0x0;}[_0x96ee03(0x1ca)](){const _0x22d8e5=_0x96ee03;this[_0x22d8e5(0x206)][_0x22d8e5(0x220)][_0x22d8e5(0x1fc)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43fc4a=_0x1303;(function(_0xb56a1c,_0x40ea3c){const _0x4a68d9=_0x1303,_0x34442f=_0xb56a1c();while(!![]){try{const _0xed1120=parseInt(_0x4a68d9(0xf6))/0x1+-parseInt(_0x4a68d9(0x12d))/0x2*(-parseInt(_0x4a68d9(0x15f))/0x3)+-parseInt(_0x4a68d9(0x144))/0x4+-parseInt(_0x4a68d9(0x110))/0x5*(-parseInt(_0x4a68d9(0xf0))/0x6)+-parseInt(_0x4a68d9(0x163))/0x7+parseInt(_0x4a68d9(0x13e))/0x8*(-parseInt(_0x4a68d9(0xfc))/0x9)+parseInt(_0x4a68d9(0x142))/0xa*(parseInt(_0x4a68d9(0x13c))/0xb);if(_0xed1120===_0x40ea3c)break;else _0x34442f['push'](_0x34442f['shift']());}catch(_0x4b7e19){_0x34442f['push'](_0x34442f['shift']());}}}(_0x2b98,0xaaa1f));function _0x1303(_0x915703,_0xa7d37b){const _0x2b9803=_0x2b98();return _0x1303=function(_0x13035b,_0x41e59b){_0x13035b=_0x13035b-0xe3;let _0x1cc391=_0x2b9803[_0x13035b];return _0x1cc391;},_0x1303(_0x915703,_0xa7d37b);}import{CKEditorError as _0x553e7c,ObservableMixin as _0x143f28,uid as _0xa74476}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3502d2,AIContextTextResourceType as _0x4d97ac}from'../../aicore/model/aicontext.js';import{escape as _0x2063b3}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x43fc4a(0x155),_0x43fc4a(0x12f),_0x43fc4a(0x130),_0x43fc4a(0x15b),_0x43fc4a(0x118),_0x43fc4a(0x14c),_0x43fc4a(0x10b),_0x43fc4a(0x170),_0x43fc4a(0x12e)];export class AIChatContext extends _0x143f28(){[_0x43fc4a(0x11f)];[_0x43fc4a(0xff)];[_0x43fc4a(0x157)];constructor({connector:_0x2084b5,config:_0x429748,ownerId:_0x1741ee}){const _0x2061f2=_0x43fc4a;super(),this[_0x2061f2(0x11f)]=_0x2084b5,this[_0x2061f2(0xff)]=_0x429748,this[_0x2061f2(0x157)]=_0x1741ee;}[_0x43fc4a(0x150)](){const _0x133af=_0x43fc4a;this[_0x133af(0x125)]=new Map(),this[_0x133af(0x11e)]=new Map(),this[_0x133af(0x11c)]=new Map(),this[_0x133af(0x14b)]=new Map(),this[_0x133af(0x126)]();}[_0x43fc4a(0x106)](){const _0x8e5b67=_0x43fc4a;return this[_0x8e5b67(0x125)];}async[_0x43fc4a(0x122)](_0x3cfdfe){const _0x4c3d48=_0x43fc4a,_0x5d13e3=await this[_0x4c3d48(0x10a)](_0x3cfdfe);return this[_0x4c3d48(0x156)](_0x5d13e3),_0x4c3d48(0x166)===_0x5d13e3[_0x4c3d48(0x100)]&&this[_0x4c3d48(0x119)](),_0x5d13e3;}async[_0x43fc4a(0x10a)](_0x346b85){const _0x56f8f5=_0x43fc4a;if(_0x346b85[_0x56f8f5(0x111)]===_0x3502d2[_0x56f8f5(0x158)]){const _0x36b947=await this[_0x56f8f5(0x11f)][_0x56f8f5(0xe5)](this[_0x56f8f5(0x157)],_0x346b85['id'])[_0x56f8f5(0x131)]();return{'id':_0x56f8f5(0x166),'uiId':_0x56f8f5(0x166),'label':_0x56f8f5(0x168),'type':_0x346b85[_0x56f8f5(0x111)],'content':_0x36b947[_0x56f8f5(0x16f)],'hidden':this[_0x56f8f5(0x11e)][_0x56f8f5(0xfa)](_0x56f8f5(0x166)),'version':_0x36b947[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x147)],'sessionId':_0x36b947[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x137)]};}return{'id':_0x346b85['id'],'uiId':_0x346b85['id'],'label':_0x346b85[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x128)]||_0x346b85[_0x56f8f5(0xe8)]||_0x346b85[_0x56f8f5(0x149)]||_0x346b85['id'],'type':_0x346b85[_0x56f8f5(0x111)],..._0x346b85?.[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x113)]?{'resourceId':_0x346b85[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x113)]}:{}};}[_0x43fc4a(0xe4)](){const _0x3066aa=_0x43fc4a;return new Map(this[_0x3066aa(0x11e)]);}[_0x43fc4a(0x14f)](_0x37a28e){const _0x346270=_0x43fc4a,_0x5a3a4d=this[_0x346270(0x125)][_0x346270(0x171)](_0x37a28e);_0x5a3a4d?.[_0x346270(0xfb)]||this[_0x346270(0x127)](_0x37a28e);}[_0x43fc4a(0xec)](){const _0xdfb021=_0x43fc4a;if(0x0===this[_0xdfb021(0x125)][_0xdfb021(0x164)])return;for(const _0xf54aad of this[_0xdfb021(0x125)][_0xdfb021(0x12a)]())this[_0xdfb021(0x127)](_0xf54aad[_0xdfb021(0x100)]);const _0x4893b3=this[_0xdfb021(0x11e)][_0xdfb021(0x171)](_0xdfb021(0x166))||this[_0xdfb021(0x125)][_0xdfb021(0x171)](_0xdfb021(0x166));_0x4893b3&&this[_0xdfb021(0x162)]({..._0x4893b3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x43fc4a(0x108)](_0x1fb9a3){const _0x54971c=_0x43fc4a;for(const _0x5f263c of _0x1fb9a3[_0x54971c(0x12a)]())this[_0x54971c(0x156)](_0x5f263c);this[_0x54971c(0xec)](),this[_0x54971c(0x148)](_0x54971c(0x15b),{'contextItems':Array[_0x54971c(0x101)](this[_0x54971c(0xe4)]()[_0x54971c(0x12a)]())});}[_0x43fc4a(0x141)](){const _0x4034ef=_0x43fc4a;return this[_0x4034ef(0x125)][_0x4034ef(0xfa)](_0x4034ef(0x166));}[_0x43fc4a(0x121)](){const _0x5d814c=_0x43fc4a;return this[_0x5d814c(0x125)][_0x5d814c(0xfa)](_0x5d814c(0xeb));}[_0x43fc4a(0x16a)](){const _0x32e94e=_0x43fc4a;return this[_0x32e94e(0x11e)][_0x32e94e(0xfa)](_0x32e94e(0x166));}static[_0x43fc4a(0x11a)](_0xabf59b){const _0x42ca94=_0x43fc4a;return Array[_0x42ca94(0x101)](_0xabf59b[_0x42ca94(0x12a)]())[_0x42ca94(0xf1)](_0x277f1e=>this[_0x42ca94(0x145)](_0x277f1e))[_0x42ca94(0x139)](_0x4e8353=>null!==_0x4e8353);}async[_0x43fc4a(0xe7)](_0x219457,_0x15a09a,_0x56bdea=_0x3502d2[_0x43fc4a(0x136)]){const _0x5e0577=_0x43fc4a,_0x1cfc93=_0x5e0577(0x102)+_0xa74476();this[_0x5e0577(0x16d)](_0x1cfc93);try{await Promise[_0x5e0577(0xf9)](_0x219457[_0x5e0577(0xf1)](async _0x14783e=>{const _0x34fbcb=_0x5e0577,_0xacf5a6=_0x34fbcb(0xef)+_0xa74476(),_0x1e4cb4=_0x2063b3(_0x14783e[_0x34fbcb(0xe8)]);try{this[_0x34fbcb(0x162)]({'type':_0x56bdea,'label':_0x15a09a?.[_0x34fbcb(0x128)]||_0x1e4cb4,'uiId':_0xacf5a6,'resourceId':_0x15a09a?.[_0x34fbcb(0x113)]},!0x0);const _0x49104f=this[_0x34fbcb(0x11f)][_0x34fbcb(0x112)](this[_0x34fbcb(0x157)],_0x14783e,_0x15a09a);this[_0x34fbcb(0x11c)][_0x34fbcb(0x14d)](_0xacf5a6,_0x49104f[_0x34fbcb(0xf8)]);const {id:_0x116338}=await _0x49104f[_0x34fbcb(0x13d)]();this[_0x34fbcb(0x11c)][_0x34fbcb(0xf3)](_0xacf5a6),this[_0x34fbcb(0xea)]({'type':_0x56bdea,'id':_0x116338,'label':_0x15a09a?.[_0x34fbcb(0x128)]||_0x1e4cb4,'uiId':_0xacf5a6,'resourceId':_0x15a09a?.[_0x34fbcb(0x113)]},!0x1);}catch(_0x4c7b7b){this[_0x34fbcb(0x11c)][_0x34fbcb(0xf3)](_0xacf5a6);if(!_0x4c7b7b[_0x34fbcb(0x16c)][_0x34fbcb(0x123)](_0x34fbcb(0x14a))){const _0x488d92=new _0x553e7c(_0x34fbcb(0x14e),null,{'fileName':_0x1e4cb4});_0x488d92[_0x34fbcb(0xfe)]=_0x4c7b7b[_0x34fbcb(0xfe)],this[_0x34fbcb(0x148)](_0x34fbcb(0x118),{'error':_0x488d92,'fileName':_0x1e4cb4});}this[_0x34fbcb(0x127)](_0xacf5a6);}}));}finally{this[_0x5e0577(0x152)](_0x1cfc93);}}[_0x43fc4a(0xed)](_0x2c7c54){const _0x399050=_0x43fc4a;if(this[_0x399050(0x141)]())return;const _0x4322d1={'type':_0x3502d2[_0x399050(0x158)],'uiId':_0x399050(0x166),'label':_0x2c7c54,'isReadOnly':this[_0x399050(0x11e)][_0x399050(0xfa)](_0x399050(0x166)),'hidden':this[_0x399050(0x11e)][_0x399050(0xfa)](_0x399050(0x166))};this[_0x399050(0x162)](_0x4322d1);}async[_0x43fc4a(0x120)](_0x111614,_0x441bcb,_0x3d9181,_0x501e65){const _0x5d9107=_0x43fc4a,_0x19157d=this[_0x5d9107(0x125)][_0x5d9107(0x171)](_0x5d9107(0x166));if(_0x19157d&&_0x111614){_0x19157d[_0x5d9107(0xeb)]=_0x501e65?_0x501e65[_0x5d9107(0xf1)](_0x5ed746=>({'start':_0x5ed746[_0x5d9107(0x105)],'end':_0x5ed746[_0x5d9107(0xfd)]})):[];try{if(_0x19157d[_0x5d9107(0x147)]===_0x441bcb)return;const {id:_0x156fa}=await this[_0x5d9107(0x11f)][_0x5d9107(0x117)](this[_0x5d9107(0x157)],_0x111614,{'version':_0x441bcb,'sessionId':_0x3d9181})[_0x5d9107(0x13d)]();_0x19157d['id']=_0x156fa,_0x19157d[_0x5d9107(0x16f)]=_0x111614,_0x19157d[_0x5d9107(0x147)]=_0x441bcb,_0x19157d[_0x5d9107(0x137)]=_0x3d9181;}catch(_0x29cb64){const _0x31fe28=new _0x553e7c(_0x5d9107(0xf2),null);_0x31fe28[_0x5d9107(0xfe)]=_0x29cb64[_0x5d9107(0xfe)],this[_0x5d9107(0x148)](_0x5d9107(0x118),{'error':_0x31fe28});}}}[_0x43fc4a(0x134)](_0x1fb6e0){const _0x5b549a=_0x43fc4a;this[_0x5b549a(0x162)]({'type':_0x3502d2[_0x5b549a(0xe6)],'label':_0x1fb6e0,'uiId':_0x5b549a(0xeb),'content':_0x1fb6e0});}[_0x43fc4a(0x138)](){const _0x2474c2=_0x43fc4a;this[_0x2474c2(0x127)](_0x2474c2(0xeb));}async[_0x43fc4a(0xf7)](_0x1eb2b4,_0x2bbabb){const _0x4bb49d=_0x43fc4a,_0x4700c7=_0x4bb49d(0x16e)+_0xa74476();this[_0x4bb49d(0x16d)](_0x4700c7);const _0x5f6bab=_0x4bb49d(0x16e)+_0xa74476();try{this[_0x4bb49d(0x162)]({'type':_0x3502d2[_0x4bb49d(0x115)],'label':_0x2bbabb?.[_0x4bb49d(0x128)]||_0x1eb2b4,'uiId':_0x5f6bab,'resourceId':_0x2bbabb?.[_0x4bb49d(0x113)]},!0x0);const _0x427cc9=this[_0x4bb49d(0x11f)][_0x4bb49d(0x124)](this[_0x4bb49d(0x157)],_0x1eb2b4,_0x2bbabb);this[_0x4bb49d(0x11c)][_0x4bb49d(0x14d)](_0x5f6bab,_0x427cc9[_0x4bb49d(0xf8)]);const {id:_0x451301}=await _0x427cc9[_0x4bb49d(0x13d)]();this[_0x4bb49d(0x11c)][_0x4bb49d(0xf3)](_0x5f6bab),this[_0x4bb49d(0xea)]({'type':_0x3502d2[_0x4bb49d(0x115)],'id':_0x451301,'label':_0x2bbabb?.[_0x4bb49d(0x128)]||_0x1eb2b4,'uiId':_0x5f6bab,'resourceId':_0x2bbabb?.[_0x4bb49d(0x113)]},!0x1);}catch(_0x5d0f1b){this[_0x4bb49d(0x11c)][_0x4bb49d(0xf3)](_0x5f6bab),(_0x5d0f1b[_0x4bb49d(0x16c)][_0x4bb49d(0x123)](_0x4bb49d(0x14a))||this[_0x4bb49d(0x148)](_0x4bb49d(0x118),{'error':new _0x553e7c(_0x4bb49d(0xee),this,{'url':_0x1eb2b4,'originalError':_0x5d0f1b}),'url':_0x1eb2b4}),this[_0x4bb49d(0x127)](_0x5f6bab));}finally{this[_0x4bb49d(0x152)](_0x4700c7);}}async[_0x43fc4a(0x10d)](_0x13e3cf,_0x15f5b4,_0x375921){const _0x4da3a2=_0x43fc4a,_0x3c0905=this[_0x4da3a2(0x12c)][_0x4da3a2(0x151)][_0x4da3a2(0x104)](_0x5ec04a=>_0x5ec04a['id']===_0x13e3cf);if(!_0x3c0905)return this[_0x4da3a2(0x148)](_0x4da3a2(0x118),{'error':new _0x553e7c(_0x4da3a2(0x13a),this,{'sourceId':_0x13e3cf}),'sourceId':_0x13e3cf}),[];try{const _0x40d404=(await _0x3c0905[_0x4da3a2(0x161)](_0x15f5b4))[_0x4da3a2(0xf1)](_0x5d81c6=>{const _0x56a62c=_0x4da3a2,_0x2008b2=this[_0x56a62c(0x15d)](_0x5d81c6['id']);return{..._0x5d81c6,'isInContext':_0x2008b2};});return _0x3c0905[_0x4da3a2(0x133)]=_0x40d404,this[_0x4da3a2(0x148)](_0x4da3a2(0x10b),{'sourceId':_0x13e3cf,'source':_0x3c0905,'resources':_0x40d404,'uid':_0x375921}),_0x40d404;}catch(_0x30ac88){return this[_0x4da3a2(0x148)](_0x4da3a2(0x118),{'error':new _0x553e7c(_0x4da3a2(0x12b),this,{'sourceId':_0x13e3cf,'originalError':_0x30ac88}),'sourceId':_0x13e3cf,'sourceLabel':_0x3c0905[_0x4da3a2(0x128)]}),[];}}async[_0x43fc4a(0x109)](_0x22f3eb,_0x289fec){const _0x5523ae=_0x43fc4a;if(this[_0x5523ae(0x15d)](_0x289fec['id']))return;let _0x41e6b7=_0x289fec[_0x5523ae(0x116)];if(!_0x41e6b7&&_0x22f3eb[_0x5523ae(0x146)])try{_0x41e6b7=await _0x22f3eb[_0x5523ae(0x146)](_0x289fec['id']);}catch(_0x133dcb){return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x159),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'originalError':_0x133dcb}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}if(_0x41e6b7)switch(_0x289fec[_0x5523ae(0x111)]){case _0x3502d2[_0x5523ae(0x115)]:if(_0x5523ae(0x169)!=typeof _0x41e6b7)return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x169),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});await this[_0x5523ae(0xf7)](_0x41e6b7,{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']});break;case _0x3502d2[_0x5523ae(0x136)]:if(!(_0x41e6b7 instanceof File))return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x103),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});await this[_0x5523ae(0xe7)]([_0x41e6b7],{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']});break;case _0x3502d2[_0x5523ae(0x165)]:if(_0x5523ae(0x129)!=typeof _0x41e6b7||!(_0x5523ae(0x16f)in _0x41e6b7)||!(_0x5523ae(0x111)in _0x41e6b7))return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x11d),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});_0x41e6b7=AIChatContext[_0x5523ae(0x13b)](_0x41e6b7,_0x289fec[_0x5523ae(0x128)]),await this[_0x5523ae(0xe7)]([_0x41e6b7],{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']},_0x3502d2[_0x5523ae(0x165)]);break;default:this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0xe9),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'resourceType':_0x289fec[_0x5523ae(0x111)]}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}else this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x132),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}static[_0x43fc4a(0x13b)](_0x501d18,_0x1e4cb1){const _0x43ab17=_0x43fc4a;switch(_0x501d18[_0x43ab17(0x111)]){case _0x4d97ac[_0x43ab17(0xe3)]:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x10c)});case _0x4d97ac[_0x43ab17(0x167)]:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x154)});default:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x143)});}}static[_0x43fc4a(0x145)](_0xb4289a){const _0x3d8d05=_0x43fc4a;switch(_0xb4289a[_0x3d8d05(0x111)]){case _0x3502d2[_0x3d8d05(0x136)]:return{'type':_0x3502d2[_0x3d8d05(0x136)],'id':_0xb4289a['id']};case _0x3502d2[_0x3d8d05(0x115)]:return{'type':_0x3502d2[_0x3d8d05(0x115)],'id':_0xb4289a['id']};case _0x3502d2[_0x3d8d05(0x158)]:return{'type':_0x3502d2[_0x3d8d05(0x158)],'id':_0xb4289a['id'],..._0xb4289a[_0x3d8d05(0xeb)]?.[_0x3d8d05(0x11b)]&&{'selection':_0xb4289a[_0x3d8d05(0xeb)]}};case _0x3502d2[_0x3d8d05(0x165)]:return{'type':_0x3502d2[_0x3d8d05(0x136)],'id':_0xb4289a['id']};default:return null;}}[_0x43fc4a(0x162)](_0x3efb0e,_0x257958=!0x1){const _0x3f95b7=_0x43fc4a;if(this[_0x3f95b7(0x125)][_0x3f95b7(0x14d)](_0x3efb0e[_0x3f95b7(0x100)],_0x3efb0e),_0x3efb0e[_0x3f95b7(0xf4)]||this[_0x3f95b7(0x148)](_0x3f95b7(0x155),{'contextItem':_0x3efb0e,'isLoading':_0x257958}),_0x3f95b7(0x166)===_0x3efb0e[_0x3f95b7(0x100)]&&this[_0x3f95b7(0x119)](),_0x3efb0e[_0x3f95b7(0x113)]){const _0x5ef2fd=this[_0x3f95b7(0x15e)](_0x3efb0e[_0x3f95b7(0x113)]);_0x5ef2fd&&_0x5ef2fd[_0x3f95b7(0x15a)](_0x4db90c=>{const _0xeef920=_0x3f95b7;this[_0xeef920(0x114)](_0x4db90c,_0x3efb0e[_0xeef920(0x113)],!0x0);});}}[_0x43fc4a(0x127)](_0x55802e){const _0x9c616d=_0x43fc4a,_0x7e6990=this[_0x9c616d(0x125)][_0x9c616d(0x171)](_0x55802e),_0x18cd9d=this[_0x9c616d(0x11c)][_0x9c616d(0x171)](_0x55802e);if(_0x18cd9d&&(_0x18cd9d[_0x9c616d(0x135)](),this[_0x9c616d(0x11c)][_0x9c616d(0xf3)](_0x55802e)),_0x7e6990?.[_0x9c616d(0x113)]){const _0x213537=this[_0x9c616d(0x15e)](_0x7e6990[_0x9c616d(0x113)]);_0x213537&&_0x213537[_0x9c616d(0x15a)](_0x5b4953=>{const _0x6b0723=_0x9c616d;this[_0x6b0723(0x114)](_0x5b4953,_0x7e6990[_0x6b0723(0x113)],!0x1);});}this[_0x9c616d(0x125)][_0x9c616d(0xf3)](_0x55802e),this[_0x9c616d(0x148)](_0x9c616d(0x12f),{'uiId':_0x55802e,'type':_0x7e6990?.[_0x9c616d(0x111)]}),_0x9c616d(0x166)===_0x55802e&&this[_0x9c616d(0x119)]();}[_0x43fc4a(0xea)](_0x19eb3c,_0x495bf2){const _0x710853=_0x43fc4a;if(this[_0x710853(0x125)][_0x710853(0xfa)](_0x19eb3c[_0x710853(0x100)])&&(this[_0x710853(0x125)][_0x710853(0x14d)](_0x19eb3c[_0x710853(0x100)],_0x19eb3c),this[_0x710853(0x148)](_0x710853(0x130),{'contextItem':_0x19eb3c,'isLoading':_0x495bf2}),_0x19eb3c[_0x710853(0x113)])){const _0x3aca21=this[_0x710853(0x15e)](_0x19eb3c[_0x710853(0x113)]);_0x3aca21&&_0x3aca21[_0x710853(0x15a)](_0x1d907d=>{const _0xeeeefc=_0x710853;this[_0xeeeefc(0x114)](_0x1d907d,_0x19eb3c[_0xeeeefc(0x113)],!0x0);});}}[_0x43fc4a(0x156)](_0x1ec092){const _0x27eb8d=_0x43fc4a;this[_0x27eb8d(0x11e)][_0x27eb8d(0x14d)](_0x1ec092[_0x27eb8d(0x100)],_0x1ec092);}[_0x43fc4a(0x126)](){const _0x4d609f=_0x43fc4a;this[_0x4d609f(0x12c)]={'document':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x10f)]?.[_0x4d609f(0x153)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x160)]?.[_0x4d609f(0x153)]},'files':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x13f)]?.[_0x4d609f(0x153)]},'sources':this[_0x4d609f(0x10e)]()},this[_0x4d609f(0x148)](_0x4d609f(0x14c),{'options':this[_0x4d609f(0x12c)]});}[_0x43fc4a(0x10e)](){const _0x128a47=_0x43fc4a;return this[_0x128a47(0xff)]?.[_0x128a47(0x151)]?.[_0x128a47(0xf1)](_0x22ab7b=>({..._0x22ab7b,'resources':[]}))??[];}[_0x43fc4a(0x119)](){const _0x1d73bb=_0x43fc4a,_0xe18147=this[_0x1d73bb(0x141)]()||this[_0x1d73bb(0x16a)]();this[_0x1d73bb(0x12c)][_0x1d73bb(0x10f)][_0x1d73bb(0x16b)]=_0xe18147,this[_0x1d73bb(0x148)](_0x1d73bb(0x14c),{'options':this[_0x1d73bb(0x12c)]});}[_0x43fc4a(0x15d)](_0x3c0b30){const _0x51fe5f=_0x43fc4a;for(const _0x269ecb of this[_0x51fe5f(0x125)][_0x51fe5f(0x12a)]())if(_0x269ecb[_0x51fe5f(0x113)]===_0x3c0b30)return!0x0;for(const _0x78b237 of this[_0x51fe5f(0x11e)][_0x51fe5f(0x12a)]())if(_0x78b237[_0x51fe5f(0x113)]===_0x3c0b30)return!0x0;return!0x1;}[_0x43fc4a(0x15e)](_0x1c0f1c){const _0x5c7b77=_0x43fc4a,_0x26f5ca=[];for(const _0x2e29ad of this[_0x5c7b77(0x12c)][_0x5c7b77(0x151)]){_0x2e29ad[_0x5c7b77(0x133)][_0x5c7b77(0x104)](_0x3d2a86=>_0x3d2a86['id']===_0x1c0f1c)&&_0x26f5ca[_0x5c7b77(0xf5)](_0x2e29ad['id']);}return 0x0===_0x26f5ca[_0x5c7b77(0x11b)]?null:_0x26f5ca;}[_0x43fc4a(0x114)](_0x310099,_0x341211,_0x1b6f52){const _0x2d173b=_0x43fc4a,_0x3225ea=this[_0x2d173b(0x12c)][_0x2d173b(0x151)][_0x2d173b(0x104)](_0x28e85d=>_0x28e85d['id']===_0x310099);if(!_0x3225ea)return;const _0x5db802=_0x3225ea[_0x2d173b(0x133)][_0x2d173b(0x104)](_0x440f90=>_0x440f90['id']===_0x341211);_0x5db802&&(_0x5db802[_0x2d173b(0x107)]=_0x1b6f52,this[_0x2d173b(0x148)](_0x2d173b(0x170),{'sourceId':_0x310099,'resourceId':_0x341211,'isInContext':_0x1b6f52}));}[_0x43fc4a(0x16d)](_0x172225){const _0x1485d9=_0x43fc4a;this[_0x1485d9(0x14b)][_0x1485d9(0x14d)](_0x172225,!0x0),this[_0x1485d9(0x14b)][_0x1485d9(0x164)]&&this[_0x1485d9(0x148)](_0x1485d9(0x12e),{'isUploadInProgress':!0x0});}[_0x43fc4a(0x152)](_0x21a600){const _0x53a1d9=_0x43fc4a;this[_0x53a1d9(0x14b)][_0x53a1d9(0xf3)](_0x21a600),0x0===this[_0x53a1d9(0x14b)][_0x53a1d9(0x164)]&&this[_0x53a1d9(0x148)](_0x53a1d9(0x12e),{'isUploadInProgress':!0x1});}}function _0x2b98(){const _0x4af71b=['2489523HChJHe','urls','getResources','_addContextItem','2568636wtmwqV','size','TEXT','current-document','HTML','Current\x20document','string','isCurrentDocumentInConversation','isHidden','message','_startUploadOperation','url-','content','resourceStateChanged','get','MARKDOWN','getSentContextItems','fetchDocument','SELECTION','addFilesToContext','name','ai-chat-context-unsupported-type','_finishContextItemLoading','selection','clearPendingContextItems','addCurrentDocumentToContext','ai-chat-url-upload-failed','file-','6VnVqVn','map','ai-chat-document-upload-failed','delete','hidden','push','10131AzQkML','addUrlToContext','abortController','all','has','isReadOnly','2781JwKXnp','end','stack','_config','uiId','from','files-','File','find','start','getPendingContextItems','isInContext','addToConversationContext','addResourceToContext','_createContextItemFromContent','sourceResourcesLoaded','text/markdown','loadSourceResources','_getCustomSourcesInitialState','document','1469385HAWRoa','type','uploadFile','resourceId','_updateResourceInContextState','URL','data','uploadDocument','error','_toggleAddCurrentDocumentOptionVisibility','mapContextItemsToRequestData','length','_ongoingUploads','object\x20with\x20content\x20and\x20type\x20properties','_conversationContextItems','_connector','updateCurrentDocument','isSelectionInContext','populateFromMessage','startsWith','uploadUrl','_pendingContextItems','_setAddContextOptionsDefaultState','_removeContextItem','label','object','values','ai-chat-source-resources-load-failed','_addContextOptionsState','2iZUtMh','uploadProgressChanged','contextItemRemoved','contextItemLoadingEnded','getDocument','ai-chat-resource-no-data','resources','addSelectionToContext','abort','FILE','sessionId','removeSelectionFromContext','filter','ai-chat-source-not-found','_convertTextResourceToFile','20190643XRqLzS','getId','16008pPqNpW','files','ai-chat-context-invalid-data','isCurrentDocumentInContext','10JZpuQQ','text/plain','5140776vzjaBk','_mapContextItemToRequestData','getData','version','fire','url','ai-request-aborted','_ongoingUploadOperations','addContextOptionsChanged','set','ai-chat-file-upload-failed','removeFromContext','init','sources','_finishUploadOperation','enabled','text/html','contextItemAdded','_addToConversationContextItem','_ownerId','DOCUMENT','ai-chat-resource-load-failed','forEach','contextSent','attributes','_isResourceInContext','_findSourceIdsByResourceId'];_0x2b98=function(){return _0x4af71b;};return _0x2b98();}
23
+ const _0xf1cea4=_0x8c08;function _0x391d(){const _0x264333=['_addToConversationContextItem','sources','uploadDocument','_startUploadOperation','160BqpgiX','file-','481747KipQbF','url-','clearPendingContextItems','ai-request-aborted','_isResourceInContext','getSentContextItems','abort','string','type','document','_finishContextItemLoading','values','set','updateCurrentDocument','object','Current\x20document','_ongoingUploads','File','resourceStateChanged','getPendingContextItems','420MowMpg','fetchDocument','find','url','ai-chat-document-upload-failed','has','getData','contextItemRemoved','isReadOnly','removeSelectionFromContext','version','154DkbyYW','text/markdown','SELECTION','isSelectionInContext','end','attributes','abortController','addToConversationContext','HTML','_finishUploadOperation','uploadFile','getResources','612048FDBWxY','1762LDKgRv','populateFromMessage','filter','text/html','URL','_mapContextItemToRequestData','all','_ongoingUploadOperations','urls','_addContextOptionsState','8fJEEfI','ai-chat-resource-load-failed','FILE','ai-chat-url-upload-failed','ai-chat-source-not-found','_findSourceIdsByResourceId','_connector','ai-chat-source-resources-load-failed','length','contextItemLoadingEnded','addFilesToContext','object\x20with\x20content\x20and\x20type\x20properties','push','getId','uploadUrl','_setAddContextOptionsDefaultState','_convertTextResourceToFile','addUrlToContext','uiId','136953NQIKeR','forEach','enabled','files','_config','isHidden','isInContext','_updateResourceInContextState','data','init','_removeContextItem','get','_ownerId','resourceId','getDocument','sourceResourcesLoaded','current-document','addResourceToContext','message','TEXT','size','label','contextSent','fire','stack','from','ai-chat-context-unsupported-type','_getCustomSourcesInitialState','removeFromContext','addContextOptionsChanged','contextItemAdded','454112tGrqwz','addSelectionToContext','content','MARKDOWN','ai-chat-file-upload-failed','start','isCurrentDocumentInContext','selection','uploadProgressChanged','_createContextItemFromContent','DOCUMENT','ai-chat-resource-no-data','addCurrentDocumentToContext','527706AxvZbt','delete','text/plain','mapContextItemsToRequestData','3545tRLZMt','_toggleAddCurrentDocumentOptionVisibility','files-','_pendingContextItems','2084FqzQUT','name','isCurrentDocumentInConversation','map','_conversationContextItems','error','resources','sessionId','startsWith','hidden','ai-chat-context-invalid-data','_addContextItem','loadSourceResources'];_0x391d=function(){return _0x264333;};return _0x391d();}(function(_0x19582e,_0x41e6ab){const _0x3208a4=_0x8c08,_0x5780a9=_0x19582e();while(!![]){try{const _0x3a7a7d=-parseInt(_0x3208a4(0xd6))/0x1+-parseInt(_0x3208a4(0x9a))/0x2*(-parseInt(_0x3208a4(0x112))/0x3)+-parseInt(_0x3208a4(0xeb))/0x4*(parseInt(_0x3208a4(0xe7))/0x5)+parseInt(_0x3208a4(0xe3))/0x6+parseInt(_0x3208a4(0xfe))/0x7*(parseInt(_0x3208a4(0xa4))/0x8)+-parseInt(_0x3208a4(0xb7))/0x9*(-parseInt(_0x3208a4(0xfc))/0xa)+-parseInt(_0x3208a4(0x8d))/0xb*(-parseInt(_0x3208a4(0x99))/0xc);if(_0x3a7a7d===_0x41e6ab)break;else _0x5780a9['push'](_0x5780a9['shift']());}catch(_0x388b56){_0x5780a9['push'](_0x5780a9['shift']());}}}(_0x391d,0x651bb));import{CKEditorError as _0x253b2f,ObservableMixin as _0x11f21a,uid as _0x1e8a68}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5c271b,AIContextTextResourceType as _0x3ea9f8}from'../../aicore/model/aicontext.js';import{escape as _0x2348be}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xf1cea4(0xd5),_0xf1cea4(0x89),_0xf1cea4(0xad),_0xf1cea4(0xcd),_0xf1cea4(0xf0),_0xf1cea4(0xd4),_0xf1cea4(0xc6),_0xf1cea4(0x110),_0xf1cea4(0xde)];function _0x8c08(_0xd658d3,_0x2d6a68){const _0x391d5a=_0x391d();return _0x8c08=function(_0x8c089,_0x4a523a){_0x8c089=_0x8c089-0x87;let _0x19ec72=_0x391d5a[_0x8c089];return _0x19ec72;},_0x8c08(_0xd658d3,_0x2d6a68);}export class AIChatContext extends _0x11f21a(){[_0xf1cea4(0xaa)];[_0xf1cea4(0xbb)];[_0xf1cea4(0xc3)];constructor({connector:_0x568fc4,config:_0x462133,ownerId:_0x13c3af}){const _0x1218e2=_0xf1cea4;super(),this[_0x1218e2(0xaa)]=_0x568fc4,this[_0x1218e2(0xbb)]=_0x462133,this[_0x1218e2(0xc3)]=_0x13c3af;}[_0xf1cea4(0xc0)](){const _0x4f4d2e=_0xf1cea4;this[_0x4f4d2e(0xea)]=new Map(),this[_0x4f4d2e(0xef)]=new Map(),this[_0x4f4d2e(0x10e)]=new Map(),this[_0x4f4d2e(0xa1)]=new Map(),this[_0x4f4d2e(0xb3)]();}[_0xf1cea4(0x111)](){const _0x1a2c69=_0xf1cea4;return this[_0x1a2c69(0xea)];}async[_0xf1cea4(0x9b)](_0x25d527){const _0x2a6ca4=_0xf1cea4,_0x4dca58=await this[_0x2a6ca4(0xdf)](_0x25d527);return this[_0x2a6ca4(0xf8)](_0x4dca58),_0x2a6ca4(0xc7)===_0x4dca58[_0x2a6ca4(0xb6)]&&this[_0x2a6ca4(0xe8)](),_0x4dca58;}async[_0xf1cea4(0xdf)](_0x3de4e7){const _0x5c70b8=_0xf1cea4;if(_0x3de4e7[_0x5c70b8(0x106)]===_0x5c271b[_0x5c70b8(0xe0)]){const _0x1fd5f8=await this[_0x5c70b8(0xaa)][_0x5c70b8(0x113)](this[_0x5c70b8(0xc3)],_0x3de4e7['id'])[_0x5c70b8(0xc5)]();return{'id':_0x5c70b8(0xc7),'uiId':_0x5c70b8(0xc7),'label':_0x5c70b8(0x10d),'type':_0x3de4e7[_0x5c70b8(0x106)],'content':_0x1fd5f8[_0x5c70b8(0xd8)],'hidden':this[_0x5c70b8(0xef)][_0x5c70b8(0x87)](_0x5c70b8(0xc7)),'version':_0x1fd5f8[_0x5c70b8(0x92)]?.[_0x5c70b8(0x8c)],'sessionId':_0x1fd5f8[_0x5c70b8(0x92)]?.[_0x5c70b8(0xf2)]};}return{'id':_0x3de4e7['id'],'uiId':_0x3de4e7['id'],'label':_0x3de4e7[_0x5c70b8(0x92)]?.[_0x5c70b8(0xcc)]||_0x3de4e7[_0x5c70b8(0xec)]||_0x3de4e7[_0x5c70b8(0x115)]||_0x3de4e7['id'],'type':_0x3de4e7[_0x5c70b8(0x106)],..._0x3de4e7?.[_0x5c70b8(0x92)]?.[_0x5c70b8(0xc4)]?{'resourceId':_0x3de4e7[_0x5c70b8(0x92)]?.[_0x5c70b8(0xc4)]}:{}};}[_0xf1cea4(0x103)](){const _0x188325=_0xf1cea4;return new Map(this[_0x188325(0xef)]);}[_0xf1cea4(0xd3)](_0x2cbf9f){const _0x34c44c=_0xf1cea4,_0x4ad2e5=this[_0x34c44c(0xea)][_0x34c44c(0xc2)](_0x2cbf9f);_0x4ad2e5?.[_0x34c44c(0x8a)]||this[_0x34c44c(0xc1)](_0x2cbf9f);}[_0xf1cea4(0x100)](){const _0x95ebb7=_0xf1cea4;if(0x0===this[_0x95ebb7(0xea)][_0x95ebb7(0xcb)])return;for(const _0x55be0d of this[_0x95ebb7(0xea)][_0x95ebb7(0x109)]())this[_0x95ebb7(0xc1)](_0x55be0d[_0x95ebb7(0xb6)]);const _0x1c0919=this[_0x95ebb7(0xef)][_0x95ebb7(0xc2)](_0x95ebb7(0xc7))||this[_0x95ebb7(0xea)][_0x95ebb7(0xc2)](_0x95ebb7(0xc7));_0x1c0919&&this[_0x95ebb7(0xf6)]({..._0x1c0919,'isReadOnly':!0x0,'hidden':!0x0});}[_0xf1cea4(0x94)](_0xa892e7){const _0x2bc3f5=_0xf1cea4;for(const _0x13d14f of _0xa892e7[_0x2bc3f5(0x109)]())this[_0x2bc3f5(0xf8)](_0x13d14f);this[_0x2bc3f5(0x100)](),this[_0x2bc3f5(0xce)](_0x2bc3f5(0xcd),{'contextItems':Array[_0x2bc3f5(0xd0)](this[_0x2bc3f5(0x103)]()[_0x2bc3f5(0x109)]())});}[_0xf1cea4(0xdc)](){const _0x25fb38=_0xf1cea4;return this[_0x25fb38(0xea)][_0x25fb38(0x87)](_0x25fb38(0xc7));}[_0xf1cea4(0x90)](){const _0x410729=_0xf1cea4;return this[_0x410729(0xea)][_0x410729(0x87)](_0x410729(0xdd));}[_0xf1cea4(0xed)](){const _0xce811a=_0xf1cea4;return this[_0xce811a(0xef)][_0xce811a(0x87)](_0xce811a(0xc7));}static[_0xf1cea4(0xe6)](_0x3a1062){const _0x8dc65=_0xf1cea4;return Array[_0x8dc65(0xd0)](_0x3a1062[_0x8dc65(0x109)]())[_0x8dc65(0xee)](_0x16a6b6=>this[_0x8dc65(0x9f)](_0x16a6b6))[_0x8dc65(0x9c)](_0x6c5eac=>null!==_0x6c5eac);}async[_0xf1cea4(0xae)](_0x24e545,_0x2d990b,_0x41a541=_0x5c271b[_0xf1cea4(0xa6)]){const _0xf612e1=_0xf1cea4,_0x3609c5=_0xf612e1(0xe9)+_0x1e8a68();this[_0xf612e1(0xfb)](_0x3609c5);try{await Promise[_0xf612e1(0xa0)](_0x24e545[_0xf612e1(0xee)](async _0x4db0a1=>{const _0x538e41=_0xf612e1,_0x3499c1=_0x538e41(0xfd)+_0x1e8a68(),_0x1c9a37=_0x2348be(_0x4db0a1[_0x538e41(0xec)]);try{this[_0x538e41(0xf6)]({'type':_0x41a541,'label':_0x2d990b?.[_0x538e41(0xcc)]||_0x1c9a37,'uiId':_0x3499c1,'resourceId':_0x2d990b?.[_0x538e41(0xc4)]},!0x0);const _0xfcc24a=this[_0x538e41(0xaa)][_0x538e41(0x97)](this[_0x538e41(0xc3)],_0x4db0a1,_0x2d990b);this[_0x538e41(0x10e)][_0x538e41(0x10a)](_0x3499c1,_0xfcc24a[_0x538e41(0x93)]);const {id:_0x1196c1}=await _0xfcc24a[_0x538e41(0xb1)]();this[_0x538e41(0x10e)][_0x538e41(0xe4)](_0x3499c1),this[_0x538e41(0x108)]({'type':_0x41a541,'id':_0x1196c1,'label':_0x2d990b?.[_0x538e41(0xcc)]||_0x1c9a37,'uiId':_0x3499c1,'resourceId':_0x2d990b?.[_0x538e41(0xc4)]},!0x1);}catch(_0x18b8b1){this[_0x538e41(0x10e)][_0x538e41(0xe4)](_0x3499c1);if(!_0x18b8b1[_0x538e41(0xc9)][_0x538e41(0xf3)](_0x538e41(0x101))){const _0xd6f4de=new _0x253b2f(_0x538e41(0xda),null,{'fileName':_0x1c9a37});_0xd6f4de[_0x538e41(0xcf)]=_0x18b8b1[_0x538e41(0xcf)],this[_0x538e41(0xce)](_0x538e41(0xf0),{'error':_0xd6f4de,'fileName':_0x1c9a37});}this[_0x538e41(0xc1)](_0x3499c1);}}));}finally{this[_0xf612e1(0x96)](_0x3609c5);}}[_0xf1cea4(0xe2)](_0x19ff4c){const _0x374aa6=_0xf1cea4;if(this[_0x374aa6(0xdc)]())return;const _0x2d68ee={'type':_0x5c271b[_0x374aa6(0xe0)],'uiId':_0x374aa6(0xc7),'label':_0x19ff4c,'isReadOnly':this[_0x374aa6(0xef)][_0x374aa6(0x87)](_0x374aa6(0xc7)),'hidden':this[_0x374aa6(0xef)][_0x374aa6(0x87)](_0x374aa6(0xc7))};this[_0x374aa6(0xf6)](_0x2d68ee);}async[_0xf1cea4(0x10b)](_0x23e0c3,_0x2a2883,_0x507b27,_0x1e4831){const _0x2b2d48=_0xf1cea4,_0x2ba4e8=this[_0x2b2d48(0xea)][_0x2b2d48(0xc2)](_0x2b2d48(0xc7));if(_0x2ba4e8&&_0x23e0c3){_0x2ba4e8[_0x2b2d48(0xdd)]=_0x1e4831?_0x1e4831[_0x2b2d48(0xee)](_0x54d0b4=>({'start':_0x54d0b4[_0x2b2d48(0xdb)],'end':_0x54d0b4[_0x2b2d48(0x91)]})):[];try{if(_0x2ba4e8[_0x2b2d48(0x8c)]===_0x2a2883)return;const {id:_0x2e3017}=await this[_0x2b2d48(0xaa)][_0x2b2d48(0xfa)](this[_0x2b2d48(0xc3)],_0x23e0c3,{'version':_0x2a2883,'sessionId':_0x507b27})[_0x2b2d48(0xb1)]();_0x2ba4e8['id']=_0x2e3017,_0x2ba4e8[_0x2b2d48(0xd8)]=_0x23e0c3,_0x2ba4e8[_0x2b2d48(0x8c)]=_0x2a2883,_0x2ba4e8[_0x2b2d48(0xf2)]=_0x507b27;}catch(_0x27fb58){const _0x32fe7b=new _0x253b2f(_0x2b2d48(0x116),null);_0x32fe7b[_0x2b2d48(0xcf)]=_0x27fb58[_0x2b2d48(0xcf)],this[_0x2b2d48(0xce)](_0x2b2d48(0xf0),{'error':_0x32fe7b});}}}[_0xf1cea4(0xd7)](_0x4878f1){const _0x125525=_0xf1cea4;this[_0x125525(0xf6)]({'type':_0x5c271b[_0x125525(0x8f)],'label':_0x4878f1,'uiId':_0x125525(0xdd),'content':_0x4878f1});}[_0xf1cea4(0x8b)](){const _0x6b4e53=_0xf1cea4;this[_0x6b4e53(0xc1)](_0x6b4e53(0xdd));}async[_0xf1cea4(0xb5)](_0x1d35ff,_0x9ba5ac){const _0x426d97=_0xf1cea4,_0x596676=_0x426d97(0xff)+_0x1e8a68();this[_0x426d97(0xfb)](_0x596676);const _0x5d010d=_0x426d97(0xff)+_0x1e8a68();try{this[_0x426d97(0xf6)]({'type':_0x5c271b[_0x426d97(0x9e)],'label':_0x9ba5ac?.[_0x426d97(0xcc)]||_0x1d35ff,'uiId':_0x5d010d,'resourceId':_0x9ba5ac?.[_0x426d97(0xc4)]},!0x0);const _0x15402a=this[_0x426d97(0xaa)][_0x426d97(0xb2)](this[_0x426d97(0xc3)],_0x1d35ff,_0x9ba5ac);this[_0x426d97(0x10e)][_0x426d97(0x10a)](_0x5d010d,_0x15402a[_0x426d97(0x93)]);const {id:_0x490f3d}=await _0x15402a[_0x426d97(0xb1)]();this[_0x426d97(0x10e)][_0x426d97(0xe4)](_0x5d010d),this[_0x426d97(0x108)]({'type':_0x5c271b[_0x426d97(0x9e)],'id':_0x490f3d,'label':_0x9ba5ac?.[_0x426d97(0xcc)]||_0x1d35ff,'uiId':_0x5d010d,'resourceId':_0x9ba5ac?.[_0x426d97(0xc4)]},!0x1);}catch(_0x2f833e){this[_0x426d97(0x10e)][_0x426d97(0xe4)](_0x5d010d),(_0x2f833e[_0x426d97(0xc9)][_0x426d97(0xf3)](_0x426d97(0x101))||this[_0x426d97(0xce)](_0x426d97(0xf0),{'error':new _0x253b2f(_0x426d97(0xa7),this,{'url':_0x1d35ff,'originalError':_0x2f833e}),'url':_0x1d35ff}),this[_0x426d97(0xc1)](_0x5d010d));}finally{this[_0x426d97(0x96)](_0x596676);}}async[_0xf1cea4(0xf7)](_0x297e28,_0x9e4ee2,_0x3b9ac6){const _0x3feba8=_0xf1cea4,_0x1e76fb=this[_0x3feba8(0xa3)][_0x3feba8(0xf9)][_0x3feba8(0x114)](_0x7e094d=>_0x7e094d['id']===_0x297e28);if(!_0x1e76fb)return this[_0x3feba8(0xce)](_0x3feba8(0xf0),{'error':new _0x253b2f(_0x3feba8(0xa8),this,{'sourceId':_0x297e28}),'sourceId':_0x297e28}),[];try{const _0x102458=(await _0x1e76fb[_0x3feba8(0x98)](_0x9e4ee2))[_0x3feba8(0xee)](_0x42d35c=>{const _0x4a7b92=_0x3feba8,_0x2a7f48=this[_0x4a7b92(0x102)](_0x42d35c['id']);return{..._0x42d35c,'isInContext':_0x2a7f48};});return _0x1e76fb[_0x3feba8(0xf1)]=_0x102458,this[_0x3feba8(0xce)](_0x3feba8(0xc6),{'sourceId':_0x297e28,'source':_0x1e76fb,'resources':_0x102458,'uid':_0x3b9ac6}),_0x102458;}catch(_0x1d332a){return this[_0x3feba8(0xce)](_0x3feba8(0xf0),{'error':new _0x253b2f(_0x3feba8(0xab),this,{'sourceId':_0x297e28,'originalError':_0x1d332a}),'sourceId':_0x297e28,'sourceLabel':_0x1e76fb[_0x3feba8(0xcc)]}),[];}}async[_0xf1cea4(0xc8)](_0x263e13,_0x26c0d9){const _0x507d61=_0xf1cea4;if(this[_0x507d61(0x102)](_0x26c0d9['id']))return;let _0x2d1701=_0x26c0d9[_0x507d61(0xbf)];if(!_0x2d1701&&_0x263e13[_0x507d61(0x88)])try{_0x2d1701=await _0x263e13[_0x507d61(0x88)](_0x26c0d9['id']);}catch(_0xe18cfa){return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xa5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'originalError':_0xe18cfa}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}if(_0x2d1701)switch(_0x26c0d9[_0x507d61(0x106)]){case _0x5c271b[_0x507d61(0x9e)]:if(_0x507d61(0x105)!=typeof _0x2d1701)return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0x105),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});await this[_0x507d61(0xb5)](_0x2d1701,{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']});break;case _0x5c271b[_0x507d61(0xa6)]:if(!(_0x2d1701 instanceof File))return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0x10f),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});await this[_0x507d61(0xae)]([_0x2d1701],{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']});break;case _0x5c271b[_0x507d61(0xca)]:if(_0x507d61(0x10c)!=typeof _0x2d1701||!(_0x507d61(0xd8)in _0x2d1701)||!(_0x507d61(0x106)in _0x2d1701))return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0xaf),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});_0x2d1701=AIChatContext[_0x507d61(0xb4)](_0x2d1701,_0x26c0d9[_0x507d61(0xcc)]),await this[_0x507d61(0xae)]([_0x2d1701],{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']},_0x5c271b[_0x507d61(0xca)]);break;default:this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xd1),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'resourceType':_0x26c0d9[_0x507d61(0x106)]}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}else this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xe1),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}static[_0xf1cea4(0xb4)](_0x2852a6,_0x49d31a){const _0x46dfaf=_0xf1cea4;switch(_0x2852a6[_0x46dfaf(0x106)]){case _0x3ea9f8[_0x46dfaf(0xd9)]:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0x8e)});case _0x3ea9f8[_0x46dfaf(0x95)]:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0x9d)});default:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0xe5)});}}static[_0xf1cea4(0x9f)](_0x57cf10){const _0x744deb=_0xf1cea4;switch(_0x57cf10[_0x744deb(0x106)]){case _0x5c271b[_0x744deb(0xa6)]:return{'type':_0x5c271b[_0x744deb(0xa6)],'id':_0x57cf10['id']};case _0x5c271b[_0x744deb(0x9e)]:return{'type':_0x5c271b[_0x744deb(0x9e)],'id':_0x57cf10['id']};case _0x5c271b[_0x744deb(0xe0)]:return{'type':_0x5c271b[_0x744deb(0xe0)],'id':_0x57cf10['id'],..._0x57cf10[_0x744deb(0xdd)]?.[_0x744deb(0xac)]&&{'selection':_0x57cf10[_0x744deb(0xdd)]}};case _0x5c271b[_0x744deb(0xca)]:return{'type':_0x5c271b[_0x744deb(0xa6)],'id':_0x57cf10['id']};default:return null;}}[_0xf1cea4(0xf6)](_0x454276,_0x1ebfbd=!0x1){const _0x44a990=_0xf1cea4;if(this[_0x44a990(0xea)][_0x44a990(0x10a)](_0x454276[_0x44a990(0xb6)],_0x454276),_0x454276[_0x44a990(0xf4)]||this[_0x44a990(0xce)](_0x44a990(0xd5),{'contextItem':_0x454276,'isLoading':_0x1ebfbd}),_0x44a990(0xc7)===_0x454276[_0x44a990(0xb6)]&&this[_0x44a990(0xe8)](),_0x454276[_0x44a990(0xc4)]){const _0x46bb87=this[_0x44a990(0xa9)](_0x454276[_0x44a990(0xc4)]);_0x46bb87&&_0x46bb87[_0x44a990(0xb8)](_0x17c9a5=>{const _0xcb3974=_0x44a990;this[_0xcb3974(0xbe)](_0x17c9a5,_0x454276[_0xcb3974(0xc4)],!0x0);});}}[_0xf1cea4(0xc1)](_0x37dc3c){const _0xe26fcf=_0xf1cea4,_0x59152d=this[_0xe26fcf(0xea)][_0xe26fcf(0xc2)](_0x37dc3c),_0x2d210c=this[_0xe26fcf(0x10e)][_0xe26fcf(0xc2)](_0x37dc3c);if(_0x2d210c&&(_0x2d210c[_0xe26fcf(0x104)](),this[_0xe26fcf(0x10e)][_0xe26fcf(0xe4)](_0x37dc3c)),_0x59152d?.[_0xe26fcf(0xc4)]){const _0x237aff=this[_0xe26fcf(0xa9)](_0x59152d[_0xe26fcf(0xc4)]);_0x237aff&&_0x237aff[_0xe26fcf(0xb8)](_0x24acaa=>{const _0x1b4d75=_0xe26fcf;this[_0x1b4d75(0xbe)](_0x24acaa,_0x59152d[_0x1b4d75(0xc4)],!0x1);});}this[_0xe26fcf(0xea)][_0xe26fcf(0xe4)](_0x37dc3c),this[_0xe26fcf(0xce)](_0xe26fcf(0x89),{'uiId':_0x37dc3c,'type':_0x59152d?.[_0xe26fcf(0x106)]}),_0xe26fcf(0xc7)===_0x37dc3c&&this[_0xe26fcf(0xe8)]();}[_0xf1cea4(0x108)](_0x24f58d,_0x55efbf){const _0xde28db=_0xf1cea4;if(this[_0xde28db(0xea)][_0xde28db(0x87)](_0x24f58d[_0xde28db(0xb6)])&&(this[_0xde28db(0xea)][_0xde28db(0x10a)](_0x24f58d[_0xde28db(0xb6)],_0x24f58d),this[_0xde28db(0xce)](_0xde28db(0xad),{'contextItem':_0x24f58d,'isLoading':_0x55efbf}),_0x24f58d[_0xde28db(0xc4)])){const _0xb80605=this[_0xde28db(0xa9)](_0x24f58d[_0xde28db(0xc4)]);_0xb80605&&_0xb80605[_0xde28db(0xb8)](_0x34839d=>{const _0x418968=_0xde28db;this[_0x418968(0xbe)](_0x34839d,_0x24f58d[_0x418968(0xc4)],!0x0);});}}[_0xf1cea4(0xf8)](_0x211f2f){const _0x3a1231=_0xf1cea4;this[_0x3a1231(0xef)][_0x3a1231(0x10a)](_0x211f2f[_0x3a1231(0xb6)],_0x211f2f);}[_0xf1cea4(0xb3)](){const _0x1cfe25=_0xf1cea4;this[_0x1cfe25(0xa3)]={'document':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0x107)]?.[_0x1cfe25(0xb9)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0xa2)]?.[_0x1cfe25(0xb9)]},'files':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0xba)]?.[_0x1cfe25(0xb9)]},'sources':this[_0x1cfe25(0xd2)]()},this[_0x1cfe25(0xce)](_0x1cfe25(0xd4),{'options':this[_0x1cfe25(0xa3)]});}[_0xf1cea4(0xd2)](){const _0xbf290f=_0xf1cea4;return this[_0xbf290f(0xbb)]?.[_0xbf290f(0xf9)]?.[_0xbf290f(0xee)](_0x13b3d9=>({..._0x13b3d9,'resources':[]}))??[];}[_0xf1cea4(0xe8)](){const _0x42f9a0=_0xf1cea4,_0x5bca29=this[_0x42f9a0(0xdc)]()||this[_0x42f9a0(0xed)]();this[_0x42f9a0(0xa3)][_0x42f9a0(0x107)][_0x42f9a0(0xbc)]=_0x5bca29,this[_0x42f9a0(0xce)](_0x42f9a0(0xd4),{'options':this[_0x42f9a0(0xa3)]});}[_0xf1cea4(0x102)](_0x3958ff){const _0x5bff54=_0xf1cea4;for(const _0xfe5a73 of this[_0x5bff54(0xea)][_0x5bff54(0x109)]())if(_0xfe5a73[_0x5bff54(0xc4)]===_0x3958ff)return!0x0;for(const _0x1c6e52 of this[_0x5bff54(0xef)][_0x5bff54(0x109)]())if(_0x1c6e52[_0x5bff54(0xc4)]===_0x3958ff)return!0x0;return!0x1;}[_0xf1cea4(0xa9)](_0x48c081){const _0xdaf701=_0xf1cea4,_0x12af7c=[];for(const _0x4e1df of this[_0xdaf701(0xa3)][_0xdaf701(0xf9)]){_0x4e1df[_0xdaf701(0xf1)][_0xdaf701(0x114)](_0xb7d9f=>_0xb7d9f['id']===_0x48c081)&&_0x12af7c[_0xdaf701(0xb0)](_0x4e1df['id']);}return 0x0===_0x12af7c[_0xdaf701(0xac)]?null:_0x12af7c;}[_0xf1cea4(0xbe)](_0x2e8583,_0x6a22dd,_0x2428e1){const _0x47368f=_0xf1cea4,_0x26f1e1=this[_0x47368f(0xa3)][_0x47368f(0xf9)][_0x47368f(0x114)](_0x48df8a=>_0x48df8a['id']===_0x2e8583);if(!_0x26f1e1)return;const _0x7f8281=_0x26f1e1[_0x47368f(0xf1)][_0x47368f(0x114)](_0x3c3142=>_0x3c3142['id']===_0x6a22dd);_0x7f8281&&(_0x7f8281[_0x47368f(0xbd)]=_0x2428e1,this[_0x47368f(0xce)](_0x47368f(0x110),{'sourceId':_0x2e8583,'resourceId':_0x6a22dd,'isInContext':_0x2428e1}));}[_0xf1cea4(0xfb)](_0x222ca5){const _0x504db7=_0xf1cea4;this[_0x504db7(0xa1)][_0x504db7(0x10a)](_0x222ca5,!0x0),this[_0x504db7(0xa1)][_0x504db7(0xcb)]&&this[_0x504db7(0xce)](_0x504db7(0xde),{'isUploadInProgress':!0x0});}[_0xf1cea4(0x96)](_0x44c490){const _0x2218cc=_0xf1cea4;this[_0x2218cc(0xa1)][_0x2218cc(0xe4)](_0x44c490),0x0===this[_0x2218cc(0xa1)][_0x2218cc(0xcb)]&&this[_0x2218cc(0xce)](_0x2218cc(0xde),{'isUploadInProgress':!0x1});}}
@@ -16,9 +16,7 @@ import { AIChatInteraction } from './aichatinteraction.js';
16
16
  import { type AIQuickActionRequestData } from '../../aiquickactions/aiquickactions.js';
17
17
  declare const AIChatConversation_base: {
18
18
  new (): import("ckeditor5/src/utils.js").Emitter;
19
- prototype: import("ckeditor5/src/utils.js").Emitter; /**
20
- * The current interaction in the conversation. Set and unset by {@link #handleUserInteraction}.
21
- */
19
+ prototype: import("ckeditor5/src/utils.js").Emitter;
22
20
  };
23
21
  /**
24
22
  * Represents a conversation between the user and the AI endpoint on top of the
@@ -265,6 +263,6 @@ export type AIChatConversationOptions = {
265
263
  getEditor?: () => Editor;
266
264
  conversationId: string;
267
265
  group: string;
268
- defaultModelId?: string;
266
+ selectedModelId?: string;
269
267
  };
270
268
  export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b5ca=_0x8388;(function(_0x4e977c,_0x7bb925){const _0x1ab6b8=_0x8388,_0x5094f1=_0x4e977c();while(!![]){try{const _0x48aab1=parseInt(_0x1ab6b8(0xe6))/0x1*(-parseInt(_0x1ab6b8(0x11a))/0x2)+parseInt(_0x1ab6b8(0xd6))/0x3*(-parseInt(_0x1ab6b8(0x10d))/0x4)+parseInt(_0x1ab6b8(0x117))/0x5*(parseInt(_0x1ab6b8(0xf1))/0x6)+parseInt(_0x1ab6b8(0xf2))/0x7*(-parseInt(_0x1ab6b8(0x135))/0x8)+parseInt(_0x1ab6b8(0x104))/0x9+parseInt(_0x1ab6b8(0x13d))/0xa*(-parseInt(_0x1ab6b8(0xd3))/0xb)+-parseInt(_0x1ab6b8(0xef))/0xc*(-parseInt(_0x1ab6b8(0xd5))/0xd);if(_0x48aab1===_0x7bb925)break;else _0x5094f1['push'](_0x5094f1['shift']());}catch(_0x5a71d4){_0x5094f1['push'](_0x5094f1['shift']());}}}(_0x5b24,0x9b201));import{CKEditorError as _0x5401a0,EmitterMixin as _0x220c60}from'ckeditor5/src/utils.js';function _0x8388(_0x14a619,_0x5b7df5){const _0x5b24a3=_0x5b24();return _0x8388=function(_0x83886,_0x4de0ac){_0x83886=_0x83886-0xd0;let _0x3704a3=_0x5b24a3[_0x83886];return _0x3704a3;},_0x8388(_0x14a619,_0x5b7df5);}import{AI_MODEL_EVENT_NAMES as _0x3d0b90}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xe15266,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1fc24e}from'./aichatcontext.js';import{AICapabilities as _0x448a05,CAPABILITIES_MODEL_EVENT_NAMES as _0x142aef}from'../../aicore/model/aicapabilities.js';function _0x5b24(){const _0x59f603=['lastInteraction','_extractContextItems','getDocumentContext','isSelectionInContext','splice','conversationInitialized','push','removeSelectionFromContext','interactionCreated','populateFromMessage','7NuCiKc','removeFromContext','attributes','hasOwn','user','_processMessagesToInteractions','ai-chat-conversation-set-model-not-available','modelSelected','capabilities','12GzSTVz','getEditor','144LaIjWs','7KSzGLy','isStarted','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','ai-chat-conversation-init-from-id-failed','selectedModel','find','getPendingContextItems','ai-chat-conversation-start-failed','group','ai-chat-conversation-already-started','content','assistant','addToConversationContext','isAvailable','getDefault','contextItems','getMessages','10970937AtSzOF','conversationId','fetchConversationMessages','currentReply','addResourceToContext','conversationStarted','sessionId','getAll','loadSourceResources','80308YboiAY','getCurrentDocumentContext','createInteraction','reset','setModel','error','handleUserInteraction','toLowerCase','appendContent','ai-chat-conversation-set-model-null','255815yZFtMb','destroy','ai-chat-handle-user-conversation-not-initialized','239866KneKLj','quickActionData','toggleWebSearch','connector','modification-delta','title','startConversation','role','fetchConversation','addUrlToContext','ai-chat-conversation-start-no-model-selected','updateCurrentDocument','addSelectionToContext','webSearch','getConversation','prompt','getCapabilitiesConfig','createReply','stop','text-delta','interactions','start','set','init','addCurrentDocumentToContext','removeInteraction','isCurrentDocumentInConversation','2269840orVrLh','reasoning','indexOf','message','load','model','stack','chatModels','7480BQVEBU','text','setConversationTitle','delegate','ai-chat-conversation-init-failed','fire','chatCapabilities','defaultModelId','getInteraction','chatContext','currentInteraction','2651zsDiWX','isCurrentDocumentInContext','5141266csECvD','135BEzCDU','options','addFilesToContext','length','toggleReasoning','type'];_0x5b24=function(){return _0x59f603;};return _0x5b24();}import{AIChatInteraction as _0x33831d}from'./aichatinteraction.js';export class AIChatConversation extends _0x220c60(){['id'];[_0x39b5ca(0xf3)]=!0x1;[_0x39b5ca(0x12e)]=[];[_0x39b5ca(0xd2)];[_0x39b5ca(0xf7)];[_0x39b5ca(0x11d)];[_0x39b5ca(0xd7)];constructor(_0x5a5663){const _0x58956a=_0x39b5ca;super(),this[_0x58956a(0xd7)]=_0x5a5663,this[_0x58956a(0x11d)]=_0x5a5663[_0x58956a(0x11d)],this[_0x58956a(0x13c)]=_0x5a5663[_0x58956a(0x13c)],this['id']=_0x5a5663[_0x58956a(0x105)];}async[_0x39b5ca(0x131)](_0x180ad3){const _0x554a48=_0x39b5ca;try{this[_0x554a48(0xd1)]=new _0xe15266({'connector':this[_0x554a48(0x11d)],'config':_0x180ad3,'ownerId':this['id']}),this[_0x554a48(0xd1)][_0x554a48(0x140)](..._0x1fc24e)['to'](this),this[_0x554a48(0xd1)][_0x554a48(0x131)](),this[_0x554a48(0x143)]=new _0x448a05(),this[_0x554a48(0x143)][_0x554a48(0x140)](..._0x142aef)['to'](this),this[_0x554a48(0x143)][_0x554a48(0x131)]();const _0x40ddae=await this[_0x554a48(0x13c)][_0x554a48(0x10b)]();this[_0x554a48(0x142)](_0x554a48(0xe1),{'availableModels':_0x40ddae});const _0x1089af=await this[_0x554a48(0x13c)][_0x554a48(0x101)](this[_0x554a48(0xd7)][_0x554a48(0x144)]);_0x1089af&&await this[_0x554a48(0x111)](_0x1089af);}catch(_0x68a7ea){const _0x14a430=new _0x5401a0(_0x554a48(0x141),null,{'message':_0x68a7ea[_0x554a48(0x138)]});_0x14a430[_0x554a48(0x13b)]=_0x68a7ea[_0x554a48(0x13b)],this[_0x554a48(0x142)](_0x554a48(0x112),{'error':_0x14a430});}}async[_0x39b5ca(0x12f)](){const _0x54d2bd=_0x39b5ca;if(this[_0x54d2bd(0xf3)])throw new _0x5401a0(_0x54d2bd(0xfc),null,{'conversation':this});if(!this[_0x54d2bd(0xf7)])throw new _0x5401a0(_0x54d2bd(0x124),null,{'conversation':this});try{const {id:_0x57ede8}=await this[_0x54d2bd(0x11d)][_0x54d2bd(0x120)](this['id'],this[_0x54d2bd(0xd7)][_0x54d2bd(0xfb)])[_0x54d2bd(0x128)]();this['id']=_0x57ede8,this[_0x54d2bd(0xf3)]=!0x0,this[_0x54d2bd(0x142)](_0x54d2bd(0x109),{'conversationId':this['id'],'selectedModel':this[_0x54d2bd(0xf7)]});}catch(_0x1ecf29){const _0x23115e=new _0x5401a0(_0x54d2bd(0xfa),null,{'message':_0x1ecf29[_0x54d2bd(0x138)]});_0x23115e[_0x54d2bd(0x13b)]=_0x1ecf29[_0x54d2bd(0x13b)],this[_0x54d2bd(0x142)](_0x54d2bd(0x112),{'error':_0x23115e});}}async[_0x39b5ca(0x139)](_0x4cdc29,_0x44981d){const _0x32674b=_0x39b5ca;try{const _0x557b45=await this[_0x32674b(0x11d)][_0x32674b(0x122)](_0x4cdc29)[_0x32674b(0x128)](),_0x8b6183=await this[_0x32674b(0x11d)][_0x32674b(0x106)](_0x4cdc29)[_0x32674b(0x103)](),_0x8f3e9b=_0x8b6183[0x0][_0x32674b(0x13a)];this[_0x32674b(0xf3)]=!0x0,this['id']=_0x557b45['id'],_0x32674b(0x11f)in _0x557b45?this[_0x32674b(0x142)](_0x32674b(0x13f),_0x557b45[_0x32674b(0x11f)],!0x0):this[_0x32674b(0x142)](_0x32674b(0x13f),'',!0x0);const _0x1d413c=(await this[_0x32674b(0x13c)][_0x32674b(0x10b)]())[_0x32674b(0xf8)](_0xd7580=>_0xd7580['id'][_0x32674b(0x114)]()===_0x8f3e9b[_0x32674b(0x114)]());return this[_0x32674b(0xf7)]=_0x1d413c,this[_0x32674b(0x142)](_0x32674b(0xed),{'selectedModel':_0x1d413c,'isDisabled':!0x0}),await this[_0x32674b(0xeb)](_0x8b6183,_0x44981d,_0x8f3e9b),this[_0x32674b(0xd2)]=void 0x0,this;}catch(_0x23a605){const _0x5d9bbb=new _0x5401a0(_0x32674b(0xf6),null,{'message':_0x23a605[_0x32674b(0x138)],'conversationId':_0x4cdc29});throw _0x5d9bbb[_0x32674b(0x13b)]=_0x23a605[_0x32674b(0x13b)],this[_0x32674b(0x142)](_0x32674b(0x112),{'error':_0x5d9bbb}),_0x5d9bbb;}}async[_0x39b5ca(0xeb)](_0x576b5d,_0x202d40,_0x7df05a){const _0x393379=_0x39b5ca;let _0xd4525;for(const _0x1124ab of _0x576b5d)if(_0x393379(0xea)===_0x1124ab[_0x393379(0x121)]){const _0x37ab3f=await this[_0x393379(0xdd)](_0x1124ab),_0x2ae7ae={'isReasoningEnabled':Object[_0x393379(0xe9)](_0x1124ab[_0x393379(0xee)],_0x393379(0x136)),'isWebSearchEnabled':Object[_0x393379(0xe9)](_0x1124ab[_0x393379(0xee)],_0x393379(0x127))};_0xd4525=this[_0x393379(0x10f)]({'userMessage':_0x1124ab[_0x393379(0x129)],'contextItems':_0x37ab3f,'capabilities':_0x2ae7ae,'modelId':_0x7df05a,'quickActionData':_0x1124ab[_0x393379(0xe8)]?.[_0x393379(0x11b)]}),this[_0x393379(0xd2)]=_0xd4525,this[_0x393379(0xd1)][_0x393379(0xff)](this[_0x393379(0xd2)][_0x393379(0x102)]);}else{if(_0x393379(0xfe)===_0x1124ab[_0x393379(0x121)]&&_0xd4525)for(const _0x4734ac of _0x1124ab[_0x393379(0xfd)]){const _0x5bb0cf=_0x393379(0x13e)===_0x4734ac[_0x393379(0xdb)]?_0x393379(0x12d):_0x393379(0x11e),_0x5e9093=_0xd4525[_0x393379(0xde)]()?.[_0x393379(0x10a)]!==_0x202d40;_0xd4525[_0x393379(0x107)]=_0xd4525[_0x393379(0x12b)]({'type':_0x5bb0cf,'isDone':!0x0,'interactionId':_0xd4525['id'],'areActionsDisabled':_0x5e9093}),_0xd4525[_0x393379(0x107)][_0x393379(0x115)](_0x4734ac[_0x393379(0xfd)]);}}}async[_0x39b5ca(0xdd)](_0x47b406){const _0x34566b=_0x39b5ca,_0x5ee30e=new Map();if(!_0x47b406[_0x34566b(0xfd)])return _0x5ee30e;for(const _0x4342ca of _0x47b406[_0x34566b(0xfd)]){const _0x4821c2=await this[_0x34566b(0xd1)][_0x34566b(0xe5)](_0x4342ca);_0x4821c2&&_0x5ee30e[_0x34566b(0x130)](_0x4821c2['id'],_0x4821c2);}return _0x5ee30e;}async[_0x39b5ca(0x113)]({userMessage:_0xf7e286,quickActionData:_0x44109f}){const _0x31dd45=_0x39b5ca;if(!this[_0x31dd45(0xf3)])throw new _0x5401a0(_0x31dd45(0x119),null,{'conversation':this});if(this[_0x31dd45(0xd2)])throw new _0x5401a0(_0x31dd45(0xf4),null,{'conversation':this});try{const _0x1e2b4c=this[_0x31dd45(0xd1)][_0x31dd45(0xf9)](),_0x4b8e5c=this[_0x31dd45(0x143)][_0x31dd45(0x12a)](),_0x4c4ed8=this[_0x31dd45(0xf7)]['id'];this[_0x31dd45(0xd2)]=this[_0x31dd45(0x10f)]({'userMessage':_0xf7e286,'contextItems':_0x1e2b4c,'capabilities':_0x4b8e5c,'modelId':_0x4c4ed8,'quickActionData':_0x44109f}),await this[_0x31dd45(0xd2)][_0x31dd45(0x12f)](),this[_0x31dd45(0xd1)][_0x31dd45(0xff)](this[_0x31dd45(0xd2)][_0x31dd45(0x102)]);}catch(_0x48d751){this[_0x31dd45(0x142)](_0x31dd45(0x112),{'interactionId':this[_0x31dd45(0xd2)]?this[_0x31dd45(0xd2)]['id']:void 0x0,'error':_0x48d751});}finally{this[_0x31dd45(0xd2)]?.[_0x31dd45(0x12c)](),this[_0x31dd45(0xd2)]=void 0x0;}}[_0x39b5ca(0x10f)]({userMessage:_0x2d9466,contextItems:_0x4a6bbc,capabilities:_0x164d55,modelId:_0x417eb2,quickActionData:_0x34a6f6}){const _0x8988fc=_0x39b5ca,_0x2ab5d1=new _0x33831d({'userMessage':_0x2d9466,'contextItems':_0x4a6bbc,'capabilities':_0x164d55,'conversationId':this['id'],'connector':this[_0x8988fc(0x11d)],'editor':this[_0x8988fc(0xd7)][_0x8988fc(0xf0)]&&this[_0x8988fc(0xd7)][_0x8988fc(0xf0)](),'model':_0x417eb2,'quickActionData':_0x34a6f6});return _0x2ab5d1[_0x8988fc(0x140)](..._0x3d0b90)['to'](this),this[_0x8988fc(0x12e)][_0x8988fc(0xe2)](_0x2ab5d1),this[_0x8988fc(0x142)](_0x8988fc(0xe4),_0x2ab5d1),_0x2ab5d1;}[_0x39b5ca(0xd0)](_0x4af06f){const _0x36cc09=_0x39b5ca;return this[_0x36cc09(0x12e)][_0x36cc09(0xf8)](_0x205da5=>_0x205da5['id']===_0x4af06f);}[_0x39b5ca(0x133)](_0x5eb414){const _0x146f84=_0x39b5ca,_0x494a50=this[_0x146f84(0xd0)](_0x5eb414);_0x494a50&&(_0x494a50[_0x146f84(0x118)](),this[_0x146f84(0x12e)][_0x146f84(0xe0)](this[_0x146f84(0x12e)][_0x146f84(0x137)](_0x494a50),0x1));}get[_0x39b5ca(0xdc)](){const _0x260a55=_0x39b5ca;return this[_0x260a55(0x12e)][this[_0x260a55(0x12e)][_0x260a55(0xd9)]-0x1];}[_0x39b5ca(0x132)](_0x44082d){const _0x9af401=_0x39b5ca;this[_0x9af401(0xd1)][_0x9af401(0x132)](_0x44082d);}async[_0x39b5ca(0xf5)]({content:_0x5c228e,version:_0x3ea346,sessionId:_0xbf66a0,selections:_0x159994}){const _0xb15f25=_0x39b5ca;await this[_0xb15f25(0xd1)][_0xb15f25(0x125)](_0x5c228e,_0x3ea346,_0xbf66a0,_0x159994);}[_0x39b5ca(0x10e)](){const _0xeb2817=_0x39b5ca;return this[_0xeb2817(0xd2)]?.[_0xeb2817(0xde)]()?.[_0xeb2817(0xfd)]||'';}[_0x39b5ca(0x126)](_0x49ddb2){const _0x1707f2=_0x39b5ca;this[_0x1707f2(0xd1)][_0x1707f2(0x126)](_0x49ddb2);}[_0x39b5ca(0xe3)](){const _0x4f674c=_0x39b5ca;this[_0x4f674c(0xd1)][_0x4f674c(0xe3)]();}[_0x39b5ca(0xd8)](_0x280ba6){const _0x10123f=_0x39b5ca;this[_0x10123f(0xd1)][_0x10123f(0xd8)](_0x280ba6);}[_0x39b5ca(0x123)](_0xa44c81){const _0x3bb3ef=_0x39b5ca;this[_0x3bb3ef(0xd1)][_0x3bb3ef(0x123)](_0xa44c81);}[_0x39b5ca(0x108)](_0x4c30c2,_0x16fae6){const _0xc0af1a=_0x39b5ca;this[_0xc0af1a(0xd1)][_0xc0af1a(0x108)](_0x4c30c2,_0x16fae6);}[_0x39b5ca(0x10c)](_0x317b67,_0x31f60d,_0x431ca1){const _0x1311f5=_0x39b5ca;return this[_0x1311f5(0xd1)][_0x1311f5(0x10c)](_0x317b67,_0x31f60d,_0x431ca1);}[_0x39b5ca(0xe7)](_0x59a61a){const _0x1ee727=_0x39b5ca;this[_0x1ee727(0xd1)][_0x1ee727(0xe7)](_0x59a61a);}[_0x39b5ca(0x11c)](){const _0x392002=_0x39b5ca;this[_0x392002(0x143)][_0x392002(0x11c)]();}[_0x39b5ca(0xda)](){const _0x282b11=_0x39b5ca;this[_0x282b11(0x143)][_0x282b11(0xda)]();}[_0x39b5ca(0xd4)](){const _0xf21feb=_0x39b5ca;return this[_0xf21feb(0xd1)][_0xf21feb(0xd4)]();}[_0x39b5ca(0x134)](){const _0x19bdb2=_0x39b5ca;return this[_0x19bdb2(0xd1)][_0x19bdb2(0x134)]();}[_0x39b5ca(0xdf)](){const _0x2e9be8=_0x39b5ca;return this[_0x2e9be8(0xd1)][_0x2e9be8(0xdf)]();}async[_0x39b5ca(0x111)](_0x2957d7){const _0x4acece=_0x39b5ca;if(!_0x2957d7)throw new _0x5401a0(_0x4acece(0x116),null,{'conversation':this});if(!0x1===await this[_0x4acece(0x13c)][_0x4acece(0x100)](_0x2957d7))throw new _0x5401a0(_0x4acece(0xec),null,{'conversation':this,'model':_0x2957d7});_0x2957d7['id']!==this[_0x4acece(0xf7)]?.['id']&&(this[_0x4acece(0xf7)]=_0x2957d7,this[_0x4acece(0x143)][_0x4acece(0x110)](),this[_0x4acece(0x142)](_0x4acece(0xed),{'selectedModel':_0x2957d7}));}}
23
+ const _0x1b4b4f=_0x5dd1;(function(_0xe2f9ec,_0x379fe9){const _0xbf6501=_0x5dd1,_0xba2bec=_0xe2f9ec();while(!![]){try{const _0x3b1b8e=-parseInt(_0xbf6501(0x24d))/0x1*(-parseInt(_0xbf6501(0x24b))/0x2)+-parseInt(_0xbf6501(0x22f))/0x3*(parseInt(_0xbf6501(0x203))/0x4)+parseInt(_0xbf6501(0x1ec))/0x5+-parseInt(_0xbf6501(0x22e))/0x6*(parseInt(_0xbf6501(0x209))/0x7)+parseInt(_0xbf6501(0x23f))/0x8+-parseInt(_0xbf6501(0x1e8))/0x9*(-parseInt(_0xbf6501(0x200))/0xa)+-parseInt(_0xbf6501(0x207))/0xb;if(_0x3b1b8e===_0x379fe9)break;else _0xba2bec['push'](_0xba2bec['shift']());}catch(_0x1bf39a){_0xba2bec['push'](_0xba2bec['shift']());}}}(_0x39c0,0x5948e));function _0x39c0(){const _0x462d3c=['model','length','18wRZShY','conversationId','getModel','reset','3007495bXTVeH','addSelectionToContext','user','addUrlToContext','toggleReasoning','fetchConversation','ai-chat-conversation-init-failed','text-delta','chatContext','getAll','isStarted','sessionId','lastInteraction','updateCurrentDocument','removeFromContext','isAvailable','handleUserInteraction','ai-chat-conversation-init-from-id-failed','load','interactions','2959930NtBatZ','hasOwn','getEditor','4VQNQqX','chatModels','contextItems','getCurrentDocumentContext','13350403XqqAMZ','updateCurrentDocumentInContext','148939BNzUYK','stop','addResourceToContext','chatCapabilities','webSearch','message','indexOf','error','isCurrentDocumentInConversation','createReply','toLowerCase','addToConversationContext','assistant','prompt','addCurrentDocumentToContext','getConversation','getMessages','options','ai-chat-conversation-set-model-null','conversationInitialized','_processMessagesToInteractions','delegate','quickActionData','ai-chat-conversation-already-started','init','title','_extractContextItems','content','modelSelected','getCapabilitiesConfig','getInteraction','connector','set','group','startConversation','attributes','capabilities','78sYIACE','343470tGiRtk','find','ai-chat-conversation-set-model-not-available','createInteraction','ai-chat-conversation-start-failed','currentReply','appendContent','interactionCreated','toggleWebSearch','currentInteraction','getDocumentContext','populateFromMessage','destroy','splice','push','getAvailableModels','1350664StzzdW','type','stack','removeInteraction','getPendingContextItems','start','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-interaction-already-in-progress','reasoning','selectedModelId','ai-chat-handle-user-conversation-not-initialized','conversationStarted','1216312VueJTJ','modification-delta','1JMPNre','selectedModel','role','removeSelectionFromContext','setModel','setConversationTitle','isSelectionInContext','isCurrentDocumentInContext','fire','addFilesToContext','fetchConversationMessages','text','loadSourceResources'];_0x39c0=function(){return _0x462d3c;};return _0x39c0();}import{CKEditorError as _0x683b6,EmitterMixin as _0x431b0e,logWarning as _0x5d0b1c}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1dfa8c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x222cb9,AI_CONTEXT_MODEL_EVENT_NAMES as _0x31fa6c}from'./aichatcontext.js';import{AICapabilities as _0x34407b,CAPABILITIES_MODEL_EVENT_NAMES as _0x4f1492}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x12de79}from'./aichatinteraction.js';function _0x5dd1(_0x25f969,_0xddc0c){const _0x39c054=_0x39c0();return _0x5dd1=function(_0x5dd16b,_0x4db09d){_0x5dd16b=_0x5dd16b-0x1dd;let _0x54bc70=_0x39c054[_0x5dd16b];return _0x54bc70;},_0x5dd1(_0x25f969,_0xddc0c);}export class AIChatConversation extends _0x431b0e(){['id'];[_0x1b4b4f(0x1f6)]=!0x1;[_0x1b4b4f(0x1ff)]=[];[_0x1b4b4f(0x238)];[_0x1b4b4f(0x24e)];[_0x1b4b4f(0x228)];[_0x1b4b4f(0x21a)];constructor(_0x4c65f0){const _0x122b7a=_0x1b4b4f;super(),this[_0x122b7a(0x21a)]=_0x4c65f0,this[_0x122b7a(0x228)]=_0x4c65f0[_0x122b7a(0x228)],this[_0x122b7a(0x204)]=_0x4c65f0[_0x122b7a(0x204)],this['id']=_0x4c65f0[_0x122b7a(0x1e9)];}async[_0x1b4b4f(0x221)](_0x443660){const _0x461c68=_0x1b4b4f;try{this[_0x461c68(0x1f4)]=new _0x222cb9({'connector':this[_0x461c68(0x228)],'config':_0x443660,'ownerId':this['id']}),this[_0x461c68(0x1f4)][_0x461c68(0x21e)](..._0x31fa6c)['to'](this),this[_0x461c68(0x1f4)][_0x461c68(0x221)](),this[_0x461c68(0x20c)]=new _0x34407b(),this[_0x461c68(0x20c)][_0x461c68(0x21e)](..._0x4f1492)['to'](this),this[_0x461c68(0x20c)][_0x461c68(0x221)]();const _0x1b3705=await this[_0x461c68(0x204)][_0x461c68(0x23e)]();this[_0x461c68(0x1e1)](_0x461c68(0x21c),{'availableModels':_0x1b3705});const _0x26667f=await this[_0x461c68(0x204)][_0x461c68(0x1ea)](this[_0x461c68(0x21a)][_0x461c68(0x248)]);_0x26667f&&await this[_0x461c68(0x1dd)](_0x26667f);}catch(_0x17b44b){const _0x470c7c=new _0x683b6(_0x461c68(0x1f2),null,{'message':_0x17b44b[_0x461c68(0x20e)]});_0x470c7c[_0x461c68(0x241)]=_0x17b44b[_0x461c68(0x241)],this[_0x461c68(0x1e1)](_0x461c68(0x210),{'error':_0x470c7c});}}async[_0x1b4b4f(0x244)](){const _0x1bf59e=_0x1b4b4f;if(this[_0x1bf59e(0x1f6)])throw new _0x683b6(_0x1bf59e(0x220),null,{'conversation':this});if(!this[_0x1bf59e(0x24e)])throw new _0x683b6(_0x1bf59e(0x245),null,{'conversation':this});try{const {id:_0x504015}=await this[_0x1bf59e(0x228)][_0x1bf59e(0x22b)](this['id'],this[_0x1bf59e(0x21a)][_0x1bf59e(0x22a)])[_0x1bf59e(0x218)]();this['id']=_0x504015,this[_0x1bf59e(0x1f6)]=!0x0,this[_0x1bf59e(0x1e1)](_0x1bf59e(0x24a),{'conversationId':this['id'],'selectedModel':this[_0x1bf59e(0x24e)]});}catch(_0x10d260){const _0x13f9ec=new _0x683b6(_0x1bf59e(0x233),null,{'message':_0x10d260[_0x1bf59e(0x20e)]});_0x13f9ec[_0x1bf59e(0x241)]=_0x10d260[_0x1bf59e(0x241)],this[_0x1bf59e(0x1e1)](_0x1bf59e(0x210),{'error':_0x13f9ec});}}async[_0x1b4b4f(0x1fe)](_0x377df9,_0x1282fa){const _0x29974b=_0x1b4b4f;try{const _0x3a335f=await this[_0x29974b(0x228)][_0x29974b(0x1f1)](_0x377df9)[_0x29974b(0x218)](),_0x5ace52=await this[_0x29974b(0x228)][_0x29974b(0x1e3)](_0x377df9)[_0x29974b(0x219)](),_0x162b8e=_0x5ace52[0x0][_0x29974b(0x1e6)];this[_0x29974b(0x1f6)]=!0x0,this['id']=_0x3a335f['id'],_0x29974b(0x222)in _0x3a335f?this[_0x29974b(0x1e1)](_0x29974b(0x1de),_0x3a335f[_0x29974b(0x222)],!0x0):this[_0x29974b(0x1e1)](_0x29974b(0x1de),'',!0x0);const _0x5a0aec=(await this[_0x29974b(0x204)][_0x29974b(0x1f5)]())[_0x29974b(0x230)](_0xe84755=>_0xe84755['id'][_0x29974b(0x213)]()===_0x162b8e[_0x29974b(0x213)]());return this[_0x29974b(0x24e)]=_0x5a0aec,this[_0x29974b(0x1e1)](_0x29974b(0x225),{'selectedModel':_0x5a0aec,'isDisabled':!0x0}),await this[_0x29974b(0x21d)](_0x5ace52,_0x1282fa,_0x162b8e),this[_0x29974b(0x238)]=void 0x0,this;}catch(_0x225857){const _0x56e002=new _0x683b6(_0x29974b(0x1fd),null,{'message':_0x225857[_0x29974b(0x20e)],'conversationId':_0x377df9});throw _0x56e002[_0x29974b(0x241)]=_0x225857[_0x29974b(0x241)],this[_0x29974b(0x1e1)](_0x29974b(0x210),{'error':_0x56e002}),_0x56e002;}}async[_0x1b4b4f(0x21d)](_0x2de61e,_0x312f5b,_0x89c078){const _0x1ad5db=_0x1b4b4f;let _0x4c26f;for(const _0x399f4f of _0x2de61e)if(_0x1ad5db(0x1ee)===_0x399f4f[_0x1ad5db(0x24f)]){const _0x154b85=await this[_0x1ad5db(0x223)](_0x399f4f),_0x1aa879={'isReasoningEnabled':Object[_0x1ad5db(0x201)](_0x399f4f[_0x1ad5db(0x22d)],_0x1ad5db(0x247)),'isWebSearchEnabled':Object[_0x1ad5db(0x201)](_0x399f4f[_0x1ad5db(0x22d)],_0x1ad5db(0x20d))};_0x4c26f=this[_0x1ad5db(0x232)]({'userMessage':_0x399f4f[_0x1ad5db(0x216)],'contextItems':_0x154b85,'capabilities':_0x1aa879,'modelId':_0x89c078,'quickActionData':_0x399f4f[_0x1ad5db(0x22c)]?.[_0x1ad5db(0x21f)]}),this[_0x1ad5db(0x238)]=_0x4c26f,this[_0x1ad5db(0x1f4)][_0x1ad5db(0x214)](this[_0x1ad5db(0x238)][_0x1ad5db(0x205)]);}else{if(_0x1ad5db(0x215)===_0x399f4f[_0x1ad5db(0x24f)]&&_0x4c26f)for(const _0x559a8d of _0x399f4f[_0x1ad5db(0x224)]){const _0x367de8=_0x1ad5db(0x1e4)===_0x559a8d[_0x1ad5db(0x240)]?_0x1ad5db(0x1f3):_0x1ad5db(0x24c),_0x30337a=_0x4c26f[_0x1ad5db(0x239)]()?.[_0x1ad5db(0x1f7)]!==_0x312f5b;_0x4c26f[_0x1ad5db(0x234)]=_0x4c26f[_0x1ad5db(0x212)]({'type':_0x367de8,'isDone':!0x0,'interactionId':_0x4c26f['id'],'areActionsDisabled':_0x30337a}),_0x4c26f[_0x1ad5db(0x234)][_0x1ad5db(0x235)](_0x559a8d[_0x1ad5db(0x224)]);}}}async[_0x1b4b4f(0x223)](_0x5e696d){const _0x11b6d2=_0x1b4b4f,_0x5c2e18=new Map();if(!_0x5e696d[_0x11b6d2(0x224)])return _0x5c2e18;for(const _0x517175 of _0x5e696d[_0x11b6d2(0x224)]){const _0xb8ae0c=await this[_0x11b6d2(0x1f4)][_0x11b6d2(0x23a)](_0x517175);_0xb8ae0c&&_0x5c2e18[_0x11b6d2(0x229)](_0xb8ae0c['id'],_0xb8ae0c);}return _0x5c2e18;}async[_0x1b4b4f(0x1fc)]({userMessage:_0x4ebd8b,quickActionData:_0x4abb01}){const _0x1d7694=_0x1b4b4f;if(!this[_0x1d7694(0x1f6)])throw new _0x683b6(_0x1d7694(0x249),null,{'conversation':this});if(this[_0x1d7694(0x238)])throw new _0x683b6(_0x1d7694(0x246),null,{'conversation':this});try{const _0xa1205e=this[_0x1d7694(0x1f4)][_0x1d7694(0x243)](),_0x4e995b=this[_0x1d7694(0x20c)][_0x1d7694(0x226)](),_0x3709c4=this[_0x1d7694(0x24e)]['id'];this[_0x1d7694(0x238)]=this[_0x1d7694(0x232)]({'userMessage':_0x4ebd8b,'contextItems':_0xa1205e,'capabilities':_0x4e995b,'modelId':_0x3709c4,'quickActionData':_0x4abb01}),await this[_0x1d7694(0x238)][_0x1d7694(0x244)](),this[_0x1d7694(0x1f4)][_0x1d7694(0x214)](this[_0x1d7694(0x238)][_0x1d7694(0x205)]);}catch(_0x21c03a){this[_0x1d7694(0x1e1)](_0x1d7694(0x210),{'interactionId':this[_0x1d7694(0x238)]?this[_0x1d7694(0x238)]['id']:void 0x0,'error':_0x21c03a});}finally{this[_0x1d7694(0x238)]?.[_0x1d7694(0x20a)](),this[_0x1d7694(0x238)]=void 0x0;}}[_0x1b4b4f(0x232)]({userMessage:_0x5ba5fd,contextItems:_0x2c6780,capabilities:_0x867adf,modelId:_0x40295b,quickActionData:_0x1ec45e}){const _0x5d644f=_0x1b4b4f,_0x437d13=new _0x12de79({'userMessage':_0x5ba5fd,'contextItems':_0x2c6780,'capabilities':_0x867adf,'conversationId':this['id'],'connector':this[_0x5d644f(0x228)],'editor':this[_0x5d644f(0x21a)][_0x5d644f(0x202)]&&this[_0x5d644f(0x21a)][_0x5d644f(0x202)](),'model':_0x40295b,'quickActionData':_0x1ec45e});return _0x437d13[_0x5d644f(0x21e)](..._0x1dfa8c)['to'](this),this[_0x5d644f(0x1ff)][_0x5d644f(0x23d)](_0x437d13),this[_0x5d644f(0x1e1)](_0x5d644f(0x236),_0x437d13),_0x437d13;}[_0x1b4b4f(0x227)](_0x105b58){const _0x593aa3=_0x1b4b4f;return this[_0x593aa3(0x1ff)][_0x593aa3(0x230)](_0xf5f57f=>_0xf5f57f['id']===_0x105b58);}[_0x1b4b4f(0x242)](_0x15909c){const _0x1edd6f=_0x1b4b4f,_0x300124=this[_0x1edd6f(0x227)](_0x15909c);_0x300124&&(_0x300124[_0x1edd6f(0x23b)](),this[_0x1edd6f(0x1ff)][_0x1edd6f(0x23c)](this[_0x1edd6f(0x1ff)][_0x1edd6f(0x20f)](_0x300124),0x1));}get[_0x1b4b4f(0x1f8)](){const _0x5a17fc=_0x1b4b4f;return this[_0x5a17fc(0x1ff)][this[_0x5a17fc(0x1ff)][_0x5a17fc(0x1e7)]-0x1];}[_0x1b4b4f(0x217)](_0x330092){const _0xd5430b=_0x1b4b4f;this[_0xd5430b(0x1f4)][_0xd5430b(0x217)](_0x330092);}async[_0x1b4b4f(0x208)]({content:_0x31d2d0,version:_0x1f40e3,sessionId:_0x1c6f26,selections:_0x16c8f7}){const _0x493926=_0x1b4b4f;await this[_0x493926(0x1f4)][_0x493926(0x1f9)](_0x31d2d0,_0x1f40e3,_0x1c6f26,_0x16c8f7);}[_0x1b4b4f(0x206)](){const _0xd0a916=_0x1b4b4f;return this[_0xd0a916(0x238)]?.[_0xd0a916(0x239)]()?.[_0xd0a916(0x224)]||'';}[_0x1b4b4f(0x1ed)](_0x59e29b){const _0x559f56=_0x1b4b4f;this[_0x559f56(0x1f4)][_0x559f56(0x1ed)](_0x59e29b);}[_0x1b4b4f(0x250)](){const _0x181025=_0x1b4b4f;this[_0x181025(0x1f4)][_0x181025(0x250)]();}[_0x1b4b4f(0x1e2)](_0x183bf6){const _0x295397=_0x1b4b4f;this[_0x295397(0x1f4)][_0x295397(0x1e2)](_0x183bf6);}[_0x1b4b4f(0x1ef)](_0x44c844){const _0x72a364=_0x1b4b4f;this[_0x72a364(0x1f4)][_0x72a364(0x1ef)](_0x44c844);}[_0x1b4b4f(0x20b)](_0x1e57d1,_0xc296f9){const _0x20d4a4=_0x1b4b4f;this[_0x20d4a4(0x1f4)][_0x20d4a4(0x20b)](_0x1e57d1,_0xc296f9);}[_0x1b4b4f(0x1e5)](_0x4720ec,_0x271f5a,_0x51d401){const _0x438213=_0x1b4b4f;return this[_0x438213(0x1f4)][_0x438213(0x1e5)](_0x4720ec,_0x271f5a,_0x51d401);}[_0x1b4b4f(0x1fa)](_0x26ec45){const _0x34d8d1=_0x1b4b4f;this[_0x34d8d1(0x1f4)][_0x34d8d1(0x1fa)](_0x26ec45);}[_0x1b4b4f(0x237)](){const _0x296102=_0x1b4b4f;this[_0x296102(0x20c)][_0x296102(0x237)]();}[_0x1b4b4f(0x1f0)](){const _0x592b02=_0x1b4b4f;this[_0x592b02(0x20c)][_0x592b02(0x1f0)]();}[_0x1b4b4f(0x1e0)](){const _0x2e53f8=_0x1b4b4f;return this[_0x2e53f8(0x1f4)][_0x2e53f8(0x1e0)]();}[_0x1b4b4f(0x211)](){const _0x18fe5d=_0x1b4b4f;return this[_0x18fe5d(0x1f4)][_0x18fe5d(0x211)]();}[_0x1b4b4f(0x1df)](){const _0x3d9edd=_0x1b4b4f;return this[_0x3d9edd(0x1f4)][_0x3d9edd(0x1df)]();}async[_0x1b4b4f(0x1dd)](_0x1c5a26){const _0x5c405a=_0x1b4b4f;_0x1c5a26?!0x1===await this[_0x5c405a(0x204)][_0x5c405a(0x1fb)](_0x1c5a26)&&(_0x5d0b1c(_0x5c405a(0x231),{'conversation':this,'model':_0x1c5a26}),_0x1c5a26=(await this[_0x5c405a(0x204)][_0x5c405a(0x23e)]())[0x0]):(_0x5d0b1c(_0x5c405a(0x21b),{'conversation':this}),_0x1c5a26=(await this[_0x5c405a(0x204)][_0x5c405a(0x23e)]())[0x0]),_0x1c5a26['id']!==this[_0x5c405a(0x24e)]?.['id']&&(this[_0x5c405a(0x24e)]=_0x1c5a26,this[_0x5c405a(0x20c)][_0x5c405a(0x1eb)](),this[_0x5c405a(0x1e1)](_0x5c405a(0x225),{'selectedModel':_0x1c5a26}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3d197b=_0x2d81;(function(_0x2dcef1,_0x47f38a){var _0x1cec03=_0x2d81,_0x4cf0a7=_0x2dcef1();while(!![]){try{var _0x540a9b=parseInt(_0x1cec03(0xbb))/0x1*(parseInt(_0x1cec03(0xb5))/0x2)+-parseInt(_0x1cec03(0xa6))/0x3*(parseInt(_0x1cec03(0xb9))/0x4)+-parseInt(_0x1cec03(0xbc))/0x5+-parseInt(_0x1cec03(0xa7))/0x6*(-parseInt(_0x1cec03(0xa8))/0x7)+parseInt(_0x1cec03(0xb7))/0x8+parseInt(_0x1cec03(0xb6))/0x9*(-parseInt(_0x1cec03(0xbd))/0xa)+parseInt(_0x1cec03(0xb2))/0xb;if(_0x540a9b===_0x47f38a)break;else _0x4cf0a7['push'](_0x4cf0a7['shift']());}catch(_0x372f5a){_0x4cf0a7['push'](_0x4cf0a7['shift']());}}}(_0x4571,0xbe3cf));import{AICapabilities as _0x57b9ac}from'../../aicore/model/aicapabilities.js';function _0x2d81(_0x40552b,_0x158184){var _0x457176=_0x4571();return _0x2d81=function(_0x2d816d,_0x5e58a5){_0x2d816d=_0x2d816d-0xa5;var _0x44aaf8=_0x457176[_0x2d816d];return _0x44aaf8;},_0x2d81(_0x40552b,_0x158184);}import{AIInteraction as _0x446d02}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5d0780}from'./aichatcontext.js';function _0x4571(){var _0x51327b=['mapContextItemsToRequestData','capabilities','1923691SNKyXb','contextItems','queryAssistant','1089790YqbZdS','162MbbZPI','5727568hqMWQk','conversationId','14604nSgjKT','get','2OVRdRL','699535aAHmYc','488260CWUwXA','quickActionData','291ctgtrt','3840BYLsdR','1876DaIcfW','sendRequest','getCapabilitiesRequestData','getDocumentContext','connector','model','userMessage','current-document'];_0x4571=function(){return _0x51327b;};return _0x4571();}export class AIChatInteraction extends _0x446d02{[_0x3d197b(0xae)];[_0x3d197b(0xb8)];[_0x3d197b(0xb3)]=new Map();[_0x3d197b(0xad)];[_0x3d197b(0xa5)];constructor(_0x4eaae4){var _0x19f872=_0x3d197b;super(_0x4eaae4),this[_0x19f872(0xb8)]=_0x4eaae4[_0x19f872(0xb8)],this[_0x19f872(0xb3)]=_0x4eaae4[_0x19f872(0xb3)],this[_0x19f872(0xb1)]=_0x4eaae4[_0x19f872(0xb1)],this[_0x19f872(0xae)]=_0x4eaae4[_0x19f872(0xae)],this[_0x19f872(0xad)]=_0x4eaae4[_0x19f872(0xad)],this[_0x19f872(0xa5)]=_0x4eaae4[_0x19f872(0xa5)];}async[_0x3d197b(0xa9)](){var _0x1d46f5=_0x3d197b;return this[_0x1d46f5(0xac)][_0x1d46f5(0xb4)]({'message':this[_0x1d46f5(0xae)],'conversationId':this[_0x1d46f5(0xb8)],'parts':_0x5d0780[_0x1d46f5(0xb0)](this[_0x1d46f5(0xb3)]),'capabilities':_0x57b9ac[_0x1d46f5(0xaa)](this[_0x1d46f5(0xb1)]),'model':this[_0x1d46f5(0xad)],'quickActionData':this[_0x1d46f5(0xa5)]});}[_0x3d197b(0xab)](){var _0x210228=_0x3d197b;return this[_0x210228(0xb3)][_0x210228(0xba)](_0x210228(0xaf));}}
23
+ var _0x537c3d=_0x13fc;function _0x13fc(_0x555593,_0x4d3f02){var _0x577fd7=_0x577f();return _0x13fc=function(_0x13fc77,_0x385720){_0x13fc77=_0x13fc77-0xb0;var _0x3ca470=_0x577fd7[_0x13fc77];return _0x3ca470;},_0x13fc(_0x555593,_0x4d3f02);}(function(_0x121873,_0x385797){var _0x2e857e=_0x13fc,_0x1fdb01=_0x121873();while(!![]){try{var _0x3e529b=parseInt(_0x2e857e(0xc3))/0x1+-parseInt(_0x2e857e(0xc8))/0x2*(-parseInt(_0x2e857e(0xba))/0x3)+-parseInt(_0x2e857e(0xbd))/0x4+parseInt(_0x2e857e(0xc2))/0x5+parseInt(_0x2e857e(0xc5))/0x6*(parseInt(_0x2e857e(0xc7))/0x7)+-parseInt(_0x2e857e(0xb7))/0x8*(parseInt(_0x2e857e(0xc0))/0x9)+parseInt(_0x2e857e(0xb6))/0xa*(parseInt(_0x2e857e(0xb1))/0xb);if(_0x3e529b===_0x385797)break;else _0x1fdb01['push'](_0x1fdb01['shift']());}catch(_0x3e5796){_0x1fdb01['push'](_0x1fdb01['shift']());}}}(_0x577f,0xdf637));import{AICapabilities as _0x1286f6}from'../../aicore/model/aicapabilities.js';function _0x577f(){var _0x128b3a=['2530388oNROYD','sendRequest','getCapabilitiesRequestData','11300967TEZYQU','current-document','5685645hvhFJn','376147xAoiBw','connector','2712MRAKbF','mapContextItemsToRequestData','3801CNsuiY','1910mpNoUF','getDocumentContext','268202OfbSyU','userMessage','contextItems','model','get','410BiMBmT','8glldPX','queryAssistant','quickActionData','141cpDqed','capabilities','conversationId'];_0x577f=function(){return _0x128b3a;};return _0x577f();}import{AIInteraction as _0x373c9a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x344f60}from'./aichatcontext.js';export class AIChatInteraction extends _0x373c9a{[_0x537c3d(0xb2)];[_0x537c3d(0xbc)];[_0x537c3d(0xb3)]=new Map();[_0x537c3d(0xb4)];[_0x537c3d(0xb9)];constructor(_0x318564){var _0x97eea0=_0x537c3d;super(_0x318564),this[_0x97eea0(0xbc)]=_0x318564[_0x97eea0(0xbc)],this[_0x97eea0(0xb3)]=_0x318564[_0x97eea0(0xb3)],this[_0x97eea0(0xbb)]=_0x318564[_0x97eea0(0xbb)],this[_0x97eea0(0xb2)]=_0x318564[_0x97eea0(0xb2)],this[_0x97eea0(0xb4)]=_0x318564[_0x97eea0(0xb4)],this[_0x97eea0(0xb9)]=_0x318564[_0x97eea0(0xb9)];}async[_0x537c3d(0xbe)](){var _0x29fac2=_0x537c3d;return this[_0x29fac2(0xc4)][_0x29fac2(0xb8)]({'message':this[_0x29fac2(0xb2)],'conversationId':this[_0x29fac2(0xbc)],'parts':_0x344f60[_0x29fac2(0xc6)](this[_0x29fac2(0xb3)]),'capabilities':_0x1286f6[_0x29fac2(0xbf)](this[_0x29fac2(0xbb)]),'model':this[_0x29fac2(0xb4)],'quickActionData':this[_0x29fac2(0xb9)]});}[_0x537c3d(0xb0)](){var _0x31e338=_0x537c3d;return this[_0x31e338(0xb3)][_0x31e338(0xb5)](_0x31e338(0xc1));}}