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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index-editor.css +50 -37
  41. package/dist/index.css +68 -38
  42. package/dist/index.js +4 -4
  43. package/dist/translations/af.js +1 -1
  44. package/dist/translations/af.umd.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/ast.js +1 -1
  48. package/dist/translations/ast.umd.js +1 -1
  49. package/dist/translations/az.js +1 -1
  50. package/dist/translations/az.umd.js +1 -1
  51. package/dist/translations/be.js +1 -1
  52. package/dist/translations/be.umd.js +1 -1
  53. package/dist/translations/bg.js +1 -1
  54. package/dist/translations/bg.umd.js +1 -1
  55. package/dist/translations/bn.js +1 -1
  56. package/dist/translations/bn.umd.js +1 -1
  57. package/dist/translations/bs.js +1 -1
  58. package/dist/translations/bs.umd.js +1 -1
  59. package/dist/translations/ca.js +1 -1
  60. package/dist/translations/ca.umd.js +1 -1
  61. package/dist/translations/cs.js +1 -1
  62. package/dist/translations/cs.umd.js +1 -1
  63. package/dist/translations/da.js +1 -1
  64. package/dist/translations/da.umd.js +1 -1
  65. package/dist/translations/de-ch.js +1 -1
  66. package/dist/translations/de-ch.umd.js +1 -1
  67. package/dist/translations/de.js +1 -1
  68. package/dist/translations/de.umd.js +1 -1
  69. package/dist/translations/el.js +1 -1
  70. package/dist/translations/el.umd.js +1 -1
  71. package/dist/translations/en-au.js +1 -1
  72. package/dist/translations/en-au.umd.js +1 -1
  73. package/dist/translations/en-gb.js +1 -1
  74. package/dist/translations/en-gb.umd.js +1 -1
  75. package/dist/translations/en.js +1 -1
  76. package/dist/translations/en.umd.js +1 -1
  77. package/dist/translations/eo.js +1 -1
  78. package/dist/translations/eo.umd.js +1 -1
  79. package/dist/translations/es-co.js +1 -1
  80. package/dist/translations/es-co.umd.js +1 -1
  81. package/dist/translations/es.js +1 -1
  82. package/dist/translations/es.umd.js +1 -1
  83. package/dist/translations/et.js +1 -1
  84. package/dist/translations/et.umd.js +1 -1
  85. package/dist/translations/eu.js +1 -1
  86. package/dist/translations/eu.umd.js +1 -1
  87. package/dist/translations/fa.js +1 -1
  88. package/dist/translations/fa.umd.js +1 -1
  89. package/dist/translations/fi.js +1 -1
  90. package/dist/translations/fi.umd.js +1 -1
  91. package/dist/translations/fr.js +1 -1
  92. package/dist/translations/fr.umd.js +1 -1
  93. package/dist/translations/gl.js +1 -1
  94. package/dist/translations/gl.umd.js +1 -1
  95. package/dist/translations/gu.js +1 -1
  96. package/dist/translations/gu.umd.js +1 -1
  97. package/dist/translations/he.js +1 -1
  98. package/dist/translations/he.umd.js +1 -1
  99. package/dist/translations/hi.js +1 -1
  100. package/dist/translations/hi.umd.js +1 -1
  101. package/dist/translations/hr.js +1 -1
  102. package/dist/translations/hr.umd.js +1 -1
  103. package/dist/translations/hu.js +1 -1
  104. package/dist/translations/hu.umd.js +1 -1
  105. package/dist/translations/hy.js +1 -1
  106. package/dist/translations/hy.umd.js +1 -1
  107. package/dist/translations/id.js +1 -1
  108. package/dist/translations/id.umd.js +1 -1
  109. package/dist/translations/it.js +1 -1
  110. package/dist/translations/it.umd.js +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.js +1 -1
  114. package/dist/translations/jv.umd.js +1 -1
  115. package/dist/translations/kk.js +1 -1
  116. package/dist/translations/kk.umd.js +1 -1
  117. package/dist/translations/km.js +1 -1
  118. package/dist/translations/km.umd.js +1 -1
  119. package/dist/translations/kn.js +1 -1
  120. package/dist/translations/kn.umd.js +1 -1
  121. package/dist/translations/ko.js +1 -1
  122. package/dist/translations/ko.umd.js +1 -1
  123. package/dist/translations/ku.js +1 -1
  124. package/dist/translations/ku.umd.js +1 -1
  125. package/dist/translations/lt.js +1 -1
  126. package/dist/translations/lt.umd.js +1 -1
  127. package/dist/translations/lv.js +1 -1
  128. package/dist/translations/lv.umd.js +1 -1
  129. package/dist/translations/ms.js +1 -1
  130. package/dist/translations/ms.umd.js +1 -1
  131. package/dist/translations/nb.js +1 -1
  132. package/dist/translations/nb.umd.js +1 -1
  133. package/dist/translations/ne.js +1 -1
  134. package/dist/translations/ne.umd.js +1 -1
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.js +1 -1
  140. package/dist/translations/oc.umd.js +1 -1
  141. package/dist/translations/pl.js +1 -1
  142. package/dist/translations/pl.umd.js +1 -1
  143. package/dist/translations/pt-br.js +1 -1
  144. package/dist/translations/pt-br.umd.js +1 -1
  145. package/dist/translations/pt.js +1 -1
  146. package/dist/translations/pt.umd.js +1 -1
  147. package/dist/translations/ro.js +1 -1
  148. package/dist/translations/ro.umd.js +1 -1
  149. package/dist/translations/ru.js +1 -1
  150. package/dist/translations/ru.umd.js +1 -1
  151. package/dist/translations/si.js +1 -1
  152. package/dist/translations/si.umd.js +1 -1
  153. package/dist/translations/sk.js +1 -1
  154. package/dist/translations/sk.umd.js +1 -1
  155. package/dist/translations/sl.js +1 -1
  156. package/dist/translations/sl.umd.js +1 -1
  157. package/dist/translations/sq.js +1 -1
  158. package/dist/translations/sq.umd.js +1 -1
  159. package/dist/translations/sr-latn.js +1 -1
  160. package/dist/translations/sr-latn.umd.js +1 -1
  161. package/dist/translations/sr.js +1 -1
  162. package/dist/translations/sr.umd.js +1 -1
  163. package/dist/translations/sv.js +1 -1
  164. package/dist/translations/sv.umd.js +1 -1
  165. package/dist/translations/th.js +1 -1
  166. package/dist/translations/th.umd.js +1 -1
  167. package/dist/translations/ti.js +1 -1
  168. package/dist/translations/ti.umd.js +1 -1
  169. package/dist/translations/tk.js +1 -1
  170. package/dist/translations/tk.umd.js +1 -1
  171. package/dist/translations/tr.js +1 -1
  172. package/dist/translations/tr.umd.js +1 -1
  173. package/dist/translations/tt.js +1 -1
  174. package/dist/translations/tt.umd.js +1 -1
  175. package/dist/translations/ug.js +1 -1
  176. package/dist/translations/ug.umd.js +1 -1
  177. package/dist/translations/uk.js +1 -1
  178. package/dist/translations/uk.umd.js +1 -1
  179. package/dist/translations/ur.js +1 -1
  180. package/dist/translations/ur.umd.js +1 -1
  181. package/dist/translations/uz.js +1 -1
  182. package/dist/translations/uz.umd.js +1 -1
  183. package/dist/translations/vi.js +1 -1
  184. package/dist/translations/vi.umd.js +1 -1
  185. package/dist/translations/zh-cn.js +1 -1
  186. package/dist/translations/zh-cn.umd.js +1 -1
  187. package/dist/translations/zh.js +1 -1
  188. package/dist/translations/zh.umd.js +1 -1
  189. package/lang/contexts.json +5 -0
  190. package/lang/translations/ar.po +171 -171
  191. package/lang/translations/bg.po +155 -155
  192. package/lang/translations/bn.po +155 -155
  193. package/lang/translations/ca.po +155 -155
  194. package/lang/translations/cs.po +159 -159
  195. package/lang/translations/da.po +155 -155
  196. package/lang/translations/de.po +155 -155
  197. package/lang/translations/el.po +155 -155
  198. package/lang/translations/es.po +155 -155
  199. package/lang/translations/et.po +155 -155
  200. package/lang/translations/fi.po +155 -155
  201. package/lang/translations/fr.po +155 -155
  202. package/lang/translations/he.po +155 -155
  203. package/lang/translations/hi.po +155 -155
  204. package/lang/translations/hu.po +155 -155
  205. package/lang/translations/id.po +151 -151
  206. package/lang/translations/it.po +155 -155
  207. package/lang/translations/ja.po +151 -151
  208. package/lang/translations/ko.po +151 -151
  209. package/lang/translations/lt.po +159 -159
  210. package/lang/translations/lv.po +159 -159
  211. package/lang/translations/ms.po +151 -151
  212. package/lang/translations/nl.po +155 -155
  213. package/lang/translations/no.po +155 -155
  214. package/lang/translations/pl.po +159 -159
  215. package/lang/translations/pt-br.po +155 -155
  216. package/lang/translations/pt.po +155 -155
  217. package/lang/translations/ro.po +159 -159
  218. package/lang/translations/ru.po +159 -159
  219. package/lang/translations/sk.po +159 -159
  220. package/lang/translations/sr.po +159 -159
  221. package/lang/translations/sv.po +155 -155
  222. package/lang/translations/th.po +151 -151
  223. package/lang/translations/tr.po +155 -155
  224. package/lang/translations/uk.po +159 -159
  225. package/lang/translations/vi.po +151 -151
  226. package/lang/translations/zh-cn.po +151 -151
  227. package/lang/translations/zh.po +151 -151
  228. package/package.json +16 -15
  229. package/src/aiactions/aiactions.js +1 -1
  230. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  231. package/src/aiactions/model/aiactionsreply.d.ts +2 -1
  232. package/src/aiactions/model/aiactionsreply.js +1 -1
  233. package/src/aiassistant/adapters/aiadapter.js +1 -1
  234. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  235. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  236. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  237. package/src/aiassistant/aiassistant.js +1 -1
  238. package/src/aiassistant/aiassistantediting.js +1 -1
  239. package/src/aiassistant/aiassistantui.js +1 -1
  240. package/src/aiassistant/legacyerrors.js +1 -1
  241. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  242. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  243. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  244. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  245. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  246. package/src/aiassistant/ui/form/aiformview.js +1 -1
  247. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  248. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  249. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  250. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  251. package/src/aiassistant/utils/common-translations.js +1 -1
  252. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  253. package/src/aiballoon/aiballoon.js +1 -1
  254. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  255. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  256. package/src/aiballoon/ui/aiballoonview.js +1 -1
  257. package/src/aichat/aichat.js +1 -1
  258. package/src/aichat/aichatcontroller.js +1 -1
  259. package/src/aichat/aichatui.js +1 -1
  260. package/src/aichat/model/aichatcontext.js +1 -1
  261. package/src/aichat/model/aichatconversation.js +1 -1
  262. package/src/aichat/model/aichatinteraction.js +1 -1
  263. package/src/aichat/model/aichatmodels.js +1 -1
  264. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  265. package/src/aichat/ui/aichatfeedview.js +1 -1
  266. package/src/aichat/ui/aichatheaderview.js +1 -1
  267. package/src/aichat/ui/aichatview.js +1 -1
  268. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  269. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  270. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  272. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  273. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  274. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  275. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  277. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  278. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  279. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  280. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  285. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
  286. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  287. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  288. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  289. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  290. package/src/aichat/utils/eventnames.js +1 -1
  291. package/src/aichat/utils/promisequeue.js +1 -1
  292. package/src/aichat/utils/scrollmanager.js +1 -1
  293. package/src/aichathistory/aichathistory.js +1 -1
  294. package/src/aichathistory/aichathistorycontroller.js +1 -1
  295. package/src/aichathistory/aichathistoryui.js +1 -1
  296. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  297. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  298. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  299. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  300. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  301. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  302. package/src/aicore/aiconnector.js +1 -1
  303. package/src/aicore/aiediting.js +1 -1
  304. package/src/aicore/model/aicapabilities.js +1 -1
  305. package/src/aicore/model/aicontext.js +1 -1
  306. package/src/aicore/model/aiinteraction.js +1 -1
  307. package/src/aicore/model/aireply.js +1 -1
  308. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  309. package/src/aicore/pipeline/airesponseparser.js +2 -2
  310. package/src/aicore/ui/aidisclaimerview.js +1 -1
  311. package/src/aicore/ui/aiskeleton.js +1 -1
  312. package/src/aicore/ui/aispinner.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  314. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
  315. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  316. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
  317. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  318. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
  319. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  320. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  321. package/src/aicore/utils/common-translations.js +1 -1
  322. package/src/aicore/utils/createresizebutton.js +1 -1
  323. package/src/aicore/utils/documentposition.js +1 -1
  324. package/src/aicore/utils/documentrange.js +1 -1
  325. package/src/aicore/utils/eventnames.js +1 -1
  326. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  327. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  328. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -1
  329. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  330. package/src/aicore/utils/htmlparser.js +1 -1
  331. package/src/aicore/utils/htmlstreamer.js +1 -1
  332. package/src/aiquickactions/aiquickactions.js +1 -1
  333. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  334. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  335. package/src/aiquickactions/aiquickactionsui.js +1 -1
  336. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  337. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  338. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  339. package/src/aiquickactions/utils/common-translations.js +1 -1
  340. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  341. package/src/aireviewmode/aireviewmode.js +1 -1
  342. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  343. package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
  344. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  345. package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
  346. package/src/aireviewmode/aireviewmodeui.js +1 -1
  347. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  348. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  349. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  350. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  351. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  352. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  353. package/src/aireviewmode/model/aireviewcheckrun.d.ts +19 -1
  354. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  355. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  356. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  357. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  358. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  359. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
  360. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
  361. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
  362. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  363. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  364. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  365. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
  366. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  367. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  368. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
  369. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  370. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
  371. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  372. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  373. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  374. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  375. package/src/aitabs/aitabs.js +1 -1
  376. package/src/aitabs/aitabsmainview.js +1 -1
  377. package/src/aitabs/tabs/aitabsview.js +1 -1
  378. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  379. package/src/aitabs/tabs/tabpanelview.js +1 -1
  380. package/src/index.js +1 -1
  381. package/theme/aichat/aichatfeed.css +6 -2
  382. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
  383. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  384. package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49c5b2=_0x2a37;(function(_0x119de6,_0x58e26d){const _0x33406d=_0x2a37,_0x3b8048=_0x119de6();while(!![]){try{const _0x99ac6e=-parseInt(_0x33406d(0x2ed))/0x1+-parseInt(_0x33406d(0x294))/0x2+parseInt(_0x33406d(0x1f2))/0x3+-parseInt(_0x33406d(0x2b5))/0x4*(parseInt(_0x33406d(0x25c))/0x5)+parseInt(_0x33406d(0x1e2))/0x6+-parseInt(_0x33406d(0x25f))/0x7*(-parseInt(_0x33406d(0x24a))/0x8)+-parseInt(_0x33406d(0x303))/0x9;if(_0x99ac6e===_0x58e26d)break;else _0x3b8048['push'](_0x3b8048['shift']());}catch(_0x19f7a9){_0x3b8048['push'](_0x3b8048['shift']());}}}(_0x584d,0x3da39));import{ContextPlugin as _0x56e77b,Editor as _0x345593}from'ckeditor5/src/core.js';import{CKEditorError as _0x586d94,logError as _0xdb113b,scrollViewportToShowTarget as _0xde20d2,uid as _0x1d0026}from'ckeditor5/src/utils.js';import{AIConnector as _0x4d226c}from'../aicore/aiconnector.js';import{AITabs as _0x4952f1}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3e2f1d}from'./model/aichatconversation.js';import{getTranslation as _0xd7d1f7}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2c9782}from'../aicore/aiediting.js';import{AIChatModels as _0x268608}from'./model/aichatmodels.js';import{getEditorFromContext as _0x1e1f26}from'../aicore/utils/geteditorfromcontext.js';function _0x2a37(_0x589bf3,_0x581617){const _0x584de9=_0x584d();return _0x2a37=function(_0x2a37ee,_0x2aa6e4){_0x2a37ee=_0x2a37ee-0x1c5;let _0x28096f=_0x584de9[_0x2a37ee];return _0x28096f;},_0x2a37(_0x589bf3,_0x581617);}import{DocumentCompare as _0x283dfd,DATA_ID_MODEL_ATTRIBUTE as _0x1c5ada}from'@ckeditor/ckeditor5-collaboration-core';function _0x584d(){const _0x13d3fe=['activateTab','start','isOfficialPlugin','sourceId','_setIsMaximized','open','updateFeedItemAIReplyContent','undo','AITabs','range','createPositionAt','ai-chat-resource-load-failed','setChangeGroupState','forEach','load','_insertSuggestion','type','resetMessageInput','slice','isDocumentOperation','stop','AIChatUI','rootName','isDisabled','4WbBiQu','indexes','updateFeedInteractionHeader','addFeedItemStaticMessage','addOperation','contextItems','capabilitiesUpdated','setConversationContext','getChildren','addFeedItemError','ai-chat-controller-mouse-over','editors','addContextOptionsChanged','activeConversation','listenTo','howMany','removeSelectionFromContext','resourceStateChanged','config','updateConversationTitle','change','toViewRange','data-id','contextItemRemoved','dislike','_handleUIUserMessage','provider','new','sourcePosition','AI_CHAT_UNABLE_TO_START_CONVERSATION','model','getDiff','addSelectionToContext','conversationInitialized','unshift','_stopLastInteraction','AIChatController','string','version','pluginName','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','rejected','setIsUploadInProgress','AI_CHAT_RESOURCE_LOAD_FAILED','updateContent','updateCurrentDocumentInContext','isUploadInProgress','removeMarker','root','clearPendingContextUI','stopInteraction','toggleSuggestionDisplayMode','addFilesToContext','resource','context','137842enaNKV','contextItem','populateSourceResourceBalloon','startsWith','clearConversationContextUI','push','_logError','lastInteraction','set','modification-delta','main','state','AIEditing','current-document','mouseLeaveSuggestion','ai-chat-context-invalid-data','get','addFeedItemAIReply','removed','showFakeVisualSelection','maxOffset','updateFeedItemAIReplySources','2300625TWckNI','sourceResourcesLoaded','find','updateFeedItemAIReplySuggestionPartState','end','uid','_showConversationHistory','showNext','getRanges','isOpen','handleUserInteraction','data','like','handleRemovedConversation','getChildAtOffset','getDocumentData','getInteraction','addFeedItemAISuggestion','options','isPremiumPlugin','removeFromContext','ai-chat-conversation-init-failed','delete','_removeFromContext','AIConnector','locale','loadConversation','getDocumentContext','sendMessage','setModel','mapper','AI_CHAT_ABORTED_MESSAGE','_getDocumentRangeForReplyChanges','split','contextItemLoadingEnded','sendUserMessage','selection','getInteractionAndReplyById','anchorId','ai.chat.models.defaultModelId','setSelectedModel','interactionId','getSelectionText','_previewedChangeGroup','getMarkersGroup','2944362ScKclv','_aiChatUi','Undo','isCurrentDocumentInContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateCapabilities','revert','getOperations','full','isCurrentDocumentInConversation','log','partIndex','_applySuggestion','history','commands','_aiChatModels','1101972ZkylLm','alignToTop','_openBalloonFor','ai-chat-url-upload-failed','_integrateEditor','Liked\x20response','path','removeSelectionFromChatContext','getRoot','addFeedInteractionHeader','_handleStartConversation','Showing\x20conversation\x20history...','addCurrentDocumentToContext','updateFeedItemAIReplySuggestionContent','toLocaleLowerCase','ai-chat-source-resources-load-failed','showChangeInText','indexOf','createConversation','getAttribute','_toggleWebSearch','error','contextItemAdded','collaboration.channelId','interactionFinished','children','addFeedItemUserMessage','documentContextContent','setIsMaximized','_removeAISelectionMarkers','markers','_batchToChanges','pending','resizedTabs','replyChangeGroupStateUpdated','modelSelected','_aiEditing','addResourceToContext','view','getChild','_filterModels','document','setFeedItemRenderingStrategy','contextSent','parse','has','ready','replies','length','resizeTabs','sources','rejectSuggestion','setConversationTitle','map','updateResourceState','interactionDestroyed','replyId','source','createPositionFromPath','AI_CHAT_UNTITLED_CONVERSATION','viewRangeToDom','createRange','getTransformedByOperation','toggleReasoning','ai-chat-missing-channel-id','init','baseVersion','domConverter','abortPromptStream','chat','DocumentCompare','removeContextItem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','changes','toggleLoadingSkeleton','addDocumentToContext','cloneNode','_applyOperationsAsSuggestions','hideFakeVisualSelection','Disliked\x20response','content','ai.chat.context','query','text-delta','add','availableModels','streaming','4009064JHYCMt','addContextItem','accepted','_balloonShowDiff','TrackChangesEditing','filter','replyCreated','closeSourceResourceBalloon','mouseOverSuggestion','requires','node','changeGroups','interactionCreated','_flushLastInteractionUI','addUrlToContext','static','ai-chat-context-unsupported-type','removeFeedInteraction','2181205pRVsgW','getPath','close','7nBbjwY','selectedModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','isLoading','_createFromRanges','_scrollToSuggestionRange','replyContentUpdated','isInContext','uploadProgressChanged','ai-chat-conversation-start-failed','nextSibling','Failed\x20to\x20load\x20conversation','addSelectionToChatContext','Suggestion\x20','afterInit','AI_CHAT_CONTEXT_INVALID_DATA','getGroupId','redo','resources','showDiff','isStarted','selectModel','batch','setAddContextOptions','dialogClosed','remove','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','plugins','from','message','ai.chat.models.displayedModels','ai-chat-controller-no-active-conversation','_updateReplyContent','ai-chat-file-upload-failed','editing','finishInteraction','focusPromptInput','insertSuggestion','$graveyard','startConversation','interactionStarted','resetConversationTitle','uiId','setContextItemLoading','resourceId','getFirstRange','name','applyOperation','startInteraction','AI_CHAT_GENERIC_ERROR','stopListening','ai-request-aborted','scrollFeedToSuggestion','554006jyfTwi','ai-conversation-','applySuggestion','_aiConnector','addFileToContext','_toggleReasoning','getReply','loadSourceResources','resize'];_0x584d=function(){return _0x13d3fe;};return _0x584d();}import{getOperationsFromReply as _0x42d838}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4af0eb,getMinimalSelection as _0x3d4c72,getSuggestionPartsFromReply as _0x68d6dc}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x241e0d,_DetachOperation as _0x201cc2}from'ckeditor5/src/engine.js';import{findOne as _0x2666cf,getAttribute as _0x52ba63,serialize as _0x31bd3e,Document as _0x2d75b3,findByAttribute as _0x4385af}from'../aicore/utils/htmlparser.js';import{IconAI as _0x380504}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4d4776}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x555cbc}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x56e77b{[_0x49c5b2(0x216)];[_0x49c5b2(0x297)];[_0x49c5b2(0x1e3)];[_0x49c5b2(0x1f1)];[_0x49c5b2(0x211)]=new Map();[_0x49c5b2(0x1e0)]=null;[_0x49c5b2(0x24d)]=!0x1;static get[_0x49c5b2(0x253)](){return[_0x4d226c,_0x555cbc,_0x283dfd];}static get[_0x49c5b2(0x2dc)](){const _0x18747b=_0x49c5b2;return _0x18747b(0x2d9);}static get[_0x49c5b2(0x29f)](){return!0x0;}static get[_0x49c5b2(0x1c8)](){return!0x0;}[_0x49c5b2(0x233)](){const _0x4a4692=_0x49c5b2;this[_0x4a4692(0x297)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x1cd)),this[_0x4a4692(0x1e3)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2b2)),this[_0x4a4692(0x216)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2f9)),this[_0x4a4692(0x1f1)]=new _0x268608({'connector':this[_0x4a4692(0x297)]});const _0x5453fb=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2a5));this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x286),()=>{const _0x48ac22=_0x4a4692;this[_0x48ac22(0x1fc)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x1d8),(_0x233d24,_0x560c32)=>{const _0xe68a39=_0x4a4692;this[_0xe68a39(0x2ce)]({'userMessage':_0x560c32});}),this[_0x4a4692(0x2c3)](_0x5453fb,_0x4a4692(0x213),(_0x3a0486,_0xec54e2)=>{const _0x2cb92f=_0x4a4692;this[_0x2cb92f(0x2a1)](_0xec54e2);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x223),()=>{const _0x27cd8f=_0x4a4692;_0x5453fb[_0x27cd8f(0x29c)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x236),async()=>{const _0x6f86bd=_0x4a4692;await this[_0x6f86bd(0x2d8)](),await this[_0x6f86bd(0x257)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x23e),()=>{const _0x2167e1=_0x4a4692;this[_0x2167e1(0x2c2)]?.[_0x2167e1(0x1fe)](_0xd7d1f7(this[_0x2167e1(0x2ec)][_0x2167e1(0x1ce)],_0x2167e1(0x23a)));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x298),(_0x56bf9b,_0x34959e)=>{const _0x5eb1d6=_0x4a4692;this[_0x5eb1d6(0x2c2)]?.[_0x5eb1d6(0x2ea)](Array[_0x5eb1d6(0x27b)](_0x34959e));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x258),(_0x388ac5,_0x181a9b)=>{const _0x202120=_0x4a4692;this[_0x202120(0x2c2)]?.[_0x202120(0x258)](_0x181a9b);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x217),(_0x79b10f,_0x563414)=>{const _0x9ab1f9=_0x4a4692;this[_0x9ab1f9(0x2c2)]?.[_0x9ab1f9(0x217)](_0x563414[_0x9ab1f9(0x22b)],_0x563414[_0x9ab1f9(0x2eb)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x239),(_0x3ecc71,_0x329c2e)=>{const _0x803c21=_0x4a4692;this[_0x803c21(0x1cc)](_0x329c2e);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x29b),(_0x307e7f,_0x597469)=>{const _0x5a75cc=_0x4a4692;this[_0x5a75cc(0x2c2)]?.[_0x5a75cc(0x29b)](_0x597469[_0x5a75cc(0x2a0)],_0x597469[_0x5a75cc(0x245)],_0x597469[_0x5a75cc(0x308)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2de),()=>{const _0x31e850=_0x4a4692;this[_0x31e850(0x206)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x231),()=>{const _0x1a9009=_0x4a4692;this[_0x1a9009(0x299)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x274),(_0x165e57,_0x57c3b7)=>{const _0x2f648d=_0x4a4692;this[_0x2f648d(0x2c2)]?.[_0x2f648d(0x1d2)](_0x57c3b7);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x30f),(_0x4b7fba,{replyId:_0x35a938})=>{const _0x4ec32d=_0x4a4692;console[_0x4ec32d(0x1ec)](_0x4ec32d(0x1f7),_0x35a938);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2cd),(_0x2f6de3,{replyId:_0x35b8f5})=>{const _0xe48894=_0x4a4692;console[_0xe48894(0x1ec)](_0xe48894(0x242),_0x35b8f5);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x284),(_0x393f63,_0x4e38db)=>{const _0xb3282f=_0x4a4692;this[_0xb3282f(0x2ec)][_0xb3282f(0x27a)][_0xb3282f(0x2fd)](_0x555cbc)[_0xb3282f(0x25e)](),this[_0xb3282f(0x2ac)](_0x4e38db);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x202),(_0x5a3d7b,{replyId:_0x1b9fa4,partIndex:_0x3ba0ce})=>{const _0x141af7=_0x4a4692;this[_0x141af7(0x24d)]=this[_0x141af7(0x1e3)][_0x141af7(0x272)],this[_0x141af7(0x1f4)](_0x1b9fa4,_0x3ba0ce);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x252),(_0x58c06e,{replyId:_0x570e81,partIndex:_0x43f4a1})=>{const _0x45dd69=_0x4a4692,_0x68ff4a=this[_0x45dd69(0x1d5)](_0x570e81,_0x43f4a1);_0x68ff4a&&_0x45dd69(0x285)!=_0x68ff4a[_0x45dd69(0x2a6)][_0x45dd69(0x2e6)][_0x45dd69(0x2b3)]&&this[_0x45dd69(0x216)][_0x45dd69(0x300)]([_0x68ff4a[_0x45dd69(0x2a6)]],_0x45dd69(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2fb),()=>{const _0x3e0f93=_0x4a4692;this[_0x3e0f93(0x216)][_0x3e0f93(0x241)](_0x3e0f93(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x296),(_0x4da38e,_0x4e64f9)=>{const _0x2c2d1e=_0x4a4692;this[_0x2c2d1e(0x2ec)][_0x2c2d1e(0x27a)][_0x2c2d1e(0x2fd)](_0x555cbc)[_0x2c2d1e(0x25e)](),this[_0x2c2d1e(0x1ee)](_0x4e64f9);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2e9),async(_0x5eef76,_0x2e5a38)=>{const _0x42f0b3=_0x4a4692,{reply:_0x457bef}=this[_0x42f0b3(0x1da)](_0x2e5a38[_0x42f0b3(0x22a)]),_0x416856=_0x1e1f26(this[_0x42f0b3(0x2ec)]),_0x206630=_0x68d6dc({'editor':_0x416856,'changeGroups':_0x457bef[_0x42f0b3(0x255)],'documentContextContent':_0x457bef[_0x42f0b3(0x20d)],'showDiff':_0x2e5a38[_0x42f0b3(0x272)]});await this[_0x42f0b3(0x1e3)][_0x42f0b3(0x1ff)]({'id':_0x457bef['id'],'parts':_0x206630,'renderingStrategy':_0x42f0b3(0x259)});}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x225),(_0x35b38a,{replyId:_0x137972,partIndex:_0x5ba19e})=>{const _0x53accc=_0x4a4692;this[_0x53accc(0x1e0)]?.[_0x53accc(0x22a)]==_0x137972&&this[_0x53accc(0x1e0)]?.[_0x53accc(0x1ed)]==_0x5ba19e&&this[_0x53accc(0x2ec)][_0x53accc(0x27a)][_0x53accc(0x2fd)](_0x555cbc)[_0x53accc(0x25e)]();const {reply:_0x235fb2}=this[_0x53accc(0x1da)](_0x137972);_0x235fb2[_0x53accc(0x2a9)](_0x5ba19e,_0x53accc(0x2df)),this[_0x53accc(0x216)][_0x53accc(0x241)](_0x53accc(0x2bf));});}async[_0x49c5b2(0x26d)](){const _0x2e5d2c=_0x49c5b2;this[_0x2e5d2c(0x2ec)]instanceof _0x345593?this[_0x2e5d2c(0x1f6)](this[_0x2e5d2c(0x2ec)]):this[_0x2e5d2c(0x2c3)](this[_0x2e5d2c(0x2ec)][_0x2e5d2c(0x2c0)],_0x2e5d2c(0x247),(_0x4bedd1,_0x3831d4)=>{const _0x13e301=_0x2e5d2c;_0x3831d4['on'](_0x13e301(0x220),()=>{const _0x4d4902=_0x13e301;this[_0x4d4902(0x1f6)](_0x3831d4);});}),await this[_0x2e5d2c(0x1fc)]();}[_0x49c5b2(0x2ac)](_0x928e4f){const _0x465ebd=_0x49c5b2,_0x5d07e4=_0x1e1f26(this[_0x465ebd(0x2ec)]);if(!_0x5d07e4[_0x465ebd(0x27a)][_0x465ebd(0x21f)](_0x465ebd(0x24e)))return;const _0x593afe=this[_0x465ebd(0x2ec)][_0x465ebd(0x27a)][_0x465ebd(0x2fd)](_0x465ebd(0x238)),{reply:_0x2b7848,interaction:_0x1c44ce}=this[_0x465ebd(0x1da)](_0x928e4f[_0x465ebd(0x22a)]),_0x559928=this[_0x465ebd(0x1d5)](_0x928e4f[_0x465ebd(0x22a)],_0x928e4f[_0x465ebd(0x1ed)]),_0x19d53d=void 0x0!==_0x928e4f[_0x465ebd(0x1ed)]?[_0x2b7848[_0x465ebd(0x255)][_0x928e4f[_0x465ebd(0x1ed)]]]:_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x24f)](_0x56c5f2=>_0x465ebd(0x212)==_0x56c5f2[_0x465ebd(0x2f8)]),_0x39b3a2=_0x19d53d[_0x465ebd(0x227)](_0x4f99f5=>_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x203)](_0x4f99f5));_0x39b3a2[_0x465ebd(0x2aa)](_0x276288=>_0x2b7848[_0x465ebd(0x2a9)](_0x276288,_0x465ebd(0x24c)));const _0x23cba7=_0x42d838({'editor':_0x5d07e4,'reply':_0x2b7848,'interaction':_0x1c44ce,'groups':_0x19d53d,'transform':!0x0,'documentCompare':_0x593afe,'documentCompareOptions':{'anchor':_0x465ebd(0x2f7),'markDeletions':!0x0}});let _0xe7710a;_0x559928&&this[_0x465ebd(0x264)](_0x559928[_0x465ebd(0x2a6)]),_0x5d07e4[_0x465ebd(0x2d3)][_0x465ebd(0x2c9)](_0x47324c=>{const _0x16a68e=_0x465ebd;_0xe7710a=_0x47324c[_0x16a68e(0x275)],_0x5d07e4[_0x16a68e(0x27a)][_0x16a68e(0x2fd)](_0x16a68e(0x24e))[_0x16a68e(0x240)](_0x23cba7),this[_0x16a68e(0x216)][_0x16a68e(0x241)](_0x16a68e(0x2bf));}),this[_0x465ebd(0x211)][_0x465ebd(0x2f5)](_0xe7710a,{'interactionId':_0x1c44ce['id'],'replyId':_0x2b7848['id'],'indexes':_0x39b3a2[_0x465ebd(0x2af)]()});}[_0x49c5b2(0x1ee)](_0x529dfc){const _0x249f52=_0x49c5b2,_0x529bac=_0x1e1f26(this[_0x249f52(0x2ec)]),_0x4f1f68=this[_0x249f52(0x2ec)][_0x249f52(0x27a)][_0x249f52(0x2fd)](_0x283dfd),{reply:_0x3133c7,interaction:_0x1bbfd5}=this[_0x249f52(0x1da)](_0x529dfc[_0x249f52(0x22a)]),_0x3ac89d=this[_0x249f52(0x1d5)](_0x529dfc[_0x249f52(0x22a)],_0x529dfc[_0x249f52(0x1ed)]),_0x5896e5=void 0x0!==_0x529dfc[_0x249f52(0x1ed)]?[_0x3133c7[_0x249f52(0x255)][_0x529dfc[_0x249f52(0x1ed)]]]:_0x3133c7[_0x249f52(0x255)][_0x249f52(0x24f)](_0x5d00c5=>_0x249f52(0x212)==_0x5d00c5[_0x249f52(0x2f8)]),_0x484e5a=_0x5896e5[_0x249f52(0x227)](_0x511005=>_0x3133c7[_0x249f52(0x255)][_0x249f52(0x203)](_0x511005));_0x484e5a[_0x249f52(0x2aa)](_0x26a6cf=>_0x3133c7[_0x249f52(0x2a9)](_0x26a6cf,_0x249f52(0x24c)));const _0x39acdc=_0x42d838({'editor':_0x529bac,'reply':_0x3133c7,'interaction':_0x1bbfd5,'groups':_0x5896e5,'transform':!0x0,'documentCompare':_0x4f1f68,'documentCompareOptions':{'anchor':_0x249f52(0x2f7),'markDeletions':!0x1}});let _0xa4e8f0;_0x3ac89d&&this[_0x249f52(0x264)](_0x3ac89d[_0x249f52(0x2a6)]),_0x529bac[_0x249f52(0x2d3)][_0x249f52(0x2c9)](_0x4f3c5f=>{const _0x3ed0a0=_0x249f52;_0xa4e8f0=_0x4f3c5f[_0x3ed0a0(0x275)];for(const _0x290355 of _0x39acdc)_0x290355[_0x3ed0a0(0x234)]=_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x21b)][_0x3ed0a0(0x2db)],_0x4f3c5f[_0x3ed0a0(0x275)][_0x3ed0a0(0x2b9)](_0x290355),_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x28e)](_0x290355);}),this[_0x249f52(0x211)][_0x249f52(0x2f5)](_0xa4e8f0,{'interactionId':_0x1bbfd5['id'],'replyId':_0x3133c7['id'],'indexes':_0x484e5a[_0x249f52(0x2af)]()});}[_0x49c5b2(0x1f4)](_0x259277,_0x240b31){const _0x4a0400=_0x49c5b2,_0x3a164f=_0x1e1f26(this[_0x4a0400(0x2ec)]),_0x1a75c4=this[_0x4a0400(0x1d5)](_0x259277,_0x240b31),_0xf902a7=this[_0x4a0400(0x2ec)][_0x4a0400(0x27a)][_0x4a0400(0x2fd)](_0x555cbc);if(!_0x1a75c4)return void _0xf902a7[_0x4a0400(0x25e)]();const {range:_0x22aab4,currentIndex:_0x122426,previousIndex:_0x460a5b,nextIndex:_0x417081}=_0x1a75c4;if(this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x22a)]==_0x259277&&this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x1ed)]==_0x122426)return;this[_0x4a0400(0x1e0)]={'replyId':_0x259277,'partIndex':_0x122426};const _0x3a3700=new _0x4d4776(_0x3a164f[_0x4a0400(0x1ce)],{'showDiff':this[_0x4a0400(0x24d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a0400(0x1ea)},'hideHeader':!0x0}),{reply:_0x30a0c1}=this[_0x4a0400(0x1da)](_0x259277),_0x5ebc0b=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x30a0c1[_0x4a0400(0x255)][_0x122426]],'documentContextContent':_0x30a0c1[_0x4a0400(0x20d)],'showDiff':this[_0x4a0400(0x24d)]});_0x3a3700[_0x4a0400(0x2e2)]({'parts':_0x5ebc0b,'renderingStrategy':_0x4a0400(0x259)});const _0x5ea3fb=_0x122426!==_0x460a5b;this[_0x4a0400(0x264)](_0x22aab4,!0x0),_0xf902a7[_0x4a0400(0x2a2)]({'index':_0x122426,'title':_0x4a0400(0x26c)+(_0x122426+0x1),'icon':_0x380504,'mainView':_0x3a3700,'showRotator':_0x5ea3fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x22aab4]}),this[_0x4a0400(0x1e3)][_0x4a0400(0x293)](_0x259277,_0x122426),this[_0x4a0400(0x2c3)](_0x3a3700,_0x4a0400(0x2e9),(_0x25a49b,{showDiff:_0x3cb36f})=>{const _0x23980f=_0x4a0400;this[_0x23980f(0x24d)]=_0x3cb36f;const {reply:_0x336d9f}=this[_0x23980f(0x1da)](_0x259277),_0x367fa6=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x336d9f[_0x23980f(0x255)][_0x122426]],'documentContextContent':_0x336d9f[_0x23980f(0x20d)],'showDiff':_0x3cb36f});_0x3a3700[_0x23980f(0x2e2)]({'parts':_0x367fa6,'renderingStrategy':_0x23980f(0x259)});}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x296),()=>{const _0x1af526=_0x4a0400;this[_0x1af526(0x1ee)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x1af526(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x1af526(0x25e)]();}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x284),()=>{const _0x3495d1=_0x4a0400;this[_0x3495d1(0x2ac)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x3495d1(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x3495d1(0x25e)]();}),_0x5ea3fb&&(this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x30a),()=>{const _0x3bd9de=_0x4a0400;this[_0x3bd9de(0x1f4)](_0x259277,_0x417081);}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x23b),()=>{const _0x237b9e=_0x4a0400;this[_0x237b9e(0x1f4)](_0x259277,_0x460a5b);})),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x277),()=>{const _0x5c95a8=_0x4a0400;this[_0x5c95a8(0x291)](_0xf902a7),this[_0x5c95a8(0x291)](_0x3a3700),this[_0x5c95a8(0x1e0)]=null;});}[_0x49c5b2(0x1d5)](_0x2a0345,_0x1806ad){const _0x476f31=_0x49c5b2,_0x3177df=_0x1e1f26(this[_0x476f31(0x2ec)]),{reply:_0x185cdd,interaction:_0x1cb361}=this[_0x476f31(0x1da)](_0x2a0345),_0x1064d0=_0x185cdd[_0x476f31(0x255)][_0x476f31(0x24f)](_0x4bc6b7=>_0x476f31(0x212)==_0x4bc6b7[_0x476f31(0x2f8)]),_0x450f96=_0x1064d0[_0x476f31(0x227)](_0x3a5e39=>_0x185cdd[_0x476f31(0x255)][_0x476f31(0x203)](_0x3a5e39));void 0x0===_0x1806ad&&(_0x1806ad=_0x450f96[0x0]);const _0x4cb156=_0x450f96[_0x476f31(0x203)](_0x1806ad);if(-0x1==_0x4cb156)return null;const _0x2b7f56=0x0==_0x4cb156?_0x450f96[_0x450f96[_0x476f31(0x222)]-0x1]:_0x450f96[_0x4cb156-0x1],_0x426470=_0x4cb156==_0x450f96[_0x476f31(0x222)]-0x1?_0x450f96[0x0]:_0x450f96[_0x4cb156+0x1],_0x40c7e0=_0x1064d0[_0x4cb156],_0xf21cd8=new _0x2d75b3([]),_0x3feefd=new _0x2d75b3([]);for(const _0x244c1b of _0x40c7e0[_0x476f31(0x23c)])if(_0x476f31(0x2ff)!=_0x244c1b[_0x476f31(0x2ad)]&&_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x244c1b[_0x476f31(0x254)][_0x476f31(0x23f)](!0x0)),_0x476f31(0x2d0)!=_0x244c1b[_0x476f31(0x2ad)]){const _0x6dc3e9=_0x2666cf(_0x19ed1c=>_0x52ba63(_0x19ed1c,_0x476f31(0x2cb))==_0x244c1b['id'],_0x185cdd[_0x476f31(0x20d)],!0x0);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x6dc3e9[_0x476f31(0x23f)](!0x0));}if(0x0==_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x222)]){if(_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)]){const _0x7a36c5=_0x4385af(_0x476f31(0x2cb),_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)],_0x185cdd[_0x476f31(0x20d)]);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x7a36c5[_0x476f31(0x269)]&&(_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)));}else{const _0x33bd4b=_0x185cdd[_0x476f31(0x20d)][_0x476f31(0x20b)][0x0];if(!_0x33bd4b)return null;_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0));}}const _0x2e01aa=_0x1cb361[_0x476f31(0x1d0)](),_0x455fe8=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x2e01aa[_0x476f31(0x243)]),_0x31728b=_0x31bd3e(_0xf21cd8),_0x482ce1=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x23d28d=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x369414=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2a7)](_0x482ce1,0x0),_0x1ae19a=_0x31bd3e(_0x3feefd),_0x2682f0={'anchor':_0x369414,'markDeletions':!0x1},_0x452fab=_0x3177df[_0x476f31(0x27a)][_0x476f31(0x2fd)](_0x283dfd)[_0x476f31(0x2d4)](_0x31728b,_0x1ae19a,_0x2682f0)[_0x476f31(0x1e9)]();if(!_0x452fab[_0x476f31(0x222)])return null;_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2c9)](_0x15fa09=>{const _0x192f39=_0x476f31;for(const _0x5281bb of _0x452fab)if(_0x192f39(0x278)==_0x5281bb[_0x192f39(0x2ad)]){const _0x268945=_0x5281bb[_0x192f39(0x2d1)],_0x5a8f4b=_0x5281bb[_0x192f39(0x2c4)],_0x1aea05=new _0x201cc2(_0x268945,_0x5a8f4b);_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x1aea05),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x1aea05);}else _0x5281bb[_0x192f39(0x234)]=null,_0x5281bb[_0x192f39(0x2b0)]=!0x1,_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x5281bb),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x5281bb);});const _0x30f351=_0x3d4c72(_0x3177df,_0x452fab,_0x482ce1);_0x4af0eb(_0x3177df[_0x476f31(0x2d3)],_0x30f351);const _0x550d1c=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x41c423=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x4cbdcb=[];let _0x2b6cf5=_0x482ce1,_0x3eac81=_0x23d28d;for(let _0x567337=0x0;_0x567337<_0x41c423[_0x476f31(0x222)];_0x567337++){const _0x5679b9=_0x2b6cf5[_0x476f31(0x301)]-_0x41c423[_0x567337];_0x4cbdcb[_0x567337]=_0x3eac81[_0x476f31(0x301)]-_0x5679b9,_0x2b6cf5=_0x2b6cf5[_0x476f31(0x311)](_0x41c423[_0x567337]),_0x3eac81=_0x3eac81[_0x476f31(0x311)](_0x4cbdcb[_0x567337]);}const _0x5ea190=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x550d1c),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x4cbdcb)),_0x1d6cc2=_0x23d28d[_0x476f31(0x219)](0x0)[_0x476f31(0x205)](_0x1c5ada),_0x20f3e5=Array[_0x476f31(0x27b)](_0x455fe8[_0x476f31(0x2bd)]())[_0x476f31(0x305)](_0x7535a1=>_0x7535a1[_0x476f31(0x205)](_0x1c5ada)==_0x1d6cc2)[_0x476f31(0x25d)](),_0x412086=_0x5ea190[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x17b365=_0x5ea190[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)]();_0x412086[0x0]=_0x20f3e5[0x0]+_0x412086[0x0],_0x17b365[0x0]=_0x20f3e5[0x0]+_0x17b365[0x0];let _0x84e0a0=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x412086),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x17b365));const _0x2cbc30=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1ef)][_0x476f31(0x1e9)](_0x2e01aa[_0x476f31(0x2db)]);for(const _0x1080e4 of _0x2cbc30)_0x84e0a0=_0x241e0d[_0x476f31(0x263)](_0x84e0a0[_0x476f31(0x230)](_0x1080e4));return{'range':_0x84e0a0,'previousIndex':_0x2b7f56,'nextIndex':_0x426470,'currentIndex':_0x1806ad};}[_0x49c5b2(0x1f6)](_0x1e2db0){const _0x51b07d=_0x49c5b2;if(!_0x1e2db0[_0x51b07d(0x27a)][_0x51b07d(0x21f)](_0x51b07d(0x1e4)))return;const _0x3404a0=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x2a4)),_0x5419da=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x270));this[_0x51b07d(0x2c3)](_0x3404a0,_0x51b07d(0x1e8),(_0x567aee,_0x519dbe,_0x17bae1)=>{const _0x345194=_0x51b07d,_0x44a887=this[_0x345194(0x211)][_0x345194(0x2fd)](_0x519dbe);if(!_0x44a887)return;const _0x1ba3a3=this[_0x345194(0x2c2)][_0x345194(0x1c5)](_0x44a887[_0x345194(0x1de)])[_0x345194(0x29a)](_0x44a887[_0x345194(0x22a)]);_0x44a887[_0x345194(0x2b6)][_0x345194(0x2aa)](_0xc0032e=>_0x1ba3a3[_0x345194(0x2a9)](_0xc0032e,_0x345194(0x212))),this[_0x345194(0x211)][_0x345194(0x1cb)](_0x519dbe),this[_0x345194(0x211)][_0x345194(0x2f5)](_0x17bae1,_0x44a887);}),this[_0x51b07d(0x2c3)](_0x5419da,_0x51b07d(0x1e8),(_0x5b6e9a,_0x2ce53c,_0x56f336)=>{const _0x274cbf=_0x51b07d,_0x26f72e=this[_0x274cbf(0x211)][_0x274cbf(0x2fd)](_0x2ce53c);if(!_0x26f72e)return;const _0x3ac80d=this[_0x274cbf(0x2c2)][_0x274cbf(0x1c5)](_0x26f72e[_0x274cbf(0x1de)])[_0x274cbf(0x29a)](_0x26f72e[_0x274cbf(0x22a)]);_0x26f72e[_0x274cbf(0x2b6)][_0x274cbf(0x2aa)](_0x1d8c5b=>_0x3ac80d[_0x274cbf(0x2a9)](_0x1d8c5b,_0x274cbf(0x24c))),this[_0x274cbf(0x211)][_0x274cbf(0x1cb)](_0x2ce53c),this[_0x274cbf(0x211)][_0x274cbf(0x2f5)](_0x56f336,_0x26f72e);});}async[_0x49c5b2(0x1cf)](_0x5a08a5){const _0x4c92ae=_0x49c5b2;this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x555cbc)[_0x4c92ae(0x25e)](),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x259)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x0),await this[_0x4c92ae(0x2d8)]();try{const _0x3371fe=this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x4952f1);this[_0x4c92ae(0x2c8)]('\x20'),_0x3371fe[_0x4c92ae(0x218)][_0x4c92ae(0x29d)](_0x4c92ae(0x237)),await this[_0x4c92ae(0x1fc)](_0x5a08a5);const {sessionId:_0xf4a7c1}=this[_0x4c92ae(0x216)][_0x4c92ae(0x312)]();await this[_0x4c92ae(0x2c2)][_0x4c92ae(0x2ab)](_0x5a08a5,_0xf4a7c1),this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1eb)]()&&this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1fe)](_0xd7d1f7(this[_0x4c92ae(0x2ec)][_0x4c92ae(0x1ce)],_0x4c92ae(0x23a)));}catch(_0x3e582a){console[_0x4c92ae(0x207)](_0x4c92ae(0x26a),_0x3e582a);}finally{this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x249)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x1);}}[_0x49c5b2(0x310)](_0x520027){const _0x59b9dc=_0x49c5b2;this[_0x59b9dc(0x2c2)]['id']===_0x520027&&this[_0x59b9dc(0x1fc)]();}async[_0x49c5b2(0x26b)](){const _0x21d1ee=_0x49c5b2,_0x9a1a61=this[_0x21d1ee(0x216)][_0x21d1ee(0x1df)]();this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x2d5)](_0x9a1a61),this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x1fe)](_0xd7d1f7(this[_0x21d1ee(0x2ec)][_0x21d1ee(0x1ce)],_0x21d1ee(0x23a)));}[_0x49c5b2(0x1f9)](){const _0x598c2d=_0x49c5b2;this[_0x598c2d(0x2c2)]?.[_0x598c2d(0x2c5)]();}[_0x49c5b2(0x283)](){const _0x5bf878=_0x49c5b2;this[_0x5bf878(0x1e3)][_0x5bf878(0x283)]();}async[_0x49c5b2(0x286)](){const _0x5c76a3=_0x49c5b2;await this[_0x5c76a3(0x1fc)]();}async[_0x49c5b2(0x1d1)]({message:_0x501a02,quickActionData:_0x1652bc}){const _0x408b57=_0x49c5b2;await this[_0x408b57(0x2ce)]({'userMessage':_0x501a02,'quickActionData':_0x1652bc});}[_0x49c5b2(0x26f)](){const _0x973db5=_0x49c5b2,_0x188c73=this[_0x973db5(0x2ec)][_0x973db5(0x2c7)][_0x973db5(0x2fd)](_0x973db5(0x209));if(!_0x188c73)throw new _0x586d94(_0x973db5(0x232),this);return _0x188c73;}async[_0x49c5b2(0x1fc)](_0x4c1839){const _0xdddbda=_0x49c5b2,_0x158d30=this[_0xdddbda(0x2ec)][_0xdddbda(0x27a)][_0xdddbda(0x2fd)](_0x555cbc);let _0x374f37;_0x158d30[_0xdddbda(0x30c)]&&_0x158d30[_0xdddbda(0x25e)](),_0x374f37=_0x4c1839||!this[_0xdddbda(0x2c2)]?this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x1dc)):this[_0xdddbda(0x2c2)][_0xdddbda(0x260)]['id'],await this[_0xdddbda(0x2d8)]();const _0x5efc99=this[_0xdddbda(0x26f)](),_0x1e92ce=_0x4c1839||_0x1d0026();this[_0xdddbda(0x2c2)]=new _0x3e2f1d({'connector':this[_0xdddbda(0x297)],'chatModels':this[_0xdddbda(0x1f1)],'defaultModelId':_0x374f37,'conversationId':_0x1e92ce,'group':_0x5efc99,'getEditor':()=>_0x1e1f26(this[_0xdddbda(0x2ec)])}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2d6),(_0x18b3e2,_0x16b700)=>{const _0xedba9b=_0xdddbda;_0x16b700[_0xedba9b(0x248)]=this[_0xedba9b(0x21a)](_0x16b700[_0xedba9b(0x248)],this[_0xedba9b(0x2ec)][_0xedba9b(0x2c7)][_0xedba9b(0x2fd)](_0xedba9b(0x27d))),this[_0xedba9b(0x1e3)][_0xedba9b(0x204)](_0x16b700),this[_0xedba9b(0x1e3)][_0xedba9b(0x2ae)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2e7)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2f1)](),_0x4c1839||(this[_0xedba9b(0x1e3)][_0xedba9b(0x288)](),this[_0xedba9b(0x2c2)]?.[_0xedba9b(0x1fe)](_0xd7d1f7(this[_0xedba9b(0x2ec)][_0xedba9b(0x1ce)],_0xedba9b(0x23a))));}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x267),(_0x42a25c,_0x20b2be)=>{const _0x32d28a=_0xdddbda;this[_0x32d28a(0x1e3)][_0x32d28a(0x2e0)](_0x20b2be[_0x32d28a(0x2e4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x256),(_0x11f4dd,_0x2a6787)=>{const _0x1d526c=_0xdddbda;this[_0x1d526c(0x1e3)][_0x1d526c(0x20c)](_0x2a6787),this[_0x1d526c(0x1e3)][_0x1d526c(0x1fb)](_0x2a6787);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x287),(_0x2e1377,_0x3757f4)=>{const _0x48ed6a=_0xdddbda;this[_0x48ed6a(0x1e3)][_0x48ed6a(0x28f)](_0x3757f4);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x20a),async()=>{const _0x25abc4=_0xdddbda;await this[_0x25abc4(0x1e3)][_0x25abc4(0x282)]();}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x229),(_0x2088cb,_0x432b3b)=>{const _0x5cc844=_0xdddbda;this[_0x5cc844(0x1e3)][_0x5cc844(0x25b)](_0x432b3b['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x226),(_0xa66cb1,_0x2da37a,_0x48e010)=>{const _0x17f8d1=_0xdddbda;this[_0x17f8d1(0x2c8)](_0x2da37a,_0x48e010);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x250),(_0x4dd6d5,_0x82dfdd)=>{const _0x585e5d=_0xdddbda;this[_0x585e5d(0x1e3)][_0x585e5d(0x2b7)]({'isVisible':!0x0,'id':_0x82dfdd[_0x585e5d(0x1de)]}),_0x585e5d(0x246)===_0x82dfdd[_0x585e5d(0x2ad)]?this[_0x585e5d(0x1e3)][_0x585e5d(0x2fe)](_0x82dfdd):this[_0x585e5d(0x1e3)][_0x585e5d(0x1c6)](_0x82dfdd);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x265),async(_0x2af633,_0x457ae7,_0x47261a)=>{const _0x183548=_0xdddbda;await this[_0x183548(0x27f)]({'reply':_0x457ae7,'changeGroups':_0x47261a});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x214),(_0x4788d0,{reply:_0x520a31,index:_0x17a7c3,state:_0x294631})=>{const _0x3341ea=_0xdddbda;this[_0x3341ea(0x1e3)][_0x3341ea(0x306)]({'id':_0x520a31['id'],'index':_0x17a7c3,'state':_0x294631});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x208),(_0x1e1f65,_0x5b292a)=>{const _0x6f4626=_0xdddbda;if(this[_0x6f4626(0x1e3)][_0x6f4626(0x24b)](_0x5b292a[_0x6f4626(0x2ee)],_0x5b292a[_0x6f4626(0x262)]),_0x6f4626(0x1d9)===_0x5b292a[_0x6f4626(0x2ee)][_0x6f4626(0x2ad)]){const _0x4362c0=[..._0x1e1f26(this[_0x6f4626(0x2ec)])[_0x6f4626(0x2d3)][_0x6f4626(0x21b)][_0x6f4626(0x1d9)][_0x6f4626(0x30b)]()];this[_0x6f4626(0x216)][_0x6f4626(0x300)](_0x4362c0,_0x6f4626(0x295)+this[_0x6f4626(0x2c2)]?.['id']);}}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2cc),(_0xa50789,_0x31a106)=>{const _0x36afd6=_0xdddbda;this[_0x36afd6(0x1e3)][_0x36afd6(0x239)](_0x31a106[_0x36afd6(0x289)]),_0x36afd6(0x2fa)==_0x31a106[_0x36afd6(0x289)]&&this[_0x36afd6(0x1f9)](),_0x36afd6(0x1d9)===_0x31a106[_0x36afd6(0x2ad)]&&this[_0x36afd6(0x216)][_0x36afd6(0x241)](_0x36afd6(0x295)+this[_0x36afd6(0x2c2)]?.['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x1d7),(_0x46be19,_0x3a2326)=>{const _0x15e92c=_0xdddbda;this[_0x15e92c(0x1e3)][_0x15e92c(0x28a)](_0x3a2326[_0x15e92c(0x2ee)][_0x15e92c(0x289)],_0x3a2326[_0x15e92c(0x262)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x21d),(_0x39e9d4,_0x540dbc)=>{const _0x2f15bb=_0xdddbda;this[_0x2f15bb(0x1e3)][_0x2f15bb(0x2bc)](_0x540dbc[_0x2f15bb(0x2ba)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c1),(_0x40033a,_0x402996)=>{const _0x460aca=_0xdddbda;this[_0x460aca(0x1e3)][_0x460aca(0x276)](_0x402996[_0x460aca(0x1c7)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x304),(_0x64b492,_0x456f9b)=>{const _0x32713c=_0xdddbda;this[_0x32713c(0x1e3)][_0x32713c(0x2ef)](_0x456f9b[_0x32713c(0x2a0)],_0x456f9b[_0x32713c(0x22b)],_0x456f9b[_0x32713c(0x271)],_0x456f9b[_0x32713c(0x308)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c6),(_0x49d117,_0x10be09)=>{const _0x2bf48f=_0xdddbda;this[_0x2bf48f(0x1e3)][_0x2bf48f(0x228)](_0x10be09[_0x2bf48f(0x2a0)],_0x10be09[_0x2bf48f(0x28b)],_0x10be09[_0x2bf48f(0x266)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2bb),(_0x2b6295,_0x7c865c)=>{const _0x34895c=_0xdddbda;this[_0x34895c(0x1e3)][_0x34895c(0x1e7)](_0x7c865c);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x215),(_0x573378,_0x5185cb)=>{const _0x42aa4e=_0xdddbda;this[_0x42aa4e(0x1e3)][_0x42aa4e(0x1dd)](_0x5185cb[_0x42aa4e(0x260)],_0x5185cb[_0x42aa4e(0x2b4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x207),(_0x1a3016,{error:_0x249fd6,interactionId:_0x1a610b,fileName:_0x12081f,url:_0x1b8215,sourceId:_0x20376c,sourceLabel:_0x3a63bd})=>{const _0x425dc1=_0xdddbda,_0x403298=_0x1a610b?_0x1a610b+':'+_0x1d0026():_0x1d0026();_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x292))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2b8)]({'staticMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1d4)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1ca))||_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x268))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2d2)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x280))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x279),_0x12081f),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1f5))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x261),_0x1b8215),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2fc))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x26e)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x25a))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2dd)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x201))?(_0x20376c&&this[_0x425dc1(0x1e3)][_0x425dc1(0x251)](_0x20376c),this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1e6),_0x3a63bd||_0x425dc1(0x22b)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2a8))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2e1)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x290)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6));}),await this[_0xdddbda(0x2c2)][_0xdddbda(0x233)](this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x244))),_0x4c1839||await this[_0xdddbda(0x2c2)][_0xdddbda(0x29e)]();}async[_0x49c5b2(0x2ce)]({userMessage:_0x12ef97,quickActionData:_0x445ad8}){const _0x54a78d=_0x49c5b2;if(!this[_0x54a78d(0x2c2)])throw new _0x586d94(_0x54a78d(0x27e));this[_0x54a78d(0x2c2)][_0x54a78d(0x1e5)]()&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x2e3)](this[_0x54a78d(0x216)][_0x54a78d(0x312)]()),this[_0x54a78d(0x2c2)]['id']&&this[_0x54a78d(0x2c2)][_0x54a78d(0x273)]&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x30d)]({'userMessage':_0x12ef97,'quickActionData':_0x445ad8}),this[_0x54a78d(0x20f)]();}[_0x49c5b2(0x20f)](){const _0x1e4bac=_0x49c5b2,_0x1e9e36=_0x1e1f26(this[_0x1e4bac(0x2ec)])[_0x1e4bac(0x2d3)],_0xd9739a=Array[_0x1e4bac(0x27b)](_0x1e9e36[_0x1e4bac(0x210)][_0x1e4bac(0x1e1)](_0x2c9782));_0x1e9e36[_0x1e4bac(0x2c9)](_0x56685e=>{const _0x47beed=_0x1e4bac;_0xd9739a[_0x47beed(0x2aa)](_0x4e65af=>_0x56685e[_0x47beed(0x2e5)](_0x4e65af));});}[_0x49c5b2(0x309)](){const _0x5412f1=_0x49c5b2;console[_0x5412f1(0x1ec)](_0x5412f1(0x1fd));}[_0x49c5b2(0x2a1)](_0x407fcc){const _0x1686d2=_0x49c5b2;this[_0x1686d2(0x1e3)][_0x1686d2(0x20e)](_0x407fcc);}[_0x49c5b2(0x2f3)](_0x498e6a){const _0x55a7c8=_0x49c5b2;_0xdb113b(_0x498e6a[_0x55a7c8(0x27c)]);}[_0x49c5b2(0x1cc)](_0x53ac81){const _0x4fd772=_0x49c5b2;this[_0x4fd772(0x2c2)]?.[_0x4fd772(0x1c9)](_0x53ac81);}[_0x49c5b2(0x206)](){const _0x4d9b2f=_0x49c5b2;this[_0x4d9b2f(0x2c2)]?.[_0x4d9b2f(0x2de)]();}[_0x49c5b2(0x299)](){const _0x1f2eff=_0x49c5b2;this[_0x1f2eff(0x2c2)]?.[_0x1f2eff(0x231)]();}[_0x49c5b2(0x1da)](_0x59824e){const _0xd957a3=_0x49c5b2,[_0x179fe6,_0x15eadf]=_0x59824e[_0xd957a3(0x1d6)](':'),_0x30663b=this[_0xd957a3(0x2c2)][_0xd957a3(0x1c5)](_0x179fe6),_0x2bc6c3=_0x30663b[_0xd957a3(0x29a)](_0x15eadf);return{'interaction':_0x30663b,'reply':_0x2bc6c3};}[_0x49c5b2(0x264)](_0x257a8a,_0x368638=!0x1){const _0x25e647=_0x49c5b2,_0x508bf0=_0x1e1f26(this[_0x25e647(0x2ec)]),_0xfbb6f4={'target':_0x508bf0[_0x25e647(0x281)][_0x25e647(0x218)][_0x25e647(0x235)][_0x25e647(0x22e)](_0x508bf0[_0x25e647(0x281)][_0x25e647(0x1d3)][_0x25e647(0x2ca)](_0x257a8a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x368638};_0x368638&&(_0xfbb6f4[_0x25e647(0x1f3)]=!0x0),_0xde20d2(_0xfbb6f4);}[_0x49c5b2(0x2c8)](_0x234b2b,_0xaba79a=!0x1){const _0x2a970d=_0x49c5b2;this[_0x2a970d(0x1e3)][_0x2a970d(0x226)](_0x234b2b||_0xd7d1f7(this[_0x2a970d(0x2ec)][_0x2a970d(0x1ce)],_0x2a970d(0x22d)),_0xaba79a);}[_0x49c5b2(0x21a)](_0x14cda8,_0xc7693e){const _0x20e2b8=_0x49c5b2;let _0x362f97;if(_0xc7693e){_0x362f97=[];const _0x41e920=_0x20e2b8(0x2da)==typeof _0xc7693e?[_0xc7693e[_0x20e2b8(0x200)]()]:_0xc7693e[_0x20e2b8(0x227)](_0x55d3e3=>_0x55d3e3[_0x20e2b8(0x200)]());for(const _0x5787a1 of _0x41e920)for(const _0x19c935 of _0x14cda8)(_0x19c935['id'][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x28d)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x2cf)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935['id'][_0x20e2b8(0x200)]()[_0x20e2b8(0x2f0)](_0x5787a1))&&_0x362f97[_0x20e2b8(0x2f2)](_0x19c935);}else _0x362f97=_0x14cda8;return _0x362f97;}async[_0x49c5b2(0x27f)]({reply:_0x15ddf9,changeGroups:_0x25e719,renderingStrategy:_0xc4cb7b}){const _0x3db227=_0x49c5b2,{id:_0x254778,isDone:_0x50a28b,type:_0x58cfea,parsedContent:_0xdaf718}=_0x15ddf9;if(_0x3db227(0x2f6)===_0x58cfea){const _0x382be3=_0x1e1f26(this[_0x3db227(0x2ec)]),_0x253627=_0x68d6dc({'editor':_0x382be3,'showDiff':this[_0x3db227(0x1e3)][_0x3db227(0x272)],'changeGroups':_0x25e719,'documentContextContent':_0x15ddf9[_0x3db227(0x20d)]});await this[_0x3db227(0x1e3)][_0x3db227(0x1ff)]({'id':_0x254778,'parts':_0x253627,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});}else _0x3db227(0x246)===_0x58cfea&&await this[_0x3db227(0x1e3)][_0x3db227(0x2a3)]({'id':_0x254778,'parsedContent':_0xdaf718,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});_0x50a28b&&_0x15ddf9[_0x3db227(0x224)][_0x3db227(0x222)]>0x0&&this[_0x3db227(0x1e3)][_0x3db227(0x302)](_0x254778,_0x15ddf9[_0x3db227(0x224)]);}async[_0x49c5b2(0x2d8)](){const _0xda8c02=_0x49c5b2,_0x370ce4=this[_0xda8c02(0x2c2)]?.[_0xda8c02(0x2f4)];_0x370ce4&&(_0x370ce4[_0xda8c02(0x2b1)](),this[_0xda8c02(0x1e3)][_0xda8c02(0x2e8)](_0x370ce4));}async[_0x49c5b2(0x257)](){const _0x947e6e=_0x49c5b2,_0x55b6e0=this[_0x947e6e(0x2c2)]?.[_0x947e6e(0x2f4)];if(_0x55b6e0){for await(const _0x23c07c of _0x55b6e0[_0x947e6e(0x221)])await this[_0x947e6e(0x27f)]({'reply':_0x23c07c,'changeGroups':_0x23c07c[_0x947e6e(0x255)],'renderingStrategy':_0x947e6e(0x259)});}}}
23
+ const _0x56431e=_0x375f;(function(_0x346b26,_0x39455a){const _0x13c9cb=_0x375f,_0x3da9b4=_0x346b26();while(!![]){try{const _0x17ba76=-parseInt(_0x13c9cb(0x220))/0x1+parseInt(_0x13c9cb(0x172))/0x2+-parseInt(_0x13c9cb(0x222))/0x3+-parseInt(_0x13c9cb(0x231))/0x4+parseInt(_0x13c9cb(0x1c9))/0x5+-parseInt(_0x13c9cb(0x25f))/0x6*(-parseInt(_0x13c9cb(0x22a))/0x7)+-parseInt(_0x13c9cb(0x1a1))/0x8*(-parseInt(_0x13c9cb(0x17a))/0x9);if(_0x17ba76===_0x39455a)break;else _0x3da9b4['push'](_0x3da9b4['shift']());}catch(_0x548e0d){_0x3da9b4['push'](_0x3da9b4['shift']());}}}(_0x3301,0x4f079));import{ContextPlugin as _0x1219e7,Editor as _0x21ce81}from'ckeditor5/src/core.js';import{CKEditorError as _0x3661c1,logError as _0x116548,scrollViewportToShowTarget as _0x55a9fe,uid as _0x12eb43}from'ckeditor5/src/utils.js';import{AIConnector as _0x5410a8}from'../aicore/aiconnector.js';import{AITabs as _0x570d7d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x14ab1c}from'./model/aichatconversation.js';import{getTranslation as _0x44f0a3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x503260}from'../aicore/aiediting.js';function _0x3301(){const _0x210b68=['_previewedChangeGroup','toViewRange','getGroupId','loadConversation','domConverter','AI_CHAT_CONTEXT_INVALID_DATA','lastInteraction','rejectSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','afterInit','isDisabled','changes','resizeTabs','sourceResourcesLoaded','ai-chat-conversation-init-failed','_toggleWebSearch','filter','897625MdHXqR','text-delta','applyOperation','addUrlToContext','getAttribute','ai.chat.context','version','howMany','addContextItem','documentContextContent','cloneNode','forEach','ai.chat.models.defaultModelId','updateResourceState','ai-chat-source-resources-load-failed','ai-chat-resource-load-failed','getDocumentContext','current-document','range','root','AIChatUI','streaming','_aiChatUi','_applySuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','startInteraction','isOfficialPlugin','updateCapabilities','createPositionAt','main','AITabs','maxOffset','getChildAtOffset','getPath','_batchToChanges','interactionDestroyed','ai-chat-file-upload-failed','split','ai-chat-url-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','accepted','state','mouseOverSuggestion','isStarted','init','mouseLeaveSuggestion','log','AIChatController','finishInteraction','node','replyContentUpdated','ai-chat-missing-channel-id','indexes','_handleStartConversation','updateFeedInteractionHeader','_showConversationHistory','add','addFeedItemStaticMessage','isDocumentOperation','_setIsMaximized','string','Disliked\x20response','document','push','addSelectionToChatContext','dislike','resetConversationTitle','pluginName','editing','selectModel','open','setChangeGroupState','chat','query','slice','clearConversationContextUI','plugins','config','_balloonShowDiff','uiId','scrollFeedToSuggestion','setModel','resourceId','model','commands','setIsMaximized','showPrevious','605818xQxvix','startConversation','229341gATnhC','populateSourceResourceBalloon','removeFromContext','resizedTabs','ai-conversation-','contextItemRemoved','_createFromRanges','redo','170387puWLLJ','full','set','isOpen','_removeAISelectionMarkers','children','uploadProgressChanged','804708VBEJdC','modelSelected','getInteractionAndReplyById','_aiEditing','addFeedItemUserMessage','error','AI_CHAT_RESOURCE_LOAD_FAILED','_flushLastInteractionUI','sources','setContextItemLoading','toLocaleLowerCase','stopInteraction','ai-chat-context-invalid-data','resize','updateFeedItemAIReplySuggestionContent','from','end','getDocumentData','updateFeedItemAIReplySuggestionPartState','interactionStarted','indexOf','handleUserInteraction','_getDocumentRangeForReplyChanges','_openBalloonFor','sendUserMessage','_stopLastInteraction','start','AIEditing','isInContext','removeSelectionFromContext','setIsUploadInProgress','parse','isCurrentDocumentInConversation','updateConversationTitle','getTransformedByOperation','source','applySuggestion','addResourceToContext','getOperations','selectedModel','_aiChatModels','_handleUIUserMessage','listenTo','_insertSuggestion','replies','capabilitiesUpdated','18ySpJEm','addFileToContext','updateContent','getMarkersGroup','requires','_integrateEditor','contextItemLoadingEnded','new','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','load','removeContextItem','activeConversation','replyId','uid','type','mapper','removed','showNext','addFeedItemAIReply','Showing\x20conversation\x20history...','collaboration.channelId','has','resource','dialogClosed','addFilesToContext','history','addSelectionToContext','showDiff','_scrollToSuggestionRange','setAddContextOptions','loadSourceResources','AIConnector','getRanges','modification-delta','toggleSuggestionDisplayMode','viewRangeToDom','_applyOperationsAsSuggestions','name','toggleReasoning','editors','replyChangeGroupStateUpdated','options','addFeedInteractionHeader','getRoot','content','updateFeedItemAIReplySources','DocumentCompare','stopListening','contextItems','alignToTop','getSelectionText','undo','addFeedItemAISuggestion','AI_CHAT_ABORTED_MESSAGE','getInteraction','isPremiumPlugin','ai-chat-conversation-start-failed','focusPromptInput','removeMarker','pending','interactionId','setConversationContext','like','unshift','path','addContextOptionsChanged','interactionCreated','removeFeedInteraction','getFirstRange','find','get','data-id','ai-chat-controller-no-active-conversation','context','contextItemAdded','isUploadInProgress','message','data','resetMessageInput','static','baseVersion','ai-chat-controller-mouse-over','_logError','Failed\x20to\x20load\x20conversation','ai-chat-context-unsupported-type','availableModels','remove','createPositionFromPath','sendMessage','addFeedItemError','setSelectedModel','toggleWebSearch','markers','showChangeInText','sourceId','interactionFinished','delete','length','415038LbOaTC','rejected','handleRemovedConversation','Undo','ai.chat.models.displayedModels','toggleLoadingSkeleton','stop','anchorId','1368aCBHAE','rootName','_filterModels','contextItem','change','resources','nextSibling','_removeFromContext','selection','abortPromptStream','addCurrentDocumentToContext','contextSent','ready','setFeedItemRenderingStrategy','isLoading','close','AI_CHAT_UNABLE_TO_START_CONVERSATION','$graveyard','TrackChangesEditing','_aiConnector','addDocumentToContext','setConversationTitle','revert','sourcePosition','activateTab','startsWith','clearPendingContextUI','resourceStateChanged','view','removeSelectionFromChatContext','AI_BALLOON_HEADER_TITLE','replyCreated','isCurrentDocumentInContext','createRange','insertSuggestion','getDiff','updateCurrentDocumentInContext','_updateReplyContent','Liked\x20response','39320jbpzMy','provider','toString','changeGroups','getReply','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','showFakeVisualSelection','getChildren','hideFakeVisualSelection','createConversation','batch','getChild','map','locale','AI_CHAT_GENERIC_ERROR','_toggleReasoning','closeSourceResourceBalloon','ai-request-aborted','partIndex','updateFeedItemAIReplyContent','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addOperation','conversationInitialized'];_0x3301=function(){return _0x210b68;};return _0x3301();}import{AIChatModels as _0x4ac9d2}from'./model/aichatmodels.js';function _0x375f(_0x267dff,_0x326f3f){const _0x330171=_0x3301();return _0x375f=function(_0x375f72,_0x3ad4a1){_0x375f72=_0x375f72-0x15b;let _0x21d99b=_0x330171[_0x375f72];return _0x21d99b;},_0x375f(_0x267dff,_0x326f3f);}import{getEditorFromContext as _0x2a5e53}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x592911,DATA_ID_MODEL_ATTRIBUTE as _0x4f5916}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2368f6}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x148580,getMinimalSelection as _0x332825,getSuggestionPartsFromReply as _0x5abdc2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x156604,_DetachOperation as _0x3b66d6}from'ckeditor5/src/engine.js';import{findOne as _0x544d4b,getAttribute as _0x42f699,serialize as _0x5b7905,Document as _0x428c01,findByAttribute as _0x489fa5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2a87d2}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5733e5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x3a6e81}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1219e7{[_0x56431e(0x234)];[_0x56431e(0x18d)];[_0x56431e(0x1df)];[_0x56431e(0x259)];[_0x56431e(0x1eb)]=new Map();[_0x56431e(0x1b8)]=null;[_0x56431e(0x217)]=!0x1;static get[_0x56431e(0x263)](){return[_0x5410a8,_0x3a6e81,_0x592911];}static get[_0x56431e(0x20c)](){const _0x551d36=_0x56431e;return _0x551d36(0x1f8);}static get[_0x56431e(0x1e3)](){return!0x0;}static get[_0x56431e(0x296)](){return!0x0;}[_0x56431e(0x1f5)](){const _0x3d249b=_0x56431e;this[_0x3d249b(0x18d)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x27e)),this[_0x3d249b(0x1df)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1dd)),this[_0x3d249b(0x234)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x24c)),this[_0x3d249b(0x259)]=new _0x4ac9d2({'connector':this[_0x3d249b(0x18d)]});const _0x2f8f56=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1e7));this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x221),()=>{const _0x2d0844=_0x3d249b;this[_0x2d0844(0x1fe)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x249),(_0x18a2b0,_0x2e9d2b)=>{const _0x1076a3=_0x3d249b;this[_0x1076a3(0x25a)]({'userMessage':_0x2e9d2b});}),this[_0x3d249b(0x25b)](_0x2f8f56,_0x3d249b(0x225),(_0x2ebfb2,_0x263d26)=>{const _0x66a01c=_0x3d249b;this[_0x66a01c(0x204)](_0x263d26);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1c4),()=>{const _0xd52c32=_0x3d249b;_0x2f8f56[_0xd52c32(0x23e)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x183),async()=>{const _0x1751c5=_0x3d249b;await this[_0x1751c5(0x24a)](),await this[_0x1751c5(0x238)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x18e),()=>{const _0x458306=_0x3d249b;this[_0x458306(0x26a)]?.[_0x458306(0x184)](_0x44f0a3(this[_0x458306(0x2a8)][_0x458306(0x1ae)],_0x458306(0x1c0)));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x260),(_0x585774,_0x264220)=>{const _0x25be2e=_0x3d249b;this[_0x25be2e(0x26a)]?.[_0x25be2e(0x277)](Array[_0x25be2e(0x240)](_0x264220));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1cc),(_0x12a505,_0x14045f)=>{const _0x3f2702=_0x3d249b;this[_0x3f2702(0x26a)]?.[_0x3f2702(0x1cc)](_0x14045f);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x256),(_0x19d1a3,_0x560808)=>{const _0x464486=_0x3d249b;this[_0x464486(0x26a)]?.[_0x464486(0x256)](_0x560808[_0x464486(0x254)],_0x560808[_0x464486(0x275)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x269),(_0x48cd0e,_0x260a7a)=>{const _0x998995=_0x3d249b;this[_0x998995(0x181)](_0x260a7a);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x27d),(_0x50afa5,_0x24870e)=>{const _0xfec5ca=_0x3d249b;this[_0xfec5ca(0x26a)]?.[_0xfec5ca(0x27d)](_0x24870e[_0xfec5ca(0x16e)],_0x24870e[_0xfec5ca(0x212)],_0x24870e[_0xfec5ca(0x26c)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16b),()=>{const _0x24a0d3=_0x3d249b;this[_0x24a0d3(0x1c7)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x285),()=>{const _0x594899=_0x3d249b;this[_0x594899(0x1b0)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20e),(_0x2a9acc,_0xa32def)=>{const _0x2c5ee0=_0x3d249b;this[_0x2c5ee0(0x26a)]?.[_0x2c5ee0(0x21a)](_0xa32def);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x29d),(_0x1ab10c,{replyId:_0x3f8e23})=>{const _0x3d2e67=_0x3d249b;console[_0x3d2e67(0x1f7)](_0x3d2e67(0x1a0),_0x3f8e23);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20a),(_0x35e714,{replyId:_0xd08cf6})=>{const _0x57f302=_0x3d249b;console[_0x57f302(0x1f7)](_0x57f302(0x206),_0xd08cf6);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x19c),(_0x2adf11,_0x2f5428)=>{const _0x2653f6=_0x3d249b;this[_0x2653f6(0x2a8)][_0x2653f6(0x215)][_0x2653f6(0x2a5)](_0x3a6e81)[_0x2653f6(0x189)](),this[_0x2653f6(0x25c)](_0x2f5428);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16d),(_0x3718b4,{replyId:_0x242a8b,partIndex:_0x4b37d8})=>{const _0x4a94ae=_0x3d249b;this[_0x4a94ae(0x217)]=this[_0x4a94ae(0x1df)][_0x4a94ae(0x27a)],this[_0x4a94ae(0x248)](_0x242a8b,_0x4b37d8);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f3),(_0x4b7178,{replyId:_0x419819,partIndex:_0x239cdf})=>{const _0x43e4ae=_0x3d249b,_0x3ef282=this[_0x43e4ae(0x247)](_0x419819,_0x239cdf);_0x3ef282&&_0x43e4ae(0x18b)!=_0x3ef282[_0x43e4ae(0x1db)][_0x43e4ae(0x1dc)][_0x43e4ae(0x17b)]&&this[_0x43e4ae(0x234)][_0x43e4ae(0x1a7)]([_0x3ef282[_0x43e4ae(0x1db)]],_0x43e4ae(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f6),()=>{const _0x6eda10=_0x3d249b;this[_0x6eda10(0x234)][_0x6eda10(0x1a9)](_0x6eda10(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x255),(_0x39399c,_0x3f7850)=>{const _0x175ebd=_0x3d249b;this[_0x175ebd(0x2a8)][_0x175ebd(0x215)][_0x175ebd(0x2a5)](_0x3a6e81)[_0x175ebd(0x189)](),this[_0x175ebd(0x1e0)](_0x3f7850);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x281),async(_0x311bf6,_0x52e54e)=>{const _0x43d792=_0x3d249b,{reply:_0x34ddd2}=this[_0x43d792(0x233)](_0x52e54e[_0x43d792(0x26b)]),_0x2e3ef2=_0x2a5e53(this[_0x43d792(0x2a8)]),_0x2b640d=_0x5abdc2({'editor':_0x2e3ef2,'changeGroups':_0x34ddd2[_0x43d792(0x1a4)],'documentContextContent':_0x34ddd2[_0x43d792(0x1d2)],'showDiff':_0x52e54e[_0x43d792(0x27a)]});await this[_0x43d792(0x1df)][_0x43d792(0x23f)]({'id':_0x34ddd2['id'],'parts':_0x2b640d,'renderingStrategy':_0x43d792(0x15f)});}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1bf),(_0x1f8817,{replyId:_0x27e7dd,partIndex:_0x22f832})=>{const _0x46e95c=_0x3d249b;this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x26b)]==_0x27e7dd&&this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x1b3)]==_0x22f832&&this[_0x46e95c(0x2a8)][_0x46e95c(0x215)][_0x46e95c(0x2a5)](_0x3a6e81)[_0x46e95c(0x189)]();const {reply:_0x5ea8d8}=this[_0x46e95c(0x233)](_0x27e7dd);_0x5ea8d8[_0x46e95c(0x210)](_0x22f832,_0x46e95c(0x173)),this[_0x46e95c(0x234)][_0x46e95c(0x1a9)](_0x46e95c(0x161));});}async[_0x56431e(0x1c1)](){const _0x4188ab=_0x56431e;this[_0x4188ab(0x2a8)]instanceof _0x21ce81?this[_0x4188ab(0x264)](this[_0x4188ab(0x2a8)]):this[_0x4188ab(0x25b)](this[_0x4188ab(0x2a8)][_0x4188ab(0x286)],_0x4188ab(0x201),(_0x3c1042,_0x5259b1)=>{const _0x550c0f=_0x4188ab;_0x5259b1['on'](_0x550c0f(0x186),()=>{const _0x3486fd=_0x550c0f;this[_0x3486fd(0x264)](_0x5259b1);});}),await this[_0x4188ab(0x1fe)]();}[_0x56431e(0x25c)](_0x5cedef){const _0x9cb7c7=_0x56431e,_0x399ddf=_0x2a5e53(this[_0x9cb7c7(0x2a8)]);if(!_0x399ddf[_0x9cb7c7(0x215)][_0x9cb7c7(0x274)](_0x9cb7c7(0x18c)))return;const _0x2286a0=this[_0x9cb7c7(0x2a8)][_0x9cb7c7(0x215)][_0x9cb7c7(0x2a5)](_0x9cb7c7(0x28d)),{reply:_0x51e2e1,interaction:_0x18ac72}=this[_0x9cb7c7(0x233)](_0x5cedef[_0x9cb7c7(0x26b)]),_0x58f962=this[_0x9cb7c7(0x247)](_0x5cedef[_0x9cb7c7(0x26b)],_0x5cedef[_0x9cb7c7(0x1b3)]),_0x876205=void 0x0!==_0x5cedef[_0x9cb7c7(0x1b3)]?[_0x51e2e1[_0x9cb7c7(0x1a4)][_0x5cedef[_0x9cb7c7(0x1b3)]]]:_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x1c8)](_0x105449=>_0x9cb7c7(0x29a)==_0x105449[_0x9cb7c7(0x1f2)]),_0x3b284a=_0x876205[_0x9cb7c7(0x1ad)](_0x101166=>_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x245)](_0x101166));_0x3b284a[_0x9cb7c7(0x1d4)](_0x1eab4c=>_0x51e2e1[_0x9cb7c7(0x210)](_0x1eab4c,_0x9cb7c7(0x1f1)));const _0x3e651f=_0x2368f6({'editor':_0x399ddf,'reply':_0x51e2e1,'interaction':_0x18ac72,'groups':_0x876205,'transform':!0x0,'documentCompare':_0x2286a0,'documentCompareOptions':{'anchor':_0x9cb7c7(0x1e6),'markDeletions':!0x0}});let _0x5a752b;_0x58f962&&this[_0x9cb7c7(0x27b)](_0x58f962[_0x9cb7c7(0x1db)]),_0x399ddf[_0x9cb7c7(0x21c)][_0x9cb7c7(0x17e)](_0x163a52=>{const _0x24d480=_0x9cb7c7;_0x5a752b=_0x163a52[_0x24d480(0x1ab)],_0x399ddf[_0x24d480(0x215)][_0x24d480(0x2a5)](_0x24d480(0x18c))[_0x24d480(0x283)](_0x3e651f),this[_0x24d480(0x234)][_0x24d480(0x1a9)](_0x24d480(0x161));}),this[_0x9cb7c7(0x1eb)][_0x9cb7c7(0x22c)](_0x5a752b,{'interactionId':_0x18ac72['id'],'replyId':_0x51e2e1['id'],'indexes':_0x3b284a[_0x9cb7c7(0x213)]()});}[_0x56431e(0x1e0)](_0x55af5c){const _0x2ccc54=_0x56431e,_0x34c0ff=_0x2a5e53(this[_0x2ccc54(0x2a8)]),_0x527c19=this[_0x2ccc54(0x2a8)][_0x2ccc54(0x215)][_0x2ccc54(0x2a5)](_0x592911),{reply:_0x49b33d,interaction:_0x37c289}=this[_0x2ccc54(0x233)](_0x55af5c[_0x2ccc54(0x26b)]),_0x48b80f=this[_0x2ccc54(0x247)](_0x55af5c[_0x2ccc54(0x26b)],_0x55af5c[_0x2ccc54(0x1b3)]),_0x2ca9d0=void 0x0!==_0x55af5c[_0x2ccc54(0x1b3)]?[_0x49b33d[_0x2ccc54(0x1a4)][_0x55af5c[_0x2ccc54(0x1b3)]]]:_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x1c8)](_0x3cb653=>_0x2ccc54(0x29a)==_0x3cb653[_0x2ccc54(0x1f2)]),_0x230dbc=_0x2ca9d0[_0x2ccc54(0x1ad)](_0x2c4bb0=>_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x245)](_0x2c4bb0));_0x230dbc[_0x2ccc54(0x1d4)](_0x3b65e0=>_0x49b33d[_0x2ccc54(0x210)](_0x3b65e0,_0x2ccc54(0x1f1)));const _0x1f83ab=_0x2368f6({'editor':_0x34c0ff,'reply':_0x49b33d,'interaction':_0x37c289,'groups':_0x2ca9d0,'transform':!0x0,'documentCompare':_0x527c19,'documentCompareOptions':{'anchor':_0x2ccc54(0x1e6),'markDeletions':!0x1}});let _0x1259f8;_0x48b80f&&this[_0x2ccc54(0x27b)](_0x48b80f[_0x2ccc54(0x1db)]),_0x34c0ff[_0x2ccc54(0x21c)][_0x2ccc54(0x17e)](_0x2a765c=>{const _0x1b7e40=_0x2ccc54;_0x1259f8=_0x2a765c[_0x1b7e40(0x1ab)];for(const _0x3b506b of _0x1f83ab)_0x3b506b[_0x1b7e40(0x160)]=_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x207)][_0x1b7e40(0x1cf)],_0x2a765c[_0x1b7e40(0x1ab)][_0x1b7e40(0x1b6)](_0x3b506b),_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x1cb)](_0x3b506b);}),this[_0x2ccc54(0x1eb)][_0x2ccc54(0x22c)](_0x1259f8,{'interactionId':_0x37c289['id'],'replyId':_0x49b33d['id'],'indexes':_0x230dbc[_0x2ccc54(0x213)]()});}[_0x56431e(0x248)](_0x273e3b,_0x42ff89){const _0x17ceca=_0x56431e,_0x2f52f7=_0x2a5e53(this[_0x17ceca(0x2a8)]),_0x19044e=this[_0x17ceca(0x247)](_0x273e3b,_0x42ff89),_0x4580e1=this[_0x17ceca(0x2a8)][_0x17ceca(0x215)][_0x17ceca(0x2a5)](_0x3a6e81);if(!_0x19044e)return void _0x4580e1[_0x17ceca(0x189)]();const {range:_0xa1ff9b,currentIndex:_0x2dc0ec,previousIndex:_0x12ce43,nextIndex:_0x5da606}=_0x19044e;if(this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x26b)]==_0x273e3b&&this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x1b3)]==_0x2dc0ec)return;this[_0x17ceca(0x1b8)]={'replyId':_0x273e3b,'partIndex':_0x2dc0ec};const _0x1acabc=new _0x5733e5(_0x2f52f7[_0x17ceca(0x1ae)],{'showDiff':this[_0x17ceca(0x217)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x17ceca(0x22b)},'hideHeader':!0x0}),{reply:_0x1c2c32}=this[_0x17ceca(0x233)](_0x273e3b),_0x599ad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x1c2c32[_0x17ceca(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x1c2c32[_0x17ceca(0x1d2)],'showDiff':this[_0x17ceca(0x217)]});_0x1acabc[_0x17ceca(0x261)]({'parts':_0x599ad4,'renderingStrategy':_0x17ceca(0x15f)});const _0x1985c3=_0x2dc0ec!==_0x12ce43;this[_0x17ceca(0x27b)](_0xa1ff9b,!0x0),_0x4580e1[_0x17ceca(0x20f)]({'index':_0x2dc0ec,'title':_0x44f0a3(this[_0x17ceca(0x2a8)][_0x17ceca(0x1ae)],_0x17ceca(0x198),(_0x2dc0ec+0x1)[_0x17ceca(0x1a3)]()),'icon':_0x2a87d2,'mainView':_0x1acabc,'showRotator':_0x1985c3,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0xa1ff9b]}),this[_0x17ceca(0x1df)][_0x17ceca(0x219)](_0x273e3b,_0x2dc0ec),this[_0x17ceca(0x25b)](_0x1acabc,_0x17ceca(0x281),(_0x32f107,{showDiff:_0x45449d})=>{const _0x503ebd=_0x17ceca;this[_0x503ebd(0x217)]=_0x45449d;const {reply:_0x33d1b6}=this[_0x503ebd(0x233)](_0x273e3b),_0xfacad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x33d1b6[_0x503ebd(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x33d1b6[_0x503ebd(0x1d2)],'showDiff':_0x45449d});_0x1acabc[_0x503ebd(0x261)]({'parts':_0xfacad4,'renderingStrategy':_0x503ebd(0x15f)});}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x255),()=>{const _0x5cec21=_0x17ceca;this[_0x5cec21(0x1e0)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x5cec21(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x5cec21(0x189)]();}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x19c),()=>{const _0x52e940=_0x17ceca;this[_0x52e940(0x25c)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x52e940(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x52e940(0x189)]();}),_0x1985c3&&(this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x270),()=>{const _0xb7de98=_0x17ceca;this[_0xb7de98(0x248)](_0x273e3b,_0x5da606);}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x21f),()=>{const _0x23dfce=_0x17ceca;this[_0x23dfce(0x248)](_0x273e3b,_0x12ce43);})),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x276),()=>{const _0x46c5b9=_0x17ceca;this[_0x46c5b9(0x28e)](_0x4580e1),this[_0x46c5b9(0x28e)](_0x1acabc),this[_0x46c5b9(0x1b8)]=null;});}[_0x56431e(0x247)](_0x6c9ac4,_0x55ddd0){const _0xccc43e=_0x56431e,_0x356d20=_0x2a5e53(this[_0xccc43e(0x2a8)]),{reply:_0x5cee96,interaction:_0x4bed1c}=this[_0xccc43e(0x233)](_0x6c9ac4),_0x13db08=_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x1c8)](_0x1bb1f1=>_0xccc43e(0x29a)==_0x1bb1f1[_0xccc43e(0x1f2)]),_0x363811=_0x13db08[_0xccc43e(0x1ad)](_0x37cf2a=>_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x245)](_0x37cf2a));void 0x0===_0x55ddd0&&(_0x55ddd0=_0x363811[0x0]);const _0x2e463c=_0x363811[_0xccc43e(0x245)](_0x55ddd0);if(-0x1==_0x2e463c)return null;const _0x3de0c5=0x0==_0x2e463c?_0x363811[_0x363811[_0xccc43e(0x171)]-0x1]:_0x363811[_0x2e463c-0x1],_0x368a94=_0x2e463c==_0x363811[_0xccc43e(0x171)]-0x1?_0x363811[0x0]:_0x363811[_0x2e463c+0x1],_0x27990a=_0x13db08[_0x2e463c],_0x3f4a90=new _0x428c01([]),_0x1b7d3d=new _0x428c01([]);for(const _0x3d64dc of _0x27990a[_0xccc43e(0x1c3)])if(_0xccc43e(0x26f)!=_0x3d64dc[_0xccc43e(0x26d)]&&_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x3d64dc[_0xccc43e(0x1fa)][_0xccc43e(0x1d3)](!0x0)),_0xccc43e(0x266)!=_0x3d64dc[_0xccc43e(0x26d)]){const _0x511d7d=_0x544d4b(_0x5c1d75=>_0x42f699(_0x5c1d75,_0xccc43e(0x2a6))==_0x3d64dc['id'],_0x5cee96[_0xccc43e(0x1d2)],!0x0);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x511d7d[_0xccc43e(0x1d3)](!0x0));}if(0x0==_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x171)]){if(_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)]){const _0x2f9e7b=_0x489fa5(_0xccc43e(0x2a6),_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)],_0x5cee96[_0xccc43e(0x1d2)]);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x2f9e7b[_0xccc43e(0x180)]&&(_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)));}else{const _0x11a0ba=_0x5cee96[_0xccc43e(0x1d2)][_0xccc43e(0x22f)][0x0];if(!_0x11a0ba)return null;_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0));}}const _0x5e53d0=_0x4bed1c[_0xccc43e(0x1d9)](),_0x4dff10=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x5e53d0[_0xccc43e(0x28b)]),_0x3947bc=_0x5b7905(_0x3f4a90),_0x460d63=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x21c546=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x58d169=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x1e5)](_0x460d63,0x0),_0x766565=_0x5b7905(_0x1b7d3d),_0x544e88={'anchor':_0x58d169,'markDeletions':!0x1},_0x2cc5b0=_0x356d20[_0xccc43e(0x215)][_0xccc43e(0x2a5)](_0x592911)[_0xccc43e(0x19d)](_0x3947bc,_0x766565,_0x544e88)[_0xccc43e(0x257)]();if(!_0x2cc5b0[_0xccc43e(0x171)])return null;_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x17e)](_0x54e82f=>{const _0x26a24c=_0xccc43e;for(const _0x2836f5 of _0x2cc5b0)if(_0x26a24c(0x166)==_0x2836f5[_0x26a24c(0x26d)]){const _0x1ab0a1=_0x2836f5[_0x26a24c(0x191)],_0x2c23e3=_0x2836f5[_0x26a24c(0x1d0)],_0x5a274b=new _0x3b66d6(_0x1ab0a1,_0x2c23e3);_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x5a274b),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x5a274b);}else _0x2836f5[_0x26a24c(0x160)]=null,_0x2836f5[_0x26a24c(0x203)]=!0x1,_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x2836f5),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x2836f5);});const _0x47b3c6=_0x332825(_0x356d20,_0x2cc5b0,_0x460d63);_0x148580(_0x356d20[_0xccc43e(0x21c)],_0x47b3c6);const _0x468568=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x363821=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x4d7f9e=[];let _0x3d0ca4=_0x460d63,_0x175bae=_0x21c546;for(let _0x1cf326=0x0;_0x1cf326<_0x363821[_0xccc43e(0x171)];_0x1cf326++){const _0x1e3b50=_0x3d0ca4[_0xccc43e(0x1e8)]-_0x363821[_0x1cf326];_0x4d7f9e[_0x1cf326]=_0x175bae[_0xccc43e(0x1e8)]-_0x1e3b50,_0x3d0ca4=_0x3d0ca4[_0xccc43e(0x1e9)](_0x363821[_0x1cf326]),_0x175bae=_0x175bae[_0xccc43e(0x1e9)](_0x4d7f9e[_0x1cf326]);}const _0x58b609=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x468568),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x4d7f9e)),_0x2ae18b=_0x21c546[_0xccc43e(0x1ac)](0x0)[_0xccc43e(0x1cd)](_0x4f5916),_0x5ad2b7=Array[_0xccc43e(0x240)](_0x4dff10[_0xccc43e(0x1a8)]())[_0xccc43e(0x2a4)](_0x471fc3=>_0x471fc3[_0xccc43e(0x1cd)](_0x4f5916)==_0x2ae18b)[_0xccc43e(0x1ea)](),_0x52e2ed=_0x58b609[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x18724a=_0x58b609[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)]();_0x52e2ed[0x0]=_0x5ad2b7[0x0]+_0x52e2ed[0x0],_0x18724a[0x0]=_0x5ad2b7[0x0]+_0x18724a[0x0];let _0x2c689d=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x52e2ed),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x18724a));const _0x3cd1d0=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x278)][_0xccc43e(0x257)](_0x5e53d0[_0xccc43e(0x1cf)]);for(const _0x4acdc5 of _0x3cd1d0)_0x2c689d=_0x156604[_0xccc43e(0x228)](_0x2c689d[_0xccc43e(0x253)](_0x4acdc5));return{'range':_0x2c689d,'previousIndex':_0x3de0c5,'nextIndex':_0x368a94,'currentIndex':_0x55ddd0};}[_0x56431e(0x264)](_0x425b40){const _0x585130=_0x56431e;if(!_0x425b40[_0x585130(0x215)][_0x585130(0x274)](_0x585130(0x175)))return;const _0x30c9b7=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x292)),_0x529f1d=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x229));this[_0x585130(0x25b)](_0x30c9b7,_0x585130(0x190),(_0x354ab5,_0x186038,_0x23df4a)=>{const _0x5c47a9=_0x585130,_0x267873=this[_0x5c47a9(0x1eb)][_0x5c47a9(0x2a5)](_0x186038);if(!_0x267873)return;const _0x5cde9f=this[_0x5c47a9(0x26a)][_0x5c47a9(0x295)](_0x267873[_0x5c47a9(0x29b)])[_0x5c47a9(0x1a5)](_0x267873[_0x5c47a9(0x26b)]);_0x267873[_0x5c47a9(0x1fd)][_0x5c47a9(0x1d4)](_0x40f7a5=>_0x5cde9f[_0x5c47a9(0x210)](_0x40f7a5,_0x5c47a9(0x29a))),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x170)](_0x186038),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x22c)](_0x23df4a,_0x267873);}),this[_0x585130(0x25b)](_0x529f1d,_0x585130(0x190),(_0x40d99f,_0x5da79b,_0x213b71)=>{const _0x3fe157=_0x585130,_0x5f0f8f=this[_0x3fe157(0x1eb)][_0x3fe157(0x2a5)](_0x5da79b);if(!_0x5f0f8f)return;const _0x3d9289=this[_0x3fe157(0x26a)][_0x3fe157(0x295)](_0x5f0f8f[_0x3fe157(0x29b)])[_0x3fe157(0x1a5)](_0x5f0f8f[_0x3fe157(0x26b)]);_0x5f0f8f[_0x3fe157(0x1fd)][_0x3fe157(0x1d4)](_0x1bd2bc=>_0x3d9289[_0x3fe157(0x210)](_0x1bd2bc,_0x3fe157(0x1f1))),this[_0x3fe157(0x1eb)][_0x3fe157(0x170)](_0x5da79b),this[_0x3fe157(0x1eb)][_0x3fe157(0x22c)](_0x213b71,_0x5f0f8f);});}async[_0x56431e(0x1bb)](_0x578e74){const _0x1c0189=_0x56431e;this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x3a6e81)[_0x1c0189(0x189)](),this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x15f)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x0),await this[_0x1c0189(0x24a)]();try{const _0x380e22=this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x570d7d);this[_0x1c0189(0x252)]('\x20'),_0x380e22[_0x1c0189(0x196)][_0x1c0189(0x192)](_0x1c0189(0x211)),await this[_0x1c0189(0x1fe)](_0x578e74);const {sessionId:_0x596594}=this[_0x1c0189(0x234)][_0x1c0189(0x242)]();await this[_0x1c0189(0x26a)][_0x1c0189(0x268)](_0x578e74,_0x596594),this[_0x1c0189(0x26a)][_0x1c0189(0x251)]()&&this[_0x1c0189(0x26a)][_0x1c0189(0x184)](_0x44f0a3(this[_0x1c0189(0x2a8)][_0x1c0189(0x1ae)],_0x1c0189(0x1c0)));}catch(_0x554754){console[_0x1c0189(0x236)](_0x1c0189(0x163),_0x554754);}finally{this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x1de)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x1);}}[_0x56431e(0x174)](_0x306f0a){const _0x324d3d=_0x56431e;this[_0x324d3d(0x26a)]['id']===_0x306f0a&&this[_0x324d3d(0x1fe)]();}async[_0x56431e(0x209)](){const _0x187315=_0x56431e,_0x2ca118=this[_0x187315(0x234)][_0x187315(0x291)]();this[_0x187315(0x26a)]?.[_0x187315(0x279)](_0x2ca118),this[_0x187315(0x26a)]?.[_0x187315(0x184)](_0x44f0a3(this[_0x187315(0x2a8)][_0x187315(0x1ae)],_0x187315(0x1c0)));}[_0x56431e(0x197)](){const _0x538226=_0x56431e;this[_0x538226(0x26a)]?.[_0x538226(0x24e)]();}[_0x56431e(0x298)](){const _0x4f343b=_0x56431e;this[_0x4f343b(0x1df)][_0x4f343b(0x298)]();}async[_0x56431e(0x221)](){const _0x2b93ba=_0x56431e;await this[_0x2b93ba(0x1fe)]();}async[_0x56431e(0x168)]({message:_0x451e0f,quickActionData:_0x518c4a}){const _0x51a610=_0x56431e;await this[_0x51a610(0x25a)]({'userMessage':_0x451e0f,'quickActionData':_0x518c4a});}[_0x56431e(0x1ba)](){const _0x425e3c=_0x56431e,_0x27b392=this[_0x425e3c(0x2a8)][_0x425e3c(0x216)][_0x425e3c(0x2a5)](_0x425e3c(0x273));if(!_0x27b392)throw new _0x3661c1(_0x425e3c(0x1fc),this);return _0x27b392;}async[_0x56431e(0x1fe)](_0x23412b){const _0x47ea23=_0x56431e,_0x25e238=this[_0x47ea23(0x2a8)][_0x47ea23(0x215)][_0x47ea23(0x2a5)](_0x3a6e81);let _0xe30375;_0x25e238[_0x47ea23(0x22d)]&&_0x25e238[_0x47ea23(0x189)](),_0xe30375=_0x23412b||!this[_0x47ea23(0x26a)]?this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1d5)):this[_0x47ea23(0x26a)][_0x47ea23(0x258)]['id'],await this[_0x47ea23(0x24a)]();const _0xbb701d=this[_0x47ea23(0x1ba)](),_0x2ffc15=_0x23412b||_0x12eb43();this[_0x47ea23(0x26a)]=new _0x14ab1c({'connector':this[_0x47ea23(0x18d)],'chatModels':this[_0x47ea23(0x259)],'defaultModelId':_0xe30375,'conversationId':_0x2ffc15,'group':_0xbb701d,'getEditor':()=>_0x2a5e53(this[_0x47ea23(0x2a8)])}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1b7),(_0x486d68,_0x59cf60)=>{const _0x367bd1=_0x47ea23;_0x59cf60[_0x367bd1(0x165)]=this[_0x367bd1(0x17c)](_0x59cf60[_0x367bd1(0x165)],this[_0x367bd1(0x2a8)][_0x367bd1(0x216)][_0x367bd1(0x2a5)](_0x367bd1(0x176))),this[_0x367bd1(0x1df)][_0x367bd1(0x1aa)](_0x59cf60),this[_0x367bd1(0x1df)][_0x367bd1(0x15e)](),this[_0x367bd1(0x1df)][_0x367bd1(0x194)](),this[_0x367bd1(0x1df)][_0x367bd1(0x214)](),_0x23412b||(this[_0x367bd1(0x1df)][_0x367bd1(0x20b)](),this[_0x367bd1(0x26a)]?.[_0x367bd1(0x184)](_0x44f0a3(this[_0x367bd1(0x2a8)][_0x367bd1(0x1ae)],_0x367bd1(0x1c0))));}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x230),(_0x5bbc42,_0x2363a7)=>{const _0x103ca0=_0x47ea23;this[_0x103ca0(0x1df)][_0x103ca0(0x24f)](_0x2363a7[_0x103ca0(0x15b)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a1),(_0x46531a,_0x24da8f)=>{const _0x2e4f55=_0x47ea23;this[_0x2e4f55(0x1df)][_0x2e4f55(0x235)](_0x24da8f),this[_0x2e4f55(0x1df)][_0x2e4f55(0x289)](_0x24da8f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x244),(_0x611618,_0x403736)=>{const _0x1f2eee=_0x47ea23;this[_0x1f2eee(0x1df)][_0x1f2eee(0x1e2)](_0x403736);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x16f),async()=>{const _0x59682f=_0x47ea23;await this[_0x59682f(0x1df)][_0x59682f(0x1f9)]();}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1ec),(_0x3f805f,_0x4325e4)=>{const _0x5f2cca=_0x47ea23;this[_0x5f2cca(0x1df)][_0x5f2cca(0x2a2)](_0x4325e4['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x18f),(_0x1e51c0,_0x3b59a5,_0x51a422)=>{const _0x68569b=_0x47ea23;this[_0x68569b(0x252)](_0x3b59a5,_0x51a422);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x199),(_0x26f89a,_0x5f020f)=>{const _0x1733d1=_0x47ea23;this[_0x1733d1(0x1df)][_0x1733d1(0x1ff)]({'isVisible':!0x0,'id':_0x5f020f[_0x1733d1(0x29b)]}),_0x1733d1(0x1ca)===_0x5f020f[_0x1733d1(0x26d)]?this[_0x1733d1(0x1df)][_0x1733d1(0x271)](_0x5f020f):this[_0x1733d1(0x1df)][_0x1733d1(0x293)](_0x5f020f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1fb),async(_0x43a3ea,_0x3e738a,_0x27fc10)=>{const _0xd3a1f1=_0x47ea23;await this[_0xd3a1f1(0x19f)]({'reply':_0x3e738a,'changeGroups':_0x27fc10});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x287),(_0x320bef,{reply:_0x9a5c2c,index:_0x2f9480,state:_0x3173dd})=>{const _0x494b8a=_0x47ea23;this[_0x494b8a(0x1df)][_0x494b8a(0x243)]({'id':_0x9a5c2c['id'],'index':_0x2f9480,'state':_0x3173dd});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a9),(_0x3b4d69,_0x3d5e14)=>{const _0x3a3017=_0x47ea23;if(this[_0x3a3017(0x1df)][_0x3a3017(0x1d1)](_0x3d5e14[_0x3a3017(0x17d)],_0x3d5e14[_0x3a3017(0x188)]),_0x3a3017(0x182)===_0x3d5e14[_0x3a3017(0x17d)][_0x3a3017(0x26d)]){const _0xeba4ae=[..._0x2a5e53(this[_0x3a3017(0x2a8)])[_0x3a3017(0x21c)][_0x3a3017(0x207)][_0x3a3017(0x182)][_0x3a3017(0x27f)]()];this[_0x3a3017(0x234)][_0x3a3017(0x1a7)](_0xeba4ae,_0x3a3017(0x226)+this[_0x3a3017(0x26a)]?.['id']);}}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x227),(_0xdf07a9,_0xfa5a3f)=>{const _0x51c9c2=_0x47ea23;this[_0x51c9c2(0x1df)][_0x51c9c2(0x269)](_0xfa5a3f[_0x51c9c2(0x218)]),_0x51c9c2(0x1da)==_0xfa5a3f[_0x51c9c2(0x218)]&&this[_0x51c9c2(0x197)](),_0x51c9c2(0x182)===_0xfa5a3f[_0x51c9c2(0x26d)]&&this[_0x51c9c2(0x234)][_0x51c9c2(0x1a9)](_0x51c9c2(0x226)+this[_0x51c9c2(0x26a)]?.['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x265),(_0x41b305,_0x35ea5d)=>{const _0x103d95=_0x47ea23;this[_0x103d95(0x1df)][_0x103d95(0x23a)](_0x35ea5d[_0x103d95(0x17d)][_0x103d95(0x218)],_0x35ea5d[_0x103d95(0x188)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x185),(_0x2970d7,_0x25b52f)=>{const _0x2cdd56=_0x47ea23;this[_0x2cdd56(0x1df)][_0x2cdd56(0x29c)](_0x25b52f[_0x2cdd56(0x28f)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a0),(_0x37c36a,_0x487206)=>{const _0x2c26d8=_0x47ea23;this[_0x2c26d8(0x1df)][_0x2c26d8(0x27c)](_0x487206[_0x2c26d8(0x288)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1c5),(_0x30f4cf,_0x75c24d)=>{const _0x439854=_0x47ea23;this[_0x439854(0x1df)][_0x439854(0x223)](_0x75c24d[_0x439854(0x16e)],_0x75c24d[_0x439854(0x254)],_0x75c24d[_0x439854(0x17f)],_0x75c24d[_0x439854(0x26c)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x195),(_0x37ad7e,_0x429d0f)=>{const _0x5ba07d=_0x47ea23;this[_0x5ba07d(0x1df)][_0x5ba07d(0x1d6)](_0x429d0f[_0x5ba07d(0x16e)],_0x429d0f[_0x5ba07d(0x21b)],_0x429d0f[_0x5ba07d(0x24d)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x25e),(_0x45c767,_0x192c72)=>{const _0x5348a7=_0x47ea23;this[_0x5348a7(0x1df)][_0x5348a7(0x1e4)](_0x192c72);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x232),(_0x2f091c,_0x30a8b2)=>{const _0x341d42=_0x47ea23;this[_0x341d42(0x1df)][_0x341d42(0x16a)](_0x30a8b2[_0x341d42(0x258)],_0x30a8b2[_0x341d42(0x1c2)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x236),(_0xadbac9,{error:_0x3f64f7,interactionId:_0x302c52,fileName:_0x46d251,url:_0x29567d,sourceId:_0x3d8d1d,sourceLabel:_0x3c4328})=>{const _0x5a3a69=_0x47ea23,_0xcc3bea=_0x302c52?_0x302c52+':'+_0x12eb43():_0x12eb43();_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1b2))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x202)]({'staticMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x294)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1c6))||_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x297))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x18a)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ed))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1e1),_0x46d251),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ef))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1a6),_0x29567d),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x23d))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1bd)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x164))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1b5)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d7))?(_0x3d8d1d&&this[_0x5a3a69(0x1df)][_0x5a3a69(0x1b1)](_0x3d8d1d),this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x267),_0x3c4328||_0x5a3a69(0x254)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d8))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x237)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1af)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7));}),await this[_0x47ea23(0x26a)][_0x47ea23(0x1f5)](this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1ce))),_0x23412b||await this[_0x47ea23(0x26a)][_0x47ea23(0x24b)]();}async[_0x56431e(0x25a)]({userMessage:_0x489ec2,quickActionData:_0x4a1d43}){const _0x255e70=_0x56431e;if(!this[_0x255e70(0x26a)])throw new _0x3661c1(_0x255e70(0x2a7));this[_0x255e70(0x26a)][_0x255e70(0x19a)]()&&await this[_0x255e70(0x26a)][_0x255e70(0x19e)](this[_0x255e70(0x234)][_0x255e70(0x242)]()),this[_0x255e70(0x26a)]['id']&&this[_0x255e70(0x26a)][_0x255e70(0x1f4)]&&await this[_0x255e70(0x26a)][_0x255e70(0x246)]({'userMessage':_0x489ec2,'quickActionData':_0x4a1d43}),this[_0x255e70(0x22e)]();}[_0x56431e(0x22e)](){const _0x4efd37=_0x56431e,_0x474b1f=_0x2a5e53(this[_0x4efd37(0x2a8)])[_0x4efd37(0x21c)],_0x3bf376=Array[_0x4efd37(0x240)](_0x474b1f[_0x4efd37(0x16c)][_0x4efd37(0x262)](_0x503260));_0x474b1f[_0x4efd37(0x17e)](_0x144a89=>{const _0xe7710=_0x4efd37;_0x3bf376[_0xe7710(0x1d4)](_0x3a1161=>_0x144a89[_0xe7710(0x299)](_0x3a1161));});}[_0x56431e(0x200)](){const _0x2c98a7=_0x56431e;console[_0x2c98a7(0x1f7)](_0x2c98a7(0x272));}[_0x56431e(0x204)](_0x388304){const _0x48980a=_0x56431e;this[_0x48980a(0x1df)][_0x48980a(0x21e)](_0x388304);}[_0x56431e(0x162)](_0x1bfde8){const _0x1a9028=_0x56431e;_0x116548(_0x1bfde8[_0x1a9028(0x15c)]);}[_0x56431e(0x181)](_0x48655e){const _0x1c0751=_0x56431e;this[_0x1c0751(0x26a)]?.[_0x1c0751(0x224)](_0x48655e);}[_0x56431e(0x1c7)](){const _0x2e60aa=_0x56431e;this[_0x2e60aa(0x26a)]?.[_0x2e60aa(0x16b)]();}[_0x56431e(0x1b0)](){const _0x17013e=_0x56431e;this[_0x17013e(0x26a)]?.[_0x17013e(0x285)]();}[_0x56431e(0x233)](_0x1c9f4b){const _0x2070ab=_0x56431e,[_0x36ac3d,_0x58e4d8]=_0x1c9f4b[_0x2070ab(0x1ee)](':'),_0x1eb6e2=this[_0x2070ab(0x26a)][_0x2070ab(0x295)](_0x36ac3d),_0x497373=_0x1eb6e2[_0x2070ab(0x1a5)](_0x58e4d8);return{'interaction':_0x1eb6e2,'reply':_0x497373};}[_0x56431e(0x27b)](_0x2c17ab,_0x58a7d6=!0x1){const _0x44db4a=_0x56431e,_0x568dfe=_0x2a5e53(this[_0x44db4a(0x2a8)]),_0x138c8c={'target':_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x196)][_0x44db4a(0x1bc)][_0x44db4a(0x282)](_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x26e)][_0x44db4a(0x1b9)](_0x2c17ab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x58a7d6};_0x58a7d6&&(_0x138c8c[_0x44db4a(0x290)]=!0x0),_0x55a9fe(_0x138c8c);}[_0x56431e(0x252)](_0x480854,_0x4cc63f=!0x1){const _0x414b02=_0x56431e;this[_0x414b02(0x1df)][_0x414b02(0x18f)](_0x480854||_0x44f0a3(this[_0x414b02(0x2a8)][_0x414b02(0x1ae)],_0x414b02(0x1f0)),_0x4cc63f);}[_0x56431e(0x17c)](_0x50bb56,_0x1ec5ba){const _0x5645d7=_0x56431e;let _0xca9266;if(_0x1ec5ba){_0xca9266=[];const _0x517341=_0x5645d7(0x205)==typeof _0x1ec5ba?[_0x1ec5ba[_0x5645d7(0x23b)]()]:_0x1ec5ba[_0x5645d7(0x1ad)](_0x27e957=>_0x27e957[_0x5645d7(0x23b)]());for(const _0x4b3022 of _0x517341)for(const _0xbd6dab of _0x50bb56)(_0xbd6dab['id'][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x284)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x1a2)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab['id'][_0x5645d7(0x23b)]()[_0x5645d7(0x193)](_0x4b3022))&&_0xca9266[_0x5645d7(0x208)](_0xbd6dab);}else _0xca9266=_0x50bb56;return _0xca9266;}async[_0x56431e(0x19f)]({reply:_0x51fb34,changeGroups:_0x31036a,renderingStrategy:_0x2cddc4}){const _0xea5ac7=_0x56431e,{id:_0x4e7c7d,isDone:_0x15bf71,type:_0x25d504,parsedContent:_0x5d87b4}=_0x51fb34;if(_0xea5ac7(0x280)===_0x25d504){const _0x3223ff=_0x2a5e53(this[_0xea5ac7(0x2a8)]),_0x2cc824=_0x5abdc2({'editor':_0x3223ff,'showDiff':this[_0xea5ac7(0x1df)][_0xea5ac7(0x27a)],'changeGroups':_0x31036a,'documentContextContent':_0x51fb34[_0xea5ac7(0x1d2)]});await this[_0xea5ac7(0x1df)][_0xea5ac7(0x23f)]({'id':_0x4e7c7d,'parts':_0x2cc824,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});}else _0xea5ac7(0x1ca)===_0x25d504&&await this[_0xea5ac7(0x1df)][_0xea5ac7(0x1b4)]({'id':_0x4e7c7d,'parsedContent':_0x5d87b4,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});_0x15bf71&&_0x51fb34[_0xea5ac7(0x239)][_0xea5ac7(0x171)]>0x0&&this[_0xea5ac7(0x1df)][_0xea5ac7(0x28c)](_0x4e7c7d,_0x51fb34[_0xea5ac7(0x239)]);}async[_0x56431e(0x24a)](){const _0x3123d6=_0x56431e,_0x152ca0=this[_0x3123d6(0x26a)]?.[_0x3123d6(0x1be)];_0x152ca0&&(_0x152ca0[_0x3123d6(0x178)](),this[_0x3123d6(0x1df)][_0x3123d6(0x23c)](_0x152ca0));}async[_0x56431e(0x238)](){const _0x671367=_0x56431e,_0xe87b0b=this[_0x671367(0x26a)]?.[_0x671367(0x1be)];if(_0xe87b0b){for await(const _0x1e737f of _0xe87b0b[_0x671367(0x25d)])await this[_0x671367(0x19f)]({'reply':_0x1e737f,'changeGroups':_0x1e737f[_0x671367(0x1a4)],'renderingStrategy':_0x671367(0x15f)});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x354f3d=_0x4483;(function(_0x25caec,_0xa55528){const _0x2e4a94=_0x4483,_0x539953=_0x25caec();while(!![]){try{const _0x3ce390=parseInt(_0x2e4a94(0x26b))/0x1*(parseInt(_0x2e4a94(0x204))/0x2)+parseInt(_0x2e4a94(0x273))/0x3+-parseInt(_0x2e4a94(0x239))/0x4+-parseInt(_0x2e4a94(0x24f))/0x5*(parseInt(_0x2e4a94(0x22e))/0x6)+-parseInt(_0x2e4a94(0x20e))/0x7*(parseInt(_0x2e4a94(0x1e9))/0x8)+-parseInt(_0x2e4a94(0x247))/0x9*(-parseInt(_0x2e4a94(0x245))/0xa)+parseInt(_0x2e4a94(0x215))/0xb*(parseInt(_0x2e4a94(0x1f3))/0xc);if(_0x3ce390===_0xa55528)break;else _0x539953['push'](_0x539953['shift']());}catch(_0x568b5e){_0x539953['push'](_0x539953['shift']());}}}(_0x5247,0x29c91));import{ContextPlugin as _0x498048}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x11dfcf}from'ckeditor5/src/utils.js';import{AIChatView as _0x1be429}from'./ui/aichatview.js';import{AITabs as _0x199c2b}from'../aitabs/aitabs.js';import{getTranslation as _0x4925cf}from'../aicore/utils/common-translations.js';function _0x5247(){const _0x224b67=['isMaximized','renderingStrategy','config','isVisible','finishInteraction','streaming','label','chatControls','closeSourceResourceBalloon','removeFeedInteraction','options','user-message','addFeedItemError','createConversation','feedItemRenderingStrategy','resetMessageInput','setWebSearch','stopAutoScroll','ai-suggestion-reply','addItem','interaction-header','startAutoScroll','isPremiumPlugin','requires','isReasoningEnabled','1xDbdTA','addFeedItemAIReply','disableModelSelector','setIsUploadInProgress','toggleSuggestionDisplayMode','length','context','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','559479VgYyqC','startInteraction','userMessage','setLoadingMessage','conversation-start','setConversationTitle','filter','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','_getInputPlaceholder','stopInteraction','enableModelSelector','from','isBusy','scrollFeedToSuggestion','8LhlcLl','ai-reply','populateSourceResourceBalloon','chatFeed','<p>','isLoading','quickActionData','chat','pluginName','capabilities','2152824tiDdoi','_animateConversationTitle','queueEmptyPromise','addContextItem','updateCapabilities','toggleLoadingSkeleton','</p>','view','setConversationContext','_getLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AIChatUI','removeContextItem','setIsMaximized','setModelList','plugins','destroy','85998SQKTtK','addFeedItemUserMessage','updateFeedItemAIReplySources','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','setModel','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateFeedItemAIReplySuggestionContent','983206bBtOfk','then','isOfficialPlugin','setContextItemLoading','addFeedItemAISuggestion','bind','isDone','22bGdDkx','_promiseQueue','setInputPlaceholder','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','get','abort','values','setSelectedModel','children','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','error-message','updateFeedItemAIReplyContent','updateResourceState','find','focusPromptInput','addFeedInteractionHeader','displayedPrompt','interactionId','areActionsDisabled','forEach','updateSuggestionPartState','AI_CHAT_HEADING','availableModels','locale','9474KcLVRZ','clearPendingContextUI','markItemAsDone','startsWith','chatHeader','set','addFeedItemStaticMessage','_titleAnimationInterval','AI_CHAT_WELCOME_MESSAGE','_view','resetConversationTitle','1201064olKXfJ','isWebSearchEnabled','removeItem','contextItems','clearConversationContextUI','scrollToSuggestion','showDiff','updateFeedInteractionHeader','delegate','setAddContextOptions','showResizeButton','AITabs','694240SobxMZ','updateWebSources','18haTpDA','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isPending','enqueue','markFeedItemAsDone','updateSuggestionItem','_interactionPromiseResolver','365LFrrQu','updateReplyItem','clear'];_0x5247=function(){return _0x224b67;};return _0x5247();}function _0x4483(_0x57081e,_0x56f531){const _0x524700=_0x5247();return _0x4483=function(_0x44839d,_0x18ac51){_0x44839d=_0x44839d-0x1de;let _0xa3a38c=_0x524700[_0x44839d];return _0xa3a38c;},_0x4483(_0x57081e,_0x56f531);}import{IconAIChat as _0x1c298f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x20a86c}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x56052f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45c9e4}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x498048{static get[_0x354f3d(0x269)](){return[_0x199c2b];}[_0x354f3d(0x237)];static get[_0x354f3d(0x1f1)](){const _0x44dffb=_0x354f3d;return _0x44dffb(0x1fe);}static get[_0x354f3d(0x210)](){return!0x0;}static get[_0x354f3d(0x268)](){return!0x0;}[_0x354f3d(0x260)]=_0x354f3d(0x257);[_0x354f3d(0x23f)]=!0x0;[_0x354f3d(0x216)];[_0x354f3d(0x24e)];[_0x354f3d(0x235)]=void 0x0;constructor(_0x1c2508){const _0x210de3=_0x354f3d;super(_0x1c2508);const _0x97cf1f=this[_0x210de3(0x271)][_0x210de3(0x202)][_0x210de3(0x21a)](_0x210de3(0x244));this[_0x210de3(0x233)](_0x210de3(0x1e7),!0x1),this[_0x210de3(0x216)]=new _0x56052f(),this[_0x210de3(0x237)]=new _0x1be429(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x97cf1f[_0x210de3(0x243)]),this[_0x210de3(0x237)][_0x210de3(0x241)](..._0x45c9e4)['to'](this),this[_0x210de3(0x237)]['on'](_0x210de3(0x26f),(_0x1798da,{showDiff:_0x3e4cf4})=>{const _0x549806=_0x210de3;this[_0x549806(0x23f)]=_0x3e4cf4;}),_0x97cf1f[_0x210de3(0x1fa)][_0x210de3(0x1e2)]({'id':_0x210de3(0x1f0),'buttonLabel':_0x4925cf(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x210de3(0x22b)),'buttonIcon':_0x1c298f,'order':0x0,'content':this[_0x210de3(0x237)]}),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x213)](_0x210de3(0x1ee))['to'](this,_0x210de3(0x1e7),_0x293ab5=>_0x293ab5),this[_0x210de3(0x237)][_0x210de3(0x1ec)][_0x210de3(0x213)](_0x210de3(0x24a))['to'](this,_0x210de3(0x1e7),_0x2dc8c4=>_0x2dc8c4),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x217)](this[_0x210de3(0x1e3)]());}[_0x354f3d(0x203)](){const _0x80a5e8=_0x354f3d;super[_0x80a5e8(0x203)](),this[_0x80a5e8(0x235)]&&clearInterval(this[_0x80a5e8(0x235)]);}[_0x354f3d(0x25f)](_0x508a3d){const _0x149da1=_0x354f3d;this[_0x149da1(0x237)][_0x149da1(0x1ec)][_0x149da1(0x251)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x1e5)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x201)](_0x508a3d[_0x149da1(0x22c)],!this[_0x149da1(0x271)][_0x149da1(0x254)][_0x149da1(0x21a)](_0x149da1(0x209))),this[_0x149da1(0x234)]({'id':_0x149da1(0x1de),'staticMessage':_0x4925cf(this[_0x149da1(0x271)][_0x149da1(0x22d)],_0x149da1(0x236))});}[_0x354f3d(0x234)]({id:_0x5c1604,staticMessage:_0x58bd27}){const _0x5cfea7=_0x354f3d;this[_0x5cfea7(0x237)][_0x5cfea7(0x1ec)][_0x5cfea7(0x265)](_0x5cfea7(0x1ea),{'id':_0x5c1604,'initialContent':_0x5cfea7(0x1ed)+_0x58bd27+_0x5cfea7(0x1f9)});}[_0x354f3d(0x205)](_0x300a8a){const _0x4da638=_0x354f3d,_0xeae27b=_0x300a8a[_0x4da638(0x1ef)]?.[_0x4da638(0x226)]||_0x300a8a[_0x4da638(0x275)];this[_0x4da638(0x237)][_0x4da638(0x1ec)][_0x4da638(0x265)](_0x4da638(0x25d),{'contextItems':Array[_0x4da638(0x1e6)](_0x300a8a[_0x4da638(0x23c)][_0x4da638(0x21c)]()),'initialContent':_0x4da638(0x1ed)+_0xeae27b+_0x4da638(0x1f9),'id':_0x300a8a['id']});}[_0x354f3d(0x25e)]({errorMessage:_0x5e90a3,id:_0x18ad70}){const _0x248067=_0x354f3d;this[_0x248067(0x237)][_0x248067(0x1ec)][_0x248067(0x265)](_0x248067(0x220),{'initialContent':_0x248067(0x1ed)+_0x5e90a3+_0x248067(0x1f9),'id':_0x18ad70});}[_0x354f3d(0x26c)](_0x2e7ecb){const _0x29a094=_0x354f3d;return this[_0x29a094(0x216)][_0x29a094(0x24b)](async()=>{const _0x5d141e=_0x29a094;this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x265)](_0x5d141e(0x1ea),{'id':_0x2e7ecb[_0x5d141e(0x227)]+':'+_0x2e7ecb['id']}),this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x276)]('');});}async[_0x354f3d(0x212)](_0xe25f5b){const _0x5f00a4=_0x354f3d;return this[_0x5f00a4(0x216)][_0x5f00a4(0x24b)](async()=>{const _0x22d30e=_0x5f00a4;this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x265)](_0x22d30e(0x264),{'id':_0xe25f5b[_0x22d30e(0x227)]+':'+_0xe25f5b['id'],'areActionsDisabled':_0xe25f5b[_0x22d30e(0x228)],'showDiff':this[_0x22d30e(0x23f)]}),this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x276)]('');});}[_0x354f3d(0x225)](_0x4f66a5){const _0x492f07=_0x354f3d;this[_0x492f07(0x237)][_0x492f07(0x1ec)][_0x492f07(0x265)](_0x492f07(0x266),{'id':_0x4f66a5['id'],'capabilities':_0x4f66a5[_0x492f07(0x1f2)]});}[_0x354f3d(0x240)](_0x23b430){const _0x49f31c=_0x354f3d,_0x2e3734=this[_0x49f31c(0x237)][_0x49f31c(0x1ec)][_0x49f31c(0x21e)][_0x49f31c(0x223)](_0x2f6f92=>_0x2f6f92[_0x49f31c(0x25c)]['id']==_0x23b430['id']&&_0x2f6f92 instanceof _0x20a86c);_0x2e3734&&_0x2e3734[_0x49f31c(0x233)](_0x49f31c(0x255),_0x23b430[_0x49f31c(0x255)]);}async[_0x354f3d(0x221)](_0x118d22){const _0x372f90=_0x354f3d,_0x5840b1=_0x118d22[_0x372f90(0x253)]||this[_0x372f90(0x260)];return this[_0x372f90(0x216)][_0x372f90(0x24b)](async _0x38f9e8=>{const _0x203dd3=_0x372f90;await this[_0x203dd3(0x237)][_0x203dd3(0x1ec)][_0x203dd3(0x250)]({..._0x118d22,'abortSignal':_0x38f9e8,'renderingStrategy':_0x5840b1}),_0x118d22[_0x203dd3(0x214)]&&this[_0x203dd3(0x24c)](_0x118d22['id']);});}[_0x354f3d(0x206)](_0x5323f3,_0x3ddf53){const _0x2e6035=_0x354f3d;this[_0x2e6035(0x237)][_0x2e6035(0x1ec)][_0x2e6035(0x246)](_0x5323f3,_0x3ddf53);}async[_0x354f3d(0x20d)](_0x1ac652){const _0x2bfac0=_0x354f3d,_0x11f126=_0x1ac652[_0x2bfac0(0x253)]||this[_0x2bfac0(0x260)];return this[_0x2bfac0(0x216)][_0x2bfac0(0x24b)](async _0x5f1664=>{const _0x5195be=_0x2bfac0;await this[_0x5195be(0x237)][_0x5195be(0x1ec)][_0x5195be(0x24d)]({..._0x1ac652,'abortSignal':_0x5f1664,'renderingStrategy':_0x11f126}),_0x1ac652[_0x5195be(0x214)]&&this[_0x5195be(0x24c)](_0x1ac652['id']);});}[_0x354f3d(0x20b)](_0x3712cf){const _0x1dca52=_0x354f3d;this[_0x1dca52(0x237)][_0x1dca52(0x1ec)][_0x1dca52(0x22a)](_0x3712cf);}[_0x354f3d(0x24c)](_0x454d92){const _0x55abff=_0x354f3d;this[_0x55abff(0x237)][_0x55abff(0x1ec)][_0x55abff(0x230)](_0x454d92);}[_0x354f3d(0x25b)](_0x750a37){const _0xb630d9=_0x354f3d;this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x207)]()[_0xb630d9(0x1e0)](_0x3f9d8d=>_0x3f9d8d[_0xb630d9(0x231)](_0x750a37))[_0xb630d9(0x229)](_0xdeeb71=>this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x23b)](_0xdeeb71));}[_0x354f3d(0x274)](_0x3a3c5e){const _0x5ecdd5=_0x354f3d;this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x276)](this[_0x5ecdd5(0x1fc)](_0x3a3c5e)),this[_0x5ecdd5(0x237)][_0x5ecdd5(0x259)][_0x5ecdd5(0x26d)](!this[_0x5ecdd5(0x271)][_0x5ecdd5(0x254)][_0x5ecdd5(0x21a)](_0x5ecdd5(0x209))),this[_0x5ecdd5(0x1e7)]=!0x0,this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x267)]();}[_0x354f3d(0x1e4)](_0x506bf7){const _0x2d232a=_0x354f3d;this[_0x2d232a(0x216)][_0x2d232a(0x21b)](),this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x207)]()[_0x2d232a(0x1e0)](_0x1e7ac5=>_0x1e7ac5[_0x2d232a(0x231)](_0x506bf7['id']))[_0x2d232a(0x229)](_0x4ca413=>this[_0x2d232a(0x24c)](_0x4ca413)),this[_0x2d232a(0x1e7)]=!0x1,this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x263)]();}async[_0x354f3d(0x256)](){const _0x3b99f5=_0x354f3d;return this[_0x3b99f5(0x216)][_0x3b99f5(0x1f5)][_0x3b99f5(0x20f)](()=>{const _0xe4f30e=_0x3b99f5;this[_0xe4f30e(0x1e7)]=!0x1,this[_0xe4f30e(0x237)][_0xe4f30e(0x1ec)][_0xe4f30e(0x263)]();});}[_0x354f3d(0x1f6)](_0x4bc433,_0x368154){const _0x5ab768=_0x354f3d;this[_0x5ab768(0x237)][_0x5ab768(0x259)][_0x5ab768(0x1f6)](_0x4bc433,_0x368154);}[_0x354f3d(0x1ff)](_0x15f668){const _0x23b4ae=_0x354f3d;this[_0x23b4ae(0x237)][_0x23b4ae(0x259)][_0x23b4ae(0x1ff)](_0x15f668);}[_0x354f3d(0x211)](_0x3bad63,_0x20c648){const _0x29e2b7=_0x354f3d;this[_0x29e2b7(0x237)][_0x29e2b7(0x259)][_0x29e2b7(0x211)](_0x3bad63,_0x20c648);}[_0x354f3d(0x26e)](_0x47e42a){const _0x3389a2=_0x354f3d;this[_0x3389a2(0x237)][_0x3389a2(0x259)][_0x3389a2(0x26e)](_0x47e42a);}[_0x354f3d(0x1fb)](_0x59cd22){const _0x573bfd=_0x354f3d;this[_0x573bfd(0x237)][_0x573bfd(0x259)][_0x573bfd(0x1fb)](_0x59cd22);}[_0x354f3d(0x22f)](){const _0x5eb9c9=_0x354f3d;this[_0x5eb9c9(0x237)][_0x5eb9c9(0x259)][_0x5eb9c9(0x22f)]();}[_0x354f3d(0x23d)](){const _0x1d0845=_0x354f3d;this[_0x1d0845(0x237)][_0x1d0845(0x259)][_0x1d0845(0x23d)]();}[_0x354f3d(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2){const _0x559249=_0x354f3d;this[_0x559249(0x237)][_0x559249(0x259)][_0x559249(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2);}[_0x354f3d(0x261)](){const _0xd2e4b3=_0x354f3d;this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x261)](),this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x217)](this[_0xd2e4b3(0x1e3)]());}[_0x354f3d(0x242)](_0x4a6cab){const _0x2d0d52=_0x354f3d;this[_0x2d0d52(0x237)][_0x2d0d52(0x259)][_0x2d0d52(0x242)](_0x4a6cab);}[_0x354f3d(0x1f7)](_0x48c538){const _0x3f66d8=_0x354f3d;this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x262)](_0x48c538[_0x3f66d8(0x23a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x218)](_0x48c538[_0x3f66d8(0x26a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x217)](this[_0x3f66d8(0x1e3)](_0x48c538));}[_0x354f3d(0x21d)](_0x3e3bd6,_0x3ed7c6){const _0x270a85=_0x354f3d;this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x20a)](_0x3e3bd6),_0x3ed7c6&&this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x26d)](!0x1);}[_0x354f3d(0x248)](_0x32e1ad){const _0x33af2c=_0x354f3d;this[_0x33af2c(0x260)]=_0x32e1ad;}[_0x354f3d(0x1f8)](_0x312a0a){const _0x4fa186=_0x354f3d;this[_0x4fa186(0x237)][_0x4fa186(0x1ec)][_0x4fa186(0x1f8)](_0x312a0a);}[_0x354f3d(0x238)](){const _0x1af8fb=_0x354f3d;this[_0x1af8fb(0x1df)](_0x4925cf(this[_0x1af8fb(0x271)][_0x1af8fb(0x22d)],_0x1af8fb(0x22b)));}[_0x354f3d(0x1df)](_0x4bd44a,_0x2f6caa=!0x1){const _0x7108f=_0x354f3d;if(_0x2f6caa&&!_0x11dfcf()&&_0x4bd44a[_0x7108f(0x270)])return this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]='',void this[_0x7108f(0x1f4)](_0x4bd44a);this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]=_0x4bd44a;}[_0x354f3d(0x1f4)](_0xc5df92){const _0x4331a1=_0x354f3d;let _0x33c7f3=0x0;clearInterval(this[_0x4331a1(0x235)]),this[_0x4331a1(0x235)]=setInterval(()=>{const _0x1fc572=_0x4331a1;this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]=this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]+_0xc5df92[_0x33c7f3],_0x33c7f3++,_0x33c7f3===_0xc5df92[_0x1fc572(0x270)]&&clearInterval(this[_0x1fc572(0x235)]);},0x1e);}[_0x354f3d(0x200)](_0x15d3ba){const _0x55c522=_0x354f3d;this[_0x55c522(0x237)][_0x55c522(0x232)][_0x55c522(0x252)]=_0x15d3ba;}[_0x354f3d(0x1fc)](_0x40f79f){const _0x1866cf=_0x354f3d,_0x4e602a=_0x40f79f[_0x1866cf(0x1f2)];return _0x4e602a[_0x1866cf(0x23a)]&&_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x21f)):_0x4e602a[_0x1866cf(0x23a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x208)):_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x20c)):_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x272));}[_0x354f3d(0x1e3)](_0x55f853){const _0xb5729e=_0x354f3d;return _0x55f853?_0x55f853[_0xb5729e(0x23a)]&&_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1fd)):_0x55f853[_0xb5729e(0x23a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1e1)):_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x249)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219));}[_0x354f3d(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805){const _0x22eb70=_0x354f3d;this[_0x22eb70(0x237)][_0x22eb70(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805);}[_0x354f3d(0x25a)](_0xb0cc13){const _0x4e356a=_0x354f3d;this[_0x4e356a(0x237)][_0x4e356a(0x25a)](_0xb0cc13);}[_0x354f3d(0x224)](){const _0x56468b=_0x354f3d;this[_0x56468b(0x237)][_0x56468b(0x259)][_0x56468b(0x224)]();}[_0x354f3d(0x1e8)](_0xa8967d,_0x4b5ccf){const _0x370f14=_0x354f3d;this[_0x370f14(0x237)][_0x370f14(0x1ec)][_0x370f14(0x23e)](_0xa8967d,_0x4b5ccf);}}
23
+ const _0x46a9fd=_0x15d6;(function(_0x3d6240,_0x7a6480){const _0x1849ed=_0x15d6,_0x2771e0=_0x3d6240();while(!![]){try{const _0x15d3b9=-parseInt(_0x1849ed(0x22d))/0x1*(-parseInt(_0x1849ed(0x1c9))/0x2)+-parseInt(_0x1849ed(0x1ec))/0x3*(-parseInt(_0x1849ed(0x1f3))/0x4)+-parseInt(_0x1849ed(0x1db))/0x5+parseInt(_0x1849ed(0x1df))/0x6*(-parseInt(_0x1849ed(0x1bb))/0x7)+parseInt(_0x1849ed(0x1a4))/0x8*(-parseInt(_0x1849ed(0x1d8))/0x9)+-parseInt(_0x1849ed(0x20e))/0xa+parseInt(_0x1849ed(0x222))/0xb*(parseInt(_0x1849ed(0x1fb))/0xc);if(_0x15d3b9===_0x7a6480)break;else _0x2771e0['push'](_0x2771e0['shift']());}catch(_0x4912c7){_0x2771e0['push'](_0x2771e0['shift']());}}}(_0xf0be,0xa96af));function _0x15d6(_0x492358,_0x2e171f){const _0xf0bea6=_0xf0be();return _0x15d6=function(_0x15d686,_0x4cbb0c){_0x15d686=_0x15d686-0x1a0;let _0x3758ee=_0xf0bea6[_0x15d686];return _0x3758ee;},_0x15d6(_0x492358,_0x2e171f);}function _0xf0be(){const _0x5b586d=['22YuRIYD','addFeedItemStaticMessage','then','conversation-start','updateWebSources','ai-reply','chatFeed','scrollFeedToSuggestion','stopInteraction','addItem','find','11gtKNTK','pluginName','destroy','filter','setModel','plugins','availableModels','resetConversationTitle','clearConversationContextUI','isWebSearchEnabled','setWebSearch','setContextItemLoading','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','areActionsDisabled','chat','</p>','12016OUaouQ','clear','addContextItem','AITabs','error-message','quickActionData','interactionId','view','setConversationContext','context','isPending','setFeedItemRenderingStrategy','startInteraction','setIsUploadInProgress','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','markItemAsDone','set','resetMessageInput','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','showResizeButton','setIsMaximized','9171113DotEXP','feedItemRenderingStrategy','requires','updateCapabilities','streaming','length','addFeedInteractionHeader','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setLoadingMessage','clearPendingContextUI','_titleAnimationInterval','_promiseQueue','setModelList','37094YZJoLb','populateSourceResourceBalloon','chatHeader','options','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','enqueue','disableModelSelector','removeContextItem','isReasoningEnabled','createConversation','closeSourceResourceBalloon','values','startAutoScroll','AI_CHAT_WELCOME_MESSAGE','2763MhpTQi','setSelectedModel','label','4089000vbCdUg','removeItem','isOfficialPlugin','_getLoadingMessage','6fpWPGS','delegate','get','updateFeedItemAIReplySources','setReasoning','_view','renderingStrategy','isMaximized','stopAutoScroll','capabilities','displayedPrompt','updateFeedItemAIReplyContent','abort','81ujRzmK','updateSuggestionPartState','interaction-header','ai-suggestion-reply','getItemIds','updateFeedItemAIReplySuggestionContent','AIChatUI','34588CjIVLV','startsWith','locale','addFeedItemAIReply','isDone','updateFeedInteractionHeader','scrollToSuggestion','user-message','18226236iNQJzD','isBusy','removeFeedInteraction','userMessage','showDiff','config','setAddContextOptions','updateReplyItem','focusPromptInput','addTab','isVisible','_interactionPromiseResolver','isPremiumPlugin','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','isLoading','contextItems','addFeedItemError','1921840wVmIkO','ai.chat.models.modelSelectorAlwaysVisible','toggleSuggestionDisplayMode','<p>','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','children','forEach','chatControls','_getInputPlaceholder','updateFeedItemAIReplySuggestionPartState','setConversationTitle','AI_CHAT_HEADING','updateResourceState','enableModelSelector','addFeedItemUserMessage','bind','toggleLoadingSkeleton','setInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addFeedItemAISuggestion'];_0xf0be=function(){return _0x5b586d;};return _0xf0be();}import{ContextPlugin as _0x42b8c6}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3e22b1}from'ckeditor5/src/utils.js';import{AIChatView as _0x450cb7}from'./ui/aichatview.js';import{AITabs as _0x613713}from'../aitabs/aitabs.js';import{getTranslation as _0x4a67c1}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x26d59d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2a1590}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x120cd5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xaa22b2}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x42b8c6{static get[_0x46a9fd(0x1bd)](){return[_0x613713];}[_0x46a9fd(0x1e4)];static get[_0x46a9fd(0x22e)](){const _0x426586=_0x46a9fd;return _0x426586(0x1f2);}static get[_0x46a9fd(0x1dd)](){return!0x0;}static get[_0x46a9fd(0x207)](){return!0x0;}[_0x46a9fd(0x1bc)]=_0x46a9fd(0x1bf);[_0x46a9fd(0x1ff)]=!0x0;[_0x46a9fd(0x1c7)];[_0x46a9fd(0x206)];[_0x46a9fd(0x1c6)]=void 0x0;constructor(_0xe54253){const _0x43baaf=_0x46a9fd;super(_0xe54253);const _0x12a893=this[_0x43baaf(0x1ad)][_0x43baaf(0x232)][_0x43baaf(0x1e1)](_0x43baaf(0x1a7));this[_0x43baaf(0x1b5)](_0x43baaf(0x1fc),!0x1),this[_0x43baaf(0x1c7)]=new _0x120cd5(),this[_0x43baaf(0x1e4)]=new _0x450cb7(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x12a893[_0x43baaf(0x1b9)]),this[_0x43baaf(0x1e4)][_0x43baaf(0x1e0)](..._0xaa22b2)['to'](this),this[_0x43baaf(0x1e4)]['on'](_0x43baaf(0x210),(_0x36b118,{showDiff:_0x3fd8ea})=>{const _0x4b3a58=_0x43baaf;this[_0x4b3a58(0x1ff)]=_0x3fd8ea;}),_0x12a893[_0x43baaf(0x1ab)][_0x43baaf(0x204)]({'id':_0x43baaf(0x1a2),'buttonLabel':_0x4a67c1(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x43baaf(0x219)),'buttonIcon':_0x26d59d,'order':0x0,'content':this[_0x43baaf(0x1e4)]}),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21d)](_0x43baaf(0x20b))['to'](this,_0x43baaf(0x1fc),_0x165088=>_0x165088),this[_0x43baaf(0x1e4)][_0x43baaf(0x228)][_0x43baaf(0x21d)](_0x43baaf(0x1ae))['to'](this,_0x43baaf(0x1fc),_0x38cc5=>_0x38cc5),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21f)](this[_0x43baaf(0x216)]());}[_0x46a9fd(0x22f)](){const _0x16b290=_0x46a9fd;super[_0x16b290(0x22f)](),this[_0x16b290(0x1c6)]&&clearInterval(this[_0x16b290(0x1c6)]);}[_0x46a9fd(0x1d3)](_0x2ed6ee){const _0x58afc2=_0x46a9fd;this[_0x58afc2(0x1e4)][_0x58afc2(0x228)][_0x58afc2(0x1a5)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x21b)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x1c8)](_0x2ed6ee[_0x58afc2(0x233)],!this[_0x58afc2(0x1ad)][_0x58afc2(0x200)][_0x58afc2(0x1e1)](_0x58afc2(0x20f))),this[_0x58afc2(0x223)]({'id':_0x58afc2(0x225),'staticMessage':_0x4a67c1(this[_0x58afc2(0x1ad)][_0x58afc2(0x1f5)],_0x58afc2(0x1d7))});}[_0x46a9fd(0x223)]({id:_0x1e0761,staticMessage:_0x1f7f08}){const _0x4982a9=_0x46a9fd;this[_0x4982a9(0x1e4)][_0x4982a9(0x228)][_0x4982a9(0x22b)](_0x4982a9(0x227),{'id':_0x1e0761,'initialContent':_0x4982a9(0x211)+_0x1f7f08+_0x4982a9(0x1a3)});}[_0x46a9fd(0x21c)](_0x5f0116){const _0x479ac=_0x46a9fd,_0x5b6fee=_0x5f0116[_0x479ac(0x1a9)]?.[_0x479ac(0x1e9)]||_0x5f0116[_0x479ac(0x1fe)];this[_0x479ac(0x1e4)][_0x479ac(0x228)][_0x479ac(0x22b)](_0x479ac(0x1fa),{'contextItems':Array[_0x479ac(0x208)](_0x5f0116[_0x479ac(0x20c)][_0x479ac(0x1d5)]()),'initialContent':_0x479ac(0x211)+_0x5b6fee+_0x479ac(0x1a3),'id':_0x5f0116['id']});}[_0x46a9fd(0x20d)]({errorMessage:_0x3707d6,id:_0x27edac}){const _0x2ed1c4=_0x46a9fd;this[_0x2ed1c4(0x1e4)][_0x2ed1c4(0x228)][_0x2ed1c4(0x22b)](_0x2ed1c4(0x1a8),{'initialContent':_0x2ed1c4(0x211)+_0x3707d6+_0x2ed1c4(0x1a3),'id':_0x27edac});}[_0x46a9fd(0x1f6)](_0x1391c0){const _0x5033a5=_0x46a9fd;return this[_0x5033a5(0x1c7)][_0x5033a5(0x1cf)](async()=>{const _0x1fa668=_0x5033a5;this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x22b)](_0x1fa668(0x227),{'id':_0x1391c0[_0x1fa668(0x1aa)]+':'+_0x1391c0['id']}),this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x1c4)]('');});}async[_0x46a9fd(0x221)](_0x1a6fb0){const _0x363d6b=_0x46a9fd;return this[_0x363d6b(0x1c7)][_0x363d6b(0x1cf)](async()=>{const _0x1fc9d7=_0x363d6b;this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x22b)](_0x1fc9d7(0x1ef),{'id':_0x1a6fb0[_0x1fc9d7(0x1aa)]+':'+_0x1a6fb0['id'],'areActionsDisabled':_0x1a6fb0[_0x1fc9d7(0x1a1)],'showDiff':this[_0x1fc9d7(0x1ff)]}),this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x1c4)]('');});}[_0x46a9fd(0x1c1)](_0x767c31){const _0x503eb3=_0x46a9fd;this[_0x503eb3(0x1e4)][_0x503eb3(0x228)][_0x503eb3(0x22b)](_0x503eb3(0x1ee),{'id':_0x767c31['id'],'capabilities':_0x767c31[_0x503eb3(0x1e8)]});}[_0x46a9fd(0x1f8)](_0x2e84b7){const _0x529847=_0x46a9fd,_0x46a2f6=this[_0x529847(0x1e4)][_0x529847(0x228)][_0x529847(0x213)][_0x529847(0x22c)](_0xe0debe=>_0xe0debe[_0x529847(0x1cc)]['id']==_0x2e84b7['id']&&_0xe0debe instanceof _0x2a1590);_0x46a2f6&&_0x46a2f6[_0x529847(0x1b5)](_0x529847(0x205),_0x2e84b7[_0x529847(0x205)]);}async[_0x46a9fd(0x1ea)](_0x2a781b){const _0x107553=_0x46a9fd,_0xc687c4=_0x2a781b[_0x107553(0x1e5)]||this[_0x107553(0x1bc)];return this[_0x107553(0x1c7)][_0x107553(0x1cf)](async _0x24afb5=>{const _0x16dbae=_0x107553;await this[_0x16dbae(0x1e4)][_0x16dbae(0x228)][_0x16dbae(0x202)]({..._0x2a781b,'abortSignal':_0x24afb5,'renderingStrategy':_0xc687c4}),_0x2a781b[_0x16dbae(0x1f7)]&&this[_0x16dbae(0x1cd)](_0x2a781b['id']);});}[_0x46a9fd(0x1e2)](_0x5dd1c6,_0x4f4cd3){const _0x251906=_0x46a9fd;this[_0x251906(0x1e4)][_0x251906(0x228)][_0x251906(0x226)](_0x5dd1c6,_0x4f4cd3);}async[_0x46a9fd(0x1f1)](_0x179825){const _0x531b78=_0x46a9fd,_0x1e3b12=_0x179825[_0x531b78(0x1e5)]||this[_0x531b78(0x1bc)];return this[_0x531b78(0x1c7)][_0x531b78(0x1cf)](async _0x3cb2b4=>{const _0x37b461=_0x531b78;await this[_0x37b461(0x1e4)][_0x37b461(0x228)][_0x37b461(0x1b7)]({..._0x179825,'abortSignal':_0x3cb2b4,'renderingStrategy':_0x1e3b12}),_0x179825[_0x37b461(0x1f7)]&&this[_0x37b461(0x1cd)](_0x179825['id']);});}[_0x46a9fd(0x217)](_0x35b363){const _0x5c2305=_0x46a9fd;this[_0x5c2305(0x1e4)][_0x5c2305(0x228)][_0x5c2305(0x1ed)](_0x35b363);}[_0x46a9fd(0x1cd)](_0x1eba53){const _0x2a27bc=_0x46a9fd;this[_0x2a27bc(0x1e4)][_0x2a27bc(0x228)][_0x2a27bc(0x1b4)](_0x1eba53);}[_0x46a9fd(0x1fd)](_0x99fd5a){const _0x5bbf4c=_0x46a9fd;this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1f0)]()[_0x5bbf4c(0x230)](_0x232bbc=>_0x232bbc[_0x5bbf4c(0x1f4)](_0x99fd5a))[_0x5bbf4c(0x214)](_0x3f05b2=>this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1dc)](_0x3f05b2));}[_0x46a9fd(0x1b0)](_0x56b3f7){const _0xe1b5be=_0x46a9fd;this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1c4)](this[_0xe1b5be(0x1de)](_0x56b3f7)),this[_0xe1b5be(0x1e4)][_0xe1b5be(0x215)][_0xe1b5be(0x1d0)](!this[_0xe1b5be(0x1ad)][_0xe1b5be(0x200)][_0xe1b5be(0x1e1)](_0xe1b5be(0x20f))),this[_0xe1b5be(0x1fc)]=!0x0,this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1d6)]();}[_0x46a9fd(0x22a)](_0x4c70aa){const _0x2256e5=_0x46a9fd;this[_0x2256e5(0x1c7)][_0x2256e5(0x1eb)](),this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1f0)]()[_0x2256e5(0x230)](_0x409921=>_0x409921[_0x2256e5(0x1f4)](_0x4c70aa['id']))[_0x2256e5(0x214)](_0x3e1344=>this[_0x2256e5(0x1cd)](_0x3e1344)),this[_0x2256e5(0x1fc)]=!0x1,this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1e7)]();}async[_0x46a9fd(0x1c2)](){const _0x4747e1=_0x46a9fd;return this[_0x4747e1(0x1c7)][_0x4747e1(0x20a)][_0x4747e1(0x224)](()=>{const _0xa37268=_0x4747e1;this[_0xa37268(0x1fc)]=!0x1,this[_0xa37268(0x1e4)][_0xa37268(0x228)][_0xa37268(0x1e7)]();});}[_0x46a9fd(0x1a6)](_0x155634,_0x5867d){const _0x5ec973=_0x46a9fd;this[_0x5ec973(0x1e4)][_0x5ec973(0x215)][_0x5ec973(0x1a6)](_0x155634,_0x5867d);}[_0x46a9fd(0x1d1)](_0x501df5){const _0x9afb44=_0x46a9fd;this[_0x9afb44(0x1e4)][_0x9afb44(0x215)][_0x9afb44(0x1d1)](_0x501df5);}[_0x46a9fd(0x238)](_0x548252,_0x4c786a){const _0x49fe58=_0x46a9fd;this[_0x49fe58(0x1e4)][_0x49fe58(0x215)][_0x49fe58(0x238)](_0x548252,_0x4c786a);}[_0x46a9fd(0x1b1)](_0x487bdc){const _0x3682d2=_0x46a9fd;this[_0x3682d2(0x1e4)][_0x3682d2(0x215)][_0x3682d2(0x1b1)](_0x487bdc);}[_0x46a9fd(0x1ac)](_0x403869){const _0x5c9248=_0x46a9fd;this[_0x5c9248(0x1e4)][_0x5c9248(0x215)][_0x5c9248(0x1ac)](_0x403869);}[_0x46a9fd(0x1c5)](){const _0x94dc9=_0x46a9fd;this[_0x94dc9(0x1e4)][_0x94dc9(0x215)][_0x94dc9(0x1c5)]();}[_0x46a9fd(0x235)](){const _0x369aab=_0x46a9fd;this[_0x369aab(0x1e4)][_0x369aab(0x215)][_0x369aab(0x235)]();}[_0x46a9fd(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7){const _0x347d0a=_0x46a9fd;this[_0x347d0a(0x1e4)][_0x347d0a(0x215)][_0x347d0a(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7);}[_0x46a9fd(0x1b6)](){const _0x3897a1=_0x46a9fd;this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x1b6)](),this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x21f)](this[_0x3897a1(0x216)]());}[_0x46a9fd(0x201)](_0xaa3ef8){const _0x5c2973=_0x46a9fd;this[_0x5c2973(0x1e4)][_0x5c2973(0x215)][_0x5c2973(0x201)](_0xaa3ef8);}[_0x46a9fd(0x1be)](_0x5f1c61){const _0x4481a5=_0x46a9fd;this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x237)](_0x5f1c61[_0x4481a5(0x236)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x1e3)](_0x5f1c61[_0x4481a5(0x1d2)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x21f)](this[_0x4481a5(0x216)](_0x5f1c61));}[_0x46a9fd(0x1d9)](_0x2cab87,_0x45cadf){const _0xae28e2=_0x46a9fd;this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x231)](_0x2cab87),_0x45cadf&&this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x1d0)](!0x1);}[_0x46a9fd(0x1af)](_0x5d5570){const _0x355b39=_0x46a9fd;this[_0x355b39(0x1bc)]=_0x5d5570;}[_0x46a9fd(0x21e)](_0x269e7c){const _0x48caf0=_0x46a9fd;this[_0x48caf0(0x1e4)][_0x48caf0(0x228)][_0x48caf0(0x21e)](_0x269e7c);}[_0x46a9fd(0x234)](){const _0x4f0d9a=_0x46a9fd;this[_0x4f0d9a(0x218)](_0x4a67c1(this[_0x4f0d9a(0x1ad)][_0x4f0d9a(0x1f5)],_0x4f0d9a(0x219)));}[_0x46a9fd(0x218)](_0x53e4ff,_0x23008e=!0x1){const _0x14152e=_0x46a9fd;if(_0x23008e&&!_0x3e22b1()&&_0x53e4ff[_0x14152e(0x1c0)])return this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]='',void this[_0x14152e(0x1b3)](_0x53e4ff);this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]=_0x53e4ff;}[_0x46a9fd(0x1b3)](_0x39e646){const _0x5ed375=_0x46a9fd;let _0x242cd1=0x0;clearInterval(this[_0x5ed375(0x1c6)]),this[_0x5ed375(0x1c6)]=setInterval(()=>{const _0x1dd4da=_0x5ed375;this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]=this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]+_0x39e646[_0x242cd1],_0x242cd1++,_0x242cd1===_0x39e646[_0x1dd4da(0x1c0)]&&clearInterval(this[_0x1dd4da(0x1c6)]);},0x1e);}[_0x46a9fd(0x1ba)](_0x2cb070){const _0x1b3959=_0x46a9fd;this[_0x1b3959(0x1e4)][_0x1b3959(0x1cb)][_0x1b3959(0x1e6)]=_0x2cb070;}[_0x46a9fd(0x1de)](_0x440a90){const _0x275ae4=_0x46a9fd,_0x1bd825=_0x440a90[_0x275ae4(0x1e8)];return _0x1bd825[_0x275ae4(0x236)]&&_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x212)):_0x1bd825[_0x275ae4(0x236)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x220)):_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1c3)):_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1a0));}[_0x46a9fd(0x216)](_0x2b6346){const _0x8e538e=_0x46a9fd;return _0x2b6346?_0x2b6346[_0x8e538e(0x236)]&&_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b8)):_0x2b6346[_0x8e538e(0x236)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1ce)):_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b2)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209));}[_0x46a9fd(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a){const _0x42c536=_0x46a9fd;this[_0x42c536(0x1e4)][_0x42c536(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a);}[_0x46a9fd(0x1d4)](_0x1252fa){const _0x3c6d9b=_0x46a9fd;this[_0x3c6d9b(0x1e4)][_0x3c6d9b(0x1d4)](_0x1252fa);}[_0x46a9fd(0x203)](){const _0x31bf93=_0x46a9fd;this[_0x31bf93(0x1e4)][_0x31bf93(0x215)][_0x31bf93(0x203)]();}[_0x46a9fd(0x229)](_0x2d4ca0,_0xf9c9ef){const _0x864b6c=_0x46a9fd;this[_0x864b6c(0x1e4)][_0x864b6c(0x228)][_0x864b6c(0x1f9)](_0x2d4ca0,_0xf9c9ef);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x469023=_0x34f5;(function(_0x571a8e,_0x2ee9e0){const _0x1b0b8c=_0x34f5,_0x2073fd=_0x571a8e();while(!![]){try{const _0x356368=parseInt(_0x1b0b8c(0x1ec))/0x1*(parseInt(_0x1b0b8c(0x19e))/0x2)+-parseInt(_0x1b0b8c(0x1b8))/0x3*(-parseInt(_0x1b0b8c(0x1d5))/0x4)+-parseInt(_0x1b0b8c(0x1ce))/0x5*(parseInt(_0x1b0b8c(0x1fc))/0x6)+parseInt(_0x1b0b8c(0x19f))/0x7*(parseInt(_0x1b0b8c(0x1c2))/0x8)+parseInt(_0x1b0b8c(0x1f6))/0x9*(-parseInt(_0x1b0b8c(0x1e6))/0xa)+parseInt(_0x1b0b8c(0x1e3))/0xb+parseInt(_0x1b0b8c(0x1e9))/0xc*(-parseInt(_0x1b0b8c(0x20d))/0xd);if(_0x356368===_0x2ee9e0)break;else _0x2073fd['push'](_0x2073fd['shift']());}catch(_0x1a644c){_0x2073fd['push'](_0x2073fd['shift']());}}}(_0x35a2,0xdea2c));function _0x34f5(_0x326e31,_0x5c0917){const _0x35a2ff=_0x35a2();return _0x34f5=function(_0x34f514,_0x5cc85c){_0x34f514=_0x34f514-0x19a;let _0xabf530=_0x35a2ff[_0x34f514];return _0xabf530;},_0x34f5(_0x326e31,_0x5c0917);}import{CKEditorError as _0x1e076f,ObservableMixin as _0x56cc9e,uid as _0xb1581}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x32514e,AIContextTextResourceType as _0x43f84c}from'../../aicore/model/aicontext.js';import{escape as _0x55ceb8}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x469023(0x1b5),_0x469023(0x1c0),_0x469023(0x228),_0x469023(0x200),_0x469023(0x1cf),_0x469023(0x1a4),_0x469023(0x1af),_0x469023(0x1f7),_0x469023(0x1d7)];function _0x35a2(){const _0x463c29=['startsWith','abort','_toggleAddCurrentDocumentOptionVisibility','delete','removeSelectionFromContext','_ownerId','document','text/markdown','18BNzWZQ','resourceStateChanged','uploadFile','isSelectionInContext','_ongoingUploads','resourceId','2036130pvPKyC','SELECTION','MARKDOWN','isCurrentDocumentInContext','contextSent','ai-request-aborted','type','ai-chat-source-not-found','ai-chat-context-unsupported-type','isHidden','_isResourceInContext','uploadUrl','files-','removeFromContext','isInContext','_connector','files','234LzLraz','fetchDocument','length','push','ai-chat-source-resources-load-failed','end','uploadDocument','_finishUploadOperation','selection','size','_config','name','getSentContextItems','ai-chat-resource-no-data','getResources','object\x20with\x20content\x20and\x20type\x20properties','_setAddContextOptionsDefaultState','getDocument','string','urls','ai-chat-document-upload-failed','values','map','enabled','set','_mapContextItemToRequestData','ai-chat-resource-load-failed','contextItemLoadingEnded','ai-chat-context-invalid-data','has','content','data','object','file-','2116VQNqwy','9552949lGbVVE','init','hidden','_addToConversationContextItem','_getCustomSourcesInitialState','addContextOptionsChanged','resources','abortController','from','getData','updateCurrentDocument','message','_pendingContextItems','ai-chat-file-upload-failed','FILE','Current\x20document','sourceResourcesLoaded','isCurrentDocumentInConversation','_finishContextItemLoading','stack','uiId','fire','contextItemAdded','HTML','url-','9JNToxg','URL','getId','attributes','_updateResourceInContextState','getPendingContextItems','get','DOCUMENT','contextItemRemoved','current-document','8GdxdmE','_startUploadOperation','addToConversationContext','addResourceToContext','filter','_convertTextResourceToFile','forEach','version','ai-chat-url-upload-failed','addCurrentDocumentToContext','mapContextItemsToRequestData','clearPendingContextItems','15AtGKJA','error','sources','_addContextItem','_createContextItemFromContent','start','all','1924564vzeisq','addFilesToContext','uploadProgressChanged','populateFromMessage','File','isReadOnly','text/html','loadSourceResources','find','_conversationContextItems','addSelectionToContext','TEXT','text/plain','label','17819857vgViRt','_removeContextItem','url','4225990wDYYyD','_addContextOptionsState','sessionId','1796712yRanCI','_ongoingUploadOperations','_findSourceIdsByResourceId','985oteovF','addUrlToContext'];_0x35a2=function(){return _0x463c29;};return _0x35a2();}export class AIChatContext extends _0x56cc9e(){[_0x469023(0x20b)];[_0x469023(0x217)];[_0x469023(0x1f3)];constructor({connector:_0x5c360b,config:_0x3f0755,ownerId:_0x3a82be}){const _0x5d3755=_0x469023;super(),this[_0x5d3755(0x20b)]=_0x5c360b,this[_0x5d3755(0x217)]=_0x3f0755,this[_0x5d3755(0x1f3)]=_0x3a82be;}[_0x469023(0x1a0)](){const _0xc60bc1=_0x469023;this[_0xc60bc1(0x1ab)]=new Map(),this[_0xc60bc1(0x1de)]=new Map(),this[_0xc60bc1(0x1fa)]=new Map(),this[_0xc60bc1(0x1ea)]=new Map(),this[_0xc60bc1(0x21d)]();}[_0x469023(0x1bd)](){const _0x114f8b=_0x469023;return this[_0x114f8b(0x1ab)];}async[_0x469023(0x1d8)](_0x2dd9a9){const _0x229fca=_0x469023,_0x28ed28=await this[_0x229fca(0x1d2)](_0x2dd9a9);return this[_0x229fca(0x1a2)](_0x28ed28),_0x229fca(0x1c1)===_0x28ed28[_0x229fca(0x1b3)]&&this[_0x229fca(0x1f0)](),_0x28ed28;}async[_0x469023(0x1d2)](_0x2e6c42){const _0x3b8a1b=_0x469023;if(_0x2e6c42[_0x3b8a1b(0x202)]===_0x32514e[_0x3b8a1b(0x1bf)]){const _0xdabb69=await this[_0x3b8a1b(0x20b)][_0x3b8a1b(0x20e)](this[_0x3b8a1b(0x1f3)],_0x2e6c42['id'])[_0x3b8a1b(0x21e)]();return{'id':_0x3b8a1b(0x1c1),'uiId':_0x3b8a1b(0x1c1),'label':_0x3b8a1b(0x1ae),'type':_0x2e6c42[_0x3b8a1b(0x202)],'content':_0xdabb69[_0x3b8a1b(0x19a)],'hidden':this[_0x3b8a1b(0x1de)][_0x3b8a1b(0x22a)](_0x3b8a1b(0x1c1)),'version':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1c9)],'sessionId':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e8)]};}return{'id':_0x2e6c42['id'],'uiId':_0x2e6c42['id'],'label':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e2)]||_0x2e6c42[_0x3b8a1b(0x218)]||_0x2e6c42[_0x3b8a1b(0x1e5)]||_0x2e6c42['id'],'type':_0x2e6c42[_0x3b8a1b(0x202)],..._0x2e6c42?.[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]?{'resourceId':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]}:{}};}[_0x469023(0x219)](){const _0x45376e=_0x469023;return new Map(this[_0x45376e(0x1de)]);}[_0x469023(0x209)](_0x1720fb){const _0x238a4b=_0x469023,_0x4410eb=this[_0x238a4b(0x1ab)][_0x238a4b(0x1be)](_0x1720fb);_0x4410eb?.[_0x238a4b(0x1da)]||this[_0x238a4b(0x1e4)](_0x1720fb);}[_0x469023(0x1cd)](){const _0x54d30c=_0x469023;if(0x0===this[_0x54d30c(0x1ab)][_0x54d30c(0x216)])return;for(const _0x2f2168 of this[_0x54d30c(0x1ab)][_0x54d30c(0x222)]())this[_0x54d30c(0x1e4)](_0x2f2168[_0x54d30c(0x1b3)]);const _0xf1ddf3=this[_0x54d30c(0x1de)][_0x54d30c(0x1be)](_0x54d30c(0x1c1))||this[_0x54d30c(0x1ab)][_0x54d30c(0x1be)](_0x54d30c(0x1c1));_0xf1ddf3&&this[_0x54d30c(0x1d1)]({..._0xf1ddf3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x469023(0x1c4)](_0x51d825){const _0x5c1bd5=_0x469023;for(const _0x197692 of _0x51d825[_0x5c1bd5(0x222)]())this[_0x5c1bd5(0x1a2)](_0x197692);this[_0x5c1bd5(0x1cd)](),this[_0x5c1bd5(0x1b4)](_0x5c1bd5(0x200),{'contextItems':Array[_0x5c1bd5(0x1a7)](this[_0x5c1bd5(0x219)]()[_0x5c1bd5(0x222)]())});}[_0x469023(0x1ff)](){const _0x1c5077=_0x469023;return this[_0x1c5077(0x1ab)][_0x1c5077(0x22a)](_0x1c5077(0x1c1));}[_0x469023(0x1f9)](){const _0x2ae04d=_0x469023;return this[_0x2ae04d(0x1ab)][_0x2ae04d(0x22a)](_0x2ae04d(0x215));}[_0x469023(0x1b0)](){const _0x4461c5=_0x469023;return this[_0x4461c5(0x1de)][_0x4461c5(0x22a)](_0x4461c5(0x1c1));}static[_0x469023(0x1cc)](_0x41da61){const _0x118c77=_0x469023;return Array[_0x118c77(0x1a7)](_0x41da61[_0x118c77(0x222)]())[_0x118c77(0x223)](_0x3250dd=>this[_0x118c77(0x226)](_0x3250dd))[_0x118c77(0x1c6)](_0x17cce1=>null!==_0x17cce1);}async[_0x469023(0x1d6)](_0x31fed7,_0x334652,_0x3c2998=_0x32514e[_0x469023(0x1ad)]){const _0x555c3c=_0x469023,_0x543bfb=_0x555c3c(0x208)+_0xb1581();this[_0x555c3c(0x1c3)](_0x543bfb);try{await Promise[_0x555c3c(0x1d4)](_0x31fed7[_0x555c3c(0x223)](async _0x3c54f0=>{const _0x1f2bc0=_0x555c3c,_0x1b9d93=_0x1f2bc0(0x19d)+_0xb1581(),_0x472b51=_0x55ceb8(_0x3c54f0[_0x1f2bc0(0x218)]);try{this[_0x1f2bc0(0x1d1)]({'type':_0x3c2998,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x0);const _0x25b6e9=this[_0x1f2bc0(0x20b)][_0x1f2bc0(0x1f8)](this[_0x1f2bc0(0x1f3)],_0x3c54f0,_0x334652);this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x225)](_0x1b9d93,_0x25b6e9[_0x1f2bc0(0x1a6)]);const {id:_0xc14edf}=await _0x25b6e9[_0x1f2bc0(0x1ba)]();this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93),this[_0x1f2bc0(0x1b1)]({'type':_0x3c2998,'id':_0xc14edf,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x1);}catch(_0x47f891){this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93);if(!_0x47f891[_0x1f2bc0(0x1aa)][_0x1f2bc0(0x1ee)](_0x1f2bc0(0x201))){const _0x453e00=new _0x1e076f(_0x1f2bc0(0x1ac),null,{'fileName':_0x472b51});_0x453e00[_0x1f2bc0(0x1b2)]=_0x47f891[_0x1f2bc0(0x1b2)],this[_0x1f2bc0(0x1b4)](_0x1f2bc0(0x1cf),{'error':_0x453e00,'fileName':_0x472b51});}this[_0x1f2bc0(0x1e4)](_0x1b9d93);}}));}finally{this[_0x555c3c(0x214)](_0x543bfb);}}[_0x469023(0x1cb)](_0x25da59){const _0x5b49e2=_0x469023;if(this[_0x5b49e2(0x1ff)]())return;const _0x5c29cd={'type':_0x32514e[_0x5b49e2(0x1bf)],'uiId':_0x5b49e2(0x1c1),'label':_0x25da59,'isReadOnly':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1)),'hidden':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1))};this[_0x5b49e2(0x1d1)](_0x5c29cd);}async[_0x469023(0x1a9)](_0x5bff4e,_0xe26cf6,_0x36ca97,_0x5d2d35){const _0x527ea7=_0x469023,_0x141c0a=this[_0x527ea7(0x1ab)][_0x527ea7(0x1be)](_0x527ea7(0x1c1));if(_0x141c0a&&_0x5bff4e){_0x141c0a[_0x527ea7(0x215)]=_0x5d2d35?_0x5d2d35[_0x527ea7(0x223)](_0x4287fd=>({'start':_0x4287fd[_0x527ea7(0x1d3)],'end':_0x4287fd[_0x527ea7(0x212)]})):[];try{if(_0x141c0a[_0x527ea7(0x1c9)]===_0xe26cf6)return;const {id:_0x20171e}=await this[_0x527ea7(0x20b)][_0x527ea7(0x213)](this[_0x527ea7(0x1f3)],_0x5bff4e,{'version':_0xe26cf6,'sessionId':_0x36ca97})[_0x527ea7(0x1ba)]();_0x141c0a['id']=_0x20171e,_0x141c0a[_0x527ea7(0x19a)]=_0x5bff4e,_0x141c0a[_0x527ea7(0x1c9)]=_0xe26cf6,_0x141c0a[_0x527ea7(0x1e8)]=_0x36ca97;}catch(_0x284212){const _0x552c1f=new _0x1e076f(_0x527ea7(0x221),null);_0x552c1f[_0x527ea7(0x1b2)]=_0x284212[_0x527ea7(0x1b2)],this[_0x527ea7(0x1b4)](_0x527ea7(0x1cf),{'error':_0x552c1f});}}}[_0x469023(0x1df)](_0x373ed7){const _0x2eb679=_0x469023;this[_0x2eb679(0x1d1)]({'type':_0x32514e[_0x2eb679(0x1fd)],'label':_0x373ed7,'uiId':_0x2eb679(0x215),'content':_0x373ed7});}[_0x469023(0x1f2)](){const _0x991a5e=_0x469023;this[_0x991a5e(0x1e4)](_0x991a5e(0x215));}async[_0x469023(0x1ed)](_0x18256f,_0x3f4342){const _0xfdc97c=_0x469023,_0x15e6d1=_0xfdc97c(0x1b7)+_0xb1581();this[_0xfdc97c(0x1c3)](_0x15e6d1);const _0x525219=_0xfdc97c(0x1b7)+_0xb1581();try{this[_0xfdc97c(0x1d1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x0);const _0x58fb9b=this[_0xfdc97c(0x20b)][_0xfdc97c(0x207)](this[_0xfdc97c(0x1f3)],_0x18256f,_0x3f4342);this[_0xfdc97c(0x1fa)][_0xfdc97c(0x225)](_0x525219,_0x58fb9b[_0xfdc97c(0x1a6)]);const {id:_0x36d1ce}=await _0x58fb9b[_0xfdc97c(0x1ba)]();this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),this[_0xfdc97c(0x1b1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'id':_0x36d1ce,'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x1);}catch(_0x47ebd8){this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),(_0x47ebd8[_0xfdc97c(0x1aa)][_0xfdc97c(0x1ee)](_0xfdc97c(0x201))||this[_0xfdc97c(0x1b4)](_0xfdc97c(0x1cf),{'error':new _0x1e076f(_0xfdc97c(0x1ca),this,{'url':_0x18256f,'originalError':_0x47ebd8}),'url':_0x18256f}),this[_0xfdc97c(0x1e4)](_0x525219));}finally{this[_0xfdc97c(0x214)](_0x15e6d1);}}async[_0x469023(0x1dc)](_0x36b020,_0x95802f,_0x4e33aa){const _0x59f9d3=_0x469023,_0x64dd85=this[_0x59f9d3(0x1e7)][_0x59f9d3(0x1d0)][_0x59f9d3(0x1dd)](_0x4c9d13=>_0x4c9d13['id']===_0x36b020);if(!_0x64dd85)return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x203),this,{'sourceId':_0x36b020}),'sourceId':_0x36b020}),[];try{const _0x3b0008=(await _0x64dd85[_0x59f9d3(0x21b)](_0x95802f))[_0x59f9d3(0x223)](_0x895d10=>{const _0x24355d=_0x59f9d3,_0x417020=this[_0x24355d(0x206)](_0x895d10['id']);return{..._0x895d10,'isInContext':_0x417020};});return _0x64dd85[_0x59f9d3(0x1a5)]=_0x3b0008,this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1af),{'sourceId':_0x36b020,'source':_0x64dd85,'resources':_0x3b0008,'uid':_0x4e33aa}),_0x3b0008;}catch(_0x4b22f0){return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x211),this,{'sourceId':_0x36b020,'originalError':_0x4b22f0}),'sourceId':_0x36b020,'sourceLabel':_0x64dd85[_0x59f9d3(0x1e2)]}),[];}}async[_0x469023(0x1c5)](_0x1cd041,_0xa4fd92){const _0x535983=_0x469023;if(this[_0x535983(0x206)](_0xa4fd92['id']))return;let _0x422634=_0xa4fd92[_0x535983(0x19b)];if(!_0x422634&&_0x1cd041[_0x535983(0x1a8)])try{_0x422634=await _0x1cd041[_0x535983(0x1a8)](_0xa4fd92['id']);}catch(_0x37de28){return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x227),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'originalError':_0x37de28}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}if(_0x422634)switch(_0xa4fd92[_0x535983(0x202)]){case _0x32514e[_0x535983(0x1b9)]:if(_0x535983(0x21f)!=typeof _0x422634)return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21f),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1ed)](_0x422634,{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1ad)]:if(!(_0x422634 instanceof File))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x1d9),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1e0)]:if(_0x535983(0x19c)!=typeof _0x422634||!(_0x535983(0x19a)in _0x422634)||!(_0x535983(0x202)in _0x422634))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21c),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});_0x422634=AIChatContext[_0x535983(0x1c7)](_0x422634,_0xa4fd92[_0x535983(0x1e2)]),await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']},_0x32514e[_0x535983(0x1e0)]);break;default:this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x204),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'resourceType':_0xa4fd92[_0x535983(0x202)]}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}else this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x21a),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}static[_0x469023(0x1c7)](_0x37facd,_0x3fe7bc){const _0x5c86ca=_0x469023;switch(_0x37facd[_0x5c86ca(0x202)]){case _0x43f84c[_0x5c86ca(0x1fe)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1f5)});case _0x43f84c[_0x5c86ca(0x1b6)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1db)});default:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1e1)});}}static[_0x469023(0x226)](_0x3ef6ae){const _0x3d0987=_0x469023;switch(_0x3ef6ae[_0x3d0987(0x202)]){case _0x32514e[_0x3d0987(0x1ad)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1b9)]:return{'type':_0x32514e[_0x3d0987(0x1b9)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1bf)]:return{'type':_0x32514e[_0x3d0987(0x1bf)],'id':_0x3ef6ae['id'],..._0x3ef6ae[_0x3d0987(0x215)]?.[_0x3d0987(0x20f)]&&{'selection':_0x3ef6ae[_0x3d0987(0x215)]}};case _0x32514e[_0x3d0987(0x1e0)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};default:return null;}}[_0x469023(0x1d1)](_0x78844d,_0xb70329=!0x1){const _0x2df2c8=_0x469023;if(this[_0x2df2c8(0x1ab)][_0x2df2c8(0x225)](_0x78844d[_0x2df2c8(0x1b3)],_0x78844d),_0x78844d[_0x2df2c8(0x1a1)]||this[_0x2df2c8(0x1b4)](_0x2df2c8(0x1b5),{'contextItem':_0x78844d,'isLoading':_0xb70329}),_0x2df2c8(0x1c1)===_0x78844d[_0x2df2c8(0x1b3)]&&this[_0x2df2c8(0x1f0)](),_0x78844d[_0x2df2c8(0x1fb)]){const _0x2dd9c4=this[_0x2df2c8(0x1eb)](_0x78844d[_0x2df2c8(0x1fb)]);_0x2dd9c4&&_0x2dd9c4[_0x2df2c8(0x1c8)](_0x2f70c4=>{const _0x19abfd=_0x2df2c8;this[_0x19abfd(0x1bc)](_0x2f70c4,_0x78844d[_0x19abfd(0x1fb)],!0x0);});}}[_0x469023(0x1e4)](_0x20ab23){const _0x57f6f7=_0x469023,_0x59925f=this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1be)](_0x20ab23),_0x2ae497=this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1be)](_0x20ab23);if(_0x2ae497&&(_0x2ae497[_0x57f6f7(0x1ef)](),this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1f1)](_0x20ab23)),_0x59925f?.[_0x57f6f7(0x1fb)]){const _0x787461=this[_0x57f6f7(0x1eb)](_0x59925f[_0x57f6f7(0x1fb)]);_0x787461&&_0x787461[_0x57f6f7(0x1c8)](_0x406244=>{const _0x37cfa6=_0x57f6f7;this[_0x37cfa6(0x1bc)](_0x406244,_0x59925f[_0x37cfa6(0x1fb)],!0x1);});}this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1f1)](_0x20ab23),this[_0x57f6f7(0x1b4)](_0x57f6f7(0x1c0),{'uiId':_0x20ab23,'type':_0x59925f?.[_0x57f6f7(0x202)]}),_0x57f6f7(0x1c1)===_0x20ab23&&this[_0x57f6f7(0x1f0)]();}[_0x469023(0x1b1)](_0x9af7e2,_0x350e69){const _0x1f6b4c=_0x469023;if(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x22a)](_0x9af7e2[_0x1f6b4c(0x1b3)])&&(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x225)](_0x9af7e2[_0x1f6b4c(0x1b3)],_0x9af7e2),this[_0x1f6b4c(0x1b4)](_0x1f6b4c(0x228),{'contextItem':_0x9af7e2,'isLoading':_0x350e69}),_0x9af7e2[_0x1f6b4c(0x1fb)])){const _0x3625b3=this[_0x1f6b4c(0x1eb)](_0x9af7e2[_0x1f6b4c(0x1fb)]);_0x3625b3&&_0x3625b3[_0x1f6b4c(0x1c8)](_0x177c66=>{const _0x4d2dfa=_0x1f6b4c;this[_0x4d2dfa(0x1bc)](_0x177c66,_0x9af7e2[_0x4d2dfa(0x1fb)],!0x0);});}}[_0x469023(0x1a2)](_0x17b338){const _0x583a18=_0x469023;this[_0x583a18(0x1de)][_0x583a18(0x225)](_0x17b338[_0x583a18(0x1b3)],_0x17b338);}[_0x469023(0x21d)](){const _0x1edcfb=_0x469023;this[_0x1edcfb(0x1e7)]={'document':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x1f4)]?.[_0x1edcfb(0x224)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x220)]?.[_0x1edcfb(0x224)]},'files':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x20c)]?.[_0x1edcfb(0x224)]},'sources':this[_0x1edcfb(0x1a3)]()},this[_0x1edcfb(0x1b4)](_0x1edcfb(0x1a4),{'options':this[_0x1edcfb(0x1e7)]});}[_0x469023(0x1a3)](){const _0x1b5af6=_0x469023;return this[_0x1b5af6(0x217)]?.[_0x1b5af6(0x1d0)]?.[_0x1b5af6(0x223)](_0x33ecf2=>({..._0x33ecf2,'resources':[]}))??[];}[_0x469023(0x1f0)](){const _0x34914c=_0x469023,_0x555b4d=this[_0x34914c(0x1ff)]()||this[_0x34914c(0x1b0)]();this[_0x34914c(0x1e7)][_0x34914c(0x1f4)][_0x34914c(0x205)]=_0x555b4d,this[_0x34914c(0x1b4)](_0x34914c(0x1a4),{'options':this[_0x34914c(0x1e7)]});}[_0x469023(0x206)](_0x312afb){const _0xbb079e=_0x469023;for(const _0x429411 of this[_0xbb079e(0x1ab)][_0xbb079e(0x222)]())if(_0x429411[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;for(const _0x2fbec0 of this[_0xbb079e(0x1de)][_0xbb079e(0x222)]())if(_0x2fbec0[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;return!0x1;}[_0x469023(0x1eb)](_0x6d3b9){const _0x477dc6=_0x469023,_0x19b255=[];for(const _0x5842bd of this[_0x477dc6(0x1e7)][_0x477dc6(0x1d0)]){_0x5842bd[_0x477dc6(0x1a5)][_0x477dc6(0x1dd)](_0x14b457=>_0x14b457['id']===_0x6d3b9)&&_0x19b255[_0x477dc6(0x210)](_0x5842bd['id']);}return 0x0===_0x19b255[_0x477dc6(0x20f)]?null:_0x19b255;}[_0x469023(0x1bc)](_0x70abd0,_0x411088,_0xe1631c){const _0x505d07=_0x469023,_0x1795d5=this[_0x505d07(0x1e7)][_0x505d07(0x1d0)][_0x505d07(0x1dd)](_0xe7b6ec=>_0xe7b6ec['id']===_0x70abd0);if(!_0x1795d5)return;const _0x3cb068=_0x1795d5[_0x505d07(0x1a5)][_0x505d07(0x1dd)](_0xa08e1=>_0xa08e1['id']===_0x411088);_0x3cb068&&(_0x3cb068[_0x505d07(0x20a)]=_0xe1631c,this[_0x505d07(0x1b4)](_0x505d07(0x1f7),{'sourceId':_0x70abd0,'resourceId':_0x411088,'isInContext':_0xe1631c}));}[_0x469023(0x1c3)](_0x3f065a){const _0x350f94=_0x469023;this[_0x350f94(0x1ea)][_0x350f94(0x225)](_0x3f065a,!0x0),this[_0x350f94(0x1ea)][_0x350f94(0x216)]&&this[_0x350f94(0x1b4)](_0x350f94(0x1d7),{'isUploadInProgress':!0x0});}[_0x469023(0x214)](_0x5383d2){const _0x443625=_0x469023;this[_0x443625(0x1ea)][_0x443625(0x1f1)](_0x5383d2),0x0===this[_0x443625(0x1ea)][_0x443625(0x216)]&&this[_0x443625(0x1b4)](_0x443625(0x1d7),{'isUploadInProgress':!0x1});}}
23
+ const _0x837382=_0x2842;function _0x5071(){const _0x1ef07e=['urls','sessionId','isSelectionInContext','uploadUrl','_addToConversationContextItem','updateCurrentDocument','document','isHidden','3087BFdeZt','version','ai-chat-url-upload-failed','contextItemRemoved','isInContext','end','uploadProgressChanged','_createContextItemFromContent','isCurrentDocumentInConversation','_pendingContextItems','hidden','_findSourceIdsByResourceId','_ongoingUploads','abort','FILE','6306696xVIKui','message','getResources','has','_ongoingUploadOperations','label','selection','_mapContextItemToRequestData','10GJoQqM','HTML','SELECTION','mapContextItemsToRequestData','ai-chat-source-not-found','getSentContextItems','enabled','_convertTextResourceToFile','object','filter','string','text/html','ai-chat-resource-no-data','clearPendingContextItems','uiId','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-invalid-data','start','_finishUploadOperation','text/plain','TEXT','_finishContextItemLoading','url-','text/markdown','stack','_updateResourceInContextState','DOCUMENT','all','getData','get','current-document','error','_conversationContextItems','_addContextOptionsState','addContextOptionsChanged','name','find','_isResourceInContext','3336242ZftnYE','ai-chat-resource-load-failed','fetchDocument','from','size','getPendingContextItems','isCurrentDocumentInContext','addSelectionToContext','loadSourceResources','contextItemAdded','142763ClqMSN','File','removeSelectionFromContext','contextSent','ai-chat-source-resources-load-failed','_removeContextItem','addCurrentDocumentToContext','ai-chat-context-unsupported-type','sourceResourcesLoaded','addResourceToContext','forEach','_addContextItem','_getCustomSourcesInitialState','addFilesToContext','uploadFile','attributes','contextItemLoadingEnded','ai-request-aborted','sources','abortController','files','_ownerId','removeFromContext','_config','map','URL','files-','_setAddContextOptionsDefaultState','1367412SXafrR','getId','ai-chat-document-upload-failed','addUrlToContext','populateFromMessage','push','uploadDocument','length','set','getDocument','type','resourceStateChanged','values','Current\x20document','ai-chat-file-upload-failed','url','1377hXaBcI','resources','content','data','fire','resourceId','file-','isReadOnly','_toggleAddCurrentDocumentOptionVisibility','startsWith','_connector','MARKDOWN','1574FZlpEl','400888TCSmuh','addToConversationContext','_startUploadOperation','delete','init','66140TDKsZa'];_0x5071=function(){return _0x1ef07e;};return _0x5071();}function _0x2842(_0x90a55c,_0x5b7bcd){const _0x507118=_0x5071();return _0x2842=function(_0x2842d7,_0x1c5418){_0x2842d7=_0x2842d7-0x138;let _0x134e70=_0x507118[_0x2842d7];return _0x134e70;},_0x2842(_0x90a55c,_0x5b7bcd);}(function(_0x3874df,_0x1a47da){const _0xf452c4=_0x2842,_0x15129d=_0x3874df();while(!![]){try{const _0x2e8a45=-parseInt(_0xf452c4(0x144))/0x1+parseInt(_0xf452c4(0x17c))/0x2*(parseInt(_0xf452c4(0x170))/0x3)+-parseInt(_0xf452c4(0x17d))/0x4+parseInt(_0xf452c4(0x1a2))/0x5*(-parseInt(_0xf452c4(0x160))/0x6)+-parseInt(_0xf452c4(0x13a))/0x7+-parseInt(_0xf452c4(0x19a))/0x8+parseInt(_0xf452c4(0x18b))/0x9*(parseInt(_0xf452c4(0x182))/0xa);if(_0x2e8a45===_0x1a47da)break;else _0x15129d['push'](_0x15129d['shift']());}catch(_0x369284){_0x15129d['push'](_0x15129d['shift']());}}}(_0x5071,0xa29f7));import{CKEditorError as _0x34c7d6,ObservableMixin as _0x1db243,uid as _0x438100}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a1f7c,AIContextTextResourceType as _0x4db6e2}from'../../aicore/model/aicontext.js';import{escape as _0x15c0b2}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x837382(0x143),_0x837382(0x18e),_0x837382(0x154),_0x837382(0x147),_0x837382(0x1c1),_0x837382(0x1c4),_0x837382(0x14c),_0x837382(0x16b),_0x837382(0x191)];export class AIChatContext extends _0x1db243(){[_0x837382(0x17a)];[_0x837382(0x15b)];[_0x837382(0x159)];constructor({connector:_0x20f0ac,config:_0x997067,ownerId:_0x376027}){const _0x17651a=_0x837382;super(),this[_0x17651a(0x17a)]=_0x20f0ac,this[_0x17651a(0x15b)]=_0x997067,this[_0x17651a(0x159)]=_0x376027;}[_0x837382(0x181)](){const _0x42c4db=_0x837382;this[_0x42c4db(0x194)]=new Map(),this[_0x42c4db(0x1c2)]=new Map(),this[_0x42c4db(0x197)]=new Map(),this[_0x42c4db(0x19e)]=new Map(),this[_0x42c4db(0x15f)]();}[_0x837382(0x13f)](){const _0x3366ab=_0x837382;return this[_0x3366ab(0x194)];}async[_0x837382(0x164)](_0x1f90ba){const _0x45f7a7=_0x837382,_0x4bece2=await this[_0x45f7a7(0x192)](_0x1f90ba);return this[_0x45f7a7(0x187)](_0x4bece2),_0x45f7a7(0x1c0)===_0x4bece2[_0x45f7a7(0x1b0)]&&this[_0x45f7a7(0x178)](),_0x4bece2;}async[_0x837382(0x192)](_0x597e50){const _0x2ce053=_0x837382;if(_0x597e50[_0x2ce053(0x16a)]===_0x4a1f7c[_0x2ce053(0x1bc)]){const _0x347802=await this[_0x2ce053(0x17a)][_0x2ce053(0x13c)](this[_0x2ce053(0x159)],_0x597e50['id'])[_0x2ce053(0x169)]();return{'id':_0x2ce053(0x1c0),'uiId':_0x2ce053(0x1c0),'label':_0x2ce053(0x16d),'type':_0x597e50[_0x2ce053(0x16a)],'content':_0x347802[_0x2ce053(0x172)],'hidden':this[_0x2ce053(0x1c2)][_0x2ce053(0x19d)](_0x2ce053(0x1c0)),'version':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x18c)],'sessionId':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x184)]};}return{'id':_0x597e50['id'],'uiId':_0x597e50['id'],'label':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x19f)]||_0x597e50[_0x2ce053(0x1c5)]||_0x597e50[_0x2ce053(0x16f)]||_0x597e50['id'],'type':_0x597e50[_0x2ce053(0x16a)],..._0x597e50?.[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]?{'resourceId':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]}:{}};}[_0x837382(0x1a7)](){const _0x1cbaaf=_0x837382;return new Map(this[_0x1cbaaf(0x1c2)]);}[_0x837382(0x15a)](_0x43787f){const _0x23537d=_0x837382,_0x5ee5f0=this[_0x23537d(0x194)][_0x23537d(0x1bf)](_0x43787f);_0x5ee5f0?.[_0x23537d(0x177)]||this[_0x23537d(0x149)](_0x43787f);}[_0x837382(0x1af)](){const _0x124963=_0x837382;if(0x0===this[_0x124963(0x194)][_0x124963(0x13e)])return;for(const _0x2de7f6 of this[_0x124963(0x194)][_0x124963(0x16c)]())this[_0x124963(0x149)](_0x2de7f6[_0x124963(0x1b0)]);const _0x21261e=this[_0x124963(0x1c2)][_0x124963(0x1bf)](_0x124963(0x1c0))||this[_0x124963(0x194)][_0x124963(0x1bf)](_0x124963(0x1c0));_0x21261e&&this[_0x124963(0x14f)]({..._0x21261e,'isReadOnly':!0x0,'hidden':!0x0});}[_0x837382(0x17e)](_0x9506ea){const _0x4539f8=_0x837382;for(const _0x5865db of _0x9506ea[_0x4539f8(0x16c)]())this[_0x4539f8(0x187)](_0x5865db);this[_0x4539f8(0x1af)](),this[_0x4539f8(0x174)](_0x4539f8(0x147),{'contextItems':Array[_0x4539f8(0x13d)](this[_0x4539f8(0x1a7)]()[_0x4539f8(0x16c)]())});}[_0x837382(0x140)](){const _0x17242b=_0x837382;return this[_0x17242b(0x194)][_0x17242b(0x19d)](_0x17242b(0x1c0));}[_0x837382(0x185)](){const _0x1fcb5c=_0x837382;return this[_0x1fcb5c(0x194)][_0x1fcb5c(0x19d)](_0x1fcb5c(0x1a0));}[_0x837382(0x193)](){const _0x26a577=_0x837382;return this[_0x26a577(0x1c2)][_0x26a577(0x19d)](_0x26a577(0x1c0));}static[_0x837382(0x1a5)](_0x509a7c){const _0x495374=_0x837382;return Array[_0x495374(0x13d)](_0x509a7c[_0x495374(0x16c)]())[_0x495374(0x15c)](_0x116a7f=>this[_0x495374(0x1a1)](_0x116a7f))[_0x495374(0x1ab)](_0x72d3e2=>null!==_0x72d3e2);}async[_0x837382(0x151)](_0x1ea7a0,_0x254fde,_0x1c7104=_0x4a1f7c[_0x837382(0x199)]){const _0xedbe60=_0x837382,_0x459fe8=_0xedbe60(0x15e)+_0x438100();this[_0xedbe60(0x17f)](_0x459fe8);try{await Promise[_0xedbe60(0x1bd)](_0x1ea7a0[_0xedbe60(0x15c)](async _0xc0de22=>{const _0x487875=_0xedbe60,_0x21c8f9=_0x487875(0x176)+_0x438100(),_0x17c133=_0x15c0b2(_0xc0de22[_0x487875(0x1c5)]);try{this[_0x487875(0x14f)]({'type':_0x1c7104,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x0);const _0x166b13=this[_0x487875(0x17a)][_0x487875(0x152)](this[_0x487875(0x159)],_0xc0de22,_0x254fde);this[_0x487875(0x197)][_0x487875(0x168)](_0x21c8f9,_0x166b13[_0x487875(0x157)]);const {id:_0x584376}=await _0x166b13[_0x487875(0x161)]();this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9),this[_0x487875(0x1b7)]({'type':_0x1c7104,'id':_0x584376,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x1);}catch(_0x441e19){this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9);if(!_0x441e19[_0x487875(0x19b)][_0x487875(0x179)](_0x487875(0x155))){const _0x3ee197=new _0x34c7d6(_0x487875(0x16e),null,{'fileName':_0x17c133});_0x3ee197[_0x487875(0x1ba)]=_0x441e19[_0x487875(0x1ba)],this[_0x487875(0x174)](_0x487875(0x1c1),{'error':_0x3ee197,'fileName':_0x17c133});}this[_0x487875(0x149)](_0x21c8f9);}}));}finally{this[_0xedbe60(0x1b4)](_0x459fe8);}}[_0x837382(0x14a)](_0xbabcf6){const _0x1de81c=_0x837382;if(this[_0x1de81c(0x140)]())return;const _0x43f168={'type':_0x4a1f7c[_0x1de81c(0x1bc)],'uiId':_0x1de81c(0x1c0),'label':_0xbabcf6,'isReadOnly':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0)),'hidden':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0))};this[_0x1de81c(0x14f)](_0x43f168);}async[_0x837382(0x188)](_0xe062f2,_0x22741b,_0x45768d,_0x495649){const _0x5536db=_0x837382,_0x1db5cf=this[_0x5536db(0x194)][_0x5536db(0x1bf)](_0x5536db(0x1c0));if(_0x1db5cf&&_0xe062f2){_0x1db5cf[_0x5536db(0x1a0)]=_0x495649?_0x495649[_0x5536db(0x15c)](_0x44847c=>({'start':_0x44847c[_0x5536db(0x1b3)],'end':_0x44847c[_0x5536db(0x190)]})):[];try{if(_0x1db5cf[_0x5536db(0x18c)]===_0x22741b)return;const {id:_0x319c1f}=await this[_0x5536db(0x17a)][_0x5536db(0x166)](this[_0x5536db(0x159)],_0xe062f2,{'version':_0x22741b,'sessionId':_0x45768d})[_0x5536db(0x161)]();_0x1db5cf['id']=_0x319c1f,_0x1db5cf[_0x5536db(0x172)]=_0xe062f2,_0x1db5cf[_0x5536db(0x18c)]=_0x22741b,_0x1db5cf[_0x5536db(0x184)]=_0x45768d;}catch(_0x20fbc7){const _0x55bfaf=new _0x34c7d6(_0x5536db(0x162),null);_0x55bfaf[_0x5536db(0x1ba)]=_0x20fbc7[_0x5536db(0x1ba)],this[_0x5536db(0x174)](_0x5536db(0x1c1),{'error':_0x55bfaf});}}}[_0x837382(0x141)](_0x1211ee){const _0x81bb24=_0x837382;this[_0x81bb24(0x14f)]({'type':_0x4a1f7c[_0x81bb24(0x1a4)],'label':_0x1211ee,'uiId':_0x81bb24(0x1a0),'content':_0x1211ee});}[_0x837382(0x146)](){const _0x351b2b=_0x837382;this[_0x351b2b(0x149)](_0x351b2b(0x1a0));}async[_0x837382(0x163)](_0x1a97e8,_0x2a1810){const _0x444eb6=_0x837382,_0x287573=_0x444eb6(0x1b8)+_0x438100();this[_0x444eb6(0x17f)](_0x287573);const _0x5ed6c2=_0x444eb6(0x1b8)+_0x438100();try{this[_0x444eb6(0x14f)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x0);const _0x1a3bba=this[_0x444eb6(0x17a)][_0x444eb6(0x186)](this[_0x444eb6(0x159)],_0x1a97e8,_0x2a1810);this[_0x444eb6(0x197)][_0x444eb6(0x168)](_0x5ed6c2,_0x1a3bba[_0x444eb6(0x157)]);const {id:_0x42eac5}=await _0x1a3bba[_0x444eb6(0x161)]();this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),this[_0x444eb6(0x1b7)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'id':_0x42eac5,'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x1);}catch(_0x7b9016){this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),(_0x7b9016[_0x444eb6(0x19b)][_0x444eb6(0x179)](_0x444eb6(0x155))||this[_0x444eb6(0x174)](_0x444eb6(0x1c1),{'error':new _0x34c7d6(_0x444eb6(0x18d),this,{'url':_0x1a97e8,'originalError':_0x7b9016}),'url':_0x1a97e8}),this[_0x444eb6(0x149)](_0x5ed6c2));}finally{this[_0x444eb6(0x1b4)](_0x287573);}}async[_0x837382(0x142)](_0x555d64,_0x3d15e2,_0x3f7f2e){const _0x5b2d6d=_0x837382,_0x406b13=this[_0x5b2d6d(0x1c3)][_0x5b2d6d(0x156)][_0x5b2d6d(0x138)](_0x3dedcc=>_0x3dedcc['id']===_0x555d64);if(!_0x406b13)return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x1a6),this,{'sourceId':_0x555d64}),'sourceId':_0x555d64}),[];try{const _0x10ab37=(await _0x406b13[_0x5b2d6d(0x19c)](_0x3d15e2))[_0x5b2d6d(0x15c)](_0x1bc2f1=>{const _0x1adbdd=_0x5b2d6d,_0x7d7546=this[_0x1adbdd(0x139)](_0x1bc2f1['id']);return{..._0x1bc2f1,'isInContext':_0x7d7546};});return _0x406b13[_0x5b2d6d(0x171)]=_0x10ab37,this[_0x5b2d6d(0x174)](_0x5b2d6d(0x14c),{'sourceId':_0x555d64,'source':_0x406b13,'resources':_0x10ab37,'uid':_0x3f7f2e}),_0x10ab37;}catch(_0x285e41){return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x148),this,{'sourceId':_0x555d64,'originalError':_0x285e41}),'sourceId':_0x555d64,'sourceLabel':_0x406b13[_0x5b2d6d(0x19f)]}),[];}}async[_0x837382(0x14d)](_0x1e34ca,_0x2a30b6){const _0x509bae=_0x837382;if(this[_0x509bae(0x139)](_0x2a30b6['id']))return;let _0x53d449=_0x2a30b6[_0x509bae(0x173)];if(!_0x53d449&&_0x1e34ca[_0x509bae(0x1be)])try{_0x53d449=await _0x1e34ca[_0x509bae(0x1be)](_0x2a30b6['id']);}catch(_0x49e7ef){return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x13b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'originalError':_0x49e7ef}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}if(_0x53d449)switch(_0x2a30b6[_0x509bae(0x16a)]){case _0x4a1f7c[_0x509bae(0x15d)]:if(_0x509bae(0x1ac)!=typeof _0x53d449)return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1ac),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x163)](_0x53d449,{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x199)]:if(!(_0x53d449 instanceof File))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x145),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x1b6)]:if(_0x509bae(0x1aa)!=typeof _0x53d449||!(_0x509bae(0x172)in _0x53d449)||!(_0x509bae(0x16a)in _0x53d449))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1b1),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});_0x53d449=AIChatContext[_0x509bae(0x1a9)](_0x53d449,_0x2a30b6[_0x509bae(0x19f)]),await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']},_0x4a1f7c[_0x509bae(0x1b6)]);break;default:this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x14b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'resourceType':_0x2a30b6[_0x509bae(0x16a)]}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}else this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1ae),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}static[_0x837382(0x1a9)](_0x281d23,_0x596597){const _0x390836=_0x837382;switch(_0x281d23[_0x390836(0x16a)]){case _0x4db6e2[_0x390836(0x17b)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b9)});case _0x4db6e2[_0x390836(0x1a3)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1ad)});default:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b5)});}}static[_0x837382(0x1a1)](_0x3a74ed){const _0x458ea0=_0x837382;switch(_0x3a74ed[_0x458ea0(0x16a)]){case _0x4a1f7c[_0x458ea0(0x199)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x15d)]:return{'type':_0x4a1f7c[_0x458ea0(0x15d)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x1bc)]:return{'type':_0x4a1f7c[_0x458ea0(0x1bc)],'id':_0x3a74ed['id'],..._0x3a74ed[_0x458ea0(0x1a0)]?.[_0x458ea0(0x167)]&&{'selection':_0x3a74ed[_0x458ea0(0x1a0)]}};case _0x4a1f7c[_0x458ea0(0x1b6)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};default:return null;}}[_0x837382(0x14f)](_0x4d257f,_0x2458fa=!0x1){const _0x26df6d=_0x837382;if(this[_0x26df6d(0x194)][_0x26df6d(0x168)](_0x4d257f[_0x26df6d(0x1b0)],_0x4d257f),_0x4d257f[_0x26df6d(0x195)]||this[_0x26df6d(0x174)](_0x26df6d(0x143),{'contextItem':_0x4d257f,'isLoading':_0x2458fa}),_0x26df6d(0x1c0)===_0x4d257f[_0x26df6d(0x1b0)]&&this[_0x26df6d(0x178)](),_0x4d257f[_0x26df6d(0x175)]){const _0x46b1c2=this[_0x26df6d(0x196)](_0x4d257f[_0x26df6d(0x175)]);_0x46b1c2&&_0x46b1c2[_0x26df6d(0x14e)](_0x2a3e70=>{const _0x524ca0=_0x26df6d;this[_0x524ca0(0x1bb)](_0x2a3e70,_0x4d257f[_0x524ca0(0x175)],!0x0);});}}[_0x837382(0x149)](_0x3669df){const _0x4e6f80=_0x837382,_0x30d488=this[_0x4e6f80(0x194)][_0x4e6f80(0x1bf)](_0x3669df),_0x379339=this[_0x4e6f80(0x197)][_0x4e6f80(0x1bf)](_0x3669df);if(_0x379339&&(_0x379339[_0x4e6f80(0x198)](),this[_0x4e6f80(0x197)][_0x4e6f80(0x180)](_0x3669df)),_0x30d488?.[_0x4e6f80(0x175)]){const _0x546b8b=this[_0x4e6f80(0x196)](_0x30d488[_0x4e6f80(0x175)]);_0x546b8b&&_0x546b8b[_0x4e6f80(0x14e)](_0x27daad=>{const _0x24f128=_0x4e6f80;this[_0x24f128(0x1bb)](_0x27daad,_0x30d488[_0x24f128(0x175)],!0x1);});}this[_0x4e6f80(0x194)][_0x4e6f80(0x180)](_0x3669df),this[_0x4e6f80(0x174)](_0x4e6f80(0x18e),{'uiId':_0x3669df,'type':_0x30d488?.[_0x4e6f80(0x16a)]}),_0x4e6f80(0x1c0)===_0x3669df&&this[_0x4e6f80(0x178)]();}[_0x837382(0x1b7)](_0x517bdc,_0x3fc445){const _0x451405=_0x837382;if(this[_0x451405(0x194)][_0x451405(0x19d)](_0x517bdc[_0x451405(0x1b0)])&&(this[_0x451405(0x194)][_0x451405(0x168)](_0x517bdc[_0x451405(0x1b0)],_0x517bdc),this[_0x451405(0x174)](_0x451405(0x154),{'contextItem':_0x517bdc,'isLoading':_0x3fc445}),_0x517bdc[_0x451405(0x175)])){const _0x2b9888=this[_0x451405(0x196)](_0x517bdc[_0x451405(0x175)]);_0x2b9888&&_0x2b9888[_0x451405(0x14e)](_0x3b7417=>{const _0x56ab7d=_0x451405;this[_0x56ab7d(0x1bb)](_0x3b7417,_0x517bdc[_0x56ab7d(0x175)],!0x0);});}}[_0x837382(0x187)](_0xaca12c){const _0x442ada=_0x837382;this[_0x442ada(0x1c2)][_0x442ada(0x168)](_0xaca12c[_0x442ada(0x1b0)],_0xaca12c);}[_0x837382(0x15f)](){const _0x2a646a=_0x837382;this[_0x2a646a(0x1c3)]={'document':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x189)]?.[_0x2a646a(0x1a8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x183)]?.[_0x2a646a(0x1a8)]},'files':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x158)]?.[_0x2a646a(0x1a8)]},'sources':this[_0x2a646a(0x150)]()},this[_0x2a646a(0x174)](_0x2a646a(0x1c4),{'options':this[_0x2a646a(0x1c3)]});}[_0x837382(0x150)](){const _0x2e4b13=_0x837382;return this[_0x2e4b13(0x15b)]?.[_0x2e4b13(0x156)]?.[_0x2e4b13(0x15c)](_0x452aec=>({..._0x452aec,'resources':[]}))??[];}[_0x837382(0x178)](){const _0x3f6f15=_0x837382,_0x1ff24a=this[_0x3f6f15(0x140)]()||this[_0x3f6f15(0x193)]();this[_0x3f6f15(0x1c3)][_0x3f6f15(0x189)][_0x3f6f15(0x18a)]=_0x1ff24a,this[_0x3f6f15(0x174)](_0x3f6f15(0x1c4),{'options':this[_0x3f6f15(0x1c3)]});}[_0x837382(0x139)](_0x572710){const _0x2b2217=_0x837382;for(const _0x406332 of this[_0x2b2217(0x194)][_0x2b2217(0x16c)]())if(_0x406332[_0x2b2217(0x175)]===_0x572710)return!0x0;for(const _0x4c2f11 of this[_0x2b2217(0x1c2)][_0x2b2217(0x16c)]())if(_0x4c2f11[_0x2b2217(0x175)]===_0x572710)return!0x0;return!0x1;}[_0x837382(0x196)](_0x55e208){const _0xb3f312=_0x837382,_0x1bb97a=[];for(const _0x5008a8 of this[_0xb3f312(0x1c3)][_0xb3f312(0x156)]){_0x5008a8[_0xb3f312(0x171)][_0xb3f312(0x138)](_0x26c13b=>_0x26c13b['id']===_0x55e208)&&_0x1bb97a[_0xb3f312(0x165)](_0x5008a8['id']);}return 0x0===_0x1bb97a[_0xb3f312(0x167)]?null:_0x1bb97a;}[_0x837382(0x1bb)](_0x3856d9,_0x44a5b2,_0x1879a7){const _0x215a1f=_0x837382,_0x26385c=this[_0x215a1f(0x1c3)][_0x215a1f(0x156)][_0x215a1f(0x138)](_0xe2b71=>_0xe2b71['id']===_0x3856d9);if(!_0x26385c)return;const _0x30bf92=_0x26385c[_0x215a1f(0x171)][_0x215a1f(0x138)](_0x1002c9=>_0x1002c9['id']===_0x44a5b2);_0x30bf92&&(_0x30bf92[_0x215a1f(0x18f)]=_0x1879a7,this[_0x215a1f(0x174)](_0x215a1f(0x16b),{'sourceId':_0x3856d9,'resourceId':_0x44a5b2,'isInContext':_0x1879a7}));}[_0x837382(0x17f)](_0x1e86b0){const _0x2b7d88=_0x837382;this[_0x2b7d88(0x19e)][_0x2b7d88(0x168)](_0x1e86b0,!0x0),this[_0x2b7d88(0x19e)][_0x2b7d88(0x13e)]&&this[_0x2b7d88(0x174)](_0x2b7d88(0x191),{'isUploadInProgress':!0x0});}[_0x837382(0x1b4)](_0x1c80ac){const _0x5bd37c=_0x837382;this[_0x5bd37c(0x19e)][_0x5bd37c(0x180)](_0x1c80ac),0x0===this[_0x5bd37c(0x19e)][_0x5bd37c(0x13e)]&&this[_0x5bd37c(0x174)](_0x5bd37c(0x191),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9f39f=_0x19b2;(function(_0x34cd5b,_0x5c46af){const _0x54e859=_0x19b2,_0x21fb04=_0x34cd5b();while(!![]){try{const _0x200fbb=-parseInt(_0x54e859(0x13a))/0x1+parseInt(_0x54e859(0x15b))/0x2+parseInt(_0x54e859(0x15d))/0x3*(parseInt(_0x54e859(0x16f))/0x4)+parseInt(_0x54e859(0x174))/0x5*(parseInt(_0x54e859(0x15a))/0x6)+-parseInt(_0x54e859(0x187))/0x7*(parseInt(_0x54e859(0x148))/0x8)+-parseInt(_0x54e859(0x13b))/0x9*(parseInt(_0x54e859(0x186))/0xa)+parseInt(_0x54e859(0x155))/0xb;if(_0x200fbb===_0x5c46af)break;else _0x21fb04['push'](_0x21fb04['shift']());}catch(_0x483d24){_0x21fb04['push'](_0x21fb04['shift']());}}}(_0x5d49,0xdf7c8));import{CKEditorError as _0x3be0fa,EmitterMixin as _0x12a613}from'ckeditor5/src/utils.js';function _0x19b2(_0x158196,_0x586416){const _0x5d4977=_0x5d49();return _0x19b2=function(_0x19b234,_0x32b7ff){_0x19b234=_0x19b234-0x11b;let _0x34c5f5=_0x5d4977[_0x19b234];return _0x34c5f5;},_0x19b2(_0x158196,_0x586416);}import{AI_MODEL_EVENT_NAMES as _0x460168}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x15747d,AI_CONTEXT_MODEL_EVENT_NAMES as _0x17a746}from'./aichatcontext.js';import{AICapabilities as _0x4ed5ce,CAPABILITIES_MODEL_EVENT_NAMES as _0x23938b}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1c96f0}from'./aichatinteraction.js';export class AIChatConversation extends _0x12a613(){['id'];[_0x9f39f(0x169)]=!0x1;[_0x9f39f(0x177)]=[];[_0x9f39f(0x136)];[_0x9f39f(0x12c)];[_0x9f39f(0x161)];[_0x9f39f(0x16b)];constructor(_0x598a1a){const _0x1fb39b=_0x9f39f;super(),this[_0x1fb39b(0x16b)]=_0x598a1a,this[_0x1fb39b(0x161)]=_0x598a1a[_0x1fb39b(0x161)],this[_0x1fb39b(0x143)]=_0x598a1a[_0x1fb39b(0x143)],this['id']=_0x598a1a[_0x1fb39b(0x157)];}async[_0x9f39f(0x160)](_0x3aaac2){const _0x2a23b9=_0x9f39f;try{this[_0x2a23b9(0x171)]=new _0x15747d({'connector':this[_0x2a23b9(0x161)],'config':_0x3aaac2,'ownerId':this['id']}),this[_0x2a23b9(0x171)][_0x2a23b9(0x13e)](..._0x17a746)['to'](this),this[_0x2a23b9(0x171)][_0x2a23b9(0x160)](),this[_0x2a23b9(0x12e)]=new _0x4ed5ce(),this[_0x2a23b9(0x12e)][_0x2a23b9(0x13e)](..._0x23938b)['to'](this),this[_0x2a23b9(0x12e)][_0x2a23b9(0x160)]();const _0x5ba243=await this[_0x2a23b9(0x143)][_0x2a23b9(0x140)]();this[_0x2a23b9(0x184)](_0x2a23b9(0x139),{'availableModels':_0x5ba243});const _0x10a0c0=await this[_0x2a23b9(0x143)][_0x2a23b9(0x13f)](this[_0x2a23b9(0x16b)][_0x2a23b9(0x167)]);_0x10a0c0&&await this[_0x2a23b9(0x128)](_0x10a0c0);}catch(_0x1a018e){const _0x4144d1=new _0x3be0fa(_0x2a23b9(0x127),null,{'message':_0x1a018e[_0x2a23b9(0x151)]});_0x4144d1[_0x2a23b9(0x12a)]=_0x1a018e[_0x2a23b9(0x12a)],this[_0x2a23b9(0x184)](_0x2a23b9(0x164),{'error':_0x4144d1});}}async[_0x9f39f(0x14b)](){const _0x45ef14=_0x9f39f;if(this[_0x45ef14(0x169)])throw new _0x3be0fa(_0x45ef14(0x176),null,{'conversation':this});if(!this[_0x45ef14(0x12c)])throw new _0x3be0fa(_0x45ef14(0x11c),null,{'conversation':this});try{const {id:_0x39a408}=await this[_0x45ef14(0x161)][_0x45ef14(0x182)](this['id'],this[_0x45ef14(0x16b)][_0x45ef14(0x11e)])[_0x45ef14(0x125)]();this['id']=_0x39a408,this[_0x45ef14(0x169)]=!0x0,this[_0x45ef14(0x184)](_0x45ef14(0x17f),{'conversationId':this['id'],'selectedModel':this[_0x45ef14(0x12c)]});}catch(_0x5622a3){const _0x18e30d=new _0x3be0fa(_0x45ef14(0x121),null,{'message':_0x5622a3[_0x45ef14(0x151)]});_0x18e30d[_0x45ef14(0x12a)]=_0x5622a3[_0x45ef14(0x12a)],this[_0x45ef14(0x184)](_0x45ef14(0x164),{'error':_0x18e30d});}}async[_0x9f39f(0x170)](_0x392d5e,_0x1b0dca){const _0x5887a7=_0x9f39f;try{const _0x2b4562=await this[_0x5887a7(0x161)][_0x5887a7(0x181)](_0x392d5e)[_0x5887a7(0x125)](),_0x3841a7=await this[_0x5887a7(0x161)][_0x5887a7(0x146)](_0x392d5e)[_0x5887a7(0x14f)](),_0x3ae62e=_0x3841a7[0x0][_0x5887a7(0x18d)];this[_0x5887a7(0x169)]=!0x0,this['id']=_0x2b4562['id'],_0x5887a7(0x189)in _0x2b4562?this[_0x5887a7(0x184)](_0x5887a7(0x154),_0x2b4562[_0x5887a7(0x189)],!0x0):this[_0x5887a7(0x184)](_0x5887a7(0x154),'',!0x0);const _0x2bfedb=(await this[_0x5887a7(0x143)][_0x5887a7(0x140)]())[_0x5887a7(0x132)](_0x2db444=>_0x2db444['id'][_0x5887a7(0x158)]()===_0x3ae62e[_0x5887a7(0x158)]());return this[_0x5887a7(0x12c)]=_0x2bfedb,this[_0x5887a7(0x184)](_0x5887a7(0x168),{'selectedModel':_0x2bfedb,'isDisabled':!0x0}),await this[_0x5887a7(0x14a)](_0x3841a7,_0x1b0dca,_0x3ae62e),this[_0x5887a7(0x136)]=void 0x0,this;}catch(_0x13a3b1){const _0x4226bf=new _0x3be0fa(_0x5887a7(0x129),null,{'message':_0x13a3b1[_0x5887a7(0x151)],'conversationId':_0x392d5e});throw _0x4226bf[_0x5887a7(0x12a)]=_0x13a3b1[_0x5887a7(0x12a)],this[_0x5887a7(0x184)](_0x5887a7(0x164),{'error':_0x4226bf}),_0x4226bf;}}async[_0x9f39f(0x14a)](_0x9a4c04,_0x57c455,_0x3efa5c){const _0x58b68b=_0x9f39f;let _0x26993c;for(const _0x48bd52 of _0x9a4c04)if(_0x58b68b(0x131)===_0x48bd52[_0x58b68b(0x18b)]){const _0x2a6c9e=await this[_0x58b68b(0x152)](_0x48bd52),_0x2b75f0={'isReasoningEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x11b)),'isWebSearchEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x15e))};_0x26993c=this[_0x58b68b(0x179)]({'userMessage':_0x48bd52[_0x58b68b(0x149)],'contextItems':_0x2a6c9e,'capabilities':_0x2b75f0,'modelId':_0x3efa5c,'quickActionData':_0x48bd52[_0x58b68b(0x180)]?.[_0x58b68b(0x17c)]}),this[_0x58b68b(0x136)]=_0x26993c,this[_0x58b68b(0x171)][_0x58b68b(0x150)](this[_0x58b68b(0x136)][_0x58b68b(0x183)]);}else{if(_0x58b68b(0x18a)===_0x48bd52[_0x58b68b(0x18b)]&&_0x26993c)for(const _0x243588 of _0x48bd52[_0x58b68b(0x17d)]){const _0x533c19=_0x58b68b(0x16e)===_0x243588[_0x58b68b(0x16c)]?_0x58b68b(0x166):_0x58b68b(0x15f),_0x1eff5a=_0x26993c[_0x58b68b(0x18c)]()?.[_0x58b68b(0x188)]!==_0x57c455;_0x26993c[_0x58b68b(0x122)]=_0x26993c[_0x58b68b(0x163)]({'type':_0x533c19,'isDone':!0x0,'interactionId':_0x26993c['id'],'areActionsDisabled':_0x1eff5a}),_0x26993c[_0x58b68b(0x122)][_0x58b68b(0x147)](_0x243588[_0x58b68b(0x17d)]);}}}async[_0x9f39f(0x152)](_0x3cd4b4){const _0x1ac7a6=_0x9f39f,_0x1052a4=new Map();if(!_0x3cd4b4[_0x1ac7a6(0x17d)])return _0x1052a4;for(const _0x7f5ce8 of _0x3cd4b4[_0x1ac7a6(0x17d)]){const _0x522517=await this[_0x1ac7a6(0x171)][_0x1ac7a6(0x130)](_0x7f5ce8);_0x522517&&_0x1052a4[_0x1ac7a6(0x14e)](_0x522517['id'],_0x522517);}return _0x1052a4;}async[_0x9f39f(0x15c)]({userMessage:_0x37d91c,quickActionData:_0x26630d}){const _0x33819e=_0x9f39f;if(!this[_0x33819e(0x169)])throw new _0x3be0fa(_0x33819e(0x14d),null,{'conversation':this});if(this[_0x33819e(0x136)])throw new _0x3be0fa(_0x33819e(0x153),null,{'conversation':this});try{const _0x590c29=this[_0x33819e(0x171)][_0x33819e(0x133)](),_0x5304d4=this[_0x33819e(0x12e)][_0x33819e(0x141)](),_0x5e90b7=this[_0x33819e(0x12c)]['id'];this[_0x33819e(0x136)]=this[_0x33819e(0x179)]({'userMessage':_0x37d91c,'contextItems':_0x590c29,'capabilities':_0x5304d4,'modelId':_0x5e90b7,'quickActionData':_0x26630d}),await this[_0x33819e(0x136)][_0x33819e(0x14b)](),this[_0x33819e(0x171)][_0x33819e(0x150)](this[_0x33819e(0x136)][_0x33819e(0x183)]);}catch(_0x402d26){this[_0x33819e(0x184)](_0x33819e(0x164),{'interactionId':this[_0x33819e(0x136)]?this[_0x33819e(0x136)]['id']:void 0x0,'error':_0x402d26});}finally{this[_0x33819e(0x136)]?.[_0x33819e(0x137)](),this[_0x33819e(0x136)]=void 0x0;}}[_0x9f39f(0x179)]({userMessage:_0x48ffd1,contextItems:_0x533d14,capabilities:_0x45a3df,modelId:_0x44d770,quickActionData:_0x2a44d3}){const _0x56205e=_0x9f39f,_0x4187b9=new _0x1c96f0({'userMessage':_0x48ffd1,'contextItems':_0x533d14,'capabilities':_0x45a3df,'conversationId':this['id'],'connector':this[_0x56205e(0x161)],'editor':this[_0x56205e(0x16b)][_0x56205e(0x124)]&&this[_0x56205e(0x16b)][_0x56205e(0x124)](),'model':_0x44d770,'quickActionData':_0x2a44d3});return _0x4187b9[_0x56205e(0x13e)](..._0x460168)['to'](this),this[_0x56205e(0x177)][_0x56205e(0x17e)](_0x4187b9),this[_0x56205e(0x184)](_0x56205e(0x11d),_0x4187b9),_0x4187b9;}[_0x9f39f(0x175)](_0x11ffd7){const _0x5354ef=_0x9f39f;return this[_0x5354ef(0x177)][_0x5354ef(0x132)](_0x32180c=>_0x32180c['id']===_0x11ffd7);}[_0x9f39f(0x16d)](_0x4ba4b1){const _0x45d7e4=_0x9f39f,_0x3b0926=this[_0x45d7e4(0x175)](_0x4ba4b1);_0x3b0926&&(_0x3b0926[_0x45d7e4(0x142)](),this[_0x45d7e4(0x177)][_0x45d7e4(0x17b)](this[_0x45d7e4(0x177)][_0x45d7e4(0x12f)](_0x3b0926),0x1));}get[_0x9f39f(0x173)](){const _0x38a1f3=_0x9f39f;return this[_0x38a1f3(0x177)][this[_0x38a1f3(0x177)][_0x38a1f3(0x12b)]-0x1];}[_0x9f39f(0x123)](_0x44b468){const _0x5188aa=_0x9f39f;this[_0x5188aa(0x171)][_0x5188aa(0x123)](_0x44b468);}async[_0x9f39f(0x185)]({content:_0xe2ef1e,version:_0x7bc4b8,sessionId:_0x47d1fe,selections:_0xd146a2}){const _0xd60aa0=_0x9f39f;await this[_0xd60aa0(0x171)][_0xd60aa0(0x134)](_0xe2ef1e,_0x7bc4b8,_0x47d1fe,_0xd146a2);}[_0x9f39f(0x162)](){const _0x5b9151=_0x9f39f;return this[_0x5b9151(0x136)]?.[_0x5b9151(0x18c)]()?.[_0x5b9151(0x17d)]||'';}[_0x9f39f(0x159)](_0x4ce562){const _0x4814d5=_0x9f39f;this[_0x4814d5(0x171)][_0x4814d5(0x159)](_0x4ce562);}[_0x9f39f(0x135)](){const _0x6b8780=_0x9f39f;this[_0x6b8780(0x171)][_0x6b8780(0x135)]();}[_0x9f39f(0x126)](_0x456e3f){const _0x4253a5=_0x9f39f;this[_0x4253a5(0x171)][_0x4253a5(0x126)](_0x456e3f);}[_0x9f39f(0x11f)](_0x5d54ea){const _0x42afd8=_0x9f39f;this[_0x42afd8(0x171)][_0x42afd8(0x11f)](_0x5d54ea);}[_0x9f39f(0x145)](_0x472100,_0x4541db){const _0x203b80=_0x9f39f;this[_0x203b80(0x171)][_0x203b80(0x145)](_0x472100,_0x4541db);}[_0x9f39f(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd){const _0x55bbc0=_0x9f39f;return this[_0x55bbc0(0x171)][_0x55bbc0(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd);}[_0x9f39f(0x120)](_0x330f9a){const _0x2b0aa6=_0x9f39f;this[_0x2b0aa6(0x171)][_0x2b0aa6(0x120)](_0x330f9a);}[_0x9f39f(0x144)](){const _0x3e5286=_0x9f39f;this[_0x3e5286(0x12e)][_0x3e5286(0x144)]();}[_0x9f39f(0x13c)](){const _0x1aa8aa=_0x9f39f;this[_0x1aa8aa(0x12e)][_0x1aa8aa(0x13c)]();}[_0x9f39f(0x172)](){const _0xed8830=_0x9f39f;return this[_0xed8830(0x171)][_0xed8830(0x172)]();}[_0x9f39f(0x156)](){const _0x2591de=_0x9f39f;return this[_0x2591de(0x171)][_0x2591de(0x156)]();}[_0x9f39f(0x17a)](){const _0x510ebe=_0x9f39f;return this[_0x510ebe(0x171)][_0x510ebe(0x17a)]();}async[_0x9f39f(0x128)](_0x5742e3){const _0x40248f=_0x9f39f;if(!_0x5742e3)throw new _0x3be0fa(_0x40248f(0x14c),null,{'conversation':this});if(!0x1===await this[_0x40248f(0x143)][_0x40248f(0x12d)](_0x5742e3))throw new _0x3be0fa(_0x40248f(0x138),null,{'conversation':this,'model':_0x5742e3});_0x5742e3['id']!==this[_0x40248f(0x12c)]?.['id']&&(this[_0x40248f(0x12c)]=_0x5742e3,this[_0x40248f(0x12e)][_0x40248f(0x165)](),this[_0x40248f(0x184)](_0x40248f(0x168),{'selectedModel':_0x5742e3}));}}function _0x5d49(){const _0x276063=['24MCgMyW','prompt','_processMessagesToInteractions','start','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','set','getMessages','addToConversationContext','message','_extractContextItems','ai-chat-handle-user-interaction-already-in-progress','setConversationTitle','4233878tHibOS','isCurrentDocumentInConversation','conversationId','toLowerCase','addSelectionToContext','30054ffpXFp','3535158UlQXmd','handleUserInteraction','687WiNGlo','webSearch','modification-delta','init','connector','getCurrentDocumentContext','createReply','error','reset','text-delta','defaultModelId','modelSelected','isStarted','hasOwn','options','type','removeInteraction','text','3076sIZFYs','load','chatContext','isCurrentDocumentInContext','lastInteraction','1785NtrDQB','getInteraction','ai-chat-conversation-already-started','interactions','capabilities','createInteraction','isSelectionInContext','splice','quickActionData','content','push','conversationStarted','attributes','fetchConversation','startConversation','contextItems','fire','updateCurrentDocumentInContext','65270LdTaOj','2462369sBCJtY','sessionId','title','assistant','role','getDocumentContext','model','reasoning','ai-chat-conversation-start-no-model-selected','interactionCreated','group','addUrlToContext','removeFromContext','ai-chat-conversation-start-failed','currentReply','addCurrentDocumentToContext','getEditor','getConversation','addFilesToContext','ai-chat-conversation-init-failed','setModel','ai-chat-conversation-init-from-id-failed','stack','length','selectedModel','isAvailable','chatCapabilities','indexOf','populateFromMessage','user','find','getPendingContextItems','updateCurrentDocument','removeSelectionFromContext','currentInteraction','stop','ai-chat-conversation-set-model-not-available','conversationInitialized','533921wxyZzK','2223EobZqI','toggleReasoning','loadSourceResources','delegate','getDefault','getAll','getCapabilitiesConfig','destroy','chatModels','toggleWebSearch','addResourceToContext','fetchConversationMessages','appendContent'];_0x5d49=function(){return _0x276063;};return _0x5d49();}
23
+ const _0x38f408=_0x5ea9;(function(_0x72a86e,_0x202320){const _0x3b494a=_0x5ea9,_0x1d9e9a=_0x72a86e();while(!![]){try{const _0x51c730=parseInt(_0x3b494a(0x11e))/0x1+-parseInt(_0x3b494a(0x130))/0x2*(parseInt(_0x3b494a(0x122))/0x3)+parseInt(_0x3b494a(0x132))/0x4*(parseInt(_0x3b494a(0x107))/0x5)+-parseInt(_0x3b494a(0x13f))/0x6+parseInt(_0x3b494a(0xd1))/0x7*(-parseInt(_0x3b494a(0x141))/0x8)+parseInt(_0x3b494a(0xd3))/0x9*(-parseInt(_0x3b494a(0x119))/0xa)+parseInt(_0x3b494a(0xe6))/0xb*(parseInt(_0x3b494a(0x133))/0xc);if(_0x51c730===_0x202320)break;else _0x1d9e9a['push'](_0x1d9e9a['shift']());}catch(_0x4a1682){_0x1d9e9a['push'](_0x1d9e9a['shift']());}}}(_0x344c,0x18d38));import{CKEditorError as _0x4c3137,EmitterMixin as _0x3701ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x43e3ee}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x423912,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4db3d7}from'./aichatcontext.js';function _0x5ea9(_0x592931,_0x54d3dc){const _0x344cf2=_0x344c();return _0x5ea9=function(_0x5ea95a,_0x678abb){_0x5ea95a=_0x5ea95a-0xd0;let _0x421707=_0x344cf2[_0x5ea95a];return _0x421707;},_0x5ea9(_0x592931,_0x54d3dc);}import{AICapabilities as _0x2c852c,CAPABILITIES_MODEL_EVENT_NAMES as _0x167d5b}from'../../aicore/model/aicapabilities.js';function _0x344c(){const _0x2dbdb0=['options','804066XtmORE','addResourceToContext','8qxivlK','delegate','indexOf','fetchConversation','63861DLjVyi','startConversation','28962toUDDP','length','addCurrentDocumentToContext','getDocumentContext','removeSelectionFromContext','toggleWebSearch','appendContent','reset','start','updateCurrentDocumentInContext','chatCapabilities','role','getConversation','init','removeFromContext','user','capabilities','find','loadSourceResources','3377kdIbPq','addUrlToContext','destroy','quickActionData','getCapabilitiesConfig','handleUserInteraction','content','populateFromMessage','lastInteraction','ai-chat-conversation-set-model-not-available','conversationId','selectedModel','conversationInitialized','splice','ai-chat-conversation-init-from-id-failed','toggleReasoning','currentInteraction','contextItems','chatModels','getInteraction','ai-chat-handle-user-conversation-not-initialized','fire','getMessages','push','getDefault','conversationStarted','fetchConversationMessages','isSelectionInContext','interactionCreated','modification-delta','setConversationTitle','stop','defaultModelId','31485UJDhNt','toLowerCase','ai-chat-conversation-init-failed','currentReply','addSelectionToContext','createInteraction','_processMessagesToInteractions','modelSelected','title','isCurrentDocumentInConversation','getPendingContextItems','error','ai-chat-conversation-start-no-model-selected','assistant','getAll','setModel','model','removeInteraction','260FSiRHF','set','isCurrentDocumentInContext','getCurrentDocumentContext','message','37867ykcCVp','createReply','hasOwn','connector','1971IrkDor','getEditor','text-delta','text','ai-chat-conversation-start-failed','type','sessionId','addFilesToContext','stack','load','ai-chat-handle-user-interaction-already-in-progress','webSearch','interactions','addToConversationContext','586VKPtTq','attributes','68yPEIyY','14700dxRbBx','updateCurrentDocument','group','_extractContextItems','isStarted','chatContext','prompt','reasoning','isAvailable','ai-chat-conversation-already-started','ai-chat-conversation-set-model-null'];_0x344c=function(){return _0x2dbdb0;};return _0x344c();}import{AIChatInteraction as _0x28c7fb}from'./aichatinteraction.js';export class AIChatConversation extends _0x3701ac(){['id'];[_0x38f408(0x137)]=!0x1;[_0x38f408(0x12e)]=[];[_0x38f408(0xf6)];[_0x38f408(0xf1)];[_0x38f408(0x121)];[_0x38f408(0x13e)];constructor(_0x5bb010){const _0x5e9c3f=_0x38f408;super(),this[_0x5e9c3f(0x13e)]=_0x5bb010,this[_0x5e9c3f(0x121)]=_0x5bb010[_0x5e9c3f(0x121)],this[_0x5e9c3f(0xf8)]=_0x5bb010[_0x5e9c3f(0xf8)],this['id']=_0x5bb010[_0x5e9c3f(0xf0)];}async[_0x38f408(0xe0)](_0x3c0296){const _0x158a1b=_0x38f408;try{this[_0x158a1b(0x138)]=new _0x423912({'connector':this[_0x158a1b(0x121)],'config':_0x3c0296,'ownerId':this['id']}),this[_0x158a1b(0x138)][_0x158a1b(0x142)](..._0x4db3d7)['to'](this),this[_0x158a1b(0x138)][_0x158a1b(0xe0)](),this[_0x158a1b(0xdd)]=new _0x2c852c(),this[_0x158a1b(0xdd)][_0x158a1b(0x142)](..._0x167d5b)['to'](this),this[_0x158a1b(0xdd)][_0x158a1b(0xe0)]();const _0x585a52=await this[_0x158a1b(0xf8)][_0x158a1b(0x115)]();this[_0x158a1b(0xfb)](_0x158a1b(0xf2),{'availableModels':_0x585a52});const _0x972461=await this[_0x158a1b(0xf8)][_0x158a1b(0xfe)](this[_0x158a1b(0x13e)][_0x158a1b(0x106)]);_0x972461&&await this[_0x158a1b(0x116)](_0x972461);}catch(_0xfd3955){const _0x751648=new _0x4c3137(_0x158a1b(0x109),null,{'message':_0xfd3955[_0x158a1b(0x11d)]});_0x751648[_0x158a1b(0x12a)]=_0xfd3955[_0x158a1b(0x12a)],this[_0x158a1b(0xfb)](_0x158a1b(0x112),{'error':_0x751648});}}async[_0x38f408(0xdb)](){const _0x4640db=_0x38f408;if(this[_0x4640db(0x137)])throw new _0x4c3137(_0x4640db(0x13c),null,{'conversation':this});if(!this[_0x4640db(0xf1)])throw new _0x4c3137(_0x4640db(0x113),null,{'conversation':this});try{const {id:_0x19001e}=await this[_0x4640db(0x121)][_0x4640db(0xd2)](this['id'],this[_0x4640db(0x13e)][_0x4640db(0x135)])[_0x4640db(0xdf)]();this['id']=_0x19001e,this[_0x4640db(0x137)]=!0x0,this[_0x4640db(0xfb)](_0x4640db(0xff),{'conversationId':this['id'],'selectedModel':this[_0x4640db(0xf1)]});}catch(_0xca5154){const _0x1f92da=new _0x4c3137(_0x4640db(0x126),null,{'message':_0xca5154[_0x4640db(0x11d)]});_0x1f92da[_0x4640db(0x12a)]=_0xca5154[_0x4640db(0x12a)],this[_0x4640db(0xfb)](_0x4640db(0x112),{'error':_0x1f92da});}}async[_0x38f408(0x12b)](_0xc263d4,_0xd4950b){const _0x128f4b=_0x38f408;try{const _0x5b2596=await this[_0x128f4b(0x121)][_0x128f4b(0xd0)](_0xc263d4)[_0x128f4b(0xdf)](),_0x366f26=await this[_0x128f4b(0x121)][_0x128f4b(0x100)](_0xc263d4)[_0x128f4b(0xfc)](),_0x252e0b=_0x366f26[0x0][_0x128f4b(0x117)];this[_0x128f4b(0x137)]=!0x0,this['id']=_0x5b2596['id'],_0x128f4b(0x10f)in _0x5b2596?this[_0x128f4b(0xfb)](_0x128f4b(0x104),_0x5b2596[_0x128f4b(0x10f)],!0x0):this[_0x128f4b(0xfb)](_0x128f4b(0x104),'',!0x0);const _0xde3c18=(await this[_0x128f4b(0xf8)][_0x128f4b(0x115)]())[_0x128f4b(0xe4)](_0x1544b8=>_0x1544b8['id'][_0x128f4b(0x108)]()===_0x252e0b[_0x128f4b(0x108)]());return this[_0x128f4b(0xf1)]=_0xde3c18,this[_0x128f4b(0xfb)](_0x128f4b(0x10e),{'selectedModel':_0xde3c18,'isDisabled':!0x0}),await this[_0x128f4b(0x10d)](_0x366f26,_0xd4950b,_0x252e0b),this[_0x128f4b(0xf6)]=void 0x0,this;}catch(_0x2314c1){const _0x379174=new _0x4c3137(_0x128f4b(0xf4),null,{'message':_0x2314c1[_0x128f4b(0x11d)],'conversationId':_0xc263d4});throw _0x379174[_0x128f4b(0x12a)]=_0x2314c1[_0x128f4b(0x12a)],this[_0x128f4b(0xfb)](_0x128f4b(0x112),{'error':_0x379174}),_0x379174;}}async[_0x38f408(0x10d)](_0x452cc3,_0x17c11d,_0x3eebe6){const _0x44e67c=_0x38f408;let _0x5963c6;for(const _0x4d8545 of _0x452cc3)if(_0x44e67c(0xe2)===_0x4d8545[_0x44e67c(0xde)]){const _0x45ca96=await this[_0x44e67c(0x136)](_0x4d8545),_0x5919fd={'isReasoningEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x13a)),'isWebSearchEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x12d))};_0x5963c6=this[_0x44e67c(0x10c)]({'userMessage':_0x4d8545[_0x44e67c(0x139)],'contextItems':_0x45ca96,'capabilities':_0x5919fd,'modelId':_0x3eebe6,'quickActionData':_0x4d8545[_0x44e67c(0x131)]?.[_0x44e67c(0xe9)]}),this[_0x44e67c(0xf6)]=_0x5963c6,this[_0x44e67c(0x138)][_0x44e67c(0x12f)](this[_0x44e67c(0xf6)][_0x44e67c(0xf7)]);}else{if(_0x44e67c(0x114)===_0x4d8545[_0x44e67c(0xde)]&&_0x5963c6)for(const _0x46b52d of _0x4d8545[_0x44e67c(0xec)]){const _0x1d03a4=_0x44e67c(0x125)===_0x46b52d[_0x44e67c(0x127)]?_0x44e67c(0x124):_0x44e67c(0x103),_0x49b334=_0x5963c6[_0x44e67c(0xd6)]()?.[_0x44e67c(0x128)]!==_0x17c11d;_0x5963c6[_0x44e67c(0x10a)]=_0x5963c6[_0x44e67c(0x11f)]({'type':_0x1d03a4,'isDone':!0x0,'interactionId':_0x5963c6['id'],'areActionsDisabled':_0x49b334}),_0x5963c6[_0x44e67c(0x10a)][_0x44e67c(0xd9)](_0x46b52d[_0x44e67c(0xec)]);}}}async[_0x38f408(0x136)](_0x214bf7){const _0x59a1a6=_0x38f408,_0x376f2e=new Map();if(!_0x214bf7[_0x59a1a6(0xec)])return _0x376f2e;for(const _0x378b12 of _0x214bf7[_0x59a1a6(0xec)]){const _0x46cafd=await this[_0x59a1a6(0x138)][_0x59a1a6(0xed)](_0x378b12);_0x46cafd&&_0x376f2e[_0x59a1a6(0x11a)](_0x46cafd['id'],_0x46cafd);}return _0x376f2e;}async[_0x38f408(0xeb)]({userMessage:_0x44baf1,quickActionData:_0x1576d0}){const _0x8a3b55=_0x38f408;if(!this[_0x8a3b55(0x137)])throw new _0x4c3137(_0x8a3b55(0xfa),null,{'conversation':this});if(this[_0x8a3b55(0xf6)])throw new _0x4c3137(_0x8a3b55(0x12c),null,{'conversation':this});try{const _0x161606=this[_0x8a3b55(0x138)][_0x8a3b55(0x111)](),_0x5d945d=this[_0x8a3b55(0xdd)][_0x8a3b55(0xea)](),_0x364c07=this[_0x8a3b55(0xf1)]['id'];this[_0x8a3b55(0xf6)]=this[_0x8a3b55(0x10c)]({'userMessage':_0x44baf1,'contextItems':_0x161606,'capabilities':_0x5d945d,'modelId':_0x364c07,'quickActionData':_0x1576d0}),await this[_0x8a3b55(0xf6)][_0x8a3b55(0xdb)](),this[_0x8a3b55(0x138)][_0x8a3b55(0x12f)](this[_0x8a3b55(0xf6)][_0x8a3b55(0xf7)]);}catch(_0x523380){this[_0x8a3b55(0xfb)](_0x8a3b55(0x112),{'interactionId':this[_0x8a3b55(0xf6)]?this[_0x8a3b55(0xf6)]['id']:void 0x0,'error':_0x523380});}finally{this[_0x8a3b55(0xf6)]?.[_0x8a3b55(0x105)](),this[_0x8a3b55(0xf6)]=void 0x0;}}[_0x38f408(0x10c)]({userMessage:_0x10d0bb,contextItems:_0x12009a,capabilities:_0x26df22,modelId:_0x3dbc3c,quickActionData:_0x54eb5a}){const _0x23b084=_0x38f408,_0x589f3c=new _0x28c7fb({'userMessage':_0x10d0bb,'contextItems':_0x12009a,'capabilities':_0x26df22,'conversationId':this['id'],'connector':this[_0x23b084(0x121)],'editor':this[_0x23b084(0x13e)][_0x23b084(0x123)]&&this[_0x23b084(0x13e)][_0x23b084(0x123)](),'model':_0x3dbc3c,'quickActionData':_0x54eb5a});return _0x589f3c[_0x23b084(0x142)](..._0x43e3ee)['to'](this),this[_0x23b084(0x12e)][_0x23b084(0xfd)](_0x589f3c),this[_0x23b084(0xfb)](_0x23b084(0x102),_0x589f3c),_0x589f3c;}[_0x38f408(0xf9)](_0x557c77){const _0x1ea497=_0x38f408;return this[_0x1ea497(0x12e)][_0x1ea497(0xe4)](_0x1476f2=>_0x1476f2['id']===_0x557c77);}[_0x38f408(0x118)](_0x26f70b){const _0x16c74f=_0x38f408,_0x5b5bb1=this[_0x16c74f(0xf9)](_0x26f70b);_0x5b5bb1&&(_0x5b5bb1[_0x16c74f(0xe8)](),this[_0x16c74f(0x12e)][_0x16c74f(0xf3)](this[_0x16c74f(0x12e)][_0x16c74f(0x143)](_0x5b5bb1),0x1));}get[_0x38f408(0xee)](){const _0xee6dfb=_0x38f408;return this[_0xee6dfb(0x12e)][this[_0xee6dfb(0x12e)][_0xee6dfb(0xd4)]-0x1];}[_0x38f408(0xd5)](_0x1bf903){const _0xe73a83=_0x38f408;this[_0xe73a83(0x138)][_0xe73a83(0xd5)](_0x1bf903);}async[_0x38f408(0xdc)]({content:_0x502f93,version:_0x4e21b,sessionId:_0x57af4c,selections:_0x23b8ca}){const _0x56e731=_0x38f408;await this[_0x56e731(0x138)][_0x56e731(0x134)](_0x502f93,_0x4e21b,_0x57af4c,_0x23b8ca);}[_0x38f408(0x11c)](){const _0x2a9eb9=_0x38f408;return this[_0x2a9eb9(0xf6)]?.[_0x2a9eb9(0xd6)]()?.[_0x2a9eb9(0xec)]||'';}[_0x38f408(0x10b)](_0x3e7079){const _0x26baa6=_0x38f408;this[_0x26baa6(0x138)][_0x26baa6(0x10b)](_0x3e7079);}[_0x38f408(0xd7)](){const _0x709449=_0x38f408;this[_0x709449(0x138)][_0x709449(0xd7)]();}[_0x38f408(0x129)](_0xb0de26){const _0x48638c=_0x38f408;this[_0x48638c(0x138)][_0x48638c(0x129)](_0xb0de26);}[_0x38f408(0xe7)](_0x2ed1ce){const _0x177cb3=_0x38f408;this[_0x177cb3(0x138)][_0x177cb3(0xe7)](_0x2ed1ce);}[_0x38f408(0x140)](_0x26f5c7,_0x457966){const _0x1d0892=_0x38f408;this[_0x1d0892(0x138)][_0x1d0892(0x140)](_0x26f5c7,_0x457966);}[_0x38f408(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122){const _0x5db64f=_0x38f408;return this[_0x5db64f(0x138)][_0x5db64f(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122);}[_0x38f408(0xe1)](_0x4d3af9){const _0x4620d1=_0x38f408;this[_0x4620d1(0x138)][_0x4620d1(0xe1)](_0x4d3af9);}[_0x38f408(0xd8)](){const _0x2a7ce3=_0x38f408;this[_0x2a7ce3(0xdd)][_0x2a7ce3(0xd8)]();}[_0x38f408(0xf5)](){const _0x4d2460=_0x38f408;this[_0x4d2460(0xdd)][_0x4d2460(0xf5)]();}[_0x38f408(0x11b)](){const _0x22c391=_0x38f408;return this[_0x22c391(0x138)][_0x22c391(0x11b)]();}[_0x38f408(0x110)](){const _0x3e937b=_0x38f408;return this[_0x3e937b(0x138)][_0x3e937b(0x110)]();}[_0x38f408(0x101)](){const _0xf547c5=_0x38f408;return this[_0xf547c5(0x138)][_0xf547c5(0x101)]();}async[_0x38f408(0x116)](_0x28779c){const _0x3b6e91=_0x38f408;if(!_0x28779c)throw new _0x4c3137(_0x3b6e91(0x13d),null,{'conversation':this});if(!0x1===await this[_0x3b6e91(0xf8)][_0x3b6e91(0x13b)](_0x28779c))throw new _0x4c3137(_0x3b6e91(0xef),null,{'conversation':this,'model':_0x28779c});_0x28779c['id']!==this[_0x3b6e91(0xf1)]?.['id']&&(this[_0x3b6e91(0xf1)]=_0x28779c,this[_0x3b6e91(0xdd)][_0x3b6e91(0xda)](),this[_0x3b6e91(0xfb)](_0x3b6e91(0x10e),{'selectedModel':_0x28779c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5926(_0x22d111,_0x4a3ce1){var _0x3155b=_0x3155();return _0x5926=function(_0x5926d0,_0xda0fcc){_0x5926d0=_0x5926d0-0x1cd;var _0x578be1=_0x3155b[_0x5926d0];return _0x578be1;},_0x5926(_0x22d111,_0x4a3ce1);}var _0x2fb97f=_0x5926;function _0x3155(){var _0x3d87d4=['sendRequest','model','6275fSknYx','4259783OIaGaP','314586vLkdqg','get','8VXHRyh','460WikzsH','1164akBGRO','31514YhekuW','queryAssistant','6OmHpZe','connector','getCapabilitiesRequestData','getDocumentContext','mapContextItemsToRequestData','12RLLGFh','userMessage','quickActionData','356697jqqPhE','201826AFzosx','4482310BBGSXF','conversationId','capabilities','current-document','contextItems'];_0x3155=function(){return _0x3d87d4;};return _0x3155();}(function(_0x3992f6,_0x145a78){var _0x3da531=_0x5926,_0x4599c7=_0x3992f6();while(!![]){try{var _0x2ab1cb=-parseInt(_0x3da531(0x1d7))/0x1+parseInt(_0x3da531(0x1d8))/0x2*(parseInt(_0x3da531(0x1cf))/0x3)+parseInt(_0x3da531(0x1e5))/0x4*(-parseInt(_0x3da531(0x1e0))/0x5)+parseInt(_0x3da531(0x1e6))/0x6*(parseInt(_0x3da531(0x1cd))/0x7)+parseInt(_0x3da531(0x1e4))/0x8*(parseInt(_0x3da531(0x1e2))/0x9)+-parseInt(_0x3da531(0x1d9))/0xa+parseInt(_0x3da531(0x1e1))/0xb*(parseInt(_0x3da531(0x1d4))/0xc);if(_0x2ab1cb===_0x145a78)break;else _0x4599c7['push'](_0x4599c7['shift']());}catch(_0x33f23d){_0x4599c7['push'](_0x4599c7['shift']());}}}(_0x3155,0x85d48));import{AICapabilities as _0x3b58e8}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xf7a2bd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x327871}from'./aichatcontext.js';export class AIChatInteraction extends _0xf7a2bd{[_0x2fb97f(0x1d5)];[_0x2fb97f(0x1da)];[_0x2fb97f(0x1dd)]=new Map();[_0x2fb97f(0x1df)];[_0x2fb97f(0x1d6)];constructor(_0x2cb8e3){var _0x3d2e62=_0x2fb97f;super(_0x2cb8e3),this[_0x3d2e62(0x1da)]=_0x2cb8e3[_0x3d2e62(0x1da)],this[_0x3d2e62(0x1dd)]=_0x2cb8e3[_0x3d2e62(0x1dd)],this[_0x3d2e62(0x1db)]=_0x2cb8e3[_0x3d2e62(0x1db)],this[_0x3d2e62(0x1d5)]=_0x2cb8e3[_0x3d2e62(0x1d5)],this[_0x3d2e62(0x1df)]=_0x2cb8e3[_0x3d2e62(0x1df)],this[_0x3d2e62(0x1d6)]=_0x2cb8e3[_0x3d2e62(0x1d6)];}async[_0x2fb97f(0x1de)](){var _0x5e0416=_0x2fb97f;return this[_0x5e0416(0x1d0)][_0x5e0416(0x1ce)]({'message':this[_0x5e0416(0x1d5)],'conversationId':this[_0x5e0416(0x1da)],'parts':_0x327871[_0x5e0416(0x1d3)](this[_0x5e0416(0x1dd)]),'capabilities':_0x3b58e8[_0x5e0416(0x1d1)](this[_0x5e0416(0x1db)]),'model':this[_0x5e0416(0x1df)],'quickActionData':this[_0x5e0416(0x1d6)]});}[_0x2fb97f(0x1d2)](){var _0x51c65c=_0x2fb97f;return this[_0x51c65c(0x1dd)][_0x51c65c(0x1e3)](_0x51c65c(0x1dc));}}
23
+ function _0x4782(_0x41d7f3,_0x2f1861){var _0x3762dc=_0x3762();return _0x4782=function(_0x4782ed,_0x22ec7e){_0x4782ed=_0x4782ed-0x120;var _0x4097ed=_0x3762dc[_0x4782ed];return _0x4097ed;},_0x4782(_0x41d7f3,_0x2f1861);}var _0x2a7ddb=_0x4782;function _0x3762(){var _0x477139=['6350720LAbhww','900598frfFkR','conversationId','model','6938091jaVfMF','queryAssistant','sendRequest','get','5544HfDrbi','287dxOlDi','1366060hXbeau','2216zoGhIY','connector','capabilities','7148128MsBBra','current-document','mapContextItemsToRequestData','getDocumentContext','130560mZMyCs','getCapabilitiesRequestData','1UTnRge','quickActionData','contextItems','userMessage'];_0x3762=function(){return _0x477139;};return _0x3762();}(function(_0x1261e6,_0x4e8ae2){var _0x43d55e=_0x4782,_0x3efc56=_0x1261e6();while(!![]){try{var _0x1faa24=parseInt(_0x43d55e(0x136))/0x1*(-parseInt(_0x43d55e(0x123))/0x2)+parseInt(_0x43d55e(0x12a))/0x3*(parseInt(_0x43d55e(0x12d))/0x4)+-parseInt(_0x43d55e(0x12c))/0x5+-parseInt(_0x43d55e(0x134))/0x6*(-parseInt(_0x43d55e(0x12b))/0x7)+parseInt(_0x43d55e(0x130))/0x8+-parseInt(_0x43d55e(0x126))/0x9+-parseInt(_0x43d55e(0x122))/0xa;if(_0x1faa24===_0x4e8ae2)break;else _0x3efc56['push'](_0x3efc56['shift']());}catch(_0x1c91f0){_0x3efc56['push'](_0x3efc56['shift']());}}}(_0x3762,0xa6032));import{AICapabilities as _0x11b783}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2e5ab3}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5e7529}from'./aichatcontext.js';export class AIChatInteraction extends _0x2e5ab3{[_0x2a7ddb(0x121)];[_0x2a7ddb(0x124)];[_0x2a7ddb(0x120)]=new Map();[_0x2a7ddb(0x125)];[_0x2a7ddb(0x137)];constructor(_0x1fd0a0){var _0x2da051=_0x2a7ddb;super(_0x1fd0a0),this[_0x2da051(0x124)]=_0x1fd0a0[_0x2da051(0x124)],this[_0x2da051(0x120)]=_0x1fd0a0[_0x2da051(0x120)],this[_0x2da051(0x12f)]=_0x1fd0a0[_0x2da051(0x12f)],this[_0x2da051(0x121)]=_0x1fd0a0[_0x2da051(0x121)],this[_0x2da051(0x125)]=_0x1fd0a0[_0x2da051(0x125)],this[_0x2da051(0x137)]=_0x1fd0a0[_0x2da051(0x137)];}async[_0x2a7ddb(0x128)](){var _0x4880fd=_0x2a7ddb;return this[_0x4880fd(0x12e)][_0x4880fd(0x127)]({'message':this[_0x4880fd(0x121)],'conversationId':this[_0x4880fd(0x124)],'parts':_0x5e7529[_0x4880fd(0x132)](this[_0x4880fd(0x120)]),'capabilities':_0x11b783[_0x4880fd(0x135)](this[_0x4880fd(0x12f)]),'model':this[_0x4880fd(0x125)],'quickActionData':this[_0x4880fd(0x137)]});}[_0x2a7ddb(0x133)](){var _0xdd7e6f=_0x2a7ddb;return this[_0xdd7e6f(0x120)][_0xdd7e6f(0x129)](_0xdd7e6f(0x131));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d5152=_0x16df;(function(_0x496638,_0x9fddc6){const _0x5db30e=_0x16df,_0x4b253c=_0x496638();while(!![]){try{const _0x5960d5=parseInt(_0x5db30e(0xe6))/0x1+parseInt(_0x5db30e(0xe0))/0x2+parseInt(_0x5db30e(0xd9))/0x3*(parseInt(_0x5db30e(0xd2))/0x4)+parseInt(_0x5db30e(0xe2))/0x5+parseInt(_0x5db30e(0xdf))/0x6+-parseInt(_0x5db30e(0xde))/0x7*(-parseInt(_0x5db30e(0xda))/0x8)+-parseInt(_0x5db30e(0xe8))/0x9*(parseInt(_0x5db30e(0xe1))/0xa);if(_0x5960d5===_0x9fddc6)break;else _0x4b253c['push'](_0x4b253c['shift']());}catch(_0x430517){_0x4b253c['push'](_0x4b253c['shift']());}}}(_0x42ef,0x3eacd));import{EmitterMixin as _0x5e59d7,logWarning as _0x3b1aca}from'ckeditor5/src/utils.js';function _0x42ef(){const _0x95e1e9=['enabled','72kEpRcB','2584nVFeoZ','filter','provider','length','8148jAchrc','2729994CaUOaP','290530ottcDR','193960xmQzCv','1146450jdVxGT','sort','getDefault','find','66239BYBzeq','capabilities','630GSyRql','name','ai-chat-default-model-id-unrecognized','_connector','list','getAll','getModels','57112oCeTSL','items','isAvailable','some','_modelList','values'];_0x42ef=function(){return _0x95e1e9;};return _0x42ef();}function _0x16df(_0x25f1d6,_0x2cf459){const _0x42ef6d=_0x42ef();return _0x16df=function(_0x16df3c,_0x18ed03){_0x16df3c=_0x16df3c-0xcc;let _0x59d0ce=_0x42ef6d[_0x16df3c];return _0x59d0ce;},_0x16df(_0x25f1d6,_0x2cf459);}export class AIChatModels extends _0x5e59d7(){[_0x1d5152(0xd6)]=[];[_0x1d5152(0xce)];constructor({connector:_0x40674c}){const _0x123e2e=_0x1d5152;super(),this[_0x123e2e(0xce)]=_0x40674c;}async[_0x1d5152(0xd0)](){const _0x57d482=_0x1d5152;if(!this[_0x57d482(0xd6)][_0x57d482(0xdd)]){const _0x3bcb96=this[_0x57d482(0xce)][_0x57d482(0xd1)](),_0x4ba969=(await _0x3bcb96[_0x57d482(0xcf)]())[_0x57d482(0xd3)][_0x57d482(0xe3)]((_0x16091f,_0x19f2d2)=>{const _0xe1d2b4=_0x57d482,_0x3a6afe=Object[_0xe1d2b4(0xd7)](_0x16091f[_0xe1d2b4(0xe7)])[_0xe1d2b4(0xdb)](_0x46d006=>_0x46d006[_0xe1d2b4(0xd8)])[_0xe1d2b4(0xdd)];return Object[_0xe1d2b4(0xd7)](_0x19f2d2[_0xe1d2b4(0xe7)])[_0xe1d2b4(0xdb)](_0x208614=>_0x208614[_0xe1d2b4(0xd8)])[_0xe1d2b4(0xdd)]-_0x3a6afe;});this[_0x57d482(0xd6)]=_0x4ba969;}return this[_0x57d482(0xd6)];}async[_0x1d5152(0xe4)](_0x3da9f1){const _0x17588e=_0x1d5152,_0x1954a5=await this[_0x17588e(0xd0)]();if(!_0x1954a5[_0x17588e(0xdd)])return null;if(_0x3da9f1){const _0x1518d0=_0x1954a5[_0x17588e(0xe5)](_0x3ebd81=>_0x3ebd81['id']===_0x3da9f1);if(_0x1518d0)return _0x1518d0;_0x3b1aca(_0x17588e(0xcd),{'defaultModelId':_0x3da9f1,'fallBackModelId':_0x1954a5[0x0]['id']});}return _0x1954a5[0x0];}async[_0x1d5152(0xd4)](_0x41dd0e){const _0x1bc223=_0x1d5152;return(await this[_0x1bc223(0xd0)]())[_0x1bc223(0xd5)](_0x942012=>_0x942012[_0x1bc223(0xcc)]===_0x41dd0e[_0x1bc223(0xcc)]&&_0x942012[_0x1bc223(0xdc)]===_0x41dd0e[_0x1bc223(0xdc)]);}}
23
+ const _0x1427ba=_0xbc65;(function(_0x1fc82d,_0x2698d8){const _0x123d9f=_0xbc65,_0x1082b6=_0x1fc82d();while(!![]){try{const _0x10d2a7=-parseInt(_0x123d9f(0x1ae))/0x1*(parseInt(_0x123d9f(0x1bc))/0x2)+-parseInt(_0x123d9f(0x1bb))/0x3+parseInt(_0x123d9f(0x1c3))/0x4+-parseInt(_0x123d9f(0x1be))/0x5*(parseInt(_0x123d9f(0x1bd))/0x6)+-parseInt(_0x123d9f(0x1c1))/0x7+parseInt(_0x123d9f(0x1b0))/0x8+-parseInt(_0x123d9f(0x1b4))/0x9*(-parseInt(_0x123d9f(0x1bf))/0xa);if(_0x10d2a7===_0x2698d8)break;else _0x1082b6['push'](_0x1082b6['shift']());}catch(_0x32190f){_0x1082b6['push'](_0x1082b6['shift']());}}}(_0x4022,0x3fc3b));function _0x4022(){const _0x434a37=['3421824bYPVsf','isAvailable','859252GdrWKB','list','provider','_connector','some','enabled','values','ai-chat-default-model-id-unrecognized','1lPahRz','find','94736Pgvnwr','getModels','name','filter','15904647asKeUr','items','length','sort','getDefault','_modelList','getAll','1512369LXxfpb','610268TyQrMc','30GxmBaD','434570LHqhLW','10nALRLF','capabilities'];_0x4022=function(){return _0x434a37;};return _0x4022();}import{EmitterMixin as _0x16bbaa,logWarning as _0x36dbfc}from'ckeditor5/src/utils.js';function _0xbc65(_0xadfef6,_0x1c84ef){const _0x402206=_0x4022();return _0xbc65=function(_0xbc6508,_0x76b23b){_0xbc6508=_0xbc6508-0x1a7;let _0x53c407=_0x402206[_0xbc6508];return _0x53c407;},_0xbc65(_0xadfef6,_0x1c84ef);}export class AIChatModels extends _0x16bbaa(){[_0x1427ba(0x1b9)]=[];[_0x1427ba(0x1a9)];constructor({connector:_0x5144c7}){const _0x2f7815=_0x1427ba;super(),this[_0x2f7815(0x1a9)]=_0x5144c7;}async[_0x1427ba(0x1ba)](){const _0x1479ca=_0x1427ba;if(!this[_0x1479ca(0x1b9)][_0x1479ca(0x1b6)]){const _0x553f56=this[_0x1479ca(0x1a9)][_0x1479ca(0x1b1)](),_0x4864a4=(await _0x553f56[_0x1479ca(0x1a7)]())[_0x1479ca(0x1b5)][_0x1479ca(0x1b7)]((_0x505721,_0x51c431)=>{const _0x17dd16=_0x1479ca,_0xfc3a7b=Object[_0x17dd16(0x1ac)](_0x505721[_0x17dd16(0x1c0)])[_0x17dd16(0x1b3)](_0x175910=>_0x175910[_0x17dd16(0x1ab)])[_0x17dd16(0x1b6)];return Object[_0x17dd16(0x1ac)](_0x51c431[_0x17dd16(0x1c0)])[_0x17dd16(0x1b3)](_0x2ee587=>_0x2ee587[_0x17dd16(0x1ab)])[_0x17dd16(0x1b6)]-_0xfc3a7b;});this[_0x1479ca(0x1b9)]=_0x4864a4;}return this[_0x1479ca(0x1b9)];}async[_0x1427ba(0x1b8)](_0x819684){const _0x4f695d=_0x1427ba,_0x166c7f=await this[_0x4f695d(0x1ba)]();if(!_0x166c7f[_0x4f695d(0x1b6)])return null;if(_0x819684){const _0x3d1954=_0x166c7f[_0x4f695d(0x1af)](_0x3e6bf1=>_0x3e6bf1['id']===_0x819684);if(_0x3d1954)return _0x3d1954;_0x36dbfc(_0x4f695d(0x1ad),{'defaultModelId':_0x819684,'fallBackModelId':_0x166c7f[0x0]['id']});}return _0x166c7f[0x0];}async[_0x1427ba(0x1c2)](_0x387bb1){const _0x2c0bb6=_0x1427ba;return(await this[_0x2c0bb6(0x1ba)]())[_0x2c0bb6(0x1aa)](_0x44347d=>_0x44347d[_0x2c0bb6(0x1b2)]===_0x387bb1[_0x2c0bb6(0x1b2)]&&_0x44347d[_0x2c0bb6(0x1a8)]===_0x387bb1[_0x2c0bb6(0x1a8)]);}}